/* ================================================================
   Saigon Centre — Trang khách (mobile-first)
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: #f1f3f3; }

:root {
    --app-bg:       #f1f3f3;
    --card-bg:      #fff;
    --header-bg:    #002426;
    --header-fg:    #fff;
    --brand-gold:   #00ABAE;       /* accent teal sáng cho icon header/FAB */
    --text:         rgba(0,0,0,0.88);
    --text-muted:   rgba(0,0,0,0.48);
    --primary:      #006466;       /* teal-dark: button chính, link */
    --primary-soft: #00ABAE;       /* teal-sáng: hover, active */
    --primary-wash: #e3f4f4;       /* teal-nhạt: background/badge */
    --success:      #22c55e;
    --danger:       #ef4444;
    --warn:         #f59e0b;
    --fab-bg:       #00ABAE;
    --border:       #e5e7eb;
    --shell-max:    460px;
    --serif:        "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

body.app-body {
    font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    color: var(--text);
    background: var(--app-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

svg.ico { fill: none; stroke: currentColor; vertical-align: -0.15em; flex-shrink: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-soft); }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* ---------- Mobile shell (giới hạn chiều rộng khi xem trên desktop) ---------- */
.mobile-shell {
    max-width: var(--shell-max);
    min-height: 100vh;
    margin: 0 auto;
    background: var(--app-bg);
    position: relative;
    padding-bottom: 86px; /* chỗ cho bottom nav */
    box-shadow: 0 0 0 1px rgba(0,0,0,0.04);
}

/* ---------- Header ---------- */
.app-header {
    position: sticky; top: 0; z-index: 30;
    background: var(--header-bg);
    color: var(--header-fg);
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 16px; min-height: 56px;
    border-bottom: 1px solid rgba(154,231,233,0.15);
}
.brand-logo img {
    display: block; height: 26px;
    filter: brightness(0) invert(1);  /* logo đen → trắng trên header tối */
}
.header-right { display: flex; gap: 14px; align-items: center; }
.header-link {
    color: #fff; font-size: 13px; font-weight: 500;
    display: inline-flex; align-items: center; gap: 5px;
    letter-spacing: 0.3px;
}
.header-link svg.ico { color: var(--brand-gold); }

/* ---------- Main ---------- */
.app-main { padding: 12px 14px 0; }
.app-main.no-nav ~ .bottom-nav { display: none; }

/* ---------- Card ---------- */
.card {
    background: var(--card-bg);
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    border: 1px solid #edf0f0;
}
.card-title {
    font-family: var(--serif);
    font-size: 22px; font-weight: 500; margin: 0 0 12px;
    letter-spacing: 0.5px; color: var(--header-bg);
}
.section-label {
    font-family: var(--serif);
    font-size: 22px; font-weight: 500; letter-spacing: 0.5px;
    margin: 20px 2px 12px; color: var(--header-bg);
    text-transform: uppercase;
}
.section-label::after {
    content: ""; display: block; width: 28px; height: 2px;
    background: var(--primary-soft); margin-top: 6px;
}

/* ---------- Banner slider ---------- */
.banner-slider {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    margin: 4px 0 12px;
}
.banner-track {
    display: flex;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    scroll-behavior: smooth;
}
.banner-track::-webkit-scrollbar { display: none; }
.banner-slide { flex: 0 0 100%; scroll-snap-align: start; }
.banner-slide img { width: 100%; height: 180px; object-fit: cover; display: block; }
.banner-dots {
    position: absolute; left: 0; right: 0; bottom: 8px;
    display: flex; justify-content: center; gap: 6px;
}
.banner-dots i {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,0.5);
}
.banner-dots i.on { background: #fff; width: 18px; border-radius: 3px; }

/* ---------- Horizontal product slider ---------- */
.prod-slider {
    display: flex; gap: 10px; overflow-x: auto;
    padding: 4px 2px 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.prod-slider::-webkit-scrollbar { display: none; }
.prod-card {
    flex: 0 0 52%;
    background: #fff; border-radius: 4px; overflow: hidden;
    scroll-snap-align: start;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #edf0f0;
    display: flex; flex-direction: column;
}
.prod-card img {
    width: 100%; aspect-ratio: 1/1; object-fit: cover;
    background: #f5f5f5;
}
.prod-card .prod-name {
    font-size: 13px; padding: 10px 10px 6px;
    min-height: 54px; color: var(--text); text-align: center;
    line-height: 1.4; letter-spacing: 0.2px;
}
.prod-card .prod-price {
    font-weight: 600; color: var(--primary); padding: 0 10px 12px;
    text-align: center; font-size: 14px;
}

/* ---------- Partners strip (luxury marquee) ---------- */
.partners-strip {
    margin: 24px -14px 8px;   /* bleed ra mép mobile-shell */
    padding: 24px 0 20px;
    background: #fff;
    border-top: 1px solid #edf0f0;
    border-bottom: 1px solid #edf0f0;
    position: relative;
}
.partners-strip-head {
    text-align: center;
    padding: 0 14px 18px;
    position: relative;
}
.partners-strip-eyebrow {
    display: inline-block;
    font-size: 10px; letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary-soft);
    margin-bottom: 6px;
}
.partners-strip-title {
    font-family: var(--serif);
    font-size: 22px; font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--header-bg);
    margin: 0;
    text-transform: uppercase;
}
.partners-strip-title::after {
    content: ""; display: block;
    width: 32px; height: 1px;
    background: var(--primary-soft);
    margin: 10px auto 0;
}

/* Viewport: fade ra 2 mép cho cảm giác vô tận */
.partners-strip-viewport {
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(90deg,
        transparent 0,
        black 48px,
        black calc(100% - 48px),
        transparent 100%);
    -webkit-mask-image: linear-gradient(90deg,
        transparent 0,
        black 48px,
        black calc(100% - 48px),
        transparent 100%);
}

/* Track cuộn liên tục — content duplicate 2x trong markup,
   nên translateX(-50%) = hết 1 bản → loop không giật */
.partners-strip-track {
    display: flex;
    width: max-content;
    gap: 44px;
    animation: partnersMarquee 28s linear infinite;
}
.partners-strip:hover .partners-strip-track { animation-play-state: paused; }

@keyframes partnersMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.partners-strip-item {
    flex: 0 0 auto;
    height: 44px;
    display: flex; align-items: center; justify-content: center;
    opacity: 0.55;
    filter: grayscale(1);
    transition: opacity .3s, filter .3s, transform .3s;
}
.partners-strip-item img {
    max-height: 100%;
    max-width: 110px;
    width: auto; height: auto;
    object-fit: contain;
    display: block;
}
.partners-strip-item:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.08);
}

/* Giữ compat với class cũ nếu có chỗ khác dùng */
.partners { display: none; }

/* ---------- Bottom Nav ---------- */
.bottom-nav {
    position: fixed;
    left: 50%; bottom: 0; transform: translateX(-50%);
    width: 100%; max-width: var(--shell-max);
    height: 74px;
    background: #fff;
    border-top: 1px solid var(--border);
    display: grid; grid-template-columns: repeat(5, 1fr);
    z-index: 40;
    padding-bottom: env(safe-area-inset-bottom);
}
.bn-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #9ca3af; font-size: 12px; gap: 4px; padding: 6px;
    position: relative; text-align: center;
}
.bn-item.active { color: var(--fab-bg); }
.bn-item.active .bn-ico svg.ico { color: var(--fab-bg); }
.bn-ico { display: inline-flex; position: relative; }
.bn-ico svg.ico { color: #9ca3af; width: 22px; height: 22px; }
.bn-label { font-weight: 500; }
.bn-dot {
    position: absolute; top: -2px; right: -4px;
    width: 8px; height: 8px; background: #ef4444; border-radius: 50%;
    border: 1.5px solid #fff;
}

/* FAB (Lấy đơn) — nổi lên giữa, gradient teal + ring glow */
.bn-fab {
    position: relative;
    color: #fff !important;
}
.bn-fab .bn-ico {
    position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
    width: 62px; height: 62px; border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #1dd3d6 0%, #00ABAE 45%, #006466 100%);
    display: flex; align-items: center; justify-content: center;
    box-shadow:
        0 8px 20px rgba(0,171,174,0.45),
        inset 0 1px 0 rgba(255,255,255,0.35),
        inset 0 -8px 14px rgba(0,36,38,0.25);
    border: 4px solid #fff;
    transition: transform .2s;
}
.bn-fab:hover .bn-ico { transform: translateX(-50%) translateY(-2px); }
.bn-fab:active .bn-ico { transform: translateX(-50%) scale(0.96); }
.bn-fab .bn-fab-svg {
    position: relative; z-index: 2;
    filter: drop-shadow(0 1px 1px rgba(0,36,38,0.25));
}

/* Vòng outer pulse animate nhẹ khi đang active */
.bn-fab .bn-fab-ring {
    position: absolute; inset: -4px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,171,174,0.55);
    opacity: 0;
    pointer-events: none;
}
.bn-fab.active .bn-fab-ring {
    opacity: 1;
    animation: fabPulse 1.8s ease-out infinite;
}
@keyframes fabPulse {
    0%   { transform: scale(1);    opacity: 0.7; }
    80%  { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
}

.bn-fab .bn-label {
    margin-top: 38px;
    color: #6b7280;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.bn-fab.active .bn-label { color: var(--primary); }

/* ---------- Login/Register — Saigon Centre style ---------- */
:root {
    --sc-teal:        #00ABAE;
    --sc-teal-dark:   #006466;
    --sc-teal-ink:    #003a3c;
    --sc-ink:         #141414;
    --sc-muted:       #8C8C8C;
    --sc-line:        #E5E7EB;
    --sc-bg:          #F6F7F7;
}
.auth-shell {
    min-height: 100vh;
    background: var(--sc-bg);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}
.auth-hero {
    position: relative;
    background-color: #003a3c;
    background-image: url('../img/banner-web-1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 56px 56px 48px;
    display: flex; flex-direction: column; justify-content: space-between;
    overflow: hidden;
    min-height: 100vh;
}
.auth-hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg,
        rgba(0,36,38,0.55) 0%,
        rgba(0,36,38,0.30) 45%,
        rgba(0,36,38,0.75) 100%);
    pointer-events: none;
}
.auth-hero > * { position: relative; z-index: 1; }
.auth-hero-brand {
    display: flex; align-items: center;
}
.auth-hero-brand img {
    height: 42px; width: auto;
    max-width: 100%;
    /* logo gốc màu đen → invert sang trắng để nổi trên ảnh */
    filter: brightness(0) invert(1);
}
.auth-hero-copy h1 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 400; font-size: 48px; line-height: 1.1;
    letter-spacing: -0.5px; margin: 0 0 16px;
    text-transform: uppercase;
}
.auth-hero-copy h1 em {
    font-style: italic; font-weight: 300; color: #9ae7e9; text-transform: none;
}
.auth-hero-copy p {
    max-width: 420px;
    font-size: 15px; line-height: 1.7; opacity: 0.9; margin: 0;
}
.auth-hero-meta {
    display: flex; gap: 28px; font-size: 12px;
    letter-spacing: 2.5px; text-transform: uppercase; opacity: 0.75;
}
.auth-hero-meta span::before {
    content: ""; display: inline-block; width: 18px; height: 1px;
    background: #9ae7e9; margin-right: 10px; vertical-align: middle;
}

.auth-panel {
    display: flex; align-items: center; justify-content: center;
    padding: 56px 48px;
    background: #fff;
}
.auth-card {
    width: 100%; max-width: 440px;
    background: transparent; border-radius: 0;
    padding: 0; box-shadow: none;
}
.auth-card .auth-logo {
    display: flex; justify-content: center; margin-bottom: 28px;
}
.auth-card .auth-logo img { height: 44px; }
.auth-eyebrow {
    display: block; text-align: center;
    font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
    color: var(--sc-teal); margin-bottom: 8px;
}
.auth-card h2 {
    text-align: center; margin: 0 0 8px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 500; font-size: 34px; letter-spacing: 1px;
    color: var(--sc-ink); text-transform: uppercase;
}
.auth-card .auth-sub {
    text-align: center; color: var(--sc-muted);
    font-size: 13px; margin: 0 0 28px;
}
.auth-link {
    display: block; text-align: center; margin-top: 22px;
    padding-top: 22px; border-top: 1px solid var(--sc-line);
    font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
    color: var(--sc-teal-dark);
}
.auth-link:hover { color: var(--sc-teal); }
.auth-demo {
    text-align: center; font-size: 12px; color: var(--sc-muted);
    margin: 12px 0 0; letter-spacing: 0.5px;
}
.auth-demo code {
    background: #f3f6f6; border: 1px solid var(--sc-line);
    padding: 2px 8px; color: var(--sc-teal-dark);
    font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px;
}

/* Auth-specific input & button restyle (scoped so app shell unchanged) */
.auth-card .field { margin-bottom: 18px; }
.auth-card .field label {
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--sc-muted); margin-bottom: 8px;
}
.auth-card .control {
    border: 0; border-bottom: 1px solid #d5d7da;
    border-radius: 0; padding: 10px 2px;
    background: transparent;
    transition: border-color .2s;
}
.auth-card .control:focus {
    border-bottom-color: var(--sc-teal);
    box-shadow: none;
}
.auth-card .control::placeholder { color: #c2c5c9; }

/* Show/hide password toggle (dùng chung cả auth + user pages) */
.pwd-wrap { position: relative; display: block; }
.pwd-wrap .control { padding-right: 38px; }
.pwd-toggle {
    position: absolute; right: 8px; top: 50%;
    transform: translateY(-50%);
    background: none; border: 0; cursor: pointer;
    padding: 4px; color: #8C8C8C;
    display: flex; align-items: center;
    transition: color .15s;
    z-index: 2;
}
.auth-card .pwd-toggle { right: 0; padding: 6px; }
.pwd-toggle:hover { color: var(--primary); }
.pwd-toggle svg { width: 18px; height: 18px; display: block; }
.pwd-toggle .eye-off { display: none; }
.pwd-toggle.on .eye-on  { display: none; }
.pwd-toggle.on .eye-off { display: block; }
.auth-card .btn-primary {
    background: var(--sc-teal-dark);
    border-color: var(--sc-teal-dark);
    color: #fff;
    border-radius: 0;
    letter-spacing: 3px; text-transform: uppercase;
    font-weight: 500; font-size: 13px;
    padding: 16px 22px;
    transition: background .2s, border-color .2s;
}
.auth-card .btn-primary:hover {
    background: var(--sc-teal); border-color: var(--sc-teal);
}
.auth-card .alert-error {
    background: #fff4f4; color: #b91c1c;
    border: 1px solid #fecaca; border-radius: 0;
    font-size: 13px;
}
.auth-grid-2 {
    display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}

/* Responsive */
@media (max-width: 900px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-hero {
        min-height: 180px; padding: 24px 20px;
        justify-content: flex-end;
    }
    .auth-hero-brand img { height: 28px; }
    .auth-hero-copy h1 { font-size: 26px; }
    .auth-hero-copy p, .auth-hero-meta { display: none; }
    .auth-panel { padding: 28px 18px 36px; }
    .auth-card h2 { font-size: 24px; }
    .auth-grid-2 { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 480px) {
    .auth-hero { min-height: 140px; padding: 20px 16px; }
    .auth-hero-brand img { height: 24px; }
    .auth-hero-copy h1 { font-size: 22px; }
    .auth-card h2 { font-size: 22px; letter-spacing: 0.3px; }
    .auth-panel { padding: 22px 14px 30px; }
}

/* Global: tránh horizontal scroll khi có phần tử overflow */
html, body { max-width: 100%; overflow-x: hidden; }

/* ---------- Input ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; margin-bottom: 6px; color: var(--text-muted); }
.control {
    width: 100%; border: 1px solid #d9dde3;
    border-radius: 4px; padding: 11px 14px;
    background: #fff; color: var(--text);
    outline: none; transition: border-color .15s, box-shadow .15s;
}
.control:focus {
    border-color: var(--primary-soft); box-shadow: 0 0 0 3px rgba(0,171,174,0.14);
}
textarea.control { min-height: 72px; resize: vertical; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; padding: 11px 18px;
    border-radius: 4px; border: 1px solid var(--border);
    background: #fff; color: var(--text); font-weight: 500; cursor: pointer;
    transition: all .15s;
    letter-spacing: 0.3px;
}
.btn:hover { border-color: var(--primary-soft); color: var(--primary-soft); }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-soft); border-color: var(--primary-soft); color: #fff; }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-success:hover { background: #16a34a; border-color: #16a34a; color: #fff; }
.btn-danger  { background: var(--danger);  border-color: var(--danger);  color: #fff; }
.btn-lg {
    padding: 14px 22px; font-size: 14px;
    letter-spacing: 2px; text-transform: uppercase; font-weight: 500;
}
.btn[disabled], .btn:disabled { opacity: .6; cursor: not-allowed; }

.btn-chip {
    padding: 6px 14px; border-radius: 18px;
    background: #fff; border: 1px solid #d9dde3;
    font-size: 13px; color: var(--text);
}
.btn-chip:hover { border-color: var(--primary-soft); color: var(--primary-soft); }

/* ---------- Alerts ---------- */
.alert {
    padding: 10px 12px; border-radius: 4px; font-size: 14px;
    margin-bottom: 12px;
    border-left: 3px solid transparent;
}
.alert-error   { background: #fff4f4; color: #b91c1c; border-left-color: #ef4444; }
.alert-success { background: #ecfdf4; color: #15803d; border-left-color: #22c55e; }

/* ---------- Profile ---------- */
.profile-card {
    display: flex; align-items: center; gap: 14px;
    background: linear-gradient(135deg, #002426 0%, #006466 60%, #008a8c 100%);
    color: #fff;
    border-radius: 4px; padding: 18px 16px; margin-bottom: 14px;
    position: relative; overflow: hidden;
}
.profile-card::after {
    content: ""; position: absolute; right: -30px; top: -30px;
    width: 160px; height: 160px; border-radius: 50%;
    background: radial-gradient(circle, rgba(154,231,233,0.18) 0%, transparent 70%);
    pointer-events: none;
}
.avatar-lg {
    width: 58px; height: 58px; border-radius: 50%;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.profile-info { flex: 1; min-width: 0; position: relative; z-index: 1; }
.profile-info .pi-name {
    font-family: var(--serif);
    font-size: 20px; font-weight: 500; letter-spacing: 0.5px;
    color: #fff;
}
.profile-info .pi-bal  { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 4px; }
.profile-info .pi-bal b { color: #9ae7e9; font-weight: 600; }
.profile-actions { display: flex; gap: 6px; }
.profile-actions .btn-chip { padding: 6px 12px; font-size: 13px; }

/* ---------- Menu list ---------- */
.group-list {
    background: #fff; border-radius: 4px; overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid #edf0f0;
}
.group-head {
    background: var(--header-bg); color: #fff;
    padding: 11px 14px;
    font-family: var(--serif);
    font-weight: 500; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase;
}
.group-list .gl-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px;
    border-top: 1px solid #f3f4f6;
    color: var(--text);
    transition: background .15s;
}
.group-list .gl-item:first-of-type { border-top: 0; }
.group-list .gl-item svg.ico { color: var(--primary-soft); }
.group-list .gl-item.blue   svg.ico { color: var(--primary); }
.group-list .gl-item.green  svg.ico { color: var(--success); }
.group-list .gl-item.orange svg.ico { color: var(--warn); }
.group-list .gl-item.pink   svg.ico { color: #ec4899; }
.group-list .gl-chev { margin-left: auto; color: #cbd5e1; }
.group-list .gl-item:hover { background: var(--primary-wash); }

/* ---------- Task page ---------- */
.task-card {
    background: #fff; border-radius: 4px;
    padding: 20px 16px;
    border: 1px solid #edf0f0;
}
.task-bal {
    font-family: var(--serif);
    font-size: 20px; font-weight: 500; letter-spacing: 0.5px;
    margin-bottom: 14px; color: var(--header-bg);
}
.task-info { font-size: 14px; color: var(--text); margin-top: 8px; }
.task-info p { margin: 6px 0; }
.task-start {
    display: block; margin: 20px auto 6px;
    width: 220px;
}
.task-help {
    display: flex; justify-content: center; gap: 6px; align-items: center;
    font-size: 12px; color: var(--primary); margin-top: 12px;
    letter-spacing: 1px; text-transform: uppercase;
}

/* ---------- Đơn may mắn (lucky order / rigged) ---------- */
.lucky-wrap { padding: 6px 2px; }
.lucky-stats {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px;
    font-size: 14px; margin-bottom: 6px;
}
.lucky-stats b { color: var(--header-bg); font-weight: 600; }
.lucky-img {
    display: flex; justify-content: center;
    margin: 14px auto 10px;
    width: 210px; height: 210px;
    background: #fff; border: 1px solid #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}
.lucky-img img {
    width: 100%; height: 100%;
    object-fit: contain; display: block;
}
.lucky-msg {
    text-align: center;
    color: var(--success);
    font-weight: 600;
    font-size: 15px; line-height: 1.5;
    margin: 6px 0 14px;
    padding: 0 8px;
}
.lucky-msg span { color: var(--success); font-weight: 600; }
.lucky-msg b { color: var(--danger); font-weight: 700; }
.lucky-info {
    background: #f5f7f7;
    border-radius: 4px;
    padding: 14px 16px;
    text-align: center;
    font-size: 14px;
    line-height: 2;
}
.lucky-info b { font-weight: 500; color: var(--header-bg); }
.lucky-submit {
    margin-top: 16px !important;
    background: var(--primary-soft) !important;
    border-color: var(--primary-soft) !important;
    border-radius: 20px !important;
    letter-spacing: 1px !important;
}

/* ---------- Notification list ---------- */
.noti-item {
    background: #fff; border-radius: 4px;
    padding: 18px 18px 16px; margin-bottom: 12px;
    line-height: 1.9;
    font-size: 15px;
    color: var(--text);
    border: 1px solid #edf0f0;
    border-left: 3px solid var(--primary-soft);
}
.noti-item .noti-head {
    font-family: var(--serif);
    font-weight: 500; font-size: 18px;
    letter-spacing: 0.5px; color: var(--header-bg);
    margin-bottom: 8px; display: block;
}

/* ---------- VIP table ---------- */
.vip-hero {
    display: flex; gap: 14px; align-items: center;
    padding: 16px;
    background: linear-gradient(135deg, #002426 0%, #006466 100%);
    color: #fff;
    border-radius: 4px;
    margin-bottom: 14px;
}
.vip-hero .avatar-lg {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}
.vip-hero h3 {
    font-family: var(--serif);
    margin: 0 0 4px; font-size: 20px;
    letter-spacing: 0.5px; font-weight: 500;
}
.vip-hero .small { color: rgba(255,255,255,0.75); font-size: 13px; }

.vip-table {
    width: 100%; border-collapse: collapse;
    background: #fff; border-radius: 4px; overflow: hidden;
    border: 1px solid #edf0f0;
}
.vip-table th, .vip-table td {
    padding: 12px 10px; font-size: 14px; border-bottom: 1px solid #f3f4f6;
    text-align: left;
}
.vip-table th {
    background: var(--header-bg); color: #fff;
    font-weight: 500; font-size: 11px;
    letter-spacing: 1.5px; text-transform: uppercase;
}
.vip-table tr:last-child td { border-bottom: 0; }

/* ---------- Amount input (nạp/rút) ---------- */
.amount-input {
    display: flex; align-items: baseline; gap: 6px;
    padding: 18px 16px; background: #fff; border-radius: 4px;
    border: 1px solid var(--border);
    margin-bottom: 14px;
    transition: border-color .15s;
}
.amount-input:focus-within { border-color: var(--primary-soft); }
.amount-input .amount-prefix {
    font-size: 11px; color: var(--text-muted);
    letter-spacing: 2px; text-transform: uppercase;
}
.amount-input .amount-value {
    flex: 1; border: 0; outline: none;
    font-family: var(--serif);
    font-size: 28px; font-weight: 500;
    min-width: 0; color: var(--header-bg);
}

.qr-card {
    background: #fff; border-radius: 4px; padding: 18px;
    text-align: center; margin-bottom: 12px;
    border: 1px solid #edf0f0;
}
.qr-card img { max-width: 200px; }
.qr-card .qr-row { display: flex; justify-content: space-between; font-size: 13px; margin: 6px 0; }

/* ---------- Status tags (giống admin) ---------- */
.tag {
    display: inline-block; padding: 1px 8px;
    border-radius: 2px; font-size: 11px; line-height: 20px;
    letter-spacing: 0.5px; text-transform: uppercase;
    border: 1px solid transparent;
}
.tag-success { color: #15803d; background: #dcfce7; border-color: #86efac; }
.tag-danger  { color: #b91c1c; background: #fee2e2; border-color: #fca5a5; }
.tag-warn    { color: #b45309; background: #fef3c7; border-color: #fcd34d; }
.tag-info    { color: var(--primary); background: var(--primary-wash); border-color: #a6d9da; }

/* ---------- History list ---------- */
.history-item {
    background: #fff; border-radius: 4px;
    padding: 14px; margin-bottom: 10px;
    border: 1px solid #edf0f0;
    transition: border-color .15s;
}
.history-item:hover { border-color: var(--primary-soft); }
.history-item .hi-top {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 6px;
}
.history-item .hi-code {
    font-weight: 600; font-size: 14px;
    letter-spacing: 0.5px; color: var(--header-bg);
}
.history-item .hi-meta { font-size: 13px; color: var(--text-muted); }

/* ---------- Modal ---------- */
.modal-mask {
    position: fixed; inset: 0; background: rgba(0,36,38,0.55);
    display: none; align-items: center; justify-content: center;
    z-index: 50; padding: 16px;
    backdrop-filter: blur(2px);
}
.modal-mask.show { display: flex; }
.modal-panel {
    width: 100%; max-width: 400px; background: #fff;
    border-radius: 4px; padding: 24px 22px;
    border-top: 3px solid var(--primary-soft);
}
.modal-panel h3 {
    margin: 0 0 14px;
    font-family: var(--serif);
    font-size: 20px; font-weight: 500; letter-spacing: 0.5px;
    color: var(--header-bg);
}
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal-actions .btn { flex: 1; }

/* ---------- Guide modal (Hướng dẫn quảng bá) ---------- */
.guide-panel {
    max-width: 420px;
    padding: 22px 22px 24px;
    border-top: 0;
    border-radius: 8px;
}
.guide-head {
    display: flex; align-items: center; justify-content: space-between;
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--sc-line);
}
.guide-head h3 {
    flex: 1;
    text-align: center;
    margin: 0;
    font-family: var(--serif);
    font-size: 19px; font-weight: 500; letter-spacing: 0.4px;
    color: var(--header-bg);
}
.guide-close {
    background: none; border: 0;
    width: 28px; height: 28px;
    font-size: 22px; line-height: 1;
    color: var(--text-muted);
    cursor: pointer; padding: 0;
    transition: color .15s;
}
.guide-close:hover { color: var(--header-bg); }

.guide-steps {
    list-style: none; margin: 0; padding: 0;
}
.guide-steps li {
    display: flex; gap: 14px;
    padding: 10px 0;
    align-items: flex-start;
}
.guide-num {
    flex: 0 0 28px;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 600; font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    letter-spacing: 0;
    margin-top: 1px;
}
.guide-text {
    flex: 1;
    font-size: 14px; line-height: 1.55;
    color: var(--text);
}
.guide-text b { color: var(--header-bg); font-weight: 600; }

/* ---------- Support CSKH ---------- */
.support-item {
    display: flex; align-items: center; gap: 14px;
    background: #fff; border-radius: 4px;
    padding: 16px; margin-bottom: 10px;
    border: 1px solid #edf0f0;
    transition: border-color .15s, transform .15s;
}
.support-item:hover {
    border-color: var(--primary-soft);
    transform: translateX(2px);
}
.support-item .si-ic {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--primary-wash); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
}
.support-item .si-ic svg.ico { width: 22px; height: 22px; }
.support-item .si-body .si-label {
    font-weight: 600; font-size: 14px;
    letter-spacing: 0.3px; color: var(--header-bg);
}
.support-item .si-body .si-value { color: var(--text-muted); font-size: 13px; }

/* ---------- Chat box (CSKH user side) ---------- */
.chat-box {
    background: #fff;
    border: 1px solid #edf0f0;
    border-radius: 4px;
    display: flex; flex-direction: column;
    height: 70vh;
    max-height: 560px;
    overflow: hidden;
    margin-bottom: 14px;
}
.chat-header {
    display: flex; gap: 12px; align-items: center;
    padding: 12px 14px;
    background: linear-gradient(135deg, #003a3c 0%, #006466 100%);
    color: #fff;
}
.chat-ava {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.3);
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; letter-spacing: 1px;
}
.chat-title { font-family: var(--serif); font-size: 17px; letter-spacing: 0.4px; }
.chat-sub   { font-size: 11px; color: #9ae7e9; letter-spacing: 1.5px; text-transform: uppercase; }

.chat-body {
    flex: 1; overflow-y: auto;
    padding: 14px;
    background: #fafafa;
    display: flex; flex-direction: column; gap: 8px;
}
.chat-empty { text-align: center; padding: 24px 16px; font-size: 14px; }

.chat-msg {
    max-width: 80%;
    display: flex; flex-direction: column;
}
.chat-msg-me    { align-self: flex-end; align-items: flex-end; }
.chat-msg-other { align-self: flex-start; align-items: flex-start; }
.chat-bubble {
    padding: 8px 12px; border-radius: 14px;
    font-size: 14px; line-height: 1.4; word-wrap: break-word;
    display: inline-block; max-width: 100%;
}
.chat-msg-me .chat-bubble {
    background: var(--primary); color: #fff;
    border-bottom-right-radius: 4px;
}
.chat-msg-other .chat-bubble {
    background: #fff; border: 1px solid #e5e7eb;
    border-bottom-left-radius: 4px;
}
.chat-bubble-img { padding: 3px; background: transparent !important; border: 0 !important; }
.chat-bubble-img img {
    max-width: 220px; max-height: 260px;
    border-radius: 10px; display: block;
}
.chat-time { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

.chat-input {
    display: flex; gap: 8px; align-items: center;
    padding: 10px; border-top: 1px solid #edf0f0;
    background: #fff;
}
.chat-attach {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--primary-wash); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; position: relative; flex-shrink: 0;
}
.chat-attach input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chat-text {
    flex: 1; min-width: 0;
    padding: 9px 14px;
    border: 1px solid #e5e7eb; border-radius: 20px;
    outline: none; font-size: 14px;
}
.chat-text:focus { border-color: var(--primary-soft); }
.chat-send {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--primary); color: #fff;
    border: 0; cursor: pointer; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.chat-send:hover { background: var(--primary-soft); }
.chat-send:disabled { opacity: 0.5; }
.chat-preview { padding: 0 14px 8px; background: #fff; }
.chat-preview img { max-height: 80px; border-radius: 6px; }

/* ---------- Scan popup (Bắt đầu lấy đơn) ---------- */
.scan-overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(0,36,38,0.55);
    backdrop-filter: blur(3px);
    display: none; align-items: center; justify-content: center;
    padding: 16px;
    animation: scanFade .2s ease-out;
}
.scan-overlay.show { display: flex; }
@keyframes scanFade { from { opacity: 0; } to { opacity: 1; } }

.scan-panel {
    width: 100%; max-width: 300px;
    background: linear-gradient(160deg, #00383a 0%, #002426 100%);
    color: #fff;
    border: 1px solid rgba(154,231,233,0.25);
    border-top: 2px solid #00ABAE;
    border-radius: 6px;
    padding: 22px 20px 18px;
    text-align: center;
    box-shadow: 0 18px 40px rgba(0,20,22,0.45);
    animation: scanPop .25s ease-out;
}
@keyframes scanPop {
    from { transform: translateY(8px) scale(0.96); opacity: 0; }
    to   { transform: none; opacity: 1; }
}
.scan-brand {
    font-family: var(--serif);
    font-size: 10px; letter-spacing: 4px;
    color: #9ae7e9; text-transform: uppercase;
    margin-bottom: 6px;
    opacity: 0.85;
}
.scan-title {
    font-family: var(--serif);
    font-size: 17px; font-weight: 500; letter-spacing: 0.4px;
    margin: 0 0 16px;
}

/* Radar ring + number */
.scan-radar {
    position: relative;
    width: 120px; height: 120px; margin: 0 auto 14px;
    border-radius: 50%;
    background: radial-gradient(circle at center,
        rgba(0,171,174,0.10) 0%,
        transparent 100%);
    border: 1px solid rgba(154,231,233,0.3);
    box-shadow:
        inset 0 0 0 8px rgba(154,231,233,0.05),
        0 0 20px rgba(0,171,174,0.25);
}
.scan-radar::before {
    content: ""; position: absolute; inset: 14px;
    border-radius: 50%; border: 1px solid rgba(154,231,233,0.25);
}
.scan-radar::after { display: none; }

.scan-radar-sweep {
    position: absolute; inset: 0; border-radius: 50%;
    background: conic-gradient(from 0deg,
        transparent 0deg,
        rgba(154,231,233,0.0) 270deg,
        rgba(154,231,233,0.5) 345deg,
        rgba(154,231,233,0.9) 360deg);
    animation: scanSweep 1.6s linear infinite;
    mask: radial-gradient(circle, transparent 26px, black 27px);
    -webkit-mask: radial-gradient(circle, transparent 26px, black 27px);
}
@keyframes scanSweep { to { transform: rotate(360deg); } }

.scan-radar-dot {
    position: absolute; top: 50%; left: 50%;
    width: 6px; height: 6px; margin: -3px 0 0 -3px;
    border-radius: 50%; background: #9ae7e9;
    box-shadow: 0 0 10px #9ae7e9;
    animation: scanPulse 1.4s ease-in-out infinite;
}
@keyframes scanPulse {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%      { transform: scale(1.6); opacity: 0.4; }
}

.scan-percent {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif);
    font-size: 32px; font-weight: 500; letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 0 12px rgba(154,231,233,0.35);
}
.scan-percent em {
    font-style: normal; font-size: 14px; margin-left: 3px;
    color: #9ae7e9; letter-spacing: 0;
}

.scan-bar {
    width: 100%; height: 3px;
    background: rgba(154,231,233,0.15);
    border-radius: 2px; overflow: hidden;
    margin: 0 0 10px;
}
.scan-bar-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #00ABAE 0%, #9ae7e9 100%);
    box-shadow: 0 0 6px rgba(154,231,233,0.6);
    transition: width .08s linear;
}

.scan-status {
    font-size: 11px; letter-spacing: 1.5px;
    color: #9ae7e9; text-transform: uppercase;
    min-height: 16px;
}

/* Giấu checklist cho compact */
.scan-steps { display: none; }

/* ---------- Helper utilities ---------- */
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.mt-12 { margin-top: 12px; }
.mb-12 { margin-bottom: 12px; }
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-primary{ color: var(--primary); }
.text-danger { color: var(--danger); }
.text-success{ color: var(--success); }

/* Desktop: vẫn render mobile, thêm background */
@media (min-width: 720px) {
    .mobile-shell { margin-top: 20px; margin-bottom: 20px; min-height: calc(100vh - 40px); border-radius: 16px; overflow: hidden; }
    .bottom-nav   { border-radius: 0 0 16px 16px; }
}
