:root{
    --yellow:#f5c400;
    --yellow-dark:#dca500;
    --red:#e60012;
    --cream:#fff7d6;
    --cream-2:#fff1b6;
    --dark:#071719;
    --dark-2:#041012;
    --dark-card:rgba(0,0,0,.68);
    --dark-card-2:rgba(10,30,30,.78);
    --gold:#f8d84a;
    --green:#00c878;
    --white:#fff;
    --ink:#1f2023;
    --muted:#c9d2cf;
    --line:rgba(255,255,255,.16);
    --shadow:0 12px 30px rgba(0,0,0,.18);
    --radius:14px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;min-height:100%;font-family:Arial,Helvetica,sans-serif;background:#0a0d0f;color:var(--ink)}
body{overflow-x:hidden}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
button{cursor:pointer}
.app-shell{min-height:100vh;max-width:430px;margin:0 auto;background:var(--cream);position:relative;overflow-x:hidden;box-shadow:0 0 34px rgba(0,0,0,.42)}
.topbar{height:56px;background:linear-gradient(180deg,#ffe064 0%,var(--yellow) 64%,#e8aa00 100%);display:flex;align-items:center;justify-content:space-between;padding:0 14px;position:sticky;top:0;z-index:50;color:#281a00;border-bottom:1px solid rgba(97,62,0,.16)}
.icon-btn{border:0;background:transparent;padding:0}
.menu-toggle{width:32px;height:28px;display:flex;flex-direction:column;justify-content:center;gap:5px}
.menu-toggle span{height:3px;border-radius:999px;background:#322300;display:block;box-shadow:0 1px 0 rgba(255,255,255,.35)}
.brand{position:absolute;left:50%;top:7px;transform:translateX(-50%);font-size:11px;font-weight:900;text-align:center;color:var(--red);display:flex;flex-direction:column;align-items:center;line-height:1;text-transform:uppercase;letter-spacing:0}
.brand.big{position:static;top:auto;transform:none;flex-direction:row;gap:8px;font-size:18px;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.28)}
.brand-symbol{font-size:19px;color:var(--red);filter:drop-shadow(0 2px 1px rgba(255,255,255,.28))}
.topbar-actions{display:flex;align-items:center;gap:12px}
.search-icon{width:25px;height:25px;border:3px solid rgba(40,26,0,.48);border-radius:50%;background:transparent;position:relative}
.search-icon:after{content:"";position:absolute;width:10px;height:3px;background:rgba(40,26,0,.48);right:-7px;bottom:-4px;transform:rotate(45deg);border-radius:6px}
.lang{font-size:11px;font-weight:700}
.lang a{color:rgba(45,29,0,.54)}
.lang .on{color:var(--red)}
.lang i{font-style:normal;margin:0 4px;color:rgba(45,29,0,.38)}
.screen{min-height:calc(100vh - 56px);padding-bottom:82px}
.page-light .screen{background:radial-gradient(circle at 15% 0,rgba(255,255,255,.78),transparent 28%),linear-gradient(180deg,var(--cream) 0%,#fff1af 42%,#fff9de 100%);color:var(--ink)}
.page-dark .screen{background:linear-gradient(rgba(0,0,0,.38),rgba(0,0,0,.82)),radial-gradient(circle at 78% 12%,rgba(0,200,180,.24),transparent 27%),radial-gradient(circle at 18% 74%,rgba(245,196,0,.16),transparent 26%),url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 430 920"><defs><linearGradient id="g" x1="0" y1="0" x2="1" y2="1"><stop stop-color="%23071b22"/><stop offset=".55" stop-color="%23071417"/><stop offset="1" stop-color="%23030a0d"/></linearGradient></defs><rect width="430" height="920" fill="url(%23g)"/><g opacity=".17" stroke="%2388fff1" stroke-width="1" fill="none"><path d="M0 146h430M0 240h430M0 334h430M0 428h430M0 522h430M0 616h430M0 710h430M78 0v920M166 0v920M254 0v920M342 0v920"/><circle cx="322" cy="176" r="98"/><circle cx="322" cy="176" r="55"/><path d="M28 736c86-70 178-62 276-10 38 20 78 31 126 21"/></g><g opacity=".12" fill="%23f5c400"><circle cx="78" cy="156" r="4"/><circle cx="253" cy="86" r="3"/><circle cx="364" cy="495" r="5"/><circle cx="116" cy="596" r="3"/></g></svg>') center/cover no-repeat;color:var(--white)}
.hero-card{margin:16px 16px 14px;border-radius:var(--radius);min-height:174px;position:relative;overflow:hidden;background:linear-gradient(135deg,#092a31 0%,#123940 48%,#0a1417 100%);border:1px solid rgba(255,255,255,.12);display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow)}
.hero-card:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 45%,rgba(0,255,230,.28),transparent 34%),linear-gradient(135deg,rgba(245,196,0,.34),transparent 35%)}
.hero-card:after{content:"";position:absolute;inset:auto -40px -60px -40px;height:110px;background:radial-gradient(ellipse at center,rgba(230,0,18,.28),transparent 64%)}
.hero-card .hero-content{position:relative;text-align:center;z-index:2;color:#fff;padding:18px}
.hero-badge{display:inline-flex;align-items:center;justify-content:center;min-width:68px;height:44px;background:linear-gradient(135deg,var(--gold),#ffac00);color:#2b1a00;font-size:18px;font-weight:900;border-radius:10px;margin-bottom:10px;box-shadow:0 8px 16px rgba(0,0,0,.24)}
.hero-title{font-size:16px;font-weight:900;text-transform:uppercase}
.hero-sub{font-size:12px;color:#d8efeb;margin-top:7px;line-height:1.45}
.quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:12px 16px}
.quick-item{background:#fff;color:#2b2b2b;min-height:72px;border-radius:var(--radius);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-size:11px;text-align:center;box-shadow:0 8px 18px rgba(166,114,0,.13);border:1px solid rgba(245,196,0,.28)}
.quick-item .ico{color:var(--red);font-size:20px}
.notice-line{margin:8px 16px;background:#fff;color:#3a2c00;font-size:11px;display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:12px;border:1px solid rgba(245,196,0,.34);box-shadow:0 6px 16px rgba(166,114,0,.12)}
.notice-line .tag{background:var(--red);color:#fff;padding:3px 7px;border-radius:7px;font-weight:900}
.section{margin:16px}
.section-title{font-weight:900;color:#3a2500;background:linear-gradient(135deg,#fff,#ffe68a);border-radius:var(--radius) var(--radius) 0 0;padding:11px 12px;font-size:14px;border:1px solid rgba(245,196,0,.28);border-bottom:0}
.white-card{background:#fff;color:#333;border-radius:0 0 var(--radius) var(--radius);padding:13px;border:1px solid rgba(245,196,0,.28);box-shadow:0 8px 20px rgba(120,82,0,.1)}
.stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.stat-box{background:#fff8df;border:1px solid #ffe39a;border-radius:12px;padding:11px}
.stat-label{font-size:11px;color:#8a6d00}
.stat-value{font-size:17px;font-weight:900;color:var(--red);margin-top:4px}
.dark-card{background:var(--dark-card);border:1px solid var(--line);border-radius:var(--radius);margin:18px 16px;padding:16px;color:#fff;box-shadow:0 14px 32px rgba(0,0,0,.28);backdrop-filter:blur(8px)}
.page-light .dark-card{background:#fff;color:#2b2b2b;border-color:rgba(245,196,0,.28);box-shadow:0 10px 22px rgba(120,82,0,.12)}
.page-title{text-align:center;font-size:19px;font-weight:900;margin:14px 0 16px;color:inherit}
.page-dark .page-title{color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.45)}
.form-group{margin-bottom:13px}
.form-group label{display:block;color:#fff;font-size:12px;margin-bottom:7px;font-weight:700}
.field{width:100%;height:45px;border:1px solid rgba(255,255,255,.24);background:rgba(0,0,0,.38);color:#fff;border-radius:10px;padding:0 13px;outline:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.field-area{height:110px;min-height:110px;resize:vertical;padding:12px 13px}
.field:focus{border-color:rgba(248,216,74,.78);box-shadow:0 0 0 3px rgba(248,216,74,.12)}
.field::placeholder{color:#9fb0b8}
select.field{appearance:none;background-color:rgba(0,0,0,.38)}
.btn-primary,.btn-red,.btn-outline,.btn-gold{width:100%;min-height:44px;border:0;border-radius:10px;font-weight:900;text-transform:uppercase;display:inline-flex;align-items:center;justify-content:center;text-align:center}
.btn-red,.btn-primary{background:linear-gradient(135deg,var(--red),#ff4d3f);color:#fff;box-shadow:0 10px 20px rgba(230,0,18,.24)}
.btn-gold{background:linear-gradient(135deg,var(--gold),#ffb300);color:#3a2500}
.btn-outline{background:rgba(255,255,255,.05);color:#fff;border:1px solid rgba(255,255,255,.42)}
.btn-red:disabled,.btn-primary:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}
.info-box{border:1px solid rgba(248,216,74,.32);background:rgba(248,216,74,.1);color:#fff5be;border-radius:12px;padding:10px 12px;margin:0 0 13px;font-size:12px;line-height:1.5}
.brand-watermark{text-align:center;margin:24px 0 8px;padding-bottom:8px}
.moon-logo{width:156px;height:156px;background:var(--red);border-radius:50%;margin:0 auto 8px;position:relative;box-shadow:0 14px 30px rgba(0,0,0,.3)}
.moon-logo:before{content:"";position:absolute;width:88px;height:126px;border-radius:50%;background:var(--yellow);left:36px;top:15px;transform:rotate(-25deg)}
.moon-logo:after{content:"★★★★★";position:absolute;left:0;right:0;bottom:37px;text-align:center;font-size:16px;color:var(--yellow);letter-spacing:2px}
.big-word{font-weight:900;color:rgba(255,255,255,.16);font-size:40px;letter-spacing:0}
.auth-links{text-align:center;margin-top:13px;font-size:13px;color:var(--muted)}
.auth-links a{color:var(--gold);font-weight:800}
.vip-wrap{background:#fff;color:#333;margin:16px;border-radius:var(--radius);overflow:hidden;border:1px solid rgba(245,196,0,.34);box-shadow:0 12px 28px rgba(120,82,0,.14)}
.vip-head{background:linear-gradient(135deg,var(--red),#b8000e 55%,#3b0c0d);color:#fff;padding:16px;font-weight:900;font-size:17px}
.vip-sub{font-size:12px;opacity:.92;margin-top:5px;line-height:1.45;font-weight:400}
.vip-item{display:flex;gap:12px;padding:15px;border-bottom:1px solid #f0e4b6;background:linear-gradient(180deg,#fff,#fffaf0)}
.vip-item:last-child{border-bottom:0}
.vip-medal{width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,#ffe676,#ffb300);display:flex;align-items:center;justify-content:center;font-weight:900;color:#714500;flex:0 0 48px;font-size:12px;box-shadow:inset 0 2px 3px rgba(255,255,255,.5),0 6px 16px rgba(166,114,0,.18)}
.vip-content{flex:1;min-width:0}
.vip-name{font-weight:900;color:#2a2110;font-size:14px}
.vip-meta{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;margin-top:9px;font-size:11px}
.vip-meta span{background:#fff3c7;border:1px solid #ffe39a;border-radius:9px;padding:7px;color:#5c4200}
.account-hero{padding:18px 16px 16px;background:linear-gradient(180deg,rgba(0,0,0,.34),rgba(0,0,0,.08));border-bottom:1px solid var(--line)}
.user-row{display:flex;align-items:center;gap:11px}
.avatar{width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,var(--yellow),var(--red));display:flex;align-items:center;justify-content:center;font-weight:900;color:#fff;border:2px solid rgba(255,255,255,.24)}
.user-row small{color:var(--muted)}
.balance-card{margin-top:14px;background:linear-gradient(145deg,rgba(255,255,255,.11),rgba(0,0,0,.32));border:1px solid var(--line);padding:15px;border-radius:var(--radius);box-shadow:0 12px 28px rgba(0,0,0,.22)}
.balance-label{font-size:12px;color:var(--muted)}
.balance-value{font-size:25px;font-weight:900;color:var(--gold);margin-top:6px}
.balance-sub{color:var(--muted);font-size:12px;margin-top:4px}
.referral-pill{margin-top:10px;border:1px solid rgba(248,216,74,.34);background:rgba(248,216,74,.12);color:#fff6bc;border-radius:10px;padding:8px 10px;font-size:12px}
.required{color:#ff7b70}
.action-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:13px}
.mini-action{background:rgba(10,30,30,.82);border:1px solid var(--line);border-radius:10px;padding:10px 4px;text-align:center;font-size:11px;color:#fff;min-height:38px;display:flex;align-items:center;justify-content:center}
button.mini-action{width:100%}
.list{margin:16px}
.list-title{font-weight:900;margin-bottom:9px;color:#fff}
.page-light .list-title{color:#2b2b2b}
.list-item{background:rgba(255,255,255,.08);border:1px solid var(--line);border-radius:12px;padding:11px;margin-bottom:9px;color:inherit}
.page-light .list-item{background:#fff8df;border-color:#ffe39a}
.list-item strong{display:block;line-height:1.35}
.list-item small{color:var(--muted);line-height:1.45}
.page-light .list-item small{color:#7a6b44}
.amount-plus{color:var(--green);font-weight:900}
.amount-minus{color:#ff5b4c;font-weight:900}
.notice-card{display:flex;gap:11px;background:var(--dark-card);border:1px solid var(--line);border-radius:var(--radius);padding:13px;margin:10px 16px;color:#fff;box-shadow:0 10px 24px rgba(0,0,0,.22);backdrop-filter:blur(8px)}
.notice-card small{color:var(--muted)}
.notice-icon{width:31px;height:31px;border-radius:50%;background:linear-gradient(135deg,var(--gold),#c58d00);display:flex;align-items:center;justify-content:center;flex:0 0 31px}
.task-card{margin:18px 16px;background:var(--dark-card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;color:#fff;box-shadow:0 14px 32px rgba(0,0,0,.28);backdrop-filter:blur(8px)}
.task-top{padding:15px}
.progress{height:9px;background:#1c2a31;border-radius:999px;overflow:hidden;margin-top:11px;margin-bottom:7px}
.progress i{display:block;height:100%;background:linear-gradient(90deg,var(--gold),var(--red));width:64%}
.task-image{height:190px;background:radial-gradient(circle at 30% 40%,rgba(255,208,24,.25),transparent 35%),linear-gradient(135deg,#062533,#0b1419);display:flex;align-items:center;justify-content:center}
.task-image .moon-logo{transform:scale(.65);margin:0}
.support-card{text-align:center;background:var(--dark-card);border:1px solid var(--line);border-radius:var(--radius);margin:18px 16px;padding:25px 16px;color:#fff;box-shadow:0 14px 32px rgba(0,0,0,.28);backdrop-filter:blur(8px)}
.support-icon{font-size:42px;color:var(--gold);margin-bottom:10px}
.support-card h2{font-size:19px;margin:8px 0}
.support-card p{color:var(--muted)!important}
.chat-card{margin-bottom:18px}
.chat-status{color:var(--muted);font-size:12px;margin-bottom:10px}
.chat-status b{color:var(--gold)}
.chat-thread{height:390px;overflow:auto;border:1px solid var(--line);border-radius:14px;background:rgba(0,0,0,.28);padding:12px;display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth}
.chat-bubble{max-width:84%;border-radius:14px;padding:10px 12px;color:#fff;line-height:1.45;font-size:13px;box-shadow:0 8px 18px rgba(0,0,0,.16)}
.chat-bubble.mine{align-self:flex-end;background:linear-gradient(135deg,var(--red),#ff5a46);border-bottom-right-radius:4px}
.chat-bubble.support{align-self:flex-start;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.14);border-bottom-left-radius:4px}
.chat-meta{font-size:10px;color:rgba(255,255,255,.72);margin-bottom:4px}
.chat-form{display:grid;gap:10px;margin-top:12px}
.chat-form .field-area{height:84px;min-height:84px}
.news-card{background:var(--dark-card);border:1px solid var(--line);border-radius:var(--radius);margin:12px 16px;padding:13px;color:#fff;box-shadow:0 10px 24px rgba(0,0,0,.22);backdrop-filter:blur(8px)}
.news-date{color:var(--gold);font-size:11px;margin:6px 0}
.news-card p{color:var(--muted)!important}
.tabs{display:flex;gap:8px;margin:0 16px 13px}
.tabs a{flex:1;text-align:center;border-radius:10px;background:rgba(255,255,255,.08);border:1px solid var(--line);padding:10px 4px;font-size:12px;color:#dce7e4;font-weight:700}
.tabs a.active{background:linear-gradient(135deg,var(--red),#ff4d3f);border-color:transparent;color:#fff}
.alert{margin:12px 0;border-radius:10px;padding:10px;background:#fff4d4;color:#6d4b00;font-size:13px;border:1px solid rgba(245,196,0,.32)}
.alert.success{background:#e8fff1;color:#0a6c30;border-color:rgba(0,200,120,.24)}
.bottom-nav{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:100%;max-width:430px;min-height:64px;padding-bottom:env(safe-area-inset-bottom);background:rgba(255,247,214,.97);border-top:1px solid rgba(198,142,0,.22);display:grid;grid-template-columns:repeat(4,1fr);z-index:60;box-shadow:0 -10px 24px rgba(0,0,0,.12);backdrop-filter:blur(10px)}
.page-dark .bottom-nav{background:rgba(8,15,18,.96);border-top-color:var(--line)}
.bottom-nav a{font-size:10px;color:#81776b;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-weight:800}
.page-dark .bottom-nav a{color:#9dacaa}
.bottom-nav span{font-size:19px;line-height:1}
.bottom-nav a.active{color:var(--red)}
.page-dark .bottom-nav a.active{color:var(--gold)}
.drawer{position:fixed;top:0;bottom:0;left:max(0px,calc(50% - 215px));width:310px;max-width:82vw;background:rgba(5,12,14,.94);backdrop-filter:blur(10px);z-index:100;transition:transform .25s ease;max-height:100vh;overflow:auto;transform:translateX(-106%);border-right:1px solid var(--line)}
.drawer.open{transform:translateX(0)}
.drawer-mask{position:fixed;inset:0;background:rgba(0,0,0,.58);z-index:90;display:none}
.drawer-mask.open{display:block}
.drawer-head{height:56px;background:linear-gradient(180deg,#ffe064,var(--yellow));display:flex;align-items:center;justify-content:space-between;padding:0 12px}
.drawer-close{font-size:30px;border:0;background:transparent;color:#2b1b00;line-height:1}
.drawer-nav{padding:10px}
.drawer-nav a{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px;margin-bottom:8px;background:rgba(255,255,255,.05);font-size:13px;color:#fff}
.drawer-nav a span{color:var(--gold)}
.admin-body{background:#071014;color:#effaf7}
.admin-shell{min-height:100vh;display:grid;grid-template-columns:248px minmax(0,1fr);background:linear-gradient(rgba(0,0,0,.44),rgba(0,0,0,.86)),radial-gradient(circle at 85% 10%,rgba(0,200,180,.16),transparent 28%),#071719}
.admin-sidebar{border-right:1px solid var(--line);background:rgba(0,0,0,.58);padding:16px 12px;position:sticky;top:0;height:100vh;overflow:auto}
.admin-brand{height:46px;display:flex;align-items:center;gap:9px;color:#fff;font-weight:900;text-transform:uppercase;margin-bottom:12px}
.admin-brand span{color:var(--red);font-size:22px}
.admin-nav{display:grid;gap:7px}
.admin-nav a{padding:10px 12px;border-radius:10px;color:#c8d7d4;border:1px solid transparent;font-size:13px;font-weight:800}
.admin-nav a:hover,.admin-nav a.active{background:rgba(248,216,74,.12);border-color:rgba(248,216,74,.28);color:var(--gold)}
.admin-main{min-width:0}
.admin-topbar{height:62px;border-bottom:1px solid var(--line);background:rgba(8,15,18,.86);display:flex;align-items:center;justify-content:space-between;padding:0 18px;position:sticky;top:0;z-index:20;backdrop-filter:blur(10px)}
.admin-topbar strong{display:block;font-size:17px}
.admin-topbar small{display:block;color:var(--muted);font-size:12px;margin-top:2px}
.admin-top-actions{display:flex;gap:8px;align-items:center}
.admin-top-actions a,.table-link,.inline-form button{border:1px solid rgba(248,216,74,.28);background:rgba(248,216,74,.1);color:var(--gold);border-radius:8px;padding:7px 9px;font-size:12px;font-weight:800}
.admin-content{padding:18px}
.admin-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}
.admin-card,.admin-panel{background:rgba(0,0,0,.58);border:1px solid var(--line);border-radius:14px;box-shadow:0 14px 32px rgba(0,0,0,.22);backdrop-filter:blur(8px)}
.admin-card{padding:15px}
.admin-card span{display:block;color:var(--muted);font-size:12px;margin-bottom:7px}
.admin-card strong{font-size:20px;color:var(--gold)}
.admin-panel{padding:15px;margin-bottom:14px}
.admin-panel h2{margin:0 0 12px;font-size:16px}
.admin-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.admin-list-row{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding:10px 0;font-size:13px}
.admin-list-row b{color:var(--gold)}
.admin-chat-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:14px}
.chat-list-panel{max-height:calc(100vh - 96px);overflow:auto}
.chat-list-item{display:block;border:1px solid var(--line);border-radius:12px;padding:10px;margin-bottom:8px;background:rgba(255,255,255,.05);color:#fff}
.chat-list-item.active{border-color:rgba(248,216,74,.58);background:rgba(248,216,74,.12)}
.chat-list-item strong,.chat-list-item span,.chat-list-item small{display:block}
.chat-list-item span{color:var(--gold);font-size:11px;margin:4px 0}
.chat-list-item small{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-admin-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.chat-admin-head h2{margin:0 0 4px}
.chat-admin-head small{color:var(--muted)}
.admin-chat-card .chat-thread{height:520px}
.empty-state{padding:28px;text-align:center;color:var(--muted)}
.admin-filter{display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:10px;margin-bottom:12px}
.admin-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.check-row{display:flex;align-items:center;gap:8px;color:#d7e5e1;font-size:13px;margin:8px 0 12px}
.table-wrap{overflow:auto}
.admin-table{width:100%;border-collapse:collapse;min-width:760px;font-size:13px}
.admin-table th,.admin-table td{border-bottom:1px solid var(--line);padding:10px;text-align:left;vertical-align:top}
.admin-table th{color:var(--gold);font-size:12px;text-transform:uppercase;background:rgba(255,255,255,.04)}
.admin-table small{color:var(--muted)}
.inline-form{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.mini-input{height:32px;border-radius:8px;border:1px solid var(--line);background:rgba(0,0,0,.35);color:#fff;padding:0 8px;max-width:140px}
@media (max-width:820px){
    .admin-shell{display:block}
    .admin-sidebar{position:relative;height:auto;display:block}
    .admin-nav{grid-template-columns:repeat(2,minmax(0,1fr))}
    .admin-topbar{top:0}
    .admin-stat-grid,.admin-grid-2,.admin-form-grid,.admin-chat-layout{grid-template-columns:1fr}
    .chat-list-panel{max-height:none}
    .chat-thread,.admin-chat-card .chat-thread{height:360px}
}
@media (min-width:431px){
    body{background:linear-gradient(135deg,#070b0c,#171d1d)}
    .app-shell{min-height:100vh}
}

/* Nâng cấp nền ảnh và menu ẩn */
:root{
    --app-bg-image:url('../images/anhnen.jpg');
    --app-logo-image:url('../images/logo.png');
}
html,body{
    background:
        linear-gradient(180deg,rgba(2,8,12,.62),rgba(2,8,12,.88)),
        var(--app-bg-image) center/cover fixed no-repeat;
}
body.menu-open{overflow:hidden}
.app-shell{
    background:
        linear-gradient(180deg,rgba(255,248,222,.82),rgba(255,241,182,.72)),
        var(--app-bg-image) center/cover fixed no-repeat;
}
.topbar{
    background:rgba(255,220,63,.93);
    backdrop-filter:blur(12px);
}
.brand{
    top:4px;
    width:134px;
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-transform:none;
}
.brand-logo{
    width:128px;
    height:48px;
    object-fit:contain;
    display:block;
    filter:drop-shadow(0 2px 4px rgba(0,0,0,.16));
}
.brand.big{
    position:static;
    transform:none;
    width:auto;
    height:auto;
    min-width:0;
}
.drawer-logo{
    width:168px;
    max-width:58vw;
    height:48px;
    object-fit:contain;
    display:block;
    filter:drop-shadow(0 2px 6px rgba(0,0,0,.2));
}
.brand-symbol{display:none}
.lang{
    background:rgba(255,255,255,.28);
    border:1px solid rgba(92,56,0,.14);
    border-radius:999px;
    padding:5px 8px;
    white-space:nowrap;
}
.lang .on{color:#7a0009}
.page-light .screen{
    background:
        linear-gradient(180deg,rgba(255,250,226,.84),rgba(255,241,180,.74)),
        var(--app-bg-image) center/cover fixed no-repeat;
}
.page-dark .screen{
    background:
        linear-gradient(180deg,rgba(0,0,0,.42),rgba(0,0,0,.86)),
        var(--app-bg-image) center/cover fixed no-repeat;
}
.hero-card{
    background:
        linear-gradient(135deg,rgba(5,15,19,.2),rgba(0,0,0,.68)),
        var(--app-bg-image) center/cover no-repeat;
}
.task-image{
    background:
        linear-gradient(180deg,rgba(0,0,0,.18),rgba(0,0,0,.56)),
        var(--app-bg-image) center/cover no-repeat;
}
.moon-logo{
    width:190px;
    height:126px;
    border-radius:0;
    background:var(--app-logo-image) center/contain no-repeat;
    box-shadow:none;
}
.moon-logo:before,
.moon-logo:after{display:none}
.task-image .moon-logo{
    transform:none;
    margin:0;
    filter:drop-shadow(0 12px 22px rgba(0,0,0,.34));
}
.big-word{
    font-size:18px;
    color:rgba(255,255,255,.28);
}
.drawer:not(.open),
.admin-sidebar:not(.open){pointer-events:none}
.drawer.open,
.admin-sidebar.open{pointer-events:auto}
.admin-shell{
    display:block;
    min-height:100vh;
    background:
        linear-gradient(180deg,rgba(0,0,0,.58),rgba(0,0,0,.9)),
        var(--app-bg-image) center/cover fixed no-repeat;
}
.admin-sidebar{
    position:fixed;
    top:0;
    bottom:0;
    left:0;
    width:312px;
    max-width:84vw;
    height:100vh;
    z-index:100;
    transform:translateX(-106%);
    transition:transform .25s ease;
    border-right:1px solid var(--line);
    background:rgba(5,12,14,.95);
    backdrop-filter:blur(12px);
}
.admin-sidebar.open{transform:translateX(0)}
.admin-sidebar-head{
    min-height:64px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:10px 12px;
    border-bottom:1px solid var(--line);
}
.admin-brand{
    height:44px;
    margin:0;
    min-width:0;
}
.admin-brand span{display:none}
.admin-logo{
    width:170px;
    max-width:58vw;
    height:44px;
    object-fit:contain;
    display:block;
}
.admin-drawer-close{
    color:#fff;
    background:rgba(255,255,255,.08);
    border:1px solid var(--line);
    border-radius:10px;
    width:38px;
    height:38px;
    font-size:26px;
}
.admin-main{min-height:100vh}
.admin-topbar{
    gap:12px;
    justify-content:flex-start;
}
.admin-menu-toggle{
    width:36px;
    height:32px;
    flex:0 0 36px;
}
.admin-menu-toggle span{
    background:var(--gold);
    box-shadow:none;
}
.admin-title-block{
    min-width:0;
    flex:1;
}
.admin-top-actions{margin-left:auto}
.admin-content{
    max-width:1280px;
    margin:0 auto;
    width:100%;
}
@media (max-width:820px){
    .admin-sidebar{
        position:fixed;
        height:100vh;
        display:block;
    }
    .admin-nav{grid-template-columns:1fr}
    .admin-topbar{
        min-height:64px;
        height:auto;
        padding:10px 12px;
        align-items:center;
        flex-wrap:wrap;
    }
    .admin-top-actions{
        width:100%;
        margin-left:48px;
        overflow:auto;
        padding-bottom:2px;
    }
}

/* Giao diện quản trị sản xuất */
.admin-body{
    background:
        linear-gradient(180deg,rgba(0,0,0,.58),rgba(0,0,0,.9)),
        var(--app-bg-image) center/cover fixed no-repeat;
}
.admin-content{
    padding:22px;
}
.admin-command-center{
    display:grid;
    gap:16px;
}
.admin-hero-panel{
    display:grid;
    grid-template-columns:minmax(0,1fr) 220px;
    gap:18px;
    align-items:stretch;
    min-height:170px;
    border:1px solid rgba(255,255,255,.16);
    border-radius:8px;
    padding:20px;
    background:
        linear-gradient(135deg,rgba(5,17,20,.82),rgba(6,12,16,.58)),
        var(--app-bg-image) center/cover no-repeat;
    box-shadow:0 18px 44px rgba(0,0,0,.32);
}
.admin-eyebrow{
    display:inline-flex;
    align-items:center;
    min-height:26px;
    padding:0 9px;
    border:1px solid rgba(248,216,74,.32);
    border-radius:999px;
    background:rgba(248,216,74,.1);
    color:var(--gold);
    font-size:11px;
    font-weight:900;
    text-transform:uppercase;
}
.admin-hero-panel h1{
    margin:12px 0 8px;
    font-size:30px;
    line-height:1.15;
}
.admin-hero-panel p{
    margin:0;
    max-width:680px;
    color:#d6e5e0;
    line-height:1.55;
}
.admin-hero-metrics{
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:8px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:8px;
    padding:18px;
    background:rgba(0,0,0,.46);
}
.admin-hero-metrics span{
    color:var(--muted);
    font-size:12px;
    font-weight:800;
}
.admin-hero-metrics strong{
    color:var(--gold);
    font-size:40px;
    line-height:1;
}
.admin-hero-metrics a{
    display:inline-flex;
    justify-content:center;
    align-items:center;
    min-height:36px;
    border-radius:7px;
    background:linear-gradient(135deg,var(--red),#ff5246);
    color:#fff;
    font-weight:900;
    font-size:13px;
}
.admin-kpi-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
}
.admin-kpi-card{
    display:flex;
    flex-direction:column;
    min-height:124px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:8px;
    padding:14px;
    background:rgba(0,0,0,.6);
    box-shadow:0 12px 28px rgba(0,0,0,.22);
}
.admin-kpi-card:hover{
    border-color:rgba(248,216,74,.42);
    background:rgba(6,19,22,.72);
}
.admin-kpi-card span{
    color:#cddbd7;
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
}
.admin-kpi-card strong{
    margin:11px 0 8px;
    color:#fff;
    font-size:22px;
    line-height:1.15;
    overflow-wrap:anywhere;
}
.admin-kpi-card small{
    margin-top:auto;
    color:var(--muted);
    line-height:1.4;
}
.admin-kpi-card.is-gold strong{color:var(--gold)}
.admin-kpi-card.is-green strong{color:#47e59a}
.admin-kpi-card.is-red strong{color:#ff756b}
.admin-kpi-card.is-blue strong{color:#75d7ff}
.admin-quick-actions{
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:10px;
}
.admin-quick-actions a{
    min-height:44px;
    border:1px solid rgba(248,216,74,.26);
    border-radius:8px;
    background:rgba(248,216,74,.1);
    color:var(--gold);
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    font-size:12px;
    font-weight:900;
    padding:8px;
}
.admin-quick-actions a:hover{
    background:rgba(248,216,74,.18);
}
.admin-ops-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
}
.admin-ops-grid--three{
    grid-template-columns:repeat(3,minmax(0,1fr));
}
.admin-panel--dense{
    border-radius:8px;
    padding:0;
    overflow:hidden;
}
.admin-panel-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    min-height:54px;
    padding:0 14px;
    border-bottom:1px solid var(--line);
    background:rgba(255,255,255,.04);
}
.admin-panel-head h2{
    margin:0;
    font-size:15px;
}
.admin-panel-head a{
    color:var(--gold);
    font-size:12px;
    font-weight:900;
}
.admin-data-list{
    display:grid;
}
.admin-data-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) max-content 96px;
    gap:12px;
    align-items:center;
    min-height:58px;
    padding:10px 14px;
    border-bottom:1px solid rgba(255,255,255,.1);
}
.admin-data-row:last-child{border-bottom:0}
.admin-data-row:hover{
    background:rgba(255,255,255,.05);
}
.admin-data-row.compact{
    grid-template-columns:minmax(0,1fr) max-content;
}
.admin-data-row span{
    min-width:0;
}
.admin-data-row b,
.admin-log-strip b{
    display:block;
    color:#fff;
    font-size:13px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.admin-data-row small,
.admin-log-strip small{
    display:block;
    margin-top:4px;
    color:var(--muted);
    font-size:11px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.admin-data-row strong{
    color:var(--gold);
    font-size:13px;
    white-space:nowrap;
}
.status-pill{
    display:inline-flex;
    justify-content:center;
    align-items:center;
    min-height:26px;
    padding:0 8px;
    border-radius:999px;
    background:rgba(255,255,255,.08);
    color:#dce7e4;
    font-style:normal;
    font-size:11px;
    font-weight:900;
    white-space:nowrap;
}
.status-pending,
.status-received,
.status-open{
    background:rgba(248,216,74,.14);
    color:var(--gold);
}
.status-approved,
.status-completed,
.status-answered,
.status-active{
    background:rgba(0,200,120,.16);
    color:#55e59e;
}
.status-rejected,
.status-locked,
.status-closed{
    background:rgba(230,0,18,.16);
    color:#ff7b70;
}
.admin-log-strip{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:0;
}
.admin-log-strip>div{
    min-height:74px;
    padding:13px 14px;
    border-right:1px solid rgba(255,255,255,.1);
    border-bottom:1px solid rgba(255,255,255,.1);
}
.admin-log-strip>div:nth-child(3n){
    border-right:0;
}
.admin-table{
    background:rgba(0,0,0,.2);
}
.admin-table th{
    position:sticky;
    top:0;
    z-index:1;
}
.admin-table td{
    color:#eef7f4;
}
.admin-filter{
    grid-template-columns:minmax(0,1fr) 132px;
}
.admin-login-page .app-shell{
    max-width:none;
    min-height:100vh;
    box-shadow:none;
    background:
        linear-gradient(180deg,rgba(0,0,0,.5),rgba(0,0,0,.86)),
        var(--app-bg-image) center/cover fixed no-repeat;
}
.admin-login-page .screen{
    min-height:100vh;
    display:grid;
    place-items:center;
    padding:28px;
}
.admin-login-page .dark-card{
    width:min(430px,100%);
    margin:0;
}

/* Drawer phải ẩn hoàn toàn trên cả desktop, chỉ hiện khi bấm nút 3 gạch */
.drawer,
.admin-sidebar{
    visibility:hidden;
    opacity:0;
    transform:translateX(-120vw)!important;
}
.drawer.open,
.admin-sidebar.open{
    visibility:visible;
    opacity:1;
    transform:translateX(0)!important;
}
@media (max-width:1180px){
    .admin-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .admin-quick-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
    .admin-ops-grid,
    .admin-ops-grid--three{grid-template-columns:1fr}
}
@media (max-width:700px){
    .admin-content{padding:14px}
    .admin-hero-panel{
        grid-template-columns:1fr;
        padding:16px;
    }
    .admin-hero-panel h1{font-size:24px}
    .admin-kpi-grid,
    .admin-quick-actions{grid-template-columns:1fr}
    .admin-data-row,
    .admin-data-row.compact{
        grid-template-columns:1fr;
        gap:6px;
    }
    .admin-data-row strong,
    .status-pill{
        justify-self:start;
    }
    .admin-log-strip{grid-template-columns:1fr}
    .admin-log-strip>div{border-right:0}
}

/* Thanh điều hướng nhanh dưới cùng, drawer vẫn chỉ mở khi bấm nút 3 gạch */
.bottom-nav{
    display:grid!important;
}
.screen{
    padding-bottom:92px;
}
.auth-page .screen,
.password-page .screen{
    min-height:calc(100vh - 56px);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:24px 16px 36px;
}
.auth-page .dark-card,
.password-page .dark-card{
    width:100%;
    max-width:398px;
    margin:0;
}
.auth-page .brand-watermark{
    display:none;
}
.admin-login-page{
    min-height:100vh;
}
.admin-login-page .screen{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
}
.admin-login-page .dark-card{
    width:min(430px,100%);
    margin:0;
}
html,
body,
button,
input,
select,
textarea{
    font-family:Arial,Helvetica,sans-serif;
}
.topbar-spacer{width:32px;height:32px;flex:0 0 32px}
.detail-card{display:block}
.detail-back{margin-top:16px}

/* Xu hướng đầu tư mô phỏng */
.trend-board{
    margin:14px;
    border:1px solid rgba(248,216,74,.34);
    border-radius:8px;
    overflow:hidden;
    background:linear-gradient(135deg,rgba(4,16,18,.96),rgba(11,35,32,.94));
    color:#fff;
    box-shadow:0 16px 34px rgba(0,0,0,.26);
}
.trend-board-head{
    min-height:62px;
    padding:12px 13px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    background:linear-gradient(135deg,rgba(248,216,74,.13),rgba(0,200,120,.08));
    border-bottom:1px solid rgba(255,255,255,.12);
}
.trend-board-head span,
.support-hero span,
.admin-support-hero span{
    display:block;
    color:#83f0c2;
    font-size:11px;
    font-weight:900;
    text-transform:uppercase;
}
.trend-board-head strong{
    display:block;
    margin-top:4px;
    font-size:16px;
}
.trend-board-head em{
    flex:0 0 auto;
    font-style:normal;
    color:#071719;
    background:#83f0c2;
    border-radius:999px;
    padding:6px 8px;
    font-size:11px;
    font-weight:900;
}
.trend-ticker{
    display:grid;
    max-height:344px;
    overflow:hidden;
}
.trend-row{
    display:grid;
    grid-template-columns:minmax(72px,.8fr) minmax(116px,1.1fr) max-content;
    gap:10px;
    align-items:center;
    min-height:43px;
    padding:9px 12px;
    border-bottom:1px solid rgba(255,255,255,.1);
    background:rgba(255,255,255,.035);
    transition:background .4s ease, transform .4s ease;
}
.trend-row:last-child{border-bottom:0}
.trend-row.is-new{
    background:rgba(0,200,120,.16);
    transform:translateY(-2px);
}
.trend-user{
    font-weight:900;
    color:#fff;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.trend-account{
    color:#cbd9d5;
    font-size:12px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.trend-row strong{
    color:#55e59e;
    font-size:13px;
    white-space:nowrap;
}

/* CSKH người dùng */
.support-hero{
    margin:18px 16px 12px;
    display:grid;
    grid-template-columns:minmax(0,1fr) 126px;
    gap:12px;
    align-items:stretch;
    padding:16px;
    border:1px solid var(--line);
    border-radius:8px;
    color:#fff;
    background:linear-gradient(135deg,rgba(4,16,18,.9),rgba(8,34,36,.72));
    box-shadow:0 16px 34px rgba(0,0,0,.3);
    backdrop-filter:blur(8px);
}
.support-hero h1{
    margin:5px 0 8px;
    font-size:24px;
    line-height:1.08;
}
.support-hero p{
    margin:0;
    color:#d5e2df;
    font-size:13px;
    line-height:1.48;
}
.support-hotline{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:4px;
    border:1px solid rgba(248,216,74,.38);
    border-radius:8px;
    background:rgba(248,216,74,.12);
    text-align:center;
    padding:10px 8px;
}
.support-hotline small{
    color:var(--muted);
    font-size:11px;
    font-weight:900;
}
.support-hotline strong{
    color:var(--gold);
    font-size:15px;
    overflow-wrap:anywhere;
}
.support-status-grid{
    margin:0 16px 12px;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
}
.support-status-grid>div{
    min-height:72px;
    border:1px solid var(--line);
    border-radius:8px;
    padding:10px;
    background:rgba(0,0,0,.54);
    color:#fff;
    backdrop-filter:blur(8px);
}
.support-status-grid span{
    display:block;
    color:var(--muted);
    font-size:11px;
    font-weight:900;
}
.support-status-grid strong{
    display:block;
    margin-top:8px;
    color:var(--gold);
    font-size:15px;
    overflow-wrap:anywhere;
}
.support-chat-card{
    border-radius:8px;
}
.support-chat-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
    margin-bottom:12px;
}
.support-chat-head h2{
    margin:0 0 4px;
    font-size:18px;
}
.support-chat-head small{
    color:var(--muted);
}
.live-dot{
    display:inline-flex;
    align-items:center;
    gap:6px;
    min-height:28px;
    padding:0 9px;
    border-radius:999px;
    color:#071719;
    background:#83f0c2;
    font-size:11px;
    font-weight:900;
    white-space:nowrap;
}
.live-dot:before{
    content:"";
    width:7px;
    height:7px;
    border-radius:50%;
    background:#00884d;
}
.quick-reply-row,
.admin-chat-toolbar{
    display:flex;
    gap:8px;
    overflow:auto;
    padding:10px 0 0;
}
.quick-reply-row button,
.admin-chat-toolbar button{
    flex:0 0 auto;
    min-height:34px;
    border:1px solid rgba(248,216,74,.32);
    border-radius:999px;
    background:rgba(248,216,74,.1);
    color:var(--gold);
    padding:0 11px;
    font-size:12px;
    font-weight:900;
}

/* CSKH quản trị sản xuất */
.admin-support-hero{
    display:grid;
    grid-template-columns:minmax(0,1fr) 210px;
    gap:14px;
    align-items:stretch;
    margin-bottom:14px;
    padding:18px;
    border:1px solid rgba(255,255,255,.16);
    border-radius:8px;
    background:linear-gradient(135deg,rgba(4,16,18,.9),rgba(8,34,36,.68));
    box-shadow:0 18px 44px rgba(0,0,0,.26);
}
.admin-support-hero h1{
    margin:6px 0 8px;
    font-size:28px;
    line-height:1.14;
}
.admin-support-hero p{
    margin:0;
    max-width:720px;
    color:#d5e2df;
    line-height:1.5;
}
.admin-support-clock{
    border:1px solid rgba(248,216,74,.34);
    border-radius:8px;
    background:rgba(248,216,74,.1);
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:14px;
}
.admin-support-clock small{
    color:var(--muted);
    font-weight:900;
}
.admin-support-clock strong{
    margin-top:7px;
    color:#83f0c2;
    font-size:19px;
}
.admin-support-stats{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
    margin-bottom:14px;
}
.admin-support-stats>div{
    min-height:88px;
    padding:13px;
    border:1px solid var(--line);
    border-radius:8px;
    background:rgba(0,0,0,.58);
}
.admin-support-stats span{
    display:block;
    color:var(--muted);
    font-size:12px;
    font-weight:900;
}
.admin-support-stats strong{
    display:block;
    margin-top:10px;
    color:var(--gold);
    font-size:28px;
}
.admin-support-layout .chat-list-panel,
.admin-support-layout .chat-admin-panel{
    border-radius:8px;
}
.chat-list-head{
    display:flex;
    justify-content:space-between;
    gap:10px;
    margin-bottom:12px;
}
.chat-list-head h2{
    margin:0 0 4px;
}
.chat-list-head small{
    color:var(--muted);
}
.chat-list-head span{
    flex:0 0 auto;
    align-self:flex-start;
    border-radius:999px;
    background:rgba(0,200,120,.14);
    color:#55e59e;
    padding:6px 9px;
    font-size:11px;
    font-weight:900;
}
.chat-list-item em{
    display:block;
    color:#bfd0cc;
    font-size:11px;
    font-style:normal;
    margin-bottom:4px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.admin-chat-toolbar{
    padding:0 0 12px;
}

@media (max-width:700px){
    .trend-row{
        grid-template-columns:1fr;
        gap:4px;
    }
    .trend-row strong{
        justify-self:start;
    }
    .support-hero,
    .admin-support-hero{
        grid-template-columns:1fr;
    }
    .support-status-grid,
    .admin-support-stats{
        grid-template-columns:1fr;
    }
}

/* Production refinement: investment app UI */
:root{
    --pro-bg:#f4f7fb;
    --pro-surface:#ffffff;
    --pro-surface-soft:#f7fafc;
    --pro-ink:#111827;
    --pro-muted:#64748b;
    --pro-line:#e5e7eb;
    --pro-accent:#d71920;
    --pro-accent-dark:#9f1117;
    --pro-gold:#d7a928;
    --pro-green:#059669;
    --pro-blue:#0f5f8f;
}
html,
body,
button,
input,
select,
textarea{
    font-family:Arial,Helvetica,sans-serif!important;
}
body{
    background:
        linear-gradient(180deg,rgba(10,18,28,.64),rgba(10,18,28,.9)),
        var(--app-bg-image) center/cover fixed no-repeat;
}
.app-shell{
    background:
        linear-gradient(180deg,rgba(244,247,251,.94),rgba(235,240,246,.9)),
        var(--app-bg-image) center/cover fixed no-repeat;
    box-shadow:0 0 36px rgba(2,8,23,.32);
}
.page-light .screen,
.page-dark .screen{
    color:var(--pro-ink);
    background:
        linear-gradient(180deg,rgba(244,247,251,.94),rgba(235,240,246,.91)),
        var(--app-bg-image) center/cover fixed no-repeat;
}
.topbar{
    background:rgba(255,218,64,.96);
    border-bottom:1px solid rgba(148,120,24,.22);
    box-shadow:0 8px 22px rgba(15,23,42,.08);
}
.menu-toggle span{
    background:#172033;
    box-shadow:none;
}
.drawer{
    background:#101827;
    border-right:1px solid rgba(255,255,255,.1);
}
.drawer-head{
    background:#ffd938;
}
.drawer-nav a{
    display:flex;
    border-radius:8px;
    border-color:rgba(255,255,255,.1);
    background:rgba(255,255,255,.04);
    font-weight:700;
}
.drawer-nav a span{
    min-width:30px;
    height:26px;
    border-radius:7px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:rgba(215,169,40,.16);
    color:#f6d56b;
    font-size:11px;
}
.hero-card{
    min-height:176px;
    margin:16px;
    border-radius:12px;
    justify-content:flex-start;
    background:
        linear-gradient(90deg,rgba(12,18,30,.88),rgba(12,18,30,.58),rgba(12,18,30,.26)),
        var(--app-bg-image) center/cover no-repeat;
    box-shadow:0 18px 38px rgba(15,23,42,.18);
}
.hero-card:before,
.hero-card:after{display:none}
.hero-card .hero-content{
    text-align:left;
    width:100%;
    padding:22px;
}
.hero-badge{
    min-width:52px;
    height:32px;
    border-radius:7px;
    margin-bottom:12px;
    font-size:13px;
    color:#111827;
    box-shadow:none;
}
.hero-title{
    max-width:270px;
    font-size:24px;
    line-height:1.12;
    letter-spacing:0;
    text-transform:none;
}
.hero-sub{
    max-width:300px;
    color:#dbeafe;
    font-size:13px;
}
.quick-grid{
    gap:9px;
    margin:12px 16px;
}
.quick-item{
    min-height:76px;
    border-radius:10px;
    border:1px solid var(--pro-line);
    background:rgba(255,255,255,.96);
    box-shadow:0 10px 22px rgba(15,23,42,.08);
    color:var(--pro-ink);
    font-weight:700;
}
.quick-item .ico{
    min-width:34px;
    height:28px;
    border-radius:8px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#fff3d0;
    color:var(--pro-accent);
    font-size:12px;
    font-weight:900;
}
.notice-line{
    min-height:48px;
    border-radius:10px;
    border:1px solid var(--pro-line);
    background:rgba(255,255,255,.96);
    color:var(--pro-ink);
    box-shadow:0 10px 22px rgba(15,23,42,.08);
}
.notice-line-link{
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    align-items:center;
}
.notice-line .tag{
    border-radius:999px;
    background:var(--pro-accent);
}
.notice-line strong{
    min-width:0;
    font-size:13px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.notice-line small{
    color:var(--pro-blue);
    font-weight:800;
    white-space:nowrap;
}
.section-title{
    border-radius:10px 10px 0 0;
    background:#fff;
    color:var(--pro-ink);
    border-color:var(--pro-line);
}
.white-card{
    border-color:var(--pro-line);
    background:rgba(255,255,255,.97);
    box-shadow:0 12px 24px rgba(15,23,42,.08);
}
.stat-box{
    border-color:#edf0f4;
    background:#f8fafc;
}
.stat-box{
    display:flex;
    align-items:center;
    gap:10px;
}
.stat-icon,
.trend-summary-grid i{
    width:36px;
    height:36px;
    min-width:36px;
    border-radius:12px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:rgba(248,214,92,.12);
    border:1px solid rgba(248,214,92,.22);
    font-style:normal;
}
.stat-icon .ui-icon,
.trend-summary-grid i .ui-icon{
    width:23px;
    height:23px;
}
.stat-label{
    color:var(--pro-muted);
    font-weight:700;
}
.stat-value{
    color:var(--pro-accent);
}
.quick-feed{
    margin:18px 16px;
    border:1px solid var(--pro-line);
    border-radius:12px;
    overflow:hidden;
    background:rgba(255,255,255,.97);
    box-shadow:0 16px 32px rgba(15,23,42,.1);
}
.quick-feed-head{
    min-height:66px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:14px;
    border-bottom:1px solid var(--pro-line);
    background:linear-gradient(180deg,#fff,#f8fafc);
}
.quick-feed-head span,
.feed-item span{
    display:block;
    color:var(--pro-muted);
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
}
.quick-feed-head h2{
    margin:3px 0 0;
    color:var(--pro-ink);
    font-size:18px;
    line-height:1.2;
}
.quick-feed-head a{
    color:var(--pro-blue);
    font-size:12px;
    font-weight:800;
    white-space:nowrap;
}
.feed-list{
    display:grid;
}
.feed-item,
.list-item,
.news-card{
    display:block;
}
.feed-item{
    padding:13px 14px;
    border-bottom:1px solid var(--pro-line);
    color:var(--pro-ink);
    background:#fff;
}
.feed-item:last-child{border-bottom:0}
.feed-item strong,
.list-item strong,
.news-card strong{
    display:block;
    color:var(--pro-ink);
    font-size:14px;
    line-height:1.38;
    overflow-wrap:anywhere;
}
.feed-item small{
    display:block;
    margin-top:5px;
    color:var(--pro-muted);
    font-size:12px;
    line-height:1.45;
}
.list-item{
    margin-bottom:10px;
    border-radius:10px;
    border-color:var(--pro-line);
    background:#fff;
}
.vip-wrap{
    border-radius:12px;
    border-color:var(--pro-line);
    box-shadow:0 18px 38px rgba(15,23,42,.12);
}
.vip-head{
    background:linear-gradient(135deg,#151f32,#27364f);
    padding:18px 16px;
    font-size:20px;
}
.vip-sub{
    color:#dbeafe;
}
.trend-board{
    margin:14px;
    border-radius:12px;
    border:1px solid #dbe3ee;
    background:#fff;
    color:var(--pro-ink);
    box-shadow:none;
}
.trend-board-head{
    padding:14px;
    background:linear-gradient(135deg,#f8fafc,#fff6db);
    border-bottom:1px solid var(--pro-line);
}
.trend-board-head span,
.support-hero span,
.admin-support-hero span{
    color:var(--pro-blue);
    letter-spacing:0;
}
.trend-board-head strong{
    color:var(--pro-ink);
    font-size:18px;
}
.trend-board-head em{
    color:#064e3b;
    background:#d1fae5;
}
.trend-summary-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    padding:12px 14px;
    border-bottom:1px solid var(--pro-line);
    background:#fff;
}
.trend-summary-grid>div{
    min-height:62px;
    border:1px solid #edf0f4;
    border-radius:9px;
    padding:9px;
    background:#f8fafc;
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    column-gap:9px;
    align-items:center;
}
.trend-summary-grid span{
    display:block;
    color:var(--pro-muted);
    font-size:10px;
    font-weight:800;
    min-width:0;
}
.trend-summary-grid strong{
    display:block;
    margin-top:4px;
    color:var(--pro-ink);
    font-size:15px;
    grid-column:2;
}
.trend-table-head{
    display:grid;
    grid-template-columns:minmax(82px,.9fr) minmax(116px,1fr) max-content;
    gap:10px;
    padding:10px 14px;
    background:#f8fafc;
    border-bottom:1px solid var(--pro-line);
    color:var(--pro-muted);
    font-size:11px;
    font-weight:900;
    text-transform:uppercase;
}
.trend-ticker{
    max-height:308px;
}
.trend-row{
    grid-template-columns:minmax(82px,.9fr) minmax(116px,1fr) max-content;
    min-height:48px;
    padding:10px 14px;
    border-bottom:1px solid #edf0f4;
    background:#fff;
}
.trend-row.is-new{
    background:#f0fdf4;
    transform:none;
}
.trend-user{
    color:var(--pro-ink);
    font-size:13px;
}
.trend-account{
    color:var(--pro-muted);
}
.trend-row strong{
    color:var(--pro-green);
    font-size:13px;
}
.vip-item{
    background:#fff;
    border-bottom-color:var(--pro-line);
}
.vip-medal{
    border-radius:10px;
    background:#fff7d6;
    color:#8a5d00;
    box-shadow:none;
}
.vip-meta span{
    border-color:#edf0f4;
    background:#f8fafc;
    color:var(--pro-muted);
}
.vip-name{
    color:var(--pro-ink);
}
.btn-primary,
.btn-red{
    border-radius:10px;
    background:linear-gradient(135deg,var(--pro-accent),#f04444);
    box-shadow:0 12px 22px rgba(215,25,32,.18);
}
.news-page .page-title,
.notifications-page .page-title{
    color:#fff;
    margin:16px;
    padding:16px;
    text-align:left;
    border-radius:12px;
    background:linear-gradient(135deg,#151f32,#26344c);
    box-shadow:0 14px 30px rgba(15,23,42,.18);
}
.tabs{
    margin:0 16px 14px;
}
.tabs a{
    border-radius:10px;
    color:var(--pro-ink);
    background:#fff;
    border-color:var(--pro-line);
}
.tabs a.active{
    background:var(--pro-accent);
    color:#fff;
}
.news-card{
    margin:11px 16px;
    padding:14px;
    border-radius:12px;
    border:1px solid var(--pro-line);
    background:rgba(255,255,255,.97);
    color:var(--pro-ink);
    box-shadow:0 12px 26px rgba(15,23,42,.08);
}
.news-card p,
.news-card small{
    color:var(--pro-muted)!important;
}
.news-date{
    color:var(--pro-accent);
    font-weight:800;
}
.notice-card{
    border-radius:12px;
    border-color:var(--pro-line);
    background:rgba(255,255,255,.97);
    color:var(--pro-ink);
}
.notice-card strong{
    color:var(--pro-ink);
}
.notice-card small{
    color:var(--pro-muted);
}
.notice-icon{
    background:#fff3d0;
    color:var(--pro-accent);
}
.support-hero,
.admin-support-hero{
    border-radius:12px;
    background:linear-gradient(135deg,#151f32,#26344c);
    box-shadow:0 16px 34px rgba(15,23,42,.18);
}
.support-status-grid>div,
.support-chat-card,
.admin-support-stats>div,
.admin-support-layout .chat-list-panel,
.admin-support-layout .chat-admin-panel{
    border-color:var(--pro-line);
    background:rgba(255,255,255,.97);
    color:var(--pro-ink);
}
.support-status-grid span,
.support-chat-head small,
.chat-list-head small,
.admin-support-stats span{
    color:var(--pro-muted);
}
.support-status-grid strong,
.admin-support-stats strong{
    color:var(--pro-accent);
}
.support-chat-head h2,
.chat-list-head h2,
.chat-admin-head h2{
    color:var(--pro-ink);
}
.chat-thread{
    border-color:var(--pro-line);
    background:#f8fafc;
}
.chat-bubble.support{
    color:var(--pro-ink);
    background:#fff;
    border-color:#e2e8f0;
}
.chat-bubble.support .chat-meta{
    color:var(--pro-muted);
}
.quick-reply-row button,
.admin-chat-toolbar button{
    color:var(--pro-blue);
    background:#eef7ff;
    border-color:#cfe7f8;
}
.admin-body,
.admin-shell{
    background:
        linear-gradient(180deg,rgba(244,247,251,.94),rgba(235,240,246,.9)),
        var(--app-bg-image) center/cover fixed no-repeat;
    color:var(--pro-ink);
}
.admin-topbar{
    background:rgba(255,255,255,.92);
    border-bottom-color:var(--pro-line);
    color:var(--pro-ink);
}
.admin-topbar small{
    color:var(--pro-muted);
}
.admin-card,
.admin-panel,
.admin-kpi-card,
.admin-panel--dense{
    border-color:var(--pro-line);
    background:rgba(255,255,255,.97);
    color:var(--pro-ink);
}
.admin-card span,
.admin-kpi-card span,
.admin-data-row small,
.admin-log-strip small{
    color:var(--pro-muted);
}
.admin-card strong,
.admin-kpi-card strong,
.admin-data-row b,
.admin-log-strip b{
    color:var(--pro-ink);
}
.admin-panel-head{
    background:#f8fafc;
    border-bottom-color:var(--pro-line);
}
.chat-list-item{
    border-color:var(--pro-line);
    background:#fff;
    color:var(--pro-ink);
}
.chat-list-item.active{
    border-color:#f3bf45;
    background:#fff9e8;
}
.chat-list-item span{
    color:var(--pro-accent);
}
.chat-list-item em,
.chat-list-item small,
.chat-admin-head small{
    color:var(--pro-muted);
}
.admin-support-clock{
    background:rgba(255,255,255,.12);
}
.admin-support-clock strong{
    color:#86efac;
}
.bottom-nav{
    min-height:66px;
    border-top-color:var(--pro-line);
    background:rgba(255,255,255,.96);
}
.page-dark .bottom-nav{
    border-top-color:var(--pro-line);
    background:rgba(255,255,255,.96);
}
.bottom-nav a,
.page-dark .bottom-nav a{
    color:var(--pro-muted);
}
.bottom-nav a.active,
.page-dark .bottom-nav a.active{
    color:var(--pro-accent);
}
@media (max-width:700px){
    .support-status-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:6px;
    }
    .support-status-grid>div{
        min-height:64px;
        padding:8px;
    }
    .support-status-grid span{
        font-size:10px;
        line-height:1.25;
    }
    .support-status-grid strong{
        font-size:13px;
    }
    .trend-summary-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:6px;
        padding:10px;
    }
    .trend-summary-grid>div{
        min-height:58px;
        padding:8px;
    }
    .trend-summary-grid span{
        font-size:9px;
        line-height:1.25;
    }
    .trend-summary-grid strong{
        font-size:14px;
    }
    .trend-table-head{
        display:none;
    }
    .trend-row{
        grid-template-columns:1fr;
        gap:4px;
    }
    .trend-row strong{
        justify-self:start;
    }
    .news-page .page-title,
    .notifications-page .page-title{
        font-size:18px;
    }
}

/* Glass investment system: remove solid white blocks */
:root{
    --glass-bg:rgba(9,16,26,.54);
    --glass-bg-strong:rgba(9,16,26,.72);
    --glass-bg-soft:rgba(255,255,255,.09);
    --glass-line:rgba(255,255,255,.18);
    --glass-line-soft:rgba(255,255,255,.1);
    --glass-text:#f8fafc;
    --glass-muted:#cbd5e1;
    --glass-faint:#94a3b8;
    --glass-gold:#f8d65c;
    --glass-green:#ff8a00;
    --glass-red:#ff4d57;
    --glass-blue:#7dd3fc;
    --glass-shadow:0 18px 46px rgba(0,0,0,.32);
}
html,
body{
    background:
        linear-gradient(180deg,rgba(3,8,14,.55),rgba(3,8,14,.92)),
        var(--app-bg-image) center/cover fixed no-repeat!important;
}
.app-shell{
    background:
        linear-gradient(180deg,rgba(5,11,19,.34),rgba(5,11,19,.68)),
        var(--app-bg-image) center/cover fixed no-repeat!important;
    color:var(--glass-text);
}
.page-light .screen,
.page-dark .screen{
    background:
        linear-gradient(180deg,rgba(6,13,22,.38),rgba(6,13,22,.78)),
        var(--app-bg-image) center/cover fixed no-repeat!important;
    color:var(--glass-text);
}
.topbar{
    background:rgba(9,16,26,.72)!important;
    border-bottom:1px solid var(--glass-line);
    box-shadow:0 14px 34px rgba(0,0,0,.22);
}
.menu-toggle span{
    background:var(--glass-gold);
}
.brand-logo{
    filter:drop-shadow(0 3px 10px rgba(0,0,0,.35));
}
.ui-icon{
    width:20px;
    height:20px;
    display:block;
    fill:none;
    stroke:currentColor;
    stroke-width:1.9;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.ui-icon-img{
    width:24px;
    height:24px;
    object-fit:contain;
    fill:initial;
    stroke:initial;
}
.drawer{
    background:rgba(7,13,22,.9)!important;
    border-right:1px solid var(--glass-line);
    box-shadow:24px 0 70px rgba(0,0,0,.42);
}
.drawer-head{
    background:rgba(9,16,26,.88)!important;
    border-bottom:1px solid var(--glass-line);
}
.drawer-close{
    color:var(--glass-gold);
}
.drawer-nav a{
    background:rgba(255,255,255,.07)!important;
    border-color:var(--glass-line-soft)!important;
    color:var(--glass-text);
}
.drawer-nav a span{
    min-width:34px;
    height:34px;
    border-radius:10px;
    background:rgba(248,214,92,.13)!important;
    color:var(--glass-gold)!important;
}
.drawer-nav a:hover{
    background:rgba(248,214,92,.13)!important;
    border-color:rgba(248,214,92,.32)!important;
}
.hero-card{
    border:1px solid var(--glass-line);
    background:
        linear-gradient(90deg,rgba(6,13,22,.9),rgba(6,13,22,.64),rgba(6,13,22,.24)),
        var(--app-bg-image) center/cover no-repeat!important;
    box-shadow:var(--glass-shadow);
}
.hero-badge{
    background:rgba(248,214,92,.94);
}
.hero-title,
.quick-feed-head h2,
.feed-item strong,
.list-item strong,
.news-card strong,
.vip-name,
.trend-board-head strong,
.support-chat-head h2,
.chat-list-head h2,
.chat-admin-head h2{
    color:var(--glass-text)!important;
}
.hero-sub,
.feed-item small,
.news-card p,
.news-card small,
.notice-card small,
.vip-sub,
.trend-account,
.support-hero p,
.support-chat-head small,
.chat-list-head small,
.chat-admin-head small{
    color:var(--glass-muted)!important;
}
.quick-item,
.notice-line,
.white-card,
.stat-box,
.quick-feed,
.quick-feed-head,
.feed-item,
.vip-wrap,
.vip-item,
.vip-meta span,
.trend-board,
.trend-board-head,
.trend-summary-grid,
.trend-summary-grid>div,
.trend-row,
.news-card,
.notice-card,
.support-status-grid>div,
.support-chat-card,
.chat-thread,
.tabs a,
.admin-card,
.admin-panel,
.admin-kpi-card,
.admin-panel--dense,
.chat-list-item{
    background:var(--glass-bg)!important;
    border-color:var(--glass-line)!important;
    color:var(--glass-text)!important;
    box-shadow:var(--glass-shadow);
    backdrop-filter:blur(16px) saturate(1.18);
    -webkit-backdrop-filter:blur(16px) saturate(1.18);
}
.quick-feed-head,
.trend-board-head{
    background:linear-gradient(135deg,rgba(255,255,255,.13),rgba(248,214,92,.08))!important;
}
.feed-item,
.trend-row,
.vip-item{
    box-shadow:none;
    border-left:0!important;
    border-right:0!important;
    border-top:0!important;
    background:rgba(9,16,26,.38)!important;
}
.section-title{
    color:var(--glass-text);
    border-color:var(--glass-line)!important;
    background:rgba(9,16,26,.76)!important;
    backdrop-filter:blur(16px);
}
.stat-label,
.quick-feed-head span,
.feed-item span,
.trend-summary-grid span,
.trend-table-head,
.support-status-grid span,
.admin-support-stats span,
.admin-card span,
.admin-kpi-card span{
    color:var(--glass-faint)!important;
}
.stat-value,
.support-status-grid strong,
.admin-support-stats strong{
    color:var(--glass-red)!important;
}
.quick-item{
    min-height:82px;
    justify-content:center;
    gap:8px;
}
.quick-item .ico,
.notice-icon,
.bottom-nav span,
.stat-icon,
.trend-summary-grid i{
    width:38px;
    height:38px;
    min-width:38px;
    border-radius:12px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:rgba(248,214,92,.14)!important;
    color:var(--glass-gold)!important;
    border:1px solid rgba(248,214,92,.22);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
}
.quick-item .ico .ui-icon,
.notice-icon .ui-icon,
.bottom-nav .ui-icon,
.stat-icon .ui-icon,
.trend-summary-grid i .ui-icon{
    width:23px;
    height:23px;
}
.quick-item>span:last-child{
    color:var(--glass-text);
    font-size:12px;
    font-weight:800;
    line-height:1.28;
}
.notice-line .tag,
.tabs a.active,
.btn-primary,
.btn-red{
    background:linear-gradient(135deg,#e51d2a,#ff5660)!important;
    color:#fff!important;
}
.notice-line strong{
    color:var(--glass-text);
}
.notice-line small,
.quick-feed-head a,
.trend-board-head span,
.support-hero span,
.admin-support-hero span{
    color:var(--glass-blue)!important;
}
.trend-summary-grid{
    box-shadow:none;
    border-left:0!important;
    border-right:0!important;
}
.trend-table-head{
    background:rgba(255,255,255,.07)!important;
    border-bottom:1px solid var(--glass-line)!important;
}
.trend-user{
    color:var(--glass-text)!important;
}
.trend-row strong{
    color:var(--glass-green)!important;
}
.trend-summary-grid strong{
    color:var(--glass-text)!important;
}
.trend-summary-grid>div:nth-child(1) strong{
    color:var(--glass-green)!important;
}
.trend-summary-grid>div:nth-child(2) strong,
.trend-summary-grid>div:nth-child(3) strong{
    color:var(--glass-gold)!important;
}
.trend-board-head em,
.live-dot{
    background:rgba(57,229,141,.16)!important;
    color:var(--glass-green)!important;
    border:1px solid rgba(57,229,141,.28);
}
.vip-medal{
    background:rgba(248,214,92,.14)!important;
    color:var(--glass-gold);
    border:1px solid rgba(248,214,92,.24);
}
.vip-meta span{
    box-shadow:none;
}
.vip-meta b{
    color:var(--glass-text);
}
.news-page .page-title,
.notifications-page .page-title,
.support-hero,
.admin-support-hero,
.vip-head{
    background:linear-gradient(135deg,rgba(9,16,26,.82),rgba(20,36,54,.62))!important;
    border:1px solid var(--glass-line);
    box-shadow:var(--glass-shadow);
    backdrop-filter:blur(16px);
    color:var(--glass-text)!important;
}
.tabs a{
    box-shadow:none;
}
.notice-card strong{
    color:var(--glass-text)!important;
}
.chat-bubble.support{
    background:rgba(255,255,255,.08)!important;
    color:var(--glass-text)!important;
}
.chat-bubble.support .chat-meta{
    color:var(--glass-faint)!important;
}
.field{
    background:rgba(7,13,22,.52)!important;
    border-color:var(--glass-line)!important;
}
.quick-reply-row button,
.admin-chat-toolbar button{
    background:rgba(125,211,252,.12)!important;
    color:var(--glass-blue)!important;
    border-color:rgba(125,211,252,.25)!important;
}
.bottom-nav,
.page-dark .bottom-nav{
    background:rgba(7,13,22,.78)!important;
    border-top:1px solid var(--glass-line)!important;
    box-shadow:0 -18px 46px rgba(0,0,0,.32);
    backdrop-filter:blur(18px) saturate(1.2);
}
.bottom-nav a,
.page-dark .bottom-nav a{
    color:var(--glass-muted)!important;
}
.bottom-nav a.active,
.page-dark .bottom-nav a.active{
    color:var(--glass-gold)!important;
}
.bottom-nav a.active span{
    background:rgba(248,214,92,.22)!important;
    border-color:rgba(248,214,92,.42);
}
.admin-body,
.admin-shell{
    background:
        linear-gradient(180deg,rgba(3,8,14,.52),rgba(3,8,14,.88)),
        var(--app-bg-image) center/cover fixed no-repeat!important;
    color:var(--glass-text);
}
.admin-topbar{
    background:rgba(7,13,22,.8)!important;
    border-bottom-color:var(--glass-line)!important;
    color:var(--glass-text)!important;
}
.admin-topbar small,
.admin-data-row small,
.admin-log-strip small,
.chat-list-item em,
.chat-list-item small{
    color:var(--glass-muted)!important;
}
.admin-card strong,
.admin-kpi-card strong,
.admin-data-row b,
.admin-log-strip b{
    color:var(--glass-text)!important;
}
.admin-panel-head{
    background:rgba(255,255,255,.07)!important;
    border-bottom-color:var(--glass-line)!important;
}
.chat-list-item.active{
    background:rgba(248,214,92,.12)!important;
    border-color:rgba(248,214,92,.34)!important;
}
@media (max-width:700px){
    .quick-item .ico,
    .bottom-nav span,
    .stat-icon,
    .trend-summary-grid i{
        width:36px;
        height:36px;
        min-width:36px;
    }
}

/* VinGroup premium fintech redesign */
:root{
    --vin-bg:#07090d;
    --vin-bg-2:#0f1118;
    --vin-panel:rgba(20,23,31,.78);
    --vin-panel-2:rgba(32,35,45,.72);
    --vin-line:rgba(255,255,255,.11);
    --vin-line-hot:rgba(255,178,0,.34);
    --vin-text:#fff8ec;
    --vin-muted:#b9b2a7;
    --vin-red:#e60012;
    --vin-red-2:#ff3441;
    --vin-orange:#ff7a00;
    --vin-gold:#ffd64d;
    --vin-gold-2:#ffb000;
    --vin-shadow:0 18px 48px rgba(0,0,0,.38);
}
body,
html{
    background:
        radial-gradient(circle at 50% -12%,rgba(230,0,18,.2),transparent 32%),
        radial-gradient(circle at 95% 8%,rgba(255,122,0,.18),transparent 28%),
        linear-gradient(180deg,var(--vin-bg) 0%,#090b10 48%,#050608 100%)!important;
}
.app-shell,
.page-light .screen,
.page-dark .screen,
.admin-body,
.admin-shell,
.admin-login-page .app-shell,
.admin-login-page .screen{
    background:
        radial-gradient(circle at 18% 0,rgba(255,214,77,.09),transparent 24%),
        radial-gradient(circle at 92% 12%,rgba(230,0,18,.18),transparent 30%),
        linear-gradient(180deg,#0d1017 0%,#07090d 100%)!important;
    color:var(--vin-text)!important;
}
.app-shell{
    box-shadow:0 0 0 1px rgba(255,255,255,.04),0 24px 80px rgba(0,0,0,.55);
}
.topbar,
.admin-topbar{
    background:rgba(9,11,16,.86)!important;
    border-bottom:1px solid var(--vin-line)!important;
    backdrop-filter:blur(18px) saturate(1.2);
}
.menu-toggle span,
.admin-menu-toggle span{
    background:var(--vin-gold)!important;
}
.brand-logo,
.admin-logo{
    filter:drop-shadow(0 4px 14px rgba(230,0,18,.38));
}
.ui-icon-img{
    filter:drop-shadow(0 5px 12px rgba(0,0,0,.28));
}
.drawer,
.admin-sidebar{
    background:rgba(8,10,15,.94)!important;
}
.drawer-head,
.admin-sidebar-head{
    background:linear-gradient(135deg,rgba(230,0,18,.22),rgba(255,176,0,.12))!important;
}
.drawer-nav a,
.admin-nav a{
    display:flex;
    align-items:center;
    gap:10px;
    color:var(--vin-text)!important;
    background:rgba(255,255,255,.045)!important;
    border:1px solid var(--vin-line)!important;
    border-radius:12px!important;
}
.drawer-nav a span,
.admin-nav a span{
    width:34px;
    height:34px;
    min-width:34px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:11px;
    background:linear-gradient(135deg,rgba(230,0,18,.2),rgba(255,176,0,.14))!important;
}
.drawer-nav a:hover,
.drawer-nav a.active,
.admin-nav a:hover,
.admin-nav a.active{
    border-color:var(--vin-line-hot)!important;
    background:rgba(255,176,0,.1)!important;
    color:var(--vin-gold)!important;
}
.fin-dashboard-hero,
.asset-card,
.quick-item,
.notice-line,
.white-card,
.stat-box,
.quick-feed,
.feed-item,
.timeline-panel,
.timeline-item,
.list-item,
.vip-wrap,
.trend-board,
.trend-row,
.membership-card,
.deposit-card,
.payment-info-card,
.payment-method-card,
.amount-preset-grid button,
.support-app,
.chat-thread,
.news-card,
.notice-card,
.dark-card,
.account-hero,
.balance-card,
.admin-card,
.admin-panel,
.admin-kpi-card{
    background:linear-gradient(180deg,rgba(28,31,41,.82),rgba(13,15,22,.78))!important;
    border:1px solid var(--vin-line)!important;
    color:var(--vin-text)!important;
    box-shadow:var(--vin-shadow);
    backdrop-filter:blur(18px) saturate(1.18);
    -webkit-backdrop-filter:blur(18px) saturate(1.18);
}
.fin-dashboard-hero{
    margin:16px;
    border-radius:22px;
    padding:16px;
    display:grid;
    gap:14px;
    position:relative;
    overflow:hidden;
}
.fin-dashboard-hero:before,
.asset-card:before{
    content:"";
    position:absolute;
    inset:-60px -80px auto auto;
    width:180px;
    height:180px;
    border-radius:50%;
    background:radial-gradient(circle,rgba(255,176,0,.24),transparent 62%);
    pointer-events:none;
}
.fin-hero-copy span,
.quick-feed-head span,
.trend-board-head span,
.deposit-head p,
.messenger-head small{
    color:var(--vin-muted)!important;
}
.fin-hero-copy h1,
.asset-balance,
.quick-feed-head h2,
.page-hero h1,
.deposit-head h1,
.messenger-head h1,
.membership-head strong{
    margin:0;
    color:var(--vin-text)!important;
    letter-spacing:0;
}
.fin-hero-copy h1{
    font-size:24px;
    line-height:1.08;
    margin-top:5px;
}
.fin-hero-copy p{
    margin:7px 0 0;
    color:#ddd3c2;
    font-size:13px;
    line-height:1.5;
}
.asset-card{
    position:relative;
    border-radius:20px;
    padding:15px;
    overflow:hidden;
    background:
        linear-gradient(145deg,rgba(230,0,18,.25),rgba(255,122,0,.12) 46%,rgba(17,20,30,.86))!important;
}
.asset-card-head,
.deposit-head,
.messenger-head,
.page-hero,
.membership-head{
    display:flex;
    align-items:center;
    gap:12px;
}
.asset-card-head>span,
.deposit-head>span,
.messenger-avatar,
.page-hero>span,
.membership-head>span{
    width:46px;
    height:46px;
    min-width:46px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:16px;
    background:linear-gradient(135deg,rgba(230,0,18,.28),rgba(255,176,0,.18));
    border:1px solid var(--vin-line-hot);
}
.asset-card-head small,
.asset-subgrid small,
.payment-info-card small{
    display:block;
    color:var(--vin-muted);
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
}
.asset-balance{
    margin-top:14px;
    font-size:31px;
    font-weight:900;
    line-height:1;
    color:var(--vin-gold)!important;
}
.asset-subgrid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin-top:14px;
}
.asset-subgrid>div{
    padding:10px;
    border:1px solid rgba(255,255,255,.1);
    border-radius:14px;
    background:rgba(255,255,255,.055);
}
.asset-subgrid strong{
    display:block;
    margin-top:4px;
    color:var(--vin-text);
    font-size:13px;
}
.asset-actions,
.payment-method-grid,
.amount-preset-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:9px;
    margin-top:14px;
}
.asset-actions a{
    min-height:58px;
    border-radius:15px;
    border:1px solid rgba(255,255,255,.1);
    background:rgba(255,255,255,.07);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:5px;
    font-size:12px;
    font-weight:800;
}
.fin-quick-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
}
.quick-item{
    min-height:86px;
    border-radius:18px;
}
.quick-item .ico,
.stat-icon,
.timeline-icon,
.bottom-nav span,
.notice-icon,
.trend-summary-grid i{
    background:linear-gradient(135deg,rgba(230,0,18,.24),rgba(255,176,0,.18))!important;
    border-color:var(--vin-line-hot)!important;
}
.notice-line .tag,
.tabs a.active,
.btn-red,
.btn-primary,
.membership-cta{
    background:linear-gradient(135deg,var(--vin-red),var(--vin-red-2) 52%,var(--vin-orange))!important;
    color:#fff!important;
    box-shadow:0 14px 28px rgba(230,0,18,.24)!important;
}
.section-title,
.quick-feed-head,
.trend-board-head{
    background:linear-gradient(135deg,rgba(230,0,18,.18),rgba(255,176,0,.08))!important;
    border-color:var(--vin-line)!important;
    color:var(--vin-text)!important;
}
.stat-label,
.feed-item small,
.timeline-item small,
.trend-account,
.vip-sub,
.payment-method-card small,
.messenger-note{
    color:var(--vin-muted)!important;
}
.stat-value,
.amount-plus,
.trend-row strong,
.timeline-item.is-plus b,
.trend-summary-grid strong{
    color:var(--vin-gold)!important;
}
.amount-minus,
.timeline-item.is-minus b{
    color:#ff6a72!important;
}
.timeline-panel,
.membership-screen{
    margin:16px;
}
.transaction-timeline{
    display:grid;
}
.timeline-item{
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    gap:11px;
    align-items:center;
    min-height:72px;
    padding:12px 14px;
    border-radius:0!important;
    border-left:0!important;
    border-right:0!important;
    border-top:0!important;
    box-shadow:none!important;
}
.timeline-item:first-child{border-radius:18px 18px 0 0!important}
.timeline-item:last-child{border-bottom:0!important;border-radius:0 0 18px 18px!important}
.timeline-item strong,
.list-item strong,
.timeline-item b{
    color:var(--vin-text);
    font-size:13px;
}
.list-item small{
    display:block;
    margin-top:5px;
    color:var(--vin-muted)!important;
}
.list-title,
.balance-label{
    color:var(--vin-text)!important;
}
.inline-icon{
    display:inline-flex;
    vertical-align:middle;
    margin-right:6px;
}
.inline-icon .ui-icon{
    width:22px;
    height:22px;
}
.timeline-item>div{
    min-width:0;
}
.timeline-item>div strong,
.timeline-item>div small{
    display:block;
}
.timeline-item b,
.timeline-item em{
    grid-column:2;
    justify-self:start;
    margin-top:3px;
}
.timeline-item em{
    color:var(--vin-gold);
    font-style:normal;
    font-size:12px;
    font-weight:900;
}
.page-hero{
    margin:16px;
    border-radius:20px;
    padding:16px;
    background:linear-gradient(135deg,rgba(230,0,18,.22),rgba(255,122,0,.11))!important;
}
.page-hero p{
    margin:4px 0 0;
    color:var(--vin-muted);
}
.membership-screen{
    border-radius:22px;
    overflow:hidden;
}
.membership-head{
    padding:16px;
    background:linear-gradient(135deg,rgba(230,0,18,.2),rgba(255,176,0,.08));
}
.membership-list{
    display:grid;
    gap:12px;
    margin-top:14px;
}
.membership-card{
    border-radius:20px;
    padding:14px;
}
.vip-medal{
    width:54px;
    height:54px;
    border-radius:16px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:2px;
}
.vip-medal small{
    color:var(--vin-gold);
    font-size:10px;
    font-weight:900;
}
.membership-title{
    display:flex;
    justify-content:space-between;
    gap:10px;
    align-items:center;
}
.membership-title span{
    color:var(--vin-gold);
    font-weight:900;
}
.membership-progress{
    height:8px;
    border-radius:999px;
    background:rgba(255,255,255,.09);
    overflow:hidden;
    margin:10px 0;
}
.membership-progress i{
    display:block;
    height:100%;
    border-radius:999px;
    background:linear-gradient(90deg,var(--vin-red),var(--vin-orange),var(--vin-gold));
}
.membership-cta{
    margin-top:12px;
    min-height:40px;
}
.deposit-card{
    border-radius:22px;
}
.deposit-head{
    margin-bottom:14px;
}
.deposit-head h1{
    font-size:24px;
}
.payment-info-card{
    display:flex;
    gap:12px;
    align-items:flex-start;
    border-radius:18px;
    padding:13px;
    margin-bottom:14px;
}
.payment-info-card>span,
.payment-method-card>span{
    width:40px;
    height:40px;
    min-width:40px;
    border-radius:14px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,176,0,.1);
}
.payment-info-card strong{
    display:block;
    margin-top:4px;
    color:var(--vin-text);
    line-height:1.45;
}
.amount-preset-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
    margin:0 0 14px;
}
.amount-preset-grid button{
    min-height:60px;
    border-radius:16px;
    color:var(--vin-text);
}
.amount-preset-grid button.active{
    border-color:var(--vin-line-hot)!important;
    background:linear-gradient(135deg,rgba(230,0,18,.26),rgba(255,176,0,.12))!important;
}
.amount-preset-grid b,
.amount-preset-grid small{
    display:block;
}
.amount-preset-grid small{
    color:var(--vin-muted);
}
.payment-method-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    margin:0 0 14px;
}
.payment-method-card{
    min-height:98px;
    border-radius:18px;
    padding:12px;
    text-align:left;
}
.payment-method-card.active{
    border-color:var(--vin-line-hot)!important;
    background:linear-gradient(135deg,rgba(230,0,18,.22),rgba(255,176,0,.13))!important;
}
.payment-method-card strong{
    display:block;
    margin-top:8px;
    color:var(--vin-text);
}
.support-app{
    margin:16px;
    border-radius:24px;
    padding:0;
    overflow:hidden;
}
.messenger-head{
    padding:14px;
    border-bottom:1px solid var(--vin-line);
    background:linear-gradient(135deg,rgba(230,0,18,.2),rgba(255,176,0,.09));
}
.messenger-head h1{
    font-size:18px;
}
.messenger-note{
    margin:12px 14px;
    padding:10px 12px;
    border-radius:14px;
    background:rgba(255,255,255,.06);
    font-size:12px;
}
.support-app .chat-thread{
    margin:0 14px;
    height:450px;
    border-radius:18px;
    background:rgba(3,5,10,.42)!important;
}
.support-app .chat-form{
    display:grid;
    grid-template-columns:minmax(0,1fr) 82px;
    gap:8px;
    padding:12px 14px 14px;
}
.support-app .chat-form .field-area{
    height:48px;
    min-height:48px;
    border-radius:16px;
}
.support-app .chat-form .btn-red{
    min-height:48px;
    border-radius:16px;
    gap:5px;
}
.chat-bubble.mine{
    background:linear-gradient(135deg,var(--vin-red),var(--vin-red-2))!important;
}
.chat-bubble.support{
    background:rgba(255,255,255,.08)!important;
}
.bottom-nav,
.page-dark .bottom-nav{
    background:rgba(8,10,15,.9)!important;
}
.bottom-nav a.active,
.page-dark .bottom-nav a.active{
    color:var(--vin-gold)!important;
}
.bottom-nav a.active span{
    background:linear-gradient(135deg,rgba(230,0,18,.26),rgba(255,176,0,.18))!important;
}
@media (max-width:420px){
    .asset-balance{font-size:28px}
    .fin-quick-grid{gap:8px}
    .quick-item>span:last-child{font-size:11px}
    .timeline-item{grid-template-columns:auto minmax(0,1fr);align-items:flex-start}
    .timeline-item b,.timeline-item em{grid-column:2;justify-self:start}
}

.fin-dashboard-hero,
.asset-card,
.quick-item,
.timeline-item,
.membership-card,
.payment-method-card,
.amount-preset-grid button,
.support-app,
.news-card,
.notice-card{
    transition:transform .22s ease,border-color .22s ease,background .22s ease,box-shadow .22s ease;
}
.quick-item:active,
.asset-actions a:active,
.timeline-item:active,
.membership-card:active,
.payment-method-card:active,
.amount-preset-grid button:active,
.bottom-nav a:active{
    transform:scale(.98);
}
@keyframes finFadeUp{
    from{opacity:0;transform:translateY(10px)}
    to{opacity:1;transform:translateY(0)}
}
.fin-dashboard-hero,
.quick-grid,
.notice-line,
.fin-section,
.timeline-panel,
.quick-feed,
.membership-card,
.deposit-card,
.support-app,
.news-card,
.notice-card{
    animation:finFadeUp .42s ease both;
}
@media (prefers-reduced-motion:reduce){
    *,
    *:before,
    *:after{
        animation:none!important;
        transition:none!important;
    }
}

/* Vingroup red - yellow - white production palette override */
:root{
    --vg-red:#e60012;
    --vg-red-2:#b6000e;
    --vg-orange:#ff7a00;
    --vg-yellow:#ffd400;
    --vg-yellow-2:#fff1a8;
    --vg-white:#ffffff;
    --vg-paper:#fffdf7;
    --vg-paper-2:#fff7dd;
    --vg-ink:#241600;
    --vg-muted:#765b28;
    --vg-line:rgba(230,0,18,.14);
    --vg-line-hot:rgba(255,122,0,.32);
    --vg-shadow:0 18px 44px rgba(166,54,0,.16);
    --vin-bg:var(--vg-paper);
    --vin-bg-2:var(--vg-paper-2);
    --vin-panel:rgba(255,255,255,.88);
    --vin-panel-2:rgba(255,255,255,.72);
    --vin-line:var(--vg-line);
    --vin-line-hot:var(--vg-line-hot);
    --vin-text:var(--vg-ink);
    --vin-muted:var(--vg-muted);
    --vin-red:var(--vg-red);
    --vin-red-2:#ff3040;
    --vin-orange:var(--vg-orange);
    --vin-gold:var(--vg-yellow);
    --vin-gold-2:#ffb400;
}
html,
body,
.admin-body{
    background:
        radial-gradient(circle at 0 0,rgba(255,212,0,.34),transparent 28%),
        radial-gradient(circle at 100% 12%,rgba(230,0,18,.16),transparent 30%),
        linear-gradient(180deg,#ffffff 0%,#fff8df 46%,#fff1c5 100%)!important;
    color:var(--vg-ink)!important;
    font-family:Arial,"Helvetica Neue",sans-serif!important;
}
.app-shell,
.screen,
.page-light .screen,
.page-dark .screen,
.admin-shell,
.admin-login-page .app-shell,
.admin-login-page .screen{
    background:
        radial-gradient(circle at 12% -6%,rgba(255,212,0,.46),transparent 30%),
        radial-gradient(circle at 92% 6%,rgba(230,0,18,.16),transparent 33%),
        linear-gradient(180deg,#ffffff 0%,#fffaf0 52%,#fff0c2 100%)!important;
    color:var(--vg-ink)!important;
}
.screen:before,
.app-shell:before{
    background:
        linear-gradient(135deg,rgba(230,0,18,.06),transparent 38%),
        repeating-linear-gradient(135deg,rgba(255,212,0,.08) 0 1px,transparent 1px 22px)!important;
    opacity:1!important;
}
.topbar,
.admin-topbar{
    background:rgba(255,255,255,.94)!important;
    border-bottom:1px solid var(--vg-line)!important;
    box-shadow:0 12px 30px rgba(166,54,0,.11)!important;
    color:var(--vg-ink)!important;
    backdrop-filter:blur(18px);
}
.topbar strong,
.admin-topbar strong,
.admin-title-block,
.admin-panel h2,
.admin-panel-head h2{
    color:var(--vg-ink)!important;
}
.topbar small,
.admin-topbar small,
.admin-data-row small,
.admin-log-strip small,
.chat-list-item em,
.chat-list-item small{
    color:var(--vg-muted)!important;
}
.menu-toggle,
.admin-menu-toggle{
    background:linear-gradient(135deg,#ffffff,#fff0b2)!important;
    border:1px solid var(--vg-line-hot)!important;
    box-shadow:0 10px 22px rgba(230,0,18,.12)!important;
}
.menu-toggle span,
.admin-menu-toggle span{
    background:var(--vg-red)!important;
}
.drawer,
.admin-sidebar{
    background:linear-gradient(180deg,rgba(255,255,255,.97),rgba(255,246,210,.95))!important;
    border-right:1px solid var(--vg-line)!important;
    box-shadow:18px 0 42px rgba(166,54,0,.16)!important;
    color:var(--vg-ink)!important;
}
.drawer-head,
.admin-sidebar-head{
    background:linear-gradient(135deg,var(--vg-red),var(--vg-orange) 58%,var(--vg-yellow))!important;
    color:#fff!important;
}
.drawer-nav a,
.admin-nav a{
    background:rgba(255,255,255,.72)!important;
    border:1px solid rgba(230,0,18,.11)!important;
    color:var(--vg-ink)!important;
    box-shadow:0 8px 20px rgba(166,54,0,.08);
}
.drawer-nav a span,
.admin-nav a span,
.drawer-nav a .ui-icon,
.admin-nav a .ui-icon{
    color:var(--vg-red)!important;
}
.drawer-nav a:hover,
.drawer-nav a.active,
.admin-nav a:hover,
.admin-nav a.active{
    background:linear-gradient(135deg,rgba(230,0,18,.1),rgba(255,212,0,.24))!important;
    border-color:var(--vg-line-hot)!important;
    color:var(--vg-red)!important;
}
.fin-dashboard-hero,
.quick-feed,
.timeline-panel,
.trend-board,
.membership-card,
.deposit-card,
.support-app,
.support-hero,
.support-chat-card,
.notice-card,
.news-card,
.admin-card,
.admin-panel,
.admin-kpi-card,
.admin-panel--dense,
.admin-hero-panel,
.admin-command-center,
.admin-support-hero,
.admin-support-layout .chat-list-panel,
.admin-support-layout .chat-admin-panel,
.support-status-grid>div,
.admin-support-stats>div,
.quick-item,
.notice-line,
.payment-info-card,
.payment-method-card,
.amount-preset-grid button,
.timeline-item,
.trend-row,
.chat-list-item,
.list-item,
.dark-card{
    background:rgba(255,255,255,.88)!important;
    border:1px solid var(--vg-line)!important;
    color:var(--vg-ink)!important;
    box-shadow:var(--vg-shadow)!important;
    backdrop-filter:blur(18px);
}
.fin-dashboard-hero,
.admin-hero-panel,
.support-hero,
.admin-support-hero{
    background:
        linear-gradient(135deg,rgba(255,255,255,.96),rgba(255,248,219,.9) 54%,rgba(255,229,143,.8)),
        radial-gradient(circle at 94% 0,rgba(230,0,18,.18),transparent 34%)!important;
}
.fin-dashboard-hero:before,
.asset-card:before,
.admin-hero-panel:before{
    background:linear-gradient(135deg,rgba(255,212,0,.28),rgba(230,0,18,.12),transparent)!important;
}
.asset-card{
    background:
        radial-gradient(circle at 92% 8%,rgba(255,212,0,.62),transparent 30%),
        linear-gradient(135deg,var(--vg-red),#ff3340 52%,var(--vg-orange))!important;
    border:1px solid rgba(255,212,0,.44)!important;
    color:#fff!important;
    box-shadow:0 22px 46px rgba(230,0,18,.24)!important;
}
.asset-card *,
.asset-card-head strong,
.asset-card-head small,
.asset-subgrid strong,
.asset-subgrid small{
    color:#fff!important;
}
.asset-balance{
    color:var(--vg-yellow)!important;
    text-shadow:0 2px 12px rgba(72,0,0,.28)!important;
}
.asset-subgrid>div,
.asset-actions a{
    background:rgba(255,255,255,.16)!important;
    border:1px solid rgba(255,255,255,.28)!important;
}
.asset-actions a:hover{
    background:rgba(255,255,255,.24)!important;
}
.fin-hero-copy h1,
.quick-feed-head h2,
.trend-board-head strong,
.support-chat-head h2,
.chat-list-head h2,
.chat-admin-head h2,
.deposit-head h1,
.membership-head strong,
.news-card strong,
.notice-card strong,
.timeline-item strong,
.timeline-item b,
.payment-method-card strong,
.payment-info-card strong,
.amount-preset-grid b,
.trend-user,
.trend-summary-grid strong,
.support-status-grid strong,
.admin-support-stats strong,
.admin-card strong,
.admin-kpi-card strong,
.admin-data-row b,
.admin-log-strip b,
.list-title,
.list-item strong,
.page-title,
.support-hero h1,
.admin-support-hero h1{
    color:var(--vg-ink)!important;
}
.fin-hero-copy span,
.quick-feed-head span,
.trend-board-head span,
.deposit-head p,
.membership-head span,
.support-hero span,
.admin-support-hero span,
.trend-table-head,
.support-status-grid span,
.admin-support-stats span,
.admin-card span,
.admin-kpi-card span,
.news-card p,
.news-card small,
.notice-card small,
.timeline-item small,
.timeline-item em,
.amount-preset-grid small,
.trend-account,
.support-hero p,
.admin-support-hero p,
.support-chat-head small,
.chat-list-head small,
.chat-admin-head small,
.field-label,
.list-item small{
    color:var(--vg-muted)!important;
}
.quick-item .ico,
.timeline-icon,
.notice-icon,
.trend-summary-grid i,
.payment-info-card>span,
.payment-method-card>span{
    background:linear-gradient(135deg,rgba(230,0,18,.12),rgba(255,212,0,.38))!important;
    color:var(--vg-red)!important;
    border:1px solid rgba(255,122,0,.2);
}
.quick-item .ico .ui-icon,
.timeline-icon .ui-icon,
.notice-icon .ui-icon,
.bottom-nav .ui-icon,
.trend-summary-grid i .ui-icon,
.payment-info-card .ui-icon,
.payment-method-card .ui-icon{
    color:var(--vg-red)!important;
    filter:none!important;
}
.notice-line .tag,
.quick-feed-head a,
.admin-top-actions a,
.table-link,
.inline-form button,
.btn-red,
.btn-yellow,
.membership-cta,
.payment-method-card.active,
.amount-preset-grid button.active{
    background:linear-gradient(135deg,var(--vg-red),var(--vg-orange))!important;
    border-color:rgba(255,212,0,.42)!important;
    color:#fff!important;
    box-shadow:0 12px 28px rgba(230,0,18,.22)!important;
}
.btn-yellow{
    background:linear-gradient(135deg,var(--vg-yellow),var(--vg-orange))!important;
    color:#2a1500!important;
}
.btn-red .ui-icon,
.btn-yellow .ui-icon,
.quick-feed-head a .ui-icon,
.membership-cta .ui-icon{
    color:currentColor!important;
}
.membership-title span,
.news-date,
.trend-row strong,
.timeline-item.is-plus b{
    color:var(--vg-red)!important;
}
.timeline-item.is-minus b{
    color:#9b2530!important;
}
.membership-progress{
    background:rgba(230,0,18,.1)!important;
}
.membership-progress i{
    background:linear-gradient(90deg,var(--vg-red),var(--vg-orange),var(--vg-yellow))!important;
}
.trend-row.is-new,
.chat-list-item.active{
    background:linear-gradient(135deg,rgba(230,0,18,.1),rgba(255,212,0,.22))!important;
    border-color:var(--vg-line-hot)!important;
}
.trend-table-head,
.quick-feed-head,
.trend-board-head,
.chat-list-head,
.support-chat-head,
.admin-panel-head,
.deposit-head,
.membership-head{
    border-color:rgba(230,0,18,.12)!important;
}
.field,
.field-area,
input,
select,
textarea{
    background:rgba(255,255,255,.9)!important;
    border:1px solid rgba(230,0,18,.16)!important;
    color:var(--vg-ink)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
}
.field:focus,
.field-area:focus,
input:focus,
select:focus,
textarea:focus{
    border-color:var(--vg-orange)!important;
    box-shadow:0 0 0 3px rgba(255,212,0,.22)!important;
}
.chat-thread,
.support-app .chat-thread{
    background:linear-gradient(180deg,rgba(255,255,255,.75),rgba(255,242,195,.72))!important;
    border:1px solid rgba(230,0,18,.13)!important;
}
.chat-bubble.mine{
    background:linear-gradient(135deg,var(--vg-red),#ff3040)!important;
    color:#fff!important;
}
.chat-bubble.support{
    background:#fff!important;
    color:var(--vg-ink)!important;
    border:1px solid rgba(230,0,18,.12)!important;
    box-shadow:0 8px 18px rgba(166,54,0,.1)!important;
}
.chat-bubble.support .chat-meta{
    color:var(--vg-muted)!important;
}
.chat-bubble.mine .chat-meta{
    color:rgba(255,255,255,.82)!important;
}
.quick-reply-row button,
.admin-chat-toolbar button{
    background:#fff8d7!important;
    color:var(--vg-red)!important;
    border:1px solid rgba(255,122,0,.26)!important;
}
.bottom-nav,
.page-dark .bottom-nav{
    background:rgba(255,255,255,.96)!important;
    border-top:1px solid var(--vg-line)!important;
    box-shadow:0 -14px 34px rgba(166,54,0,.13)!important;
}
.bottom-nav a,
.page-dark .bottom-nav a{
    color:var(--vg-muted)!important;
}
.bottom-nav a.active,
.page-dark .bottom-nav a.active{
    color:var(--vg-red)!important;
}
.bottom-nav a.active span{
    background:linear-gradient(135deg,rgba(230,0,18,.12),rgba(255,212,0,.36))!important;
    color:var(--vg-red)!important;
}
.admin-table th{
    background:#fff0ba!important;
    color:var(--vg-red)!important;
    border-bottom-color:rgba(230,0,18,.16)!important;
}
.admin-table td,
.admin-list-row,
.admin-data-row{
    border-color:rgba(230,0,18,.12)!important;
    color:var(--vg-ink)!important;
}
.admin-hero-metrics span,
.admin-log-strip>div{
    border-color:rgba(230,0,18,.12)!important;
}
.admin-quick-actions a{
    background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(255,242,190,.92))!important;
    color:var(--vg-red)!important;
    border:1px solid rgba(255,122,0,.24)!important;
}
.admin-quick-actions a:hover{
    background:linear-gradient(135deg,rgba(230,0,18,.1),rgba(255,212,0,.28))!important;
}
.drawer-mask.open{
    background:rgba(64,22,0,.42)!important;
}
.section-title,
.white-card,
.stat-box,
.feed-item,
.page-hero,
.vip-item,
.vip-meta span,
.support-card,
.chat-card{
    background:rgba(255,255,255,.88)!important;
    border-color:var(--vg-line)!important;
    color:var(--vg-ink)!important;
    box-shadow:0 12px 28px rgba(166,54,0,.12)!important;
}
.section-title{
    background:linear-gradient(135deg,#ffffff,#fff1b8)!important;
    color:var(--vg-red)!important;
    border-bottom:1px solid var(--vg-line)!important;
}
.white-card{
    border-radius:18px!important;
}
.stat-box{
    background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(255,245,205,.9))!important;
}
.stat-label,
.feed-item small,
.vip-sub,
.vip-meta span,
.page-hero p,
.support-card p{
    color:var(--vg-muted)!important;
}
.stat-value,
.feed-item strong,
.vip-name,
.vip-meta b,
.page-hero h1,
.support-card h2{
    color:var(--vg-ink)!important;
}
.stat-icon{
    background:linear-gradient(135deg,rgba(230,0,18,.12),rgba(255,212,0,.36))!important;
    color:var(--vg-red)!important;
}
.feed-item span{
    color:var(--vg-red)!important;
    background:rgba(255,212,0,.2)!important;
}
.page-hero>span,
.support-icon{
    background:linear-gradient(135deg,var(--vg-red),var(--vg-orange))!important;
    color:#fff!important;
}
.page-hero>span .ui-icon,
.stat-icon .ui-icon,
.support-icon .ui-icon{
    color:currentColor!important;
}
.fin-hero-copy p,
.quick-item>span:last-child,
.notice-line small,
.notice-line strong,
.admin-hero-panel p,
.admin-hero-metrics span,
.balance-label,
.balance-sub,
.user-row small{
    color:var(--vg-muted)!important;
}
.vip-head,
.membership-head,
.account-hero,
.balance-card,
.trend-summary-grid,
.trend-summary-grid>div,
.admin-hero-metrics,
.admin-hero-metrics span{
    background:rgba(255,255,255,.88)!important;
    border:1px solid var(--vg-line)!important;
    color:var(--vg-ink)!important;
    box-shadow:var(--vg-shadow)!important;
}
.vip-head,
.membership-head,
.account-hero{
    background:
        linear-gradient(135deg,rgba(255,255,255,.96),rgba(255,242,191,.9)),
        radial-gradient(circle at 94% 0,rgba(230,0,18,.14),transparent 34%)!important;
}
.vip-head strong,
.membership-head strong,
.user-row strong,
.balance-label,
.admin-hero-metrics strong{
    color:var(--vg-ink)!important;
}
.balance-card{
    background:
        radial-gradient(circle at 96% 0,rgba(255,212,0,.34),transparent 28%),
        linear-gradient(135deg,var(--vg-red),#ff3340 54%,var(--vg-orange))!important;
    border-color:rgba(255,212,0,.42)!important;
}
.balance-card,
.balance-card *,
.balance-label,
.balance-sub{
    color:#fff!important;
}
.balance-value{
    color:var(--vg-yellow)!important;
    text-shadow:0 2px 12px rgba(72,0,0,.24)!important;
}
.referral-pill,
.mini-action{
    background:rgba(255,255,255,.16)!important;
    border:1px solid rgba(255,255,255,.28)!important;
    color:#fff!important;
}
.mini-action .ui-icon,
.balance-label .ui-icon{
    color:#fff!important;
}
.trend-summary-grid>div,
.admin-hero-metrics span{
    background:linear-gradient(135deg,#ffffff,#fff4c9)!important;
}
.trend-summary-grid>div span,
.admin-hero-metrics span{
    color:var(--vg-muted)!important;
}
.trend-summary-grid>div strong,
.admin-hero-metrics strong{
    color:var(--vg-red)!important;
}
.auth-page .page-title,
.admin-login-page .page-title{
    color:var(--vg-ink)!important;
    text-shadow:none!important;
}
.btn-outline{
    background:linear-gradient(135deg,var(--vg-red),var(--vg-orange))!important;
    border-color:rgba(255,212,0,.42)!important;
    color:#fff!important;
}
.notice-line strong{
    color:var(--vg-ink)!important;
}
.admin-kpi-card small,
.admin-card small,
.admin-data-row small,
.admin-log-strip small{
    color:var(--vg-muted)!important;
    opacity:1!important;
}
.admin-panel-head a,
.admin-data-row strong{
    color:var(--vg-red)!important;
}
@media (max-width:520px){
    .fin-dashboard-hero,
    .quick-feed,
    .trend-board,
    .membership-card,
    .deposit-card,
    .support-app,
    .news-card,
    .notice-card{
        box-shadow:0 12px 28px rgba(166,54,0,.13)!important;
    }
}

/* Reference mobile UI refresh - 2026-06-09 */
body:not(.admin-body){
    background:#02070a!important;
}
body:not(.admin-body) .app-shell{
    width:100%!important;
    max-width:none!important;
    min-height:100vh!important;
    background:#071722!important;
    box-shadow:none!important;
}
body:not(.admin-body) .topbar{
    height:88px!important;
    padding:0 28px!important;
    background:linear-gradient(180deg,#f7d83a 0%,#e4b31b 78%,#c99308 100%)!important;
    border-bottom:1px solid rgba(80,45,0,.2)!important;
    box-shadow:0 6px 18px rgba(0,0,0,.18)!important;
}
body:not(.admin-body) .menu-toggle{
    width:42px!important;
    height:38px!important;
    gap:7px!important;
}
body:not(.admin-body) .menu-toggle span{
    height:4px!important;
    background:#1e1b12!important;
    border-radius:10px!important;
    box-shadow:none!important;
}
body:not(.admin-body) .brand{
    top:9px!important;
}
body:not(.admin-body) .brand-logo{
    width:118px!important;
    height:auto!important;
    max-height:72px!important;
    object-fit:contain!important;
    filter:drop-shadow(0 2px 1px rgba(255,255,255,.28))!important;
}
.topbar-bell{
    width:48px;
    height:48px;
    border-radius:50%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    position:relative;
    color:#181407;
}
.topbar-bell .ui-icon{
    width:34px!important;
    height:34px!important;
}
.topbar-bell .ui-icon-img{
    width:34px!important;
    height:34px!important;
}
.topbar-bell span{
    position:absolute;
    top:0;
    right:-2px;
    min-width:23px;
    height:23px;
    padding:0 5px;
    border-radius:999px;
    background:#ff4080;
    color:#fff;
    font-size:13px;
    line-height:23px;
    text-align:center;
    font-weight:900;
    border:2px solid rgba(255,219,53,.95);
}
body:not(.admin-body) .screen{
    min-height:calc(100vh - 88px)!important;
    padding-bottom:112px!important;
}
.home-page .screen,
.vip-page .screen{
    background:
        linear-gradient(180deg,rgba(23,97,150,.24) 0%,rgba(26,86,130,.2) 30%,rgba(6,22,31,.74) 100%),
        url('../images/anhnen.jpg') center top/cover fixed no-repeat!important;
    color:#fff!important;
}
.home-reference{
    width:min(100%,1080px);
    margin:0 auto;
    padding:36px 32px 52px;
    position:relative;
}
.reference-balance-card{
    position:relative;
    overflow:hidden;
    border-radius:30px;
    padding:28px 32px 30px;
    color:#fff;
    background:
        linear-gradient(135deg,rgba(101,158,202,.68),rgba(45,97,145,.55)),
        radial-gradient(circle at 8% 18%,rgba(255,255,255,.45),transparent 23%)!important;
    border:1px solid rgba(255,255,255,.28);
    box-shadow:0 20px 54px rgba(2,20,38,.34), inset 0 1px 0 rgba(255,255,255,.22);
    backdrop-filter:blur(18px) saturate(1.16);
    -webkit-backdrop-filter:blur(18px) saturate(1.16);
}
.reference-balance-card:before{
    content:"";
    position:absolute;
    inset:-24% -10% auto auto;
    width:280px;
    height:220px;
    border-radius:999px;
    background:radial-gradient(circle,rgba(255,255,255,.24),transparent 68%);
    pointer-events:none;
}
.vip-chip{
    display:inline-flex;
    align-items:center;
    gap:6px;
    min-height:42px;
    padding:0 17px;
    border-radius:999px;
    background:linear-gradient(135deg,#ff2b2f,#f05a2b);
    color:#fff;
    font-weight:900;
    letter-spacing:.2px;
    box-shadow:0 8px 18px rgba(168,18,18,.24);
}
.vip-chip span{
    color:#fff9b3;
    font-size:15px;
}
.reference-balance-card h1{
    margin:16px 0 8px;
    font-size:clamp(22px,4.8vw,36px);
    line-height:1.12;
    color:#fff;
    font-weight:900;
    letter-spacing:.6px;
    text-shadow:0 3px 12px rgba(0,0,0,.32);
}
.reference-balance{
    font-size:clamp(38px,8.2vw,64px);
    line-height:1.04;
    font-weight:900;
    letter-spacing:0;
    color:#fff!important;
    text-shadow:0 3px 12px rgba(0,0,0,.34);
}
.reference-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px;
    margin-top:28px;
}
.reference-actions a{
    min-height:76px;
    border-radius:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    color:#fff;
    font-size:22px;
    font-weight:900;
    background:rgba(255,255,255,.13);
    border:1px solid rgba(255,255,255,.28);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.18);
}
.reference-actions .ui-icon,
.reference-actions .ui-icon-img{
    width:31px!important;
    height:31px!important;
}
.reference-notice{
    margin:28px 0 26px;
    min-height:72px;
    padding:16px 22px;
    border-radius:18px;
    display:flex;
    align-items:center;
    gap:14px;
    color:#fff;
    font-size:20px;
    line-height:1.35;
    font-weight:800;
    background:rgba(255,255,255,.18);
    border:1px solid rgba(255,255,255,.3);
    box-shadow:0 14px 34px rgba(4,27,46,.22), inset 0 1px 0 rgba(255,255,255,.2);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
}
.reference-notice .ui-icon,
.reference-notice .ui-icon-img{
    width:28px!important;
    height:28px!important;
    flex:0 0 28px;
}
.market-title{
    margin:0 0 14px;
    text-align:center;
    color:#fff;
    font-size:clamp(23px,5vw,36px);
    line-height:1.08;
    font-weight:900;
    letter-spacing:2px;
    text-shadow:0 4px 12px rgba(0,0,0,.4);
}
.market-glass-list{
    overflow:hidden;
    border-radius:24px;
    background:rgba(22,32,38,.58);
    border:1px solid rgba(255,255,255,.17);
    box-shadow:0 22px 50px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.14);
    backdrop-filter:blur(20px) saturate(1.12);
    -webkit-backdrop-filter:blur(20px) saturate(1.12);
}
.market-row{
    min-height:108px;
    padding:18px 22px;
    display:grid;
    grid-template-columns:58px minmax(0,1fr) auto;
    column-gap:18px;
    row-gap:8px;
    align-items:center;
    border-bottom:1px solid rgba(255,255,255,.14);
}
.market-row:last-child{
    border-bottom:0;
}
.market-icon{
    grid-row:1 / span 2;
    width:58px;
    height:58px;
    border-radius:50%;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:rgba(42,196,129,.16);
    color:#23df89;
    box-shadow:0 0 28px rgba(35,223,137,.22);
}
.market-icon .ui-icon,
.market-icon .ui-icon-img{
    width:30px!important;
    height:30px!important;
}
.market-row strong{
    display:block;
    color:#fff;
    font-size:24px;
    line-height:1.18;
    font-weight:900;
}
.market-row small{
    display:block;
    margin-top:8px;
    color:rgba(255,255,255,.72);
    font-size:18px;
    font-weight:700;
}
.market-row b{
    color:#fff;
    font-size:22px;
    line-height:1.1;
    white-space:nowrap;
}
.market-row em{
    grid-column:3;
    justify-self:end;
    min-width:112px;
    padding:10px 14px;
    border-radius:999px;
    color:#00df73;
    background:rgba(15,194,116,.24);
    font-style:normal;
    text-align:center;
    font-size:17px;
    font-weight:900;
}
.market-row.is-ticking{
    background:linear-gradient(90deg,rgba(255,216,58,.08),transparent 42%);
}
.reference-quick{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
    margin-top:26px;
}
.reference-quick a{
    min-height:72px;
    border-radius:999px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    color:#251900;
    font-size:18px;
    font-weight:900;
    background:linear-gradient(180deg,#ffe77b,#dca400);
    border:1px solid rgba(255,255,255,.38);
    box-shadow:0 12px 26px rgba(0,0,0,.2);
}
.reference-quick .ui-icon,
.reference-quick .ui-icon-img{
    width:28px!important;
    height:28px!important;
}
.floating-support{
    position:fixed;
    right:max(24px,calc((100vw - 1080px)/2 + 24px));
    bottom:112px;
    z-index:55;
    width:78px;
    height:78px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(180deg,#ffd83a,#f1ad00);
    color:#222;
    box-shadow:0 18px 38px rgba(0,0,0,.28);
}
.floating-support .ui-icon,
.floating-support .ui-icon-img{
    width:40px!important;
    height:40px!important;
}
body:not(.admin-body) .bottom-nav,
body:not(.admin-body).page-dark .bottom-nav{
    left:0!important;
    right:0!important;
    bottom:0!important;
    transform:none!important;
    width:100%!important;
    max-width:none!important;
    min-height:96px!important;
    padding:8px max(16px,calc((100vw - 1080px)/2 + 16px)) calc(8px + env(safe-area-inset-bottom))!important;
    background:linear-gradient(180deg,#f7d83a 0%,#e0ae13 86%,#c38d00 100%)!important;
    border-top:1px solid rgba(70,44,0,.22)!important;
    box-shadow:0 -12px 32px rgba(0,0,0,.24)!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
}
body:not(.admin-body) .bottom-nav a,
body:not(.admin-body).page-dark .bottom-nav a{
    color:#fff!important;
    gap:6px!important;
    font-size:18px!important;
    line-height:1.08!important;
    font-weight:900!important;
    text-shadow:0 2px 5px rgba(100,61,0,.25);
}
body:not(.admin-body) .bottom-nav span{
    width:42px!important;
    height:42px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    border-radius:16px!important;
    background:transparent!important;
    border:0!important;
}
body:not(.admin-body) .bottom-nav .ui-icon,
body:not(.admin-body) .bottom-nav .ui-icon-img{
    width:38px!important;
    height:38px!important;
    filter:drop-shadow(0 2px 3px rgba(0,0,0,.18));
}
body:not(.admin-body) .bottom-nav a.active,
body:not(.admin-body).page-dark .bottom-nav a.active{
    color:#7438ff!important;
}
body:not(.admin-body) .bottom-nav a.active span{
    background:rgba(255,255,255,.18)!important;
}
.auth-page .topbar,
.news-page .topbar{
    background:#fff!important;
    height:72px!important;
    border-bottom:1px solid rgba(0,0,0,.08)!important;
    box-shadow:0 2px 12px rgba(0,0,0,.08)!important;
}
.auth-page .brand,
.news-page .brand{
    top:6px!important;
}
.auth-page .brand-logo,
.news-page .brand-logo{
    width:100px!important;
    max-height:62px!important;
}
.auth-page .menu-toggle,
.auth-page .topbar-bell,
.news-page .topbar-bell{
    visibility:hidden!important;
}
.auth-page .screen{
    min-height:calc(100vh - 72px)!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:42px 18px 96px!important;
    background:
        linear-gradient(180deg,rgba(255,255,255,.3),rgba(255,255,255,.1)),
        url('../images/anhnen.jpg') center/cover no-repeat!important;
}
.auth-reference-card{
    width:min(100%,590px)!important;
    margin:0 auto!important;
    padding:42px 38px 40px!important;
    border-radius:10px!important;
    background:
        linear-gradient(180deg,rgba(7,32,52,.55),rgba(4,18,31,.62)),
        url('../images/anhnen.jpg') center/cover no-repeat!important;
    border:1px solid rgba(255,255,255,.62)!important;
    color:#fff!important;
    box-shadow:0 18px 50px rgba(0,0,0,.25)!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
}
.auth-tabs{
    display:flex;
    justify-content:center;
    gap:28px;
    margin:0 0 30px;
    font-size:28px;
    line-height:1.1;
    font-weight:800;
}
.auth-tabs a,
.auth-tabs span{
    color:#fff!important;
    position:relative;
    padding-bottom:10px;
}
.auth-tabs .active{
    color:#e52b31!important;
}
.auth-tabs .active:after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:4px;
    border-radius:999px;
    background:#e52b31;
}
.auth-reference-card .form-group{
    margin-bottom:24px!important;
}
.auth-reference-card .form-group label{
    color:#fff!important;
    font-size:22px!important;
    line-height:1.25!important;
    font-weight:500!important;
    margin-bottom:12px!important;
}
.auth-reference-card .field{
    height:66px!important;
    border-radius:7px!important;
    background:rgba(0,0,0,.08)!important;
    border:2px solid rgba(255,255,255,.86)!important;
    color:#fff!important;
    font-size:21px!important;
    box-shadow:none!important;
}
.auth-reference-card .field:focus{
    border-color:#fff!important;
    box-shadow:0 0 0 3px rgba(255,255,255,.18)!important;
}
.auth-reference-card .btn-red{
    min-height:68px!important;
    margin-top:4px!important;
    border-radius:7px!important;
    background:#e92d31!important;
    color:#fff!important;
    font-size:22px!important;
    font-weight:500!important;
    text-transform:none!important;
    box-shadow:0 16px 34px rgba(139,0,0,.28)!important;
}
.auth-reference-card .auth-links{
    color:rgba(255,255,255,.86)!important;
    font-size:16px!important;
}
.auth-reference-card .auth-links a{
    color:#ffe14a!important;
}
.auth-reference-card .alert{
    background:rgba(255,255,255,.92)!important;
    color:#781b00!important;
}
.vip-page .membership-screen{
    width:min(100%,1180px)!important;
    margin:0 auto!important;
    padding:34px 30px 54px!important;
    border-radius:0!important;
    background:transparent!important;
}
.vip-page .membership-head{
    display:flex!important;
    justify-content:center!important;
    text-align:center!important;
    padding:42px 18px 28px!important;
    margin:0 0 14px!important;
    border:0!important;
    box-shadow:none!important;
    background:rgba(22,91,146,.42)!important;
    color:#fff!important;
}
.vip-page .membership-head>span{
    display:none!important;
}
.vip-page .membership-head strong{
    display:block!important;
    color:#fff!important;
    font-size:clamp(30px,5.4vw,48px)!important;
    line-height:1.05!important;
    letter-spacing:.5px!important;
    text-shadow:0 4px 14px rgba(0,0,0,.42)!important;
}
.vip-page .vip-sub{
    margin-top:12px!important;
    color:#fff!important;
    font-size:clamp(14px,2.2vw,20px)!important;
    font-weight:800!important;
    opacity:.95!important;
}
.vip-page .trend-board{
    border-radius:0!important;
    margin:0 0 18px!important;
    padding:18px!important;
    background:rgba(14,26,34,.64)!important;
    border:1px solid rgba(255,255,255,.15)!important;
    box-shadow:0 20px 48px rgba(0,0,0,.32)!important;
    backdrop-filter:blur(18px)!important;
    -webkit-backdrop-filter:blur(18px)!important;
}
.vip-page .trend-board-head{
    background:transparent!important;
    border:0!important;
    padding:0 0 12px!important;
    color:#fff!important;
}
.vip-page .trend-board-head span,
.vip-page .trend-board-head strong,
.vip-page .trend-board-head em{
    color:#fff!important;
}
.vip-page .trend-summary-grid{
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
}
.vip-page .trend-summary-grid>div{
    background:rgba(255,255,255,.12)!important;
    border:1px solid rgba(255,255,255,.16)!important;
    color:#fff!important;
}
.vip-page .membership-list{
    gap:0!important;
    margin-top:12px!important;
}
.vip-page .vip-item{
    min-height:126px!important;
    border-radius:0!important;
    padding:22px 22px!important;
    background:rgba(12,22,28,.68)!important;
    border:0!important;
    border-bottom:1px solid rgba(255,255,255,.15)!important;
    color:#fff!important;
    box-shadow:none!important;
    backdrop-filter:blur(14px)!important;
    -webkit-backdrop-filter:blur(14px)!important;
}
.vip-page .vip-item:first-child{
    border-radius:20px 20px 0 0!important;
}
.vip-page .vip-item:last-child{
    border-radius:0 0 20px 20px!important;
    border-bottom:0!important;
}
.vip-page .vip-medal{
    width:74px!important;
    height:74px!important;
    min-width:74px!important;
    border-radius:18px!important;
    background:linear-gradient(135deg,#fff47d,#e5a900)!important;
    color:#fff!important;
    box-shadow:0 10px 24px rgba(0,0,0,.25)!important;
}
.vip-page .vip-name{
    color:#fff!important;
    font-size:24px!important;
}
.vip-page .vip-meta{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
.vip-page .vip-meta span{
    background:rgba(255,255,255,.13)!important;
    border:0!important;
    color:rgba(255,255,255,.84)!important;
    border-radius:999px!important;
}
.vip-page .vip-meta b{
    color:#fff!important;
}
.vip-page .membership-title span,
.vip-page .stat-value,
.vip-page .trend-row strong{
    color:#ffd83a!important;
}
.account-page .screen,
.profile-page .screen,
.tasks-page .screen,
.support-page .screen{
    background:
        linear-gradient(180deg,rgba(0,0,0,.2),rgba(0,0,0,.82)),
        url('../images/anhnen.jpg') center top/cover fixed no-repeat!important;
    color:#fff!important;
}
.account-page .account-hero{
    max-width:940px;
    margin:0 auto!important;
    padding:50px 28px 30px!important;
    background:rgba(0,0,0,.72)!important;
    border:0!important;
    color:#fff!important;
    box-shadow:none!important;
}
.account-page .user-row{
    flex-direction:column!important;
    justify-content:center!important;
    text-align:center!important;
    gap:12px!important;
}
.account-page .avatar{
    width:150px!important;
    height:150px!important;
    border-radius:50%!important;
    background:linear-gradient(135deg,#e60012,#7d1115)!important;
    border:4px solid rgba(255,216,58,.78)!important;
}
.account-page .avatar .ui-icon,
.account-page .avatar .ui-icon-img{
    width:76px!important;
    height:76px!important;
}
.account-page .user-row strong{
    color:#fff!important;
    font-size:32px!important;
    text-transform:uppercase!important;
    letter-spacing:1px!important;
}
.account-page .user-row small{
    color:#ffd83a!important;
    font-size:17px!important;
    font-weight:900!important;
}
.account-page .balance-card{
    margin:32px -28px 0!important;
    border-radius:0!important;
    padding:30px max(28px,calc((100vw - 940px)/2 + 28px))!important;
    background:linear-gradient(180deg,#f8da3b,#e0ad12)!important;
    border:0!important;
    box-shadow:none!important;
    color:#231900!important;
}
.account-page .balance-card *,
.account-page .balance-label,
.account-page .balance-sub{
    color:#231900!important;
}
.account-page .balance-label{
    font-size:18px!important;
    font-weight:700!important;
}
.account-page .balance-value{
    color:#231900!important;
    font-size:clamp(40px,8vw,62px)!important;
    text-shadow:none!important;
}
.account-page .referral-pill,
.account-page .mini-action{
    background:rgba(255,255,255,.36)!important;
    border:1px solid rgba(120,80,0,.18)!important;
    color:#231900!important;
}
.account-page .mini-action{
    border-radius:999px!important;
    min-height:58px!important;
    font-size:17px!important;
}
.account-page .list{
    max-width:940px;
    margin:22px auto 40px!important;
    padding:0 28px!important;
}
.account-page .list-title{
    color:#fff!important;
}
.account-page .list-item{
    background:rgba(0,0,0,.68)!important;
    color:#fff!important;
    border:1px solid rgba(255,255,255,.1)!important;
    border-radius:0!important;
}
.news-page .app-shell{
    background:#fff!important;
}
.news-page .screen{
    min-height:calc(100vh - 72px)!important;
    padding-bottom:96px!important;
    background:#fff!important;
    color:#111!important;
}
.news-reference-hero{
    width:min(100%,760px);
    margin:0 auto 22px;
    padding:0 26px 18px;
    text-align:center;
    color:#111;
}
.news-reference-image{
    height:260px;
    margin:0 0 36px;
    background:url('../images/anhnen.jpg') center/cover no-repeat;
}
.news-reference-hero h1{
    margin:0 0 32px;
    color:#111;
    font-family:Georgia,'Times New Roman',serif;
    font-size:clamp(42px,8vw,76px);
    line-height:1.02;
    font-weight:900;
    letter-spacing:1px;
}
.news-reference-hero a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:60px;
    min-width:min(100%,560px);
    padding:0 28px;
    border-radius:7px;
    background:linear-gradient(180deg,#db2028,#a50e24);
    color:#fff;
    font-size:25px;
    font-weight:900;
    box-shadow:0 8px 16px rgba(90,0,0,.18);
}
.news-page .tabs{
    width:min(100% - 32px,760px);
    margin:0 auto 18px!important;
}
.news-page .news-card{
    width:min(100% - 32px,760px);
    margin:14px auto!important;
    padding:20px 22px!important;
    border-radius:0!important;
    background:#fff!important;
    color:#111!important;
    border:0!important;
    border-bottom:2px solid #111!important;
    box-shadow:none!important;
}
.news-page .news-card strong{
    color:#111!important;
    font-size:24px!important;
}
.news-page .news-card p,
.news-page .news-date{
    color:#333!important;
}
@media (max-width:680px){
    body:not(.admin-body) .topbar{
        height:72px!important;
        padding:0 18px!important;
    }
    body:not(.admin-body) .brand{
        top:5px!important;
    }
    body:not(.admin-body) .brand-logo{
        width:94px!important;
        max-height:62px!important;
    }
    body:not(.admin-body) .menu-toggle{
        width:32px!important;
        gap:5px!important;
    }
    body:not(.admin-body) .menu-toggle span{
        height:3px!important;
    }
    .topbar-bell{
        width:38px;
        height:38px;
    }
    .topbar-bell .ui-icon,
    .topbar-bell .ui-icon-img{
        width:29px!important;
        height:29px!important;
    }
    .topbar-bell span{
        min-width:20px;
        height:20px;
        line-height:20px;
        font-size:11px;
    }
    body:not(.admin-body) .screen{
        min-height:calc(100vh - 72px)!important;
        padding-bottom:90px!important;
    }
    .home-reference{
        padding:24px 16px 34px;
    }
    .reference-balance-card{
        border-radius:24px;
        padding:22px 20px 24px;
    }
    .reference-balance-card h1{
        font-size:23px;
    }
    .reference-balance{
        font-size:40px;
    }
    .reference-actions{
        gap:12px;
        margin-top:22px;
    }
    .reference-actions a{
        min-height:70px;
        font-size:17px;
        gap:9px;
    }
    .reference-notice{
        min-height:58px;
        margin:20px 0;
        padding:13px 14px;
        border-radius:14px;
        font-size:15px;
    }
    .market-title{
        font-size:24px;
        letter-spacing:1px;
    }
    .market-row{
        min-height:96px;
        padding:15px 14px;
        grid-template-columns:48px minmax(0,1fr) auto;
        column-gap:12px;
    }
    .market-icon{
        width:48px;
        height:48px;
    }
    .market-row strong{
        font-size:18px;
    }
    .market-row small{
        font-size:14px;
        margin-top:5px;
    }
    .market-row b{
        font-size:16px;
    }
    .market-row em{
        min-width:82px;
        padding:7px 9px;
        font-size:13px;
    }
    .reference-quick{
        display:none;
    }
    .floating-support{
        width:66px;
        height:66px;
        right:18px;
        bottom:94px;
    }
    body:not(.admin-body) .bottom-nav,
    body:not(.admin-body).page-dark .bottom-nav{
        min-height:76px!important;
        padding:5px 8px calc(5px + env(safe-area-inset-bottom))!important;
    }
    body:not(.admin-body) .bottom-nav a,
    body:not(.admin-body).page-dark .bottom-nav a{
        font-size:13px!important;
    }
    body:not(.admin-body) .bottom-nav span{
        width:34px!important;
        height:34px!important;
    }
    body:not(.admin-body) .bottom-nav .ui-icon,
    body:not(.admin-body) .bottom-nav .ui-icon-img{
        width:32px!important;
        height:32px!important;
    }
    .auth-page .screen{
        padding:28px 16px 92px!important;
    }
    .auth-reference-card{
        padding:34px 24px!important;
    }
    .auth-tabs{
        font-size:24px;
        gap:22px;
    }
    .auth-reference-card .form-group label{
        font-size:19px!important;
    }
    .auth-reference-card .field{
        height:58px!important;
        font-size:18px!important;
    }
    .auth-reference-card .btn-red{
        min-height:58px!important;
        font-size:20px!important;
    }
    .vip-page .membership-screen{
        padding:0 0 34px!important;
    }
    .vip-page .membership-head{
        padding:34px 16px 24px!important;
    }
    .vip-page .trend-board{
        margin:0 0 14px!important;
        border-left:0!important;
        border-right:0!important;
    }
    .vip-page .vip-item{
        min-height:112px!important;
        padding:17px 12px!important;
    }
    .vip-page .vip-medal{
        width:58px!important;
        height:58px!important;
        min-width:58px!important;
    }
    .vip-page .vip-name{
        font-size:18px!important;
    }
    .vip-page .vip-meta{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
    .account-page .account-hero{
        padding:38px 18px 24px!important;
    }
    .account-page .avatar{
        width:112px!important;
        height:112px!important;
    }
    .account-page .user-row strong{
        font-size:24px!important;
    }
    .account-page .balance-card{
        margin:26px -18px 0!important;
        padding:24px 18px!important;
    }
    .account-page .action-row{
        grid-template-columns:repeat(3,minmax(0,1fr))!important;
        gap:9px!important;
    }
    .account-page .mini-action{
        min-height:54px!important;
        font-size:13px!important;
    }
    .news-reference-image{
        height:210px;
        margin-bottom:30px;
    }
    .news-reference-hero{
        padding-left:18px;
        padding-right:18px;
    }
    .news-reference-hero a{
        min-height:54px;
        font-size:20px;
    }
}

/* User app should keep phone-like proportions on desktop; admin remains a full production dashboard. */
body:not(.admin-body) .app-shell{
    max-width:430px!important;
    width:100%!important;
    margin:0 auto!important;
    box-shadow:0 0 34px rgba(0,0,0,.42)!important;
}
body:not(.admin-body) .bottom-nav,
body:not(.admin-body).page-dark .bottom-nav{
    left:50%!important;
    right:auto!important;
    transform:translateX(-50%)!important;
    width:100%!important;
    max-width:430px!important;
}
body:not(.admin-body) .floating-support{
    right:calc((100vw - min(100vw,430px))/2 + 16px)!important;
}
body.is-guest:not(.admin-body) .floating-support{
    bottom:18px!important;
}
body.is-user-logged-in:not(.admin-body) .floating-support{
    bottom:84px!important;
}
.market-live-board{
    margin:0 0 14px;
    padding:12px;
    border-radius:18px;
    color:#fff;
    background:rgba(6,16,23,.62);
    border:1px solid rgba(255,255,255,.16);
    box-shadow:0 16px 32px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.12);
    backdrop-filter:blur(18px) saturate(1.12);
    -webkit-backdrop-filter:blur(18px) saturate(1.12);
}
.market-live-head{
    display:flex;
    align-items:center;
    gap:7px;
    margin-bottom:9px;
    color:rgba(255,255,255,.82);
    font-size:11px;
    font-weight:900;
    letter-spacing:.7px;
}
.market-live-head span{
    width:8px;
    height:8px;
    border-radius:50%;
    background:#00df73;
    box-shadow:0 0 0 5px rgba(0,223,115,.14),0 0 14px rgba(0,223,115,.75);
}
.market-live-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
}
.market-live-card{
    min-height:78px;
    padding:10px;
    border-radius:14px;
    background:linear-gradient(145deg,rgba(255,255,255,.13),rgba(255,255,255,.05));
    border:1px solid rgba(255,255,255,.13);
    transition:transform .18s ease, border-color .18s ease, background .18s ease;
}
.market-live-card.is-ticking{
    transform:translateY(-1px);
    border-color:rgba(255,216,58,.42);
}
.market-live-card small,
.market-live-card span,
.market-live-card em{
    display:block;
}
.market-live-card small{
    color:rgba(255,255,255,.74);
    font-size:11px;
    font-weight:900;
}
.market-live-card strong{
    display:block;
    margin:5px 0 2px;
    color:#fff;
    font-size:19px;
    line-height:1;
    font-weight:900;
}
.market-live-card span{
    color:rgba(255,255,255,.62);
    font-size:10px;
    font-weight:800;
}
.market-live-card em{
    margin-top:6px;
    font-style:normal;
    font-size:11px;
    font-weight:900;
}
.market-live-card.is-up em{
    color:#00df73;
}
.market-live-card.is-down em{
    color:#ff6f6f;
}

@media (min-width:681px){
    body:not(.admin-body) .topbar{
        height:64px!important;
        padding:0 16px!important;
    }
    body:not(.admin-body) .brand{
        top:4px!important;
    }
    body:not(.admin-body) .brand-logo{
        width:82px!important;
        max-height:56px!important;
    }
    body:not(.admin-body) .screen{
        min-height:calc(100vh - 64px)!important;
        padding-bottom:78px!important;
    }
    .home-reference{
        width:100%!important;
        padding:16px 14px 26px!important;
    }
    .reference-balance-card{
        border-radius:20px!important;
        padding:18px 18px 20px!important;
    }
    .vip-chip{
        min-height:34px!important;
        padding:0 13px!important;
        font-size:14px!important;
    }
    .reference-balance-card h1{
        margin:13px 0 6px!important;
        font-size:21px!important;
        line-height:1.12!important;
    }
    .reference-balance{
        font-size:34px!important;
        line-height:1.02!important;
    }
    .reference-actions{
        gap:10px!important;
        margin-top:18px!important;
    }
    .reference-actions a{
        min-height:58px!important;
        border-radius:15px!important;
        font-size:14px!important;
        gap:8px!important;
    }
    .reference-actions .ui-icon,
    .reference-actions .ui-icon-img{
        width:24px!important;
        height:24px!important;
    }
    .reference-notice{
        min-height:50px!important;
        margin:16px 0!important;
        padding:10px 12px!important;
        border-radius:13px!important;
        font-size:13px!important;
        line-height:1.32!important;
    }
    .market-title{
        margin-bottom:12px!important;
        font-size:21px!important;
        letter-spacing:1px!important;
    }
    .market-glass-list{
        border-radius:18px!important;
    }
    .market-row{
        min-height:78px!important;
        padding:12px!important;
        grid-template-columns:42px minmax(0,1fr) auto!important;
        column-gap:10px!important;
        row-gap:5px!important;
    }
    .market-icon{
        width:42px!important;
        height:42px!important;
    }
    .market-icon .ui-icon,
    .market-icon .ui-icon-img{
        width:24px!important;
        height:24px!important;
    }
    .market-row strong{
        font-size:16px!important;
    }
    .market-row small{
        margin-top:3px!important;
        font-size:12px!important;
    }
    .market-row b{
        font-size:14px!important;
    }
    .market-row em{
        min-width:72px!important;
        padding:6px 8px!important;
        font-size:12px!important;
    }
    .floating-support{
        width:56px!important;
        height:56px!important;
        bottom:84px!important;
    }
    body:not(.admin-body) .bottom-nav,
    body:not(.admin-body).page-dark .bottom-nav{
        min-height:68px!important;
        padding:4px 8px calc(4px + env(safe-area-inset-bottom))!important;
    }
    body:not(.admin-body) .bottom-nav a,
    body:not(.admin-body).page-dark .bottom-nav a{
        font-size:11px!important;
        gap:3px!important;
    }
    body:not(.admin-body) .bottom-nav span{
        width:30px!important;
        height:30px!important;
    }
    body:not(.admin-body) .bottom-nav .ui-icon,
    body:not(.admin-body) .bottom-nav .ui-icon-img{
        width:27px!important;
        height:27px!important;
    }
    .auth-page .topbar,
    .news-page .topbar{
        height:64px!important;
    }
    .auth-page .screen{
        padding:24px 16px 78px!important;
    }
    .auth-reference-card{
        width:100%!important;
        padding:28px 22px!important;
    }
    .auth-tabs{
        font-size:21px!important;
        margin-bottom:24px!important;
    }
    .auth-reference-card .form-group label{
        font-size:16px!important;
    }
    .auth-reference-card .field{
        height:50px!important;
        font-size:16px!important;
    }
    .auth-reference-card .btn-red{
        min-height:52px!important;
        font-size:17px!important;
    }
    .vip-page .membership-screen{
        width:100%!important;
        padding:0 0 34px!important;
    }
    .vip-page .membership-head{
        padding:30px 16px 22px!important;
    }
    .vip-page .membership-head strong{
        font-size:25px!important;
    }
    .vip-page .vip-sub{
        font-size:13px!important;
    }
    .vip-page .trend-board{
        padding:14px!important;
    }
    .vip-page .vip-item{
        min-height:96px!important;
        padding:14px 12px!important;
    }
    .vip-page .vip-medal{
        width:48px!important;
        height:48px!important;
        min-width:48px!important;
    }
    .vip-page .vip-name{
        font-size:16px!important;
    }
}

/* Admin login is a production desktop surface, not the phone-like user app shell. */
body.admin-login-page{
    background:#071014!important;
}
body.admin-login-page .app-shell{
    max-width:none!important;
    width:100%!important;
    min-height:100vh!important;
    margin:0!important;
    background:
        radial-gradient(circle at 15% 12%,rgba(255,216,58,.16),transparent 28%),
        radial-gradient(circle at 82% 18%,rgba(230,0,18,.14),transparent 30%),
        linear-gradient(135deg,#071014,#101823 54%,#07090d)!important;
    box-shadow:none!important;
}
body.admin-login-page .screen{
    min-height:100vh!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:40px!important;
    background:transparent!important;
}
body.admin-login-page .dark-card{
    width:min(460px,calc(100vw - 48px))!important;
    margin:0!important;
    padding:30px!important;
    border-radius:12px!important;
    background:rgba(255,255,255,.96)!important;
    color:#241600!important;
    border:1px solid rgba(255,255,255,.2)!important;
    box-shadow:0 24px 70px rgba(0,0,0,.34)!important;
}
body.admin-login-page .page-title{
    color:#241600!important;
    text-shadow:none!important;
}
body.admin-login-page .form-group label{
    color:#4a3b22!important;
}
body.is-guest:not(.admin-body) .floating-support{
    bottom:18px!important;
}
body.is-user-logged-in:not(.admin-body) .floating-support{
    bottom:84px!important;
}

.topbar-bell-svg{
    width:34px;
    height:34px;
    fill:none;
    stroke:#181407;
    stroke-width:2.15;
    stroke-linecap:round;
    stroke-linejoin:round;
    filter:drop-shadow(0 1px 0 rgba(255,255,255,.28));
}
.vip-page .trend-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto!important;
    gap:10px!important;
    align-items:center!important;
    min-height:64px!important;
    padding:12px 14px!important;
    background:rgba(0,0,0,.22)!important;
    border:0!important;
    border-top:1px solid rgba(255,255,255,.1)!important;
    color:#fff!important;
}
.vip-page .trend-row:first-child{
    border-top:0!important;
}
.vip-page .trend-user{
    color:#fff!important;
    font-weight:900!important;
}
.vip-page .trend-account{
    color:rgba(255,255,255,.7)!important;
}
.vip-page .trend-row strong{
    color:#ffd83a!important;
    justify-self:end!important;
    white-space:nowrap!important;
}
@media (max-width:680px){
    body.auth-page:not(.admin-body) .topbar,
    body.news-page:not(.admin-body) .topbar{
        height:72px!important;
        background:#fff!important;
        border-bottom:1px solid rgba(0,0,0,.08)!important;
        box-shadow:0 2px 12px rgba(0,0,0,.08)!important;
    }
    .auth-page .menu-toggle,
    .auth-page .topbar-bell,
    .news-page .topbar-bell{
        visibility:hidden!important;
    }
    .auth-page .brand-logo,
    .news-page .brand-logo{
        width:100px!important;
        max-height:62px!important;
    }
    .topbar-bell-svg{
        width:29px;
        height:29px;
    }
    .vip-page .trend-row{
        grid-template-columns:minmax(0,1fr)!important;
        gap:4px!important;
    }
    .vip-page .trend-row strong{
        justify-self:start!important;
    }
}
body.auth-page:not(.admin-body) .topbar,
body.news-page:not(.admin-body) .topbar{
    background:#fff!important;
}

/* Mobile density correction - keep the reference look but reduce oversized controls. */
@media (max-width:680px){
    body:not(.admin-body) .topbar{
        height:64px!important;
        padding:0 16px!important;
    }
    body:not(.admin-body) .brand{
        top:4px!important;
    }
    body:not(.admin-body) .brand-logo{
        width:82px!important;
        max-height:56px!important;
    }
    body:not(.admin-body) .screen{
        min-height:calc(100vh - 64px)!important;
        padding-bottom:78px!important;
    }
    .home-reference{
        padding:16px 14px 26px!important;
    }
    .reference-balance-card{
        border-radius:20px!important;
        padding:18px 18px 20px!important;
    }
    .vip-chip{
        min-height:34px!important;
        padding:0 13px!important;
        font-size:14px!important;
    }
    .reference-balance-card h1{
        margin:13px 0 6px!important;
        font-size:21px!important;
        line-height:1.12!important;
    }
    .reference-balance{
        font-size:34px!important;
        line-height:1.02!important;
    }
    .reference-actions{
        gap:10px!important;
        margin-top:18px!important;
    }
    .reference-actions a{
        min-height:58px!important;
        border-radius:15px!important;
        font-size:14px!important;
        gap:8px!important;
    }
    .reference-actions .ui-icon,
    .reference-actions .ui-icon-img{
        width:24px!important;
        height:24px!important;
    }
    .reference-notice{
        min-height:50px!important;
        margin:16px 0 16px!important;
        padding:10px 12px!important;
        border-radius:13px!important;
        font-size:13px!important;
        line-height:1.32!important;
    }
    .reference-notice .ui-icon,
    .reference-notice .ui-icon-img{
        width:22px!important;
        height:22px!important;
        flex-basis:22px!important;
    }
    .market-title{
        margin-bottom:12px!important;
        font-size:21px!important;
        letter-spacing:1px!important;
    }
    .market-glass-list{
        border-radius:18px!important;
    }
    .market-row{
        min-height:78px!important;
        padding:12px!important;
        grid-template-columns:42px minmax(0,1fr) auto!important;
        column-gap:10px!important;
        row-gap:5px!important;
    }
    .market-icon{
        width:42px!important;
        height:42px!important;
    }
    .market-icon .ui-icon,
    .market-icon .ui-icon-img{
        width:24px!important;
        height:24px!important;
    }
    .market-row strong{
        font-size:16px!important;
    }
    .market-row small{
        margin-top:3px!important;
        font-size:12px!important;
    }
    .market-row b{
        font-size:14px!important;
    }
    .market-row em{
        min-width:72px!important;
        padding:6px 8px!important;
        font-size:12px!important;
    }
    .floating-support{
        width:56px!important;
        height:56px!important;
        right:16px!important;
        bottom:84px!important;
    }
    .floating-support .ui-icon,
    .floating-support .ui-icon-img{
        width:30px!important;
        height:30px!important;
    }
    body:not(.admin-body) .bottom-nav,
    body:not(.admin-body).page-dark .bottom-nav{
        min-height:68px!important;
        padding:4px 8px calc(4px + env(safe-area-inset-bottom))!important;
    }
    body:not(.admin-body) .bottom-nav a,
    body:not(.admin-body).page-dark .bottom-nav a{
        font-size:11px!important;
        gap:3px!important;
    }
    body:not(.admin-body) .bottom-nav span{
        width:30px!important;
        height:30px!important;
    }
    body:not(.admin-body) .bottom-nav .ui-icon,
    body:not(.admin-body) .bottom-nav .ui-icon-img{
        width:27px!important;
        height:27px!important;
    }
    .account-page .account-hero{
        padding:28px 16px 20px!important;
    }
    .account-page .avatar{
        width:92px!important;
        height:92px!important;
    }
    .account-page .avatar .ui-icon,
    .account-page .avatar .ui-icon-img{
        width:54px!important;
        height:54px!important;
    }
    .account-page .user-row strong{
        font-size:21px!important;
    }
    .account-page .user-row small{
        font-size:14px!important;
    }
    .account-page .balance-card{
        margin:20px -16px 0!important;
        padding:20px 16px!important;
    }
    .account-page .balance-label{
        font-size:15px!important;
    }
    .account-page .balance-value{
        font-size:34px!important;
    }
    .account-page .mini-action{
        min-height:46px!important;
        font-size:12px!important;
    }
    .vip-page .membership-head strong{
        font-size:25px!important;
    }
    .vip-page .vip-sub{
        font-size:13px!important;
    }
    .vip-page .trend-board{
        padding:14px!important;
    }
    .vip-page .vip-item{
        min-height:96px!important;
        padding:14px 12px!important;
    }
    .vip-page .vip-medal{
        width:48px!important;
        height:48px!important;
        min-width:48px!important;
    }
    .vip-page .vip-name{
        font-size:16px!important;
    }
    .auth-page .topbar,
    .news-page .topbar{
        height:64px!important;
    }
    .auth-page .screen{
        padding:24px 16px 78px!important;
    }
    .auth-reference-card{
        padding:28px 22px!important;
    }
    .auth-tabs{
        font-size:21px!important;
        margin-bottom:24px!important;
    }
    .auth-reference-card .form-group label{
        font-size:16px!important;
    }
    .auth-reference-card .field{
        height:50px!important;
        font-size:16px!important;
    }
    .auth-reference-card .btn-red{
        min-height:52px!important;
        font-size:17px!important;
    }
}
