/* ================= NILORIX ================= */
:root {
  --bg: #07070c;
  --bg-2: #0e0e16;
  --card: #14141f;
  --card-2: #1b1b29;
  --border: #26263a;
  --text: #ffffff;
  --muted: #9a9ab0;
  --orange: #ff7a00;
  --orange-2: #ffae00;
  --purple: #8b2cff;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; }
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

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

/* ===== HEADER ===== */
.header { position: sticky; top: 0; z-index: 60; background: rgba(7, 7, 12, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 22px; letter-spacing: 1px; flex-shrink: 0; }
.logo img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 8px; font-size: 14px; color: var(--muted); transition: .2s; }
.nav-link:hover { color: var(--text); }
.nav-link.active { background: var(--orange); color: #fff; font-weight: 600; }
.chev { width: 16px; height: 16px; transition: transform .2s; }

/* Dropdown */
.dd { position: relative; }
.dd-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 290px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s; z-index: 70;
}
.dd-menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; } /* hover bridge */
.dd:hover .dd-menu, .dd.open .dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dd:hover .chev, .dd.open .chev { transform: rotate(180deg); }
.dd:hover .dd-btn, .dd.open .dd-btn { color: var(--text); }
.dd-title { font-size: 11px; letter-spacing: 2px; color: var(--muted); padding: 6px 10px 8px; text-transform: uppercase; }
.dd-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 10px; text-align: left; transition: .15s; }
.dd-item:hover { background: var(--card-2); }
.dd-item strong { display: block; font-size: 14px; font-weight: 600; }
.dd-item small { color: var(--muted); font-size: 12px; }
.dd-item .arrow { margin-left: auto; color: var(--muted); }
.dd-item:hover .arrow { color: var(--orange); }

/* mini tile (dropdown, search, cart) */
.mini-tile { width: 40px; height: 40px; border-radius: 10px; background: var(--g); display: grid; place-items: center; font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 11px; flex-shrink: 0; overflow: hidden; text-shadow: 0 2px 6px rgba(0,0,0,.5); }
.mini-tile img { width: 100%; height: 100%; object-fit: cover; }

.header-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search { position: relative; display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 0 12px; height: 40px; width: 290px; }
.search:focus-within { border-color: var(--orange); }
.search svg { color: var(--muted); width: 18px; }
.search input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--text); font-family: inherit; font-size: 13px; }
.search input::placeholder { color: var(--muted); }
.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 6px; box-shadow: 0 20px 50px rgba(0,0,0,.6); display: none; z-index: 70; }
.search-results.show { display: block; }
.search-empty { color: var(--muted); font-size: 13px; padding: 10px; }

.currency { background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: 10px; height: 40px; padding: 0 10px; font-family: inherit; outline: none; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; transition: .2s; position: relative; flex-shrink: 0; }
.icon-btn:hover { background: var(--card); }
.cart-count { position: absolute; top: 2px; right: 2px; background: var(--orange); font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; }
.menu-btn { display: none; }

/* ===== HERO (compact) ===== */
.hero {
  position: relative; padding: 28px 0 34px; overflow: hidden;
  background:
    radial-gradient(circle at 72% 45%, rgba(139, 44, 255, .32), transparent 42%),
    radial-gradient(circle at 58% 60%, rgba(255, 122, 0, .2), transparent 38%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: center; }
.tagline { color: var(--orange); font-family: 'Orbitron', sans-serif; font-weight: 600; letter-spacing: 4px; font-size: 12px; margin-bottom: 6px; }
.hero-title { font-family: 'Orbitron', sans-serif; font-size: clamp(42px, 5.5vw, 70px); font-weight: 900; line-height: 1; letter-spacing: 2px; text-shadow: 0 0 40px rgba(255, 255, 255, .15); }
.hero-sub { margin: 10px 0 20px; font-weight: 700; font-size: 14px; letter-spacing: 1px; }
.hero-sub span { color: var(--orange); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 24px; border-radius: 10px; font-weight: 600; transition: .25s; }
.btn-primary { background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: #fff; box-shadow: 0 8px 25px rgba(255, 122, 0, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 122, 0, .5); }
.btn-block { width: 100%; }

.features { display: flex; gap: 22px; margin-top: 24px; flex-wrap: wrap; }
.feature { display: flex; gap: 10px; align-items: center; }
.feature-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 122, 0, .12); font-size: 16px; }
.feature strong { display: block; font-size: 13px; }
.feature small { color: var(--muted); font-size: 11px; }

.hero-visual { position: relative; height: 270px; }
.hero-card {
  position: absolute; border-radius: 16px; overflow: hidden;
  background-size: cover; background-position: center;
  border: 1px solid rgba(255, 255, 255, .08);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
}
.hero-card span { font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 15px; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.hero-card-left   { left: 2%; top: 6px; width: 32%; height: 82%; background-color: #1e3a8a; background-image: linear-gradient(160deg, #2563eb, #7c3aed); transform: rotate(-4deg); }
.hero-card-right  { right: 2%; top: 10px; width: 30%; height: 50%; background-color: #be123c; background-image: linear-gradient(160deg, #e11d48, #f97316); transform: rotate(4deg); }
.hero-card-bottom { right: 8%; bottom: 0; width: 34%; height: 38%; background-color: #3f3f46; background-image: linear-gradient(160deg, #57534e, #1c1917); }
.hero-logo-wrap { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 40%; z-index: 2; animation: float 4s ease-in-out infinite; }
.hero-logo { -webkit-mask-image: radial-gradient(circle at center, #000 48%, transparent 70%); mask-image: radial-gradient(circle at center, #000 48%, transparent 70%); filter: drop-shadow(0 0 30px rgba(255,122,0,.35)); }
@keyframes float { 0%,100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, -55%); } }

/* ===== SECTIONS ===== */
.section { padding: 28px 0 8px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.section-head h2 { font-size: 20px; font-weight: 700; display: flex; align-items: baseline; gap: 10px; }
.head-sub { font-size: 13px; color: var(--muted); font-weight: 500; }
.link-btn { color: var(--orange); font-size: 13px; font-weight: 600; }

/* Game cards */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.game-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-align: left; transition: .25s; display: flex; flex-direction: column; }
.game-card:hover { transform: translateY(-4px); border-color: rgba(255, 122, 0, .6); box-shadow: 0 10px 30px rgba(255, 122, 0, .12); }
.game-art { position: relative; aspect-ratio: 16 / 10; background: var(--g); display: grid; place-items: center; overflow: hidden; }
.game-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 50%); }
.game-art img { width: 72px; height: 72px; object-fit: cover; border-radius: 18px; margin-top: 12px; position: relative; z-index: 1; box-shadow: 0 10px 28px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.12); transition: transform .25s; }
.game-card:hover .game-art img { transform: scale(1.06); }
.game-art .ph { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 30px; text-shadow: 0 4px 14px rgba(0,0,0,.45); }
.type-pill { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,.45); backdrop-filter: blur(4px); }
.game-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.game-name { font-size: 15px; font-weight: 600; }
.game-meta { font-size: 12px; color: var(--muted); }
.game-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.from { font-size: 12px; color: var(--muted); }
.from strong { color: var(--text); font-size: 16px; margin-left: 4px; }
.go { width: 32px; height: 32px; border-radius: 8px; background: var(--card-2); display: grid; place-items: center; transition: .2s; }
.game-card:hover .go { background: var(--orange); }
.go svg { width: 16px; height: 16px; }

/* Trending */
.trending-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.trend { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; text-align: left; transition: .2s; }
.trend:hover { border-color: rgba(255, 122, 0, .6); }
.rank { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 22px; width: 36px; text-align: center; color: var(--muted); }
.trend:nth-child(1) .rank { color: #ffc531; }
.trend:nth-child(2) .rank { color: #d8dde6; }
.trend:nth-child(3) .rank { color: #e08a4a; }
.trend .mini-tile { width: 48px; height: 48px; font-size: 12px; }
.trend-info { flex: 1; min-width: 0; }
.trend-info strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trend-info small { color: var(--muted); font-size: 12px; }
.trend-right { text-align: right; flex-shrink: 0; }
.trend-right strong { display: block; font-size: 15px; }
.sold { color: var(--orange); font-size: 12px; font-weight: 600; white-space: nowrap; }

/* Footer */
.footer { margin-top: 50px; border-top: 1px solid var(--border); background: var(--bg-2); padding-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { margin-bottom: 12px; font-size: 15px; }
.footer a:not(.logo), .footer .f-link { display: block; color: var(--muted); font-size: 14px; margin-bottom: 8px; text-align: left; }
.footer a:hover, .footer .f-link:hover { color: var(--orange); }
.muted { color: var(--muted); font-size: 14px; margin-top: 10px; }
.copy { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 0; border-top: 1px solid var(--border); margin-top: 30px; }

/* ===== MODAL ===== */
.modal { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; opacity: 0; visibility: hidden; transition: .25s; }
.modal.show { opacity: 1; visibility: visible; }
.modal-box { position: relative; width: 100%; max-width: 620px; max-height: 90vh; overflow-y: auto; background: var(--bg-2); border: 1px solid var(--border); border-radius: 18px; padding: 22px; transform: translateY(14px); transition: .25s; }
.modal.show .modal-box { transform: translateY(0); }
.modal-close { position: absolute; top: 12px; right: 12px; }
.modal-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; padding-right: 40px; }
.modal-head .mini-tile { width: 72px; height: 72px; font-size: 16px; border-radius: 14px; }
.modal-head h3 { font-size: 20px; }
.modal-head small { color: var(--muted); font-size: 13px; }
.modal-head .type-pill { position: static; display: inline-block; margin-bottom: 4px; background: rgba(255,122,0,.15); color: var(--orange); }
.modal-label { font-size: 14px; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.pkg { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px; text-align: left; transition: .2s; }
.pkg:hover { border-color: var(--orange); }
.pkg strong { font-size: 14px; }
.pkg .price { font-size: 18px; font-weight: 700; }
.pkg .add { margin-top: 6px; background: var(--card-2); border-radius: 8px; padding: 8px; font-size: 13px; font-weight: 600; text-align: center; transition: .2s; }
.pkg:hover .add { background: var(--orange); }

/* ===== CART ===== */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: .3s; z-index: 90; }
.overlay.show { opacity: 1; pointer-events: auto; }
.cart { position: fixed; top: 0; right: 0; width: 380px; max-width: 100%; height: 100%; background: var(--bg-2); border-left: 1px solid var(--border); z-index: 100; transform: translateX(100%); transition: .35s; display: flex; flex-direction: column; }
.cart.open { transform: translateX(0); }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.cart-items { flex: 1; overflow-y: auto; padding: 14px 20px; display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: flex; gap: 12px; align-items: center; background: var(--card); padding: 10px; border-radius: 10px; }
.cart-info { flex: 1; font-size: 13px; }
.cart-info strong { display: block; }
.cart-info .game-meta { display: block; }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.qty button { width: 24px; height: 24px; border-radius: 6px; background: var(--card-2); }
.remove { color: var(--muted); font-size: 18px; }
.remove:hover { color: #ff4d4d; }
.cart-foot { padding: 18px 20px; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 16px; }
.cart-empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* Toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 100px); opacity: 0; visibility: hidden; background: var(--card-2); border: 1px solid var(--orange); padding: 12px 22px; border-radius: 10px; font-size: 14px; z-index: 200; transition: .35s; white-space: nowrap; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1180px) {
  .search { width: 200px; }
  .header-inner { gap: 16px; }
}
@media (max-width: 980px) {
  .menu-btn { display: grid; }
  .nav { position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 12px 16px; display: none; max-height: calc(100vh - 70px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav-link { width: 100%; justify-content: space-between; }
  .dd-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; margin: 4px 0 8px; min-width: 0; }
  .dd:hover .dd-menu { display: none; }
  .dd.open .dd-menu { display: block; }
  .dd:hover .chev { transform: none; }
  .dd.open .chev { transform: rotate(180deg); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .search { display: none; }
  .currency { display: none; }
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .game-art .ph { font-size: 22px; }
  .trending-list { grid-template-columns: 1fr; }
  .features { gap: 14px; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* =====================================================
   GAME PAGE
   ===================================================== */
.game-page { padding-top: 22px; padding-bottom: 10px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 20px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--orange); }
.crumbs strong { color: var(--text); font-weight: 500; }

.gp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 24px; align-items: start; }
.gp-left, .gp-right { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.panel-title { font-size: 16px; font-weight: 700; margin-bottom: 14px; }

/* Head: big letter logo + name */
.gp-head { display: flex; gap: 20px; align-items: center; }
.gp-logo {
  width: 132px; height: 132px; border-radius: 26px; flex-shrink: 0; position: relative; overflow: hidden;
  background: var(--g); display: grid; place-items: center;
  box-shadow: 0 16px 40px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.12);
}
.gp-logo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 25% 15%, rgba(255,255,255,.3), transparent 55%); }
.gp-logo span { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 64px; text-shadow: 0 6px 20px rgba(0,0,0,.45); position: relative; z-index: 1; }
.gp-logo img { width: 100%; height: 100%; object-fit: cover; }
.gp-title .type-pill { position: static; display: inline-block; background: rgba(255,122,0,.15); color: var(--orange); margin-bottom: 6px; }
.gp-title h1 { font-size: clamp(24px, 3vw, 34px); line-height: 1.15; }
.gp-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: var(--muted); align-items: center; }
.muted-inline { color: var(--muted); }

/* Stars */
.stars { color: #ffc531; letter-spacing: 1px; }
.stars .off { color: #3a3a52; }

/* Seller */
.seller-top { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.seller-logo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }
.seller-top small { font-size: 12px; display: block; }
.seller-top h3 { font-size: 18px; display: flex; align-items: center; gap: 6px; }
.verified { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #2f8bff; font-size: 10px; }
.seller-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.seller-stats div { background: var(--card-2); border-radius: 12px; padding: 12px; text-align: center; }
.seller-stats strong { display: block; font-size: 17px; }
.seller-stats small { color: var(--muted); font-size: 12px; }

/* About */
.about-text { color: #c9c9da; font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.steps { list-style: none; display: grid; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.steps li > span { width: 28px; height: 28px; border-radius: 8px; background: rgba(255,122,0,.15); color: var(--orange); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.steps strong { display: block; font-size: 14px; }
.steps small { color: var(--muted); font-size: 13px; }

/* Order box (right) */
.order { border-color: rgba(255,122,0,.35); box-shadow: 0 10px 40px rgba(255,122,0,.06); }
.amounts { display: grid; gap: 8px; }
.amount { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--card-2); border: 1.5px solid transparent; text-align: left; transition: .15s; }
.amount:hover { border-color: var(--border); }
.amount.selected { border-color: var(--orange); background: rgba(255,122,0,.08); }
.amount-tile { width: 32px; height: 32px; border-radius: 8px; background: var(--g); display: grid; place-items: center; font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 14px; flex-shrink: 0; }
.amount-name { flex: 1; font-size: 14px; font-weight: 600; }
.amount-price { font-weight: 700; }
.qty-row, .total-row { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.qty-row > span { color: var(--muted); font-size: 14px; }
.stepper { display: flex; align-items: center; background: var(--card-2); border-radius: 10px; overflow: hidden; }
.stepper button { width: 38px; height: 38px; font-size: 18px; transition: .15s; }
.stepper button:hover { background: var(--orange); }
.stepper input { width: 46px; text-align: center; background: none; border: none; color: var(--text); font-family: inherit; font-size: 15px; font-weight: 600; outline: none; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.total-row { padding-top: 14px; border-top: 1px solid var(--border); }
.total-row span { color: var(--muted); }
.total-row strong { font-size: 24px; }
.btn-pay { margin-top: 16px; font-size: 17px; padding: 14px; letter-spacing: .5px; }
.btn-ghost { background: var(--card-2); border: 1px solid var(--border); margin-top: 8px; }
.btn-ghost:hover { border-color: var(--orange); }
.secure { text-align: center; color: var(--muted); font-size: 12px; margin-top: 12px; }

/* Reviews (right, under order) */
.rev-head { display: flex; justify-content: space-between; align-items: baseline; }
.rev-summary { font-size: 14px; display: flex; gap: 6px; align-items: baseline; }
.rev-summary strong { font-size: 18px; }
.rev-summary small { color: var(--muted); }
.rev-list { display: grid; gap: 10px; max-height: 360px; overflow-y: auto; }
.review { background: var(--card-2); border-radius: 12px; padding: 12px; }
.review-top { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.review-top > div { flex: 1; }
.review-top strong { display: block; font-size: 14px; }
.review-top small { color: var(--muted); font-size: 11px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), var(--purple)); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.review p { font-size: 13px; color: #c9c9da; line-height: 1.6; }
.rev-empty { color: var(--muted); font-size: 13px; padding: 6px 0 4px; }
.rev-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); display: grid; gap: 8px; }
.rev-form h4 { font-size: 14px; }
.star-pick { display: flex; gap: 2px; }
.star-pick button { font-size: 22px; color: #3a3a52; transition: .1s; }
.star-pick button.on { color: #ffc531; }
.rev-form input, .rev-form textarea { background: var(--card-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; color: var(--text); font-family: inherit; font-size: 13px; outline: none; resize: vertical; }
.rev-form input:focus, .rev-form textarea:focus { border-color: var(--orange); }

/* More games */
.more-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.more-card { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; transition: .2s; }
.more-card:hover { border-color: rgba(255,122,0,.6); }
.more-card strong { display: block; font-size: 14px; }
.more-card small { color: var(--muted); font-size: 12px; }

.not-found { text-align: center; padding: 80px 0; display: grid; gap: 12px; justify-items: center; }

@media (max-width: 980px) {
  /* موبايل: الاسم ← الطلب و Pay ← البائع ← About ← Reviews */
  .gp-grid { display: flex; flex-direction: column; gap: 18px; }
  .gp-left, .gp-right { display: contents; }
  .gp-head { order: 1; }
  .amount-panel { order: 2; }
  .order { order: 3; }
  #aboutBox { order: 4; }
  .reviews { order: 5; }
}
@media (max-width: 640px) {
  .gp-logo { width: 92px; height: 92px; border-radius: 20px; }
  .gp-logo span { font-size: 44px; }
  .gp-head { gap: 14px; }
  .seller-stats strong { font-size: 15px; }
}

/* ===== Store bar (above reviews) ===== */
.store-bar { display: flex; align-items: center; gap: 12px; background: var(--card-2); border-radius: 14px; padding: 12px 14px; margin-bottom: 18px; }
.store-bar .seller-logo { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.sb-info { flex: 1; min-width: 0; }
.sb-info h3 { font-size: 16px; display: flex; align-items: center; gap: 6px; }
.sb-line { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 2px; align-items: center; }
.sb-rate { color: var(--text); font-weight: 600; }
.sb-pct { text-align: center; padding-left: 12px; border-left: 1px solid var(--border); flex-shrink: 0; }
.sb-pct strong { display: block; font-size: 20px; color: #22c55e; }
.sb-pct small { color: var(--muted); font-size: 11px; }
.rev-item { display: inline-block; font-size: 11px; color: #22c55e; margin-bottom: 4px; }
.rev-note { color: var(--muted); font-size: 12px; margin-top: 12px; text-align: center; }

/* ===== Review modal (after each order) ===== */
.review-box { max-width: 420px; text-align: center; }
.rm-ok { width: 56px; height: 56px; border-radius: 50%; background: rgba(34,197,94,.15); color: #22c55e; font-size: 28px; font-weight: 700; display: grid; place-items: center; margin: 0 auto 10px; }
.review-box h3 { font-size: 20px; }
.rm-item { color: var(--muted); font-size: 14px; margin: 4px 0 18px; }
.rm-item strong { color: var(--text); }
#rmForm { display: grid; gap: 8px; text-align: left; border-top: 1px solid var(--border); padding-top: 16px; }
#rmForm h4 { text-align: center; font-size: 15px; }
#rmForm .star-pick { justify-content: center; }
.star-pick.big button { font-size: 32px; }
#rmForm input, #rmForm textarea { background: var(--card-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; color: var(--text); font-family: inherit; font-size: 13px; outline: none; resize: vertical; }
#rmForm input:focus, #rmForm textarea:focus { border-color: var(--orange); }
#rmForm .btn-ghost { margin-top: 0; }

/* ===== Amount cards (under game name) ===== */
.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.amt {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  background: var(--card-2); border: 1.5px solid var(--border); border-radius: 12px; padding: 26px 12px 0;
  transition: .15s; min-width: 0;
}
.amt:hover { border-color: #4a4a66; transform: translateY(-2px); }
.amt.selected { border-color: #ffc531; background: linear-gradient(180deg, rgba(255,197,49,.14), rgba(255,197,49,.04)); }
.amt-badge { position: absolute; top: -1px; left: 10px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 0 0 6px 6px; }
.amt-badge.popular { background: #ffc531; color: #1a1300; }
.amt-badge.best { background: #4d7c3a; color: #e8ffd9; }
.amt-check { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: #ffc531; color: #1a1300; font-size: 12px; font-weight: 900; display: none; place-items: center; }
.amt.selected .amt-check { display: grid; }

.coin {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 13px; color: #fff;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 55%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 60%, #000));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 35%, #111), 0 4px 10px rgba(0,0,0,.4);
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.amt-num { font-size: 15px; font-weight: 700; margin-top: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.amt-unit { font-size: 12px; color: var(--muted); min-height: 16px; }
.amt-price { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.amt-price strong { color: #8ee35a; font-size: 17px; }
.disc { background: rgba(142,227,90,.15); color: #8ee35a; font-size: 11px; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.amt-old { font-size: 12px; color: var(--muted); margin-top: 2px; }
.amt-old i { font-style: normal; cursor: help; }
.amt-per { align-self: stretch; margin: 10px -12px 0; padding: 8px 12px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }

/* Selected item in order box */
.sel-item { display: flex; align-items: center; gap: 12px; background: var(--card-2); border-radius: 12px; padding: 12px; }
.sel-item .coin { width: 36px; height: 36px; font-size: 15px; }
.sel-info { flex: 1; min-width: 0; }
.sel-info strong { display: block; font-size: 15px; }
.sel-info small { color: var(--muted); font-size: 12px; }
.sel-price { font-weight: 700; color: #8ee35a; }

@media (max-width: 1200px) { .amount-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .amount-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* Delivery time row (above price) */
.delivery-row { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding: 10px 12px; border-radius: 10px; background: rgba(47,139,255,.08); border: 1px solid rgba(47,139,255,.25); font-size: 14px; }
.delivery-row span { color: #9cc4ff; }
.delivery-row strong { color: #cfe2ff; }

/* Rating % next to the blue check */
.pct { font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 6px; margin-left: 2px; }
.pct.good { color: #22c55e; background: rgba(34,197,94,.14); }
.pct.mid  { color: #facc15; background: rgba(250,204,21,.14); }
.pct.bad  { color: #ef4444; background: rgba(239,68,68,.14); }

/* =====================================================
   Header: bell (orders) + profile circle
   ===================================================== */
.hd-pop { position: relative; }
.pop-menu {
  position: absolute; top: calc(100% + 10px); right: 0; width: 340px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,.6); z-index: 80;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s;
}
.hd-pop.open .pop-menu { opacity: 1; visibility: visible; transform: translateY(0); }
#bellCount { background: #ef4444; }

/* bell list */
.pop-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.pop-head small { background: var(--card-2); color: var(--muted); padding: 1px 8px; border-radius: 10px; font-size: 12px; }
.pop-list { max-height: 380px; overflow-y: auto; padding: 6px; }
.order-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 10px; transition: .15s; }
.order-row:hover { background: var(--card-2); }
.or-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.or-info strong { font-size: 14px; }
.or-info small { color: var(--muted); font-size: 11px; }
.or-total { font-weight: 700; font-size: 14px; }
.status { align-self: flex-start; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; margin-top: 2px; }
.status.processing { color: #9cc4ff; background: rgba(47,139,255,.14); }
.status.delivered { color: #22c55e; background: rgba(34,197,94,.14); }
.pop-empty { text-align: center; padding: 26px 16px; font-size: 26px; }
.pop-empty p { font-size: 14px; font-weight: 600; margin-top: 6px; }
.pop-empty small { font-size: 12px; color: var(--muted); }

/* profile circle */
.avatar-btn {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  display: grid; place-items: center; font-weight: 700; font-size: 16px; color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--purple));
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(255,122,0,.55); transition: .2s;
}
button.avatar-btn:hover { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--orange); }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
.avatar-btn svg { width: 20px; height: 20px; }
.avatar-btn.lg { width: 46px; height: 46px; box-shadow: none; }
.avatar-btn.xl { width: 84px; height: 84px; font-size: 32px; box-shadow: none; }
.avatar-btn.xl svg { width: 36px; height: 36px; }
.profile-menu { width: 260px; padding: 6px; }
.pm-head { display: flex; gap: 12px; align-items: center; padding: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.pm-head strong { display: block; font-size: 15px; }
.pm-head small { color: var(--muted); font-size: 12px; word-break: break-all; }
.pm-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 10px; font-size: 14px; text-align: left; transition: .15s; }
.pm-item:hover { background: var(--card-2); }
.pm-item span { width: 22px; text-align: center; }

/* settings modal */
.settings-box { max-width: 420px; }
.settings-box h3 { font-size: 20px; margin-bottom: 16px; }
#setForm { display: grid; gap: 12px; }
.set-photo { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.set-photo-btns { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.set-photo-btns .btn-ghost { margin-top: 0; padding: 8px 14px; font-size: 13px; }
#setForm label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
#setForm input { background: var(--card-2); border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; color: var(--text); font-family: inherit; font-size: 14px; outline: none; }
#setForm input:focus { border-color: var(--orange); }

@media (max-width: 640px) {
  .pop-menu { position: fixed; top: 74px; left: 12px; right: 12px; width: auto; }
  .header-tools { gap: 4px; }
}

/* ===== Notice (orange) + options (Game device) ===== */
.notice { display: flex; gap: 12px; background: rgba(255,122,0,.1); border: 1px solid rgba(255,122,0,.45); border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; }
.notice-ic { width: 24px; height: 24px; border-radius: 50%; background: var(--orange); color: #1a0d00; font-weight: 900; font-size: 13px; display: grid; place-items: center; flex-shrink: 0; }
.notice strong { display: block; font-size: 14px; margin-bottom: 4px; }
.notice p { font-size: 13px; color: #e2cfbd; line-height: 1.6; }
.notice em { color: #fff; font-weight: 600; }
.opt-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.opt { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; background: var(--card-2); border: 1.5px solid var(--border); font-size: 13px; font-weight: 600; transition: .15s; }
.opt:hover { border-color: #4a4a66; }
.opt.selected { border-color: #ffc531; background: rgba(255,197,49,.1); }
.opt-check { color: #ffc531; font-weight: 900; }
.amt-num.long { white-space: normal; font-size: 14px; line-height: 1.35; }
.amt-price { margin-top: auto; padding-top: 8px; }
.coin-img { width: 34px; height: 34px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 3px 6px rgba(0,0,0,.5)); }
.sel-item .coin-img { width: 40px; height: 40px; }

/* =====================================================================
   ORDER SYSTEM — checkout · order · my orders · login · admin
   ===================================================================== */
.page { padding-top: 22px; padding-bottom: 30px; min-height: 60vh; }
.page-title { font-size: clamp(24px, 3vw, 32px); margin-bottom: 18px; }
.panel-sub { color: var(--muted); font-size: 13px; line-height: 1.6; }
.panel .panel-title { display: flex; align-items: center; gap: 10px; }
.step-n { width: 24px; height: 24px; border-radius: 7px; background: rgba(255,122,0,.15); color: var(--orange); display: grid; place-items: center; font-size: 13px; }
.lg-err { color: #ff8a8a; background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.pm-out { color: #ff8a8a; }
.pop-foot { display: block; text-align: center; padding: 12px; border-top: 1px solid var(--border); color: var(--orange); font-size: 13px; font-weight: 600; }

/* status colours */
.status.st-wait   { color: #facc15; background: rgba(250,204,21,.14); }
.status.st-verify { color: #9cc4ff; background: rgba(47,139,255,.14); }
.status.st-proc   { color: #c4a5ff; background: rgba(139,44,255,.18); }
.status.st-deliv  { color: #2dd4bf; background: rgba(45,212,191,.14); }
.status.st-done   { color: #22c55e; background: rgba(34,197,94,.14); }
.status.st-cancel { color: #f87171; background: rgba(239,68,68,.14); }

/* ---------- checkout ---------- */
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.co-left, .co-right { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.co-right { position: sticky; top: 90px; }
.co-game + .co-game { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.co-game-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.co-game-head .mini-tile { width: 30px; height: 30px; font-size: 11px; }
.co-field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 12px; }
.co-field input, .tx-form input, .chat-form input, .adm-search, .adm-login input {
  background: var(--card-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; color: var(--text);
  font-family: inherit; font-size: 14px; outline: none; width: 100%;
}
.co-field input:focus, .tx-form input:focus, .chat-form input:focus, .adm-search:focus, .adm-login input:focus { border-color: var(--orange); }
.pay-list { display: grid; gap: 8px; }
.pay-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--card-2); border: 1.5px solid var(--border); text-align: left; transition: .15s; }
.pay-opt:hover:not(:disabled) { border-color: #4a4a66; }
.pay-opt.selected { border-color: #ffc531; background: rgba(255,197,49,.08); }
.pay-opt:disabled { opacity: .45; cursor: not-allowed; }
.pay-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px; flex-shrink: 0; }
.pay-ic.usdt_bep20 { background: #26a17b; } .pay-ic.usdt_trc20 { background: #26a17b; box-shadow: inset 0 0 0 3px #ef0027; } .pay-ic.ltc { background: #345d9d; }
.pay-info { flex: 1; } .pay-info strong { display: block; font-size: 14px; } .pay-info small { color: var(--muted); font-size: 12px; }
.co-items { display: grid; gap: 10px; }
.co-item { display: flex; align-items: center; gap: 10px; }
.co-item .mini-tile { width: 36px; height: 36px; font-size: 12px; }
.co-item-info { flex: 1; min-width: 0; } .co-item-info strong { display: block; font-size: 14px; } .co-item-info small { color: var(--muted); font-size: 12px; }
.co-item-price { font-weight: 700; font-size: 14px; }
.co-crypto { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: right; }
.co-crypto strong { color: #8ee35a; }
.co-agree { display: flex; gap: 8px; align-items: center; margin-top: 14px; font-size: 13px; color: #c9c9da; cursor: pointer; }
.co-agree input { width: 16px; height: 16px; accent-color: var(--orange); }
.co-right .lg-err { margin-top: 10px; }

/* ---------- order page ---------- */
.od-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.od-head .page-title { margin-bottom: 4px; }
.od-head .status { font-size: 13px; padding: 6px 12px; }
.od-steps { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; margin-bottom: 20px; overflow-x: auto; }
.od-step { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.od-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--card-2); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.od-step.done { color: #c9c9da; } .od-step.done .od-dot { background: #22c55e; color: #fff; }
.od-step.now { color: var(--text); font-weight: 600; } .od-step.now .od-dot { background: var(--orange); color: #fff; box-shadow: 0 0 0 4px rgba(255,122,0,.2); }
.od-line { flex: 1; min-width: 16px; height: 2px; background: var(--border); }
.od-cancel { color: #f87171; font-weight: 600; }
.od-kv { display: grid; gap: 10px; margin-top: 12px; font-size: 13px; }
.od-kv div { display: flex; justify-content: space-between; gap: 12px; }
.od-kv span { color: var(--muted); flex-shrink: 0; }
.od-kv strong { text-align: right; word-break: break-all; font-weight: 600; display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.tx-link { color: #9cc4ff; text-decoration: underline; }
.mono { font-family: ui-monospace, monospace; font-size: 12px; }

.pay-box { border-color: rgba(255,122,0,.45); }
.pay-amount { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--card-2); border-radius: 12px; padding: 14px; }
.pay-amount span { color: var(--muted); font-size: 13px; }
.pay-amount strong { font-size: 22px; color: #8ee35a; flex: 1; }
.pay-warn { margin-top: 12px; background: rgba(250,204,21,.08); border: 1px solid rgba(250,204,21,.35); color: #fde68a; border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.pay-addr-wrap { display: flex; gap: 16px; align-items: center; margin-top: 14px; }
.qr { background: #fff; padding: 8px; border-radius: 10px; flex-shrink: 0; }
.qr img, .qr canvas { display: block; }
.pay-addr { flex: 1; min-width: 0; display: grid; gap: 8px; }
.pay-addr span { color: var(--muted); font-size: 13px; }
.pay-addr code { background: var(--card-2); border-radius: 10px; padding: 12px; font-size: 13px; word-break: break-all; color: #fff; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 8px 12px; border-radius: 8px; background: var(--card-2); border: 1px solid var(--border); font-size: 12px; font-weight: 600; transition: .15s; }
.copy-btn:hover { border-color: var(--orange); }
.copy-btn svg { width: 15px; height: 15px; }
.copy-btn.mini { padding: 3px 5px; } .copy-btn.mini svg { width: 13px; height: 13px; }
.tx-form { display: grid; gap: 10px; margin-top: 18px; }
.tx-form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.tx-form .btn-pay { margin-top: 4px; }
.cancel-link { display: block; margin: 12px auto 0; color: var(--muted); font-weight: 500; }
.cancel-link:hover { color: #f87171; }

/* chat */
.chat-list { display: flex; flex-direction: column; gap: 10px; max-height: 380px; min-height: 120px; overflow-y: auto; padding: 4px 2px 10px; }
.chat-empty { color: var(--muted); font-size: 13px; text-align: center; margin: auto; padding: 20px; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 85%; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg-av { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }
.bubble { background: var(--card-2); border-radius: 14px 14px 14px 4px; padding: 9px 12px; }
.msg.mine .bubble { background: linear-gradient(135deg, var(--orange), #ff9a2e); color: #1a0d00; border-radius: 14px 14px 4px 14px; }
.bubble p { font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.bubble small { display: block; font-size: 10px; opacity: .7; margin-top: 3px; }
.chat-form { display: flex; gap: 8px; margin-top: 8px; }
.chat-form .btn { padding: 10px 18px; }

/* my orders */
.ol-list { display: grid; gap: 10px; }
.ol-row { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px; transition: .2s; }
.ol-row:hover { border-color: rgba(255,122,0,.6); }
.ol-info { flex: 1; min-width: 0; } .ol-info strong { display: block; font-size: 15px; } .ol-info small { color: var(--muted); font-size: 12px; }

/* ---------- login modal ---------- */
.login-box { max-width: 400px; text-align: center; }
.lg-logo { width: 54px; height: 54px; border-radius: 14px; margin: 0 auto 10px; }
.login-box h3, .adm-login h3 { font-size: 20px; }
.lg-sub { color: var(--muted); font-size: 13px; margin: 4px 0 16px; }
.lg-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--card-2); border-radius: 10px; padding: 4px; margin-bottom: 14px; }
.lg-tab { padding: 8px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.lg-tab.active { background: var(--orange); color: #fff; }
#lgForm, #admLoginForm { display: grid; gap: 12px; text-align: left; }
#lgForm label, #admLoginForm label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
#lgForm input { background: var(--card-2); border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; color: var(--text); font-family: inherit; font-size: 14px; outline: none; }
#lgForm input:focus { border-color: var(--orange); }
.lg-forgot { justify-self: center; font-weight: 500; }
.lg-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 14px 0; }
.lg-or::before, .lg-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.lg-google { display: flex; gap: 10px; margin-top: 0; }
.lg-google svg { width: 18px; height: 18px; }

/* ---------- admin ---------- */
.adm-tag { font-style: normal; font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 700; background: var(--orange); color: #fff; padding: 2px 8px; border-radius: 6px; letter-spacing: 0; }
.adm-user { color: var(--muted); font-size: 13px; }
.adm-small { margin-top: 0; padding: 8px 14px; font-size: 13px; }
.adm-login { max-width: 400px; margin: 40px auto; text-align: center; }
.adm-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 18px; }
.adm-stat { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.adm-stat small { color: var(--muted); font-size: 12px; }
.adm-stat strong { display: block; font-size: 24px; margin-top: 2px; }
.adm-stat.hot { border-color: rgba(47,139,255,.5); background: linear-gradient(180deg, rgba(47,139,255,.1), var(--card)); }
.adm-bar { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.adm-bar .filter b { margin-left: 4px; font-size: 11px; opacity: .8; }
.adm-search { max-width: 300px; padding: 9px 12px; }
.adm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 18px; align-items: start; }
.adm-list { display: grid; gap: 8px; }
.adm-row { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; text-align: left; transition: .15s; }
.adm-row:hover { border-color: #4a4a66; }
.adm-row.sel { border-color: var(--orange); background: rgba(255,122,0,.06); }
.adm-row-info { flex: 1; min-width: 0; } .adm-row-info strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .adm-row-info small { color: var(--muted); font-size: 12px; }
.adm-flag { color: #facc15; font-size: 18px; }
.adm-detail { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; }
.adm-d-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.adm-d-head h3 { font-size: 18px; }
.adm-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 6px; }
.adm-actions .btn { padding: 9px 14px; font-size: 13px; margin-top: 0; }
.adm-h { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin: 18px 0 2px; }
.adm-chat { max-height: 260px; }

@media (max-width: 980px) {
  .co-grid, .adm-grid { grid-template-columns: 1fr; }
  .co-right, .adm-detail { position: static; max-height: none; }
  .adm-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pay-addr-wrap { flex-direction: column; align-items: stretch; }
  .qr { align-self: center; }
  .ol-row { flex-wrap: wrap; } .ol-row .go { display: none; }
  .od-head { flex-direction: column; }
  .adm-user { display: none; }
}

/* admin status tabs */
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter { padding: 7px 14px; border-radius: 8px; font-size: 13px; color: var(--muted); background: var(--card); border: 1px solid var(--border); transition: .2s; }
.filter:hover { color: var(--text); }
.filter.active { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ===== Disputes ===== */
.status.st-dispute { color: #fb923c; background: rgba(239,68,68,.16); }
.dispute-link { display: block; margin: 14px auto 0; color: #f87171; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.dispute-link:hover { color: #fca5a5; }
.dispute-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.dispute-form h4 { font-size: 15px; color: #fca5a5; }
.dispute-reasons { display: grid; gap: 6px; }
.dr { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--card-2); border: 1.5px solid var(--border); font-size: 13px; cursor: pointer; }
.dr:has(input:checked) { border-color: #f87171; background: rgba(239,68,68,.08); }
.dr input { accent-color: #ef4444; }
.dispute-form textarea { background: var(--card-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; color: var(--text); font-family: inherit; font-size: 13px; outline: none; resize: vertical; }
.dispute-form textarea:focus { border-color: #f87171; }
.dispute-btns { display: flex; gap: 8px; }
.dispute-btns .btn { margin-top: 0; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }
.dispute-box { background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.4); border-radius: 12px; padding: 12px 14px; }
.dispute-box span { display: block; color: #fca5a5; font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.dispute-box p { font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.dispute-box.adm { margin-top: 14px; }
.adm-stat.danger { border-color: rgba(239,68,68,.6); background: linear-gradient(180deg, rgba(239,68,68,.14), var(--card)); }
.adm-stat.danger strong { color: #f87171; }
@media (max-width: 1180px) { .adm-stats { grid-template-columns: repeat(3, 1fr); } }

/* bell: clear button */
.bell-clear { font-size: 12px; font-weight: 600; color: var(--muted); padding: 4px 10px; border-radius: 8px; border: 1px solid var(--border); transition: .15s; }
.bell-clear:hover { color: var(--orange); border-color: var(--orange); }

/* search suggestions */
.search-results { max-height: 70vh; overflow-y: auto; }
.search-results .dd-title { padding-top: 10px; }
.search-results .dd-title:first-child { padding-top: 6px; }

/* coin icon with the amount under it (Apex) */
.coin-stack { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; }
.coin-stack small { font-size: 9px; font-weight: 600; color: var(--muted); letter-spacing: .2px; line-height: 1; }

/* ===== Custom amount (Robux) ===== */
.custom-amt { display: grid; gap: 14px; }
.ca-presets { display: flex; gap: 8px; flex-wrap: wrap; }
.ca-chip { padding: 9px 16px; border-radius: 10px; background: var(--card-2); border: 1.5px solid var(--border); font-size: 14px; font-weight: 700; transition: .15s; }
.ca-chip:hover { border-color: #4a4a66; }
.ca-chip.selected { border-color: #ffc531; background: rgba(255,197,49,.1); }
.ca-box { display: flex; align-items: center; gap: 12px; background: var(--card-2); border: 1.5px solid var(--border); border-radius: 14px; padding: 12px 16px; cursor: text; }
.ca-box:focus-within { border-color: var(--orange); }
.ca-box .coin { width: 38px; height: 38px; font-size: 16px; }
.ca-box input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--text); font-family: inherit; font-size: 26px; font-weight: 800; -moz-appearance: textfield; }
.ca-box input::-webkit-outer-spin-button, .ca-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ca-unit { color: var(--muted); font-weight: 600; }
.ca-info { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.ca-info strong { color: #8ee35a; }
.ca-err { color: #fca5a5; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* phone width fixes */
.amount-panel, .panel { min-width: 0; }
.ca-box input { width: 100%; }
.custom-amt { min-width: 0; }
@media (max-width: 640px) {
  .trending-list { grid-template-columns: minmax(0, 1fr); }
  .trend { min-width: 0; gap: 10px; padding: 12px; }
  .trend .rank { width: 28px; font-size: 18px; }
  .ca-box input { font-size: 22px; }
  .ca-chip { padding: 8px 12px; font-size: 13px; }
}

/* =====================================================================
   SUPPORT CHAT WIDGET (bottom-right)
   ===================================================================== */
.sw { position: fixed; right: 22px; bottom: 22px; z-index: 110; }
.sw-fab { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: linear-gradient(135deg, var(--orange), #ff9a2e); color: #fff;
  box-shadow: 0 10px 30px rgba(255,122,0,.45), 0 0 0 4px rgba(255,122,0,.12); transition: transform .2s; }
.sw-fab:hover { transform: scale(1.06); }
.sw-fab svg { width: 26px; height: 26px; position: absolute; transition: .2s; }
.sw-ic-close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.sw.open .sw-ic-chat { opacity: 0; transform: rotate(90deg) scale(.6); }
.sw.open .sw-ic-close { opacity: 1; transform: none; }
.sw-badge { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.sw-panel { position: absolute; right: 0; bottom: 74px; width: 370px; max-height: min(600px, calc(100vh - 120px));
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(0,0,0,.6);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.98); transform-origin: bottom right; transition: .2s; }
.sw.open .sw-panel { opacity: 1; visibility: visible; transform: none; }
.sw-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  background: linear-gradient(135deg, rgba(255,122,0,.22), rgba(139,44,255,.22)); border-bottom: 1px solid var(--border); }
.sw-logo { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }
.sw-head strong { display: block; font-size: 15px; }
.sw-head small { color: #c9c9da; font-size: 12px; display: flex; align-items: center; gap: 6px; }
.sw-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.sw-back { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; margin-left: -6px; }
.sw-back:hover { background: rgba(255,255,255,.08); }
.sw-back svg { width: 18px; height: 18px; }
.sw-body { padding: 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; }
.sw-hello h4 { font-size: 20px; }
.sw-hello p { color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.sw-label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 8px 2px 0; }
.sw-reason { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--border); font-size: 14px; font-weight: 600; text-align: left; transition: .15s; }
.sw-reason:hover { border-color: var(--orange); background: var(--card-2); }
.sw-reason > span { font-size: 18px; }
.sw-reason svg, .sw-chev { width: 16px; height: 16px; margin-left: auto; color: var(--muted); flex-shrink: 0; }
.sw-conv { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 12px; background: var(--card);
  border: 1px solid var(--border); text-align: left; transition: .15s; }
.sw-conv:hover { border-color: #4a4a66; }
.sw-conv .mini-tile { width: 34px; height: 34px; font-size: 11px; }
.sw-conv-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--card-2); display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.sw-conv-txt { flex: 1; min-width: 0; }
.sw-conv-txt strong { display: block; font-size: 13px; }
.sw-conv-txt small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-time { color: var(--muted); font-size: 11px; flex-shrink: 0; }
.sw-new { width: 9px; height: 9px; border-radius: 50%; background: #ef4444; flex-shrink: 0; }
.sw-note { color: var(--muted); font-size: 12px; text-align: center; margin: 6px 0; line-height: 1.5; }
.sw-topic { font-size: 13px; font-weight: 600; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; display: flex; align-items: center; gap: 6px; }
.sw-closed { margin-left: auto; font-size: 11px; color: var(--muted); background: var(--card-2); padding: 2px 8px; border-radius: 6px; }
.sw-compose { display: grid; gap: 10px; }
.sw-compose textarea { background: var(--card-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px; color: var(--text);
  font-family: inherit; font-size: 14px; outline: none; resize: vertical; }
.sw-compose textarea:focus { border-color: var(--orange); }
.sw-msgs { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; min-height: 160px; max-height: 340px; padding: 4px 0; }
.sw-reply { margin-top: 4px; }
.sw-reply .btn { padding: 10px 14px; }
body.lock .sw { z-index: 95; }

@media (max-width: 640px) {
  .sw { right: 14px; bottom: 14px; }
  .sw-fab { width: 52px; height: 52px; }
  .sw-panel { position: fixed; left: 10px; right: 10px; bottom: 76px; width: auto; max-height: calc(100vh - 100px); }
}

/* admin: Orders / Support switch */
.adm-views { display: flex; gap: 8px; margin-bottom: 16px; }
.adm-view { padding: 10px 18px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); font-weight: 700; font-size: 14px; color: var(--muted); }
.adm-view.active { color: #fff; border-color: var(--orange); background: rgba(255,122,0,.12); }
.adm-view b { margin-left: 4px; font-size: 11px; }
.adm-view b.hot { background: #ef4444; color: #fff; padding: 1px 7px; border-radius: 10px; }
