/* ============================================================
   Shop Acc Free Fire — Dark Mode Esports
   Bảng màu: nền #0B0F19, thẻ #131A2A, viền #1E293B,
   chữ #F8FAFC, cyan #06B6D4, vàng #F59E0B, Zalo #0068FF
   ============================================================ */
:root {
    --bg: #0B0F19;
    --bg-soft: #0F1523;
    --card: #131A2A;
    --border: #1E293B;
    --text: #F8FAFC;
    --muted: #94A3B8;
    --cyan: #06B6D4;
    --cyan-dark: #0891B2;
    --amber: #F59E0B;
    --zalo: #0068FF;
    --green: #22C55E;
    --red: #EF4444;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
    min-height: 100vh;
}

img { max-width: 100%; }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-dark); }

/* ===================== NAVBAR ===================== */
.shop-navbar {
    background: rgba(11, 15, 25, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}
.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 1.3rem;
    color: #fff;
    background: linear-gradient(135deg, var(--cyan), #3B82F6);
    box-shadow: 0 0 18px rgba(6, 182, 212, 0.45);
}
.brand-name {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    color: var(--text);
}
.btn-admin {
    color: var(--muted);
    border: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 7px 14px;
}
.btn-admin:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    background: rgba(6, 182, 212, 0.08);
}

/* Nút Liên hệ Zalo trên Navbar (gọn gàng trên cả PC lẫn mobile) */
.btn-navbar-zalo {
    padding: 8px 14px;
    font-size: 0.9rem;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 104, 255, 0.35);
}
.btn-navbar-zalo:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }

/* ===================== NÚT CHUNG ===================== */
.btn-zalo {
    background: var(--zalo);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    padding: 10px 22px;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-zalo:hover { color: #fff; filter: brightness(1.1); transform: translateY(-2px); }

.btn-buy {
    background: linear-gradient(135deg, var(--cyan), #3B82F6);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-buy:hover { color: #fff; filter: brightness(1.08); transform: translateY(-2px); }

.btn-sold-out {
    background: #263041;
    color: var(--muted);
    font-weight: 700;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 16px;
    cursor: not-allowed;
}

/* ===================== HERO / BANNER SLIDER ===================== */
.hero-section {
    padding: 24px 0 40px;
    background:
        radial-gradient(1000px 400px at 50% -100px, rgba(6, 182, 212, 0.18), transparent 60%),
        var(--bg);
}
.hero-slider {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    background: #000;
}
.slides-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.slide {
    min-width: 100%;
    /* Không cố định chiều cao: để ảnh banner tự co giãn theo tỷ lệ thật,
       không bị cắt mất chữ khi tải banner quảng cáo lên. */
}
.slide img {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(11, 15, 25, 0.6);
    color: #fff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 5;
}
.slider-arrow:hover { background: rgba(6, 182, 212, 0.6); }
.slider-arrow.prev { left: 12px; }
.slider-arrow.next { right: 12px; }
.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}
.slider-dots .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: all 0.2s ease;
}
.slider-dots .dot.active {
    background: var(--cyan);
    width: 26px;
    border-radius: 10px;
}

.hero-content { margin-top: 30px; }
.hero-title {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    line-height: 1.3;
    padding-top: 0.12em;
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(90deg, #22D3EE, #60A5FA, #F59E0B);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}
.hero-desc {
    color: var(--muted);
    font-size: 1rem;
    max-width: 620px;
    margin: 0 auto 20px;
}
.hero-cta {
    padding: 13px 34px;
    font-size: 1.05rem;
    box-shadow: 0 8px 24px rgba(0, 104, 255, 0.35);
}

/* ===================== TOOLBAR ===================== */
.toolbar-section { padding: 0 0 10px; }
.toolbar-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
}
.filter-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--muted);
    margin-bottom: 6px;
}
.btn-filter {
    background: var(--bg-soft);
    color: var(--muted);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 7px 10px;
}
.btn-filter:hover { color: var(--text); border-color: #334155; }
.btn-filter.active {
    background: rgba(6, 182, 212, 0.15);
    color: var(--cyan);
    border-color: var(--cyan);
}
.price-select {
    background: var(--bg-soft);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 9px 12px;
}
.price-select:focus {
    background: var(--bg-soft);
    color: var(--text);
    border-color: var(--cyan);
    box-shadow: none;
}
.search-box { position: relative; }
.search-box .bi-search {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    z-index: 3;
}
.search-box .form-control {
    background: var(--bg-soft);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 9px 12px 9px 36px;
}
.search-box .form-control::placeholder {
    color: #94A3B8;
    opacity: 1;
}
.search-box .form-control:focus {
    background: var(--bg-soft);
    color: var(--text);
    border-color: var(--cyan);
    box-shadow: none;
}
.stats-box {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.stat {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 0.82rem;
    color: var(--muted);
}
.stat b { color: var(--text); font-size: 1rem; }
.stat-available b { color: var(--green); }
.stat-sold b { color: var(--red); }

/* ===================== LƯỚI ACC ===================== */
.accounts-section { padding: 24px 0 50px; }
.section-heading { text-align: center; margin-bottom: 28px; }
.section-title {
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 800;
    color: var(--text);
}
.section-title i { color: var(--cyan); }
.section-sub { color: var(--muted); margin-top: 6px; }

.acc-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.acc-card:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.acc-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}
.acc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.acc-card:hover .acc-thumb img { transform: scale(1.05); }

.badge-status {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    z-index: 3;
}
.badge-status.available { background: rgba(34, 197, 94, 0.92); color: #fff; }
.badge-status.sold { background: rgba(239, 68, 68, 0.92); color: #fff; }

.img-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(11, 15, 25, 0.75);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 20px;
    z-index: 3;
}

.thumb-darken {
    position: absolute;
    inset: 0;
    background: rgba(11, 15, 25, 0.6);
    z-index: 2;
}
.sold-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-16deg);
    color: rgba(255, 255, 255, 0.92);
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(239, 68, 68, 0.75);
    z-index: 4;
    box-shadow: 0 0 24px rgba(239, 68, 68, 0.5);
}

.acc-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.acc-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    cursor: pointer;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}
.acc-title:hover { color: var(--cyan); }

.acc-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--muted);
    min-width: 0;
}
.acc-code .code-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.acc-code b { color: var(--cyan); font-weight: 700; }
.copy-btn {
    background: rgba(6, 182, 212, 0.12);
    color: var(--cyan);
    border: 1px solid rgba(6, 182, 212, 0.55);
    border-radius: 8px;
    padding: 3px 9px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    transition: background 0.15s ease, border-color 0.15s ease;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.12);
}
.copy-btn i { font-size: 0.8rem; }
.copy-btn:hover {
    background: rgba(6, 182, 212, 0.25);
    border-color: var(--cyan);
}

.acc-note {
    color: var(--muted);
    font-size: 0.82rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.acc-price {
    color: var(--amber);
    font-size: 1.15rem;
    font-weight: 800;
    margin-top: auto;
}

.empty-state {
    text-align: center;
    padding: 60px 0;
    color: var(--muted);
}
.empty-state i { font-size: 3rem; color: var(--border); }

/* ===================== FOOTER ===================== */
.shop-footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    padding: 22px 0;
    color: var(--muted);
    font-size: 0.9rem;
}
.footer-zalo a { color: var(--cyan); font-weight: 600; }

/* ===================== POPUP ===================== */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.75);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.popup-overlay.show { opacity: 1; pointer-events: auto; }
.popup-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    max-width: 460px;
    width: 100%;
    padding: 30px 24px;
    text-align: center;
    transform: translateY(16px);
    transition: transform 0.25s ease;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}
.popup-overlay.show .popup-box { transform: translateY(0); }
.popup-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), #3B82F6);
    color: #fff;
    font-size: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 0 26px rgba(6, 182, 212, 0.5);
}
.popup-title { font-weight: 800; font-size: 1.2rem; }
.popup-message { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.popup-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}
.popup-close { border-radius: 12px; font-weight: 600; }

/* ===================== MODAL CHI TIẾT ===================== */
.detail-modal .modal-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    color: var(--text);
}
.detail-modal .modal-header { border-bottom: 1px solid var(--border); }
.detail-modal .modal-footer { border-top: 1px solid var(--border); }

.album {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #000;
    margin-bottom: 18px;
}
.album-track {
    display: flex;
    height: 100%;
    transition: transform 0.35s ease;
}
.album-track img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none;
}
.album-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(11, 15, 25, 0.65);
    color: #fff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}
.album-arrow:hover { background: rgba(6, 182, 212, 0.6); }
.album-arrow.prev { left: 10px; }
.album-arrow.next { right: 10px; }
.album-counter {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(11, 15, 25, 0.75);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.detail-info { padding: 0 4px; }
.detail-code {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.95rem;
    margin-left: 10px;
}
.detail-code b { color: var(--cyan); font-size: 1.05rem; }
.detail-price { color: var(--amber); font-size: 1.5rem; font-weight: 900; }
.detail-note { color: var(--green); font-weight: 600; margin-top: 10px; }
.detail-desc {
    color: var(--muted);
    white-space: pre-line;
    font-size: 0.93rem;
    line-height: 1.7;
    margin-top: 10px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
}

/* ===================== LIGHTBOX ===================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.92);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: zoom-out;
}
.lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}
.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.2rem;
}
.lightbox-close:hover { background: rgba(239, 68, 68, 0.8); }

/* ===================== ADMIN LOGIN ===================== */
.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(700px 400px at 50% 0, rgba(6, 182, 212, 0.16), transparent 60%),
        var(--bg);
    padding: 30px 0;
}
.login-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 26px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.login-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--cyan), #3B82F6);
    color: #fff;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 0 26px rgba(6, 182, 212, 0.5);
}
.login-title { text-align: center; font-weight: 800; }
.login-sub { text-align: center; color: var(--muted); font-size: 0.9rem; }
.login-card .form-control,
.login-card .input-group-text {
    background: var(--bg-soft);
    color: var(--text);
    border-color: var(--border);
}
.login-card .form-control:focus {
    background: var(--bg-soft);
    color: var(--text);
    border-color: var(--cyan);
    box-shadow: none;
}
.login-card .form-label { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.login-back { color: var(--muted); text-decoration: none; }
.login-back:hover { color: var(--cyan); }

/* ===================== ADMIN DASHBOARD ===================== */
.admin-section { padding: 30px 0 50px; }
.admin-table { border-radius: 12px; overflow: hidden; }
.admin-table thead { background: var(--bg-soft); }
.admin-table th { color: var(--muted); font-size: 0.85rem; border-color: var(--border) !important; }
.admin-table td { border-color: var(--border) !important; }
.admin-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; }
.btn-toggle {
    background: rgba(6, 182, 212, 0.12);
    color: var(--cyan);
    border: 1px solid rgba(6, 182, 212, 0.3);
    font-weight: 600;
}
.btn-toggle:hover { background: rgba(6, 182, 212, 0.25); color: var(--cyan); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 991.98px) {
    .slider-arrow { width: 34px; height: 34px; font-size: 1rem; }
}

@media (max-width: 575.98px) {
    .hero-section { padding-top: 14px; }
    .acc-title { font-size: 0.88rem; min-height: 2.5em; }
    .acc-price { font-size: 1rem; }
    .btn-buy, .btn-sold-out { font-size: 0.85rem; padding: 9px 10px; }
    .sold-stamp { font-size: 0.95rem; padding: 6px 12px; }
    .stats-box { width: 100%; }
    .stat { flex: 1; text-align: center; }
}

/* ===================== TRANG QUẢN TRỊ (/admin) ===================== */
.admin-section { padding: 30px 0 60px; }

.admin-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    margin-bottom: 18px;
    overflow: hidden;
}
.admin-card-header {
    background: var(--bg-soft);
    padding: 16px 18px;
    font-weight: 800;
    font-size: 1.05rem;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-card-header i:first-child { color: var(--cyan); margin-right: 8px; }
.admin-card-body { padding: 18px; }

/* Form dark dùng chung cho trang admin */
.dark-form .form-label {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
}
.dark-form .form-control,
.dark-form .form-select {
    background: var(--bg-soft);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 0.95rem;
}
.dark-form .form-control:focus,
.dark-form .form-select:focus {
    background: var(--bg-soft);
    color: var(--text);
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}
.dark-form textarea.form-control { resize: vertical; }
.dark-form .form-control::placeholder { color: #94A3B8; opacity: 1; }
.dark-form .form-text { color: var(--muted); }

/* Nút hành động to, dễ bấm trên điện thoại */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 14px;
    padding: 12px 18px;
    font-weight: 700;
    font-size: 0.95rem;
    min-height: 46px;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-action:active { transform: scale(0.97); }

.btn-toggle-status {
    background: rgba(34, 197, 94, 0.15);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 0.9rem;
    width: 100%;
}
.btn-toggle-status.is-sold {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
    border-color: rgba(239, 68, 68, 0.4);
}

.btn-edit {
    background: rgba(6, 182, 212, 0.14);
    color: var(--cyan);
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 0.9rem;
}
.btn-delete {
    background: rgba(239, 68, 68, 0.14);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Danh sách acc trong trang admin */
.acc-manage-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
}
.ami-thumb {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    background: #000;
}
.ami-info { flex: 1; min-width: 0; }
.ami-code { color: var(--cyan); font-weight: 800; font-size: 0.95rem; }
.ami-title {
    color: var(--text);
    font-weight: 700;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ami-price { color: var(--amber); font-weight: 800; font-size: 0.95rem; }
.ami-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

/* Ảnh banner trong trang cài đặt */
.banner-list { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.banner-item {
    position: relative;
    width: 200px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.banner-item img { width: 100%; height: auto; display: block; }
.banner-del {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Danh sách ảnh trong modal sửa acc */
.edit-images-list { display: flex; flex-wrap: wrap; gap: 12px; }
.edit-image-item {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.edit-image-item img { width: 100%; height: 100%; object-fit: cover; }
.edit-image-del {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 575.98px) {
    .acc-manage-item { flex-wrap: wrap; }
    .ami-thumb { width: 56px; height: 56px; }
    .ami-actions { flex-direction: row; width: 100%; }
    .ami-actions .btn-toggle-status,
    .ami-actions .btn-edit,
    .ami-actions .btn-delete { flex: 1; padding: 10px 6px; font-size: 0.82rem; }
    .banner-item { width: 100%; }
}

/* ===================== NÚT NHÓM ZALO (nâng cấp) ===================== */
.btn-group-zalo {
    background: rgba(6, 182, 212, 0.08);
    color: var(--cyan);
    border: 1.5px solid rgba(6, 182, 212, 0.6);
    border-radius: 12px;
    padding: 10px 22px;
    font-weight: 700;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 0 14px rgba(6, 182, 212, 0.18);
}
.btn-group-zalo:hover {
    color: #fff;
    background: rgba(6, 182, 212, 0.25);
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.45);
    transform: translateY(-2px);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto;
}
.hero-actions .hero-cta {
    width: 100%;
    background: #0068FF;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 14px 20px;
    border: none;
    box-shadow: 0 0 18px rgba(0, 104, 255, 0.55);
}
.hero-group-btns {
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
}
.hero-group-btns .btn-group-zalo {
    flex: 1 1 0;
    max-width: calc(50% - 5px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    margin-top: 8px;
}
.footer-links a {
    color: var(--cyan);
    font-weight: 600;
    font-size: 0.9rem;
}
.footer-links a:hover { color: var(--text); }

/* Popup: nút nhóm Zalo xếp dọc, to dễ bấm trên điện thoại */
.popup-actions .btn-group-zalo { width: 100%; }

@media (max-width: 575.98px) {
    /* Trên điện thoại: 2 nút nhóm vẫn nằm ngang bằng nhau, chữ không rớt dòng */
    .hero-actions { max-width: 100%; }
    .hero-group-btns .btn-group-zalo { font-size: 0.85rem; }
    .hero-group-btns .btn-group-zalo i { font-size: 0.9rem; }
    .footer-links { flex-direction: column; gap: 8px; }
}

/* ===================== NÚT ZALO NỔI (FAB) ===================== */
.zalo-fab {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0068FF;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 13px 20px;
    border-radius: 50px;
    box-shadow: 0 6px 22px rgba(0, 104, 255, 0.5);
    animation: zaloPulse 2s infinite;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.zalo-fab:hover {
    color: #FFFFFF;
    filter: brightness(1.08);
    transform: translateY(-2px);
}
.zalo-fab i { font-size: 1.2rem; }

@keyframes zaloPulse {
    0%, 100% { box-shadow: 0 6px 22px rgba(0, 104, 255, 0.5); }
    50% { box-shadow: 0 6px 28px rgba(0, 104, 255, 0.85); }
}

/* Chừa khoảng trống cuối trang để nút Zalo nổi không che nút "Mua qua Zalo" của thẻ cuối */
.accounts-section { padding-bottom: 90px; }

@media (max-width: 575.98px) {
    .zalo-fab {
        right: 12px;
        bottom: 12px;
        padding: 11px 16px;
        font-size: 0.88rem;
    }
    .accounts-section { padding-bottom: 96px; }
}

/* Navbar Zalo trên màn hình nhỏ */
@media (max-width: 575.98px) {
    .btn-navbar-zalo {
        padding: 8px 12px;
        font-size: 0.82rem;
    }
    .btn-navbar-zalo i { font-size: 0.9rem; }
}

/* ===================== LOGO THƯƠNG HIỆU ===================== */
.brand-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.45));
}
.footer-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin: 0 auto 10px;
    display: block;
    filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.35));
}
.login-logo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

/* ===================== UPLOAD ẢNH THƯƠNG HIỆU (ADMIN) ===================== */
.brand-upload-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.brand-preview {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: #0B0F19;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.brand-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.brand-upload-info { flex: 1; min-width: 180px; }
.brand-upload-info .form-label { margin-bottom: 4px; }
.brand-upload-actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 575.98px) {
    .brand-upload-row { gap: 10px; }
    .brand-preview { width: 58px; height: 58px; }
    .brand-name { font-size: 0.98rem; }
    .brand-logo-img { width: 34px; height: 34px; }
}

/* Mobile: nút Zalo nổi thu gọn thành vòng tròn để không che nút "Mua qua Zalo" */
@media (max-width: 575.98px) {
    .zalo-fab {
        width: 52px;
        height: 52px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        right: 12px;
        bottom: 14px;
    }
    .zalo-fab span { display: none; }
    .zalo-fab i { font-size: 1.35rem; }
    /* Chừa thêm khoảng trống cuối trang cho nút tròn */
    .accounts-section { padding-bottom: 88px; }
}

/* ===================== ADMIN: MENU DỌC BÊN TRÁI ===================== */
.admin-sidebar {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    position: sticky;
    top: 78px;
}
.admin-sidebar-title {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--muted);
    padding: 4px 10px 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}
.admin-nav { gap: 6px; }

.admin-nav .admin-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 11px 14px;
    white-space: nowrap;
    transition: all 0.15s ease;
}
.admin-nav .admin-nav-item:hover {
    background: var(--bg-soft);
    color: var(--text);
}
.admin-nav .admin-nav-item.active {
    background: rgba(6, 182, 212, 0.14);
    border-color: rgba(6, 182, 212, 0.45);
    color: var(--cyan);
    box-shadow: inset 3px 0 0 var(--cyan);
}
.admin-nav .admin-nav-item i { font-size: 1.02rem; }

.admin-tab-content { min-height: 420px; }
.admin-card-header.static { cursor: default; }

@media (max-width: 991.98px) {
    .admin-sidebar {
        position: static;
        padding: 8px;
        border-radius: 14px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .admin-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
    }
    .admin-nav .admin-nav-item {
        width: auto;
        flex: 0 0 auto;
        font-size: 0.85rem;
        padding: 9px 13px;
        box-shadow: none;
    }
    .admin-nav .admin-nav-item.active { box-shadow: none; }
}
