/* ==========================================================
   HEADER & NAVBAR
========================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    background: linear-gradient(180deg, rgba(7, 9, 14, 0.95) 0%, rgba(7, 9, 14, 0.7) 65%, transparent 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.site-header.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-logo-text {
    font-family: var(--font-heading);
    color: #ffffff;
}

.brand-dot {
    color: var(--primary);
    font-size: 1.7rem;
    line-height: 1;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    position: relative;
    padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Live Search Bar */
.search-container {
    position: relative;
    width: 280px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 0.45rem 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

.search-input {
    width: 100%;
    font-size: 0.875rem;
    padding-left: 0.5rem;
    color: var(--text-main);
}

.search-icon {
    width: 18px;
    height: 18px;
    fill: var(--text-subtle);
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: none;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1010;
}

.search-dropdown.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition-fast);
}

.search-result-item:hover {
    background: var(--bg-card-hover);
}

.search-result-poster {
    width: 36px;
    height: 52px;
    border-radius: var(--radius-xs);
    object-fit: cover;
    background: var(--bg-card);
}

.search-result-info h4 {
    font-size: 0.875rem;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
}

.search-result-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* User Menu & Mobile Trigger */
.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    font-size: 0.875rem;
}

.user-avatar-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--primary);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    padding: 0.5rem;
    color: var(--text-main);
}

@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }
    .main-nav.mobile-active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-surface);
        padding: 1.5rem;
        border-bottom: 1px solid var(--border-subtle);
        gap: 1.25rem;
    }
    .mobile-nav-toggle {
        display: block;
    }
    .search-container {
        width: 180px;
    }
}

@media (max-width: 640px) {
    .search-container {
        display: none; /* Accessible via search button or mobile search page */
    }
}

/* ==========================================================
   HERO BANNER
========================================================== */
.hero-banner {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 4rem;
    background-size: cover;
    background-position: center top;
    margin-top: calc(-1 * var(--header-height));
    padding-top: calc(var(--header-height) + 4rem);
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(7, 9, 14, 0.4) 0%,
        rgba(7, 9, 14, 0.6) 40%,
        rgba(7, 9, 14, 0.95) 85%,
        var(--bg-base) 100%
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 640px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.1rem, 3.8vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }
    .hero-banner {
        min-height: 55vh;
        padding-bottom: 2.5rem;
    }
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

/* ==========================================================
   SECTION & CARDS GRID
========================================================== */
.section {
    padding: 3rem 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.section-indicator {
    width: 4px;
    height: 1.25rem;
    background: var(--primary);
    border-radius: var(--radius-full);
}

.section-more-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
}
.section-more-link:hover {
    color: var(--primary);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
}

@media (max-width: 1280px) {
    .cards-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.9rem;
    }
}
@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* Movie Card */
.media-card {
    position: relative;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.media-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--border-hover);
}

.media-poster-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    width: 100%;
    background: var(--bg-surface-elevated);
    overflow: hidden;
}

.media-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.media-card:hover .media-poster {
    transform: scale(1.05);
}

.media-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.media-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.media-card:hover .media-play-overlay {
    opacity: 1;
}

.play-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px var(--primary-glow);
    transform: scale(0.85);
    transition: transform var(--transition-fast);
}

.media-card:hover .play-circle {
    transform: scale(1);
}

.media-info {
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.media-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================
   CATALOG FILTERS
========================================================== */
.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-select {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    cursor: pointer;
}

.filter-select option {
    background: var(--bg-surface-elevated);
    color: var(--text-main);
}

/* ==========================================================
   PAGINATION
========================================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.page-btn:hover {
    color: #ffffff;
    border-color: var(--border-hover);
    background: var(--bg-surface-elevated);
}

.page-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 10px var(--primary-glow);
}

/* ==========================================================
   FOOTER
========================================================== */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-legal-notice {
    font-size: 0.8rem;
    color: var(--text-subtle);
    line-height: 1.6;
    margin-top: 0.75rem;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #ffffff;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-muted);
}
.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.825rem;
    color: var(--text-subtle);
}

/* ==========================================================
   HERO CAROUSEL & DYNAMIC BANNER
========================================================== */
.hero-carousel-container {
    position: relative;
    min-height: 85vh;
    min-height: 680px;
    background-color: var(--bg-base);
    overflow: hidden;
    margin-top: calc(-1 * var(--header-height));
}

.hero-slides-wrapper {
    position: relative;
    width: 100%;
    min-height: 85vh;
    min-height: 680px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(1.03);
    background-size: cover;
    background-position: center 25%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 5.25rem;
    padding-top: calc(var(--header-height) + 3rem);
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.hero-badges .badge-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    margin-right: 4px;
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 8px #ffffff; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

.btn-glow {
    box-shadow: 0 0 20px var(--primary-glow);
}
.btn-glow:hover {
    box-shadow: 0 0 30px var(--primary);
}

/* Hero Carousel Thumbnails */
/* Hero Carousel Thumbnails */
.hero-carousel-nav {
    position: absolute;
    bottom: 2.5rem;
    left: 0;
    right: 0;
    z-index: 20;
    pointer-events: none;
}

.hero-nav-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-thumbnails {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    pointer-events: auto;
    background: rgba(15, 19, 28, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-thumb-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.35rem;
    border-radius: var(--radius-md);
    background: transparent;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
    text-align: left;
}

.hero-thumb-btn img {
    width: 38px;
    height: 54px;
    object-fit: cover;
    border-radius: var(--radius-xs);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-thumb-btn .thumb-info {
    display: none;
}

@media (min-width: 1440px) {
    .hero-thumb-btn.active .thumb-info {
        display: flex;
        flex-direction: column;
        padding-right: 0.4rem;
    }
}

.hero-thumb-btn .thumb-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-thumb-btn .thumb-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.hero-thumb-btn:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.hero-thumb-btn.active {
    background: rgba(229, 9, 20, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 16px var(--primary-glow);
    transform: scale(1.05);
}

.hero-thumb-btn.active img {
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.6);
}

@media (max-width: 768px) {
    .hero-carousel-nav {
        bottom: 1.25rem;
    }
    .hero-nav-inner {
        justify-content: center;
    }
    .hero-thumbnails {
        padding: 0.3rem 0.5rem;
        gap: 0.4rem;
    }
    .hero-thumb-btn img {
        width: 30px;
        height: 42px;
    }
}

/* Card Favorite Button */
.card-fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(7, 9, 14, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition-fast);
    cursor: pointer;
    z-index: 5;
}

.media-card:hover .card-fav-btn {
    opacity: 1;
    transform: scale(1);
}

.card-fav-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.card-fav-btn.active {
    opacity: 1;
    color: var(--primary);
    background: #ffffff;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(15, 19, 28, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-subtle);
    z-index: 1000;
    align-items: center;
    justify-content: space-around;
    padding: 0 0.5rem;
}

@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: flex;
    }
    body {
        padding-bottom: 65px;
    }
}

.mobile-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    flex: 1;
    padding: 6px 0;
}

.mobile-bar-item.active, .mobile-bar-item:hover {
    color: var(--primary);
}

.mobile-bar-item svg {
    width: 22px;
    height: 22px;
}

/* Toast Notifications */
.kino-toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

@media (max-width: 768px) {
    .kino-toast-container {
        bottom: 5rem;
        right: 1rem;
        left: 1rem;
    }
}

.kino-toast {
    pointer-events: auto;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--primary);
    color: #ffffff;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(0,0,0,0.5);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: toastSlideIn 300ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.kino-toast.fade-out {
    animation: toastFadeOut 250ms ease forwards;
}

@keyframes toastFadeOut {
    to { transform: translateY(-10px); opacity: 0; }
}

/* Cinema Mode (Lights Off) */
body.cinema-mode-on {
    background-color: #000000;
}

body.cinema-mode-on .site-header,
body.cinema-mode-on .movie-page-hero,
body.cinema-mode-on .glass-card,
body.cinema-mode-on .section,
body.cinema-mode-on .site-footer {
    opacity: 0.05;
    pointer-events: none;
    transition: opacity 400ms ease;
}

body.cinema-mode-on #player-section {
    position: relative;
    z-index: 1050;
    opacity: 1 !important;
}

/* Ambient Player Glow */
.player-ambient-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at center, rgba(229, 9, 20, 0.25) 0%, rgba(6, 182, 212, 0.15) 50%, transparent 80%);
    filter: blur(35px);
    z-index: -1;
    pointer-events: none;
    border-radius: var(--radius-xl);
}

/* ==========================================================
   USER AUTH & SOCIAL LOGIN (GOOGLE & APPLE)
========================================================== */
.auth-page-wrapper {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem 4rem;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: rgba(15, 19, 28, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 2.25rem 2rem;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent-gold), transparent);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-top: 0.5rem;
    margin-bottom: 0.35rem;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Auth Segmented Tabs */
.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    margin-bottom: 1.75rem;
    position: relative;
}

.auth-tab-btn {
    flex: 1;
    text-align: center;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--radius-full);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.auth-tab-btn:hover {
    color: #ffffff;
}

.auth-tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 12px var(--primary-glow);
}

/* Social Login Buttons */
.social-auth-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.925rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    box-sizing: border-box;
}

.btn-social:hover {
    transform: translateY(-2px);
}

/* Google Sign-In Button */
.btn-social-google {
    background: #ffffff;
    color: #1f1f1f;
    border: 1px solid #dadce0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-social-google:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    color: #1f1f1f;
}

/* Apple Sign-In Button */
.btn-social-apple {
    background: #000000;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.btn-social-apple:hover {
    background: #111111;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
    color: #ffffff;
}

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

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-subtle);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.auth-divider span {
    padding: 0 0.85rem;
}

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.auth-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.auth-input-group input {
    width: 100%;
    box-sizing: border-box;
}

.auth-notice-box {
    margin-top: 1.5rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    color: var(--text-subtle);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.auth-notice-box svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* User Profile Dropdown in Header */
.user-dropdown-wrapper {
    position: relative;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg), 0 8px 30px rgba(0,0,0,0.5);
    padding: 0.5rem 0;
    display: none;
    z-index: 1020;
}

.user-dropdown-wrapper:hover .user-dropdown-menu,
.user-dropdown-wrapper.active .user-dropdown-menu {
    display: block;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    color: var(--text-main);
    transition: background var(--transition-fast);
}

.user-dropdown-item:hover {
    background: var(--bg-card-hover);
    color: var(--primary);
}

.user-dropdown-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.75;
}


