:root {
  --bg: #0d1629;
  --panel: #07101f;
  --panel-2: #18252d;
  --line: #05c9ee;
  --blue: #149cff;
  --purple: #392071;
  --text: #f5f7ff;
  --muted: #8c95a8;
  --admin-bg: #f3f4fb;
  --admin-nav: #07145d;
  --admin-accent: #442bff;
  --danger: #ff334f;
  --good: #20c979;
  --warn: #ff9d2f;
  font-family: "Trebuchet MS", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: .4px; }
.mark { width: 40px; height: 30px; position: relative; display: inline-block; }
.mark:before, .mark:after { content: ""; position: absolute; background: linear-gradient(135deg,#75e18a,#f6fff8); transform: skew(-24deg); }
.mark:before { width: 13px; height: 25px; left: 10px; bottom: 0; }
.mark:after { width: 9px; height: 32px; left: 24px; bottom: 0; }
.mark span { position: absolute; width: 28px; height: 8px; border-left: 5px solid #81e098; border-bottom: 5px solid #fff; transform: rotate(-35deg); left: 0; bottom: 5px; }
.brand small { display: block; color: var(--muted); font-size: 8px; letter-spacing: 1.4px; }
.brand b { color: #fff; font-size: 18px; }
.brand b i { color: #5dd16b; font-style: normal; }

.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 30%, #13233c, #0b1427 56%, #0d1225); overflow-x: hidden; }
.auth-card { width: min(420px, calc(100vw - 32px)); background: #050b17; border: 1px solid #047686; border-radius: 18px; padding: 46px 38px 38px; box-shadow: 0 0 30px #0008; }
.auth-card.register-card { width: min(560px, calc(100vw - 32px)); }
.admin-login-page { background: radial-gradient(circle at 50% 42%, #3527a7 0 12%, transparent 13%), linear-gradient(135deg,#1320a8,#1b0b72 58%,#030b45); }
.admin-login-card { border: 0; background: #1a1264; box-shadow: 0 22px 70px #0008; }
.admin-login-card:before { content: ""; display: block; height: 76px; margin: -46px -38px 28px; border-radius: 18px 18px 45% 45%; background: linear-gradient(135deg,#4d38ff,#341de4); }
.admin-login-note { color: #dce8ff; text-align: center; line-height: 1.6; margin: -8px 0 22px; font-size: 12px; }
.auth-card .brand { justify-content: center; margin-bottom: 20px; }
.auth-title { text-align: center; color: #b8ebff; letter-spacing: 4px; font-size: 14px; margin-bottom: 34px; text-transform: uppercase; }
.form-grid { display: grid; gap: 17px; min-width: 0; }
.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.full-field { grid-column: 1 / -1; }
.field { min-width: 0; }
.field label, .form-row label { display: block; font-size: 11px; color: #a0a5b5; font-weight: 800; margin-bottom: 8px; text-transform: uppercase; }
.input-wrap { display: flex; width: 100%; border: 1px solid #5834ba; border-radius: 8px; overflow: hidden; background: #14151d; min-height: 50px; }
.icon-box { flex: 0 0 48px; width: 48px; display: grid; place-items: center; background: #326db5; color: #02131d; font-weight: 900; }
.input-wrap input, .input-wrap select { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; padding: 0 14px; outline: 0; }
.captcha { border: 1px dashed #26334d; border-radius: 8px; padding: 12px; background: #101621; overflow: hidden; }
.captcha-code { width: min(180px, calc(100% - 24px)); margin: 0 auto 12px; height: 42px; display: grid; place-items: center; background: #050038; color: #e4e6ff; font-size: 27px; letter-spacing: 12px; transform: rotate(-3deg); font-weight: 900; }
.captcha-code { position: relative; overflow: hidden; text-shadow: 2px 2px 0 #4850a8; }
.captcha-code:before { content: ""; position: absolute; inset: 8px 0 auto; height: 2px; background: #19c3ff66; box-shadow: 0 10px 0 #ffffff24, 0 20px 0 #19c3ff35; }
.captcha-helper { display: block; margin: -4px auto 10px; border: 1px solid #1aaeee; background: transparent; color: #9ce8ff; border-radius: 999px; min-height: 26px; padding: 0 12px; font-size: 11px; font-weight: 900; }
.captcha-helper:hover { background: #102d43; }
.captcha-tilt { transform: rotate(-3deg) skewX(-8deg); }
.captcha-neon { background: #050038; color: #e4e6ff; border: 1px solid #2734b8; }
.captcha-stripe { background: repeating-linear-gradient(135deg,#07121f 0 8px,#151e36 8px 16px); color: #c5ffef; border: 1px solid #0ac18e; }
.captcha-glass { background: linear-gradient(135deg,#25334caa,#070b18); color: #fff; border: 1px solid #9fc7ff; }
.check-line { display: flex; gap: 8px; align-items: center; color: #cfd6e4; font-size: 12px; margin: 10px 0; }
.terms-line { align-items: flex-start; line-height: 1.45; }
.terms-line input { flex: 0 0 auto; margin-top: 3px; }
.terms-line span { min-width: 0; overflow-wrap: anywhere; }
.text-link { border: 0; padding: 0; margin: 0; background: transparent; color: #19c3ff; font-weight: 900; text-transform: none; box-shadow: none; min-height: 0; }
.btn { border: 0; border-radius: 7px; min-height: 43px; padding: 0 18px; background: var(--blue); color: #fff; font-weight: 900; text-transform: uppercase; box-shadow: 0 7px 16px #008cff35; }
.btn.ghost { background: transparent; border: 1px solid #38506f; box-shadow: none; }
.btn.small { min-height: 28px; padding: 0 10px; font-size: 11px; }
.auth-foot { text-align: center; color: var(--muted); margin-top: 14px; font-size: 13px; }
.link { color: #19c3ff; font-weight: 900; }

.user-shell { min-height: 100vh; background: #0c172a; }
.top-strip { height: 32px; background: linear-gradient(180deg,#26126c,#070208); display: flex; justify-content: center; align-items: center; gap: 38%; font-size: 11px; }
.user-nav { min-height: 74px; background: #020407; border-bottom: 2px solid #03c9ea; display: flex; align-items: center; justify-content: space-between; padding: 0 max(20px, 18vw); position: sticky; top: 0; z-index: 3; }
.nav-links { display: flex; gap: 20px; align-items: center; font-size: 12px; font-weight: 800; }
.nav-links button, .profile-btn { color: #fff; background: transparent; border: 0; font-weight: 800; white-space: nowrap; }
.profile { position: relative; }
.profile-btn { min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-radius: 999px; background: #0b1821; border: 1px solid #24414d; }
.profile-btn span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg,#24d47b,#18b8ff); color: #031018; font-size: 11px; font-weight: 900; }
.profile-btn i { max-width: 90px; overflow: hidden; text-overflow: ellipsis; font-style: normal; color: #dceefa; }
.profile-menu { display: none; position: absolute; right: 0; top: 50px; width: 260px; background: #0d1b24; border: 1px solid #29576a; border-radius: 12px; z-index: 20; padding: 8px; box-shadow: 0 18px 44px #0009; }
.profile:hover .profile-menu { display: block; }
.profile-menu:before { content: ""; position: absolute; top: -8px; right: 22px; width: 14px; height: 14px; background: #0d1b24; border-left: 1px solid #29576a; border-top: 1px solid #29576a; transform: rotate(45deg); }
.profile-head { padding: 12px; border-bottom: 1px solid #223843; margin-bottom: 6px; }
.profile-head strong, .profile-head small { display: block; overflow: hidden; text-overflow: ellipsis; }
.profile-head small { color: #8ea7b5; margin-top: 3px; }
.menu-item { width: 100%; border: 0; background: transparent; color: #eaf6ff; display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 8px; padding: 10px; border-radius: 8px; text-align: left; }
.menu-item:hover { background: #152c38; }
.menu-item span { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #14384a; color: #22c6ff; font-weight: 900; }
.menu-item b { font-size: 13px; }
.danger-text { color: #ff9baa; }
.danger-text span { color: #ff5b72; background: #3a1822; }
.hero { height: 170px; display: grid; place-items: center; background: linear-gradient(#0d1a22cc,#1b2730cc), radial-gradient(circle at 40% 50%, #44515a, #202b31 50%, #11191d); color: white; }
.hero h1 { font-size: clamp(26px,4vw,42px); margin: 0; text-align: center; }
.section { background: #1b282e; padding: 58px 18px; min-height: 280px; }
.container { width: min(860px, 100%); margin: 0 auto; }
.wide { width: min(1160px, 100%); }
.credit { background: #1a2944; border: 1px solid #315b91; display: flex; justify-content: space-between; padding: 12px 16px; border-radius: 4px; font-weight: 900; margin-bottom: 16px; }
.actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 12px 0; }
.notice { background: #111b24; border-left: 3px solid var(--danger); padding: 13px; margin: 16px 0; font-size: 12px; }
.notice b { color: #ff3048; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { display: flex; min-height: 70px; border: 1px solid #36537a; border-radius: 5px; background: #172841; overflow: hidden; }
.stat .sicon { width: 55px; display: grid; place-items: center; background: #332071; font-size: 20px; }
.stat div:last-child { padding: 12px; }
.stat strong { display: block; font-size: 16px; }
.stat small { color: #b5c2d4; }
.table-wrap { overflow-x: auto; border-radius: 4px; }
table { width: 100%; border-collapse: collapse; min-width: 650px; background: #182742; }
th { background: #2b4568; color: #17bbff; padding: 12px; font-size: 11px; }
td { padding: 14px 12px; border-top: 1px solid #314258; text-align: center; color: #b9c2cf; font-size: 12px; }
.ref-box { display: flex; margin: 18px 0; }
.ref-box span { background: #149cff; padding: 12px; border-radius: 5px 0 0 5px; font-size: 12px; }
.ref-box input { flex: 1; border: 0; padding: 0 12px; }
.ref-box button { width: 46px; border-radius: 0 5px 5px 0; box-shadow: none; }

.coin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 610px; margin: 0 auto; }
.coin { border: 1px solid #627180; background: #17222a; text-align: center; padding: 8px; }
.coin h3 { margin: 0 0 8px; background: #465461; font-size: 12px; padding: 7px; }
.coin-logo { width: 92px; height: 92px; display: grid; place-items: center; margin: 0 auto 10px; }
.crypto-cell { display: inline-flex; align-items: center; gap: 12px; min-width: 180px; }
.crypto-cell b { display: block; color: #263756; font-size: 13px; line-height: 1.2; }
.crypto-cell small { display: block; color: #7b8393; font-size: 11px; margin-top: 3px; }
.crypto-icon { --coin-color: #149cff; position: relative; flex: 0 0 auto; width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 50%; color: #fff; background: radial-gradient(circle at 32% 24%, rgba(255,255,255,.72), transparent 24%), linear-gradient(145deg, rgba(255,255,255,.22), transparent 46%), var(--coin-color); border: 1px solid rgba(255,255,255,.68); box-shadow: inset 0 -6px 12px rgba(0,0,0,.22), 0 4px 12px rgba(23,32,64,.16); overflow: hidden; font-weight: 900; font-size: 16px; line-height: 1; }
.crypto-icon:before { content: ""; position: absolute; inset: 5px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); }
.crypto-icon:after { content: ""; position: absolute; left: -18%; top: 8%; width: 48%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent); transform: rotate(28deg); }
.crypto-icon > span { position: relative; z-index: 1; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.crypto-icon-sm { width: 30px; height: 30px; font-size: 13px; }
.crypto-icon-lg { width: 92px; height: 92px; font-size: 40px; box-shadow: inset 0 -12px 26px rgba(0,0,0,.25), 0 10px 26px rgba(0,0,0,.22); }
.crypto-icon-lg:before { inset: 11px; border-width: 2px; }
.crypto-btc, .crypto-wbtc, .crypto-wbtech { --coin-color: #f7931a; }
.crypto-eth { --coin-color: #627eea; }
.crypto-usdt { --coin-color: #26a17b; }
.crypto-bnb, .crypto-busd { --coin-color: #f3ba2f; }
.crypto-usdc { --coin-color: #2775ca; }
.crypto-xrp { --coin-color: #111111; }
.crypto-sol { --coin-color: #9945ff; background: linear-gradient(135deg, #14f195 0%, #00d4ff 28%, #9945ff 62%, #dc1fff 100%); }
.crypto-trx { --coin-color: #ef0027; }
.crypto-doge { --coin-color: #c3a634; }
.crypto-ada { --coin-color: #0846a8; }
.crypto-bch { --coin-color: #0ac18e; }
.crypto-ltc { --coin-color: #345d9d; }
.crypto-stx { --coin-color: #5546ff; }
.crypto-matic { --coin-color: #8247e5; }
.trade-area { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.timer-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.chart { height: 280px; border: 1px solid #60707d; background: #121d24; padding: 20px; position: relative; overflow: hidden; }
.live-chart { height: 320px; padding: 0; border-color: #577082; background: #0f1c24; }
.chart-top { min-height: 58px; padding: 16px 18px; border-bottom: 1px solid #293d48; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chart-top b { font-size: 17px; }
#chartSource { color: #91a9b8; font-size: 12px; text-align: right; }
#tradeChart { display: block; width: 100%; height: 260px; }
.line-chart { position: absolute; left: 12%; right: 12%; bottom: 45px; height: 90px; border-bottom: 3px solid #0c88cf; transform: skewY(-6deg); }
.trade-clock { position: absolute; right: 22px; bottom: 22px; color: #fff; font-weight: 900; }
.trade-card { border: 1px solid #60707d; background: #101b22; }
.trade-head { background: #4d5d6a; padding: 18px; text-align: center; font-weight: 900; }
.trade-body { padding: 54px 18px; display: grid; grid-template-columns: 1fr 120px; gap: 8px; }
.active-trade { padding: 0 18px 22px; color: #c9d6e8; font-size: 13px; line-height: 1.7; }
.duration.active { background: #2b4568; border-color: #19c3ff; }
.buy { background: #20c979; }
.sell { background: #ef233c; }

.form-panel { border: 1px solid #57616a; padding: 18px; background: #10191e; }
.form-panel .form-grid { grid-template-columns: repeat(2, 1fr); }
.plain-input, textarea, select { width: 100%; min-height: 42px; border: 1px solid #89949f; background: #101820; color: #fff; padding: 0 12px; border-radius: 3px; }
textarea { min-height: 140px; padding: 12px; resize: vertical; }
.deposit-box { width: min(700px,100%); margin: auto; border: 1px solid #68747e; }
.deposit-head { background: #596875; padding: 16px; text-align: center; font-weight: 900; }
.deposit-body { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 20px; }
.withdraw-form label { display: block; margin: 0 0 8px; color: #cbd8e9; font-weight: 800; }
.withdraw-form select, .withdraw-form input { margin-bottom: 14px; }
.pay-method { display: flex; align-items: center; justify-content: space-between; padding: 13px; border: 1px solid #4a5a66; margin-bottom: 9px; }
.log-toolbar { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 14px; }
.log-toolbar input { max-width: 360px; }
.toast { position: fixed; top: 18px; right: 18px; width: min(430px, calc(100% - 36px)); background: #fff; color: #5b6574; padding: 18px; border-radius: 5px; border-left: 5px solid #ff4156; box-shadow: 0 12px 32px #0005; z-index: 10; }
.chat-float { position: fixed; right: 22px; bottom: 22px; width: 52px; height: 52px; border-radius: 50%; background: #29baf5; border: 0; color: #04111a; font-size: 22px; z-index: 6; }
.chat-box { position: fixed; right: 22px; bottom: 86px; width: min(360px, calc(100% - 44px)); background: #06101d; border: 1px solid #1fb3e9; border-radius: 10px; padding: 14px; z-index: 7; }
.chat-log { height: 190px; overflow: auto; background: #101820; padding: 10px; margin-bottom: 10px; }
.bubble { padding: 8px 10px; margin: 8px 0; border-radius: 10px; background: #1f3140; font-size: 12px; }
.bubble.me { background: #126eb6; margin-left: 34px; }
.footer { padding: 60px 18px 28px; background: #0c1528; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; width: min(900px,100%); margin: auto; }
.footer p, .footer li { color: #d6dcea; font-size: 12px; line-height: 1.7; }
.footer-link { display: block; width: 100%; border: 0; background: transparent; color: #d6dcea; text-align: left; padding: 5px 0; font-size: 12px; font-weight: 800; }
.footer-link:hover { color: #19c3ff; }
.contact-row { display: grid; grid-template-columns: repeat(3,1fr); width: min(900px,100%); margin: 28px auto 0; background: #192630; }
.contact-row div { padding: 20px; border: 1px solid #30414a; }
.content-page { background: #10191f; border: 1px solid #435461; padding: 28px; border-radius: 6px; color: #dce7f4; line-height: 1.8; }
.content-page p { margin-top: 0; white-space: normal; }
.content-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 22px 0; }
.content-cards div { background: #172842; border: 1px solid #36537a; padding: 16px; border-radius: 5px; }
.content-cards b, .content-cards span { display: block; overflow-wrap: anywhere; }
.content-cards span { color: #c9d7ea; margin-top: 6px; }
.account-panel { border-radius: 10px; border-color: #2d5565; box-shadow: 0 20px 50px #0004; }
.account-top { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid #2d3f49; }
.account-top h2 { margin: 0; }
.account-top p { margin: 4px 0 0; color: #91a7b8; }
.account-avatar { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg,#24d47b,#18b8ff); color: #031018; font-size: 22px; font-weight: 900; }
.security-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; border: 1px solid #2d5565; border-radius: 10px; background: #0d1720; }
.security-card h2 { margin: 0 0 6px; }
.security-card p { margin: 0; color: #91a7b8; }
.switch input { display: none; }
.switch span { width: 64px; height: 34px; border-radius: 999px; display: block; background: #475663; position: relative; transition: .2s ease; }
.switch span:before { content: ""; position: absolute; width: 26px; height: 26px; left: 4px; top: 4px; border-radius: 50%; background: #fff; transition: .2s ease; }
.switch input:checked + span { background: #20c979; }
.switch input:checked + span:before { transform: translateX(30px); }
.notification-list { display: grid; gap: 12px; }
.notification-card { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px; border-radius: 10px; background: #10191f; border: 1px solid #31444f; }
.notification-card.unread { border-color: #19c3ff; box-shadow: inset 4px 0 0 #19c3ff; }
.notification-card p { color: #c7d4e4; margin: 6px 0; }

.admin-shell { min-height: 100vh; background: var(--admin-bg); color: #243552; display: grid; grid-template-columns: 250px 1fr; }
.sidebar { background: var(--admin-nav); color: #fff; height: 100vh; position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; overflow: hidden; }
.sidebar .brand { padding: 24px 18px 18px; }
.admin-nav { flex: 1; overflow-y: auto; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: #4d37ff #07145d; }
.side-group { width: 100%; }
.side-link { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 20px 0 24px; border: 0; color: #fff; background: transparent; text-align: left; font-weight: 800; font-size: 14px; line-height: 1.15; }
.side-link.active, .side-link:hover { background: var(--admin-accent); }
.side-icon { width: 18px; min-width: 18px; text-align: center; font-weight: 900; opacity: .95; }
.side-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-chevron { font-weight: 900; margin-left: 4px; opacity: .9; }
.side-children { background: #1b2671; padding: 4px 0; }
.side-child { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 34px; padding: 0 14px 0 42px; border: 0; background: transparent; color: #fff; text-align: left; font-size: 12px; font-weight: 800; }
.side-child.active, .side-child:hover { background: #2b318c; }
.side-dot { font-size: 10px; opacity: .85; }
.admin-logout { color: #ffbec8; margin-top: 10px; border-top: 1px solid #1d2b80; }
.side-sub { background: #1d286d; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; border-radius: 5px; font-size: 11px; line-height: 1; padding: 0 5px; margin-left: 4px; font-weight: 900; }
.badge.warn { background: #ff9d2f; color: #fff; }
.badge.info { background: #22aef6; color: #fff; border-radius: 4px; min-width: 22px; }
.admin-main { min-width: 0; }
.admin-top { height: 72px; background: var(--admin-nav); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; color: #fff; position: sticky; top: 0; z-index: 2; }
.admin-top input { width: 320px; max-width: 45vw; border: 1px solid #5363a8; background: #0c1767; color: #fff; border-radius: 5px; min-height: 42px; padding: 0 18px; }
.admin-top-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; min-width: 0; }
.top-icon-btn { position: relative; width: 28px; height: 28px; display: grid; place-items: center; border: 0; background: transparent; color: #fff; border-radius: 50%; font-size: 18px; font-weight: 900; }
.top-icon-btn svg { width: 19px; height: 19px; }
.top-icon-btn:hover { background: rgba(255, 255, 255, .12); }
.top-badge { position: absolute; right: -7px; top: -5px; min-width: 21px; height: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; border-radius: 999px; background: #ff2d3d; color: #fff; border: 2px solid var(--admin-nav); font-size: 10px; line-height: 1; font-weight: 900; }
.admin-profile { position: relative; }
.admin-profile-trigger { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: #fff; font-weight: 900; min-height: 42px; padding: 0 4px; }
.admin-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #061320; color: #16e58c; border: 1px solid #0f3d5d; box-shadow: 0 0 0 3px rgba(255, 255, 255, .03); font-size: 10px; font-weight: 900; }
.admin-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-caret { font-size: 12px; opacity: .85; }
.admin-profile-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 220px; background: #fff; color: #33415f; border-radius: 5px; box-shadow: 0 18px 45px #12204430; border: 1px solid #e3e6ef; overflow: hidden; display: none; z-index: 8; }
.admin-profile.open .admin-profile-menu { display: block; }
.admin-profile-menu button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; border: 0; border-bottom: 1px solid #e3e6ef; background: #fff; color: #33415f; text-align: left; padding: 0 18px; font-weight: 800; font-size: 15px; }
.admin-profile-menu button svg { width: 18px; height: 18px; color: #5d6d88; }
.admin-profile-menu button:last-child { border-bottom: 0; }
.admin-profile-menu button:hover { background: #f4f6fb; color: var(--admin-accent); }
.admin-content { padding: 30px; }
.admin-title { font-size: 22px; margin: 0 0 28px; }
.admin-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.admin-card { background: white; padding: 18px; border-radius: 4px; box-shadow: 0 8px 20px #1825500a; border-left: 4px solid var(--admin-accent); }
.admin-card small { color: #7b8393; }
.admin-card strong { display: block; margin-top: 6px; font-size: 20px; }
.dash-head-actions { display: flex; justify-content: flex-end; margin: -8px 0 16px; }
.dash-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 22px; }
.dash-stat { position: relative; display: grid; grid-template-columns: 44px 1fr 18px; align-items: center; gap: 12px; min-height: 76px; width: 100%; border: 0; background: #fff; border-radius: 4px; padding: 14px 16px; text-align: left; color: #193052; box-shadow: 0 10px 28px rgba(20, 28, 55, .08); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.dash-stat::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 0%, rgba(79, 55, 255, .08) 45%, transparent 62%); transform: translateX(-120%); transition: transform .45s ease; }
.dash-stat:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(20, 28, 55, .14); }
.dash-stat:hover::before { transform: translateX(120%); }
.dash-stat-icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1.5px solid currentColor; border-radius: 2px; font-size: 17px; font-weight: 900; }
.dash-stat small { display: block; color: #52627b; font-size: 12px; font-weight: 800; line-height: 1.25; }
.dash-stat strong { display: block; margin-top: 3px; color: #0c315a; font-size: 22px; font-weight: 900; }
.dash-stat i, .dash-mini i { justify-self: end; color: #15243e; font-style: normal; font-size: 22px; line-height: 1; }
.dash-stat.blue { color: #4b38ff; }
.dash-stat.green { color: #10c878; }
.dash-stat.red { color: #ff443f; }
.dash-stat.orange { color: #ff8f36; }
.dash-summary-grid, .dash-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 22px; }
.dash-panel { background: #fff; border: 1px solid #e5e8f1; border-radius: 5px; padding: 16px; box-shadow: 0 10px 28px rgba(20, 28, 55, .07); overflow: hidden; }
.dash-panel h3 { margin: 0; color: #2e425f; font-size: 15px; font-weight: 900; }
.dash-mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 12px; border-top: 1px solid #edf0f6; }
.dash-mini { position: relative; display: grid; grid-template-columns: 38px 1fr 14px; grid-template-rows: auto auto; gap: 2px 12px; align-items: center; min-height: 66px; border: 0; border-bottom: 1px solid #edf0f6; background: #fff; padding: 10px; color: #33415f; text-align: left; transition: background .18s ease, transform .18s ease; }
.dash-mini:nth-child(odd) { border-right: 1px solid #edf0f6; }
.dash-mini:hover { background: #f9faff; transform: translateX(2px); }
.dash-mini span { grid-row: 1 / 3; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 4px; font-weight: 900; }
.dash-mini b { color: #263756; font-size: 13px; }
.dash-mini small { color: #8491a7; font-size: 11px; }
.dash-mini.green span { background: #d8f8e8; color: #15bd70; }
.dash-mini.orange span { background: #ffe8d5; color: #ff8a2a; }
.dash-mini.red span { background: #ffe0e1; color: #ff4c55; }
.dash-mini.purple span { background: #e7e1ff; color: #6048ff; }
.chart-panel { min-height: 316px; }
.dash-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.dash-panel-title span { border: 1px solid #d7ddeb; border-radius: 3px; padding: 5px 9px; color: #66758f; font-size: 11px; background: #fafbfe; white-space: nowrap; }
.chart-panel canvas { display: block; width: 100%; height: 250px; }
.dash-donut-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.donut-panel { min-height: 520px; padding: 16px 16px 0; }
.donut-panel canvas { display: block; width: 100%; height: 450px; margin-top: 10px; }
.adjust-cards { grid-template-columns: repeat(4, minmax(180px, 1fr)); }
.adjust-user-card { background: #fff; border-left: 4px solid var(--admin-accent); border-radius: 5px; padding: 16px; box-shadow: 0 8px 20px #1825500a; }
.adjust-user-card b, .adjust-user-card small, .adjust-user-card strong { display: block; }
.adjust-user-card small { color: #72809a; margin: 6px 0 10px; overflow-wrap: anywhere; }
.adjust-user-card strong { color: #243552; font-size: 18px; }
.admin-panel { background: #fff; border-radius: 6px; padding: 18px; margin-bottom: 22px; box-shadow: 0 10px 25px #111a3310; overflow-x: auto; }
.admin-table { background: #fff; min-width: 900px; color: #263756; }
.admin-table th { background: var(--admin-accent); color: white; text-align: left; }
.admin-table td { color: #53627a; text-align: left; border-top: 1px solid #e2e4ee; font-size: 13px; }
.pill { display: inline-block; border: 1px solid currentColor; border-radius: 20px; padding: 3px 10px; font-size: 11px; }
.pill.good { color: var(--good); }
.pill.warn { color: var(--warn); }
.pill.bad { color: var(--danger); }
.admin-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.admin-btn { min-height: 34px; border: 1px solid var(--admin-accent); background: #fff; color: var(--admin-accent); border-radius: 3px; padding: 0 12px; font-weight: 800; }
.admin-btn.fill { background: var(--admin-accent); color: #fff; }
.admin-btn.danger { border-color: var(--danger); color: var(--danger); }
.light-input { color: #223 !important; background: #fff !important; }
.combo-wrap { position: relative; }
.combo-list { position: absolute; top: 100%; left: 0; right: 0; z-index: 30; max-height: 240px; overflow-y: auto; background: #fff; border: 1px solid #c7cede; border-radius: 6px; box-shadow: 0 12px 32px #0003; margin-top: 4px; }
.combo-item { padding: 8px 12px; color: #223; cursor: pointer; font-size: 14px; }
.combo-item:hover { background: #eef2fb; }
.admin-modal-backdrop { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(6, 10, 26, .62); z-index: 40; }
.admin-modal { width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; color: #243552; border-radius: 8px; box-shadow: 0 24px 80px #0008; }
.admin-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; background: var(--admin-accent); color: #fff; }
.admin-modal-head button { width: 34px; height: 34px; border: 1px solid #ffffff66; background: transparent; color: #fff; border-radius: 4px; font-weight: 900; }
.admin-modal-body { padding: 18px; }
.admin-modal label { display: block; color: #41506c; font-weight: 800; }
.admin-form-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; }
.setting-card { display: flex; gap: 16px; align-items: center; min-height: 72px; background: #fff; border-radius: 4px; padding: 14px; box-shadow: 0 8px 20px #18255012; border: 1px solid #ebedf6; text-align: left; width: 100%; color: inherit; }
.setting-card:nth-child(3n+1) { background: #fdfdff; }
.setting-card:hover { border-color: var(--admin-accent); transform: translateY(-1px); }
.setting-icon { width: 42px; height: 42px; display: grid; place-items: center; background: var(--admin-accent); color: #fff; border-radius: 4px; font-weight: 900; }
.setting-card b { display: block; font-size: 15px; color: #33415f; }
.setting-card small { display: block; color: #72809a; margin-top: 5px; line-height: 1.35; }
.settings-editor label { display: block; color: #41506c; font-weight: 800; margin-top: 12px; }
.settings-editor small, .settings-editor p { color: #72809a; }
.settings-editor textarea { min-height: 120px; }
.settings-captcha { margin-top: 18px; width: min(360px, 100%); }
.admin-preview { min-height: 58px; background: #07145d; color: white; border-radius: 6px; padding: 14px; margin-top: 8px; }
.page-edit { border: 1px solid #e2e4ee; border-radius: 5px; padding: 16px; margin-bottom: 16px; background: #fbfcff; }
.page-edit h3 { margin: 0 0 12px; }
.code-input { font-family: Consolas, "Courier New", monospace; line-height: 1.5; }
.tabs-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.version { margin: 10px 0 18px 26px; color: #24ff8d; font-weight: 800; }
.notify-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 24px; }
.notify-tab { padding: 28px; border: 1px solid #c2c6d1; text-align: center; background: #eee; }
.notify-tab.active { border-color: var(--admin-accent); background: #fff; box-shadow: inset -36px 0 0 var(--admin-accent); }
.editor-bar { background: #e9edf4; border: 1px solid #c8ceda; padding: 8px; color: #596272; }
.cache-panel { width: min(980px, 100%); margin-left: auto; margin-right: auto; }
.cache-row { padding: 20px 16px; border-bottom: 1px solid #e0e3eb; color: #5d6d88; font-size: 20px; }
.cache-row:first-child { border-top: 1px solid #e0e3eb; }
.cache-clear-btn { width: 100%; margin-top: 14px; }
.check-mark { color: #20c979; font-weight: 900; }
.update-card { width: min(620px, 100%); margin: 30px auto; text-align: center; border: 2px solid #20c979; }
.update-card strong { display: block; color: #ff9d2f; font-size: clamp(56px, 8vw, 86px); line-height: 1; }
.update-card span { display: block; color: #ff9d2f; font-size: 26px; margin: 12px 0 24px; }
.update-card p { color: #5d6d88; font-style: italic; }

@media (max-width: 900px) {
  .user-nav { padding: 14px 18px; flex-wrap: wrap; gap: 14px; }
  .nav-links { width: 100%; overflow-x: auto; padding-bottom: 6px; }
  .stats, .coin-grid, .trade-area, .deposit-body, .footer-grid, .contact-row, .content-cards, .admin-cards, .notify-tabs, .settings-grid, .admin-form-3, .dash-stat-grid, .dash-summary-grid, .dash-chart-grid, .dash-donut-grid { grid-template-columns: 1fr; }
  .form-panel .form-grid, .two { grid-template-columns: 1fr; }
  .full-field { grid-column: auto; }
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; min-height: auto; }
  .admin-nav { max-height: 420px; }
  .admin-top { top: 0; }
  .admin-content { padding: 18px; }
  .log-toolbar { justify-content: stretch; flex-direction: column; }
  .log-toolbar input { max-width: none; }
  .profile-menu { right: auto; left: 0; }
  .profile-menu:before { right: auto; left: 22px; }
  .live-chart { height: 300px; }
  #tradeChart { height: 240px; }
  .donut-panel { min-height: 360px; }
  .donut-panel canvas { height: 300px; }
}

@media (max-width: 520px) {
  .auth-page { padding: 16px 10px; align-items: start; padding-top: 28px; }
  .auth-card, .auth-card.register-card { width: 100%; padding: 28px 18px; border-radius: 14px; }
  .auth-title { letter-spacing: 3px; font-size: 12px; margin-bottom: 24px; }
  .brand b { font-size: 16px; }
  .captcha-code { font-size: 22px; letter-spacing: 8px; }
  .icon-box { flex-basis: 44px; width: 44px; }
  .section { padding: 36px 12px; }
  .hero { height: 130px; }
  .trade-body { grid-template-columns: 1fr; padding: 22px 14px; }
  .chart-top { align-items: flex-start; flex-direction: column; }
  .trade-head { padding: 15px 12px; }
  .admin-top { flex-direction: column; height: auto; padding: 14px; gap: 10px; align-items: stretch; }
  .admin-top input { max-width: none; width: 100%; }
  .admin-top-actions { justify-content: space-between; gap: 10px; width: 100%; }
  .admin-profile-menu { right: 0; width: min(230px, calc(100vw - 28px)); }
  .admin-name { max-width: 90px; }
  .profile-menu { width: min(260px, calc(100vw - 24px)); }
  .notification-card, .security-card, .account-top { align-items: flex-start; flex-direction: column; }
  .dash-mini-grid { grid-template-columns: 1fr; }
  .dash-mini:nth-child(odd) { border-right: 0; }
  .dash-panel-title { align-items: flex-start; flex-direction: column; }
  .chart-panel canvas { height: 220px; }
}
