:root {
  --bg: #0b0b0c;
  --bg-soft: #101011;
  --panel: #151516;
  --panel-2: #1b1b1d;
  --panel-3: #222225;
  --stroke: rgba(255,255,255,.095);
  --stroke-strong: rgba(255,255,255,.16);
  --text: #f5f5f5;
  --muted: #8d8d92;
  --subtle: #626267;
  --red: #ec252b;
  --red-dark: #9c171d;
  --red-soft: rgba(236,37,43,.12);
  --green: #36d890;
  --amber: #ffb72e;
  --blue: #5e8fff;
  --sidebar: 244px;
  --header: 60px;
  --radius: 16px;
  --shadow: 0 24px 80px rgba(0,0,0,.42);
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { min-height: 100vh; margin: 0; color: var(--text); background: var(--bg); font-family: var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: rgba(236,37,43,.35); color: #fff; }

.icon { width: 21px; height: 21px; display: inline-flex; flex: 0 0 auto; }
.live-dot { width: 9px; height: 9px; display: inline-block; border-radius: 50%; background: var(--green); box-shadow: 0 0 18px rgba(54,216,144,.45); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: -.02em; }
.positive { color: var(--green) !important; }
.negative { color: #ff7075 !important; }

.btn {
  min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid var(--stroke); border-radius: 12px; padding: 0 16px; background: #1d1d1f;
  color: #ededee; font-weight: 740; cursor: pointer; transition: .18s ease; white-space: nowrap;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--stroke-strong); background: #252527; }
.btn:disabled { opacity: .48; cursor: not-allowed; }
.btn-primary { background: linear-gradient(180deg, #ef3137, #c91920); border-color: rgba(255,92,98,.35); box-shadow: 0 10px 25px rgba(196,25,32,.22); }
.btn-primary:hover:not(:disabled) { background: linear-gradient(180deg, #fa3c42, #d41d24); border-color: rgba(255,130,133,.5); }
.btn-light { background: #f3f3f3; color: #111; border-color: #fff; }
.btn-light:hover:not(:disabled) { background: #fff; }
.btn-danger-soft { background: rgba(236,37,43,.1); color: #ff8589; border-color: rgba(236,37,43,.22); }
.btn-small { min-height: 31px; padding: 0 10px; border-radius: 8px; font-size: 12px; }
.btn-large { min-height: 48px; padding: 0 20px; border-radius: 12px; font-size: 14px; }
.btn-block { width: 100%; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; padding: 10px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: #aaa; cursor: pointer; }
.icon-button:hover { background: rgba(255,255,255,.055); color: #fff; border-color: var(--stroke); }
.text-button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: #ff6a70; font-weight: 800; cursor: pointer; padding: 6px; }
.text-button svg { width: 17px; height: 17px; }
.copy-inline { width: 29px; height: 29px; padding: 7px; border: 0; border-radius: 8px; background: transparent; color: #777; cursor: pointer; vertical-align: middle; }
.copy-inline:hover { background: rgba(255,255,255,.06); color: #fff; }

/* Authentication */
.auth-page { position: fixed; inset: 0; overflow: auto; display: grid; place-items: center; background: #050505; }
.auth-page::before {
  content: ""; position: fixed; inset: -20%; opacity: .9; filter: blur(2px);
  background:
    radial-gradient(ellipse at 12% 25%, rgba(136,12,16,.58), transparent 34%),
    radial-gradient(ellipse at 82% 18%, rgba(224,34,39,.42), transparent 30%),
    radial-gradient(ellipse at 78% 80%, rgba(118,9,14,.42), transparent 32%),
    radial-gradient(ellipse at 32% 75%, rgba(60,0,4,.5), transparent 34%),
    #050505;
}
.grain-layer { position: fixed; inset: 0; opacity: .42; mix-blend-mode: screen; pointer-events: none; }
.grain-layer::before, .grain-layer::after { content: ""; position: absolute; inset: 0; }
.grain-layer::before {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,63,68,.75) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 60%, rgba(255,37,43,.48) 0 1px, transparent 1.5px),
    radial-gradient(circle at 40% 80%, rgba(141,16,20,.75) 0 1px, transparent 1.6px);
  background-size: 11px 13px, 17px 19px, 23px 21px; filter: blur(.2px);
}
.grain-layer::after { background: linear-gradient(90deg, rgba(0,0,0,.78), transparent 35% 68%, rgba(0,0,0,.35)); }
.auth-glow { position: fixed; width: 420px; height: 420px; border-radius: 50%; filter: blur(100px); pointer-events: none; opacity: .3; }
.auth-glow-a { left: -170px; top: 20%; background: #b01218; }
.auth-glow-b { right: -130px; bottom: 8%; background: #e51f25; }
.auth-center { position: relative; z-index: 2; width: min(470px, calc(100% - 32px)); padding: 42px 0; }
.auth-card { border: 1px solid rgba(255,255,255,.13); border-radius: 21px; padding: 30px; background: rgba(22,22,23,.94); box-shadow: 0 40px 110px rgba(0,0,0,.72); backdrop-filter: blur(18px); }
.auth-brand { display: flex; justify-content: center; margin-bottom: 24px; }
.auth-brand img { width: min(220px, 72%); display: block; }
.auth-copy { text-align: center; margin-bottom: 22px; }
.kicker, .page-kicker, .modal-kicker { color: #ff5a60; font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.auth-copy h1 { margin: 9px 0 8px; font-size: clamp(27px, 4.5vw, 34px); line-height: 1.05; letter-spacing: -.045em; }
.auth-copy p { margin: 0; color: var(--muted); line-height: 1.55; }
.auth-form { display: grid; gap: 12px; }
.field-label { color: #ddd; font-weight: 720; font-size: 14px; }
.key-input-wrap { min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 15px; border: 1px solid var(--stroke-strong); border-radius: 14px; background: #252527; transition: .18s; }
.key-input-wrap:focus-within { border-color: #3f73eb; box-shadow: 0 0 0 3px rgba(63,115,235,.16); }
.key-input-wrap .icon { color: #737378; }
.key-input { width: 100%; border: 0; outline: 0; color: #fff; background: transparent; font: 760 18px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.key-input::placeholder { color: #656569; letter-spacing: .06em; }
.auth-form .btn { margin-top: 8px; }
.auth-security { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; color: #737378; font-size: 12px; text-align: center; }
.auth-foot { margin: 18px 0 0; color: rgba(255,255,255,.35); text-align: center; font-size: 10px; letter-spacing: .18em; }

/* Main application */
.app-shell { min-height: 100vh; background: #0c0c0d; }
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--header); display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 20px; border-bottom: 1px solid var(--stroke); background: rgba(15,15,16,.93); backdrop-filter: blur(14px); }
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-logo { width: 168px; max-height: 40px; object-fit: contain; object-position: left center; }
.admin-badge { padding: 5px 8px; border: 1px solid rgba(255,80,85,.26); border-radius: 7px; color: #ff686d; background: rgba(236,37,43,.08); font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.balance-pill { min-width: 96px; min-height: 44px; border: 1px solid rgba(255,255,255,.035); border-radius: 999px; padding: 0 18px; background: #1b1b1d; color: #f7f7f7; font-size: 17px; cursor: pointer; }
.balance-pill:hover { background: #242426; }
.user-avatar { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,72,78,.2); border-radius: 50%; background: linear-gradient(145deg, #a50e14, #db2228); color: #fff; font-size: 11px; font-weight: 900; cursor: pointer; }
.mobile-menu { display: none; }
.profile-menu { position: fixed; z-index: 60; right: 14px; top: calc(var(--header) - 2px); width: 282px; border: 1px solid var(--stroke-strong); border-radius: 16px; background: #202022; box-shadow: 0 28px 75px rgba(0,0,0,.62); overflow: hidden; animation: menu-in .16s ease-out; }
.profile-head { display: flex; align-items: center; gap: 13px; padding: 19px; }
.profile-avatar { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg,#8f0b11,#df242a); font-size: 13px; font-weight: 900; }
.profile-head strong, .profile-head span { display: block; }
.profile-head strong { font-size: 17px; }
.profile-head span { margin-top: 3px; color: var(--muted); }
.profile-menu > button { width: 100%; min-height: 50px; display: flex; align-items: center; gap: 13px; border: 0; padding: 0 20px; background: transparent; color: #ececee; text-align: left; cursor: pointer; }
.profile-menu > button:hover { background: rgba(255,255,255,.05); }
.profile-separator { height: 1px; background: var(--stroke); margin: 5px 0; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-7px) scale(.985); } }

.sidebar { position: fixed; z-index: 30; left: 0; top: var(--header); bottom: 0; width: var(--sidebar); padding: 13px 9px 24px; border-right: 1px solid var(--stroke); background: #101011; overflow-y: auto; }
.nav-list { display: grid; gap: 3px; }
.nav-item { width: 100%; min-height: 58px; display: flex; align-items: center; gap: 16px; padding: 0 16px; border: 0; border-radius: 16px; background: transparent; color: #b8b8bc; font-size: 18px; font-weight: 660; text-align: left; cursor: pointer; transition: .16s; }
.nav-item .icon { width: 25px; height: 25px; color: #a5a5aa; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.045); }
.nav-item.active { color: #fff; background: #29292b; box-shadow: inset 0 0 0 1px rgba(255,255,255,.025); }
.nav-item.active .icon { color: #fff; }
.nav-divider { height: 1px; margin: 18px 8px; background: var(--stroke); }
.nav-heading { margin: 0 11px 8px; color: #616166; font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.sidebar-scrim { display: none; }

.main-content { min-height: 100vh; margin-left: var(--sidebar); padding: calc(var(--header) + 36px) clamp(24px, 3.7vw, 62px) 70px; background:
  radial-gradient(circle at 88% 5%, rgba(103,15,18,.08), transparent 28%),
  #0c0c0d; }
.page { width: min(1360px, 100%); margin: 0 auto; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.page-header h1 { margin: 7px 0 6px; font-size: clamp(31px, 3.5vw, 42px); line-height: 1; letter-spacing: -.05em; }
.page-header p { margin: 0; color: var(--muted); font-size: 14px; }
.page-header > .btn { margin-bottom: 2px; }
.section-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 44px 0 18px; }
.section-title-row h2 { margin: 0; font-size: 24px; letter-spacing: -.035em; }
.section-title-row p { margin: 6px 0 0; color: var(--muted); }

/* Home */
.home-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.home-topline h1 { margin: 0; display: flex; align-items: center; gap: 11px; font-size: 28px; letter-spacing: -.035em; }
.home-topline p { margin: 6px 0 0; color: var(--muted); }
.system-pill { display: flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid var(--stroke); border-radius: 999px; background: #141415; color: #aaa; font-size: 12px; }
.announcement-stack { display: grid; gap: 13px; }
.announcement { border: 1px solid var(--stroke); border-radius: 19px; padding: 24px; background: linear-gradient(135deg, #171719, #131314); box-shadow: 0 18px 55px rgba(0,0,0,.19); }
.announcement.featured { padding: 27px; background: linear-gradient(125deg, #19191a, #151516 70%, rgba(151,18,23,.2)); }
.announcement-meta { display: flex; align-items: center; gap: 12px; }
.team-avatar { width: 50px; height: 50px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--stroke-strong); border-radius: 50%; background: #111; }
.team-avatar img { width: 41px; }
.announcement-meta strong, .announcement-meta span { display: block; }
.announcement-meta span { margin-top: 3px; color: var(--muted); font-size: 13px; }
.verified { display: inline !important; color: #ff4c52 !important; font-size: 11px !important; }
.announcement h3 { margin: 21px 0 7px; font-size: 20px; letter-spacing: -.02em; }
.announcement p { margin: 0; color: #c9c9cc; font-size: 16px; line-height: 1.55; }
.announcement-foot { display: flex; align-items: center; gap: 8px; margin-top: 20px; color: #747478; font-size: 13px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.quick-card { min-height: 92px; display: grid; grid-template-columns: 48px 1fr 22px; align-items: center; gap: 13px; border: 1px solid var(--stroke); border-radius: 16px; padding: 15px; background: #151516; text-align: left; cursor: pointer; transition: .18s; }
.quick-card:hover { transform: translateY(-2px); border-color: rgba(236,37,43,.3); background: #1b1b1d; }
.quick-card > svg { color: #666; }
.quick-icon { width: 46px; height: 46px; display: grid; place-items: center; padding: 11px; border-radius: 13px; background: rgba(236,37,43,.1); color: #ff6469; }
.quick-card strong, .quick-card span { display: block; }
.quick-card strong { margin-bottom: 4px; }
.quick-card div span { color: var(--muted); font-size: 13px; }

/* Proxy market */
.proxy-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.home-proxy-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.proxy-card { min-width: 0; border: 1px solid var(--stroke); border-radius: 18px; background: #151516; overflow: hidden; box-shadow: 0 18px 45px rgba(0,0,0,.18); transition: transform .2s, border-color .2s; }
.proxy-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.16); }
.proxy-art { position: relative; min-height: 152px; padding: 15px; overflow: hidden; background: linear-gradient(135deg,#3d1919,#ad2227); }
.proxy-art::before, .proxy-art::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); opacity: .7; }
.proxy-art::before { width: 180px; height: 180px; right: -55px; top: -65px; background: rgba(255,220,102,.45); }
.proxy-art::after { width: 120px; height: 120px; left: -35px; bottom: -50px; background: rgba(0,0,0,.35); }
.proxy-gradient-0 .proxy-art { background: linear-gradient(135deg,#0a5070,#2798c4 55%,#e4ad24); }
.proxy-gradient-1 .proxy-art { background: linear-gradient(135deg,#4b241b,#a46b3c 45%,#ddc49d); }
.proxy-gradient-2 .proxy-art { background: linear-gradient(135deg,#5a173d,#d53679 55%,#251032); }
.proxy-gradient-3 .proxy-art { background: linear-gradient(135deg,#103a2c,#24a76b 55%,#d7c428); }
.proxy-gradient-4 .proxy-art { background: linear-gradient(135deg,#24284f,#595ed0 55%,#ec6a42); }
.proxy-gradient-5 .proxy-art { background: linear-gradient(135deg,#501c1c,#bd262a 55%,#1c1c1d); }
.proxy-noise { position: absolute; inset: 0; opacity: .23; background-image: radial-gradient(circle, rgba(255,255,255,.65) 0 .7px, transparent .9px); background-size: 8px 8px; mix-blend-mode: overlay; }
.proxy-top { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 8px; }
.country-chip, .health-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; background: rgba(10,10,11,.72); backdrop-filter: blur(7px); font-size: 11px; font-weight: 850; }
.health-chip { color: #55e4a1; }
.proxy-art-copy { position: absolute; z-index: 2; left: 15px; right: 15px; bottom: 15px; }
.proxy-art-copy strong, .proxy-art-copy span { display: block; text-shadow: 0 1px 14px rgba(0,0,0,.55); }
.proxy-art-copy strong { font-size: 20px; letter-spacing: -.035em; }
.proxy-art-copy span { margin-top: 3px; font-size: 12px; color: rgba(255,255,255,.83); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proxy-body { padding: 15px; }
.proxy-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 13px; }
.proxy-tags span { padding: 4px 7px; border-radius: 6px; background: #222225; color: #aaa; font-size: 10px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.proxy-location { min-width: 0; }
.proxy-location strong, .proxy-location span { display: block; }
.proxy-location strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proxy-location span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.proxy-stats { display: flex; justify-content: space-between; gap: 10px; margin: 14px 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.065); color: #777; font-size: 11px; }
.proxy-stats b { color: #bbb; }
.proxy-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.proxy-buy > strong { color: #78a1ff; font-size: 19px; }
.filter-panel { display: grid; grid-template-columns: repeat(6, minmax(110px, 1fr)); gap: 10px; padding: 14px; border: 1px solid var(--stroke); border-radius: 17px; background: #131314; }
.filter-field { display: grid; gap: 6px; }
.filter-field label { color: #6f6f74; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.filter-field input, .filter-field select, .stack-form input, .stack-form select, .stack-form textarea { width: 100%; min-height: 43px; border: 1px solid var(--stroke); border-radius: 10px; padding: 0 11px; outline: 0; color: #eee; background: #202022; }
.filter-field input:focus, .filter-field select:focus, .stack-form input:focus, .stack-form select:focus, .stack-form textarea:focus { border-color: rgba(94,143,255,.75); box-shadow: 0 0 0 3px rgba(94,143,255,.12); }
.filter-submit, .filter-reset { align-self: end; }
.market-summary { display: flex; justify-content: space-between; gap: 15px; margin: 18px 2px 12px; color: var(--muted); font-size: 13px; }
.market-summary b { color: #fff; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; color: var(--muted); }
.skeleton-card { min-height: 340px; padding: 15px; }
.skeleton-card div { height: 130px; margin-bottom: 14px; border-radius: 13px; background: linear-gradient(90deg,#1b1b1d,#27272a,#1b1b1d); background-size: 220% 100%; animation: shimmer 1.2s infinite; }
.skeleton-card div:nth-child(2) { height: 24px; }
.skeleton-card div:nth-child(3) { height: 80px; }
@keyframes shimmer { to { background-position: -220% 0; } }

/* Orders */
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--stroke); border-radius: 16px; background: #141415; overflow: hidden; margin-bottom: 20px; }
.stat-strip > div { padding: 18px 22px; border-right: 1px solid var(--stroke); }
.stat-strip > div:last-child { border: 0; }
.stat-strip span, .stat-strip strong { display: block; }
.stat-strip span { color: var(--muted); font-size: 12px; }
.stat-strip strong { margin-top: 5px; font-size: 22px; }
.order-list { display: grid; gap: 13px; }
.order-card { border: 1px solid var(--stroke); border-radius: 18px; padding: 20px; background: #151516; }
.order-head { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 13px; padding-bottom: 17px; border-bottom: 1px solid rgba(255,255,255,.07); }
.order-flag { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--stroke); border-radius: 14px; background: #212123; font-size: 24px; }
.order-flag.large { width: 62px; height: 62px; border-radius: 17px; font-size: 30px; }
.order-head h3 { margin: 0; font-size: 18px; }
.order-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.status-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 24px; padding: 3px 8px; border: 1px solid var(--stroke); border-radius: 999px; color: #aaa; background: rgba(255,255,255,.035); font-size: 10px; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.status-active, .status-finished, .status-online, .status-official { color: #57e5a5; background: rgba(54,216,144,.09); border-color: rgba(54,216,144,.18); }
.status-offline, .status-failed, .status-expired, .status-creation_failed { color: #ff7b80; background: rgba(236,37,43,.09); border-color: rgba(236,37,43,.2); }
.status-manual_review, .status-waiting, .status-confirming, .status-sending, .status-reserved, .status-standby { color: #ffc45d; background: rgba(255,183,46,.08); border-color: rgba(255,183,46,.18); }
.status-refunded { color: #7ba2ff; background: rgba(94,143,255,.09); border-color: rgba(94,143,255,.2); }
.order-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 20px; padding: 20px 0; }
.order-grid > div { min-width: 0; }
.order-grid span, .order-grid strong { display: block; }
.order-grid span { margin-bottom: 6px; color: #69696e; font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.order-grid strong { display: inline; color: #d8d8db; font-size: 13px; overflow-wrap: anywhere; }
.secret-value { filter: blur(3px); transition: .18s; }
.order-card:hover .secret-value { filter: none; }
.order-alert { padding: 11px 13px; border: 1px solid rgba(255,183,46,.18); border-radius: 10px; background: rgba(255,183,46,.06); color: #d8b266; font-size: 12px; }
.order-foot { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.07); color: #6f6f74; font-size: 12px; }

/* Wallet */
.wallet-hero-card { position: relative; overflow: hidden; min-height: 224px; display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; padding: 34px; border: 1px solid rgba(236,37,43,.22); border-radius: 23px; background: linear-gradient(120deg,#211012,#57161a 55%,#a21a20); box-shadow: 0 26px 75px rgba(84,10,14,.25); }
.wallet-hero-card::before { content: ""; position: absolute; inset: 0; opacity: .3; background-image: radial-gradient(circle, rgba(255,255,255,.7) 0 .6px, transparent .8px); background-size: 10px 10px; mix-blend-mode: overlay; }
.wallet-glow { position: absolute; width: 400px; height: 300px; right: -70px; top: -130px; border-radius: 50%; background: rgba(255,76,82,.38); filter: blur(60px); }
.wallet-hero-card > * { position: relative; z-index: 1; }
.wallet-hero-card span { color: rgba(255,255,255,.65); font-size: 11px; font-weight: 900; letter-spacing: .13em; }
.wallet-hero-card h1 { margin: 9px 0 10px; font-size: clamp(48px, 7vw, 72px); line-height: .95; letter-spacing: -.055em; }
.wallet-hero-card p { margin: 0; color: rgba(255,255,255,.72); }
.wallet-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; }
.data-panel, .table-wrap { border: 1px solid var(--stroke); border-radius: 16px; background: #141415; overflow: hidden; }
.data-head { min-height: 44px; background: #1a1a1c; color: #717176; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.data-row { border-top: 1px solid rgba(255,255,255,.065); }
.wallet-row { display: grid; grid-template-columns: 1.5fr 1fr .7fr; align-items: center; gap: 15px; padding: 12px 16px; }
.wallet-row > div:first-child { display: flex; align-items: center; gap: 12px; }
.wallet-row strong, .wallet-row span { display: block; }
.wallet-row > span { color: var(--muted); font-size: 12px; }
.wallet-row > strong { text-align: right; font-size: 13px; }
.wallet-row div strong { font-size: 13px; }
.wallet-row div div span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.activity-icon { width: 34px; height: 34px; display: grid !important; place-items: center; border-radius: 10px; background: #222225; font-weight: 900; }
.activity-deposit, .activity-refund { color: var(--green); background: rgba(54,216,144,.09); }
.activity-purchase { color: #ff7a7f; background: rgba(236,37,43,.09); }
.wallet-side { display: grid; gap: 14px; align-content: start; margin-top: 44px; }
.side-card { border: 1px solid var(--stroke); border-radius: 16px; padding: 16px; background: #141415; }
.side-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.side-card-head h3 { margin: 0; font-size: 15px; }
.side-card-head > span { min-width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #242426; color: #999; font-size: 11px; }
.deposit-mini { display: grid; grid-template-columns: 39px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.065); }
.deposit-mini:first-of-type { border-top: 0; }
.deposit-mini strong, .deposit-mini span { display: block; }
.deposit-mini div:nth-child(2) strong { font-size: 12px; }
.deposit-mini div:nth-child(2) span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.deposit-mini div:last-child { text-align: right; }
.deposit-mini div:last-child strong { margin-top: 5px; font-size: 11px; }
.coin { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 900; }
.coin-btc { background: #f7931a; }
.coin-ltc { background: #345d9d; }
.coin-usdt { background: #26a17b; }
.coin-xmr { background: linear-gradient(#f26822 0 53%, #4d4d4d 53%); }
.secure-card { background: linear-gradient(140deg,#171719,#111); }
.secure-icon { width: 43px; height: 43px; display: grid; place-items: center; padding: 11px; border-radius: 13px; background: rgba(94,143,255,.1); color: #7ca3ff; }
.secure-card h3 { margin: 13px 0 7px; }
.secure-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

/* Links, support and history */
.link-sections { display: grid; gap: 20px; }
.link-section { border: 1px solid var(--stroke); border-radius: 19px; padding: 22px; background: linear-gradient(140deg,#151516,#111112); }
.link-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 17px; }
.link-section-head > div { display: flex; align-items: center; gap: 12px; }
.link-section-head div > span { color: #ff5c62; font: 800 12px ui-monospace, monospace; }
.link-section-head h2 { margin: 0; font-size: 21px; }
.link-section-head p { margin: 0; color: var(--muted); font-size: 13px; }
.link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.link-card { min-width: 0; min-height: 72px; display: grid; grid-template-columns: 40px 1fr auto 20px; align-items: center; gap: 11px; border: 1px solid var(--stroke); border-radius: 13px; padding: 11px; background: #1b1b1d; transition: .18s; }
.link-card:hover { transform: translateY(-2px); border-color: rgba(236,37,43,.35); background: #202022; }
.link-icon { width: 39px; height: 39px; display: grid; place-items: center; padding: 10px; border-radius: 11px; background: rgba(236,37,43,.1); color: #ff666b; }
.link-card div strong, .link-card div span { display: block; min-width: 0; }
.link-card div strong { font-size: 13px; }
.link-card div span { max-width: 280px; margin-top: 3px; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-card > svg { color: #666; }
.link-status { display: flex; align-items: center; gap: 6px; color: #888; font-size: 10px; text-transform: uppercase; }
.status-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--green); }
.status-dot.status-standby { background: var(--amber); }
.support-hero { min-height: 240px; display: flex; align-items: center; padding: 35px; border: 1px solid var(--stroke); border-radius: 22px; background: radial-gradient(circle at 80% 40%,rgba(236,37,43,.3),transparent 35%), linear-gradient(130deg,#19191a,#301113); }
.support-hero div { max-width: 610px; }
.support-hero strong { margin-left: 8px; font-size: 12px; color: #9d9da1; }
.support-hero h2 { margin: 12px 0 10px; font-size: clamp(34px,5vw,54px); letter-spacing: -.055em; }
.support-hero p { margin: 0; color: #b2b2b6; line-height: 1.6; }
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.support-card { display: grid; grid-template-columns: 55px 1fr 22px; align-items: center; gap: 14px; min-height: 112px; border: 1px solid var(--stroke); border-radius: 16px; padding: 17px; background: #151516; transition: .18s; }
.support-card:hover { transform: translateY(-2px); border-color: rgba(236,37,43,.3); }
.support-icon { width: 53px; height: 53px; display: grid; place-items: center; padding: 14px; border-radius: 15px; background: rgba(236,37,43,.1); color: #ff6167; }
.support-card span { color: #ff6268; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.support-card h3 { margin: 5px 0 3px; }
.support-card p { margin: 0; color: var(--muted); font-size: 11px; }
.support-card > svg { color: #666; }
.history-block + .history-block { margin-top: 32px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th { height: 46px; padding: 0 14px; background: #1a1a1c; color: #747479; font-size: 10px; font-weight: 900; letter-spacing: .075em; text-align: left; text-transform: uppercase; }
td { padding: 13px 14px; border-top: 1px solid rgba(255,255,255,.065); color: #c7c7ca; font-size: 12px; vertical-align: middle; }
td a { color: #81a5ff; }
.table-empty { padding: 38px 14px; text-align: center; color: var(--muted); }
.table-sub { display: block; max-width: 260px; margin-top: 4px; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.table-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.table-user { display: flex; align-items: center; gap: 10px; }
.table-user > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg,#771015,#c41b22); color: #fff; font-size: 10px; font-weight: 900; }
.table-user strong, .table-user small { display: block; }
.table-user small { margin-top: 2px; color: var(--muted); text-transform: capitalize; }

/* Admin */
.admin-shell { --red: #ff4046; }
.admin-page-header { border-bottom: 1px solid var(--stroke); padding-bottom: 25px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric-card { min-height: 145px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--stroke); border-radius: 17px; padding: 21px; background: linear-gradient(145deg,#171718,#121213); }
.metric-card span, .metric-card strong, .metric-card small { display: block; }
.metric-card span { color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.metric-card strong { margin: 12px 0 6px; font-size: 34px; letter-spacing: -.04em; }
.metric-card small { color: #69696e; }
.alert-metric { border-color: rgba(255,183,46,.18); background: linear-gradient(145deg,#201913,#141313); }
.alert-metric strong { color: #ffc258; }
.admin-callouts { display: grid; gap: 10px; margin-top: 18px; }
.admin-callouts button { display: grid; grid-template-columns: 52px 1fr 24px; align-items: center; gap: 15px; min-height: 94px; border: 1px solid var(--stroke); border-radius: 16px; padding: 16px; background: #151516; text-align: left; cursor: pointer; }
.admin-callouts button:hover { background: #1b1b1d; border-color: rgba(236,37,43,.28); }
.admin-callouts button > span { width: 50px; height: 50px; display: grid; place-items: center; padding: 13px; border-radius: 14px; background: rgba(236,37,43,.1); color: #ff6066; }
.admin-callouts h3, .admin-callouts strong, .admin-callouts p { margin: 0; }
.admin-callouts p { margin-top: 5px; color: var(--muted); font-size: 12px; }
.admin-callouts button > svg { color: #666; }
.admin-announcement-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.admin-announcement { border: 1px solid var(--stroke); border-radius: 16px; padding: 20px; background: #151516; }
.admin-announcement > div { display: flex; align-items: center; justify-content: space-between; }
.admin-announcement small { color: var(--muted); }
.admin-announcement h3 { margin: 17px 0 8px; }
.admin-announcement p { min-height: 44px; margin: 0; color: #aaa; line-height: 1.55; }
.admin-announcement footer { display: flex; gap: 7px; margin-top: 18px; }

/* Empty states */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 180px; gap: 7px; padding: 25px; color: var(--muted); text-align: center; }
.empty-state strong { color: #d7d7da; font-size: 17px; }
.empty-state.compact { min-height: 100px; }
.empty-state.wide { grid-column: 1 / -1; min-height: 260px; border: 1px dashed var(--stroke-strong); border-radius: 17px; background: rgba(255,255,255,.018); }
.empty-state .btn { margin-top: 12px; }

/* Modals */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; background: rgba(0,0,0,.78); backdrop-filter: blur(9px); animation: backdrop-in .16s; }
.modal { width: min(550px, 100%); max-height: calc(100vh - 44px); overflow-y: auto; border: 1px solid var(--stroke-strong); border-radius: 22px; background: #1b1b1d; box-shadow: 0 35px 100px rgba(0,0,0,.75); animation: modal-in .18s ease-out; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 25px 27px 20px; border-bottom: 1px solid rgba(255,255,255,.07); }
.modal-head h2 { margin: 7px 0 4px; font-size: 26px; letter-spacing: -.04em; }
.modal-head p { margin: 0; color: var(--muted); line-height: 1.45; }
.modal-content { padding: 24px 27px 27px; }
.modal-note { margin: 16px 0 0; color: #77777b; font-size: 11px; line-height: 1.55; text-align: center; }
@keyframes backdrop-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.purchase-preview { display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 13px; padding: 14px; border: 1px solid var(--stroke); border-radius: 15px; background: #141415; }
.purchase-preview h3 { margin: 0; }
.purchase-preview p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.purchase-preview > strong { color: #7da3ff; font-size: 21px; }
.confirmation-list { margin: 14px 0; border: 1px solid var(--stroke); border-radius: 14px; overflow: hidden; }
.confirmation-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 13px; border-top: 1px solid rgba(255,255,255,.065); }
.confirmation-list > div:first-child { border-top: 0; }
.confirmation-list span { color: var(--muted); font-size: 12px; }
.confirmation-list b { font-size: 12px; }
.asset-list { display: grid; gap: 6px; }
.asset-option { width: 100%; display: grid; grid-template-columns: 48px 1fr 22px; align-items: center; gap: 13px; border: 1px solid transparent; border-radius: 13px; padding: 9px; background: transparent; text-align: left; cursor: pointer; }
.asset-option:hover { border-color: var(--stroke); background: rgba(255,255,255,.035); }
.asset-option strong, .asset-option span { display: block; }
.asset-option div span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.asset-option > svg { color: #666; }
.amount-input-wrap { display: flex; align-items: center; min-height: 76px; border: 1px solid var(--stroke-strong); border-radius: 15px; padding: 0 17px; background: #222224; }
.amount-input-wrap > span { color: #777; font-size: 28px; }
.amount-input-wrap input { width: 100%; border: 0; outline: 0; padding: 0 9px; color: #fff; background: transparent; font-size: 34px; font-weight: 800; }
.quick-amounts { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; margin: 10px 0 18px; }
.quick-amounts button { min-height: 38px; border: 1px solid var(--stroke); border-radius: 9px; background: #222224; color: #aaa; cursor: pointer; }
.quick-amounts button:hover { border-color: rgba(236,37,43,.3); color: #fff; }
.payment-box { border: 1px solid var(--stroke); border-radius: 16px; padding: 18px; background: #141415; }
.qr-box { width: 190px; height: 190px; margin: 0 auto 18px; padding: 7px; border-radius: 13px; background: #fff; }
.qr-box img { width: 100%; height: 100%; display: block; }
.payment-field { display: grid; grid-template-columns: 1fr auto 30px; align-items: center; gap: 9px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.065); }
.payment-field > span { grid-column: 1 / -1; color: #727277; font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.payment-field strong { overflow-wrap: anywhere; font-size: 12px; }
.payment-field .address { max-width: 410px; }
.payment-status { display: flex; align-items: center; gap: 12px; margin-top: 15px; padding: 12px; border-radius: 12px; background: rgba(255,183,46,.07); }
.payment-status i { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(255,183,46,.5); animation: pulse 1.7s infinite; }
.payment-status strong, .payment-status span { display: block; }
.payment-status span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.payment-status.status-finished { background: rgba(54,216,144,.07); }
.payment-status.status-finished i { background: var(--green); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(255,183,46,0); } }
.stack-form { display: grid; gap: 13px; }
.stack-form label { display: grid; gap: 7px; color: #c7c7ca; font-size: 12px; font-weight: 720; }
.stack-form textarea { min-height: 110px; padding: 11px; resize: vertical; }
.two-column-form { grid-template-columns: 1fr 1fr; }
.two-column-form .full { grid-column: 1 / -1; }
.check-label { display: flex !important; align-items: center; gap: 8px !important; min-height: 43px; padding: 0 10px; border: 1px solid var(--stroke); border-radius: 10px; background: #202022; }
.check-label input { width: auto; min-height: 0; }
.key-reveal { display: grid; gap: 12px; text-align: center; }
.key-reveal > span { color: var(--muted); }
.key-reveal > strong { padding: 18px 12px; border: 1px solid rgba(94,143,255,.25); border-radius: 13px; background: rgba(94,143,255,.07); color: #9ab6ff; font-size: clamp(18px,5vw,25px); letter-spacing: .08em; }
.danger-note { margin-top: 14px; padding: 12px; border: 1px solid rgba(255,183,46,.18); border-radius: 11px; background: rgba(255,183,46,.06); color: #cba45f; font-size: 11px; line-height: 1.5; text-align: center; }

/* Toasts */
.toast-root { position: fixed; z-index: 300; right: 18px; bottom: 18px; width: min(370px, calc(100% - 36px)); display: grid; gap: 9px; }
.toast { display: flex; align-items: center; gap: 10px; min-height: 51px; border: 1px solid var(--stroke-strong); border-radius: 13px; padding: 11px 14px; background: #242426; box-shadow: 0 20px 55px rgba(0,0,0,.55); animation: toast-in .2s ease-out; transition: opacity .2s, transform .2s; }
.toast-mark { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #aaa; }
.toast-success .toast-mark { background: var(--green); }
.toast-error .toast-mark { background: #ff666b; }
.toast-warning .toast-mark { background: var(--amber); }
.toast-out { opacity: 0; transform: translateY(7px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(9px); } }

@media (max-width: 1280px) {
  :root { --sidebar: 224px; }
  .main-content { padding-left: 34px; padding-right: 34px; }
  .proxy-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-proxy-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-browser-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --sidebar: 0px; }
  .mobile-menu { display: grid; }
  .topbar { padding: 0 12px; }
  .topbar-logo { width: 158px; }
  .sidebar { width: min(310px, 87vw); transform: translateX(-103%); transition: transform .2s; box-shadow: 30px 0 70px rgba(0,0,0,.55); }
  .menu-open .sidebar { transform: translateX(0); }
  .sidebar-scrim { position: fixed; z-index: 25; inset: var(--header) 0 0 0; display: block; border: 0; background: rgba(0,0,0,.58); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .menu-open .sidebar-scrim { opacity: 1; pointer-events: auto; }
  .main-content { margin-left: 0; padding: calc(var(--header) + 34px) 20px 65px; }
  .quick-grid, .home-proxy-grid { grid-template-columns: 1fr; }
  .wallet-layout { grid-template-columns: 1fr; }
  .wallet-side { margin-top: 0; grid-template-columns: 1fr 1fr; }
  .order-grid { grid-template-columns: repeat(2, 1fr); }
  .link-grid, .support-grid { grid-template-columns: 1fr; }
  .admin-announcement-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .balance-pill { display: none; }
  .page-header, .home-topline, .section-title-row, .link-section-head { align-items: flex-start; flex-direction: column; }
  .page-header h1 { font-size: 36px; }
  .proxy-grid { grid-template-columns: 1fr; }
  .filter-browser-grid { grid-template-columns: 1fr; }
  .filter-controls { grid-template-columns: 1fr; }
  .filter-actions { width: 100%; }
  .filter-actions .btn { flex: 1; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat-strip > div { border-right: 0; border-bottom: 1px solid var(--stroke); }
  .stat-strip > div:last-child { border-bottom: 0; }
  .order-head { grid-template-columns: 48px 1fr; }
  .order-head .status-badge { grid-column: 1 / -1; justify-self: start; }
  .order-grid { grid-template-columns: 1fr; }
  .wallet-hero-card { align-items: flex-start; flex-direction: column; padding: 26px; }
  .wallet-hero-card .btn { width: 100%; }
  .wallet-side { grid-template-columns: 1fr; }
  .wallet-row { grid-template-columns: 1fr auto; }
  .wallet-row > span { grid-column: 1; }
  .wallet-row > strong { grid-column: 2; grid-row: 1 / 3; }
  .data-head.wallet-row { display: none; }
  .metric-grid { grid-template-columns: 1fr; }
  .two-column-form { grid-template-columns: 1fr; }
  .two-column-form .full { grid-column: auto; }
  .quick-amounts { grid-template-columns: repeat(2,1fr); }
  .modal-head, .modal-content { padding-left: 19px; padding-right: 19px; }
  .auth-card { padding: 27px 20px; }
  .profile-menu { right: 9px; width: calc(100% - 18px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.admin-key-list { display: grid; gap: 8px; max-height: 300px; overflow: auto; padding-right: 3px; }
.admin-key-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--stroke); border-radius: 11px; background: #1b1b1d; }
.admin-key-row > div { min-width: 0; display: grid; gap: 4px; }
.admin-key-row strong { font-size: 12px; color: #d8d8dc; }
.admin-key-row span { color: var(--muted); font-size: 10px; }
.admin-key-create { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--stroke); }
.empty-state.compact { min-height: 110px; padding: 20px; }


/* Compact production scale and live catalog filters */
body { font-size: 14px; }
.auth-divider { display: flex; align-items: center; gap: 11px; margin: 17px 0 12px; color: #6b6b70; font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: rgba(255,255,255,.09); }
.auth-register-note { margin: 9px 10px 0; color: #78787d; font-size: 11px; line-height: 1.45; text-align: center; }

.handle-input { display: flex; align-items: center; min-height: 43px; border: 1px solid var(--stroke); border-radius: 10px; background: #202022; overflow: hidden; }
.handle-input:focus-within { border-color: rgba(94,143,255,.75); box-shadow: 0 0 0 3px rgba(94,143,255,.12); }
.handle-input > span { padding-left: 12px; color: #77777d; font-weight: 800; }
.handle-input input { border: 0 !important; box-shadow: none !important; background: transparent !important; }
.stack-form label > small { color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.4; }

.filter-browser { border: 1px solid var(--stroke); border-radius: 18px; padding: 16px; background: linear-gradient(180deg, #151516, #111112); box-shadow: 0 16px 45px rgba(0,0,0,.18); }
.filter-browser-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 2px 2px 14px; }
.filter-browser-head > div:first-child > span { color: #ff5a60; font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.filter-browser-head h2 { margin: 5px 0 3px; font-size: 21px; letter-spacing: -.035em; }
.filter-browser-head p { margin: 0; color: var(--muted); font-size: 11px; }
.filter-active-count { align-self: center; padding: 7px 10px; border: 1px solid rgba(236,37,43,.22); border-radius: 999px; background: rgba(236,37,43,.08); color: #ff858a; font-size: 10px; font-weight: 850; }
.filter-active-count.muted { border-color: var(--stroke); background: #1b1b1d; color: #77777c; }
.filter-select-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.filter-select-grid > label, .filter-controls-compact > label { min-width: 0; display: grid; gap: 6px; }
.filter-select-grid label > span, .filter-controls-compact label > span { color: #77777c; font-size: 10px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.filter-select-grid label > small { min-width: 0; color: #66666b; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filter-select-shell { display: flex; align-items: center; min-width: 0; height: 44px; border: 1px solid var(--stroke); border-radius: 11px; background: #202022; transition: border-color .15s, box-shadow .15s; }
.filter-select-shell:focus-within { border-color: rgba(94,143,255,.68); box-shadow: 0 0 0 3px rgba(94,143,255,.1); }
.filter-select-shell > b { flex: 0 0 auto; padding-left: 11px; font-size: 18px; }
.filter-select-shell select { min-width: 0; width: 100%; height: 100%; padding: 0 30px 0 11px; border: 0; outline: 0; background: transparent; color: #f0f0f2; font-weight: 700; cursor: pointer; }
.filter-select-shell option, .filter-controls-compact option { background: #202022; color: #eee; }
.filter-controls-compact { display: grid; grid-template-columns: repeat(3,minmax(150px,1fr)) auto; align-items: end; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.07); }
.filter-controls-compact select { width: 100%; min-height: 39px; border: 1px solid var(--stroke); border-radius: 10px; padding: 0 10px; outline: 0; background: #202022; color: #ececee; cursor: pointer; }
.filter-actions { display: flex; gap: 8px; }
.filter-actions .btn { white-space: nowrap; }
@media (max-width: 900px) {
  .filter-browser-head { flex-direction: column; }
  .filter-selected { justify-content: flex-start; max-width: 100%; }
  .filter-browser-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-actions { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .filter-browser { padding: 12px; }
  .filter-browser-grid { grid-template-columns: 1fr; }
  .filter-browser-column select { height: 155px; }
  .filter-controls { grid-template-columns: 1fr; }
  .filter-actions { grid-column: auto; }
}


/* v1.2 — premium crypto deposits */
.crypto-logo { display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 10px 28px rgba(0,0,0,.3); }
.crypto-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.crypto-logo-small { width: 36px; height: 36px; padding: 1px; }
.crypto-logo-medium { width: 48px; height: 48px; padding: 1px; }
.crypto-logo-large { width: 60px; height: 60px; padding: 2px; }
.deposit-modal { width: min(94vw, 670px); }
.deposit-asset-modal { width: min(94vw, 760px); }
.deposit-payment-modal { width: min(94vw, 780px); }
.deposit-modal .modal-head { padding-bottom: 18px; background: linear-gradient(180deg,rgba(237,28,36,.045),transparent); }
.deposit-modal .modal-kicker { color: #ff5b62; }
.deposit-trust-row { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 17px; }
.deposit-trust-row span { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 0 10px; border: 1px solid rgba(255,255,255,.07); border-radius: 999px; background: rgba(255,255,255,.025); color: #8f8f94; font-size: 10px; font-weight: 750; letter-spacing: .02em; }
.deposit-trust-row i { width: 7px; height: 7px; border-radius: 50%; background: #35d993; box-shadow: 0 0 14px rgba(53,217,147,.7); }
.asset-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.asset-card { position: relative; width: 100%; min-height: 126px; display: grid; grid-template-columns: 60px minmax(0,1fr) 22px; align-items: center; gap: 14px; padding: 17px; border: 1px solid rgba(255,255,255,.085); border-radius: 17px; background: linear-gradient(145deg,#202022,#171718); text-align: left; overflow: hidden; cursor: pointer; transition: transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease; }
.asset-card::after { content: ""; position: absolute; width: 130px; height: 130px; right: -72px; top: -72px; border-radius: 50%; background: rgba(237,28,36,.14); filter: blur(30px); opacity: 0; transition: opacity .18s ease; }
.asset-card:hover { transform: translateY(-2px); border-color: rgba(237,28,36,.45); background: linear-gradient(145deg,#262224,#19191a); box-shadow: 0 16px 38px rgba(0,0,0,.24); }
.asset-card:hover::after { opacity: 1; }
.asset-card-copy { min-width: 0; display: block; }
.asset-card-copy strong { display: inline; color: #f2f2f3; font-size: 16px; }
.asset-card-copy b { display: inline-flex; margin-left: 7px; padding: 2px 6px; border-radius: 5px; background: rgba(255,255,255,.06); color: #929298; font-size: 9px; letter-spacing: .09em; }
.asset-card-copy small,.asset-card-copy em { display: block; font-style: normal; }
.asset-card-copy small { margin-top: 5px; color: #a2a2a6; font-size: 11px; }
.asset-card-copy em { margin-top: 7px; color: #68686d; font-size: 10px; line-height: 1.35; }
.asset-card-arrow { color: #68686d; }
.asset-card-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.deposit-security-strip { display: flex; align-items: flex-start; gap: 12px; margin-top: 15px; padding: 13px 14px; border: 1px solid rgba(53,217,147,.12); border-radius: 13px; background: rgba(53,217,147,.035); }
.deposit-security-strip > span { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: #35d993; background: rgba(53,217,147,.09); }
.deposit-security-strip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.deposit-security-strip strong { display: block; color: #cfd0d1; font-size: 11px; }
.deposit-security-strip p { margin: 3px 0 0; color: #727277; font-size: 10px; line-height: 1.45; }
.selected-asset-banner,.payment-asset-heading { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; margin-bottom: 16px; padding: 13px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: linear-gradient(120deg,#202022,#171718); }
.selected-asset-banner strong,.selected-asset-banner span,.payment-asset-heading strong,.payment-asset-heading span { display: block; }
.selected-asset-banner strong,.payment-asset-heading strong { font-size: 13px; }
.selected-asset-banner span,.payment-asset-heading span { margin-top: 3px; color: #74747a; font-size: 10px; }
.selected-asset-banner > b,.payment-asset-heading > b { padding: 5px 8px; border-radius: 7px; background: rgba(255,255,255,.055); color: #ababaf; font-size: 10px; letter-spacing: .08em; }
.amount-label { display: flex; justify-content: space-between; margin: 0 2px 7px; color: #a2a2a7; font-size: 11px; font-weight: 780; }
.amount-label span { color: #626267; font-size: 9px; letter-spacing: .12em; }
.amount-input-wrap.premium { min-height: 86px; border-color: rgba(255,255,255,.12); background: linear-gradient(145deg,#242426,#1d1d1f); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.amount-input-wrap.premium:focus-within { border-color: rgba(237,28,36,.55); box-shadow: 0 0 0 3px rgba(237,28,36,.08); }
.amount-input-wrap.premium input { font-size: 40px; letter-spacing: -.04em; }
.amount-input-wrap.premium small { color: #66666b; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.quick-amounts.premium { margin-bottom: 10px; }
.quick-amounts.premium button { min-height: 42px; background: #1d1d1f; font-weight: 760; }
.quick-amounts.premium button:hover { background: rgba(237,28,36,.08); }
.deposit-limit-row { display: flex; justify-content: space-between; margin: 0 2px 17px; color: #66666b; font-size: 9px; }
.deposit-continue { min-height: 52px; }
.payment-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 14px; }
.payment-qr-panel,.payment-detail-panel { border: 1px solid rgba(255,255,255,.075); border-radius: 16px; background: #151516; }
.payment-qr-panel { display: grid; place-items: center; align-content: center; padding: 18px; }
.payment-qr-panel > span { margin-top: 4px; color: #707075; font-size: 10px; }
.qr-box.premium { width: 182px; height: 182px; margin: 0 0 12px; padding: 9px; border-radius: 16px; box-shadow: 0 15px 38px rgba(0,0,0,.26); }
.qr-loading { display: grid; place-items: center; color: #555; font-size: 10px; }
.payment-detail-panel { padding: 10px 17px 16px; }
.payment-field.premium { padding: 15px 0; }
.payment-field.premium:first-child { border-top: 0; }
.payment-field.premium > span { color: #66666b; }
.payment-field.premium strong { font-size: 13px; }
.payment-field.premium .copy-inline { border: 1px solid rgba(255,255,255,.07); border-radius: 8px; background: rgba(255,255,255,.025); }
.network-warning { display: grid; gap: 3px; margin-top: 13px; padding: 12px 14px; border: 1px solid rgba(255,183,46,.14); border-radius: 12px; background: rgba(255,183,46,.045); }
.network-warning strong { color: #d6b66d; font-size: 10px; }
.network-warning span { color: #746b58; font-size: 9px; line-height: 1.45; }
.deposit-mini .crypto-logo { grid-column: 1; }
@media (max-width: 720px) {
  .asset-grid { grid-template-columns: 1fr; }
  .asset-card { min-height: 108px; }
  .payment-layout { grid-template-columns: 1fr; }
  .payment-qr-panel { padding-bottom: 13px; }
  .deposit-modal .modal-head,.deposit-modal .modal-content { padding-left: 19px; padding-right: 19px; }
}
@media (max-width: 480px) {
  .crypto-logo-large { width: 52px; height: 52px; }
  .asset-card { grid-template-columns: 52px minmax(0,1fr) 18px; padding: 14px; }
  .amount-input-wrap.premium input { font-size: 34px; }
  .quick-amounts.premium { grid-template-columns: repeat(2,1fr); }
  .deposit-limit-row { gap: 10px; flex-direction: column; }
}

@media (max-width: 1050px) {
  .filter-select-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filter-controls-compact { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .filter-browser-head { flex-direction: column; }
  .filter-select-grid,.filter-controls-compact { grid-template-columns: 1fr; }
  .filter-actions { width: 100%; }
  .filter-actions .btn { flex: 1; }
}
