﻿/* ============================================================================
   Membership Portal — Design System
   Rebuilt to match the "Russain Market" reference template:
   dark navy panels (#0a1227 / #0f1932), orange accent (#FF6A00),
   Jost headings + Montserrat body, flat orange buttons, beveled banner.
   NOTE: do not delete the .page-loader/.toast/.spinner/.skeleton/.badge/
   .btn-ghost/.app-row/.app-avatar/.stat-card/.tab-btn/.drop-zone classes —
   app.js builds and toggles them dynamically.
   ========================================================================== */

:root {
    --base: #FF6A00;
    --base-soft: rgba(255, 106, 0, 0.15);
    --body-bg: #0a1227;
    --section-bg: #0f1932;
    --border: rgba(255, 255, 255, 0.1);
    --text-body: #93b4ca;
    --text-white: #ffffff;
    --success: #28c76f;
    --error: #eb2222;
    --warning: #ff9f43;
    --info: #1e9ff2;
    --heading-font: 'Jost', sans-serif;
    --body-font: 'Montserrat', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
* { scroll-behavior: smooth; }

.hidden { display: none !important; }

html, body { overflow-x: hidden; }

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-body);
    background: var(--body-bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { text-decoration: none; color: inherit; transition: color .3s; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--text-white);
    line-height: 1.2;
    font-weight: 600;
}
h1 { font-size: 42px; margin-bottom: 20px; }
h2 { font-size: 36px; margin-bottom: 20px; }
h3 { font-size: 28px; margin-bottom: 16px; }
h4 { font-size: 24px; margin-bottom: 14px; }
h5 { font-size: 20px; margin-bottom: 12px; }
h6 { font-size: 18px; margin-bottom: 10px; }
@media (min-width: 768px) {
    h1 { font-size: 80px; } h2 { font-size: 54px; }
    h3 { font-size: 36px; } h4 { font-size: 28px; }
    h5 { font-size: 24px; } h6 { font-size: 20px; }
}

::selection { background: var(--base); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--body-bg); }
::-webkit-scrollbar-thumb { background: #243049; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #33415c; }

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

.text--base { color: var(--base) !important; }
.bg--section { background: var(--section-bg) !important; }

/* ===================== Page Preloader ===================== */
.page-loader {
    position: fixed; inset: 0; background: var(--section-bg);
    z-index: 999999; transition: opacity .5s ease, visibility .5s ease;
}
.page-loader.loaded { opacity: 0; visibility: hidden; }
.loader-circle {
    width: 120px; height: 120px; border-radius: 50%;
    position: absolute; top: 50%; left: 50%; margin: -60px 0 0 -60px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex; align-items: center; justify-content: center; z-index: 2;
}
.loader-circle img { width: 40%; animation: logoPulse 1.5s ease-in-out infinite; }
@keyframes logoPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.92); opacity: .8; } }
.loader-line-mask {
    position: absolute; top: 50%; left: 50%; width: 60px; height: 120px;
    margin: -60px 0 0 -60px; overflow: hidden;
    transform-origin: 60px 60px; animation: loaderRotate 1.2s linear infinite;
}
.loader-line {
    width: 120px; height: 120px; border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
@keyframes loaderRotate { to { transform: rotate(360deg); } }

/* ===================== Toasts ===================== */
.toast-container {
    position: fixed; top: 84px; right: 20px; z-index: 9999;
    display: flex; flex-direction: column; gap: 10px;
}
.toast {
    min-width: 280px; max-width: 360px; background: var(--section-bg); color: #fff;
    border: 1px solid var(--border); border-left-width: 4px;
    border-radius: 5px; padding: 13px 15px; font-size: 14px; font-family: var(--body-font);
    box-shadow: 0 15px 40px rgba(0, 0, 0, .5);
    display: flex; align-items: center; gap: 12px;
    opacity: 0; transform: translateX(30px);
    animation: toastIn .35s cubic-bezier(.68,-.55,.265,1.55) forwards;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--error); }
.toast.info { border-left-color: var(--base); }
.toast.warning { border-left-color: var(--warning); }
.toast.out { animation: toastOut .3s forwards; }
.toast i { font-size: 18px; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--error); }
.toast.info i { color: var(--base); }
.toast.warning i { color: var(--warning); }
@keyframes toastIn { to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(12px); } }

/* ===================== Scroll to top ===================== */
.scrollToTop {
    position: fixed; bottom: 30px; right: 30px; z-index: 999;
    width: 40px; height: 40px; line-height: 40px; text-align: center;
    background: var(--base); color: #fff; font-size: 18px; border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0; visibility: hidden; transform: translateY(40px);
    transition: all .4s ease;
}
.scrollToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scrollToTop:hover { background: #e05e00; color: #fff; }

/* ===================== Header ===================== */
.header-top { background: var(--base); }
.header-top-area {
    display: flex; align-items: center; justify-content: center;
    gap: 30px; padding: 8px 0; color: #fff; font-size: 14px; font-weight: 500;
}
.header-top-area i { margin-right: 7px; }
@media (min-width: 768px) {
    .header-top-area { justify-content: space-between; }
}

.site-header {
    position: sticky; top: 0; z-index: 999;
    background: rgba(15, 25, 50, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
    background: var(--section-bg);
    box-shadow: 0 5px 25px rgba(0, 0, 0, .4);
}
.header-wrapper {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; padding: 20px 0;
}
@media (max-width: 1199px) { .header-wrapper { padding: 14px 0; } }

.mode-logo img { max-height: 55px; width: auto; }
.mode-logo .brand-fallback {
    display: none; font-family: var(--heading-font); color: #fff;
    font-size: 26px; font-weight: 600; letter-spacing: .5px;
}
.mode-logo img.img-fail { display: none; }
.mode-logo img.img-fail + .brand-fallback { display: block; }
@media (max-width: 767px) {
    .mode-logo img { max-height: 42px; }
    .mode-logo .brand-fallback { font-size: 20px; }
}

.menu { display: flex; align-items: center; gap: 4px; }
.menu li a {
    color: #fff; font-family: var(--heading-font); font-weight: 500;
    font-size: 16px; padding: 5px 15px; display: block;
    transition: color .3s;
}
.menu li a:hover { color: var(--base); }
@media (max-width: 1199px) { .menu li a { font-size: 15px; padding: 5px 11px; } }

.header-actions { display: flex; align-items: center; gap: 18px; }
.cmn--btn--sm {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--base); color: #fff; border: 1px solid transparent;
    padding: 0 15px; line-height: 40px; border-radius: 4px;
    font-family: var(--heading-font); font-size: 14px; font-weight: 500;
    text-transform: capitalize; transition: all .3s;
}
.cmn--btn--sm:hover { color: #fff; border-color: rgba(255, 255, 255, .19); background: #e05e00; }

.header-bar {
    display: none; flex-direction: column; justify-content: space-between;
    width: 25px; height: 20px; background: transparent; border: 0; padding: 0;
}
.header-bar span { width: 100%; height: 3px; background: #fff; border-radius: 3px; transition: all .3s; }
.header-bar.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.header-bar.open span:nth-child(2) { opacity: 0; }
.header-bar.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
@media (max-width: 991px) { .header-bar { display: flex; } .menu { display: none; } }

.mobile-menu {
    position: fixed; top: 0; left: 0; right: 0; z-index: 998;
    background: var(--section-bg); border-bottom: 1px solid var(--border);
    padding: 90px 24px 24px; transform-origin: top;
    transform: scaleY(0); opacity: 0; visibility: hidden;
    transition: transform .35s ease, opacity .3s ease, visibility .35s;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.mobile-menu.open { transform: scaleY(1); opacity: 1; visibility: visible; }
.mobile-menu .m-link {
    display: block; color: #fff; font-family: var(--heading-font);
    font-size: 18px; font-weight: 500; padding: 12px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.mobile-menu .m-link:hover { color: var(--base); }
.mobile-menu .m-auth { margin-top: 18px; }
.mobile-menu .m-auth .cmn--btn,
.mobile-menu .m-auth .cmn--btn--sm { width: 100%; justify-content: center; }
.mobile-menu .m-auth .member-badge {
    display: inline-flex; align-items: center; gap: 8px; color: #fff;
    font-family: var(--heading-font); font-size: 13px; margin-right: 10px;
}
.mobile-menu .m-auth .member-badge i { color: var(--success); }
.mobile-menu .m-auth .member-badge.admin i { color: var(--base); }

/* ---- Language selector (English / Russian) ---- */
.lang-select {
    position: relative; display: flex; align-items: center; gap: 7px;
    height: 40px; padding: 0 28px 0 12px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 11px; cursor: pointer; color: #fff;
    transition: border-color .25s ease, background .25s ease;
}
.lang-select:hover { border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .1); }
.lang-select > i { color: #93b4ca; font-size: 13px; }
.lang-select select {
    appearance: none; -webkit-appearance: none; background: transparent;
    border: 0; outline: 0; color: #fff; cursor: pointer;
    font-family: var(--heading-font); font-size: 13px; font-weight: 600;
    letter-spacing: .04em; padding: 0;
}
.lang-select select option { background: #0b1424; color: #fff; }
.lang-select .lang-caret {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    font-size: 9px; color: #93b4ca; pointer-events: none;
}

/* ---- Premium Sign In button (desktop + mobile) ---- */
.auth-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; padding: 0 18px;
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    color: #fff; border: 0; border-radius: 11px; cursor: pointer;
    font-family: var(--heading-font); font-size: 14px; font-weight: 600;
    letter-spacing: .02em; white-space: nowrap;
    box-shadow: 0 4px 14px rgba(37, 99, 235, .35);
    transition: all .25s ease;
}
.auth-btn i { font-size: 13px; }
.auth-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #2563EB);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(59, 130, 246, .5);
}
.auth-btn:active { transform: scale(.97); }

.mobile-menu .m-lang-row {
    display: flex; align-items: center; gap: 10px;
    margin: 14px 4px 0; color: #93b4ca; font-size: 14px;
}
.mobile-menu .m-lang-row select {
    flex: 1; max-width: 120px; appearance: none; -webkit-appearance: none;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 11px; color: #fff; padding: 9px 12px; cursor: pointer;
    font-family: var(--heading-font); font-size: 13px; font-weight: 600;
}
.mobile-menu .m-lang-row select option { background: #0b1424; color: #fff; }

@media (max-width: 480px) {
    .auth-btn { padding: 0 13px; font-size: 13px; }
    .header-actions { gap: 10px; }
    .lang-select { height: 38px; padding: 0 24px 0 10px; }
    .auth-btn { height: 38px; }
}

/* ===================== Dashboard navbar ===================== */
.dash-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(15, 23, 42, .85); border-bottom: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
.dash-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.dash-left { display: flex; align-items: center; gap: 26px; min-width: 0; }
.dash-logo { display: flex; align-items: center; }
.dash-logo img { max-height: 38px; width: auto; }
.dash-menu ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.dash-menu li { position: relative; }
.dash-link {
    display: inline-flex; align-items: center; gap: 7px;
    color: #94a3b8; font-family: var(--heading-font); font-size: 14.5px; font-weight: 600;
    padding: 9px 13px; border-radius: 9px; position: relative;
    transition: color .25s ease, background .25s ease; white-space: nowrap;
}
.dash-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.dash-link.active { color: #FF7A1A; background: rgba(255, 122, 26, .08); }
.dash-link.active::after {
    content: ''; position: absolute; left: 13px; right: 13px; bottom: 3px;
    height: 2px; border-radius: 2px; background: #FF7A1A;
    animation: dashUnderline .3s ease;
}
@keyframes dashUnderline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.dash-caret { font-size: 10px; transition: transform .25s ease; }
.dash-has-dd:hover > .dash-link, .dash-has-dd.open > .dash-link { color: #fff; }
.dash-has-dd:hover .dash-caret, .dash-has-dd.open .dash-caret { transform: rotate(180deg); color: #FF7A1A; }
.dash-dd {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 215px;
    background: rgba(15, 23, 42, .97); border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px; padding: 7px; z-index: 60;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .55);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.dash-has-dd:hover > .dash-dd, .dash-has-dd.open > .dash-dd { opacity: 1; visibility: visible; transform: translateY(0); }
.dash-dd-item {
    display: flex; align-items: center; gap: 10px; color: #94a3b8;
    font-family: var(--heading-font); font-size: 13.5px; font-weight: 500;
    padding: 9px 12px; border-radius: 8px; transition: all .2s ease;
}
.dash-dd-item i { width: 15px; text-align: center; color: #64748b; transition: color .2s ease; }
.dash-dd-item:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.dash-dd-item:hover i { color: #FF7A1A; }
.dash-dd-item.active { color: #FF7A1A; background: rgba(255, 122, 26, .1); }
.dash-dd-item.active i { color: #FF7A1A; }

.dash-right { display: flex; align-items: center; gap: 12px; }
.dash-lang { position: relative; }
.dash-lang-btn {
    display: inline-flex; align-items: center; gap: 8px; height: 38px;
    padding: 0 12px; border-radius: 10px; cursor: pointer; color: #e2e8f0;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
    font-family: var(--heading-font); font-size: 13px; font-weight: 600;
    transition: all .25s ease;
}
.dash-lang-btn:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); }
.dash-flag { font-size: 15px; line-height: 1; }
.dash-lang-dd {
    position: absolute; top: calc(100% + 8px); right: 0; min-width: 190px;
    background: rgba(15, 23, 42, .97); border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px; padding: 7px; z-index: 60;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .55);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.dash-lang.open .dash-lang-dd { opacity: 1; visibility: visible; transform: translateY(0); }
.dash-lang-dd button {
    display: flex; align-items: center; gap: 9px; width: 100%;
    color: #94a3b8; background: transparent; border: 0; cursor: pointer;
    font-family: var(--heading-font); font-size: 13.5px; font-weight: 500;
    padding: 9px 12px; border-radius: 8px; text-align: left; transition: all .2s ease;
}
.dash-lang-dd button:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.dash-lang-dd button.selected { color: #FF7A1A; background: rgba(255, 122, 26, .1); }
.dash-lang-dd .dm-flag { font-size: 14px; }

.dash-logout {
    display: inline-flex; align-items: center; gap: 7px; height: 38px;
    padding: 0 15px; border: 0; border-radius: 10px; cursor: pointer;
    background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff;
    font-family: var(--heading-font); font-size: 13.5px; font-weight: 700;
    box-shadow: 0 4px 14px rgba(239, 68, 68, .35); transition: all .25s ease;
}
.dash-logout:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(239, 68, 68, .5); filter: brightness(1.08); }
.dash-logout:active { transform: scale(.95); }

.dash-bar {
    display: none; flex-direction: column; justify-content: space-between;
    width: 26px; height: 21px; background: transparent; border: 0; padding: 0; cursor: pointer;
}
.dash-bar span { width: 100%; height: 3px; background: #e2e8f0; border-radius: 3px; transition: all .3s; }
.dash-bar.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.dash-bar.open span:nth-child(2) { opacity: 0; }
.dash-bar.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.dash-mobile {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 990;
    width: min(300px, 86vw); background: #0f172a;
    border-left: 1px solid rgba(255, 255, 255, .08);
    box-shadow: -20px 0 60px rgba(0, 0, 0, .5);
    padding: 84px 18px 26px; overflow-y: auto;
    transform: translateX(102%); visibility: hidden;
    transition: transform .32s cubic-bezier(.2, .8, .3, 1), visibility .32s;
}
.dash-mobile.open { transform: translateX(0); visibility: visible; }
.dash-mobile .dm-link {
    display: flex; align-items: center; gap: 10px; color: #e2e8f0;
    font-family: var(--heading-font); font-size: 15px; font-weight: 600;
    padding: 12px 6px; border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.dash-mobile .dm-link i { width: 18px; color: #64748b; }
.dash-mobile .dm-group { border-bottom: 1px solid rgba(255, 255, 255, .06); }
.dash-mobile .dm-group-head {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    background: transparent; border: 0; color: #e2e8f0;
    font-family: var(--heading-font); font-size: 15px; font-weight: 600;
    padding: 12px 6px; cursor: pointer;
}
.dash-mobile .dm-group-head i { color: #64748b; transition: transform .25s ease; }
.dash-mobile .dm-group.open .dm-group-head i { transform: rotate(180deg); }
.dash-mobile .dm-dd { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.dash-mobile .dm-dd-inner { overflow: hidden; }
.dash-mobile .dm-group.open .dm-dd { grid-template-rows: 1fr; }
.dash-mobile .dm-dd-inner a {
    display: flex; align-items: center; gap: 10px; color: #94a3b8;
    font-size: 14px; padding: 10px 12px 10px 24px; border-radius: 8px;
}
.dash-mobile .dm-dd-inner a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.dash-mobile .dm-dd-inner a i { width: 16px; color: #64748b; }
.dash-mobile .dm-lang {
    display: flex; align-items: center; gap: 10px; margin-top: 16px; color: #94a3b8; font-size: 14px;
}
.dash-mobile .dm-lang select {
    flex: 1; appearance: none; -webkit-appearance: none;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px; color: #fff; padding: 10px 12px; cursor: pointer;
    font-family: var(--heading-font); font-size: 13.5px; font-weight: 600;
}
.dash-mobile .dm-lang select option { background: #0f172a; color: #fff; }
.dash-mobile .dm-logout { width: 100%; margin-top: 14px; justify-content: center; height: 44px; }

@media (max-width: 1199px) {
    .dash-menu ul { gap: 0; }
    .dash-link { padding: 9px 9px; font-size: 13.5px; }
    .dash-left { gap: 16px; }
}
@media (max-width: 991px) {
    .dash-menu { display: none; }
    .dash-bar { display: flex; }
    .dash-nav { height: 62px; }
}

.dash-mobile .dm-link:hover { color: #FF7A1A; }
.dash-mobile .dm-link:hover i { color: #FF7A1A; }

.logout-modal { max-width: 380px; text-align: center; }
.logout-modal-icon {
    width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 18px;
    display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    box-shadow: 0 10px 30px rgba(239, 68, 68, .4);
}
.logout-actions { display: flex; gap: 12px; margin-top: 24px; }
.logout-actions button {
    flex: 1; height: 44px; border-radius: 11px; cursor: pointer;
    font-family: var(--heading-font); font-size: 14px; font-weight: 700; transition: all .25s ease;
}
.logout-cancel {
    background: transparent; color: #94a3b8; border: 1px solid rgba(255, 255, 255, .18);
}
.logout-cancel:hover { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); }
.logout-confirm {
    background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; border: 0;
    box-shadow: 0 6px 18px rgba(239, 68, 68, .35);
}
.logout-confirm:hover { filter: brightness(1.1); transform: translateY(-1px); }
.logout-confirm:active { transform: scale(.96); }

/* ===================== Buttons ===================== */
.cmn--btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--base); color: #fff;
    border: 1px solid rgba(255, 106, 0, 0.2); border-radius: 5px;
    padding: 14px 30px; font-family: var(--heading-font);
    font-size: 16px; font-weight: 500; line-height: 24px;
    text-transform: uppercase; position: relative; overflow: hidden;
    transition: all .3s ease;
}
.cmn--btn:hover { color: #fff; background: #e05e00; transform: translateY(-1px); box-shadow: 0 8px 25px rgba(255, 106, 0, .35); }
.cmn--btn--outline {
    background: transparent; border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: none;
}
.cmn--btn--outline:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.35); box-shadow: none; transform: none; }
.cmn--btn.w-100 { width: 100%; }
.cmn--btn:disabled { opacity: .5; pointer-events: none; }

/* ===================== Section primitives ===================== */
.section__category {
    display: inline-block; background: var(--base); color: #fff;
    font-family: var(--heading-font); font-size: 16px; font-weight: 500;
    padding: 3px 15px; border-radius: 5px; margin-bottom: 30px;
    text-transform: capitalize; position: relative; z-index: 1;
}
.section__category::before {
    content: ''; position: absolute; right: 0; top: calc(100% - 5px);
    width: 12px; height: 17px; background: var(--base);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
}
.section__header { max-width: 620px; margin: 0 0 40px; position: relative; z-index: 1; }
.section__header.text-center { margin-left: auto; margin-right: auto; text-align: center; }
.section__header .section__title { margin-bottom: 18px; }
.section__header.mb-low { margin-bottom: 45px; }
.section__header p { margin-bottom: 0; }
@media (min-width: 768px) { .section__header { margin-bottom: 60px; } }

.pt-60 { padding-top: 60px; }
.pb-50 { padding-bottom: 50px; }
.pt-80 { padding-top: 80px; }
.pb-80 { padding-bottom: 80px; }
.pt-120 { padding-top: 120px; }
.pb-120 { padding-bottom: 120px; }

/* ===================== Banner ===================== */
.banner-section {
    position: relative;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(255, 106, 0, .12), transparent 60%),
        rgba(15, 25, 50, 0.3);
}
.banner-inner {
    display: grid; grid-template-columns: 1fr 1fr;
    align-items: center;
}
.banner-content { padding: 200px 15px; }
.banner-content .banner-title {
    font-size: 70px; line-height: 80px; margin-bottom: 40px;
}
.banner-content .banner-title span { color: var(--base); }
.banner-txt { font-size: 24px; max-width: 540px; margin-bottom: 40px; }
.btn__grp { display: flex; flex-wrap: wrap; gap: 18px; }
.btn__grp .cmn--btn { padding: 18px 45px; }

.banner-thumb-bg {
    background: var(--section-bg);
    clip-path: polygon(40px 0%, 100% 0%, 100% 100%, 0% 100%);
    min-height: 560px;
    display: flex; align-items: flex-end; justify-content: center;
    padding: 100px 50px 0;
}
.banner-thumb img { max-width: 720px; width: 100%; }

@media (max-width: 1399px) {
    .banner-content { max-width: 572px; }
    .banner-thumb img { max-width: 640px; }
}
@media (max-width: 1199px) {
    .banner-content { max-width: 483px; }
    .banner-title { font-size: 60px; line-height: 70px; }
    .banner-thumb-bg { min-height: 460px; }
}
@media (max-width: 991px) {
    .banner-inner { grid-template-columns: 1fr; }
    .banner-content { padding: 180px 0 120px; max-width: 100%; }
    .banner-thumb-bg { clip-path: none; min-height: 0; padding: 30px 0 0; }
    .banner-thumb img { max-width: 520px; }
}
@media (max-width: 575px) {
    .banner-content { padding: 120px 0 80px; }
    .banner-title { font-size: 50px; line-height: 55px; }
    .banner-txt { font-size: 20px; }
    .btn__grp .cmn--btn { padding: 14px 30px; }
}

/* ===================== Why choose ===================== */
.why-choose-section .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.why-choose-section .col-lg-5 { flex: 0 0 auto; width: calc(41.666% - 20px); }
.why-choose-section .col-lg-7 { flex: 0 0 auto; width: calc(58.333% - 20px); }
@media (max-width: 991px) {
    .why-choose-section .col-lg-5,
    .why-choose-section .col-lg-7 { width: 100%; }
}

.choose-wrapper .row { display: flex; flex-wrap: wrap; gap: 30px; }
.choose-wrapper .col-sm-6 { flex: 0 0 auto; width: calc(50% - 15px); }
@media (max-width: 575px) { .choose-wrapper .col-sm-6 { width: 100%; } }

.choose__icon {
    width: 80px; height: 80px; line-height: 80px; text-align: center;
    font-size: 40px; color: var(--base);
    background: var(--section-bg); border: 1px solid var(--border);
    border-radius: 5px; margin-bottom: 30px;
    transition: all .3s ease;
}
.choose__item:hover .choose__icon { background: var(--base); color: #fff; border-color: var(--base); }
.choose__title { font-size: 26px; font-weight: 500; margin-bottom: 18px; color: #fff; }
.choose__content p { margin-bottom: 0; }
@media (max-width: 575px) { .choose__title { font-size: 22px; } }

/* ===================== About ===================== */
.about-section { overflow: hidden; }
.about-section .row {
    display: flex; flex-wrap: wrap; justify-content: space-between;
    align-items: center; gap: 30px;
}
.about-section .col-lg-7 { flex: 0 0 auto; width: calc(58.333% - 15px); }
.about-section .col-lg-5 { flex: 0 0 auto; width: calc(41.666% - 15px); }
@media (max-width: 991px) {
    .about-section .col-lg-7,
    .about-section .col-lg-5 { width: 100%; }
}
.about-thumb { direction: rtl; }
.about-thumb img { max-width: 920px; width: 100%; }
@media (max-width: 991px) { .about-thumb { direction: ltr; text-align: center; } }

/* ===================== How it works ===================== */
.how-section .row { display: flex; flex-wrap: wrap; justify-content: center; }
.how-section .col-lg-4 { flex: 0 0 auto; width: 33.333%; }
.how-section .col-lg-7 { flex: 0 0 auto; width: 100%; max-width: 720px; }
@media (max-width: 991px) {
    .how-section .col-lg-4 { width: 50%; margin-bottom: 40px; }
}
@media (max-width: 575px) { .how-section .col-lg-4 { width: 100%; } }

.how__item { text-align: center; padding: 0 30px; position: relative; }
.how__thumb {
    width: 100px; height: 100px; line-height: 94px;
    border: 3px solid var(--base); border-top: none; border-right: none;
    border-radius: 50%; background: #fff;
    transform: rotate(45deg);
    margin: 0 auto 20px; font-size: 30px; color: var(--base);
    display: flex; align-items: center; justify-content: center;
    transition: all .3s ease;
}
.how__item:hover .how__thumb { background: var(--base); color: #fff; transform: rotate(45deg) scale(1.05); }
.how__thumb i { transform: rotate(-45deg); }
.how__content .title { font-size: 22px; font-weight: 500; color: #fff; }
.shape-bg {
    position: absolute; left: 100%; top: 33px; transform: translateX(-50%);
    width: 100%; height: 25px; background-repeat: no-repeat;
    background-position: center; background-size: contain; pointer-events: none;
}
@media (max-width: 991px) { .shape-bg { display: none; } }

/* ===================== Counter ===================== */
.counter-section .row { display: flex; flex-wrap: wrap; }
.counter-section .col-sm-6 { flex: 0 0 auto; width: 50%; }
.counter-section .col-lg-3 { width: 100%; }
@media (min-width: 576px) { .counter-section .col-lg-3 { width: 50%; } }
@media (min-width: 992px) { .counter-section .col-lg-3 { width: 25%; } }

.counter__item {
    background: var(--section-bg); border: 1px solid var(--border);
    border-radius: 5px; padding: 40px 20px; position: relative; overflow: hidden;
    transition: border-color .3s ease;
}
.counter__item:hover { border-color: rgba(255, 106, 0, .5); }
.bg--section .counter__item { background: var(--body-bg); }
.counter__header .title {
    font-family: var(--heading-font); font-size: 48px; font-weight: 600;
    color: var(--base); line-height: 1.1; margin-bottom: 8px;
}
.counter__content { color: #fff; font-family: var(--heading-font); font-size: 18px; font-weight: 500; }
.counter__item .icon {
    position: absolute; right: 20px; bottom: 20px; font-size: 50px;
    color: #fff; opacity: .2; transition: all .4s ease;
}
.counter__item:hover .icon { opacity: .4; transform: scale(1.8); transform-origin: bottom right; }

/* ===================== Footer ===================== */
.footer-top {
    border-bottom: 1px solid var(--border);
    padding: 80px 0 16px; text-align: center;
}
.footer-logo { margin-bottom: 30px; }
.footer-logo img { max-width: 250px; margin: 0 auto; display: block; }
.footer__txt { max-width: 620px; margin: 0 auto; padding: 20px 0 60px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; }
.footer-links li { position: relative; padding: 0 10px; }
.footer-links li:not(:last-child)::after {
    content: '|'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    color: var(--base); font-size: 12px;
}
.footer-links a { color: #fff; font-family: var(--heading-font); font-size: 16px; padding: 5px 0; }
.footer-links a:hover { color: var(--base); }
.footer-bottom {
    display: flex; flex-wrap: wrap-reverse; justify-content: space-between;
    align-items: center; gap: 10px; padding: 16px 0;
    font-size: 14px; color: var(--text-body);
}
.footer-bottom a:hover span { color: var(--base); }

/* ===================== Account (login / register) ===================== */
.account-section {
    position: relative; min-height: calc(100vh - 110px);
    display: flex; align-items: center; padding: 80px 0;
}
.account-grid {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 2fr 3fr;
    max-width: 1000px; margin: 0 auto;
    background: var(--body-bg);
    border: 1px dashed rgba(255, 106, 0, 0.3);
    border-radius: 5px; overflow: hidden;
}
.account-left {
    background: var(--section-bg); padding: 50px 30px;
    display: flex; flex-direction: column; justify-content: center;
    text-align: center; gap: 18px;
}
.account-left img { max-width: 230px; margin: 0 auto 10px; }
.account-left .al-title { font-size: 30px; line-height: 1.3; }
.account-left p { margin-bottom: 10px; }
.account-left .al-link { color: #fff; font-family: var(--heading-font); font-size: 16px; }
.account-left .al-link span { color: var(--base); font-weight: 600; }
.account-left .al-link:hover span { text-decoration: underline; }
.account-right { padding: 50px; }
.account__wrapper { max-width: 920px; }

@media (max-width: 1199px) {
    .account-grid { grid-template-columns: 1fr; }
    .account-left { order: 2; }
    .account-right { order: 1; }
}
@media (max-width: 575px) {
    .account-section { padding: 50px 0; }
    .account-left { padding: 40px 20px; }
    .account-right { padding: 30px 20px; }
}

/* ===================== Forms ===================== */
.form--group { margin-bottom: 20px; }
.form--label {
    display: block; font-family: var(--heading-font); color: #fff;
    font-size: 16px; font-weight: 500; text-transform: capitalize;
    margin-bottom: 8px;
}
.form--label i { color: var(--base); margin-right: 6px; }
.form--control {
    width: 100%; height: 50px;
    background: var(--section-bg); border: 1px solid var(--border);
    border-radius: 5px; padding: 12px 16px;
    color: #fff; font-family: var(--body-font); font-size: 16px;
    outline: none; transition: border-color .3s ease, box-shadow .3s ease;
}
.form--control:focus { border-color: var(--base); box-shadow: 0 0 0 3px rgba(255, 106, 0, .12); }
.form--control::placeholder { color: rgba(255, 255, 255, .55); }
textarea.form--control { height: auto; min-height: 120px; resize: vertical; }
input[type="number"].form--control { appearance: textfield; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 575px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

.field-wrap { position: relative; }
.field-wrap .toggle-eye {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    background: transparent; border: 0; color: #93b4ca; font-size: 16px;
    padding: 4px; transition: color .3s;
}
.field-wrap .toggle-eye:hover { color: #fff; }

.form-check-row {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px; margin: 4px 0 24px;
}
.form--check { display: flex; align-items: center; gap: 9px; cursor: pointer; color: #93b4ca; font-size: 14px; }
.form--check input { width: 18px; height: 18px; accent-color: var(--base); cursor: pointer; }
.form--check:hover { color: #fff; }
.forgot-link { color: var(--base); font-size: 14px; font-weight: 500; }
.forgot-link:hover { color: #e05e00; }

.username-hint { font-size: 12px; margin-top: 6px; color: #93b4ca; min-height: 16px; }
.strength-bar { height: 6px; background: rgba(255, 255, 255, .1); border-radius: 5px; margin-top: 8px; overflow: hidden; }
.strength-bar #strength-fill { height: 100%; width: 0; background: var(--error); border-radius: 5px; transition: all .3s ease; }
#strength-label { font-size: 12px; margin-top: 6px; color: #93b4ca; min-height: 16px; }

/* ===================== Generic cards ===================== */
.custom--card {
    background: var(--section-bg); border: 1px solid var(--border);
    border-radius: 5px; overflow: hidden;
}
.custom--card__header {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px 24px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.custom--card__header h3 { margin: 0; font-size: 22px; }
.custom--card__header h4 { margin: 0; font-size: 20px; }
.custom--card__header i { color: var(--base); margin-right: 10px; }
.custom--card__body { padding: 24px; }
.card-title { display: flex; align-items: center; font-size: 22px; }
.card-title i { color: var(--base); margin-right: 12px; }

/* ===================== Auth card (modal inner + legacy) ===================== */
.auth-card {
    background: var(--section-bg); border: 1px solid var(--border);
    border-radius: 5px; padding: 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .5);
}

/* ===================== Stats ===================== */
.stat-card {
    background: var(--section-bg); border: 1px solid var(--border);
    border-radius: 5px; padding: 20px;
    display: flex; align-items: center; gap: 16px;
    transition: border-color .3s ease, transform .3s ease;
}
.stat-card:hover { border-color: rgba(255, 106, 0, .5); transform: translateY(-3px); }
.stat-card__icon {
    width: 56px; height: 56px; flex-shrink: 0; border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    background: var(--base-soft); border: 1px solid rgba(255, 106, 0, .3);
    color: var(--base); font-size: 22px;
}
.stat-card__icon.amber { background: rgba(255, 159, 67, .12); border-color: rgba(255, 159, 67, .35); color: var(--warning); }
.stat-card__icon.green { background: rgba(40, 199, 111, .12); border-color: rgba(40, 199, 111, .35); color: var(--success); }
.stat-card__icon.red { background: rgba(235, 34, 34, .12); border-color: rgba(235, 34, 34, .35); color: var(--error); }
.stat-card__num { font-family: var(--heading-font); font-weight: 600; font-size: 26px; color: #fff; line-height: 1.1; }
.stat-card__label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #93b4ca; margin-top: 4px; }

/* ===================== Tabs / ghost buttons ===================== */
.tab-btn {
    padding: 7px 16px; border-radius: 5px; color: #93b4ca; cursor: pointer;
    background: transparent; border: 1px solid var(--border);
    font-family: var(--heading-font); font-size: 13px; font-weight: 500;
    transition: all .2s ease;
}
.tab-btn:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
.tab-btn.active { background: var(--base); color: #fff; border-color: var(--base); }

.btn-ghost {
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
    color: #e2e8f0; font-weight: 500; font-size: 13px; padding: 9px 14px;
    border-radius: 5px; font-family: var(--heading-font);
    transition: all .2s ease;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-ghost.cursor-pointer { cursor: pointer; }

/* ===================== Badges ===================== */
.badge {
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .04em; padding: 4px 12px; border-radius: 5px;
    white-space: nowrap; display: inline-flex; align-items: center; gap: 5px;
    font-family: var(--heading-font);
}
.badge.pending { background: rgba(255, 159, 67, .14); color: var(--warning); border: 1px solid rgba(255, 159, 67, .35); }
.badge.approved { background: rgba(40, 199, 111, .14); color: var(--success); border: 1px solid rgba(40, 199, 111, .35); }
.badge.rejected { background: rgba(235, 34, 34, .14); color: var(--error); border: 1px solid rgba(235, 34, 34, .35); }

/* ===================== Application rows (admin) ===================== */
.app-row {
    padding: 18px 24px; display: flex; gap: 16px; align-items: center;
    flex-wrap: wrap; transition: background .2s ease;
    border-bottom: 1px solid var(--border);
}
.app-row:last-child { border-bottom: 0; }
.app-row:hover { background: rgba(255, 255, 255, 0.03); }
.app-avatar {
    width: 48px; height: 48px; border-radius: 5px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--base), #ff9f43);
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; color: #fff; font-family: var(--heading-font);
    box-shadow: 0 6px 18px rgba(255, 106, 0, .25);
}

/* ===================== Users Management ===================== */
.users-toolbar {
    display: flex; gap: 10px; align-items: center;
    flex-wrap: wrap; padding: 14px 24px;
    border-bottom: 1px solid var(--border);
}
.users-f-select {
    height: 38px; width: 170px; font-size: 13px;
    cursor: pointer; background: rgba(2, 6, 23, .6);
}
.users-table { min-width: 1180px; }
.users-table td { vertical-align: middle; }
.users-row:hover { background: rgba(255, 255, 255, 0.03); }

.badge.account-active {
    background: rgba(40, 199, 111, .14); color: var(--success);
    border: 1px solid rgba(40, 199, 111, .35);
}
.badge.account-suspended,
.badge.account-payment-rejected {
    background: rgba(235, 34, 34, .14); color: var(--error);
    border: 1px solid rgba(235, 34, 34, .35);
}
.badge.account-expired {
    background: rgba(148, 163, 184, .14); color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, .35);
}
.badge.account-email-verification-required,
.badge.account-payment-required {
    background: rgba(255, 159, 67, .14); color: var(--warning);
    border: 1px solid rgba(255, 159, 67, .35);
}
.badge.account-payment-pending-approval {
    background: rgba(56, 132, 255, .14); color: #60a5fa;
    border: 1px solid rgba(56, 132, 255, .35);
}

.users-pager {
    display: flex; gap: 6px; justify-content: center;
    flex-wrap: wrap; padding: 16px 24px;
    border-top: 1px solid var(--border);
}
.users-pager button {
    min-width: 32px; height: 32px; padding: 0 8px;
    border: 1px solid var(--border); border-radius: 5px;
    background: rgba(2, 6, 23, .6); color: #cbd5e1;
    font-size: 12.5px; cursor: pointer; transition: all .2s ease;
}
.users-pager button:hover:not(:disabled) { border-color: var(--base); color: var(--base); }
.users-pager button.active { background: var(--base); border-color: var(--base); color: #fff; }
.users-pager button:disabled { opacity: .4; cursor: not-allowed; }

.users-profile-modal { max-width: 860px; max-height: 88vh; overflow-y: auto; }
.users-sec-title {
    display: flex; align-items: center; gap: 8px;
    margin: 18px 0 10px; padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    font-family: var(--heading-font); font-size: 13.5px; font-weight: 600;
    color: #e2e8f0;
}
.users-sec-title i { color: var(--base); }
.users-info-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 10px 22px;
}
.users-info-grid > div {
    display: flex; flex-direction: column; gap: 2px;
    font-size: 12.5px; min-width: 0;
}
.users-info-grid span { color: #7d94a8; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; }
.users-info-grid b { color: #e2e8f0; font-weight: 500; word-break: break-word; }

.users-activity {
    display: flex; flex-direction: column; gap: 6px;
    background: rgba(2, 6, 23, .4); border: 1px solid var(--border);
    border-radius: 8px; padding: 12px 14px;
}
.users-activity-item {
    display: flex; align-items: center; gap: 10px;
    font-size: 12.5px; color: #cbd5e1;
}
.users-activity-item i { color: var(--base); width: 16px; text-align: center; }
.users-activity-item time { color: #7d94a8; font-size: 11px; white-space: nowrap; }

.users-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.ph-row {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 14px; border-bottom: 1px solid var(--border);
}
.ph-row:last-child { border-bottom: 0; }
.ph-row:hover { background: rgba(255, 255, 255, 0.03); }
.ph-main { flex: 1; min-width: 0; }

@media (max-width: 640px) {
    .users-info-grid { grid-template-columns: 1fr; }
    .users-f-select { width: 100%; }
    .users-toolbar { padding: 12px 16px; }
    #users-search { width: 100% !important; }
    .ph-row { flex-wrap: wrap; }
}

/* ===================== Spinner / skeleton ===================== */
.spinner {
    display: inline-block; width: 18px; height: 18px;
    border: 2.5px solid rgba(255, 255, 255, .3); border-top-color: #fff;
    border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, .06) 25%, rgba(255, 255, 255, .12) 37%, rgba(255, 255, 255, .06) 63%);
    background-size: 400% 100%; animation: shimmer 1.4s ease infinite;
    border-radius: 5px;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ===================== Drop zone (payment upload) ===================== */
.drop-zone {
    border: 2px dashed rgba(255, 255, 255, .2); border-radius: 5px; padding: 32px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    cursor: pointer; transition: all .2s ease;
}
.drop-zone:hover, .drop-zone.drag { border-color: var(--success); background: rgba(40, 199, 111, .06); }
.drop-zone i { color: #93b4ca; }
.drop-zone:hover i { color: var(--success); }

.upload-preview {
    display: flex; align-items: center; gap: 16px;
    margin-top: 18px; padding: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border); border-radius: 5px;
}
.upload-preview img {
    width: 96px; height: 96px; border-radius: 5px;
    object-fit: cover; border: 1px solid var(--border); flex-shrink: 0;
}

/* ===================== Buttons (.btn system, russainmarkets.shop style) ===================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; font-size: 14px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .5px; border-radius: 8px; transition: all .3s ease;
    cursor: pointer; border: none; white-space: nowrap;
    font-family: var(--heading-font);
}
.btn-primary { background: linear-gradient(135deg, #FF6B00 0%, #FF8533 100%); color: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .3); }
.btn-primary:hover { background: linear-gradient(135deg, #E55D00 0%, #FF6B00 100%); transform: translateY(-2px); box-shadow: 0 0 20px rgba(255, 107, 0, .3); }
.btn-secondary { background: #1B2838; color: #fff; border: 1px solid rgba(148, 163, 184, .12); }
.btn-secondary:hover { background: #0D1B2A; border-color: var(--base); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ===================== Dashboard (russainmarkets.shop style) ===================== */
.dash-head { margin-bottom: 28px; }
.dash-head__sub { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--base); margin-bottom: 8px; }
.dash-head__title { font-size: 40px; margin-bottom: 8px; }
.dash-head__status { color: #93b4ca; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.dash-head__status i { color: var(--success); }

.dash-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; margin-bottom: 24px; align-items: stretch; }
.dash-side { display: grid; gap: 24px; align-content: start; }
@media (max-width: 767px) { .dash-grid { grid-template-columns: 1fr; } }

.balance-card {
    position: relative; overflow: hidden;
    background: linear-gradient(145deg, #1b2838 0%, #0d1b2a 100%);
    border: 1px solid rgba(255, 107, 0, .3); border-radius: 12px;
    padding: 30px 32px; display: flex; flex-direction: column; justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
.balance-card::after {
    content: ''; position: absolute; right: -70px; top: -70px;
    width: 240px; height: 240px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 0, .22), transparent 70%);
}
.balance-card__label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #94a3b8; margin-bottom: 10px; }
.balance-card__value { font-size: 52px; font-weight: 800; color: #fff; line-height: 1.1; letter-spacing: -1px; margin-bottom: 10px; }
.balance-card__note { font-size: 13px; color: #94a3b8; }
.balance-card .btn { align-self: flex-start; }

.info-card {
    background: rgba(27, 40, 56, .8); border: 1px solid rgba(148, 163, 184, .12);
    border-radius: 12px; padding: 18px 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.info-card .ic-label { font-size: 13px; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; }
.info-card .ic-value { font-family: var(--heading-font); font-weight: 500; color: #fff; font-size: 16px; word-break: break-word; text-align: right; }

.qa-section { margin-bottom: 28px; }
.qa-section__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.qa-section__head h3 { margin: 0; font-size: 24px; }
.qa-section__hint { font-size: 13px; color: #94a3b8; }
.qa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.qa-card {
    display: block; padding: 26px 22px; text-align: center;
    background: rgba(27, 40, 56, .8); border: 1px solid rgba(148, 163, 184, .12);
    border-radius: 12px; transition: all .3s ease;
}
.qa-card:hover { border-color: rgba(255, 107, 0, .5); transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0, 0, 0, .4); }
.qa-card__icon {
    width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 12px;
    background: linear-gradient(135deg, #ff6b00 0%, #ff8533 100%);
    color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(255, 107, 0, .35);
}
.qa-card__title { font-size: 17px; margin-bottom: 6px; }
.qa-card__desc { font-size: 13px; color: #94a3b8; margin: 0; }
@media (max-width: 767px) { .qa-grid { grid-template-columns: 1fr; } }

.activity-row {
    padding: 16px 24px; display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap; border-bottom: 1px solid var(--border);
    transition: background .2s ease;
}
.activity-row:last-child { border-bottom: 0; }
.activity-row:hover { background: rgba(255, 255, 255, 0.03); }
.activity-icon {
    width: 42px; height: 42px; border-radius: 5px; flex-shrink: 0;
    background: var(--base-soft); color: var(--base);
    display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.activity-meta .am-title { font-family: var(--heading-font); font-weight: 500; color: #fff; font-size: 15px; }
.activity-meta .am-sub { font-size: 12px; color: #93b4ca; margin-top: 2px; }
.activity-right { display: flex; align-items: center; gap: 14px; }
.activity-amount { font-family: var(--heading-font); font-weight: 600; color: #fff; }

.empty-state { padding: 64px 24px; text-align: center; }
.empty-state .es-icon {
    width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 5px;
    background: rgba(255, 255, 255, .05); display: flex; align-items: center;
    justify-content: center; color: #5a6d8a; font-size: 26px;
}
.empty-state h4 { color: #d7e3f1; }
.empty-state p { color: #93b4ca; font-size: 14px; }

/* ===================== Payment page ===================== */
.pay-hero { text-align: center; margin-bottom: 40px; }
.pay-hero .pay-hero-icon {
    width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 5px;
    background: var(--base); color: #fff; font-size: 26px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 30px rgba(255, 106, 0, .35);
}
.pay-hero h2 { font-size: 38px; margin-bottom: 8px; }
.pay-hero p { max-width: 520px; margin: 0 auto; }

.pay-step { margin-bottom: 24px; }
.pay-step__head {
    display: flex; align-items: center; gap: 14px;
    background: rgba(255, 255, 255, 0.05);
    padding: 18px 24px; border-bottom: 1px solid var(--border);
}
.pay-step__head h4 { margin: 0; font-size: 20px; }
.pay-step__num {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, #FF6B00 0%, #FF8533 100%);
    color: #fff; font-weight: 700; font-size: 15px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 107, 0, .35);
    font-family: var(--heading-font);
}
.pay-step__body { padding: 24px; }
.pay-step__body .pay-grid { margin-bottom: 0; }

.method-card {
    display: flex; align-items: center; gap: 18px;
    background: rgba(27, 40, 56, .8); border: 1px solid rgba(148, 163, 184, .12);
    border-radius: 12px; padding: 20px 24px; cursor: pointer;
    transition: all .3s ease;
}
.method-card.active { border-color: rgba(255, 107, 0, .55); background: rgba(255, 107, 0, .07); }
.method-card:hover { border-color: rgba(255, 107, 0, .55); }
.method-card__icon {
    width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(135deg, #26a17b 0%, #2ed8a3 100%);
    color: #fff; font-size: 24px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(38, 161, 123, .35);
}
.method-card__title { font-family: var(--heading-font); font-weight: 600; color: #fff; font-size: 17px; margin-bottom: 4px; }
.method-card__desc { font-size: 13px; color: #94a3b8; margin: 0; }
.method-card__check { margin-left: auto; color: var(--success); font-size: 22px; }

.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
@media (max-width: 767px) { .pay-grid { grid-template-columns: 1fr; } }
.pay-side { display: flex; flex-direction: column; gap: 24px; }

.qr-card { padding: 32px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.qr-frame {
    background: #fff; padding: 12px; border-radius: 5px;
    width: 220px; height: 220px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .35);
}
.qr-frame img { width: 100%; height: 100%; object-fit: contain; }
#qr-skeleton { width: 220px; height: 220px; }
.pay-amount {
    margin-top: 18px; font-family: var(--heading-font); font-weight: 500;
    color: #fff; font-size: 18px;
}
.pay-amount strong { color: var(--base); }
.info-panel h5 { font-size: 18px; margin-bottom: 12px; color: #fff; }
.info-panel h5 i { margin-right: 8px; }
.info-panel h5.amber { color: var(--warning); }
.info-panel h5.orange { color: var(--base); }
.info-panel p { font-size: 14px; margin-bottom: 0; }
.order-chip {
    font-family: var(--heading-font); color: var(--base); font-size: 15px;
    background: rgba(255, 106, 0, .1); border: 1px dashed rgba(255, 106, 0, .4);
    border-radius: 5px; padding: 8px 14px; display: inline-block; word-break: break-all;
}

.status-panel { padding: 48px 24px; text-align: center; }
#payment-already { text-align: center; padding: 48px 24px; }
#payment-already a { color: var(--success); text-decoration: underline; font-weight: 600; }
.status-panel .sp-icon { font-size: 40px; margin-bottom: 14px; }
.status-panel h3 { font-size: 26px; margin-bottom: 8px; }
.status-panel p { max-width: 460px; margin: 0 auto 18px; }
.status-panel .sp-green { color: var(--success); }
.status-panel .sp-red { color: var(--error); }
.status-panel .sp-amber { color: var(--warning); }

/* Account-status banner (strict payment-flow state machine) */
.status-banner {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 18px 20px; border-radius: 12px; margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03);
}
.status-banner__icon {
    width: 42px; height: 42px; min-width: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.status-banner h4 { font-size: 16px; margin: 0 0 4px; color: #fff; font-family: var(--heading-font); }
.status-banner p { margin: 0; font-size: 13px; line-height: 1.55; color: #94a3b8; }
.status-banner.is-warning { border-color: rgba(245, 158, 11, .35); background: rgba(245, 158, 11, .08); }
.status-banner.is-warning .status-banner__icon { background: rgba(245, 158, 11, .15); color: #fbbf24; }
.status-banner.is-danger { border-color: rgba(244, 63, 94, .35); background: rgba(244, 63, 94, .08); }
.status-banner.is-danger .status-banner__icon { background: rgba(244, 63, 94, .15); color: #fb7185; }
.status-banner.is-success { border-color: rgba(16, 185, 129, .35); background: rgba(16, 185, 129, .08); }
.status-banner.is-success .status-banner__icon { background: rgba(16, 185, 129, .15); color: #34d399; }

/* ===================== Generic dashboard pages ===================== */
.generic-section { padding: 70px 0 100px; }
.generic-head { text-align: center; margin-bottom: 38px; }
.generic-icon {
    width: 64px; height: 64px; margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center; font-size: 24px;
    color: #FF7A1A; background: linear-gradient(135deg, rgba(255, 122, 26, .18), rgba(255, 122, 26, .05));
    border: 1px solid rgba(255, 122, 26, .3); border-radius: 18px;
    box-shadow: 0 10px 30px rgba(255, 122, 26, .18);
}
.generic-title {
    font-family: var(--heading-font); font-size: clamp(26px, 4vw, 36px);
    font-weight: 700; color: #fff; margin: 0 0 10px;
}
.generic-sub { color: #93b4ca; font-size: 15.5px; margin: 0; }
.generic-card {
    background: linear-gradient(160deg, rgba(21, 35, 64, .7), rgba(9, 16, 34, .85));
    border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 26px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}
.generic-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; padding: 15px 4px; border-bottom: 1px solid rgba(255, 255, 255, .06); flex-wrap: wrap;
}
.generic-row:last-child { border-bottom: 0; }
.generic-empty { text-align: center; padding: 46px 20px; color: #94a3b8; }
.generic-empty i { font-size: 40px; color: #475569; display: block; margin-bottom: 14px; }
.generic-empty h4 { color: #e2e8f0; font-family: var(--heading-font); margin: 0 0 6px; font-size: 18px; }
.generic-faq { padding: 18px 22px; }
.generic-faq h4 {
    color: #fff; font-family: var(--heading-font); font-size: 15.5px;
    margin: 0 0 6px; display: flex; gap: 10px; align-items: flex-start;
}
.generic-faq h4 i { color: #FF7A1A; margin-top: 2px; }
.generic-faq p { color: #94a3b8; font-size: 14px; line-height: 1.65; margin: 0 0 18px; }
.method-card {
    display: flex; align-items: center; gap: 14px; padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; margin-bottom: 12px;
    background: rgba(255, 255, 255, .03);
}
.method-card i {
    font-size: 22px; color: var(--base); width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center; border-radius: 10px;
    background: rgba(255, 107, 0, .12);
}
.method-card .mc-name { color: #fff; font-family: var(--heading-font); font-weight: 600; font-size: 15px; }
.method-card .mc-desc { color: #64748b; font-size: 13px; }

.member-card {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #FF7A1A, #c2410c);
    border-radius: 20px; padding: 26px; color: #fff;
    box-shadow: 0 24px 55px rgba(255, 122, 26, .35);
}
.member-card::before {
    content: ''; position: absolute; right: -10px; bottom: -90px; width: 180px; height: 180px;
    border-radius: 50%; background: rgba(0, 0, 0, .12);
}
.member-card::after {
    content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px;
    border-radius: 50%; background: rgba(255, 255, 255, .12);
}
.member-card__top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.member-card__brand { font-family: var(--heading-font); font-weight: 700; font-size: 15px; letter-spacing: .5px; }
.member-card__num {
    font-family: var(--heading-font); font-size: 22px; font-weight: 700; letter-spacing: 2.5px;
    margin: 26px 0 22px; position: relative; z-index: 1;
}
.member-card__row { display: flex; gap: 40px; position: relative; z-index: 1; }
.member-card__label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; opacity: .8; margin-bottom: 4px; }
.member-card__val { font-family: var(--heading-font); font-weight: 600; font-size: 15px; }

/* ===================== Cards page ===================== */
.shop-section { padding: 70px 0 110px; }
.shop-wrap { max-width: 1180px; }

.shop-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    margin-bottom: 26px;
    background: rgba(21, 35, 64, .55); border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 16px; padding: 14px 16px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.shop-search { position: relative; flex: 1; min-width: 220px; }
.shop-search i {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    color: #64748b; font-size: 13px; pointer-events: none;
}
.shop-search input {
    width: 100%; height: 42px; padding: 0 14px 0 38px;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: 11px;
    color: #e2e8f0; font-size: 14px; font-family: var(--heading-font);
    transition: border-color .25s ease, box-shadow .25s ease;
}
.shop-search input:focus { outline: none; border-color: rgba(255, 122, 26, .55); box-shadow: 0 0 0 3px rgba(255, 122, 26, .15); }
.shop-search input::placeholder { color: #64748b; }
.shop-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.shop-filters select {
    height: 42px; padding: 0 34px 0 14px; appearance: none; -webkit-appearance: none;
    background: rgba(255, 255, 255, .05) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364748b' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 13px center;
    border: 1px solid rgba(255, 255, 255, .12); border-radius: 11px; color: #e2e8f0;
    font-size: 13.5px; font-family: var(--heading-font); font-weight: 600; cursor: pointer;
    transition: border-color .25s ease;
}
.shop-filters select:focus { outline: none; border-color: rgba(255, 122, 26, .55); }
.shop-filters select option { background: #0f172a; color: #e2e8f0; }

.shop-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 22px;
    min-height: 120px;
}
.shop-card {
    background: linear-gradient(160deg, rgba(21, 35, 64, .72), rgba(9, 16, 34, .88));
    border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; overflow: hidden;
    box-shadow: 0 22px 55px rgba(0, 0, 0, .35);
    display: flex; flex-direction: column;
    opacity: 0; transform: translateY(14px);
    transition: opacity .5s ease, transform .5s ease, border-color .3s ease, box-shadow .3s ease;
}
.shop-card.in { opacity: 1; transform: translateY(0); }
.shop-card:hover { border-color: rgba(255, 122, 26, .45); box-shadow: 0 26px 65px rgba(0, 0, 0, .5); }

.shop-art {
    position: relative; height: 150px; padding: 16px; overflow: hidden; color: #fff;
    display: flex; flex-direction: column; justify-content: space-between;
}
.shop-art::after {
    content: ''; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px;
    border-radius: 50%; background: rgba(255, 255, 255, .1);
}
.shop-art.tier-standard { background: linear-gradient(135deg, #3b4a6b, #1c2a44); }
.shop-art.tier-premium { background: linear-gradient(135deg, #b4690e, #7c2d12); }
.shop-art.tier-limited { background: linear-gradient(135deg, #312e81, #0f172a); }
.shop-art-chip { align-self: flex-start; font-size: 15px; color: #fff; position: relative; z-index: 1; }
.shop-art-name {
    font-family: var(--heading-font); font-weight: 700; font-size: 15px; letter-spacing: .3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .35); position: relative; z-index: 1;
}
.shop-art-brand { font-size: 10px; text-transform: uppercase; letter-spacing: 2.5px; opacity: .75; position: relative; z-index: 1; }
.shop-badge {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
    padding: 4px 9px; border-radius: 999px; color: #fff;
}
.shop-badge.badge-new { background: #10b981; }
.shop-badge.badge-popular { background: #FF7A1A; }
.shop-badge.badge-limited { background: #ef4444; }

.shop-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.shop-card-name { color: #fff; font-family: var(--heading-font); font-size: 17px; font-weight: 700; margin: 0; }
.shop-card-desc { color: #93b4ca; font-size: 13.5px; line-height: 1.55; margin: 0; flex: 1; }
.shop-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.shop-price { color: #FF7A1A; font-family: var(--heading-font); font-weight: 800; font-size: 20px; }
.shop-buy {
    display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border: 0; border-radius: 10px; cursor: pointer;
    background: linear-gradient(135deg, #FF7A1A, #e2500a); color: #fff;
    font-family: var(--heading-font); font-size: 13.5px; font-weight: 700;
    box-shadow: 0 6px 18px rgba(255, 122, 26, .35); transition: all .25s ease;
}
.shop-buy:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(255, 122, 26, .5); filter: brightness(1.07); }
.shop-buy:active { transform: scale(.95); }
.shop-card-btns { display: flex; align-items: center; gap: 8px; }
.shop-details {
    display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
    border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; cursor: pointer;
    background: rgba(255, 255, 255, .04); color: #93b4ca;
    transition: all .25s ease;
}
.shop-details:hover { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .09); transform: translateY(-1px); }
.shop-details:active { transform: scale(.95); }

.shop-skel {
    min-height: 264px; opacity: 1; transform: none; border: 1px solid rgba(255, 255, 255, .06);
    background: linear-gradient(100deg, rgba(255, 255, 255, .045) 40%, rgba(255, 255, 255, .1) 50%, rgba(255, 255, 255, .045) 60%);
    background-size: 200% 100%; animation: shopShimmer 1.2s ease infinite;
}
@keyframes shopShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.shop-empty { text-align: center; padding: 64px 20px; }
.shop-empty i { font-size: 44px; color: #475569; display: block; margin-bottom: 16px; }
.shop-empty h4 { color: #e2e8f0; font-family: var(--heading-font); margin: 0 0 8px; font-size: 19px; }
.shop-empty p { color: #94a3b8; font-size: 14px; margin: 0 0 18px; }

.shop-error { text-align: center; padding: 64px 20px; }
.shop-error i { font-size: 44px; color: #fb7185; display: block; margin-bottom: 16px; }
.shop-error h4 { color: #e2e8f0; font-family: var(--heading-font); margin: 0 0 8px; font-size: 19px; }
.shop-error p { color: #94a3b8; font-size: 14px; margin: 0 0 18px; }

.shop-loading {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    padding: 28px 0 8px; color: #94a3b8; font-size: 14px; font-family: var(--heading-font);
}
.shop-spinner {
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid rgba(255, 122, 26, .25); border-top-color: #FF7A1A;
    animation: shopSpin .8s linear infinite;
}
@keyframes shopSpin { to { transform: rotate(360deg); } }

.shop-pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.shop-pager button {
    min-width: 40px; height: 40px; padding: 0 12px; border-radius: 11px; cursor: pointer;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); color: #94a3b8;
    font-family: var(--heading-font); font-size: 13.5px; font-weight: 600; transition: all .22s ease;
}
.shop-pager button:hover:not(:disabled) { color: #fff; border-color: rgba(255, 122, 26, .5); }
.shop-pager button.active { background: linear-gradient(135deg, #FF7A1A, #e2500a); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(255, 122, 26, .35); }
.shop-pager button:disabled { opacity: .35; cursor: default; }

/* Buy card modal */
.shop-buy-modal { max-width: 580px; text-align: left; }
.buy-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.buy-art {
    width: 96px; height: 64px; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(135deg, #FF7A1A, #e2500a); color: #fff; font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 26px rgba(255, 122, 26, .3);
}
.buy-head h3 { color: #fff; font-family: var(--heading-font); font-size: 20px; margin: 0 0 6px; }
.buy-price { color: #FF7A1A; font-family: var(--heading-font); font-weight: 800; font-size: 24px; margin: 0 0 4px; }
.buy-note { color: #94a3b8; font-size: 12.5px; margin: 0; line-height: 1.5; }

.buy-pay {
    background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px; padding: 16px; margin-bottom: 14px; text-align: center;
}
.buy-qr-box { display: inline-block; background: #fff; padding: 10px; border-radius: 12px; margin-bottom: 12px; }
.buy-qr-box img { width: 180px; height: 180px; object-fit: contain; display: block; border-radius: 8px; }
.buy-wallet-row { display: flex; gap: 8px; margin: 0 auto 10px; max-width: 440px; }
.buy-wallet-row input {
    flex: 1; min-width: 0; height: 42px; padding: 0 12px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; color: #e2e8f0;
    font-family: Consolas, monospace; font-size: 12.5px; letter-spacing: .3px;
}
.buy-copy {
    width: 42px; height: 42px; flex-shrink: 0; border: 1px solid rgba(255, 122, 26, .45); border-radius: 10px; cursor: pointer;
    background: rgba(255, 122, 26, .12); color: #FF7A1A; font-size: 15px; transition: all .25s ease;
}
.buy-copy:hover { background: rgba(255, 122, 26, .22); box-shadow: 0 0 14px rgba(255, 122, 26, .25); }
.buy-hint { color: #93b4ca; font-size: 12.5px; margin: 0; }
.buy-hint i { color: #FF7A1A; margin-right: 6px; }

.buy-pending {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; margin-bottom: 14px;
    background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .35);
    color: #fca5a5; font-size: 13px; font-weight: 500;
}

.buy-drop {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    min-height: 150px; border: 2px dashed rgba(255, 255, 255, .16); border-radius: 14px; cursor: pointer;
    background: rgba(255, 255, 255, .03); transition: all .25s ease; text-align: center; padding: 20px;
}
.buy-drop i { font-size: 30px; color: #FF7A1A; }
.buy-drop p { color: #fff; font-family: var(--heading-font); font-weight: 600; font-size: 14.5px; margin: 4px 0 0; }
.buy-drop span { color: #64748b; font-size: 12px; }
.buy-drop:hover, .buy-drop.drag { border-color: rgba(255, 122, 26, .6); background: rgba(255, 122, 26, .07); }

.buy-preview {
    display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px;
    background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); margin-top: 10px;
}
.buy-preview img { width: 74px; height: 74px; object-fit: cover; border-radius: 10px; }
.buy-preview-info { flex: 1; min-width: 0; }
.buy-preview-info p { color: #fff; font-size: 13.5px; font-weight: 600; margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buy-preview-info span { color: #64748b; font-size: 12px; }

.buy-submit {
    display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 48px; margin-top: 16px;
    border: 0; border-radius: 12px; cursor: pointer;
    background: linear-gradient(135deg, #FF7A1A, #e2500a); color: #fff;
    font-family: var(--heading-font); font-size: 15px; font-weight: 700;
    box-shadow: 0 8px 22px rgba(255, 122, 26, .35); transition: all .25s ease;
}
.buy-submit:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.buy-submit:disabled { opacity: .45; cursor: not-allowed; }

/* My Cards */
.mycards-list { display: grid; gap: 20px; }
.mycard {
    display: flex; align-items: stretch; gap: 18px; padding: 18px; border-radius: 18px; flex-wrap: wrap;
    background: linear-gradient(160deg, rgba(21, 35, 64, .7), rgba(9, 16, 34, .88));
    border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 22px 55px rgba(0, 0, 0, .35);
    cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease;
}
.mycard:hover { border-color: rgba(255, 122, 26, .45); }
.mycard.selected { border-color: var(--base); box-shadow: 0 0 0 1px var(--base) inset, 0 22px 55px rgba(0, 0, 0, .35); }
.mycard-art {
    width: 130px; height: 80px; border-radius: 12px; padding: 10px; flex-shrink: 0; overflow: hidden; position: relative;
    display: flex; flex-direction: column; justify-content: space-between; color: #fff;
}
.mycard-art::after {
    content: ''; position: absolute; right: -25px; top: -25px; width: 90px; height: 90px;
    border-radius: 50%; background: rgba(255, 255, 255, .1);
}
.mycard-art.tier-standard { background: linear-gradient(135deg, #3b4a6b, #1c2a44); }
.mycard-art.tier-premium { background: linear-gradient(135deg, #b4690e, #7c2d12); }
.mycard-art.tier-limited { background: linear-gradient(135deg, #312e81, #0f172a); }
.mycard-art small { font-size: 9px; text-transform: uppercase; letter-spacing: 2px; opacity: .8; position: relative; z-index: 1; }
.mycard-art strong { font-size: 12.5px; font-family: var(--heading-font); position: relative; z-index: 1; }
.mycard-info { flex: 1; min-width: 250px; display: grid; gap: 9px; align-content: center; }
.mycard-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; flex-wrap: wrap; }
.mycard-row span:first-child { color: #64748b; }
.mycard-row span:last-child { color: #e2e8f0; font-weight: 600; font-family: var(--heading-font); }
.mycard-num { font-family: Consolas, monospace; letter-spacing: 1.2px; color: #fff !important; font-size: 15px !important; }
.mycard-select { align-self: center; display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12.5px; color: var(--base); font-weight: 700; }
.mycard-status { align-self: center; }

/* My Cards purchase details panel (single panel for the selected card) */
.my-purchase-details { margin-top: 24px; }
.my-pd-empty {
    padding: 20px; text-align: center; color: #93b4ca; font-size: 13.5px;
    border: 1px dashed rgba(255, 255, 255, .15); border-radius: 14px; background: rgba(255, 255, 255, .02);
}
.my-pd-empty i { color: var(--base); margin-right: 6px; }
.my-pd-order { margin-top: 6px; border-top: 1px dashed rgba(255, 255, 255, .12); }

/* NEW badge — subtle premium pulse/glow (transform + glow only, infinite loop) */
@keyframes badgeGlow {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
    50% { transform: scale(1.07); box-shadow: 0 0 12px 2px rgba(16, 185, 129, .38); }
}
.shop-badge.badge-new { animation: badgeGlow 2.6s ease-in-out infinite; will-change: transform; }

/* Purchase details (single panel for the selected card) */
.purchase-details { flex: 1 1 100%; margin-top: 4px; padding-top: 14px; border-top: 1px dashed rgba(255, 255, 255, .12); }
.purchase-details__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.purchase-details__head h5 { margin: 0; font-size: 14px; color: #fff; font-family: var(--heading-font); }
.purchase-details__head h5 i { color: var(--base); margin-right: 6px; }
.purchase-details__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 16px; }
.purchase-details__grid div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.purchase-details__grid span { font-size: 10px; text-transform: uppercase; letter-spacing: .6px; color: #64748b; }
.purchase-details__grid b { font-size: 13px; color: #e2e8f0; font-weight: 600; word-break: break-all; }
.purchase-details__grid b.mono { font-family: Consolas, monospace; letter-spacing: .8px; }
.purchase-details__note { margin: 12px 0 0; font-size: 11.5px; color: #64748b; }
.purchase-details__note i { color: #fbbf24; margin-right: 5px; }

/* Card details modal (catalog information only) */
.card-details-modal { max-width: 480px; text-align: left; }
.card-details-price {
    display: inline-block; color: #FF7A1A; font-family: var(--heading-font); font-size: 26px; font-weight: 800;
    margin-bottom: 14px;
}
.card-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.card-details-grid .cd-item {
    display: flex; flex-direction: column; gap: 3px; min-width: 0;
    background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 10px; padding: 10px 12px;
}
.cd-label { font-size: 10px; text-transform: uppercase; letter-spacing: .6px; color: #64748b; }
.cd-value { font-size: 13.5px; color: #e2e8f0; font-weight: 600; word-break: break-all; }
@media (max-width: 420px) { .card-details-grid { grid-template-columns: 1fr; } }

/* Admin: pricing card management modal */
.pricing-modal { max-width: 640px; max-height: 90vh; overflow-y: auto; }
.pricing-form { display: flex; flex-direction: column; gap: 12px; }
.pf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pf-row .pf-wide { grid-column: 1 / -1; }
.pf-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pf-field label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #94a3b8; }
.pf-field input, .pf-field select {
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px; padding: 10px 12px; color: #fff; font-size: 14px; outline: none; width: 100%;
}
.pf-field input:focus, .pf-field select:focus { border-color: var(--base); }
.pf-field select option { background: #0f172a; color: #e2e8f0; }
.pf-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #e2e8f0; text-transform: none; letter-spacing: 0; cursor: pointer; margin-top: 22px; }
.pf-check input { width: auto; }
.pf-divider {
    font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: #93b4ca;
    border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 12px;
}
#pc-error { margin: 0; }
@media (max-width: 520px) { .pf-row { grid-template-columns: 1fr; } }

/* Admin card table */
.table-scroll { overflow-x: auto; }
.admin-cards-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 880px; }
.admin-cards-table th {
    background: rgba(255, 255, 255, .04); color: #93b4ca; text-align: left; text-transform: uppercase;
    font-size: 11px; letter-spacing: .6px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); white-space: nowrap;
}
.admin-cards-table td { padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .05); color: #cbd5e1; vertical-align: middle; }
.admin-cards-table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.admin-cards-table .mono {
    font-family: Consolas, monospace; font-size: 11px; color: #64748b;
    max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

@media (max-width: 640px) {
    .shop-toolbar { flex-direction: column; align-items: stretch; }
    .shop-filters select { flex: 1; }
    .buy-head { flex-direction: column; }
}

/* ===================== Card details preview ===================== */
.cd-full { grid-column: 1 / -1; }
.cd-code-locked, .pd-code-locked { color: #fbbf24 !important; }
.cd-code-ok, .pd-code-ok { color: #4ade80 !important; }
.cd-code-lock-icon, .cd-code-ok-icon { margin-right: 6px; font-size: 12px; }
.cd-code-lock-icon { color: #fbbf24; }
.cd-code-ok-icon { color: #4ade80; }
.cd-code-hint {
    display: block; font-size: 11px; color: #64748b;
    line-height: 1.55; margin-top: 6px;
}
.pd-code { display: inline-flex; align-items: center; }

/* ===================== Contact page ===================== */
.contact-section { position: relative; padding: 90px 0 110px; overflow: hidden; }
.contact-head { text-align: center; margin-bottom: 48px; animation: contactFadeUp .7s ease both; }
.contact-title {
    font-family: var(--heading-font); font-size: clamp(30px, 5vw, 46px);
    font-weight: 700; margin: 0 0 14px;
    background: linear-gradient(135deg, #ffffff, #93b4ca);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.contact-sub { color: #93b4ca; font-size: clamp(15px, 2.2vw, 18px); margin: 0; }
.contact-card-wrap { position: relative; max-width: 760px; margin: 0 auto; }
.contact-glow {
    position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
    pointer-events: none; animation: contactFloat 9s ease-in-out infinite;
}
.contact-glow-1 { width: 320px; height: 320px; background: rgba(255, 107, 0, .35); top: -110px; left: -70px; }
.contact-glow-2 { width: 280px; height: 280px; background: rgba(37, 99, 235, .3); bottom: -90px; right: -60px; animation-delay: 3s; }
@keyframes contactFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(18px); } }
.contact-card {
    position: relative; border-radius: 22px; padding: clamp(26px, 4vw, 42px);
    background: linear-gradient(160deg, rgba(21, 35, 64, .82), rgba(9, 16, 34, .92));
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    animation: contactCardIn .7s cubic-bezier(.2, .9, .3, 1.1) .12s both;
}
@keyframes contactCardIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes contactFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-field { margin-bottom: 18px; }
.contact-label {
    display: block; font-family: var(--heading-font); font-size: 13.5px;
    font-weight: 600; color: #c3d4e6; margin-bottom: 8px;
}
.contact-label .req { color: var(--base); }
.contact-input-wrap { position: relative; }
.contact-input-wrap > i {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    color: #5b6b80; font-size: 14px; pointer-events: none; transition: color .25s;
}
.contact-input-wrap > i.fa-comment { top: 22px; transform: none; }
.contact-input-wrap input, .contact-input-wrap textarea {
    width: 100%; border-radius: 14px; padding: 0 15px 0 44px;
    height: 50px; background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .13); color: #fff;
    font-size: 14.5px; font-family: var(--body-font); outline: none;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.contact-input-wrap textarea { height: auto; padding-top: 14px; padding-bottom: 14px; resize: vertical; min-height: 120px; }
.contact-input-wrap input:focus, .contact-input-wrap textarea:focus {
    border-color: var(--base); background: rgba(255, 255, 255, .08);
    box-shadow: 0 0 0 4px rgba(255, 107, 0, .16), 0 0 24px rgba(255, 107, 0, .12);
}
.contact-input-wrap input::placeholder, .contact-input-wrap textarea::placeholder { color: #5b6b80; }
.contact-input-wrap.invalid input, .contact-input-wrap.invalid textarea {
    border-color: var(--error); box-shadow: 0 0 0 4px rgba(235, 34, 34, .12);
}
.field-error { color: var(--error); font-size: 12.5px; margin: 6px 2px 0; }
.contact-submit {
    width: 100%; height: 54px; border: 0; border-radius: 14px; cursor: pointer;
    background: linear-gradient(135deg, #ff8533, #e05e00);
    color: #fff; font-family: var(--heading-font); font-size: 16px; font-weight: 700;
    letter-spacing: .03em; display: inline-flex; align-items: center;
    justify-content: center; gap: 10px; margin-top: 6px;
    box-shadow: 0 8px 24px rgba(255, 107, 0, .35); transition: all .25s ease;
}
.contact-submit:hover {
    transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255, 107, 0, .5);
    background: linear-gradient(135deg, #ff944d, #f06a00);
}
.contact-submit:active { transform: scale(.97); }
.contact-submit:disabled { opacity: .75; cursor: not-allowed; transform: none; }
.contact-submit.success {
    background: linear-gradient(135deg, #28c76f, #1f9d57) !important;
    box-shadow: 0 8px 24px rgba(40, 199, 111, .4);
}
@media (max-width: 640px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-section { padding: 60px 0 80px; }
}

/* ===================== Modals ===================== */
.modal-backdrop {
    position: fixed; inset: 0; z-index: 1200;
    background: rgba(3, 8, 20, .88); backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.flex { display: flex; }
.modal-backdrop.open { display: flex; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-close {
    position: absolute; top: 14px; right: 18px; background: transparent;
    border: 0; color: #93b4ca; font-size: 22px; transition: color .3s;
}
.modal-close:hover { color: #fff; }
.modal-body { max-width: 900px; max-height: 85vh; width: 100%; position: relative; }
.modal-body img { max-height: 82vh; max-width: 100%; border-radius: 5px; margin: 0 auto; display: block; }
.modal-body.card { max-width: 520px; max-height: 85vh; overflow-y: auto; }

/* ---------- Auth modal (glassmorphism sign-in) ---------- */
.auth-modal-backdrop {
    position: fixed; inset: 0; z-index: 1400;
    background: rgba(4, 10, 24, .65); backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.auth-modal-backdrop.open { display: flex; }
.auth-modal {
    position: relative; width: 100%; max-width: 420px; max-height: 92vh; overflow-y: auto;
    background: linear-gradient(160deg, rgba(20, 33, 61, .94), rgba(10, 18, 38, .97));
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px; padding: 34px 30px 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
    animation: authModalIn .3s cubic-bezier(.2, .9, .3, 1.15);
}
@keyframes authModalIn {
    from { opacity: 0; transform: scale(.92) translateY(16px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.auth-modal-close {
    position: absolute; top: 14px; right: 16px; background: transparent;
    border: 0; color: #93b4ca; font-size: 20px; cursor: pointer;
    width: 34px; height: 34px; border-radius: 10px; transition: all .25s ease;
}
.auth-modal-close:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.auth-modal-logo { text-align: center; margin-bottom: 6px; }
.auth-modal-logo img { max-height: 46px; margin: 0 auto; }
.auth-modal h3 {
    text-align: center; margin: 6px 0 4px; font-size: 24px;
    font-family: var(--heading-font); color: #fff;
}
.auth-modal-sub { text-align: center; color: #93b4ca; font-size: 14px; margin: 0 0 24px; }
.auth-field { margin-bottom: 16px; }
.auth-field label {
    display: block; color: #c3d4e6; font-size: 13px; font-weight: 600;
    font-family: var(--heading-font); margin-bottom: 7px;
}
.auth-input-wrap { position: relative; display: flex; align-items: center; }
.auth-input-wrap > i:first-child {
    position: absolute; left: 14px; color: #64748b; font-size: 13px; pointer-events: none;
}
.auth-input-wrap input {
    width: 100%; height: 46px; padding: 0 44px; border-radius: 12px;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
    color: #fff; font-size: 14px; outline: none; transition: all .25s ease;
}
.auth-input-wrap input:focus {
    border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, .18);
    background: rgba(255, 255, 255, .08);
}
.auth-input-wrap input::placeholder { color: #5b6b80; }
.auth-eye {
    position: absolute; right: 10px; background: transparent; border: 0; color: #64748b;
    cursor: pointer; font-size: 14px; width: 34px; height: 34px;
    border-radius: 8px; transition: color .25s;
}
.auth-eye:hover { color: #fff; }
.auth-options {
    display: flex; align-items: center; justify-content: space-between;
    margin: 2px 0 20px; gap: 10px; flex-wrap: wrap;
}
.auth-check { display: flex; align-items: center; gap: 8px; color: #93b4ca; font-size: 13px; cursor: pointer; }
.auth-check input { width: 16px; height: 16px; accent-color: #2563EB; cursor: pointer; }
.auth-forgot { color: #60a5fa; font-size: 13px; font-weight: 500; }
.auth-forgot:hover { color: #93c5fd; }
.auth-submit {
    width: 100%; height: 48px; border: 0; border-radius: 12px; cursor: pointer;
    background: linear-gradient(135deg, #2563EB, #1D4ED8); color: #fff;
    font-family: var(--heading-font); font-size: 15px; font-weight: 700;
    letter-spacing: .02em; display: inline-flex; align-items: center;
    justify-content: center; gap: 8px;
    box-shadow: 0 6px 18px rgba(37, 99, 235, .4); transition: all .25s ease;
}
.auth-submit:hover {
    background: linear-gradient(135deg, #3b82f6, #2563EB);
    transform: translateY(-1px); box-shadow: 0 10px 26px rgba(59, 130, 246, .5);
}
.auth-submit:active { transform: scale(.98); }
.auth-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.auth-divider {
    display: flex; align-items: center; gap: 12px; margin: 22px 0;
    color: #64748b; font-size: 12px; font-weight: 600; letter-spacing: .12em;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, .12);
}
.auth-google {
    width: 100%; height: 48px; border-radius: 12px; cursor: pointer;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16);
    color: #fff; font-family: var(--heading-font); font-size: 14px; font-weight: 600;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    transition: all .25s ease;
}
.auth-google:hover { background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .3); }
.auth-google svg { width: 18px; height: 18px; }
.auth-register { text-align: center; color: #93b4ca; font-size: 13.5px; margin: 20px 0 0; }
.auth-register a { color: #60a5fa; font-weight: 600; }
.auth-register a:hover { color: #93c5fd; }

/* ===================== Micro interactions ===================== */
main[id^="view"] { animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

