:root {
    color-scheme: dark;
    --bg-main: #0b0b0e;
    --bg-surface: #141419;
    --bg-card: #191922;
    --bg-card-hover: #22222e;
    --bg-glass: rgba(18, 18, 24, 0.88);
    --gold: #d4af37;
    --gold-light: #f5e27a;
    --gold-dark: #a67c1e;
    --gold-gradient: linear-gradient(135deg, #f5e27a 0%, #d4af37 50%, #aa771c 100%);
    --emerald: #10b981;
    --emerald-dark: #059669;
    --text-primary: #ffffff;
    --text-secondary: #a3a3b3;
    --text-muted: #6b6b7f;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(212, 175, 55, 0.35);
    --shadow-netflix: 0 12px 36px rgba(0, 0, 0, 0.7);
    --shadow-gold: 0 0 24px rgba(212, 175, 55, 0.25);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    background: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.5;
}

img, svg {
    display: block;
    max-width: 100%;
}

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

button, input {
    font: inherit;
}

/* ==========================================================================
   1. LOGIN PAGE (NETFLIX CINEMATIC CENTER CARD - NO RIGHT ASIDE)
   ========================================================================== */
body.login-page {
    background: radial-gradient(circle at 50% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
                radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
                #07070a;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.login-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-netflix);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
}

.login-logo {
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    background: #000;
}

.login-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 8px;
}

.login-card h1 {
    font-size: 1.85rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.45;
    margin-bottom: 28px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-input {
    width: 100%;
    height: 52px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: #fff;
    padding: 0 16px;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}

.login-input:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

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

.btn-netflix {
    width: 100%;
    height: 52px;
    background: var(--gold-gradient);
    border: none;
    border-radius: var(--radius-sm);
    color: #0b0b0e;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
    margin-top: 6px;
}

.btn-netflix:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-netflix:active {
    transform: translateY(0);
}

.login-footer-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
}

.trust-item svg {
    width: 14px;
    height: 14px;
    color: var(--emerald);
}

/* ==========================================================================
   2. NAVBAR (NETFLIX STICKY GLASS HEADER)
   ========================================================================== */
.netflix-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 11, 14, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 4%;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-brand img {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.nav-brand span {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.3px;
    color: #fff;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

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

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold);
}

.btn-logout {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   3. HERO BILLBOARD (CINEMATIC FEATURED BANNER)
   ========================================================================== */
.hero-billboard {
    position: relative;
    min-height: 440px;
    padding: 60px 4% 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: radial-gradient(circle at 75% 30%, rgba(212, 175, 55, 0.15) 0%, transparent 60%),
                linear-gradient(180deg, rgba(11, 11, 14, 0.2) 0%, rgba(11, 11, 14, 0.95) 85%, var(--bg-main) 100%),
                var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
}

.hero-content {
    max-width: 680px;
    z-index: 2;
}

.hero-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.tag-exclusive {
    background: var(--gold-gradient);
    color: #0b0b0e;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tag-unlocked {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid var(--emerald);
    color: #34d399;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 14px;
    color: #fff;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-hero-play {
    background: #ffffff;
    color: #000000;
    font-weight: 800;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-hero-play:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: scale(1.03);
}

.btn-hero-info {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.btn-hero-info:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.03);
}

/* ==========================================================================
   4. NETFLIX ROWS & POSTER CARDS (16:9 RATIO - HOVER ZOOM)
   ========================================================================== */
.netflix-main {
    padding: 20px 4% 80px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.row-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.row-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.row-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.row-badge {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.poster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* Base Card Style */
.poster-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}

.poster-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-netflix);
    border-color: var(--border-gold);
    z-index: 10;
}

.card-thumbnail-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #0f0f15;
    overflow: hidden;
}

.card-thumbnail-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.poster-card:hover .card-thumbnail-img {
    transform: scale(1.08);
}

.card-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(15, 15, 21, 0.95) 100%);
}

.card-badge-top {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.card-badge-unlocked {
    background: rgba(16, 185, 129, 0.9);
    color: #fff;
}

.card-badge-locked {
    background: rgba(212, 175, 55, 0.95);
    color: #0b0b0e;
}

.card-badge-app {
    background: var(--gold-gradient);
    color: #0b0b0e;
}

.card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    gap: 12px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
}

.card-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
}

.card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
}

.card-desc {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-cta-btn {
    width: 100%;
    height: 42px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-open-unlocked {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid var(--border-subtle);
}

.poster-card:hover .btn-open-unlocked {
    background: #fff;
    color: #000;
}

.btn-unlock-locked {
    background: var(--gold-gradient);
    color: #0b0b0e;
}

.poster-card:hover .btn-unlock-locked {
    filter: brightness(1.15);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

/* Progress bar inside unlocked cards */
.card-progress-bar {
    height: 3px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.card-progress-fill {
    height: 100%;
    width: 100%;
    background: var(--emerald);
}

/* ==========================================================================
   5. SUPPLIERS WEBAPP (INTERACTIVE DIRECTORY)
   ========================================================================== */
.supplier-container {
    padding: 30px 4% 80px;
    max-width: 1280px;
    margin: 0 auto;
}

.supplier-top-bar {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.search-input-wrap {
    position: relative;
    width: 100%;
}

.search-input-wrap input {
    width: 100%;
    height: 54px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0 20px 0 50px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}

.search-input-wrap input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.filter-pills {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}

.filter-pill {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill:hover, .filter-pill.active {
    background: var(--gold);
    color: #0b0b0e;
    border-color: var(--gold);
    font-weight: 800;
}

.supplier-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.supplier-item-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.supplier-item-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-4px);
}

.supplier-header-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.supplier-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
}

.badge-verified {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--emerald);
    color: #34d399;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.supplier-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: rgba(0, 0, 0, 0.25);
    padding: 12px;
    border-radius: var(--radius-sm);
}

.spec-item dt {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.spec-item dd {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 700;
    margin-top: 2px;
}

.supplier-tip-box {
    font-size: 0.82rem;
    color: var(--text-secondary);
    background: rgba(212, 175, 55, 0.06);
    border-left: 3px solid var(--gold);
    padding: 8px 12px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.btn-whatsapp-vendor {
    background: #25d366;
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.btn-whatsapp-vendor:hover {
    filter: brightness(1.1);
}

/* ==========================================================================
   6. UNLOCK POPUP MODAL (NETFLIX NEW REWARD CELEBRATION)
   ========================================================================== */
.unlock-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.unlock-overlay[hidden] {
    display: none;
}

.unlock-modal-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-netflix), var(--shadow-gold);
    animation: popupScale 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popupScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.unlock-icon-circle {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b0b0e;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.unlock-modal-box h2 {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
}

.unlock-modal-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .netflix-header {
        padding: 0 16px;
        height: 60px;
    }
    .nav-links {
        display: none;
    }
    .hero-billboard {
        min-height: 380px;
        padding: 40px 16px 50px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .netflix-main {
        padding: 16px 16px 60px;
        gap: 36px;
    }
    .poster-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 14px;
    }
}
