/* ============================================================
🎨 GLOBAL VARIABLES
============================================================ */
:root {
    --bg-deep: #0a0605;
    --bg: #0f0b09;
    --bg-card: #161110;
    --bg-card-hover: #1e1816;
    --bg-elevated: #231c18;
    --fg: #f2ebe4;
    --fg-warm: #e8ddd2;
    --fg-muted: #8c7e70;
    --fg-dim: #5a4f45;
    --accent: #c8956c;
    --accent-bright: #e4b08a;
    --accent-deep: #9a6b42;
    --accent-glow: rgba(200, 149, 108, 0.15);
    --accent-glow-strong: rgba(200, 149, 108, 0.3);
    --border: #2a2220;
    --border-light: #3a302c;
    --danger: #c94040;
    --success: #5ba85b;
    --wa: #25D366;
    --wa-dark: #128C7E;
    --ig: #E4405F;
    --fb: #1877F2;
    --tt: #000000;

    /* BBC-style colors */
    --bbc-red: #B80000;
    --bbc-yellow: #FFD230;
    --bbc-blue: #005B9F;
    --bbc-black: #1A1A1A;
}

/* ============================================================
🔧 BASE STYLES
============================================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-deep);
    color: var(--fg);
    overflow-x: hidden;
}

.font-display {
    font-family: 'Cormorant Garamond', serif;
}

/* ============================================================
🔒 HIDDEN ADMIN TRIGGER
============================================================ */
#adminTrigger {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    z-index: 9999;
    cursor: default;
    background: transparent;
    border: none;
    outline: none;
}

/* ============================================================
🌌 AMBIENT BACKGROUND
============================================================ */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.ambient-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 60% 50% at 30% 20%, rgba(200, 149, 108, 0.04) 0%, transparent 70%),
                radial-gradient(ellipse 40% 40% at 75% 70%, rgba(154, 107, 66, 0.03) 0%, transparent 60%),
                radial-gradient(ellipse 80% 60% at 50% 100%, rgba(200, 149, 108, 0.02) 0%, transparent 50%);
}

/* ============================================================
📄 PAGE SECTIONS
============================================================ */
.page-section {
    display: none;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.page-section.active {
    display: block;
}

/* ============================================================
🧭 NAVIGATION
============================================================ */
.nav-glass {
    background: rgba(10, 6, 5, 0.88);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(200, 149, 108, 0.08);
}

.nav-link {
    position: relative;
    color: var(--fg-muted);
    transition: color .3s;
    font-weight: 500;
    font-size: .9rem;
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-bright);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width .3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.logo-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    box-shadow: 0 0 12px rgba(200, 149, 108, 0.25);
    transition: box-shadow .3s;
}

.logo-img:hover {
    box-shadow: 0 0 20px rgba(200, 149, 108, 0.4);
}

.logo-img-sm {
    width: 32px;
    height: 32px;
    border-width: 1.5px;
}

.logo-img-lg {
    width: 48px;
    height: 48px;
    border-width: 2.5px;
}

/* ============================================================
🌟 HERO
============================================================ */
.hero-gradient {
    background: radial-gradient(ellipse 70% 55% at 45% 35%, rgba(200, 149, 108, 0.07) 0%, transparent 70%),
                radial-gradient(ellipse 45% 35% at 80% 15%, rgba(154, 107, 66, 0.05) 0%, transparent 55%);
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 5.2rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -.01em;
}

.accent-text {
    background: linear-gradient(135deg, var(--accent-bright), var(--accent), var(--accent-deep));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
🎨 BUTTONS
============================================================ */
.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: var(--bg-deep);
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all .3s;
    position: relative;
    overflow: hidden;
    font-family: 'DM Sans', sans-serif;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(200, 149, 108, 0.35);
}

.btn-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transition: left .5s;
}

.btn-accent:hover::before {
    left: 100%;
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    font-weight: 600;
    padding: 13px 35px;
    border-radius: 10px;
    border: 1.5px solid var(--accent);
    cursor: pointer;
    font-size: 1rem;
    transition: all .3s;
    font-family: 'DM Sans', sans-serif;
}

.btn-outline:hover {
    background: rgba(200, 149, 108, 0.08);
    transform: translateY(-2px);
}

.btn-wa {
    background: var(--wa);
    color: #fff;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all .3s;
    font-family: 'DM Sans', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-wa:hover {
    background: var(--wa-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
}

/* ============================================================
🃏 FEATURE CARDS
============================================================ */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 36px 28px;
    transition: all .4s cubic-bezier(.16, 1, .3, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity .4s;
}

.feature-card:hover {
    border-color: rgba(200, 149, 108, 0.25);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(200, 149, 108, 0.05);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

/* ============================================================
📝 FORMS
============================================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: .8rem;
    color: var(--fg-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--fg);
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
    transition: all .3s;
    outline: none;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200, 149, 108, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

.form-input::placeholder {
    color: var(--fg-dim);
}

/* ============================================================
🎨 BBC-STYLE LOGIN MODAL
============================================================ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-backdrop.show {
    display: flex;
}

.login-modal .modal-box {
    background: linear-gradient(145deg, #0f0b09, #1a1411);
    border: 1px solid rgba(200, 149, 108, 0.15);
    border-radius: 24px;
    padding: 40px 36px;
    max-width: 420px;
    width: 100%;
    position: relative;
    animation: modalIn .4s cubic-bezier(.16, 1, .3, 1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(200, 149, 108, 0.05);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(.92) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.login-modal .modal-box .bbc-bar {
    width: 60px;
    height: 4px;
    background: var(--bbc-red);
    border-radius: 2px;
    margin: 0 auto 16px;
}

.login-modal .modal-box .login-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--fg-warm);
    text-align: center;
    letter-spacing: 0.02em;
}

.login-modal .modal-box .login-subtitle {
    text-align: center;
    color: var(--fg-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.login-modal .modal-box .login-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    margin: 0 auto 12px;
    display: block;
    box-shadow: 0 0 30px rgba(200, 149, 108, 0.15);
}

.login-modal .modal-box .form-group {
    margin-bottom: 18px;
}

.login-modal .modal-box .form-label {
    display: block;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--fg-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.login-modal .modal-box .form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--fg);
    font-size: 0.95rem;
    font-family: 'DM Sans', sans-serif;
    transition: all .3s;
    outline: none;
}

.login-modal .modal-box .form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200, 149, 108, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.login-modal .modal-box .form-input::placeholder {
    color: var(--fg-dim);
}

.login-modal .modal-box .password-wrapper {
    position: relative;
}

.login-modal .modal-box .password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--fg-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px;
    transition: color .2s;
}

.login-modal .modal-box .password-toggle:hover {
    color: var(--fg-warm);
}

.login-modal .modal-box .btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: var(--bg-deep);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all .3s;
    font-family: 'DM Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
}

.login-modal .modal-box .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200, 149, 108, 0.3);
}

.login-modal .modal-box .btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-modal .modal-box .login-error {
    background: rgba(201, 64, 64, 0.1);
    border: 1px solid rgba(201, 64, 64, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    color: #e68a8a;
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: none;
    align-items: center;
    gap: 10px;
}

.login-modal .modal-box .login-error.show {
    display: flex;
}

.login-modal .modal-box .login-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--bg-deep);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.login-modal .modal-box .login-spinner.show {
    display: inline-block;
}

.login-modal .modal-box .login-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--fg-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px;
    transition: color .2s;
}

.login-modal .modal-box .login-close:hover {
    color: var(--fg);
}

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

/* ============================================================
🎨 BBC-STYLE STICKER ADS
============================================================ */
.sticker-bbc {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all .3s;
    display: flex;
    flex-direction: column;
    min-height: 180px;
    position: relative;
}

.sticker-bbc:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(200, 149, 108, 0.2);
}

.sticker-bbc .sticker-bbc-color-bar {
    height: 4px;
    width: 100%;
    flex-shrink: 0;
}

.sticker-bbc .sticker-bbc-body {
    padding: 18px 20px 16px;
    flex: 1;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.sticker-bbc .sticker-bbc-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 2px solid rgba(200, 149, 108, 0.1);
}

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

.sticker-bbc .sticker-bbc-title {
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Cormorant Garamond', serif;
    color: var(--fg-warm);
    letter-spacing: 0.02em;
}

.sticker-bbc .sticker-bbc-message {
    color: var(--fg-muted);
    font-size: 0.85rem;
    margin-top: 4px;
    line-height: 1.5;
}

.sticker-bbc .sticker-bbc-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(200, 149, 108, 0.1);
}

.sticker-bbc .sticker-bbc-badge {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 10px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 6px;
}

/* BBC Color Themes */
.sticker-theme-red .sticker-bbc-color-bar { background: var(--bbc-red); }
.sticker-theme-red .sticker-bbc-icon { background: rgba(184, 0, 0, 0.12); color: var(--bbc-red); }
.sticker-theme-red .sticker-bbc-badge { background: rgba(184, 0, 0, 0.12); color: var(--bbc-red); }

.sticker-theme-blue .sticker-bbc-color-bar { background: var(--bbc-blue); }
.sticker-theme-blue .sticker-bbc-icon { background: rgba(0, 91, 159, 0.12); color: var(--bbc-blue); }
.sticker-theme-blue .sticker-bbc-badge { background: rgba(0, 91, 159, 0.12); color: var(--bbc-blue); }

.sticker-theme-yellow .sticker-bbc-color-bar { background: var(--bbc-yellow); }
.sticker-theme-yellow .sticker-bbc-icon { background: rgba(255, 210, 48, 0.12); color: #B8860B; }
.sticker-theme-yellow .sticker-bbc-badge { background: rgba(255, 210, 48, 0.12); color: #B8860B; }

.sticker-theme-green .sticker-bbc-color-bar { background: #2E7D32; }
.sticker-theme-green .sticker-bbc-icon { background: rgba(46, 125, 50, 0.12); color: #2E7D32; }
.sticker-theme-green .sticker-bbc-badge { background: rgba(46, 125, 50, 0.12); color: #2E7D32; }

.sticker-theme-purple .sticker-bbc-color-bar { background: #7B1FA2; }
.sticker-theme-purple .sticker-bbc-icon { background: rgba(123, 31, 162, 0.12); color: #7B1FA2; }
.sticker-theme-purple .sticker-bbc-badge { background: rgba(123, 31, 162, 0.12); color: #7B1FA2; }

.sticker-theme-orange .sticker-bbc-color-bar { background: #E65100; }
.sticker-theme-orange .sticker-bbc-icon { background: rgba(230, 81, 0, 0.12); color: #E65100; }
.sticker-theme-orange .sticker-bbc-badge { background: rgba(230, 81, 0, 0.12); color: #E65100; }

.sticker-theme-teal .sticker-bbc-color-bar { background: #00695C; }
.sticker-theme-teal .sticker-bbc-icon { background: rgba(0, 105, 92, 0.12); color: #00695C; }
.sticker-theme-teal .sticker-bbc-badge { background: rgba(0, 105, 92, 0.12); color: #00695C; }

.sticker-theme-pink .sticker-bbc-color-bar { background: #C2185B; }
.sticker-theme-pink .sticker-bbc-icon { background: rgba(194, 24, 91, 0.12); color: #C2185B; }
.sticker-theme-pink .sticker-bbc-badge { background: rgba(194, 24, 91, 0.12); color: #C2185B; }

/* ============================================================
🎨 BBC-STYLE PRODUCT CARDS
============================================================ */
.product-bbc {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all .3s;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-bbc:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(200, 149, 108, 0.2);
}

.product-bbc .product-bbc-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-elevated);
    position: relative;
    flex-shrink: 0;
}

.product-bbc .product-bbc-image img,
.product-bbc .product-bbc-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.product-bbc:hover .product-bbc-image img,
.product-bbc:hover .product-bbc-image video {
    transform: scale(1.05);
}

.product-bbc .product-bbc-image .product-bbc-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--bbc-red);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 4px;
}

.product-bbc .product-bbc-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-bbc .product-bbc-category {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 4px;
}

.product-bbc .product-bbc-title {
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Cormorant Garamond', serif;
    color: var(--fg-warm);
    line-height: 1.3;
    margin-bottom: 4px;
}

.product-bbc .product-bbc-desc {
    color: var(--fg-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-bbc .product-bbc-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-bright);
    margin-top: 8px;
}

.product-bbc .product-bbc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.product-bbc .product-bbc-views {
    font-size: 0.7rem;
    color: var(--fg-dim);
}

.product-bbc .product-bbc-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: var(--bg-deep);
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all .3s;
    font-family: 'DM Sans', sans-serif;
}

.product-bbc .product-bbc-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(200, 149, 108, 0.3);
}

/* ============================================================
🔄 PRODUCT ADS SCROLL
============================================================ */
.ads-scroll-area {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 4px 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.ads-scroll-area::-webkit-scrollbar {
    height: 4px;
}

.ads-scroll-area::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 2px;
}

.ads-scroll-area .product-bbc {
    min-width: 220px;
    max-width: 280px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

/* ============================================================
📊 ADMIN PANEL
============================================================ */
.admin-sidebar {
    width: 260px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    min-height: 100vh;
    padding: 24px 0;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    overflow-y: auto;
}

.admin-main {
    margin-left: 260px;
    padding: 32px;
    min-height: 100vh;
}

.admin-nav-item {
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--fg-muted);
    cursor: pointer;
    transition: all .2s;
    font-weight: 500;
    border-left: 3px solid transparent;
    font-size: .9rem;
}

.admin-nav-item:hover {
    background: rgba(200, 149, 108, 0.04);
    color: var(--fg-warm);
}

.admin-nav-item.active {
    color: var(--accent-bright);
    background: var(--accent-glow);
    border-left-color: var(--accent);
}

/* ============================================================
📊 DATA TABLES
============================================================ */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 14px 16px;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--fg-muted);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: .88rem;
}

.data-table tr:hover td {
    background: rgba(200, 149, 108, 0.03);
}

/* ============================================================
🧩 ADMIN CRUD MODALS
============================================================ */
.admin-modal .modal-box {
    background: linear-gradient(145deg, #0f0b09, #1a1411);
    border: 1px solid rgba(200, 149, 108, 0.15);
    border-radius: 20px;
    padding: 32px;
    max-width: 520px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    animation: modalIn .35s cubic-bezier(.16, 1, .3, 1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.admin-modal .modal-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 22px;
    padding-right: 30px;
}

.admin-modal .login-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--fg-muted);
    font-size: 1.1rem;
    cursor: pointer;
}

.admin-modal .login-close:hover { color: var(--accent); }

.admin-tab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.icon-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--fg-muted);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s;
    font-size: .82rem;
}

.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn.danger:hover { border-color: #e2685f; color: #e2685f; }

/* ============================================================
🏷️ BADGES
============================================================ */
.badge {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 600;
}

.badge-pending {
    background: rgba(200, 149, 108, 0.12);
    color: var(--accent-bright);
}

.badge-completed {
    background: rgba(91, 168, 91, 0.12);
    color: #8fd68f;
}

.badge-rejected {
    background: rgba(201, 64, 64, 0.12);
    color: #e68a8a;
}

.badge-active {
    background: rgba(91, 168, 91, 0.12);
    color: #8fd68f;
}

.badge-inactive {
    background: rgba(201, 64, 64, 0.12);
    color: #e68a8a;
}

/* ============================================================
✨ REVEAL ANIMATIONS
============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all .8s cubic-bezier(.16, 1, .3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
    margin: 0 auto;
    max-width: 600px;
}

/* ============================================================
🖼️ LIGHTBOX
============================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 3, 2, 0.94);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox.show {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 14px;
    animation: modalIn .3s;
}

/* ============================================================
💬 CHATBOT
============================================================ */
.chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 48px);
    height: 520px;
    max-height: calc(100vh - 140px);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    z-index: 950;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(200, 149, 108, 0.08);
    animation: chatOpen .35s cubic-bezier(.16, 1, .3, 1);
}

.chatbot-window.open {
    display: flex;
}

@keyframes chatOpen {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-header {
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(200, 149, 108, 0.12), rgba(154, 107, 66, 0.06));
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.chat-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.chat-header-info {
    flex: 1;
}

.chat-header-info h4 {
    font-size: .95rem;
    font-weight: 600;
    color: var(--fg-warm);
}

.chat-header-info span {
    font-size: .75rem;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-header-info span::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    display: inline-block;
}

.chat-close {
    background: none;
    border: none;
    color: var(--fg-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    transition: color .2s;
}

.chat-close:hover {
    color: var(--fg);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 2px;
}

.chat-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: .9rem;
    line-height: 1.6;
    animation: msgIn .3s ease;
}

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

.chat-msg.bot {
    background: var(--bg-elevated);
    color: var(--fg-warm);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-msg.user {
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: var(--bg-deep);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

.chat-msg.bot a {
    color: var(--accent-bright);
    text-decoration: underline;
}

.chat-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 12px;
    flex-shrink: 0;
}

.chat-quick-btn {
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--accent-glow);
    border: 1px solid rgba(200, 149, 108, 0.2);
    color: var(--accent-bright);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    font-family: 'DM Sans', sans-serif;
    white-space: nowrap;
}

.chat-quick-btn:hover {
    background: var(--accent-glow-strong);
    border-color: var(--accent);
}

.chat-input-area {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
    background: rgba(10, 6, 5, 0.5);
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    color: var(--fg);
    font-size: .9rem;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: border-color .3s;
}

.chat-input:focus {
    border-color: var(--accent);
}

.chat-input::placeholder {
    color: var(--fg-dim);
}

.chat-send {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    border: none;
    color: var(--bg-deep);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all .2s;
    flex-shrink: 0;
}

.chat-send:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(200, 149, 108, 0.3);
}

.chat-typing {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    align-self: flex-start;
}

.chat-typing span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fg-dim);
    animation: typeDot 1.4s infinite;
}

.chat-typing span:nth-child(2) {
    animation-delay: .2s;
}

.chat-typing span:nth-child(3) {
    animation-delay: .4s;
}

@keyframes typeDot {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: .4;
    }
    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* ============================================================
🔔 TOAST NOTIFICATIONS
============================================================ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: calc(100vw - 40px);
}

.toast {
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 500;
    font-size: .88rem;
    animation: toastIn .4s cubic-bezier(.16, 1, .3, 1), toastOut .3s 3.5s forwards;
    max-width: 380px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.toast-success {
    background: #1a2e1a;
    color: #a8e6a8;
    border: 1px solid #2d4a2d;
}

.toast-error {
    background: #2e1a1a;
    color: #e6a8a8;
    border: 1px solid #4a2d2d;
}

.toast-info {
    background: var(--bg-elevated);
    color: var(--fg);
    border: 1px solid var(--border-light);
}

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

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateX(60px);
    }
}

/* ============================================================
🔄 SESSION TIMER
============================================================ */
.session-timer {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 850;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 14px;
    font-size: .7rem;
    color: var(--fg-muted);
    display: none;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.session-timer.show {
    display: flex;
}

.session-timer .timer-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .3;
    }
}

/* ============================================================
🔒 ADMIN PADLOCK
============================================================ */
.admin-padlock {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 900;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-glow);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s;
    color: var(--accent-bright);
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(200, 149, 108, 0.2);
}

.admin-padlock:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(200, 149, 108, 0.4);
    background: var(--accent-glow-strong);
}

.admin-padlock .lock-icon {
    transition: all .3s;
}

.admin-padlock:hover .lock-icon {
    transform: rotate(10deg);
}

/* ============================================================
🔘 FLOATING BUTTONS
============================================================ */
.float-buttons {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-end;
}

.wa-float {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--wa);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all .3s;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    position: relative;
}

.wa-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.wa-float .wa-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--wa);
    animation: waPulse 2s infinite;
}

@keyframes waPulse {
    0% {
        transform: scale(1);
        opacity: .6;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.social-float {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(200, 149, 108, 0.35);
    transition: all .3s;
    border: none;
    font-size: 1.6rem;
    position: relative;
}

.social-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(200, 149, 108, 0.45);
}

.social-float-ig {
    background: linear-gradient(135deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: #fff;
}

.social-float-fb {
    background: #1877F2;
    color: #fff;
}

.social-float-tt {
    background: linear-gradient(135deg, #25F4EE, #000000, #FE2C55);
    color: #fff;
}

.chat-float {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(200, 149, 108, 0.35);
    transition: all .3s;
    border: none;
    color: var(--bg-deep);
    font-size: 1.5rem;
    position: relative;
}

.chat-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(200, 149, 108, 0.45);
}

.chat-float .chat-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-deep);
}

/* ============================================================
📢 STICKER SECTIONS
============================================================ */
.sticker-section-top {
    background: linear-gradient(135deg, rgba(200, 149, 108, 0.04), rgba(154, 107, 66, 0.02));
    border-bottom: 1px solid rgba(200, 149, 108, 0.06);
    padding: 8px 0;
    position: relative;
    z-index: 45;
    min-height: 60px;
}

.sticker-section-bottom {
    background: linear-gradient(135deg, rgba(200, 149, 108, 0.04), rgba(154, 107, 66, 0.02));
    border-top: 1px solid rgba(200, 149, 108, 0.06);
    padding: 8px 0;
    margin-top: 16px;
}

/* ============================================================
🎨 SOCIAL FOOTER ICONS
============================================================ */
.social-footer-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-footer-icons a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
    font-size: 1.2rem;
    text-decoration: none;
}

.social-footer-icons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.social-footer-icons .ig-link {
    background: linear-gradient(135deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: #fff;
}

.social-footer-icons .fb-link {
    background: #1877F2;
    color: #fff;
}

.social-footer-icons .tt-link {
    background: linear-gradient(135deg, #25F4EE, #000000, #FE2C55);
    color: #fff;
}

.social-footer-icons .wa-link {
    background: #25D366;
    color: #fff;
}

/* ============================================================
🎨 SCROLLBAR
============================================================ */
::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--fg-dim);
}

/* ============================================================
📱 RESPONSIVE
============================================================ */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 100%;
        position: relative;
        min-height: auto;
    }

    .admin-main {
        margin-left: 0;
        padding: 16px;
    }

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

    .float-buttons {
        bottom: 16px;
        right: 16px;
        gap: 12px;
    }

    .wa-float,
    .social-float,
    .chat-float {
        width: 54px;
        height: 54px;
        font-size: 1.4rem;
    }

    .chatbot-window {
        bottom: 80px;
        right: 12px;
        width: calc(100vw - 24px);
        height: calc(100vh - 100px);
        max-height: none;
        border-radius: 16px;
    }

    .admin-padlock {
        bottom: 16px;
        left: 16px;
        width: 36px;
        height: 36px;
        font-size: .75rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .feature-card {
        padding: 24px 20px;
    }

    .sticker-bbc .sticker-bbc-body {
        padding: 14px 16px;
        flex-wrap: wrap;
    }

    .sticker-bbc .sticker-bbc-image {
        width: 50px;
        height: 50px;
    }

    .product-bbc .product-bbc-title {
        font-size: 1rem;
    }

    .product-bbc .product-bbc-price {
        font-size: 1.1rem;
    }

    .ads-scroll-area .product-bbc {
        min-width: 180px;
        max-width: 220px;
    }

    .sticker-section-top {
        padding: 4px 0;
        min-height: 50px;
    }

    .sticker-section-bottom {
        padding: 4px 0;
    }

    .data-table {
        font-size: .75rem;
    }

    .data-table th,
    .data-table td {
        padding: 8px 10px;
    }

    .toast-container {
        top: 10px;
        right: 10px;
        max-width: calc(100vw - 20px);
    }

    .toast {
        font-size: .8rem;
        padding: 10px 14px;
    }

    .social-footer-icons a {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .chatbot-window {
        right: 8px;
        width: calc(100vw - 16px);
        height: calc(100vh - 80px);
        bottom: 76px;
    }

    .float-buttons {
        bottom: 12px;
        right: 12px;
    }

    .wa-float,
    .social-float,
    .chat-float {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

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

    .sticker-bbc .sticker-bbc-body {
        padding: 12px 14px;
        gap: 10px;
    }

    .sticker-bbc .sticker-bbc-title {
        font-size: .9rem;
    }

    .sticker-bbc .sticker-bbc-message {
        font-size: .8rem;
    }

    .sticker-bbc .sticker-bbc-image {
        width: 40px;
        height: 40px;
    }

    .sticker-bbc .sticker-bbc-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .ads-scroll-area .product-bbc {
        min-width: 150px;
        max-width: 190px;
    }

    .product-bbc .product-bbc-title {
        font-size: .9rem;
    }

    .product-bbc .product-bbc-price {
        font-size: 1rem;
    }

    .product-bbc .product-bbc-body {
        padding: 12px 14px 14px;
    }

    .btn-accent,
    .btn-outline,
    .btn-wa {
        padding: 10px 20px;
        font-size: .85rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .feature-card {
        padding: 16px 14px;
    }

    .feature-card .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .admin-main {
        padding: 16px;
    }

    .admin-sidebar {
        padding: 12px 0;
    }

    .admin-nav-item {
        padding: 10px 16px;
        font-size: .8rem;
    }

    .social-footer-icons a {
        width: 34px;
        height: 34px;
        font-size: .9rem;
    }

    .login-modal .modal-box {
        padding: 24px 16px;
    }

    .login-modal .modal-box .login-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 360px) {
    .ads-scroll-area .product-bbc {
        min-width: 130px;
        max-width: 160px;
    }

    .sticker-bbc .sticker-bbc-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .sticker-bbc .sticker-bbc-image {
        width: 100%;
        height: auto;
        max-height: 80px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}