/* =====================================================================
   ShopNRO theme "Đêm Namek" — ghi đè lên CSS gốc, KHÔNG sửa markup.
   Gỡ dòng <link .../shopnro-theme.css> trong index.html là về giao diện cũ.
   ===================================================================== */

:root {
    --nro-orange: #FF8A00;      /* cam ngọc rồng — nút hành động */
    --nro-orange-deep: #E86A00;
    --nro-orange-soft: #FFF2E2;
    --nro-blue: #16A34A;        /* xanh lá — màu chính: link, nhấn phụ (tên biến giữ nguyên) */
    --nro-night: #0F2A1D;       /* xanh lá đậm — thanh tiêu đề, footer */
    --nro-night-2: #14532D;
    --nro-green: #17A673;       /* xanh Namek — còn hàng / thành công */
    --nro-sky: #F2FAF4;         /* nền */
    --nro-ink: #17241C;         /* chữ */
    --nro-line: #DCEBE1;

    /* biến gốc -> palette mới */
    --primary-color: var(--nro-blue);
    --primary-dark: #15803D;
    --primary-light: #22C55E;
    --accent-color: var(--nro-blue);
    --text-color: var(--nro-ink);
    --text-light: #56695D;
    --bg-color: var(--nro-sky);
    --bg-light: #FAFDFB;
    --shadow-sm: 0 1px 2px rgba(15, 42, 29, .06);
    --shadow-md: 0 6px 18px rgba(15, 42, 29, .07);
    --shadow-lg: 0 14px 32px rgba(15, 42, 29, .12);

    --font-display: "Baloo 2", "Fz Poppins", sans-serif;
    --font-body: "Be Vietnam Pro", "Fz Poppins", sans-serif;
    /* viên ngọc rồng 1 sao — dấu hiệu tiêu đề khu vực */
    --nro-ball: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3CradialGradient id='g' cx='35%25' cy='30%25' r='75%25'%3E%3Cstop offset='0' stop-color='%23fff3c4'/%3E%3Cstop offset='.35' stop-color='%23ffb300'/%3E%3Cstop offset='1' stop-color='%23e65100'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='20' cy='20' r='19' fill='url(%23g)'/%3E%3Cpolygon points='20,11 22.6,17.4 29.5,17.6 24.1,21.8 26,28.4 20,24.6 14,28.4 15.9,21.8 10.5,17.6 17.4,17.4' fill='%23e53935'/%3E%3Cellipse cx='12.5' cy='9.5' rx='5' ry='2.5' fill='%23fff' opacity='.55' transform='rotate(-30 12.5 9.5)'/%3E%3C/svg%3E");
}

/* ---------- Nền & chữ ---------- */
body {
    font-family: var(--font-body);
    background-color: var(--nro-sky);
    background-image: radial-gradient(rgba(22, 163, 74, .07) 1px, transparent 1px);
    background-size: 22px 22px;
}
h1, h2, h3,
.menu__header__title, .hero__title, .footer__title, .category__title,
.section-title, .wheel-title, .history-title, .sidebar-title {
    font-family: var(--font-display);
    letter-spacing: 0;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--nro-orange); outline-offset: 2px; border-radius: 6px; }

/* ---------- Thanh trên cùng + menu ---------- */
.announcement {
    background: var(--nro-night);
    color: #C6ECD3;
    border-bottom: 0;
}
.announcement a, .announcement__media > a { color: #fff; }
.announcement__hotline a { color: var(--nro-orange); font-weight: 700; }
.nav {
    box-shadow: 0 1px 0 var(--nro-line);
}
.menu__item { font-weight: 600; color: var(--nro-ink); }
.menu__item:hover, .menu__item.active { color: var(--nro-orange-deep); }
.menu__item::after, .menu__item.active::after { background: var(--nro-orange); height: 3px; border-radius: 3px; }

/* ---------- Nút ---------- */
.action__link {
    border-radius: 12px;
    border-color: var(--nro-blue);
    color: var(--nro-blue);
    font-weight: 700;
}
/* Nút hành động chính = viên ngọc rồng: cam, có vệt sáng phía trên */
.action__link.action__link--primary,
.nav__action form button.action__link,
.btn--primary,
.profile-content .btn-primary,
.account-filter__button--primary,
.service-filter__button--primary,
.action-btn--card,
.detail__btn--primary,
.modal__btn--card,
.service__btn--primary,
.service-modal__btn--primary,
.welcome-modal__btn,
.hero-sidebar__btn,
.special-notice__btn,
.wheel-spin-btn,
.wheel-btn--spin,
.deposit-btn,
.register-btn {
    background: linear-gradient(180deg, #FFB43D 0%, var(--nro-orange) 45%, var(--nro-orange-deep) 100%) !important;
    color: #fff !important;
    border: 0 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 16px rgba(232, 106, 0, .28) !important;
    text-shadow: 0 1px 0 rgba(150, 60, 0, .35);
    font-weight: 700;
}
.action__link.action__link--primary:hover,
.nav__action form button.action__link:hover,
.btn--primary:hover,
.profile-content .btn-primary:hover,
.account-filter__button--primary:hover,
.action-btn--card:hover,
.detail__btn--primary:hover,
.modal__btn--card:hover,
.service__btn--primary:hover,
.welcome-modal__btn:hover,
.hero-sidebar__btn:hover,
.wheel-spin-btn:hover,
.deposit-btn:hover,
.register-btn:hover {
    filter: brightness(1.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 22px rgba(232, 106, 0, .38) !important;
}

/* Nút phụ (Nạp thẻ cạnh Mua ngay): lam Capsule */
.detail__btn--card { background: var(--nro-blue) !important; color: #fff !important; border: 0 !important; box-shadow: 0 6px 16px rgba(22, 163, 74, .25) !important; }
.detail__btn--card:hover { filter: brightness(1.08); }

/* ---------- Tiêu đề khu vực: viên ngọc rồng thay gạch chân ---------- */
.menu__header__title,
.section-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--nro-ink);
    text-transform: none;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    padding-bottom: 0;
}
.menu__header__title::before,
.section-title::before {
    content: "";
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    background: var(--nro-ball) center / contain no-repeat;
    filter: drop-shadow(0 3px 6px rgba(232, 106, 0, .35));
}
.menu__header__title::after,
.section-title:after { display: none; }
.menu__header { margin-bottom: 28px; }
/* Các tiêu đề khu vực khác (giữ nguyên căn lề gốc, chỉ thêm viên ngọc) */
.service__price-title, .service__form-title, .detail__images-title, .detail__info-title,
.history-title, .rules-title, .section__title {
    font-family: var(--font-display);
    color: var(--nro-ink);
    font-weight: 800;
}
.service__price-title::before, .service__form-title::before, .detail__images-title::before,
.detail__info-title::before, .history-title::before, .rules-title::before, .section__title::before {
    content: "";
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    margin-right: .45em;
    vertical-align: -0.2em;
    background: var(--nro-ball) center / contain no-repeat;
}
.service__price-title::after, .service__form-title::after, .detail__images-title:after, .detail__info-title:after,
.history-title::after, .rules-title::after, .section__title::after { display: none; }

/* Khung đăng nhập / đăng ký */
.register-container {
    border: 1px solid var(--nro-line);
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(15, 42, 29, .08);
    border-top: 5px solid var(--nro-orange);
}
.register-title { font-family: var(--font-display); color: var(--nro-ink); font-weight: 800; }
.register-title::after { background: var(--nro-orange); }
.register-section input:focus, .register-section .form-control:focus {
    border-color: var(--nro-orange);
    box-shadow: 0 0 0 3px rgba(255, 138, 0, .18);
    outline: none;
}

/* ---------- Dải tiêu đề trang: bầu trời đêm + quầng sáng cam ---------- */
.hero--small {
    padding: 44px 0 40px;
    background:
        radial-gradient(circle at 82% 30%, rgba(255, 138, 0, .38), transparent 42%),
        radial-gradient(circle at 12% 110%, rgba(22, 163, 74, .55), transparent 50%),
        linear-gradient(160deg, var(--nro-night) 0%, var(--nro-night-2) 100%);
}
.hero--small::before {
    background-image:
        radial-gradient(#fff 1px, transparent 1.5px),
        radial-gradient(#fff 1px, transparent 1.5px);
    background-size: 90px 90px, 140px 140px;
    background-position: 0 0, 45px 60px;
    opacity: .22;
}
.hero--small .hero__title {
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.15;
    background: linear-gradient(180deg, #fff 30%, #FFD8A8);
    -webkit-background-clip: text;
    background-clip: text;
}
.hero--small .hero__desc { color: #D3EFDC; opacity: 1; }

/* ---------- Banner + Top nạp ---------- */
.hero-banner { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-banner a, .hero-banner a:hover { display: block; height: 100%; background: none; box-shadow: none; margin-top: 0; border-radius: 0; transform: none; }
/* Ảnh phủ kín khung (khung cao theo cột Top nạp bên cạnh); chữ nằm bên trái ảnh nên neo trái, chỉ cắt phần ngọc rồng trang trí bên phải */
.hero-banner__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.hero-sidebar { border-radius: 20px; border: 1px solid var(--nro-line); box-shadow: var(--shadow-md); }
.hero-sidebar__header { background: var(--nro-night) !important; font-family: var(--font-display); }

/* ---------- Thanh giao dịch nhanh ---------- */
.transaction__item {
    border: 1px solid var(--nro-line);
    box-shadow: var(--shadow-sm);
}
.transaction__item:hover { border-color: var(--nro-orange); }
.transaction__icon { background: var(--nro-orange-soft); }
.text__transaction__item { font-family: var(--font-display); font-size: 1.6rem; color: var(--nro-ink); }

/* ---------- Card danh mục / dịch vụ / vòng quay ---------- */
.category__item {
    border: 1px solid var(--nro-line);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}
.category__item:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 138, 0, .55);
    box-shadow: 0 16px 34px rgba(15, 42, 29, .14);
}
.category__img { height: 180px; }
.category__title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--nro-ink);
    line-height: 1.25;
    margin: 16px 16px 4px;
    text-align: center;
}
.badge {
    background: #ECFDF3;
    color: var(--nro-blue);
    border-radius: 999px;
    font-weight: 600;
}
.category__action {
    margin: auto 16px 16px;
    padding: 11px 0;
    border: 0;
    border-radius: 12px;
    background: var(--nro-orange-soft);
    color: var(--nro-orange-deep);
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    transition: background .2s ease, color .2s ease;
}
.category__item:hover .category__action { background: var(--nro-orange); color: #fff; transform: none; }

/* ---------- Card acc / lọc ---------- */
.account-filter { border: 1px solid var(--nro-line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.account-filter__input:focus { border-color: var(--nro-orange); box-shadow: 0 0 0 3px rgba(255, 138, 0, .18); }
.account-card { border: 1px solid var(--nro-line); border-radius: 18px; }
.account-card:hover { border-color: rgba(255, 138, 0, .55); }
.account-code { background: var(--nro-night) !important; }
.account-price-top { background: linear-gradient(0deg, rgba(15, 42, 29, .92), rgba(15, 42, 29, 0)) !important; color: #FFD8A8 !important; }

/* ---------- Giao dịch gần đây / thông báo ---------- */
.service__alert--success { border-left-color: var(--nro-green); }

/* ---------- Phân trang ---------- */
.pagination-item.active { background: var(--nro-orange); border-color: var(--nro-orange); color: #fff; }
.pagination-item:hover { border-color: var(--nro-orange); color: var(--nro-orange-deep); }

/* ---------- Trang cá nhân ---------- */
.sidebar-item.active .sidebar-link,
.sidebar-item.active { background: var(--nro-blue); }
.profile-header, .profile-title-bar { background: linear-gradient(160deg, var(--nro-night), var(--nro-night-2)) !important; }

/* ---------- Footer ---------- */
.footer {
    background:
        radial-gradient(circle at 90% 0%, rgba(255, 138, 0, .16), transparent 40%),
        var(--nro-night);
}
.footer__title { font-size: 2rem; font-weight: 800; }
.footer__title::after { background: var(--nro-orange); }
.footer__link:hover, .footer__copyright a { color: var(--nro-orange); }
.social__link:hover { background: var(--nro-orange); }

/* ---------- Menu mobile ---------- */
.menu-mobile__link.active { color: var(--nro-orange-deep); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .category__item:hover, .transaction__item:hover { transform: none; }
}
@media (max-width: 768px) {
    .menu__header__title, .section-title { font-size: 2.4rem; }
    .menu__header__title::before, .section-title::before { flex-basis: 28px; width: 28px; height: 28px; }
    .hero--small .hero__title { font-size: 2.8rem; }
}

/* ---------- Vòng quay: nền bầu trời đêm như dải tiêu đề ---------- */
.lucky-wheel-container {
    background:
        radial-gradient(circle at 75% 45%, rgba(255, 138, 0, .40), transparent 38%),
        linear-gradient(160deg, var(--nro-night) 0%, var(--nro-night-2) 100%) !important;
}
.wheel-title { font-weight: 800; }

/* ---------- Modal chào mừng: nút "Tắt trong 2 giờ" ---------- */
.welcome-modal__footer { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.welcome-modal__mute {
    background: none;
    border: 0;
    padding: 6px 10px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
}
.welcome-modal__mute:hover { color: var(--nro-ink); background: rgba(15, 42, 29, .05); }
.welcome-modal__mute i { margin-right: 4px; }
