/* ============================================================
   Base Reset & Variables
   ============================================================ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
    --color-primary: #14b8a6;
    --color-dark: #0f766e;
    --color-accent: #3b82f6;
    --color-bg: #f5f7fb;
    --color-text: #1f2937;
    --font-body: 'Karla', sans-serif;
    --font-heading: 'Quicksand', sans-serif;
    --font-weight-body: 400;
    --font-weight-heading: 700;
    --sidebar-w: 240px;
    --header-h: 60px;
    --radius: 12px;
    --shadow: 0 4px 16px rgba(0,0,0,0.07);
}

body {
    font-family: var(--font-body);
    font-weight: var(--font-weight-body);
    background: var(--color-bg);
    color: var(--color-text);
    display: flex;
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar {
    width: var(--sidebar-w);
    height: 100vh;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    padding: 16px 12px;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 30;
    overflow-y: auto;
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }

.logo {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18px;
    color: var(--color-dark);
    margin-bottom: 18px;
    padding: 4px 8px;
    flex-shrink: 0;
}

.menu { flex: 1; }

.menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    margin-bottom: 3px;
    border-radius: 10px;
    font-size: 13px;
    color: #4b5563;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    overflow: hidden;
}

.menu a i { width: 18px; text-align: center; flex-shrink: 0; }
.menu a span { overflow: hidden; text-overflow: ellipsis; }

.menu a:hover { background: rgba(20,184,166,0.12); color: var(--color-dark); }
.menu a.active { background: linear-gradient(135deg, var(--color-primary), var(--color-dark)); color: #fff; font-weight: 600; }
.menu a.active i { color: #fff; }

/* ============================================================
   Main Content
   ============================================================ */
.main {
    margin-left: var(--sidebar-w);
    width: calc(100% - var(--sidebar-w));
    min-height: 100vh;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ============================================================
   Header
   ============================================================ */
.header {
    background: #fff;
    padding: 10px 14px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
    position: relative;
    flex-shrink: 0;
    min-height: var(--header-h);
}

.header-float {
    position: sticky;
    top: 12px;
    z-index: 10;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border-radius: 16px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.header-left > div {
    min-width: 0;
    overflow: hidden;
}

.header b {
    display: block;
    font-family: var(--font-heading);
    font-weight: var(--font-weight-heading);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header span {
    display: block;
    color: #6b7280;
    font-size: 11px;
    margin-top: 1px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.hamburger {
    display: none;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-dark));
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.backdrop {
    display: none;
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(15,23,42,0.5);
    z-index: 25;
}
.backdrop.show { display: block; }

.user-chip, .mini-link {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 8px;
    color: #4b5563;
    font-size: 12px;
    padding: 7px 10px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.mini-link.filled {
    border-color: transparent;
    background: linear-gradient(135deg, var(--color-primary), var(--color-dark));
    color: #fff;
}

/* Saldo chip di header */
.saldo-chip {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px;
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   Alerts & Flash
   ============================================================ */
.alert {
    margin-top: 10px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13px;
}
.alert.success { background: #dcfce7; color: #166534; }
.alert.error   { background: #fee2e2; color: #991b1b; }
.alert.info    { background: #dbeafe; color: #1d4ed8; }
.alert.warning { background: #fef3c7; color: #92400e; }

/* ============================================================
   Ticker
   ============================================================ */
.ticker-wrap { overflow:hidden; padding:7px 0; margin-top:10px; border-radius:8px; }

/* ============================================================
   Infobar
   ============================================================ */
.infobar {
    margin-top: 10px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-dark));
    color: #fff;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 13px;
}

/* ============================================================
   Tabs
   ============================================================ */
.tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.tab {
    padding: 9px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transform: skew(-18deg);
    border-radius: 8px;
    transition: 0.15s;
    text-decoration: none;
    flex-shrink: 0;
}
.tab span {
    display: block;
    transform: skew(18deg);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.tab.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-dark));
    border-color: transparent;
    color: #fff;
}
.tab.active span { color: #fff; }

/* ============================================================
   Tools / Search Bar
   ============================================================ */
.tools {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.tools input { flex: 1; min-width: 0; }
.tools select { width: 150px; flex-shrink: 0; }

/* ============================================================
   Form Fields
   ============================================================ */
.field { margin-top: 12px; }
.field.full { grid-column: 1 / -1; }
.field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #374151;
}

.tools input,
.tools select,
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 9px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: var(--color-text);
    transition: border-color 0.15s;
    -webkit-appearance: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.tools input:focus,
.tools select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(20,184,166,0.15);
}

.hint {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.5;
    margin-top: 6px;
    display: block;
}

/* ============================================================
   Grid Layouts
   ============================================================ */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.split {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 12px;
    margin-top: 12px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px;
}

/* ============================================================
   Cards & Panels
   ============================================================ */
.card, .panel, .auth-panel {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    position: relative;
    box-shadow: var(--shadow);
}

.card { transition: transform 0.15s, box-shadow 0.15s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,0.1); }

.panel { margin-top: 12px; }
.panel + .panel { margin-top: 12px; }

.ribbon {
    position: absolute;
    top: 12px;
    left: -6px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%);
    z-index: 1;
}

.title {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-heading);
    font-size: 14px;
    margin: 28px 0 5px;
    line-height: 1.4;
}

.price {
    color: var(--color-dark);
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 15px;
}

.meta {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 8px;
}

.description {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn, .btn-outline, .btn-danger {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    width: 100%;
    padding: 9px 14px;
    border: 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-dark));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    transform: skew(-18deg);
    border-radius: 10px;
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.btn span, .btn-outline span, .btn-danger span { transform: skew(18deg); display: block; }
.btn i, .btn-outline i, .btn-danger i {
    transform: skew(18deg);
    background: rgba(255,255,255,0.25);
    padding: 5px;
    border-radius: 50%;
    font-size: 11px;
    flex-shrink: 0;
}
.btn:hover, .btn-outline:hover, .btn-danger:hover { transform: skew(-18deg) translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.btn-outline { background: #fff; color: var(--color-dark); border: 1.5px solid rgba(20,184,166,0.4); }
.btn-outline i { background: rgba(20,184,166,0.12); color: var(--color-dark); }
.btn-danger { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.btn-danger i { color: #b91c1c; }

.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row > * { flex: 1 1 160px; }

/* ============================================================
   Auth
   ============================================================ */
.auth-wrap { max-width: 420px; margin: 30px auto 0; padding: 0 8px; }
.auth-panel h1, .panel h1, .panel h2 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-heading);
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--color-dark);
}

/* ============================================================
   Table
   ============================================================ */
.table-wrap { width: 100%; overflow-x: auto; margin-top: 10px; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: 10px 11px; border-bottom: 1px solid #f1f5f9; text-align: left; font-size: 13px; vertical-align: middle; }
th { color: #6b7280; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; background: #f8fafc; }
tr:last-child td { border-bottom: 0; }

/* ============================================================
   Badges
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.badge.success { background: #dcfce7; color: #166534; }
.badge.warning { background: #fef3c7; color: #92400e; }
.badge.info    { background: #dbeafe; color: #1d4ed8; }
.badge.danger  { background: #fee2e2; color: #991b1b; }

/* ============================================================
   Stats
   ============================================================ */
.stat {
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: var(--shadow);
}
.stat span { display: block; color: #6b7280; font-size: 12px; }
.stat b { display: block; color: var(--color-dark); font-size: 22px; font-weight: 800; margin-top: 4px; }

/* ============================================================
   Empty State
   ============================================================ */
.empty {
    margin-top: 12px;
    padding: 28px;
    text-align: center;
    color: #9ca3af;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    font-size: 13px;
}

/* ============================================================
   Inline Form
   ============================================================ */
.inline-form { display: inline-flex; gap: 6px; align-items: center; }
.inline-form select { min-width: 110px; width: auto; }

/* ============================================================
   Links
   ============================================================ */
.link-action { color: var(--color-dark); font-weight: 700; text-decoration: none; cursor: pointer; }
.link-action:hover { text-decoration: underline; }
.danger-link { color: #b91c1c; border: 0; background: transparent; cursor: pointer; font: inherit; font-weight: 700; padding: 0; }

/* ============================================================
   Saldo / Wallet UI
   ============================================================ */
.wallet-card {
    background: linear-gradient(135deg, var(--color-primary), var(--color-dark));
    color: #fff;
    border-radius: 18px;
    padding: 20px 22px;
    margin-top: 14px;
}
.wallet-card .wc-label { font-size: 12px; opacity: 0.85; margin-bottom: 4px; }
.wallet-card .wc-amount { font-size: 28px; font-weight: 800; font-family: var(--font-heading); }
.wallet-card .wc-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.wallet-card .wc-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    -webkit-tap-highlight-color: transparent;
}
.wallet-card .wc-btn:hover { background: rgba(255,255,255,0.3); }

/* ============================================================
   Referral
   ============================================================ */
.referral-box {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    border-radius: 14px;
    padding: 16px 18px;
    margin-top: 12px;
}
.referral-code {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 3px;
    font-family: monospace;
    margin: 8px 0;
    word-break: break-all;
}

/* ============================================================
   Responsive — Tablet (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Responsive — Small Tablet (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
    .split { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .field.full { grid-column: 1; }
}

/* ============================================================
   Responsive — Mobile (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
    :root { --sidebar-w: 0px; }

    .sidebar {
        width: 260px;
        transform: translateX(-105%);
        box-shadow: 0 0 0 0 transparent;
    }
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,0.15);
    }

    .main {
        margin-left: 0;
        width: 100%;
        padding: 10px;
    }

    .hamburger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .header { padding: 8px 10px; }
    .header b { font-size: 13px; }

    .header-actions { gap: 5px; }
    .user-chip { display: none; }
    .mini-link { padding: 6px 8px; font-size: 11px; }

    .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .form-grid { grid-template-columns: 1fr; }

    .tabs { gap: 6px; }
    .tab { padding: 7px 12px; }
    .tab span { font-size: 12px; }

    .tools { gap: 6px; }
    .tools select { width: 100%; }

    .btn, .btn-outline, .btn-danger { font-size: 12px; padding: 8px 12px; }
    .btn-row > * { flex: 1 1 130px; }

    .panel { padding: 12px; border-radius: 12px; }
    .card { padding: 12px; }

    .auth-wrap { margin-top: 16px; }

    table { min-width: 480px; }
    th, td { padding: 8px; font-size: 12px; }

    .wallet-card .wc-amount { font-size: 22px; }
    .wallet-card .wc-actions { gap: 6px; }

    .plan-grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
   Extra small (≤ 380px)
   ============================================================ */
@media (max-width: 380px) {
    .grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .header-actions .mini-link:not(.filled) { display: none; }
}

/* ============================================================
   Custom Page Content
   ============================================================ */
.page-content h1, .page-content h2, .page-content h3 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-heading);
    color: var(--color-dark);
    margin: 16px 0 8px;
}
.page-content h1 { font-size: 22px; }
.page-content h2 { font-size: 18px; }
.page-content h3 { font-size: 15px; }
.page-content p  { margin-bottom: 12px; color: var(--color-text); font-size: 14px; }
.page-content ul, .page-content ol { padding-left: 20px; margin-bottom: 12px; }
.page-content li { margin-bottom: 4px; font-size: 14px; }
.page-content img { max-width: 100%; border-radius: 10px; margin: 10px 0; }
.page-content a  { color: var(--color-dark); font-weight: 700; }
.page-content table { min-width: 0; }
.page-content code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 12px; }
.page-content pre { background: #1e1e2e; color: #cdd6f4; padding: 14px; border-radius: 10px; overflow-x: auto; font-size: 13px; margin: 10px 0; }

/* ============================================================
   Search Bar Modern
   ============================================================ */
.search-bar-modern {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 0 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
    height: 48px;
    margin-top: 14px;
    position: relative;
    gap: 12px;
}
.search-bar-modern i.search-icon-left {
    color: #9ca3af;
    font-size: 16px;
}
.search-bar-modern input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    font-size: 14px;
    color: #1f2937;
    height: 100%;
    padding: 0 !important;
    box-shadow: none !important;
}
.search-bar-modern input::placeholder {
    color: #9ca3af;
    font-weight: 600;
}
.search-bar-modern .filter-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}
.search-bar-modern .filter-wrap i {
    color: #6b7280;
    font-size: 18px;
    transition: 0.15s;
}
.search-bar-modern .filter-wrap:hover i {
    color: var(--color-primary);
}
.search-bar-modern .filter-wrap select {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
    -webkit-appearance: none;
}
/* ============================================================
   Card Product (Horizontal Layout)
   ============================================================ */
.card-product {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    display: flex;
    gap: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    align-items: stretch;
    border: 1px solid #f1f5f9;
}
.card-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.card-product-left {
    width: 38%;
    max-width: 120px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.device-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 9/19;
    background: #111;
    border-radius: 16px;
    padding: 4px;
    box-shadow: inset 0 0 0 1px #333, 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
}
.device-frame::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 35%;
    height: 12px;
    background: #111;
    border-radius: 0 0 8px 8px;
    z-index: 2;
}
.device-frame img, .device-frame .no-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    background: #fff;
    display: block;
}
.device-frame .no-img {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #cbd5e1;
    font-size: 24px;
}
.card-product-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.card-product-ribbon {
    position: absolute;
    top: 12px;
    right: -8px;
    background: #0ea5e9;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px 0 0 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 10;
}
.card-product-ribbon::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 0;
    border-width: 6px 6px 0 0;
    border-style: solid;
    border-color: #0284c7 transparent transparent transparent;
}
.card-product-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
    margin-bottom: 6px;
    margin-top: 0;
    padding-right: 40px;
}
.card-product-price {
    font-size: 18px;
    color: var(--color-primary);
    font-weight: 800;
    margin-bottom: 4px;
}
.card-product-discount {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.card-product-orig {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
}
.card-product-badge {
    background: #dc2626;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
}
.card-product-spacer {
    flex-grow: 1;
}
.card-product-bottom {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 8px;
}
.card-product-sold {
    font-size: 12px;
    color: #ef4444;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}
.card-product-btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-dark));
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    padding: 10px 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 13px;
    border: none;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}
.card-product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(20, 184, 166, 0.3);
}

/* ============================================================
   Flash Sale Shopee Style
   ============================================================ */
.flash-sale-wrapper {
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    margin-top: 16px;
}
.flash-sale-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.flash-sale-title {
    font-size: 20px;
    font-weight: 800;
    color: #f97316;
    display: flex;
    align-items: center;
    font-family: 'Arial Black', sans-serif;
    letter-spacing: -0.5px;
}
.flash-sale-title i {
    color: #ef4444;
    margin: 0 2px;
    font-size: 18px;
}
.flash-timer {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
}
.timer-box {
    background: #111;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.2;
}
.flash-sale-link {
    margin-left: auto;
    color: #ef4444;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}
.flash-sale-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}
.flash-sale-scroll::-webkit-scrollbar {
    height: 6px;
}
.flash-sale-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 6px;
}
.flash-item {
    width: 160px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
}
.flash-img-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}
.flash-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.flash-badge-star {
    position: absolute;
    top: 0;
    left: 0;
    background: #f97316;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 0 0 8px 0;
}
.flash-badge-discount {
    position: absolute;
    top: 0;
    right: 0;
    background: #fef08a;
    color: #ca8a04;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 0 0 0 8px;
}
.flash-badge-discount i {
    color: #ef4444;
    margin-right: 2px;
}
.flash-item-title { font-size: 12px; color: #333; margin-top: 8px; margin-bottom: 2px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.flash-item-price {
    font-size: 18px;
    font-weight: 800;
    color: #ea580c;
    text-align: center;
    margin-top: 8px;
    margin-bottom: 4px;
}
.flash-progress-wrap {
    position: relative;
    background: #ffedd5;
    height: 16px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.flash-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #ef4444;
    border-radius: 12px;
    z-index: 1;
}
.streak-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: streak 1.5s infinite;
}
@keyframes streak {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.flash-progress-text {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
} 
