:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-gradient: linear-gradient(135deg, #2563eb, #06b6d4);
    
    --bg: #020617; 
    --surface: #0f172a; 
    --surface-hover: #1e293b;
    --border: #334155;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    
    --success: #10b981;
    --success-gradient: linear-gradient(135deg, #10b981, #34d399);
    --warning: #f59e0b;
    --danger: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; outline: none; background: transparent; }

::-webkit-scrollbar { width: 4px; height: 4px; background: transparent; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(59, 130, 246, 0.5); }

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

.reveal { opacity: 0; transform: translateY(10px); transition: all 0.3s ease-out; }
.reveal-visible { opacity: 1; transform: translateY(0); }

.main-tab-content { display: none; animation: tabFadeInLight 0.25s ease-out forwards; padding: 1rem 0 4rem; opacity: 0; }
.main-tab-content.active { display: block; }
@keyframes tabFadeInLight { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

@media (min-width: 768px) {
    .reveal { transform: translateY(30px); transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
    .main-tab-content { animation: tabFadeInHeavy 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards; }
    @keyframes tabFadeInHeavy { 
        from { opacity: 0; transform: translateY(20px); } 
        to { opacity: 1; transform: translateY(0); } 
    }
}

header { 
    position: sticky; top: 0; z-index: 100; 
    background: rgba(2, 6, 23, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(51, 65, 85, 0.5); transition: 0.3s;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; height: 70px; gap: 10px; }

.logo-area { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; flex-shrink: 0; }
.logo-img { max-height: 32px; border-radius: 8px; display: none; object-fit: contain; }
.logo-text { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.5px; color: var(--text); }
.logo-text span { color: var(--primary-light); }

.nav-right { display: flex; gap: 1rem; align-items: center; flex-grow: 1; justify-content: flex-end; }

nav { display: flex; gap: 1rem; align-items: center; }
nav a { 
    font-weight: 500; font-size: 0.9rem; color: var(--text-muted); transition: 0.3s; 
    position: relative; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 0.5rem 0.6rem; border-radius: 8px;
}
nav a i { font-size: 1.1rem; display: none; }
nav a:hover:not(#nav-admin), nav a.active:not(#nav-admin) { color: var(--text); }
nav a:not(#nav-admin)::after { 
    content: ''; position: absolute; bottom: 0px; left: 10%; width: 0; height: 2px; 
    background: var(--primary-light); transition: 0.3s; 
}
nav a:hover:not(#nav-admin)::after, nav a.active:not(#nav-admin)::after { width: 80%; }

#nav-admin { background: rgba(239, 68, 68, 0.15); color: var(--danger); font-weight: 700; border: 1px solid rgba(239, 68, 68, 0.3); }
#nav-admin:hover { background: var(--danger); color: white; }

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

.btn { 
    padding: 0.6rem 1rem; border-radius: 8px; font-weight: 600; font-size: 0.85rem; 
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); display: inline-flex; align-items: center; gap: 6px; justify-content: center; 
}
.btn-primary { background: var(--primary-gradient); color: white; box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5); }
.btn-success { background: var(--success-gradient); color: white; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3); }
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5); }
.btn-warning { background: rgba(245, 158, 11, 0.15); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.3); }
.btn-warning:hover { background: var(--warning); color: white; }
.btn-outline { background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { background: var(--surface-hover); border-color: var(--text-muted); }
.btn-danger { background: rgba(239, 68, 68, 0.1); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.2); }
.btn-danger:hover { background: var(--danger); color: white; }

.notif-dot {
    position: absolute; top: 0px; right: 0px;
    width: 10px; height: 10px; background-color: var(--danger);
    border-radius: 50%; display: none; box-shadow: 0 0 5px rgba(239, 68, 68, 0.8);
}

.hero { padding: 4rem 5% 3rem; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; left: 50%; transform: translateX(-50%); width: 80vw; height: 80vw; background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, rgba(0,0,0,0) 70%); z-index: -1; }
.hero h1 { font-size: clamp(2rem, 5vw, 4.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 1rem; letter-spacing: -1.5px; }

.tw-container { display: inline-flex; align-items: center; justify-content: center; position: relative; min-height: 1.2em;}
#tw-text { color: var(--primary-light); background: -webkit-linear-gradient(0deg, #3b82f6, #06b6d4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.tw-cursor { display: inline-block; width: 4px; height: 1em; background-color: var(--primary-light); margin-left: 2px; animation: blink 1s step-end infinite; vertical-align: middle; }
@keyframes blink { 50% { opacity: 0; } }

.hero p { color: var(--text-muted); max-width: 700px; margin: 0 auto 1.5rem; font-size: 1rem; }

.marquee-container { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 0.6rem 0; overflow: hidden; display: flex; position: relative; margin-bottom: 2rem;}
.marquee-content { display: flex; gap: 3rem; white-space: nowrap; animation: marquee 25s linear infinite; }
.marquee-text { font-weight: 600; color: var(--text-muted); font-size: 0.85rem; letter-spacing: 1px;}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.banner-slider-container { width: 100%; max-width: 1400px; margin: 0 auto 2.5rem; position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 9/4; background: var(--surface); border: 1px solid var(--border); display: none; }
.banner-track { display: flex; width: 100%; height: 100%; transition: transform 0.5s ease-in-out; }
.banner-slide { min-width: 100%; height: 100%; object-fit: cover; }
.banner-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.banner-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: 0.3s; }
.banner-dot.active { background: white; transform: scale(1.2); }

.section-header { text-align: center; margin-bottom: 2rem; }
.section-header h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.3rem; color: var(--text); letter-spacing: -0.5px;}
.section-header p { color: var(--text-muted); font-size: 0.95rem;}

.tabs { display: flex; justify-content: center; gap: 0.8rem; margin-bottom: 2rem; flex-wrap: wrap; }
.tab-btn { padding: 0.6rem 1.2rem; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); font-size: 0.9rem; font-weight: 600; transition: 0.3s; }
.tab-btn.active { background: rgba(37, 99, 235, 0.15); color: var(--primary-light); border-color: var(--primary); }
.tab-btn:hover:not(.active) { background: var(--surface-hover); color: var(--text); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; max-width: 100%; margin: 0 auto; }

.brand-card { 
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0; 
    display: flex; flex-direction: column; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; cursor: pointer;
}
.brand-card::before { 
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; 
    background: var(--primary-gradient);
    transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; z-index: 5;
}
.brand-card:hover { transform: translateY(-5px); border-color: #52525b; box-shadow: 0 10px 25px -10px rgba(37,99,235,0.25); }
.brand-card:hover::before { transform: scaleX(1); }

.brand-img-wrapper { width: 100%; height: 140px; background: var(--surface-hover); position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.brand-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.brand-card:hover .brand-img-wrapper img { transform: scale(1.08); }

.brand-content { padding: 1.2rem; display: flex; flex-direction: column; flex-grow: 1; align-items: center; justify-content: center; text-align: center; }
.brand-card h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.3; }

.card-badge { position: absolute; top: 10px; right: 10px; padding: 0.3rem 0.7rem; border-radius: 20px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; background: rgba(2, 6, 23, 0.85); color: var(--primary-light); border: 1px solid rgba(37, 99, 235, 0.4); backdrop-filter: blur(5px); z-index: 2; }

.item-selection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 10px; max-height: 250px; overflow-y: auto; padding-right: 5px;}
.item-card { 
    border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 0.8rem; cursor: pointer; 
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; transition: 0.2s; position: relative;
}
.item-card:hover { border-color: var(--primary-light); background: rgba(37,99,235,0.05); }
.item-card.selected { border-color: var(--primary); background: rgba(37,99,235,0.15); box-shadow: 0 0 0 2px rgba(37,99,235,0.3); }
.item-card h4 { font-size: 0.85rem; margin-bottom: 4px; color: var(--text); line-height: 1.2; }
.item-card p { font-size: 0.9rem; font-weight: 800; color: var(--primary-light); }
.item-card.sold-out { opacity: 0.5; filter: grayscale(1); pointer-events: none; }
.item-card.sold-out::after { content: 'HABIS'; position: absolute; background: var(--danger); color: white; font-size: 0.6rem; font-weight: bold; padding: 2px 6px; border-radius: 4px; top: 4px; right: 4px; }

/* ======== STRUK / RECEIPT UI STYLE ======== */
.receipt-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}
.receipt-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-light);
}
.receipt-header {
    background: #1e293b;
    padding: 1.2rem 1.5rem;
    border-bottom: 2px dashed #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.receipt-body {
    padding: 1.5rem;
    background: var(--bg);
}
.receipt-footer {
    padding: 1.2rem 1.5rem;
    background: #0b1121;
    border-top: 2px dashed #334155;
}
.receipt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.receipt-anim {
    opacity: 0;
    animation: slideInUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.tutorial-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 800px; margin: 0 auto; }
.tutorial-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.video-container { position: relative; width: 100%; height: 0; padding-bottom: 56.25%; overflow: hidden; background: #000; border-bottom: 1px solid var(--border); }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.tutorial-info { padding: 1.2rem; }
.tutorial-info h3 { font-size: 1.1rem; color: var(--primary-light); margin-bottom: 0.4rem; }
.tutorial-info p { color: var(--text-muted); font-size: 0.85rem; }

.info-section { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--border); max-width: 1000px; margin-left: auto; margin-right: auto;}
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.feature-card { background: var(--surface); padding: 1.5rem; border-radius: 14px; border: 1px solid var(--border); text-align: center; transition: 0.3s; }
.feature-card:hover { transform: translateY(-5px); border-color: var(--primary); background: rgba(37,99,235,0.05); }
.feature-icon { font-size: 2rem; color: var(--primary-light); margin-bottom: 1rem; }
.feature-card h4 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--text); }
.feature-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }

.faq-box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.2rem; margin-bottom: 1rem; cursor: pointer; transition: 0.3s; }
.faq-box:hover { border-color: var(--primary-light); }
.faq-box h4 { color: var(--primary-light); font-size: 1rem; display: flex; justify-content: space-between; align-items: center; margin: 0;}
.faq-box h4 i.arrow { transition: transform 0.3s ease; color: var(--text-muted); font-size: 0.9rem;}
.faq-box.expanded h4 i.arrow { transform: rotate(180deg); color: var(--primary-light); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out, opacity 0.3s ease-out; opacity: 0; }
.faq-box.expanded .faq-answer { max-height: 500px; opacity: 1; margin-top: 0.8rem; }
.faq-answer p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }

.modal-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px); z-index: 99999; 
    display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: 0.3s ease; padding: 1rem;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-content { 
    background: var(--bg); border: 1px solid var(--border); border-radius: 16px; 
    width: 100%; max-width: 450px; max-height: 90vh; overflow-y: auto; overflow-x: hidden; padding: 1.5rem;
    transform: translateY(30px) scale(0.95); transition: 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.7);
}
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }
.modal-content.large { max-width: 800px; }
.modal-content.wide { max-width: 650px; }

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; border-bottom: 1px solid var(--border); padding-bottom: 0.8rem; }
.modal-header h2 { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.close-btn { background: transparent; color: var(--text-muted); font-size: 1.2rem; transition: 0.2s; padding: 5px; }
.close-btn:hover { color: var(--danger); transform: rotate(90deg); }

.form-group { margin-bottom: 1rem; text-align: left; }
.form-group label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.4rem; font-weight: 500; }
.form-control { 
    width: 100%; padding: 0.7rem 1rem; border-radius: 8px; border: 1px solid var(--border); 
    background: var(--surface); color: var(--text); outline: none; transition: 0.3s; font-size: 0.9rem;
}
.form-control:focus { border-color: var(--primary-light); box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2); }
textarea.form-control { resize: vertical; min-height: 80px; }

.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.type-card { border: 1px solid var(--border); background: var(--bg); border-radius: 8px; padding: 10px; cursor: pointer; text-align: center; transition: 0.2s; position: relative; }
.type-card.active { border-color: var(--primary-light); background: rgba(37,99,235,0.1); }
.type-card i { font-size: 1.2rem; margin-bottom: 5px; color: var(--text-muted); }
.type-card.active i { color: var(--primary-light); }
.type-card strong { display: block; font-size: 0.8rem; color: var(--text); margin-bottom: 2px; line-height: 1.2; }
.type-card small { font-size: 0.65rem; color: var(--text-muted); line-height: 1; }
.type-preview { background: rgba(255,255,255,0.03); border: 1px dashed var(--border); padding: 10px; border-radius: 8px; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 15px; }

.msg-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.6); z-index: 100000; display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: 0.3s; backdrop-filter: blur(5px); padding: 1rem;
}
.msg-overlay.active { opacity: 1; pointer-events: all; }
.msg-box {
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 2rem;
    width: 100%; max-width: 350px; text-align: center; transform: scale(0.9); transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(59, 130, 246, 0.1);
}
.msg-overlay.active .msg-box { transform: scale(1); }
.msg-icon { font-size: 2.5rem; margin-bottom: 0.8rem; }
.msg-icon.success { color: var(--success); }
.msg-icon.error { color: var(--danger); }
.msg-icon.info { color: var(--primary-light); }
.msg-icon.warning { color: var(--warning); }
.msg-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--text);}
.msg-desc { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.2rem; }

.cart-total-box { border-top: 2px dashed var(--border); padding-top: 1rem; margin-top: 1rem; display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; font-weight: 800; }
.unique-code-info { font-size: 0.75rem; color: var(--warning); font-weight: normal; margin-top: 5px; text-align: right;}
.promo-box { display: flex; gap: 8px; margin-bottom: 1rem; }
.promo-msg { font-size: 0.75rem; font-weight: bold; margin-bottom: 10px; text-align: right; }
.qris-box { background: white; padding: 1.5rem; border-radius: 16px; margin-bottom: 1.5rem; box-shadow: 0 10px 25px rgba(0,0,0,0.2); text-align: center; }

#admin-dashboard {
    display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: var(--bg); z-index: 9000; overflow-y: auto; overflow-x: hidden;
}
.admin-header {
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 1rem 4%; display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 10; flex-wrap: wrap; gap: 10px;
}
.admin-nav {
    display: flex; gap: 0.8rem; overflow-x: auto; padding: 0.8rem 4%; border-bottom: 1px solid var(--border); background: rgba(15,23,42,0.95);
}
.admin-tab { 
    padding: 0.5rem 0.8rem; border-radius: 8px; color: var(--text-muted); font-size: 0.85rem;
    background: transparent; font-weight: 600; white-space: nowrap; transition: 0.3s; border: 1px solid transparent;
}
.admin-tab:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.admin-tab.active { background: rgba(37,99,235,0.1); border-color: var(--primary); color: var(--primary-light); }
.admin-body { padding: 2rem 4%; max-width: 1800px; margin: 0 auto; overflow-x: hidden; }

.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.table-responsive { overflow-x: auto; background: var(--surface); border-radius: 10px; border: 1px solid var(--border); padding-bottom: 5px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.85rem; min-width: 600px;}
th, td { padding: 0.8rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { color: var(--text-muted); font-weight: 600; background: rgba(255,255,255,0.02); white-space: nowrap; }

.status-badge { padding: 0.3rem 0.6rem; border-radius: 6px; font-size: 0.7rem; font-weight: 700; display: inline-block;}
.status-unpaid { background: rgba(148, 163, 184, 0.1); color: var(--text-muted); border: 1px solid rgba(148, 163, 184, 0.3);}
.status-pending { background: rgba(245, 158, 11, 0.1); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.2);}
.status-success { background: rgba(16, 185, 129, 0.1); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2);}
.status-failed { background: rgba(239, 68, 68, 0.1); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.2);}

.footer-new { background: #020617; padding: 3rem 4%; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; margin-top: 2rem; max-width: 1800px; margin-left:auto; margin-right:auto;}
.footer-left { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 35px; border-radius: 8px; }
.footer-brand h2 { font-size: 1.3rem; font-weight: 800; color: white; letter-spacing: -0.5px; }
.footer-brand h2 span { color: var(--primary-light); }
.footer-tagline { color: var(--text-muted); font-size: 0.85rem; font-weight: 500; }

.footer-social-links { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap;}
.soc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 18px; border-radius: 8px; font-weight: 600; font-size: 0.85rem; transition: 0.3s; text-decoration: none; }
.soc-ig { border: 1px solid #ef4444; color: #ef4444; }
.soc-ig:hover { background: #ef4444; color: white; }
.soc-tt { border: 1px solid #f8fafc; color: #f8fafc; }
.soc-tt:hover { background: #f8fafc; color: black; }

.footer-right { font-size: 1rem; font-weight: 600; color: var(--text-muted); display: flex; flex-direction: column; align-items: flex-end; }
.wa-contact-btn { display: inline-flex; align-items: center; gap: 8px; background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); color: var(--success); padding: 0.6rem 1.2rem; border-radius: 8px; font-weight: 700; font-size: 1.1rem; margin-top: 8px; transition: 0.3s; text-decoration: none;}
.wa-contact-btn:hover { background: var(--success); color: white; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(16,185,129,0.3); }

/* LIVE CHAT UI */
.chat-fab {
    position: fixed; bottom: 20px; right: 20px; width: 55px; height: 55px; background: var(--primary-gradient);
    border-radius: 50%; display: flex; justify-content: center; align-items: center; color: white;
    font-size: 1.5rem; box-shadow: 0 10px 25px rgba(37,99,235,0.4); cursor: pointer; z-index: 9999;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.chat-fab:hover { transform: scale(1.1); }
.chat-fab .notif-badge {
    position: absolute; top: 0; right: 0; background: var(--danger); width: 14px; height: 14px; border-radius: 50%;
    display: none; border: 2px solid var(--bg);
}

.chat-window {
    position: fixed; bottom: 85px; right: 20px; width: 320px; max-width: calc(100vw - 40px);
    background: var(--bg); border: 1px solid var(--border); border-radius: 16px; display: flex; flex-direction: column;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5); z-index: 9999; overflow: hidden;
    transform: translateY(20px) scale(0.9); opacity: 0; pointer-events: none; transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom right;
}
.chat-window.active { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }

.chat-header { background: var(--surface); padding: 12px 15px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--text); }
.chat-body { height: 350px; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.chat-msg { max-width: 80%; padding: 8px 12px; border-radius: 12px; font-size: 0.85rem; line-height: 1.4; word-wrap: break-word;}
.chat-msg.admin { background: var(--surface-hover); color: var(--text); align-self: flex-start; border-bottom-left-radius: 2px; }
.chat-msg.user { background: var(--primary); color: white; align-self: flex-end; border-bottom-right-radius: 2px; }
.chat-time { font-size: 0.65rem; color: var(--text-muted); text-align: right; margin-top: 4px; display: block; opacity:0.7;}

.chat-footer { padding: 10px; background: var(--surface); border-top: 1px solid var(--border); display: flex; gap: 8px; }
.chat-footer input { flex: 1; background: var(--bg); border: 1px solid var(--border); color: var(--text); padding: 8px 12px; border-radius: 20px; outline: none; font-size: 0.85rem; }
.chat-footer button { background: var(--primary-light); color: white; border: none; padding: 0 15px; border-radius: 20px; font-weight: 600; cursor: pointer; transition: 0.2s;}
.chat-footer button:hover { background: var(--primary); }

/* Admin Chat Tab Styling */
.admin-chat-card { background: var(--surface); border: 1px solid var(--border); padding: 1rem; border-radius: 10px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: 0.2s; }
.admin-chat-card:hover { border-color: var(--primary-light); }
.admin-chat-card .badge { background: var(--danger); color: white; padding: 2px 6px; border-radius: 10px; font-size: 0.7rem; font-weight: bold; }

@media (max-width: 1024px) { .settings-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .settings-grid { grid-template-columns: 1fr; }
    .nav-right { gap: 0.3rem; }
    nav { gap: 0.3rem; }
    nav a { flex-direction: column; gap: 2px; padding: 0.4rem; font-size: 0.65rem; border-radius: 6px; }
    nav a span.hide-mobile { display: none !important; }
    nav a i { display: block; font-size: 1.2rem; margin-bottom: 2px; }
    nav a:not(#nav-admin)::after { display: none; }
    nav a.active:not(#nav-admin) { color: var(--primary-light); background: rgba(37,99,235,0.1); }
    
    .header-actions { gap: 0.3rem; }
    .btn { padding: 0.5rem 0.6rem; font-size: 0.8rem; }
    .hide-mobile { display: none !important; }
    
    .hero { padding: 2.5rem 5% 1.5rem; }
    .hero h1 { font-size: 1.8rem; }
    .admin-nav { padding: 0.8rem; }
    .cart-total-box { flex-direction: column; align-items: flex-start; gap: 8px; }
    .footer-new { flex-direction: column; align-items: flex-start; padding: 2rem 5%; }
    .footer-right { align-items: flex-start; margin-top: 1rem; }
    .modal-content { padding: 1.2rem; }
    
    .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
    .brand-img-wrapper { height: 110px; }
    .brand-card h3 { font-size: 0.95rem; }
    .msg-box { padding: 1.5rem; }
    
    .item-selection-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
    .type-grid { grid-template-columns: 1fr; } 
    
    .video-container { padding-bottom: 0; height: 280px; }
}
