/* ============ RESET & VARIABLES - STUDIO DARK THEME ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    background: #0B0D10;
    color: #E9EEF5;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(64, 224, 255, 0.03) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(64, 224, 255, 0.03) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

main {
    flex: 1;
    position: relative;
    z-index: 1;
    width: 100%;
}

:root {
    --primary: #40E0FF;
    --primary-dark: #00B8D4;
    --primary-light: rgba(64, 224, 255, 0.15);
    --primary-glow: rgba(64, 224, 255, 0.25);
    --secondary: #40E0FF;
    --accent: #00B8D4;
    --warning: #FFB74D;
    --danger: #FF5252;
    --success: #4CAF50;
    --info: #40E0FF;
    --surface-0: #0B0D10;
    --surface-1: #151A21;
    --surface-2: #1E2630;
    --surface-3: #273140;
    --text-primary: #E9EEF5;
    --text-secondary: #C0C8D2;
    --text-tertiary: #9AA5B5;
    --text-muted: #6B7A8F;
    --border: #273140;
    --border-strong: #3A4A60;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 30px rgba(64, 224, 255, 0.25);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --cyan-gradient: linear-gradient(135deg, #40E0FF, #00B8D4);
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 640px) {
    .container { padding: 0 24px; }
}

@media (min-width: 1024px) {
    .container { padding: 0 32px; }
}

.section-padding {
    padding: 30px 0 40px;
}

@media (min-width: 768px) {
    .section-padding { padding: 40px 0 60px; }
}

/* ===== HEADER STYLES ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 13, 16, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #273140;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--cyan-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0B0D10;
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(64, 224, 255, 0.3);
    transition: var(--transition);
}

.logo-link:hover .logo-icon {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 0 25px rgba(64, 224, 255, 0.5);
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #E9EEF5;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.brand-name span {
    color: #40E0FF;
    font-weight: 800;
    position: relative;
}

.brand-name span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--cyan-gradient);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.logo-link:hover .brand-name span::after {
    transform: scaleX(1);
    transform-origin: left;
}

.slogan-badge {
    display: none;
    background: rgba(64, 224, 255, 0.1);
    color: #40E0FF;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 30px;
    border: 1px solid #273140;
    white-space: nowrap;
    align-items: center;
    gap: 4px;
}

.slogan-badge i {
    font-size: 0.55rem;
}

@media (min-width: 480px) {
    .slogan-badge { display: inline-flex; }
}

/* Desktop Navigation */
.nav-desktop { display: none; }

@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
        align-items: center;
        gap: 2px;
        margin: 0 auto;
        padding: 4px;
        background: rgba(21, 26, 33, 0.6);
        border-radius: 60px;
        border: 1px solid #273140;
        backdrop-filter: blur(8px);
    }

    .nav-link {
        color: #9AA5B5;
        text-decoration: none;
        font-size: 0.8rem;
        font-weight: 500;
        transition: all 0.2s ease;
        white-space: nowrap;
        padding: 6px 12px;
        border-radius: 40px;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        border: 1px solid transparent;
    }

    .nav-link i {
        font-size: 0.75rem;
        color: #6B7A8F;
        transition: all 0.2s ease;
    }

    .nav-link span { display: inline; }

    .nav-link:hover {
        color: #40E0FF;
        background: rgba(64, 224, 255, 0.1);
        border-color: rgba(64, 224, 255, 0.2);
        transform: translateY(-1px);
    }

    .nav-link:hover i { color: #40E0FF; }

    .nav-link.active {
        background: var(--cyan-gradient);
        color: #0B0D10;
        border-color: transparent;
        box-shadow: 0 4px 12px rgba(64, 224, 255, 0.3);
    }

    .nav-link.active i { color: #0B0D10; }

    .nav-dropdown { position: relative; }
    .dropdown-toggle { cursor: pointer; }

    .dropdown-menu {
        position: absolute;
        top: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        background: #151A21;
        border-radius: 16px;
        padding: 8px;
        min-width: 200px;
        box-shadow: var(--shadow-lg);
        border: 1px solid #273140;
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
        z-index: 1000;
        backdrop-filter: blur(12px);
    }

    .nav-dropdown:hover .dropdown-menu,
    .dropdown-menu:hover {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .dropdown-menu a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 16px;
        color: #9AA5B5;
        text-decoration: none;
        font-size: 0.8rem;
        border-radius: 10px;
        transition: all 0.2s ease;
    }

    .dropdown-menu a i {
        width: 16px;
        color: #40E0FF;
        font-size: 0.85rem;
    }

    .dropdown-menu a:hover {
        background: rgba(64, 224, 255, 0.1);
        color: #40E0FF;
        transform: translateX(4px);
    }

    .dropdown-menu a.active {
        background: rgba(64, 224, 255, 0.15);
        color: #40E0FF;
        font-weight: 600;
    }

    .new-badge {
        margin-left: auto;
        font-size: 0.55rem;
        background: #40E0FF;
        color: #0B0D10;
        padding: 2px 6px;
        border-radius: 10px;
        font-weight: 600;
    }
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Auth Button Styles */
.auth-btn {
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #1E2630;
    border: 1px solid #273140;
    color: #E9EEF5;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: var(--transition);
    height: 44px;
}

.auth-btn i {
    font-size: 0.8rem;
    color: #40E0FF;
}

.auth-btn:hover {
    background: var(--cyan-gradient);
    border-color: transparent;
    color: #0B0D10;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(64, 224, 255, 0.3);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #1E2630;
    border: 1px solid #273140;
    border-radius: 60px;
    padding: 3px 3px 3px 10px;
    transition: var(--transition);
    height: 44px;
}

.user-profile:hover {
    border-color: #40E0FF;
    background: rgba(64, 224, 255, 0.1);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--cyan-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0B0D10;
    font-weight: 600;
    font-size: 0.9rem;
}

.sign-out-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #9AA5B5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.sign-out-btn:hover {
    color: #FF5252;
    transform: scale(1.1);
    background: rgba(255, 82, 82, 0.1);
}

@media (max-width: 768px) {
    .auth-btn { padding: 6px 12px; height: 40px; font-size: 0.75rem; }
    .user-profile { padding: 2px 2px 2px 8px; height: 40px; }
    .user-avatar { width: 32px; height: 32px; font-size: 0.8rem; }
    .sign-out-btn { width: 36px; height: 36px; }
}

@media (max-width: 480px) {
    .auth-btn { padding: 6px 10px; height: 36px; font-size: 0.7rem; }
    .auth-btn span { display: none; }
    .auth-btn i { font-size: 0.9rem; margin: 0; }
    .user-profile { padding: 2px; height: 36px; }
    .user-avatar { width: 28px; height: 28px; font-size: 0.7rem; }
    .sign-out-btn { width: 36px; height: 36px; }
}

@keyframes profileSlideIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.user-profile { animation: profileSlideIn 0.3s ease-out; }

/* Ko-fi Button */
.kofi-link {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1E2630;
    border: 1px solid #273140;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    overflow: visible;
    text-decoration: none;
    flex-shrink: 0;
}

.kofi-link:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: #40E0FF;
    background: var(--cyan-gradient);
    box-shadow: 0 5px 20px rgba(64, 224, 255, 0.4);
}

.kofi-link .coffee-cup {
    position: relative;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.kofi-link .cup-body {
    position: relative;
    width: 16px;
    height: 14px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: cupFill 2s ease-in-out infinite alternate;
}

.kofi-link .cup-body::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 10px;
    background: linear-gradient(135deg, #FFE55C, #FFB347);
    border-radius: 0 0 6px 6px;
    opacity: 0.8;
}

.kofi-link .cup-handle {
    position: absolute;
    top: 2px;
    right: -4px;
    width: 4px;
    height: 7px;
    border: 2px solid #FFD700;
    border-left: none;
    border-radius: 0 4px 4px 0;
    opacity: 0.8;
}

.kofi-link .coffee-liquid {
    position: absolute;
    top: -2px;
    left: 2px;
    width: 12px;
    height: 3px;
    background: linear-gradient(90deg, #8B4513, #A0522D);
    border-radius: 2px;
    animation: liquidWave 2s ease-in-out infinite;
}

.kofi-link .coffee-steam {
    position: absolute;
    top: -8px;
    left: 4px;
    display: flex;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kofi-link:hover .coffee-steam { opacity: 1; }

.kofi-link .coffee-steam span {
    width: 2px;
    height: 8px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 1px;
    animation: steam 1.5s ease-in-out infinite;
}

.kofi-link .coffee-steam span:nth-child(1) { animation-delay: 0s; }
.kofi-link .coffee-steam span:nth-child(2) { animation-delay: 0.3s; }
.kofi-link .coffee-steam span:nth-child(3) { animation-delay: 0.6s; }

.kofi-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: var(--cyan-gradient);
    color: #0B0D10;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 5px 15px rgba(64, 224, 255, 0.4);
    pointer-events: none;
    z-index: 10;
}

.kofi-link:hover .kofi-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: -40px;
    transform: translateX(-50%) scale(1);
}

.kofi-link::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--cyan-gradient);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(10px);
}

.kofi-link:hover::after { opacity: 0.5; }

@keyframes cupFill {
    0% { transform: scaleY(1); }
    100% { transform: scaleY(1.05); }
}

@keyframes liquidWave {
    0%, 100% { transform: translateX(0) scaleX(1); }
    25% { transform: translateX(1px) scaleX(1.05); }
    75% { transform: translateX(-1px) scaleX(0.95); }
}

@keyframes steam {
    0% { transform: translateY(0) scaleX(1); opacity: 0.8; }
    50% { transform: translateY(-5px) scaleX(1.5); opacity: 0.4; }
    100% { transform: translateY(-10px) scaleX(2); opacity: 0; }
}

/* Mobile Menu */
.mobile-menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1E2630;
    border: 1px solid #273140;
    display: none;
    align-items: center;
    justify-content: center;
    color: #40E0FF;
    transition: var(--transition);
    flex-shrink: 0;
    cursor: pointer;
}

.mobile-menu-btn i { font-size: 1rem; }

.mobile-menu-btn:hover {
    background: var(--cyan-gradient);
    color: #0B0D10;
    transform: translateY(-2px);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(64, 224, 255, 0.3);
}

@media (max-width: 1024px) { .mobile-menu-btn { display: flex; } }
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: #151A21;
    z-index: 1001;
    transition: right 0.3s ease;
    padding: 80px 20px 20px;
    border-left: 1px solid #273140;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.mobile-menu.active { right: 0; }

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1E2630;
    border: 1px solid #273140;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #40E0FF;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-close:hover {
    background: var(--cyan-gradient);
    color: #0B0D10;
    transform: rotate(90deg);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: #9AA5B5;
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: var(--transition);
    min-height: 48px;
}

.mobile-nav-link i {
    width: 20px;
    color: #40E0FF;
}

.mobile-nav-link:hover {
    background: rgba(64, 224, 255, 0.1);
    color: #40E0FF;
    transform: translateX(5px);
}

.mobile-nav-link.active {
    background: rgba(64, 224, 255, 0.15);
    color: #40E0FF;
    font-weight: 600;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Breakpoints */
@media (min-width: 768px) {
    .header-container { padding: 10px 20px; }
    .logo-icon { width: 38px; height: 38px; font-size: 1.2rem; }
    .brand-name { font-size: 1.3rem; }
    .kofi-link, .mobile-menu-btn { width: 42px; height: 42px; }
}

@media (max-width: 768px) {
    .header-container { padding: 10px 14px; }
    .brand-name { font-size: 1.1rem; }
    .logo-icon { width: 34px; height: 34px; font-size: 1rem; }
    .kofi-link, .mobile-menu-btn { width: 38px; height: 38px; }
}

@media (max-width: 480px) {
    .header-container { padding: 6px 10px; gap: 4px; }
    .logo-icon { width: 30px; height: 30px; font-size: 0.9rem; }
    .brand-name { font-size: 0.95rem; }
    .slogan-badge { display: none; }
    .kofi-link, .mobile-menu-btn { width: 34px; height: 34px; }
}

@media (max-width: 360px) {
    .header-container { padding: 4px 8px; gap: 3px; }
    .logo-icon { width: 26px; height: 26px; font-size: 0.8rem; }
    .brand-name { font-size: 0.85rem; }
    .kofi-link, .mobile-menu-btn { width: 30px; height: 30px; }
}

/* Notch Support */
@supports (padding: max(0px)) {
    .header-container, .container {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .kofi-link:hover, .mobile-menu-btn:hover, .nav-link:hover { transform: none; }
    .kofi-link:active, .mobile-menu-btn:active, .nav-link:active { transform: scale(0.95); opacity: 0.8; }
}

/* ============ COLLECTION HEADER ============ */
.collection-header {
    background: var(--cyan-gradient);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    margin-bottom: 30px;
    color: #0B0D10;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .collection-header {
        padding: 60px 40px;
        border-radius: var(--radius-xl);
        margin-bottom: 40px;
    }
}

.collection-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.collection-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.collection-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (min-width: 768px) {
    .collection-badge {
        padding: 8px 20px;
        font-size: 0.8rem;
        margin-bottom: 20px;
    }
}

.collection-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .collection-header h1 {
        font-size: 3rem;
        letter-spacing: -1px;
        margin-bottom: 16px;
    }
}

.collection-header h1 span {
    color: rgba(11, 13, 16, 0.7);
    font-weight: 400;
}

.collection-description {
    font-size: 0.95rem;
    max-width: 700px;
    opacity: 0.9;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .collection-description {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
}

.collection-stats {
    display: flex;
    gap: 20px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

@media (min-width: 768px) { .collection-stats { gap: 30px; } }

.stat { display: flex; flex-direction: column; }

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

@media (min-width: 768px) { .stat-number { font-size: 1.8rem; } }

.stat-label {
    font-size: 0.7rem;
    opacity: 0.8;
}

@media (min-width: 768px) { .stat-label { font-size: 0.8rem; } }

/* ============ CUSTOM TEXT STICKY ============ */
.custom-text-sticky-wrapper {
    position: sticky;
    top: 72px;
    z-index: 900;
    margin-bottom: 24px;
}

@media (max-width: 768px) { .custom-text-sticky-wrapper { top: 60px; } }

.custom-text-section {
    background: #151A21;
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid #273140;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

@media (min-width: 768px) { .custom-text-section { padding: 24px; } }

.custom-text-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #40E0FF;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .custom-text-label {
        gap: 8px;
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
}

.custom-text-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #273140;
    border-radius: 40px;
    font-size: 0.9rem;
    transition: var(--transition);
    background: #1E2630;
    color: #E9EEF5;
}

@media (min-width: 768px) {
    .custom-text-input {
        padding: 14px 20px;
        font-size: 1rem;
    }
}

.custom-text-input:focus {
    outline: none;
    border-color: #40E0FF;
    box-shadow: 0 0 0 3px rgba(64, 224, 255, 0.2);
}

.custom-text-hint {
    font-size: 0.75rem;
    color: #6B7A8F;
    margin-top: 8px;
}

@media (min-width: 768px) { .custom-text-hint { font-size: 0.8rem; } }

/* ============ FILTERS SECTION ============ */
.filters-section { margin-bottom: 24px; }

@media (min-width: 768px) { .filters-section { margin-bottom: 30px; } }

.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.filter-tabs::-webkit-scrollbar { height: 4px; }
.filter-tabs::-webkit-scrollbar-track { background: #273140; border-radius: 10px; }
.filter-tabs::-webkit-scrollbar-thumb { background: #40E0FF; border-radius: 10px; }

@media (min-width: 768px) {
    .filter-tabs {
        gap: 10px;
        margin-bottom: 20px;
        overflow-x: visible;
        flex-wrap: wrap;
        white-space: normal;
    }
}

.filter-tab {
    padding: 8px 16px;
    border-radius: 40px;
    background: #1E2630;
    border: 1px solid #273140;
    color: #9AA5B5;
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    min-height: 40px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .filter-tab {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

.filter-tab:hover {
    background: rgba(64, 224, 255, 0.1);
    border-color: #40E0FF;
    color: #40E0FF;
}

.filter-tab.active {
    background: var(--cyan-gradient);
    border-color: transparent;
    color: #0B0D10;
}

.filter-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #151A21;
    padding: 16px;
    border-radius: 30px;
    border: 1px solid #273140;
}

@media (min-width: 640px) {
    .filter-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
    }
}

.filter-select {
    padding: 8px 30px 8px 16px;
    border: 1px solid #273140;
    border-radius: 40px;
    font-size: 0.85rem;
    background: #1E2630 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2340E0FF' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none;
    cursor: pointer;
    width: 100%;
    min-width: 140px;
    min-height: 44px;
    color: #E9EEF5;
}

@media (min-width: 640px) {
    .filter-select {
        width: auto;
        font-size: 0.9rem;
    }
}

.filter-select option {
    background: #151A21;
    color: #E9EEF5;
}

.results-count {
    color: #6B7A8F;
    font-size: 0.85rem;
}

.results-count strong { color: #40E0FF; }

/* ============ PAIRINGS GRID ============ */
.pairings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 24px;
    min-height: 300px;
}

@media (min-width: 640px) {
    .pairings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .pairings-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        margin-bottom: 30px;
    }
}

/* ============ LOADING SKELETON ============ */
.pairing-skeleton {
    background: linear-gradient(90deg, #151A21 25%, #1E2630 50%, #151A21 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite linear;
    border-radius: var(--radius-lg);
    min-height: 380px;
    border: 1px solid #273140;
}

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

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #151A21;
    border-radius: var(--radius-lg);
    border: 2px dashed #273140;
}

.empty-state i {
    font-size: 3rem;
    color: #40E0FF;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.3rem;
    color: #E9EEF5;
    margin-bottom: 8px;
}

.empty-state p {
    color: #6B7A8F;
    margin-bottom: 20px;
}

.empty-state .reset-btn {
    padding: 10px 24px;
    background: var(--cyan-gradient);
    border: none;
    border-radius: 40px;
    color: #0B0D10;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.empty-state .reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(64, 224, 255, 0.3);
}

.pairing-card {
    background: #151A21;
    border-radius: var(--radius-lg);
    border: 1px solid #273140;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.pairing-card:hover {
    transform: translateY(-4px);
    border-color: #40E0FF;
    box-shadow: var(--shadow-lg);
}

.pairing-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(64, 224, 255, 0.1);
    border-radius: 30px;
    font-size: 0.65rem;
    font-weight: 600;
    color: #40E0FF;
    margin: 12px 0 0 12px;
    align-self: flex-start;
    border: 1px solid #273140;
}

@media (min-width: 768px) {
    .pairing-badge {
        padding: 4px 12px;
        font-size: 0.7rem;
        margin: 16px 0 0 16px;
    }
}

.pairing-preview {
    padding: 20px;
    background: #1E2630;
    border-bottom: 1px solid #273140;
    text-align: center;
}

@media (min-width: 768px) { .pairing-preview { padding: 25px; } }

.preview-heading {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
    color: #E9EEF5;
    word-break: break-word;
}

@media (min-width: 768px) {
    .preview-heading {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
}

.preview-body {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #9AA5B5;
    max-width: 280px;
    margin: 0 auto;
    word-break: break-word;
}

@media (min-width: 768px) {
    .preview-body {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

.preview-meta {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
    font-size: 0.65rem;
    color: #6B7A8F;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .preview-meta {
        gap: 15px;
        margin-top: 15px;
        font-size: 0.7rem;
    }
}

.preview-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.preview-meta i {
    color: #40E0FF;
    font-size: 0.65rem;
}

.pairing-info {
    padding: 16px;
    flex: 1;
}

@media (min-width: 768px) { .pairing-info { padding: 20px; } }

.font-names {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

@media (min-width: 768px) { .font-names { margin-bottom: 15px; } }

.heading-font, .body-font { display: flex; flex-direction: column; }

.font-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: #6B7A8F;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) { .font-label { font-size: 0.65rem; } }

.font-name {
    font-weight: 700;
    color: #E9EEF5;
    font-size: 0.9rem;
}

@media (min-width: 768px) { .font-name { font-size: 1rem; } }

.font-name small {
    font-weight: 400;
    color: #6B7A8F;
    font-size: 0.65rem;
}

.font-separator {
    color: #40E0FF;
    font-size: 1rem;
}

.pairing-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .pairing-tags {
        gap: 6px;
        margin-bottom: 20px;
    }
}

.tag {
    padding: 3px 8px;
    background: rgba(64, 224, 255, 0.1);
    border-radius: 30px;
    font-size: 0.65rem;
    color: #40E0FF;
    border: 1px solid #273140;
}

@media (min-width: 768px) {
    .tag {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
}

.tag.popular {
    background: var(--cyan-gradient);
    color: #0B0D10;
}

.personality-match {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 15px;
    padding: 10px;
    background: #1E2630;
    border-radius: var(--radius-md);
    border: 1px solid #273140;
}

@media (min-width: 480px) {
    .personality-match {
        flex-direction: row;
        align-items: center;
    }
}

.personality-icons {
    display: flex;
    gap: 2px;
}

.personality-icons i {
    color: #40E0FF;
    font-size: 0.7rem;
}

@media (min-width: 768px) { .personality-icons i { font-size: 0.8rem; } }

.personality-text {
    font-size: 0.75rem;
    color: #9AA5B5;
    flex: 1;
}

@media (min-width: 768px) { .personality-text { font-size: 0.8rem; } }

.personality-text strong { color: #40E0FF; }

.pairing-actions {
    display: flex;
    gap: 6px;
    margin-top: auto;
    flex-wrap: wrap;
}

@media (min-width: 480px) { .pairing-actions { gap: 8px; } }

.action-btn {
    flex: 1;
    min-width: 70px;
    padding: 8px 4px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: var(--transition);
    background: #1E2630;
    color: #9AA5B5;
    border: 1px solid #273140;
    text-decoration: none;
    min-height: 40px;
}

@media (min-width: 768px) {
    .action-btn {
        padding: 10px 6px;
        font-size: 0.75rem;
        gap: 5px;
    }
}

.action-btn:hover {
    background: rgba(64, 224, 255, 0.1);
    border-color: #40E0FF;
    color: #40E0FF;
}

.action-btn i {
    font-size: 0.7rem;
    transition: var(--transition);
}

.action-btn.primary {
    background: var(--cyan-gradient);
    color: #0B0D10;
    border-color: transparent;
}

.action-btn.primary:hover {
    background: #40E0FF;
    box-shadow: 0 4px 12px rgba(64, 224, 255, 0.3);
}

/* ============ LOAD MORE BUTTON ============ */
.load-more-container {
    text-align: center;
    margin: 24px 0 30px;
}

@media (min-width: 768px) {
    .load-more-container {
        margin: 30px 0 40px;
    }
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 40px;
    background: #1E2630;
    border: 1px solid #273140;
    color: #9AA5B5;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    min-height: 48px;
}

@media (min-width: 768px) {
    .load-more-btn {
        padding: 14px 32px;
        font-size: 1rem;
        gap: 10px;
    }
}

.load-more-btn:hover {
    background: rgba(64, 224, 255, 0.1);
    border-color: #40E0FF;
    color: #40E0FF;
    transform: translateY(-2px);
}

.load-more-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s;
}

.load-more-btn:hover i { transform: translateY(3px); }

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============ COLLECTIONS SECTION ============ */
.collections-section {
    margin: 40px 0;
}

@media (min-width: 768px) { .collections-section { margin: 60px 0; } }

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

@media (min-width: 768px) { .section-header { margin-bottom: 40px; } }

.section-badge {
    background: rgba(64, 224, 255, 0.1);
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #40E0FF;
    border: 1px solid #273140;
    display: inline-block;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .section-badge {
        padding: 8px 20px;
        font-size: 0.75rem;
        margin-bottom: 16px;
    }
}

.section-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #E9EEF5;
    margin-bottom: 10px;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
        letter-spacing: -1px;
        margin-bottom: 12px;
    }
}

.section-header p {
    color: #9AA5B5;
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.9rem;
}

@media (min-width: 768px) { .section-header p { font-size: 1rem; } }

.collections-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) { .collections-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
    .collections-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.collection-card {
    background: #151A21;
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    border: 1px solid #273140;
    transition: var(--transition);
    text-decoration: none;
    display: block;
}

@media (min-width: 768px) { .collection-card { padding: 32px 24px; } }

.collection-card:hover {
    transform: translateY(-4px);
    border-color: #40E0FF;
    box-shadow: var(--shadow-lg);
}

.collection-icon {
    width: 56px;
    height: 56px;
    background: var(--cyan-gradient);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0B0D10;
    font-size: 1.5rem;
    margin: 0 auto 16px;
}

@media (min-width: 768px) {
    .collection-icon {
        width: 64px;
        height: 64px;
        border-radius: 20px;
        font-size: 1.8rem;
        margin: 0 auto 20px;
    }
}

.collection-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #E9EEF5;
    margin-bottom: 6px;
}

@media (min-width: 768px) {
    .collection-card h3 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
}

.collection-card p {
    color: #9AA5B5;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .collection-card p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
}

.collection-link {
    color: #40E0FF;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

@media (min-width: 768px) {
    .collection-link {
        font-size: 0.9rem;
        gap: 6px;
    }
}

.collection-link i { transition: transform 0.2s; }
.collection-card:hover .collection-link i { transform: translateX(4px); }

/* ============ CTA SECTION ============ */
.cta-section {
    background: var(--cyan-gradient);
    border-radius: var(--radius-lg);
    padding: 32px 20px;
    text-align: center;
    color: #0B0D10;
    margin: 40px 0;
}

@media (min-width: 768px) {
    .cta-section {
        padding: 48px 32px;
        border-radius: var(--radius-xl);
        margin: 60px 0;
    }
}

.cta-section h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .cta-section h2 {
        font-size: 2rem;
        margin-bottom: 16px;
    }
}

.cta-section p {
    opacity: 0.8;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .cta-section p {
        margin-bottom: 24px;
        font-size: 1rem;
    }
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
        max-width: none;
        gap: 16px;
    }
}

.cta-btn {
    padding: 12px 20px;
    border-radius: 40px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
    min-height: 48px;
}

@media (min-width: 768px) {
    .cta-btn {
        padding: 14px 28px;
        gap: 8px;
    }
}

.cta-btn.white {
    background: white;
    color: #40E0FF;
}

.cta-btn.outline {
    background: rgba(11, 13, 16, 0.1);
    color: #0B0D10;
    border: 1.5px solid rgba(11, 13, 16, 0.2);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============ TOAST NOTIFICATION ============ */
#toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--cyan-gradient);
    color: #0B0D10;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 9999;
    transition: transform 0.3s ease;
    max-width: 90%;
    white-space: nowrap;
}

@media (min-width: 768px) {
    #toast {
        padding: 14px 28px;
        font-size: 1rem;
        gap: 10px;
    }
}

#toast.show { transform: translateX(-50%) translateY(0); }

/* ============ NEWSLETTER SECTION ============ */
.newsletter-section {
    text-align: center;
    margin: 40px auto;
    max-width: 600px;
    padding: 32px;
    background: #1E2630;
    border-radius: var(--radius-lg);
    border: 1px solid #273140;
}

@media (max-width: 767px) {
    .newsletter-section {
        padding: 24px 20px;
        margin: 30px auto;
    }
}

.newsletter-title {
    color: #E9EEF5;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.newsletter-description {
    color: #9AA5B5;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

@media (min-width: 600px) {
    .newsletter-form {
        flex-direction: row;
        justify-content: center;
    }
}

.newsletter-input {
    padding: 14px 20px;
    border-radius: 40px;
    border: 1px solid #273140;
    background: #151A21;
    color: #E9EEF5;
    width: 100%;
    max-width: 280px;
    font-size: 0.9rem;
    min-height: 48px;
}

.newsletter-input:focus {
    outline: none;
    border-color: #40E0FF;
}

.newsletter-button {
    padding: 14px 28px;
    border-radius: 40px;
    background: var(--cyan-gradient);
    color: #0B0D10;
    border: none;
    font-weight: 600;
    cursor: pointer;
    width: fit-content;
    font-size: 0.9rem;
    transition: var(--transition);
    min-height: 48px;
}

@media (max-width: 600px) {
    .newsletter-button {
        width: 100%;
        max-width: 280px;
    }
}

.newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(64, 224, 255, 0.3);
}

/* ============ UTILITY CLASSES ============ */
.seo-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ============ VISUALLY HIDDEN (screen reader only) ============ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-contrast: high) {
    :root {
        --primary: #00ffff;
        --primary-dark: #0080ff;
        --border: #ffffff;
    }
}

.dropdown-group-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #40E0FF;
    padding: 8px 12px 4px;
    margin-top: 4px;
    border-bottom: 1px solid #273140;
}

.dropdown-group-title:first-of-type { margin-top: 0; }

.gradient-text {
    background: var(--cyan-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============ FOCUS INDICATORS (accessibility) ============ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
.pairing-card:focus-visible,
.action-btn:focus-visible,
.filter-tab:focus-visible,
.collection-card:focus-visible,
.cta-btn:focus-visible,
.custom-text-input:focus-visible {
    outline: 3px solid #40E0FF;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Responsive images */
img { max-width: 100%; height: auto; }

/* ============ REDUCED MOTION (accessibility) ============ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .pairing-skeleton {
        animation: none;
        background: #1E2630;
    }
    .pairing-card {
        animation: none;
    }
    .user-profile {
        animation: none;
    }
    .kofi-link .cup-body,
    .kofi-link .coffee-liquid,
    .kofi-link .coffee-steam span,
    .footer-mesh-glow,
    .pulse-dot {
        animation: none;
    }
}

/* ============ PRINT STYLES ============ */
@media print {
    .header,
    .mobile-menu,
    .mobile-menu-overlay,
    .filters-section,
    .custom-text-sticky-wrapper,
    .pairing-actions,
    .load-more-container,
    .cta-section,
    .modern-footer,
    .fp-aff-wrap,
    #toast,
    #globalAuthModal,
    #persistentVerificationBanner {
        display: none !important;
    }
    .pairing-card {
        break-inside: avoid;
        page-break-inside: avoid;
        border: 1px solid #ccc;
        box-shadow: none;
    }
    body {
        background: white;
        color: black;
    }
    .preview-heading,
    .font-name {
        color: black;
    }
    .preview-body,
    .personality-text {
        color: #333;
    }
}