/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0d0d0d;
    --bg-secondary: #1f1f1f;
    --bg-tertiary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #c4c4c4;
    --accent-pink: #a0002a;
    --accent-pink-hover: #c40034;
    --border-color: #3d3d3d;
    --sidebar-width: 220px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    font-size: 14px;
}

/* Screen reader only - visually hidden but accessible to assistive technology */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link for keyboard users */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-pink);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.logo {
    width: 110px;
    height: auto;
}

/* Minutes Badge - Elegant & Compact */
.minutes-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: auto 0.75rem 0.4rem;
    padding: 0.35rem 0.6rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.minutes-badge:hover {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
}

.minutes-badge:focus-visible {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

.minutes-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #22c55e;
}

.minutes-icon svg {
    width: 100%;
    height: 100%;
}

.minutes-display {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.minutes-amount {
    font-size: 0.8rem;
    font-weight: 600;
    color: #22c55e;
}

.minutes-label {
    font-size: 0.7rem;
    color: rgba(34, 197, 94, 0.7);
    font-weight: 400;
}

.minutes-plus {
    font-size: 0.9rem;
    font-weight: 600;
    color: #22c55e;
    margin-left: auto;
}

.supporter-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: auto 0.75rem 0.4rem;
    padding: 0.45rem 0.7rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.1) 100%);
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 14px;
    color: #fbbf24;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.supporter-badge:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25) 0%, rgba(245, 158, 11, 0.2) 100%);
    border-color: rgba(251, 191, 36, 0.6);
    transform: translateY(-1px);
}

.supporter-badge:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

.supporter-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.supporter-icon svg {
    width: 100%;
    height: 100%;
}

.sidebar-nav {
    padding: 0.75rem 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-item.active {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border-left-color: var(--accent-pink);
}

.nav-item:focus-visible {
    outline: 2px solid var(--accent-pink);
    outline-offset: -2px;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Live Calls: same look as every other nav item, just a small "New" badge. */
.nav-item-live-call {
    position: relative;
}

.nav-new-badge {
    margin-left: auto;
    padding: 0.1rem 0.4rem;
    background: var(--accent-pink);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 8px;
    flex-shrink: 0;
}

.sidebar-bottom {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bottom-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.8rem;
}

.bottom-link:hover {
    color: var(--text-primary);
}

.bottom-link:focus-visible {
    outline: 2px solid var(--accent-pink);
    outline-offset: 2px;
    color: var(--text-primary);
}

.bottom-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Language Selector */
.language-selector {
    padding: 0.75rem 1rem;
    position: relative;
}

.language-toggle {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--brand-color);
}

.language-flag {
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
}

.language-name {
    flex: 1;
    text-align: left;
}

.language-chevron {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.5;
    transition: transform 0.2s ease;
}

.language-toggle:hover .language-chevron {
    opacity: 0.8;
}

.language-dropdown {
    position: absolute;
    bottom: 100%;
    left: 1rem;
    right: 1rem;
    background: #1a1a1a;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    cursor: pointer;
    text-align: left;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.language-option.active {
    background: var(--brand-color);
    color: white;
}

.language-option.active .language-flag {
    filter: brightness(1.2);
}

.language-native-name {
    flex: 1;
}

.sidebar-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-link:focus-visible {
    outline: 2px solid var(--accent-pink);
    outline-offset: 2px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    position: fixed;
    top: 0.875rem;
    left: 1rem;
    z-index: 1001;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.625rem;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.hamburger:focus-visible {
    outline: 2px solid var(--accent-pink);
    outline-offset: 2px;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Mobile Logo - hidden on desktop */
.mobile-logo {
    display: none;
}

/* Top Bar */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1.5rem;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    gap: 0.6rem;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
}

.tabs {
    display: flex;
    gap: 0.3rem;
}

.tab {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.7rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    text-decoration: none;
}

.tab:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.tab.active {
    background-color: var(--accent-pink);
    border-color: var(--accent-pink);
    color: var(--text-primary);
}

.tab-icon {
    width: 16px;
    height: 16px;
}

/* Top Actions */
.top-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Preference Dropdown */
.preference-dropdown {
    position: relative;
}

.preference-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.7rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.preference-btn:hover {
    border-color: var(--accent-pink);
}

.preference-icon,
.dropdown-arrow {
    width: 16px;
    height: 16px;
}

.preference-menu {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    min-width: 180px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.4rem;
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.preference-menu.active {
    display: flex;
}

.preference-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.7rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 0.8rem;
    text-align: left;
}

.preference-option:hover {
    background: var(--bg-tertiary);
}

.option-icon {
    width: 16px;
    height: 16px;
}

/* Orientation symbols (SVG icons shared with ClipClimax). */
.orientation-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: inline-block;
}

.orientation-icon.preference-icon {
    width: 20px;
    height: 20px;
}

/* Login Button */
.login-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    background: var(--accent-pink);
    border: 1px solid var(--accent-pink);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
}

.login-btn:hover {
    background: var(--accent-pink-hover);
    border-color: var(--accent-pink-hover);
}

.login-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.login-link:hover {
    color: var(--text-primary);
}

.create-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    background: var(--accent-pink);
    border: none;
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.create-btn:hover {
    background: var(--accent-pink-hover);
}

/* "Get started" dropdown (top bar) */
.start-dropdown {
    position: relative;
}

.start-menu {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    min-width: 190px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.4rem;
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 60;
}

.start-menu.active {
    display: flex;
}

.start-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.7rem;
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.82rem;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.start-option:hover {
    background: var(--bg-tertiary);
}

.start-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.login-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Hero Banner */
.hero-banner {
    width: 100%;
    aspect-ratio: 28 / 9;
    background-size: cover;
    background-position: top center;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
}

/* Homepage hero: align to top with bigger title on desktop */
@media (min-width: 769px) {
    .hero-home .hero-content {
        align-items: flex-start;
        padding-top: 2.5rem;
    }

    .hero-home .hero-title {
        font-size: 3rem;
    }
}

.hero-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1.5rem 1.5rem 2rem;
    position: relative;
}

.hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.2rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0;
    text-align: right;
}

.hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
}

.hero-btn {
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    white-space: nowrap;
    text-decoration: none;
}

.hero-btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.hero-btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.hero-btn-secondary {
    background: var(--accent-pink);
    color: var(--text-primary);
}

.hero-btn-secondary:hover {
    background: var(--accent-pink-hover);
}

.hero-btn:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

.hero-btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Character Grid */
.character-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.character-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 3/4;
}

.character-card:hover {
    border-color: var(--accent-pink);
    box-shadow: 0 8px 20px rgba(160, 0, 42, 0.4);
}

.character-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--bg-tertiary);
    transition: transform 0.3s ease;
}

@media (min-width: 792px) {
    .character-card:hover .character-image {
        transform: scale(1.05);
    }
}

.character-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.2rem 0.8rem 0.8rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
}

.character-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.character-age {
    display: none;
}

.character-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.new-badge {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: var(--accent-pink);
    color: var(--text-primary);
    padding: 0.2rem 0.6rem;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
}

.character-actions {
    display: none;
}

/* Actor Video Cards */
.actor-card {
    position: relative;
}

.actor-card .actor-image {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.character-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.actor-card .character-info {
    z-index: 2;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .character-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 791px) {
    :root {
        --sidebar-width: 0;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        max-width: 80vw;
    }

    .sidebar.active {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    }

    .hamburger {
        display: flex;
        position: fixed;
        top: 5px;
        left: 5px;
        width: 44px;
        height: 44px;
        padding: 0.625rem;
        flex-shrink: 0;
        z-index: 1001;
    }

    .hamburger span {
        width: 20px;
    }

    .main-content {
        margin-left: 0;
    }

    /* Mobile logo above toolbar */
    .mobile-logo {
        display: block;
        position: sticky;
        top: 0;
        z-index: 101;
        text-align: center;
        background-color: var(--bg-secondary);
        padding: 0.5rem 0;
    }

    .mobile-logo img {
        height: 24px;
        width: auto;
    }

    .sidebar-header {
        padding-left: 4rem;
    }

    /* Mobile toolbar - single row */
    .top-bar {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
        flex-wrap: nowrap;
        position: sticky;
        top: 40px;
        z-index: 100;
        background-color: var(--bg-secondary);
    }

    /* Hamburger first */
    .hamburger {
        order: -3;
    }

    /* Tabs */
    .tabs {
        order: -2;
        display: flex;
        gap: 0.375rem;
        flex: 0 0 auto;
    }

    .tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        gap: 0.375rem;
    }

    .tab-icon {
        width: 14px;
        height: 14px;
    }

    /* Top actions */
    .top-actions {
        order: -1;
        display: flex;
        gap: 0.5rem;
        margin-left: auto;
        flex-shrink: 0;
    }

    .preference-dropdown {
        display: flex;
        order: -2;
    }

    .preference-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        gap: 0.375rem;
        min-width: auto;
    }

    .preference-btn .preference-icon,
    .orientation-icon.preference-icon {
        display: none;
    }

    .dropdown-arrow {
        width: 14px;
        height: 14px;
    }

    .login-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        white-space: nowrap;
        gap: 0.375rem;
    }

    .login-text-extended {
        display: none;
    }

    .login-icon {
        width: 14px;
        height: 14px;
    }

    .content-area {
        padding: 1.5rem 1rem;
    }

    .hero-banner {
        border-radius: 8px;
        margin-bottom: 1.5rem;
    }

    .hero-home {
        aspect-ratio: 16 / 9;
    }

    .hero-home::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 100%);
        pointer-events: none;
        z-index: 1;
    }

    .hero-home .hero-content {
        align-items: flex-start;
        justify-content: flex-end;
        z-index: 2;
    }

    .hero-content {
        padding: 1.5rem 1rem 0.25rem;
    }

    .hero-right {
        gap: 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.625rem;
        align-items: stretch;
    }

    .hero-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
    }

    .hero-btn-icon {
        width: 16px;
        height: 16px;
    }

    .page-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        padding-bottom: 0;
    }

    .character-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .character-card {
        border-radius: 10px;
    }

    .character-info {
        padding: 1rem 0.875rem 0.875rem;
    }

    .character-name {
        font-size: 1.125rem;
        margin-bottom: 0.375rem;
    }

    .character-description {
        font-size: 0.8rem;
    }

    .new-badge {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.2rem 0.625rem;
        font-size: 0.7rem;
    }

    /* Language selector mobile fixes */
    .language-selector {
        position: relative;
        z-index: 1;
    }

    .language-dropdown {
        position: fixed !important;
        bottom: auto !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%) scale(0.95) !important;
        width: calc(100vw - 2rem) !important;
        max-width: 320px !important;
        max-height: 70vh !important;
        margin: 0 !important;
        z-index: 999999 !important;
        overflow-y: scroll !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-y: contain !important;
        touch-action: pan-y !important;
    }

    .language-dropdown.active {
        transform: translate(-50%, -50%) scale(1) !important;
    }

    /* Ensure language options are touchable */
    .language-option {
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: 0.625rem 0.75rem;
        gap: 0.5rem;
    }

    .hamburger {
        width: 40px;
        height: 40px;
        padding: 0.5rem;
    }

    .hamburger span {
        width: 18px;
    }

    .tab {
        padding: 0.4rem 0.625rem;
        font-size: 0.75rem;
        gap: 0.25rem;
    }

    .tab-icon {
        width: 12px;
        height: 12px;
    }

    .preference-btn {
        padding: 0.4rem 0.625rem;
        font-size: 0.75rem;
    }

    .dropdown-arrow {
        width: 12px;
        height: 12px;
    }

    .login-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
        gap: 0.25rem;
    }

    .login-icon {
        width: 12px;
        height: 12px;
    }

    .content-area {
        padding: 1.25rem 0.75rem;
    }

    .hero-banner {
        border-radius: 6px;
        margin-bottom: 1.25rem;
    }

    .hero-content {
        padding: 1rem 0.75rem 0.25rem;
    }

    .hero-right {
        gap: 0.75rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .hero-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .hero-btn-icon {
        width: 12px;
        height: 12px;
    }

    .character-grid {
        gap: 0.75rem;
    }

    .character-info {
        padding: 0.875rem 0.625rem 0.625rem;
    }

    .character-name {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .character-description {
        font-size: 0.75rem;
        line-height: 1.3;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    max-width: 480px;
    width: 90%;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Minutes Modal */
.minutes-modal {
    max-width: 400px;
}

.minutes-modal-top {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, transparent 100%);
    border-bottom: 1px solid rgba(34, 197, 94, 0.2);
    margin: -1.5rem -1.5rem 0;
}

.modal-minutes-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    color: #22c55e;
}

.minutes-balance {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.minutes-count {
    font-size: 1.5rem;
    font-weight: 600;
    color: #22c55e;
    line-height: 1;
}

.minutes-modal-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    opacity: 0.7;
}

.minutes-modal-body {
    padding: 1.2rem 0 0;
}

.minutes-description {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

.topup-form {
    margin-top: 0.5rem;
}

.topup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    color: #22c55e;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.topup-btn:hover {
    background: rgba(34, 197, 94, 0.25);
    border-color: rgba(34, 197, 94, 0.5);
}

.topup-btn svg {
    width: 18px;
    height: 18px;
}

/* Topup Amount Selector */
.topup-amount-selector {
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(34, 197, 94, 0.1);
}

.topup-presets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.topup-preset {
    padding: 0.75rem 0.5rem;
    background: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.topup-preset:hover {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.topup-preset-selected {
    background: rgba(34, 197, 94, 0.2);
    border-color: var(--accent-green);
    color: var(--text-primary);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.3);
}

.topup-credits-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.75rem;
    background: rgba(34, 197, 94, 0.08);
    border-radius: 8px;
}

.topup-credits-info strong {
    color: var(--accent-green);
    font-size: 1rem;
}

@media (max-width: 400px) {
    .topup-presets {
        grid-template-columns: repeat(2, 1fr);
    }
}

.minutes-pricing {
    margin-bottom: 1.2rem;
}

.pricing-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.7rem 0.8rem;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
}

.pricing-rate {
    font-size: 0.9rem;
    font-weight: 600;
    color: #22c55e;
}

.pricing-desc {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    opacity: 0.7;
}


.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    text-align: center;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-info {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.modal-info:last-of-type {
    margin-bottom: 1.5rem;
}

.modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--accent-pink);
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
}

.modal-btn:hover {
    background: var(--accent-pink-hover);
}

.modal-btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@media (max-width: 791px) {
    .modal-content {
        padding: 1.5rem;
        max-width: none;
        width: calc(100% - 2rem);
    }

    .modal-minutes-icon {
        width: 32px;
        height: 32px;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .modal-info {
        font-size: 0.9rem;
    }

    .modal-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
}

@media (max-width: 791px) {
    .container {
        padding: 20px 16px;
    }
}

.container.center {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.page-title {
    font-size: 24px;
    font-weight: 400;
    color: #CCCCCC;
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #a0002a 0%, rgba(160, 0, 42, 0.3) 70%, transparent 100%);
    border-image-slice: 1;
    position: relative;
}

.page-title::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #a0002a;
    box-shadow: 0 0 15px rgba(160, 0, 42, 0.6);
}

.page-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 30px;
    margin-top: 8px;
}

/* Creator Page */
.creator-card {
    max-width: 640px;
    width: 100%;
}

.creator-card .page-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.creator-card .page-title::before {
    left: 50%;
    transform: translateX(-50%);
}

.creator-card .page-subtitle {
    text-align: center;
    margin-bottom: 30px;
}

.page-header {
    transition: opacity 0.3s, transform 0.3s;
}

.page-header.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    position: absolute;
}

/* Form */
.form-group {
    margin-bottom: 35px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #CCCCCC;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(128, 0, 32, 0.3);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    color: #E0E0E0;
    background: #1A1A1A;
    transition: all 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #800020;
    box-shadow: 0 0 0 4px rgba(128, 0, 32, 0.15);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

.form-hint {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 6px;
}

.char-count.warning {
    color: #800020;
}

/* Admin Video Options */
.admin-video-options {
    background: rgba(128, 0, 32, 0.1);
    border: 1px solid rgba(128, 0, 32, 0.3);
    border-radius: 12px;
    padding: 20px;
}

.admin-options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #E0E0E0;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #800020;
    cursor: pointer;
}

.admin-options-grid .input-group {
    display: flex;
    flex-direction: column;
}

.admin-options-grid .input-group label {
    font-size: 14px;
    color: #E0E0E0;
}

.admin-options-grid .input-group .form-input {
    padding: 8px 12px;
    font-size: 14px;
    width: auto;
    min-width: 150px;
}

/* Voice Categories */
.voice-category {
    margin-bottom: 30px;
}

.voice-category:last-child {
    margin-bottom: 0;
}

.category-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

/* Voice Carousel Container */
.voice-carousel-container {
    position: relative;
    width: calc(100% + 100px); /* Extend width to accommodate arrows */
    margin-left: -50px; /* Center the container */
    padding: 0 50px; /* Make room for absolutely positioned arrows */
}

/* Carousel Navigation Buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1A1A1A;
    border: 2px solid rgba(128, 0, 32, 0.3);
    color: #999;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-nav.carousel-prev {
    left: 0;
}

.carousel-nav.carousel-next {
    right: 0;
}

.carousel-nav:hover:not(:disabled) {
    border-color: rgba(128, 0, 32, 0.6);
    background: rgba(128, 0, 32, 0.1);
    color: #CCCCCC;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-nav:focus-visible {
    outline: 2px solid var(--accent-pink, #a0002a);
    outline-offset: 2px;
}

.carousel-nav svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Voice Selector - Carousel Mode */
.voice-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.voice-selector.voice-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 4px 0;
    position: relative;
}

.voice-selector.voice-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Fade indicators for scrollable content */
.voice-carousel-container::before,
.voice-carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s;
}

.voice-carousel-container::before {
    left: 50px;
    background: linear-gradient(to right, rgba(15, 15, 15, 0.8), transparent);
}

.voice-carousel-container::after {
    right: 50px;
    background: linear-gradient(to left, rgba(15, 15, 15, 0.8), transparent);
}

.voice-carousel-container.show-left-fade::before {
    opacity: 1;
}

.voice-carousel-container.show-right-fade::after {
    opacity: 1;
}

.voice-carousel .voice-option {
    scroll-snap-align: start;
    flex-shrink: 0;
    min-width: 110px;
}

.voice-option {
    position: relative;
}

.voice-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.voice-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    border: 2px solid rgba(128, 0, 32, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    background: #1A1A1A;
}

.voice-label:hover {
    border-color: rgba(128, 0, 32, 0.5);
    transform: translateY(-2px);
}

.voice-option input[type="radio"]:checked + .voice-label {
    border-color: #800020;
    background: rgba(128, 0, 32, 0.15);
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.15);
}

.voice-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.voice-avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
}

/* Auto Voice Avatar - Special Style */
.voice-avatar-auto {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%) !important;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.voice-name {
    font-size: 14px;
    font-weight: 600;
    color: #E0E0E0;
}

.asmr-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    padding: 2px 6px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: #FF1744;
    background: rgba(255, 23, 68, 0.15);
    border: 1px solid rgba(255, 23, 68, 0.3);
    border-radius: 3px;
    letter-spacing: 0.5px;
}

/* Voice disabled state (when character is selected) */
.voice-category.voice-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.voice-category.voice-disabled::after {
    content: 'Voice auto-selected with character';
    display: block;
    text-align: center;
    color: #888;
    font-size: 12px;
    margin-top: 8px;
}

/* Optional badge */
.optional-badge {
    font-size: 12px;
    font-weight: 400;
    color: #888;
}

/* Character Selector Styles */
.character-category {
    margin-bottom: 20px;
}

.character-carousel-container {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.character-selector.character-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 4px 0;
    position: relative;
}

.character-selector.character-carousel::-webkit-scrollbar {
    display: none;
}

/* Fade indicators for character carousel */
.character-carousel-container::before,
.character-carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s;
}

.character-carousel-container::before {
    left: 50px;
    background: linear-gradient(to right, rgba(15, 15, 15, 0.8), transparent);
}

.character-carousel-container::after {
    right: 50px;
    background: linear-gradient(to left, rgba(15, 15, 15, 0.8), transparent);
}

.character-carousel-container.show-left-fade::before {
    opacity: 1;
}

.character-carousel-container.show-right-fade::after {
    opacity: 1;
}

.character-carousel .character-option {
    scroll-snap-align: start;
    flex-shrink: 0;
    min-width: 110px;
}

.character-option {
    position: relative;
}

.character-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.character-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    border: 2px solid rgba(128, 0, 32, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    background: #1A1A1A;
}

.character-label:hover {
    border-color: rgba(128, 0, 32, 0.5);
    transform: translateY(-2px);
}

.character-option input[type="radio"]:checked + .character-label {
    border-color: #800020;
    background: rgba(128, 0, 32, 0.15);
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.15);
}

.character-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 10px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    border: 2px solid rgba(128, 0, 32, 0.3);
}

.character-avatar-none {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(128, 0, 32, 0.4);
}

.character-avatar-none svg {
    width: 24px;
    height: 24px;
    fill: rgba(128, 0, 32, 0.6);
}

.character-name {
    font-size: 13px;
    font-weight: 600;
    color: #E0E0E0;
    text-align: center;
}

/* Gender Tabs */
.gender-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.gender-tab {
    flex: 1;
    padding: 10px 20px;
    background: #1A1A1A;
    border: 2px solid rgba(128, 0, 32, 0.3);
    border-radius: 8px;
    color: #888;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.gender-tab:hover {
    border-color: rgba(128, 0, 32, 0.5);
    color: #CCC;
}

.gender-tab.active {
    background: rgba(128, 0, 32, 0.15);
    border-color: #800020;
    color: #E0E0E0;
}

.gender-tab:focus-visible {
    outline: 2px solid var(--accent-pink, #a0002a);
    outline-offset: 2px;
}

/* Gender Content */
.gender-content {
    display: none;
}

.gender-content.active {
    display: block;
}

/* For non-bipan users, show the only gender content */
.gender-content:only-of-type {
    display: block;
}

/* Unified Experience Selector */
.experience-category {
    margin-bottom: 20px;
}

.experience-category:last-child {
    margin-bottom: 0;
}

/* Experience Carousel Container - arrows outside */
.experience-carousel-container {
    position: relative;
    width: calc(100% + 100px);
    margin-left: -50px;
    padding: 0 50px;
}

.experience-carousel-container .carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.experience-carousel-container .carousel-prev {
    left: 0;
}

.experience-carousel-container .carousel-next {
    right: 0;
}

.experience-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 4px 0;
}

.experience-carousel::-webkit-scrollbar {
    display: none;
}

.experience-option {
    scroll-snap-align: start;
    flex-shrink: 0;
    min-width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    border: 2px solid rgba(128, 0, 32, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    background: #1A1A1A;
    position: relative;
}

.experience-option:hover {
    border-color: rgba(128, 0, 32, 0.5);
    transform: translateY(-2px);
}

.experience-option.selected {
    border-color: #800020;
    background: rgba(128, 0, 32, 0.15);
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.15);
}

.experience-option:focus-visible {
    outline: 2px solid var(--accent-pink, #a0002a);
    outline-offset: 2px;
}

.experience-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-bottom: 8px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    border: 2px solid rgba(128, 0, 32, 0.3);
}

.experience-avatar.voice-avatar {
    border: none;
    position: relative;
    overflow: hidden;
}

.experience-avatar.voice-avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
}

.experience-name {
    font-size: 13px;
    font-weight: 600;
    color: #E0E0E0;
    text-align: center;
}

.experience-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 2px 6px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.experience-badge.asmr-badge {
    color: #FF1744;
    background: rgba(255, 23, 68, 0.15);
    border: 1px solid rgba(255, 23, 68, 0.3);
}

/* Fade indicators for experience carousel */
.experience-carousel-container::before,
.experience-carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s;
}

.experience-carousel-container::before {
    left: 50px;
    background: linear-gradient(to right, rgba(15, 15, 15, 0.8), transparent);
}

.experience-carousel-container::after {
    right: 50px;
    background: linear-gradient(to left, rgba(15, 15, 15, 0.8), transparent);
}

.experience-carousel-container.show-left-fade::before {
    opacity: 1;
}

.experience-carousel-container.show-right-fade::after {
    opacity: 1;
}

/* Experience carousel responsive */
@media (max-width: 768px) {
    .experience-carousel-container {
        width: 100%;
        margin-left: 0;
        padding: 0;
    }

    .experience-carousel-container .carousel-nav {
        display: none;
    }

    .experience-carousel-container::before,
    .experience-carousel-container::after {
        display: none;
    }

    .experience-option {
        min-width: 100px;
        padding: 12px 10px;
    }

    .experience-avatar {
        width: 48px;
        height: 48px;
    }

    .gender-tabs {
        gap: 6px;
    }

    .gender-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Generate Button */
.generate-section {
    margin-top: 50px;
    text-align: center;
}

.generate-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: #800020;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(128, 0, 32, 0.4);
}

.generate-btn:hover:not(:disabled) {
    background: #5a0016;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(128, 0, 32, 0.5);
}

.generate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.generate-btn:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

.generate-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Loading State */
.loading-state {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: var(--sidebar-width);
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.loading-state.active {
    display: flex;
}

.loading-card {
    background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 1px solid #252525;
    border-radius: 20px;
    padding: 48px 32px;
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.loading-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 24px;
    color: #800020;
}

.loading-icon svg {
    width: 100%;
    height: 100%;
}

.loading-title {
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.loading-subtitle {
    font-size: 14px;
    color: #666;
}

@media (max-width: 768px) {
    .loading-state {
        left: 0;
    }

    .loading-card {
        padding: 40px 24px;
        border-radius: 16px;
    }
}

/* Library Page - Story List */
.library-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.library-title {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.library-title::before {
    display: none;
}

.create-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #800020;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.3);
}

.create-action-btn:hover {
    background: #5a0016;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(128, 0, 32, 0.4);
}

.create-action-btn:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

.create-action-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.stories-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
    padding: 20px 0;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #1A1A1A;
    color: #999;
    border: 1px solid rgba(128, 0, 32, 0.3);
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination-btn:hover {
    background: rgba(128, 0, 32, 0.1);
    color: #CCCCCC;
    border-color: rgba(128, 0, 32, 0.5);
}

.pagination-btn:focus-visible {
    outline: 2px solid var(--accent-pink, #a0002a);
    outline-offset: 2px;
}

.pagination-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.pagination-info {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.story-card-wrapper {
    position: relative;
}

.story-card {
    background: #1A1A1A;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    border: 1px solid rgba(128, 0, 32, 0.3);
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(128, 0, 32, 0.3);
    border-color: rgba(128, 0, 32, 0.5);
}

.story-card-disabled {
    cursor: default;
    opacity: 0.7;
}

.story-card-disabled:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    border-color: rgba(128, 0, 32, 0.3);
}

.cancel-clip-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(128, 0, 32, 0.8);
    color: #FFF;
    border: 1px solid rgba(128, 0, 32, 0.5);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cancel-clip-btn:hover:not(:disabled) {
    background: rgba(180, 0, 45, 0.9);
    border-color: rgba(180, 0, 45, 0.7);
    transform: scale(1.05);
}

.cancel-clip-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cancel-clip-btn svg {
    flex-shrink: 0;
}

.story-orb {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.story-status {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.story-status.completed {
    background: #1A1A1A;
    border: 2px solid rgba(128, 0, 32, 0.5);
}

.story-status.completed svg {
    width: 18px;
    height: 18px;
    fill: #800020;
}

.story-status.live {
    background: #800020;
    border: 2px solid #800020;
}

.story-status.live::after {
    content: '';
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.story-status.waiting {
    background: #1A1A1A;
    border: 2px solid rgba(128, 0, 32, 0.5);
}

.story-status.waiting::after {
    content: '';
    width: 10px;
    height: 10px;
    border: 2px solid #800020;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.story-status.failed {
    background: #1A1A1A;
    border: 2px solid #ff4444;
}

.story-status.failed svg {
    width: 14px;
    height: 14px;
    fill: #ff4444;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.story-content {
    flex: 1;
    min-width: 0;
}

.story-title {
    font-size: 20px;
    font-weight: 600;
    color: #E0E0E0;
    margin-bottom: 8px;
}

.story-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #888;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.story-duration {
    font-size: 28px;
    font-weight: 300;
    color: #800020;
    flex-shrink: 0;
    letter-spacing: 1px;
}

.story-duration.pending {
    font-size: 20px;
    color: #555;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 100px 20px;
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    opacity: 0.3;
}

.empty-icon svg {
    width: 100%;
    height: 100%;
    fill: #800020;
}

.empty-title {
    font-size: 24px;
    color: #E0E0E0;
    margin-bottom: 10px;
}

.empty-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.cta-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #800020;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.cta-btn:hover {
    background: #5a0016;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(128, 0, 32, 0.5);
}

.cta-btn:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Player Page */
.player-card {
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.story-info {
    margin-bottom: 80px;
}

.story-info .story-title {
    font-size: 32px;
    font-weight: 500;
    color: #CCCCCC;
    margin-bottom: 12px;
}

.story-info .story-meta {
    font-size: 16px;
    color: #666;
    justify-content: center;
    text-align: center;
}

/* Player States */
.waiting-state,
.live-state,
.complete-state {
    display: none;
}

.waiting-state.active,
.live-state.active,
.complete-state.active {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Waiting State */
.anticipation-orb {
    width: 160px;
    height: 160px;
    margin: 0 auto 40px;
    position: relative;
}

.orb-core {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(212, 165, 165, 0.8), #800020);
    box-shadow:
        0 0 40px rgba(128, 0, 32, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    animation: anticipate 2.5s ease-in-out infinite;
}

@keyframes anticipate {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.03);
        opacity: 1;
    }
}

.waiting-text {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* Live State */
.audio-orb {
    width: 200px;
    height: 200px;
    margin: 0 auto 40px;
    position: relative;
}

.orb-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(212, 100, 100, 0.9), #800020);
    animation: pulse 1s ease-in-out infinite;
    box-shadow:
        0 0 60px rgba(128, 0, 32, 0.7),
        inset 0 0 40px rgba(255, 255, 255, 0.15);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.orb-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.ring {
    position: absolute;
    border: 2px solid rgba(128, 0, 32, 0.6);
    border-radius: 50%;
    animation: expand 2.5s ease-out infinite;
}

.ring:nth-child(1) {
    width: 100%;
    height: 100%;
    animation-delay: 0s;
}

.ring:nth-child(2) {
    width: 100%;
    height: 100%;
    animation-delay: 0.8s;
}

.ring:nth-child(3) {
    width: 100%;
    height: 100%;
    animation-delay: 1.6s;
}

@keyframes expand {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #800020;
    font-weight: 600;
    margin-bottom: 8px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #800020;
    border-radius: 50%;
    animation: blink 1s ease-in-out infinite;
}

/* Complete State */
.complete-state {
    text-align: center;
}

.audio-controls {
    max-width: 100%;
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(128, 0, 32, 0.3);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: #800020;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    margin-bottom: 35px;
}

.control-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
}

.control-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    transition: all 0.3s;
    padding: 10px;
}

.control-btn:hover {
    transform: scale(1.1);
    opacity: 0.5;
}

.control-btn.primary {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #800020;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.control-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.control-btn.primary svg {
    width: 28px;
    height: 28px;
    margin-left: 3px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    padding: 12px 24px;
    background: rgba(128, 0, 32, 0.15);
    border: 1px solid rgba(128, 0, 32, 0.3);
    border-radius: 25px;
    color: #800020;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.download-btn:hover {
    background: rgba(128, 0, 32, 0.25);
    border-color: rgba(128, 0, 32, 0.5);
    transform: translateY(-2px);
}

.back-btn {
    margin-top: 60px;
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid #333;
    border-radius: 25px;
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.back-btn:hover {
    background: #1A1A1A;
    border-color: #444;
}

/* Message/Error containers */
.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: opacity 0.3s;
}

.message.hidden {
    display: none;
}

.message.error {
    background: rgba(128, 0, 32, 0.2);
    color: #800020;
    border: 1px solid rgba(128, 0, 32, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }

    .logo {
        height: 20px;
    }

    .container {
        padding: 20px;
    }

    .page-title {
        font-size: 22px;
    }

    .library-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 40px;
    }

    .library-title {
        font-size: 20px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 15px;
    }

    .pagination-info {
        order: -1;
        width: 100%;
        text-align: center;
    }

    .creator-card .page-title {
        font-size: 22px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    .story-card {
        padding: 20px;
        gap: 20px;
    }

    .story-orb {
        width: 60px;
        height: 60px;
    }

    .story-title {
        font-size: 18px;
    }

    .story-duration {
        font-size: 22px;
    }

    .voice-selector:not(.voice-carousel) {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .voice-carousel .voice-option {
        min-width: 120px;
    }

    .voice-avatar {
        width: 48px;
        height: 48px;
    }

    /* Hide carousel navigation on mobile */
    .carousel-nav {
        display: none;
    }

    /* Reset carousel container on mobile */
    .voice-carousel-container {
        width: 100%;
        margin-left: 0;
        padding: 0;
    }

    .voice-carousel-container::before,
    .voice-carousel-container::after {
        display: none;
    }

    .anticipation-orb {
        width: 140px;
        height: 140px;
    }

    .audio-orb {
        width: 180px;
        height: 180px;
    }

    .duration-display {
        font-size: 30px;
    }

    .control-btn.primary {
        width: 56px;
        height: 56px;
    }

    .control-btn.primary svg {
        width: 24px;
        height: 24px;
    }

    .story-info .story-title {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .voice-selector:not(.voice-carousel) {
        grid-template-columns: repeat(2, 1fr);
    }

    .voice-carousel .voice-option {
        min-width: 110px;
    }

    /* Ensure arrows stay hidden on small mobile */
    .carousel-nav {
        display: none;
    }

    .voice-carousel-container {
        width: 100%;
        margin-left: 0;
        padding: 0;
    }

    .story-card .story-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .story-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .story-duration {
        align-self: flex-end;
    }

    /* Keep player meta centered on mobile */
    .story-info .story-meta {
        flex-direction: row;
        align-items: center;
    }

    .create-action-btn {
        width: 100%;
        justify-content: center;
    }

    .library-title {
        font-size: 18px;
    }
}

/* ============================================
   LOGIN MODAL - New Design
   ============================================ */

.login-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    z-index: 1;
}

.login-modal-image {
    width: 320px;
    flex-shrink: 0;
    background: #0a0a0a;
}

.login-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-modal-form {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.login-view {
    display: flex;
    flex-direction: column;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-icon {
    position: absolute;
    left: 1rem;
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    pointer-events: none;
}

.login-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: #1a1a1a;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-input:focus {
    outline: none;
    border-color: var(--accent-pink);
    box-shadow: 0 0 0 3px rgba(160, 0, 42, 0.15);
}

.login-input::placeholder {
    color: var(--text-secondary);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.password-toggle:hover {
    color: var(--text-primary);
}

.forgot-password-link {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-decoration: underline;
    align-self: flex-start;
    margin-top: -0.5rem;
}

.forgot-password-link:hover {
    color: var(--text-primary);
}

.login-error {
    color: #ff6b6b;
    font-size: 0.875rem;
    min-height: 1.25rem;
}

.login-btn-primary {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #d4145a 0%, #a0002a 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.login-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.login-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.login-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.login-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary-color);
    cursor: pointer;
    flex-shrink: 0;
}

.login-checkbox a {
    color: var(--primary-color);
    text-decoration: underline;
}

.login-checkbox a:hover {
    opacity: 0.8;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.login-social-buttons {
    display: flex;
    gap: 0.75rem;
}

.login-btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0;
    height: 48px;
    box-sizing: border-box;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
    line-height: 1;
}

.login-btn-social svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: block;
}

.login-btn-social:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.login-btn-google {
    background: white;
    color: #333;
}

.login-btn-patreon {
    background: #000;
    color: white;
}

.login-switch {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.login-switch a {
    color: #d4145a;
    text-decoration: none;
    font-weight: 500;
}

.login-switch a:hover {
    text-decoration: underline;
}

/* Mobile: hide image, full-width form */
@media (max-width: 700px) {
    .login-modal-content {
        flex-direction: column;
        max-width: 400px;
    }

    .login-modal-image {
        display: none;
    }

    .login-modal-form {
        padding: 2rem 1.5rem;
    }

    .login-social-buttons {
        flex-direction: column;
    }

    .login-btn-social {
        height: 48px;
        min-height: 48px;
    }
}

/* Create Signup Modal - Friendly version for /create page */
#createSignupModal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

#createSignupModal .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.create-signup-content {
    position: relative;
    z-index: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
}

.create-signup-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(212, 20, 90, 0.15) 0%, rgba(160, 0, 42, 0.15) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.create-signup-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

.create-signup-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.create-signup-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.create-signup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.create-signup-input-group {
    position: relative;
}

.create-signup-input {
    width: 100%;
    padding: 1rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.create-signup-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 20, 90, 0.1);
}

.create-signup-input::placeholder {
    color: var(--text-secondary);
}

.create-signup-error {
    color: #ff4757;
    font-size: 0.85rem;
    min-height: 1.2rem;
    text-align: left;
}

.create-signup-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #d4145a 0%, #a0002a 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.create-signup-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.create-signup-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.create-signup-login-link {
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.create-signup-login-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.create-signup-login-link a:hover {
    text-decoration: underline;
}

.create-signup-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.create-signup-divider::before,
.create-signup-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.create-signup-social {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.create-signup-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s;
}

.create-signup-social-btn:hover {
    background: var(--surface-color);
    border-color: var(--text-secondary);
}

.create-signup-google {
    background: white;
    color: #333;
    border-color: #ddd;
}

.create-signup-google:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.create-signup-patreon {
    background: #000;
    color: #fff;
    border-color: #000;
}

.create-signup-patreon:hover {
    background: #222;
    border-color: #222;
}

.create-signup-view {
    display: flex;
    flex-direction: column;
}

#createSignupModal .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 2;
    line-height: 1;
    padding: 0.25rem;
}

#createSignupModal .modal-close:hover {
    color: var(--text-primary);
}

/* Demo Video Modal */
.demo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.demo-modal.active {
    display: flex;
}

.demo-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
}

.demo-modal-content {
    position: relative;
    width: 90%;
    max-width: 720px;
    z-index: 1;
}

.demo-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
}

.demo-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    color: white;
}

.demo-player {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.demo-player video {
    width: 100%;
    display: block;
    background: #000;
}

.demo-player-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.95);
}

.demo-play-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    padding: 0;
}

.demo-play-btn:hover {
    color: var(--accent-pink);
}

.demo-play-btn svg {
    width: 16px;
    height: 16px;
}

.demo-play-btn .play-icon {
    margin-left: 2px;
}

.demo-progress-container {
    flex: 1;
    cursor: pointer;
    padding: 6px 0;
}

.demo-progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.demo-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-pink);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.demo-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    min-width: 38px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
    .demo-modal-content {
        width: 95%;
    }

    .demo-player-controls {
        padding: 8px 12px;
        gap: 10px;
    }
}
