/* Base tokens */
:root {
    --bg-color: #f2f2f7;
    /* iOS grouped background light */
    --card-bg: #ffffff;
    --text-main: #1c1c1e;
    --text-sec: #8e8e93;
    --primary: #007aff;
    /* iOS Blue */
    --primary-light: #e5f1ff;
    --red: #ff3b30;

    --radius-sm: 8px;
    --radius-md: 20px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --font-base: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-base);
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    overflow-y: scroll;
}

body.detail-page-body {
    background-color: var(--bg-color);
    padding-bottom: 0;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    font-family: inherit;
    cursor: pointer;
}

/* App Container */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: var(--bg-color);
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Top Navbar */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(14px + var(--safe-area-top)) 20px 14px;
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(242, 242, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.icon-btn {
    font-size: 24px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.icon-btn:active {
    background-color: rgba(0, 0, 0, 0.05);
}

.logo {
    font-family: 'Poppins', var(--font-base);
    font-size: 22px;
    font-weight: 800;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.ads-badge {
    position: relative;
    font-size: 10px;
    font-weight: 800;
    background: transparent;
    border: 2px solid var(--red);
    color: var(--red);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    background-color: #e5e5ea;
    align-items: center;
    justify-content: center;
}

.ads-badge .cross {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--red);
    transform: rotate(-45deg);
}

/* Main Content */
.main-content {
    flex: 1;
    padding-bottom: 100px;
}

.view {
    display: none;
    animation: fadeIn 0.3s ease;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.view-header {
    padding: 24px 20px 16px;
}

.view-header h2 {
    font-size: 28px;
    font-weight: 800;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    overflow-x: auto;
    padding: 16px 20px 24px;
    margin-bottom: -8px;
    gap: 12px;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    padding: 10px 18px;
    border-radius: 999px;
    background-color: rgba(229, 229, 234, 0.65);
    color: var(--text-main);
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.tab-btn:active {
    transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
    .tab-btn:hover {
        transform: translateY(-1px);
    }

    .tab-btn:hover:not(.active) {
        background-color: rgba(229, 229, 234, 0.85);
    }
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(77, 163, 255, 0.85), rgba(0, 122, 255, 0.85));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    box-shadow:
        inset 0 0 24px 2px rgba(255, 255, 255, 0.4),
        inset 0 -4px 8px rgba(0, 0, 0, 0.1),
        0 4px 20px -2px rgba(0, 122, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    padding: 0 20px;
}

/* Prompt Card */
.prompt-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 3/4;
    background-color: #e5e5ea;
    cursor: pointer;
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s;
}

.prompt-card:active {
    transform: scale(0.96);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.prompt-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
}

.card-top {
    display: flex;
    justify-content: flex-end;
}

.heart-btn {
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    transition: transform 0.2s, color 0.2s;
}

.heart-btn:active {
    transform: scale(1.2);
}

.heart-btn.active {
    color: var(--red);
}

.card-title {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: calc(24px + var(--safe-area-bottom));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    background-color: rgba(242, 242, 247, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 40px;
    padding: 6px 6px;
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 40;
    gap: 4px;
    transition: bottom 0.3s ease, transform 0.3s ease;
}

.bottom-nav.nav-lifted {
    bottom: calc(100px + var(--safe-area-bottom));
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 30px;
    color: var(--text-sec);
    transition: all 0.3s;
}

.nav-item i {
    font-size: 24px;
}

.nav-item span {
    display: none;
    font-weight: 600;
    font-size: 14px;
}

.nav-item.active {
    background-color: #dbdbdf;
    /* Matches iOS native dark gray button fill */
    color: var(--text-main);
}

.nav-item.active span {
    display: inline;
}

/* Footer Section */
.footer {
    padding: 30px 20px;
    background-color: #e8e8ed;
    /* Slightly different from main bg */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    /* Very subtle line */
    text-align: center;
    max-width: 600px;
    width: 100%;
    margin: auto auto 0 auto; /* auto top pushes it down, auto left/right centers it */
    border-radius: 24px 24px 0 0;
    /* Modern soft top corners */
}

.footer-content {
    font-size: 13px;
    color: var(--text-sec);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

/* Filter Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-backdrop.show {
    opacity: 1;
    pointer-events: all;
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 100%);
    width: 100%;
    max-width: 600px;
    background-color: var(--bg-color);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    z-index: 60;
    padding: 12px 20px 40px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
}

.bottom-sheet.show {
    transform: translate(-50%, 0);
}

.sheet-handle {
    width: 40px;
    height: 5px;
    border-radius: 3px;
    background-color: #d1d1d6;
    margin: 0 auto 16px;
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.sheet-header h2 {
    font-size: 22px;
}

.text-btn.primary {
    color: var(--primary);
    font-weight: 600;
    font-size: 16px;
}

.filter-section {
    margin-bottom: 24px;
}

.filter-section h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.pill-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pill-btn {
    position: relative;
    overflow: hidden;
    padding: 10px 18px;
    border-radius: 999px;
    background-color: rgba(229, 229, 234, 0.65);
    color: var(--text-main);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.pill-btn:active {
    transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
    .pill-btn:hover {
        transform: translateY(-1px);
    }

    .pill-btn:hover:not(.active) {
        background-color: rgba(229, 229, 234, 0.85);
    }
}

.pill-btn.active {
    background: linear-gradient(135deg, rgba(77, 163, 255, 0.85), rgba(0, 122, 255, 0.85));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    box-shadow:
        inset 0 0 24px 2px rgba(255, 255, 255, 0.4),
        inset 0 -4px 8px rgba(0, 0, 0, 0.1),
        0 4px 20px -2px rgba(0, 122, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.list-group {
    background-color: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f2f2f7;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item input[type="radio"] {
    display: none;
}

.checkmark {
    color: var(--primary);
    font-size: 18px;
    display: none;
}

.list-item input[type="radio"]:checked~.checkmark {
    display: block;
}

.list-item:has(input[type="radio"]:checked) {
    background-color: var(--primary-light);
}

/* Detail Page */
.detail-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    padding-bottom: 120px;
}

.detail-header {
    position: absolute;
    top: max(24px, calc(16px + var(--safe-area-top)));
    left: 16px;
    right: 16px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through empty center space */
}

.glass-btn {
    pointer-events: auto;
    /* Re-enable clicks exactly on buttons */
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.detail-image-container {
    width: calc(100% - 32px);
    margin: max(40px, calc(var(--safe-area-top) + 24px)) auto 0 auto;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background-color: transparent;
}

.detail-image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
}

.detail-content {
    padding: 24px 20px;
    position: relative;
}

.detail-content h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.prompt-card-container {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 22px;
    border: 0.5px solid rgba(255, 255, 255, 0.95);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.model-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 122, 255, 0.08);
    border: 1px solid rgba(0, 122, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.2px;
    margin-bottom: 14px;
}

.prompt-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-main);
    letter-spacing: -0.1px;
    transition: all 0.3s ease;
}

/* See More Truncation */
.line-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.see-more-btn {
    background: rgba(0, 122, 255, 0.08);
    border: 1px solid rgba(0, 122, 255, 0.18);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
    align-self: flex-start;
    transition: all 0.2s;
}

.see-more-btn:active {
    transform: scale(0.96);
    background: rgba(0, 122, 255, 0.14);
}

/* Floating Actions */
.floating-action-bar {
    position: fixed;
    bottom: calc(32px + var(--safe-area-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    pointer-events: none;
}

.large-heart-fab {
    pointer-events: auto;
    background: #e5e5ea;
    color: var(--text-main);
    width: 56px;
    height: 56px;
    font-size: 24px;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.2s;
}

.large-heart-fab:active {
    transform: scale(0.92);
}

.large-heart-fab.active {
    color: var(--red);
}

.copy-action-btn {
    pointer-events: auto;
    background: rgba(209, 209, 214, 0.85);
    /* Frosty light grey */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-main);
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
    align-self: center;
    /* Center horizontally below the right-aligned heart */
}

.copy-action-btn:active {
    transform: scale(0.96);
    background: rgba(199, 199, 204, 0.95);
}

/* Skeletons */
.skeleton-image {
    background: linear-gradient(90deg, #e5e5ea 25%, #f2f2f7 50%, #e5e5ea 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    min-height: 200px;
}

.skeleton-text {
    background: linear-gradient(90deg, #e5e5ea 25%, #f2f2f7 50%, #e5e5ea 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    color: transparent !important;
    display: inline-block;
    min-height: 1.2em;
}

.skeleton-heading {
    height: 32px;
    width: 80%;
    margin-bottom: 16px;
    display: block;
}

.skeleton-body {
    height: 100px;
    width: 100%;
    display: block;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Empty State */
.favorites-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
    text-align: center;
}

.empty-heart-icon {
    font-size: 80px;
    background: linear-gradient(135deg, #ff2d55, #ff3b30);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    filter: drop-shadow(0 8px 16px rgba(255, 59, 48, 0.2));
}

.favorites-empty-state h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-main);
}

.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-sec);
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #c7c7cc;
}

/* Primary Action Button */
.primary-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(77, 163, 255, 0.9), rgba(0, 122, 255, 0.9));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        inset 0 0 16px rgba(255, 255, 255, 0.2),
        0 4px 16px rgba(0, 122, 255, 0.3);
    transition: all 0.25s ease;
}

.primary-action-btn:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.2);
}

/* Toast */
.toast {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translate(-50%, -20px);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    z-index: 100;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* --- Side Drawer --- */
.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.side-drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--card-bg);
    z-index: 100;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1);
    display: flex;
    flex-direction: column;
    padding: max(24px, var(--safe-area-top)) 0 calc(24px + var(--safe-area-bottom));
}

.side-drawer.open {
    transform: translateX(280px);
}

.drawer-header {
    padding: 0 24px 24px;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 12px;
}

.drawer-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    padding: 0 16px;
    gap: 4px;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
}

.drawer-link:active {
    background-color: #e5e5ea;
}

.drawer-link i {
    font-size: 24px;
    color: var(--text-sec);
}

/* --- Static Pages Layout --- */
.static-page-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-color);
    min-height: 100vh;
    position: relative;
    animation: fadeIn 0.4s ease;
}

.static-header {
    position: sticky;
    top: 0;
    background: rgba(242, 242, 247, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: max(16px, var(--safe-area-top)) 20px 16px;
    display: flex;
    align-items: center;
    z-index: 20;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.05);
}

.static-header .back-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 24px;
    border-radius: 50%;
    margin-left: -12px;
    transition: background-color 0.2s;
}

.static-header .back-btn:active {
    background-color: rgba(0, 0, 0, 0.05);
}

.static-header h1 {
    font-size: 20px;
    font-weight: 700;
    margin-left: 8px;
}

.static-content {
    padding: 24px 20px 80px;
}

.text-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.text-card h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 32px 0 16px;
    color: var(--text-main);
}

.text-card h2:first-child {
    margin-top: 0;
}

.text-card p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 16px;
}

.text-card p:last-child {
    margin-bottom: 0;
}

.text-card ul {
    margin-bottom: 24px;
    padding-left: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
}

.text-card li {
    margin-bottom: 8px;
}

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--primary);
    color: #fff;
    padding: 16px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.2);
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
    margin-top: 24px;
}

.btn-primary:active {
    transform: scale(0.96);
    background-color: #005bb5;
}

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #25D366;
    /* WhatsApp color */
    color: #fff;
    padding: 16px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.2);
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
    margin-top: 16px;
}

.btn-secondary:active {
    transform: scale(0.96);
    background-color: #1ebc59;
}

/* --- Support Page Specifics --- */
.support-hero {
    text-align: center;
    padding: 24px 0 32px;
}

.support-hero h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-main);
}

.support-hero p {
    font-size: 16px;
    color: var(--text-sec);
}

.search-box {
    position: relative;
    margin-bottom: 32px;
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-sec);
    font-size: 20px;
}

.search-input {
    width: 100%;
    background-color: #e5e5ea;
    border: none;
    border-radius: 12px;
    padding: 14px 16px 14px 48px;
    font-family: inherit;
    font-size: 16px;
    color: var(--text-main);
    outline: none;
    transition: background-color 0.2s;
}

.search-input:focus {
    background-color: #d1d1d6;
}

.help-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
}

.help-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.help-card:active {
    transform: scale(0.95);
}

.help-card i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 12px;
}

.help-card span {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.faq-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-left: 4px;
}

.faq-item {
    background-color: #fff;
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.faq-trigger {
    width: 100%;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
}

.faq-trigger i {
    transition: transform 0.3s;
    color: var(--text-sec);
}

.faq-item.active .faq-trigger i {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #fafafa;
}

.faq-item.active .faq-content {
    max-height: 200px;
    /* Adjust as needed */
}

.faq-inner {
    padding: 0 20px 20px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-sec);
}

/* --- How to Use This Prompt Card (White Frosted Glass) --- */
.how-to-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 24px;
    border: 0.5px solid rgba(255, 255, 255, 0.9);
    padding: 22px 20px 24px;
    margin-bottom: 40px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.06),
        0 1px 4px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.how-to-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.how-to-title::before {
    content: "✦";
    font-size: 14px;
    color: var(--text-main);
    opacity: 0.8;
}

.how-to-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.how-to-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.how-to-step:first-child {
    padding-top: 0;
}

.how-to-step:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.4);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.step-body {
    flex: 1;
    padding-top: 3px;
}

.step-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 3px;
    line-height: 1.3;
}

.step-desc {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-sec);
}

.ai-tips {
    list-style: none;
    padding-left: 0;
    margin-top: 7px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ai-tips li {
    font-size: 12px;
    line-height: 1.5;
    color: #aeaeb2;
    padding-left: 12px;
    position: relative;
}

.ai-tips li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: rgba(0, 122, 255, 0.4);
    font-size: 10px;
    top: 1px;
}