:root{
  --bg:#ecfff6;
  --panel:#ffffff;
  --text:#0f2b25;
  --muted:#66817b;
  --green:#16b67f;
  --green-dark:#0d8d64;
  --blue:#2a7bff;
  --line:#d9efe7;
  --danger:#d93b4c;
  --warning:#a77700;
  --shadow:0 18px 50px rgba(12, 84, 67, .12);
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Arial,sans-serif;background:linear-gradient(135deg,#eafff4,#eef6ff 55%,#f7fffb);color:var(--text);min-height:100vh}
a{color:var(--blue);text-decoration:none}
.aurora{position:fixed;inset:0;background:radial-gradient(circle at 10% 5%,rgba(22,182,127,.22),transparent 35%),radial-gradient(circle at 90% 20%,rgba(42,123,255,.16),transparent 30%);pointer-events:none;z-index:-1}
.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;padding:14px 5vw;background:rgba(255,255,255,.76);backdrop-filter:blur(18px);border-bottom:1px solid rgba(217,239,231,.8)}
.brand{display:flex;align-items:center;gap:10px;font-weight:900;color:var(--text);font-size:20px}
.brand-mark{width:38px;height:38px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,var(--green),var(--blue));color:#fff;box-shadow:var(--shadow)}
nav{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
nav a{color:var(--text);font-weight:700;font-size:14px}.nav-cta{background:var(--text);color:#fff!important;padding:9px 14px;border-radius:999px}.bubble{display:inline-grid;place-items:center;margin-left:4px;min-width:18px;height:18px;padding:0 6px;border-radius:999px;background:var(--danger);color:#fff;font-size:11px}.bubble.light{background:#fff;color:var(--green-dark)}
.container{width:min(1180px,92vw);margin:30px auto 70px}.footer{text-align:center;color:var(--muted);padding:30px}.hero{display:grid;grid-template-columns:1.35fr .75fr;gap:28px;align-items:center;margin:34px 0}.hero h1{font-size:clamp(40px,7vw,78px);line-height:.96;margin:10px 0}.lead{font-size:19px;color:var(--muted);max-width:650px;line-height:1.7}.eyebrow{text-transform:uppercase;letter-spacing:.16em;font-size:12px;font-weight:900;color:var(--green-dark);margin:0 0 8px}.actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.btn,button.btn{border:0;background:linear-gradient(135deg,var(--green),var(--blue));color:#fff;padding:12px 18px;border-radius:14px;font-weight:900;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 10px 26px rgba(42,123,255,.18)}.btn.ghost,button.ghost{background:#fff;color:var(--text);border:1px solid var(--line);box-shadow:none}.full{width:100%}.tiny-btn{background:#eaf7ff;color:#1458c8;border:1px solid #cce3ff;padding:7px 10px;border-radius:10px;font-weight:800;display:inline-block}.panel,.auth-card,.hero-card,.package-card,.bot-card,.news-card{background:rgba(255,255,255,.88);border:1px solid rgba(217,239,231,.9);border-radius:24px;padding:24px;box-shadow:var(--shadow)}.hero-card{text-align:center;min-height:330px;display:flex;flex-direction:column;justify-content:center}.bot-orb{width:128px;height:128px;margin:0 auto 14px;border-radius:45px;background:linear-gradient(135deg,#e9fff5,#eaf2ff);display:grid;place-items:center;font-size:72px;border:1px solid var(--line);animation:float 3.3s ease-in-out infinite}@keyframes float{50%{transform:translateY(-10px)}}
.grid{display:grid;gap:18px;margin:22px 0}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.five{grid-template-columns:repeat(5,minmax(0,1fr))}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:22px 0}.home-head,.admin-head{display:flex;align-items:center;justify-content:space-between;gap:18px}.home-head h1,.admin-head h1{margin:0;font-size:34px}.muted{color:var(--muted);line-height:1.55}.auth-card{max-width:430px;margin:70px auto}.auth-card.wide{max-width:560px}.form{display:grid;gap:14px}.form label{display:grid;gap:7px;font-weight:800;color:#24443e}.form input,.form textarea,.form select,.copybox,select{width:100%;border:1px solid var(--line);border-radius:14px;padding:12px 13px;background:#fbfffd;color:var(--text);font:inherit;outline:none}.form textarea{resize:vertical}.flash-stack{display:grid;gap:10px;margin-bottom:18px}.flash{padding:12px 14px;border-radius:14px;background:#edf8ff;border:1px solid #cfe8ff;color:#164b87;font-weight:800}.flash.success{background:#eafff4;border-color:#c8f4df;color:#0b6d4b}.flash.danger{background:#fff0f1;border-color:#ffcdd2;color:#9d1020}.flash.warning{background:#fff8df;border-color:#ffe5a5;color:#825900}.stat{display:grid;gap:4px}.stat span{font-size:30px}.stat p{margin:0;color:var(--muted);font-weight:800}.stat h2{font-size:31px;margin:0}.wide-stat{min-height:160px}.wallet-pill{padding:12px 16px;border-radius:999px;background:#edf8ff;border:1px solid #cce3ff;font-weight:900}.robot-icon{width:58px;height:58px;display:grid;place-items:center;border-radius:20px;background:#edfff6;font-size:28px;border:1px solid var(--line)}.robot-icon.big{width:88px;height:88px;font-size:46px;margin-bottom:10px}.bot-top{display:flex;align-items:center;justify-content:space-between}.status{display:inline-flex;border-radius:999px;padding:6px 10px;background:#eef6ff;color:#1458c8;font-weight:900;font-size:12px}.bot-card.paused{border-color:#ffe0a2;background:#fffdf3}.bot-card.completed{opacity:.72}.need{color:#9a6b00;font-weight:900}.price{font-size:28px;font-weight:1000;margin:8px 0;color:var(--green-dark)}.meter{height:12px;background:#e6f6ef;border-radius:999px;overflow:hidden;border:1px solid #d9efe7}.meter span{display:block;height:100%;background:linear-gradient(90deg,var(--green),var(--blue));border-radius:999px}.empty{grid-column:1/-1;text-align:center;padding:40px;border:1px dashed var(--line);border-radius:20px;color:var(--muted);font-weight:800;background:rgba(255,255,255,.55)}.empty.small{padding:20px}.tag{display:inline-block;border-radius:999px;padding:6px 10px;background:#eafff4;color:var(--green-dark);font-weight:900}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:18px}.table-wrap table{width:100%;border-collapse:collapse;min-width:760px;background:#fff}.table-wrap.compact table{min-width:520px}th,td{text-align:left;padding:12px;border-bottom:1px solid var(--line);vertical-align:top}th{background:#f2fff9;font-size:13px;color:#31534d}small{color:var(--muted)}.profile-head{display:flex;align-items:center;gap:18px}.avatar{width:82px;height:82px;border-radius:28px;background:linear-gradient(135deg,var(--green),var(--blue));display:grid;place-items:center;color:#fff;font-size:36px;font-weight:1000}.mini-stats{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.mini-stats span{background:#f2fff9;border:1px solid var(--line);padding:10px;border-radius:14px;font-weight:900}.medal-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}.medal-card{display:grid;gap:8px;place-items:center;text-align:center;background:#f7fffb;border:1px solid var(--line);border-radius:18px;padding:16px}.medal-card span{font-size:34px}.medal-card em{font-style:normal;color:var(--muted);font-weight:800}.activity-list{display:grid;gap:10px;max-height:410px;overflow:auto}.activity-list div{display:grid;gap:4px;background:#f9fffc;border:1px solid var(--line);border-radius:14px;padding:12px}.chat-panel{min-height:460px}.chat-panel.tall{min-height:620px}.chat-box{display:flex;flex-direction:column;gap:12px;max-height:560px;overflow:auto;padding-right:4px}.bubble-msg{max-width:82%;padding:12px 14px;border-radius:18px;border:1px solid var(--line);background:#fff}.bubble-msg.user{align-self:flex-end;background:linear-gradient(135deg,#ebfff5,#eef6ff)}.bubble-msg.admin{align-self:flex-start;background:#f7fffb}.bubble-msg p{margin:6px 0 0;line-height:1.45}.bubble-msg img{max-width:100%;border-radius:14px;margin-top:8px;border:1px solid var(--line)}.admin-table{min-width:1250px}.inline-form{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.inline-form input,.inline-form select{border:1px solid var(--line);border-radius:10px;padding:8px;max-width:92px}.inline-form button{border:1px solid var(--line);border-radius:10px;background:#f2fff9;padding:8px 9px;font-weight:900;cursor:pointer}.medals-form input{max-width:62px}
@media(max-width:980px){.hero,.grid.two,.grid.three,.grid.five,.cards{grid-template-columns:1fr}.topbar{align-items:flex-start;flex-direction:column}.home-head,.admin-head{align-items:flex-start;flex-direction:column}.medal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.robot-icon img{width:42px;height:42px;display:block}.bot-art{width:118px;height:118px;border-radius:32px;background:linear-gradient(135deg,#e9fff5,#eaf2ff);display:grid;place-items:center;border:1px solid var(--line);box-shadow:inset 0 1px 0 rgba(255,255,255,.8);margin-bottom:12px}.bot-art img{width:92px;height:92px;display:block}.profile-lines{display:grid;gap:10px}.profile-lines p{margin:0;background:#f7fffb;border:1px solid var(--line);border-radius:14px;padding:12px}.package-card{position:relative;overflow:hidden}.package-card:before{content:"";position:absolute;right:-35px;top:-35px;width:120px;height:120px;border-radius:50%;background:rgba(42,123,255,.08)}

.wallet-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:22px 0}
.wallet-option{background:rgba(255,255,255,.9);border:1px solid var(--line);border-radius:24px;padding:24px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:12px;min-height:270px}
.wallet-option.featured{background:linear-gradient(135deg,#ffffff,#f0fff8)}
.wallet-option.muted-card{background:#f8fffb}
.wallet-option-icon{width:64px;height:64px;border-radius:22px;display:grid;place-items:center;background:linear-gradient(135deg,var(--green),var(--blue));color:#fff;font-size:30px;box-shadow:0 12px 30px rgba(42,123,255,.16)}
.admin-handle{font-size:24px;font-weight:1000;background:#f2fff9;border:1px solid var(--line);border-radius:16px;padding:12px;text-align:center}
.maintenance{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#fff8df;border:1px solid #ffe5a5;color:#825900;font-weight:1000;padding:10px 14px;width:max-content}
.support-header{display:flex;align-items:center;gap:16px}.support-admin{display:flex;align-items:center;gap:14px}.support-avatar{width:62px;height:62px;border-radius:22px;background:linear-gradient(135deg,var(--green),var(--blue));display:grid;place-items:center;color:#fff;font-size:28px;font-weight:1000}.support-avatar.small{width:42px;height:42px;border-radius:15px;font-size:20px}.phone-chat{max-width:760px;margin:22px auto 0;padding:0;overflow:hidden}.phone-top{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--line);background:#fbfffd}.phone-top div:last-child{display:grid}.phone-scroll{min-height:470px;max-height:600px;padding:18px;background:linear-gradient(180deg,#f7fffb,#eef6ff)}.chat-compose{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:14px;border-top:1px solid var(--line);background:#fff}.chat-compose input[type=text],.chat-compose input[name=body],.chat-compose input:not([type]){border:1px solid var(--line);border-radius:999px;padding:13px 15px;font:inherit;outline:none}.image-picker{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#f2fff9;border:1px solid var(--line);font-size:22px;cursor:pointer}.image-picker input{display:none}.copy-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}.copy-row .btn{box-shadow:none}.package-card .bot-art{background:linear-gradient(135deg,#ffffff,#eaf7ff)}
@media(max-width:980px){.wallet-options{grid-template-columns:1fr}.support-header{align-items:flex-start;flex-direction:column}.chat-compose{grid-template-columns:auto 1fr}.chat-compose .btn{grid-column:1/-1;width:100%}.copy-row{grid-template-columns:1fr}.copy-row .btn{width:100%}}

/* v5 interface fixes */
.ref-step{text-align:center}.ref-step .form{text-align:left}.ref-step-icon{width:72px;height:72px;margin:0 auto 12px;border-radius:24px;display:grid;place-items:center;background:linear-gradient(135deg,#eafff4,#eef6ff);border:1px solid var(--line);font-size:34px}
.wallet-option .eyebrow{letter-spacing:.08em;text-transform:none;color:#31534d}.wallet-option h2{font-size:25px;margin:0}.wallet-option p{margin:0}.wallet-option .btn{margin-top:auto}.wallet-option-icon{font-size:28px}.wallet-options{align-items:stretch}.maintenance{margin-top:6px}
.code-copy-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.code-copy-line h2{margin:0}.small-copy{padding:8px 12px;border-radius:12px;font-size:13px;min-height:38px}.ref-stat small{min-height:18px;display:block;margin-top:4px}.profile-title-block h1{font-size:36px;margin:4px 0 4px}.profile-title-block p{margin:0 0 10px}.profile-ref-inline{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}.profile-ref-inline span{color:var(--muted);font-weight:800}.profile-ref-inline b{font-size:22px;letter-spacing:.04em;background:#f2fff9;border:1px solid var(--line);padding:8px 12px;border-radius:14px}.profile-grid{align-items:stretch}.profile-card-clean h2{margin-top:0}.field-title{display:block;font-weight:900;color:#24443e;margin-bottom:8px}.mini-stats.clean span{font-size:14px}.profile-lines p{display:flex;align-items:center;justify-content:space-between;gap:14px}.profile-lines p b{color:#31534d}.profile-lines p span{font-weight:900;text-align:right;word-break:break-word}.copybox{font-size:14px}.support-avatar{font-size:26px}.support-avatar.small{font-size:19px}.phone-top small{display:block;color:var(--muted);margin-top:2px}
@media(max-width:640px){.topbar{padding:12px 14px;gap:10px}.brand{font-size:18px}.brand-mark{width:34px;height:34px;border-radius:12px}nav{width:100%;gap:10px;overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px}nav a{white-space:nowrap;font-size:14px}.container{width:min(100% - 24px,1180px);margin-top:20px}.panel,.auth-card,.hero-card,.package-card,.bot-card,.news-card,.wallet-option{border-radius:22px;padding:20px}.profile-head{align-items:flex-start}.avatar{width:66px;height:66px;border-radius:22px;font-size:29px}.profile-title-block h1{font-size:28px}.profile-lines p{align-items:flex-start;flex-direction:column;gap:4px}.cards{gap:14px}.stat h2{font-size:27px}.wallet-option h2{font-size:22px}.home-head h1,.admin-head h1{font-size:28px}.phone-scroll{min-height:420px}}

/* v6 polish: mobile profile balance, bot icon containment, wallet icon size */
.profile-section{padding:24px!important;border-radius:26px!important;overflow:hidden}
.profile-section-grid,.profile-bottom{gap:18px;align-items:stretch}
.profile-list-panel{min-height:auto!important}
.profile-list-panel h2,.medal-section h2{margin-top:0;margin-bottom:18px;font-size:28px;line-height:1.15}
.profile-list-panel .table-wrap{border-radius:18px;background:#fff}
.profile-list-panel .table-wrap table{min-width:0;width:100%}
.profile-list-panel th,.profile-list-panel td{padding:12px 14px;font-size:14px;white-space:normal;word-break:break-word}
.profile-list-panel .activity-list{max-height:360px;overflow:auto}
.profile-list-panel .activity-list div{padding:13px 14px;border-radius:15px}
.medal-section .medal-grid{gap:16px}
.medal-section .medal-card{min-height:128px;padding:18px 12px}
.profile-head{min-height:auto!important}
.profile-title-block{min-width:0}
.profile-title-block h1{line-height:1.1;word-break:break-word}
.profile-ref-inline b{line-height:1}

.dashboard-bot-card{position:relative;overflow:hidden;display:block;min-height:0;padding:26px!important}
.dashboard-bot-card .bot-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:18px;min-height:76px}
.dashboard-robot-icon,.robot-icon{width:76px!important;height:76px!important;min-width:76px!important;max-width:76px!important;border-radius:24px!important;overflow:hidden!important;position:relative;z-index:1;background:linear-gradient(135deg,#eafff4,#eef6ff)!important}
.dashboard-robot-icon img,.robot-icon img{width:58px!important;height:58px!important;max-width:58px!important;max-height:58px!important;object-fit:contain!important;display:block!important;position:static!important;transform:none!important}
.dashboard-bot-card .status{margin-left:auto;position:relative;z-index:2}
.dashboard-bot-card .bot-title{display:block;clear:both;margin:4px 0 18px!important;font-size:25px;line-height:1.18;position:relative;z-index:2;word-break:break-word}
.dashboard-bot-card p,.dashboard-bot-card form,.dashboard-bot-card .meter{position:relative;z-index:2}
.store-package-card{overflow:hidden;display:flex;flex-direction:column;gap:8px;min-height:405px}
.store-package-card .bot-art{width:120px!important;height:120px!important;min-height:120px!important;border-radius:32px!important;overflow:hidden!important;position:relative;z-index:1;margin-bottom:8px!important}
.store-package-card .bot-art img,.bot-art img{width:88px!important;height:88px!important;max-width:88px!important;max-height:88px!important;object-fit:contain!important;display:block!important;position:static!important;transform:none!important}
.store-package-card h3{margin:4px 0 0!important;font-size:23px;line-height:1.18;position:relative;z-index:2}
.store-package-card p,.store-package-card form{position:relative;z-index:2}
.store-package-card form{margin-top:auto}

.wallet-option{align-items:flex-start;min-height:286px}
.wallet-option-icon{width:86px!important;height:86px!important;border-radius:28px!important;font-size:43px!important;margin-bottom:6px!important;box-shadow:0 16px 34px rgba(42,123,255,.18)!important}
.wallet-option h2{font-size:27px!important;line-height:1.12}
.admin-handle{width:100%;font-size:24px}

@media(max-width:640px){
  .container{width:min(100% - 28px,1180px)}
  .profile-section{padding:22px!important;border-radius:24px!important}
  .profile-head{display:grid;grid-template-columns:64px 1fr;gap:14px;align-items:start}
  .profile-title-block h1{font-size:25px!important;margin-top:0!important}
  .profile-ref-inline{gap:8px}
  .profile-ref-inline span{width:100%;font-size:13px}
  .profile-ref-inline b{font-size:19px;padding:9px 11px}
  .small-copy{padding:8px 11px;min-height:36px}
  .medal-section .medal-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .medal-section .medal-card{min-height:112px;padding:14px 8px;border-radius:16px}
  .medal-card span{font-size:30px!important}
  .profile-list-panel h2,.medal-section h2{font-size:26px;margin-bottom:14px}
  .profile-bottom{gap:16px}
  .profile-list-panel th,.profile-list-panel td{font-size:13px;padding:10px 9px}
  .profile-list-panel .activity-list{max-height:315px}
  .dashboard-bot-card{padding:24px 22px!important}
  .dashboard-bot-card .bot-top{min-height:70px;margin-bottom:14px}
  .dashboard-robot-icon,.robot-icon{width:68px!important;height:68px!important;min-width:68px!important;max-width:68px!important;border-radius:22px!important}
  .dashboard-robot-icon img,.robot-icon img{width:52px!important;height:52px!important;max-width:52px!important;max-height:52px!important}
  .dashboard-bot-card .bot-title{font-size:23px;margin-bottom:14px!important}
  .store-package-card{min-height:360px}
  .store-package-card .bot-art{width:104px!important;height:104px!important;min-height:104px!important;border-radius:28px!important}
  .store-package-card .bot-art img,.bot-art img{width:76px!important;height:76px!important;max-width:76px!important;max-height:76px!important}
  .wallet-option{min-height:250px;padding:22px!important}
  .wallet-option-icon{width:76px!important;height:76px!important;border-radius:25px!important;font-size:38px!important}
  .wallet-option h2{font-size:24px!important}
}

/* v7: compact profile bottom, safe bot artwork, stronger wallet icon hierarchy */
.profile-bottom-v7{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin:22px 0;
  align-items:start;
}
.profile-compact-panel{
  padding:20px!important;
  border-radius:24px!important;
  min-width:0;
  overflow:hidden;
}
.profile-panel-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.profile-panel-title h2{
  margin:0!important;
  font-size:25px!important;
  line-height:1.15;
}
.profile-panel-title > span{
  flex:0 0 auto;
  padding:7px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#f2fff9;
  color:#31534d;
  font-size:12px;
  font-weight:900;
}
.referral-table-wrap{
  width:100%;
  border-radius:16px!important;
}
.referral-table-wrap table{
  width:100%!important;
  min-width:0!important;
  table-layout:fixed;
}
.referral-table-wrap th:nth-child(1),
.referral-table-wrap td:nth-child(1){width:24%}
.referral-table-wrap th:nth-child(2),
.referral-table-wrap td:nth-child(2){width:22%}
.referral-table-wrap th:nth-child(3),
.referral-table-wrap td:nth-child(3){width:54%}
.referral-table-wrap th,
.referral-table-wrap td{
  padding:11px 12px!important;
  font-size:13px!important;
  overflow-wrap:anywhere;
}
.profile-activity-list{
  max-height:344px!important;
  overflow:auto;
  padding-right:2px;
}
.profile-activity-list .activity-item{
  width:100%;
  padding:12px 13px!important;
  border-radius:14px!important;
}
.profile-activity-list .activity-item b{
  overflow-wrap:anywhere;
}
.empty-profile-state{
  margin:0;
  padding:18px;
  text-align:center;
  border:1px dashed var(--line);
  border-radius:14px;
}

/* Every bot icon is isolated in its own fixed artwork area. */
.dashboard-bot-card .bot-top{
  min-height:84px!important;
  margin-bottom:12px!important;
}
.dashboard-robot-icon,
.store-package-card .bot-art{
  display:grid!important;
  place-items:center!important;
  padding:8px!important;
  flex:0 0 auto!important;
  isolation:isolate;
}
.dashboard-robot-icon img,
.store-package-card .bot-art img{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:0!important;
  inset:auto!important;
  position:relative!important;
  z-index:1!important;
  pointer-events:none;
}
.dashboard-bot-card .bot-title{
  margin:0 0 16px!important;
  padding:0!important;
  clear:both;
}
.store-package-card h3{
  clear:both;
  margin-top:2px!important;
}

.wallet-options-v7 .wallet-option{
  gap:16px;
  min-height:300px;
}
.wallet-option-head{
  width:100%;
  display:flex;
  align-items:center;
  gap:16px;
}
.wallet-option-head > div:last-child{
  min-width:0;
}
.wallet-option-head .eyebrow{
  margin-bottom:5px;
}
.wallet-options-v7 .wallet-option-icon{
  width:94px!important;
  height:94px!important;
  min-width:94px!important;
  border-radius:30px!important;
  font-size:48px!important;
  margin:0!important;
}
.wallet-options-v7 .wallet-option h2{
  margin:0!important;
  overflow-wrap:anywhere;
}
.wallet-options-v7 .admin-handle{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-size:23px;
}
.wallet-options-v7 .admin-handle span{
  font-size:27px;
  line-height:1;
}

@media(max-width:980px){
  .profile-bottom-v7{grid-template-columns:1fr}
}

@media(max-width:640px){
  .profile-bottom-v7{gap:14px;margin:16px 0}
  .profile-compact-panel{
    padding:16px!important;
    border-radius:21px!important;
  }
  .profile-panel-title{margin-bottom:11px}
  .profile-panel-title h2{font-size:22px!important}
  .profile-panel-title > span{font-size:11px;padding:6px 9px}

  .responsive-referrals thead{display:none}
  .responsive-referrals,
  .responsive-referrals tbody,
  .responsive-referrals tr,
  .responsive-referrals td{display:block;width:100%!important}
  .responsive-referrals tbody{
    display:grid;
    gap:9px;
    padding:9px;
  }
  .responsive-referrals tr:not(.empty-table-row){
    border:1px solid var(--line);
    border-radius:13px;
    background:#fbfffd;
    padding:7px 10px;
  }
  .responsive-referrals td{
    display:grid;
    grid-template-columns:62px 1fr;
    gap:9px;
    align-items:start;
    padding:6px 0!important;
    border:0!important;
    font-size:13px!important;
  }
  .responsive-referrals td::before{
    content:attr(data-label);
    color:var(--muted);
    font-size:11px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.04em;
  }
  .responsive-referrals .empty-table-row{
    padding:8px;
  }
  .responsive-referrals .empty-table-row td{
    display:block;
    text-align:center;
    padding:14px!important;
  }
  .responsive-referrals .empty-table-row td::before{display:none}
  .profile-activity-list{max-height:292px!important}
  .profile-activity-list .activity-item{padding:11px 12px!important}

  .dashboard-bot-card .bot-top{
    min-height:72px!important;
    margin-bottom:10px!important;
  }
  .dashboard-robot-icon{
    width:72px!important;
    height:72px!important;
    min-width:72px!important;
    max-width:72px!important;
    padding:7px!important;
  }
  .dashboard-bot-card .bot-title{
    font-size:22px!important;
    margin:0 0 13px!important;
  }
  .store-package-card .bot-art{
    padding:9px!important;
  }

  .wallet-options-v7 .wallet-option{
    min-height:0;
    padding:19px!important;
  }
  .wallet-option-head{gap:13px}
  .wallet-options-v7 .wallet-option-icon{
    width:82px!important;
    height:82px!important;
    min-width:82px!important;
    border-radius:26px!important;
    font-size:42px!important;
  }
  .wallet-options-v7 .wallet-option h2{font-size:23px!important}
  .wallet-options-v7 .admin-handle{font-size:21px}
}

/* v8: medal-start bot flow, split payout, distinct icons and upload progress */
.grid.six{grid-template-columns:repeat(6,minmax(0,1fr))}

.rule-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin:22px 0;
}
.rule-strip>div{
  display:grid;
  gap:5px;
  padding:15px;
  border:1px solid var(--line);
  border-radius:17px;
  background:linear-gradient(135deg,#f7fffb,#f1f7ff);
}
.rule-strip b{font-size:25px;color:var(--green-dark)}
.rule-strip span{font-size:13px;color:var(--muted);font-weight:800}

.dashboard-bot-card{
  display:flex!important;
  flex-direction:column;
  gap:14px;
  min-height:520px;
}
.dashboard-bot-card .bot-top{margin-bottom:0!important}
.dashboard-bot-card .bot-title{margin:0!important}
.dashboard-bot-card.waiting_medal{
  border-color:#f0d99a;
  background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(255,251,235,.94));
}
.dashboard-bot-card.completed{opacity:.86}
.status.waiting{background:#fff5cf;color:#805d00}
.status.paused-status{background:#fff0dd;color:#8b4d00}
.status.completed-status{background:#ebfff5;color:#08724d}
.bot-facts{display:grid;gap:8px}
.bot-facts p{margin:0}
.payout-box{
  display:grid;
  gap:7px;
  padding:14px;
  border:1px solid #eadba8;
  border-radius:16px;
  background:#fffdf4;
}
.payout-box span{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#8b6b10;font-weight:900}
.payout-box b{font-size:17px}
.payout-box small{line-height:1.45}
.split-payout{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.split-payout>div{
  display:grid;
  gap:4px;
  padding:13px;
  border:1px solid var(--line);
  border-radius:15px;
  background:#f8fffc;
}
.split-payout span{font-size:12px;color:var(--muted);font-weight:900}
.split-payout b{font-size:20px;color:var(--green-dark)}
.dashboard-bot-card form{margin-top:auto}

.store-package-card{
  min-height:520px!important;
  gap:10px!important;
}
.store-package-card .bot-art{
  width:132px!important;
  height:132px!important;
  min-height:132px!important;
  padding:6px!important;
}
.store-package-card .bot-art img{
  width:100%!important;
  height:100%!important;
}
.store-details{display:grid;gap:8px;margin:2px 0 8px}
.store-details p{margin:0;line-height:1.42}

.chat-compose{position:relative}
.chat-compose .btn:disabled{opacity:.65;cursor:not-allowed}
.selected-upload{
  grid-column:1/-1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:9px 12px;
  border:1px solid var(--line);
  border-radius:13px;
  background:#f7fffb;
  color:#31534d;
  font-size:13px;
  font-weight:800;
}
.selected-upload[hidden],.upload-progress[hidden]{display:none!important}
.selected-upload span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.selected-upload button{
  width:27px;height:27px;border:0;border-radius:50%;background:#fff0f1;color:#a3202f;font-size:20px;line-height:1;cursor:pointer
}
.upload-progress{grid-column:1/-1;display:grid;gap:7px}
.upload-progress-line{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;font-weight:900;color:#31534d}
.upload-track{height:10px;border-radius:999px;background:#e7f2ee;overflow:hidden;border:1px solid var(--line)}
.upload-track span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,var(--green),var(--blue));transition:width .15s ease}
.upload-result{grid-column:1/-1;margin:0;min-height:18px;color:#08724d;font-size:13px;font-weight:800}
.upload-result.error{color:var(--danger)}
.bubble-msg a{display:block}
.bubble-msg img{max-height:360px;object-fit:contain;background:#fff}

@media(max-width:1100px){
  .grid.six{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:980px){
  .grid.six{grid-template-columns:1fr}
  .rule-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  .rule-strip{grid-template-columns:1fr 1fr;padding:15px!important;gap:9px}
  .rule-strip>div{padding:11px;border-radius:14px}
  .rule-strip b{font-size:21px}
  .dashboard-bot-card{min-height:0;padding:19px!important}
  .split-payout{grid-template-columns:1fr 1fr}
  .split-payout>div{padding:11px}
  .split-payout b{font-size:18px}
  .store-package-card{min-height:0!important}
  .store-package-card .bot-art{width:118px!important;height:118px!important;min-height:118px!important}
  .chat-compose{grid-template-columns:auto minmax(0,1fr) auto!important;padding:12px!important}
  .chat-compose .btn{grid-column:auto!important;width:auto!important;padding:12px 14px}
  .image-picker{width:44px;height:44px}
}

/* v9: compact profile/wallet cleanup */
.profile-bottom-single{grid-template-columns:minmax(0,1fr)!important}
.profile-bottom-single .profile-list-panel{width:100%}


/* v10: persistent day/night mode, premium packages and landing polish */
:root{
  --surface-soft:#f7fffb;
  --surface-alt:#f2fff9;
  --surface-blue:#eef6ff;
  --surface-input:#fbfffd;
  --topbar-bg:rgba(255,255,255,.82);
  --panel-rgb:255,255,255;
}
html{color-scheme:light}
html[data-theme="dark"]{
  color-scheme:dark;
  --bg:#07130f;
  --panel:#101f1a;
  --text:#e8fff6;
  --muted:#94b2a9;
  --green:#2ad89c;
  --green-dark:#65edbc;
  --blue:#6aa4ff;
  --line:#29463d;
  --danger:#ff7785;
  --warning:#f5c35d;
  --shadow:0 18px 52px rgba(0,0,0,.34);
  --surface-soft:#13251f;
  --surface-alt:#173028;
  --surface-blue:#16263a;
  --surface-input:#0d1b16;
  --topbar-bg:rgba(7,18,14,.88);
  --panel-rgb:16,31,26;
}
body{transition:background .25s ease,color .2s ease}
html[data-theme="dark"] body{background:linear-gradient(135deg,#06110d,#0b1722 55%,#0c1813)}
html[data-theme="dark"] .aurora{background:radial-gradient(circle at 10% 5%,rgba(42,216,156,.13),transparent 35%),radial-gradient(circle at 90% 20%,rgba(106,164,255,.14),transparent 30%)}
.topbar{grid-template-columns:auto minmax(0,1fr) auto;background:var(--topbar-bg)}
.topbar nav{justify-content:flex-end;min-width:0}
.theme-toggle{
  width:44px;height:44px;border:1px solid var(--line);border-radius:15px;
  display:grid;place-items:center;background:var(--surface-input);color:var(--text);
  font-size:21px;cursor:pointer;box-shadow:0 8px 22px rgba(42,123,255,.10);
  transition:transform .18s ease,background .2s ease,border-color .2s ease;
}
.theme-toggle:hover{transform:translateY(-1px)}
.theme-toggle:active{transform:scale(.96)}

.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.landing-features .panel{min-height:220px;display:flex;flex-direction:column;gap:8px}
.landing-features h3{font-size:22px;margin:3px 0}
.landing-features p{margin:0;color:var(--muted);line-height:1.6}
.feature-icon{font-size:38px;line-height:1}
.speed-hero-card{overflow:hidden;position:relative}
.speed-hero-card:after{content:"";position:absolute;width:190px;height:190px;border-radius:50%;right:-85px;bottom:-95px;background:linear-gradient(135deg,rgba(22,182,127,.18),rgba(42,123,255,.18))}
.store-package-card.level-7{border-color:rgba(148,103,255,.38);background:linear-gradient(145deg,rgba(var(--panel-rgb),.96),rgba(240,235,255,.82))}
html[data-theme="dark"] .store-package-card.level-7{background:linear-gradient(145deg,rgba(16,31,26,.96),rgba(34,27,65,.88))}

html[data-theme="dark"] .topbar{border-bottom-color:var(--line)}
html[data-theme="dark"] .panel,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .package-card,
html[data-theme="dark"] .bot-card,
html[data-theme="dark"] .news-card,
html[data-theme="dark"] .wallet-option{background:rgba(var(--panel-rgb),.91);border-color:var(--line)}
html[data-theme="dark"] .btn.ghost,
html[data-theme="dark"] button.ghost{background:var(--surface-input);color:var(--text);border-color:var(--line)}
html[data-theme="dark"] .nav-cta{background:#e8fff6;color:#07130f!important}
html[data-theme="dark"] .form label,
html[data-theme="dark"] .field-title{color:#cce9df}
html[data-theme="dark"] .form input,
html[data-theme="dark"] .form textarea,
html[data-theme="dark"] .form select,
html[data-theme="dark"] .copybox,
html[data-theme="dark"] select{background:var(--surface-input);color:var(--text);border-color:var(--line)}
html[data-theme="dark"] .table-wrap table{background:var(--panel)}
html[data-theme="dark"] th{background:var(--surface-alt);color:#c5e7dc}
html[data-theme="dark"] .profile-lines p,
html[data-theme="dark"] .medal-card,
html[data-theme="dark"] .activity-list div,
html[data-theme="dark"] .bubble-msg,
html[data-theme="dark"] .bubble-msg.admin,
html[data-theme="dark"] .mini-stats span,
html[data-theme="dark"] .profile-ref-inline b,
html[data-theme="dark"] .admin-handle,
html[data-theme="dark"] .profile-panel-title>span,
html[data-theme="dark"] .responsive-referrals tr:not(.empty-table-row),
html[data-theme="dark"] .selected-upload,
html[data-theme="dark"] .rule-strip>div,
html[data-theme="dark"] .split-payout>div{background:var(--surface-soft);color:var(--text);border-color:var(--line)}
html[data-theme="dark"] .bubble-msg.user{background:linear-gradient(135deg,#10352a,#142b47)}
html[data-theme="dark"] .wallet-option.featured{background:linear-gradient(135deg,#101f1a,#102a22)}
html[data-theme="dark"] .wallet-option.muted-card{background:#0d1b16}
html[data-theme="dark"] .wallet-pill,
html[data-theme="dark"] .status{background:var(--surface-blue);border-color:var(--line);color:#a9caff}
html[data-theme="dark"] .status.waiting{background:#3a3214;color:#ffe58d}
html[data-theme="dark"] .status.paused-status{background:#3c2817;color:#ffc276}
html[data-theme="dark"] .status.completed-status{background:#12372b;color:#86f1c4}
html[data-theme="dark"] .dashboard-bot-card.waiting_medal{background:linear-gradient(145deg,rgba(16,31,26,.96),rgba(50,42,18,.86));border-color:#63562b}
html[data-theme="dark"] .payout-box{background:#302b16;border-color:#65592d;color:#fff3ba}
html[data-theme="dark"] .payout-box span{color:#e8c967}
html[data-theme="dark"] .robot-icon,
html[data-theme="dark"] .dashboard-robot-icon,
html[data-theme="dark"] .bot-art,
html[data-theme="dark"] .bot-orb{background:linear-gradient(135deg,#14372d,#182c49)!important;border-color:var(--line)}
html[data-theme="dark"] .empty{background:rgba(16,31,26,.65)}
html[data-theme="dark"] .inline-form button{background:var(--surface-alt);color:var(--text);border-color:var(--line)}
html[data-theme="dark"] .flash{background:#172a3d;border-color:#294b68;color:#b8d8ff}
html[data-theme="dark"] .flash.success{background:#12372b;border-color:#24664f;color:#91f2c9}
html[data-theme="dark"] .flash.danger{background:#3d1d24;border-color:#6e303b;color:#ffb0b9}
html[data-theme="dark"] .flash.warning{background:#3a3014;border-color:#6b5926;color:#ffe39a}
html[data-theme="dark"] .upload-track,
html[data-theme="dark"] .meter{background:#14271f;border-color:var(--line)}
html[data-theme="dark"] .tiny-btn{background:#182c49;color:#a9caff;border-color:#294b68}
html[data-theme="dark"] .profile-lines p b,
html[data-theme="dark"] .profile-panel-title>span{color:#c5e7dc}

@media(max-width:1100px){.grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:980px){
  .topbar{grid-template-columns:minmax(0,1fr) auto;align-items:center}
  .topbar nav{grid-column:1/-1;grid-row:2;justify-content:flex-start;width:100%}
  .theme-toggle{grid-column:2;grid-row:1}
  .brand{grid-column:1;grid-row:1}
}
@media(max-width:640px){
  .grid.four{grid-template-columns:1fr}
  .landing-features .panel{min-height:0}
  .theme-toggle{width:40px;height:40px;border-radius:13px;font-size:19px}
}

/* v11: fixed mobile header, Level 8 package, open-source bot artwork and news cards */
.topbar{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto!important;
  grid-template-areas:"brand nav theme";
  align-items:center!important;
  gap:18px!important;
  flex-direction:initial!important;
}
.topbar .brand{
  grid-area:brand;
  justify-self:start;
  min-width:0;
}
.topbar nav{
  grid-area:nav;
  justify-self:end;
  justify-content:flex-end!important;
  width:auto;
  min-width:0;
}
.topbar .theme-toggle{
  grid-area:theme;
  justify-self:end;
  align-self:center;
  flex:0 0 auto;
}

.store-package-card.level-8{
  border-color:rgba(255,0,204,.38);
  background:linear-gradient(145deg,rgba(var(--panel-rgb),.97),rgba(236,232,255,.88));
  box-shadow:0 20px 58px rgba(90,60,220,.16);
}
html[data-theme="dark"] .store-package-card.level-8{
  background:linear-gradient(145deg,rgba(16,31,26,.97),rgba(45,22,72,.90));
  border-color:rgba(215,128,255,.42);
}

.news-hero-v11{align-items:center}
.news-support-pill{
  flex:0 0 auto;
  padding:12px 16px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--surface-alt),var(--surface-blue));
  border:1px solid var(--line);
  color:var(--text);
  font-weight:900;
  white-space:nowrap;
}
.news-grid-v11{grid-template-columns:repeat(2,minmax(0,1fr))}
.news-card-v11{
  min-height:205px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
  overflow:hidden;
  position:relative;
}
.news-card-v11:after{
  content:"";
  position:absolute;
  width:120px;
  height:120px;
  border-radius:50%;
  right:-46px;
  bottom:-54px;
  background:linear-gradient(135deg,rgba(22,182,127,.14),rgba(42,123,255,.15));
  pointer-events:none;
}
.news-card-v11 h3{font-size:24px;line-height:1.2;margin:4px 0 0;position:relative;z-index:1}
.news-card-v11 p{margin:0;color:var(--muted);line-height:1.65;position:relative;z-index:1}
.news-card-v11 .tag{position:relative;z-index:1}

.bank-section-v11{margin-top:24px}
.bank-section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:20px;
}
.bank-section-head h2{margin:2px 0 6px;font-size:30px;line-height:1.18}
.bank-section-head p{margin:0;max-width:760px}
.bank-age-badge{
  display:grid;
  place-items:center;
  width:56px;
  height:56px;
  min-width:56px;
  border-radius:18px;
  background:linear-gradient(135deg,var(--green),var(--blue));
  color:#fff;
  font-weight:1000;
  box-shadow:0 12px 30px rgba(42,123,255,.18);
}
.bank-grid-v11{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.bank-card-v11{
  display:grid;
  grid-template-columns:64px minmax(0,1fr);
  gap:16px;
  align-items:start;
  padding:18px;
  border:1px solid var(--line);
  border-radius:20px;
  background:var(--surface-soft);
}
.bank-logo-v11{
  width:64px;
  height:64px;
  border-radius:20px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,var(--green),var(--blue));
  color:#fff;
  font-size:27px;
  font-weight:1000;
}
.bank-card-v11 span{display:block;color:var(--green-dark);font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.12em}
.bank-card-v11 h3{margin:4px 0 7px;font-size:23px}
.bank-card-v11 p{margin:0 0 9px;color:var(--muted);line-height:1.58}
.bank-card-v11 small{display:block;line-height:1.45}
html[data-theme="dark"] .news-support-pill,
html[data-theme="dark"] .bank-card-v11{background:var(--surface-soft);border-color:var(--line)}

/* New SVG cards already contain their own gradient frame; keep them large and unclipped. */
.dashboard-robot-icon,
.store-package-card .bot-art{
  background:transparent!important;
  border-color:transparent!important;
  padding:0!important;
  box-shadow:none!important;
}
.dashboard-robot-icon img,
.store-package-card .bot-art img{
  width:100%!important;
  height:100%!important;
  filter:drop-shadow(0 10px 16px rgba(12,40,70,.16));
}

@media(max-width:980px){
  .topbar{
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"brand theme" "nav nav"!important;
    align-items:center!important;
    gap:10px 14px!important;
  }
  .topbar .brand{grid-area:brand!important;justify-self:start!important}
  .topbar .theme-toggle{grid-area:theme!important;justify-self:end!important}
  .topbar nav{
    grid-area:nav!important;
    justify-self:stretch!important;
    justify-content:flex-start!important;
    width:100%!important;
    overflow-x:auto;
    flex-wrap:nowrap;
    padding-bottom:3px;
  }
}
@media(max-width:720px){
  .news-grid-v11,.bank-grid-v11{grid-template-columns:1fr}
  .news-card-v11{min-height:0}
  .bank-section-head{align-items:flex-start}
}
@media(max-width:640px){
  .topbar{padding:12px 14px!important}
  .topbar .brand{font-size:18px!important}
  .topbar .brand-mark{width:40px;height:40px;border-radius:14px}
  .topbar .theme-toggle{width:40px;height:40px;margin:0!important}
  .news-hero-v11{align-items:flex-start}
  .news-support-pill{font-size:13px;padding:10px 13px}
  .bank-section-head h2{font-size:25px}
  .bank-age-badge{width:48px;height:48px;min-width:48px;border-radius:15px}
  .bank-card-v11{grid-template-columns:54px minmax(0,1fr);gap:13px;padding:15px}
  .bank-logo-v11{width:54px;height:54px;border-radius:17px;font-size:23px}
}

/* v13: functional admin dashboard, user editor and Instagram-style support inbox */
.admin-hero-v13{margin-bottom:18px}
.admin-stats-v13{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0 24px}
.admin-stat-v13{display:flex;align-items:center;gap:15px;padding:19px!important;min-width:0}
.admin-stat-v13>span{width:54px;height:54px;min-width:54px;display:grid;place-items:center;border-radius:18px;background:linear-gradient(135deg,var(--surface-alt,#eafff4),var(--surface-blue,#eef6ff));border:1px solid var(--line);font-size:27px}
.admin-stat-v13>div{display:grid;gap:2px;min-width:0}
.admin-stat-v13 small{font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.admin-stat-v13 strong{font-size:28px;line-height:1.1;overflow-wrap:anywhere}
.admin-stat-v13 em{font-style:normal;color:var(--muted);font-size:12px;font-weight:800}
.admin-section-head-v13{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:16px}
.admin-section-head-v13.compact{align-items:flex-start}
.admin-section-head-v13 h2{margin:0 0 5px;font-size:28px}
.admin-section-head-v13 p{margin-top:0}
.admin-search-v13{display:flex;align-items:center;gap:9px;min-width:min(100%,480px)}
.admin-search-v13 input{width:100%;min-width:0;border:1px solid var(--line);border-radius:14px;padding:12px 14px;background:var(--surface-input,#fbfffd);color:var(--text);font:inherit;outline:none}
.admin-search-result-v13{margin:0 0 13px;color:var(--muted);font-size:13px}
.admin-user-list-v13{display:grid;gap:10px}
.admin-user-row-v13{display:grid;grid-template-columns:52px minmax(220px,1fr) minmax(320px,1.1fr) auto;gap:14px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:18px;background:var(--surface-soft,#f9fffc)}
.admin-user-avatar-v13,.admin-thread-avatar-v13{display:grid;place-items:center;width:52px;height:52px;border-radius:17px;background:linear-gradient(135deg,var(--green),var(--blue));color:#fff;font-size:21px;font-weight:1000;box-shadow:0 10px 24px rgba(42,123,255,.15)}
.admin-user-main-v13{display:grid;gap:3px;min-width:0}
.admin-user-main-v13>b,.admin-user-main-v13>span,.admin-user-main-v13>small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.admin-user-main-v13>span{font-size:14px;color:var(--text)}
.admin-user-main-v13>small{font-size:11px}
.admin-user-metrics-v13{display:grid;grid-template-columns:repeat(4,minmax(60px,1fr));gap:8px}
.admin-user-metrics-v13>span{display:grid;gap:2px;padding:9px 10px;border:1px solid var(--line);border-radius:13px;background:var(--panel)}
.admin-user-metrics-v13 b{font-size:15px;overflow-wrap:anywhere}
.admin-user-metrics-v13 small{font-size:10px;text-transform:uppercase;font-weight:900}
.admin-user-actions-v13{display:flex;gap:8px;align-items:center}
.admin-user-actions-v13 .btn{padding:9px 13px}
.admin-recent-v13{margin-top:22px}

.admin-message-head-v13{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}
.admin-message-head-v13 h1{margin:0;font-size:34px}
.admin-inbox-v13{display:grid;grid-template-columns:360px minmax(0,1fr);padding:0!important;overflow:hidden;min-height:720px}
.admin-thread-list-v13{border-right:1px solid var(--line);min-width:0;background:var(--surface-soft,#f9fffc)}
.admin-thread-list-head-v13{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px;border-bottom:1px solid var(--line)}
.admin-thread-list-head-v13>div{display:grid;gap:2px}
.admin-thread-list-head-v13>div>b{font-size:20px}
.admin-thread-list-head-v13>span{padding:6px 9px;border-radius:999px;background:var(--danger);color:#fff;font-size:11px;font-weight:900}
.admin-thread-scroll-v13{height:660px;overflow:auto;padding:8px}
.admin-thread-card-v13{position:relative;display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:11px;align-items:center;padding:12px 10px;border-radius:16px;color:var(--text);border:1px solid transparent}
.admin-thread-card-v13:hover,.admin-thread-card-v13.active{background:var(--panel);border-color:var(--line)}
.admin-thread-avatar-v13{width:48px;height:48px;border-radius:16px;font-size:19px}
.admin-thread-avatar-v13.large{width:48px;height:48px;min-width:48px}
.admin-thread-copy-v13{display:grid;gap:2px;min-width:0}
.admin-thread-copy-v13>div{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.admin-thread-copy-v13 b,.admin-thread-copy-v13 span,.admin-thread-copy-v13 p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.admin-thread-copy-v13 b{font-size:14px}
.admin-thread-copy-v13 time{font-size:10px;color:var(--muted);white-space:nowrap}
.admin-thread-copy-v13 span{font-size:11px;color:var(--muted)}
.admin-thread-copy-v13 p{margin:2px 0 0;font-size:12px;color:var(--muted)}
.admin-thread-unread-v13{display:grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--blue);color:#fff;font-size:11px}
.admin-chat-v13{display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-width:0;background:var(--panel)}
.admin-chat-header-v13{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line)}
.admin-chat-header-v13>div:nth-child(2){display:grid;gap:3px;min-width:0}
.admin-chat-header-v13>div:nth-child(2)>b,.admin-chat-header-v13>div:nth-child(2)>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.admin-chat-header-v13>div:nth-child(2)>span{color:var(--muted);font-size:12px}
.admin-chat-header-actions-v13{margin-left:auto;display:flex;align-items:center;gap:10px}
.admin-chat-header-actions-v13>span{font-size:12px;font-weight:900;color:var(--green-dark)}
.admin-chat-scroll-v13{height:548px;overflow:auto;padding:20px;display:flex;flex-direction:column;gap:12px;background:linear-gradient(135deg,rgba(22,182,127,.035),rgba(42,123,255,.045))}
.admin-chat-compose-v13{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:9px;align-items:center;padding:14px 16px;border-top:1px solid var(--line);background:var(--panel)}
.admin-chat-compose-v13>input{width:100%;border:1px solid var(--line);border-radius:999px;padding:12px 16px;background:var(--surface-input,#fbfffd);color:var(--text);font:inherit;outline:none}
.admin-chat-compose-v13 .image-picker{width:43px;height:43px;border-radius:50%;display:grid;place-items:center;background:var(--surface-alt,#eafff4);border:1px solid var(--line);cursor:pointer}
.admin-chat-compose-v13 .selected-upload,.admin-chat-compose-v13 .upload-progress,.admin-chat-compose-v13 .upload-result{grid-column:1/-1}
.admin-chat-empty-v13{display:grid;place-items:center;align-content:center;text-align:center;padding:40px;min-height:700px;color:var(--muted)}
.admin-chat-empty-v13>div{font-size:58px}.admin-chat-empty-v13 h2{margin:12px 0 2px;color:var(--text)}.admin-chat-empty-v13 p{margin:0}

.admin-user-edit-head-v13{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;align-items:center}
.admin-user-avatar-v13.xl{width:70px;height:70px;border-radius:23px;font-size:29px}
.admin-user-edit-head-v13 h1{margin:0;font-size:34px}
.admin-user-edit-head-v13 p{margin:2px 0 0}
.admin-user-edit-actions-v13{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.admin-user-summary-v13{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}
.admin-user-summary-v13 article{display:grid;gap:4px;padding:18px!important}
.admin-user-summary-v13 small{font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.admin-user-summary-v13 strong{font-size:27px}.admin-user-summary-v13 em{font-style:normal;color:var(--muted);font-size:12px}
.admin-edit-grid-v13{align-items:stretch}
.admin-edit-grid-v13>article{min-width:0}
.admin-referrer-v13{display:grid;gap:7px;margin-top:16px;padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--surface-soft,#f9fffc)}
.admin-referrer-v13>span{font-size:11px;font-weight:900;text-transform:uppercase;color:var(--muted)}
.admin-referrer-v13 a{display:grid;gap:3px}.admin-referrer-v13 small{display:block}
.admin-balance-big-v13{padding:18px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(135deg,var(--surface-alt,#eafff4),var(--surface-blue,#eef6ff));font-size:34px;font-weight:1000}
.admin-balance-big-v13 small{font-size:15px}
.admin-adjust-box-v13{display:grid;gap:12px;margin:15px 0}
.admin-adjust-box-v13 label{display:grid;gap:7px;font-weight:900}
.admin-adjust-box-v13 input{width:100%;border:1px solid var(--line);border-radius:14px;padding:12px;background:var(--surface-input,#fbfffd);color:var(--text);font:inherit}
.admin-adjust-box-v13>div{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.danger-btn-v13{background:linear-gradient(135deg,#f05d6b,#c22f42)!important}
.admin-account-facts-v13{display:grid;gap:8px;margin-top:16px}
.admin-account-facts-v13 p{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0;padding:10px 0;border-bottom:1px solid var(--line)}
.admin-account-facts-v13 span{color:var(--muted);font-size:12px}.admin-account-facts-v13 b{text-align:right;overflow-wrap:anywhere}
.admin-medal-grid-v13{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.admin-medal-card-v13{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:18px;background:var(--surface-soft,#f9fffc)}
.admin-medal-card-v13>span{font-size:30px}.admin-medal-card-v13>div{display:grid;gap:2px}.admin-medal-card-v13>div>b{font-size:13px}.admin-medal-card-v13>div>strong{font-size:23px}
.admin-medal-card-v13 form{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) 40px 40px;gap:7px}
.admin-medal-card-v13 input,.admin-medal-card-v13 button{border:1px solid var(--line);border-radius:11px;padding:9px;background:var(--panel);color:var(--text);font:inherit;font-weight:900}.admin-medal-card-v13 button{cursor:pointer}
.admin-detail-bottom-v13{align-items:start}
.admin-mini-list-v13{display:grid;gap:8px;max-height:430px;overflow:auto}
.admin-mini-list-v13>div{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft,#f9fffc)}
.admin-mini-list-v13>div>span{display:grid;gap:3px}.admin-mini-list-v13>div>span:last-child{text-align:right}.admin-mini-list-v13 small{font-size:10px}.admin-mini-list-v13.history strong{color:var(--green-dark)}

html[data-theme="dark"] .admin-user-row-v13,
html[data-theme="dark"] .admin-thread-list-v13,
html[data-theme="dark"] .admin-referrer-v13,
html[data-theme="dark"] .admin-medal-card-v13,
html[data-theme="dark"] .admin-mini-list-v13>div{background:var(--surface-soft);border-color:var(--line)}
html[data-theme="dark"] .admin-thread-card-v13:hover,
html[data-theme="dark"] .admin-thread-card-v13.active,
html[data-theme="dark"] .admin-user-metrics-v13>span,
html[data-theme="dark"] .admin-chat-v13,
html[data-theme="dark"] .admin-chat-compose-v13{background:var(--panel);border-color:var(--line)}
html[data-theme="dark"] .admin-search-v13 input,
html[data-theme="dark"] .admin-chat-compose-v13>input,
html[data-theme="dark"] .admin-adjust-box-v13 input,
html[data-theme="dark"] .admin-medal-card-v13 input,
html[data-theme="dark"] .admin-medal-card-v13 button{background:var(--surface-input);color:var(--text);border-color:var(--line)}

@media(max-width:1050px){
  .admin-stats-v13{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-user-row-v13{grid-template-columns:52px minmax(0,1fr) auto}
  .admin-user-metrics-v13{grid-column:2/4;grid-row:2}
  .admin-inbox-v13{grid-template-columns:310px minmax(0,1fr)}
}
@media(max-width:820px){
  .admin-section-head-v13,.admin-message-head-v13{align-items:stretch;flex-direction:column}
  .admin-search-v13{min-width:0;width:100%}
  .admin-user-summary-v13{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-medal-grid-v13{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-inbox-v13{grid-template-columns:1fr;min-height:0}
  .admin-thread-list-v13{border-right:0;border-bottom:1px solid var(--line)}
  .admin-thread-scroll-v13{height:310px}
  .admin-chat-scroll-v13{height:480px}
  .admin-chat-empty-v13{min-height:360px}
}
@media(max-width:640px){
  .admin-stats-v13{grid-template-columns:1fr;gap:10px}.admin-stat-v13{padding:15px!important}.admin-stat-v13 strong{font-size:24px}
  .admin-search-v13{display:grid;grid-template-columns:minmax(0,1fr) auto}.admin-search-v13 .ghost{grid-column:1/-1}
  .admin-user-row-v13{grid-template-columns:44px minmax(0,1fr);gap:10px;padding:12px}.admin-user-avatar-v13{width:44px;height:44px;border-radius:14px;font-size:18px}
  .admin-user-metrics-v13{grid-column:1/-1;grid-row:auto;grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-user-actions-v13{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.admin-user-actions-v13 a{text-align:center;justify-content:center}
  .admin-user-edit-head-v13{grid-template-columns:auto minmax(0,1fr)}.admin-user-avatar-v13.xl{width:58px;height:58px;border-radius:19px}.admin-user-edit-head-v13 h1{font-size:25px}.admin-user-edit-actions-v13{grid-column:1/-1;justify-content:stretch}.admin-user-edit-actions-v13 a{flex:1;text-align:center;justify-content:center}
  .admin-user-summary-v13{grid-template-columns:1fr 1fr;gap:10px}.admin-user-summary-v13 article{padding:14px!important}.admin-user-summary-v13 strong{font-size:23px}
  .admin-medal-grid-v13{grid-template-columns:1fr}
  .admin-chat-header-v13{padding:11px}.admin-chat-header-actions-v13>span{display:none}.admin-chat-scroll-v13{height:430px;padding:13px}.admin-chat-compose-v13{padding:10px;grid-template-columns:auto minmax(0,1fr) auto}.admin-chat-compose-v13 .btn{padding:11px 13px}
  .admin-thread-scroll-v13{height:280px}.admin-thread-card-v13{padding:10px 8px}
  .admin-adjust-box-v13>div{grid-template-columns:1fr}
}
.admin-thread-row-v13{display:grid;grid-template-columns:minmax(0,1fr) 34px;gap:4px;align-items:center}
.admin-thread-edit-v13{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;color:var(--text);background:var(--panel);border:1px solid var(--line);font-weight:1000}
.admin-thread-edit-v13:hover{color:var(--blue);border-color:var(--blue)}

/* v14: language selector, manual second-day claim and sponsored bank labels */
.topbar{
  grid-template-columns:auto minmax(0,1fr) auto!important;
  grid-template-areas:"brand nav tools"!important;
}
.header-tools-v14{
  grid-area:tools;
  justify-self:end;
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
}
.language-picker-v14{
  height:44px;
  display:flex;
  align-items:center;
  gap:5px;
  padding:0 8px 0 10px;
  border:1px solid var(--line);
  border-radius:15px;
  background:var(--surface-input);
  box-shadow:0 8px 22px rgba(42,123,255,.08);
}
.language-picker-v14 span{font-size:16px;line-height:1}
.language-picker-v14 select{
  width:48px;
  border:0;
  outline:0;
  padding:0;
  background:transparent;
  color:var(--text);
  font:inherit;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
}
.header-tools-v14 .theme-toggle{grid-area:unset!important;justify-self:auto!important}
.claim-ready-v14{margin:13px 0 10px;color:var(--green-dark);font-weight:900}
.claim-btn-v14{box-shadow:0 14px 34px rgba(22,182,127,.25)}
.bank-ad-label-v14{
  display:inline-flex!important;
  width:max-content;
  margin:0 0 5px;
  padding:4px 8px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--green),var(--blue));
  color:#fff!important;
  letter-spacing:.08em!important;
}
.sponsor-contact-v14{
  margin-top:18px;
  padding:15px 17px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(135deg,var(--surface-alt),var(--surface-blue));
  display:flex;
  align-items:center;
  gap:12px;
}
.sponsor-contact-v14>span{font-size:28px}
.sponsor-contact-v14 div{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;flex-wrap:wrap}
.sponsor-contact-v14 a{font-weight:1000;color:var(--blue)}
html[data-theme="dark"] .language-picker-v14,
html[data-theme="dark"] .sponsor-contact-v14{background:var(--surface-soft);border-color:var(--line)}

@media(max-width:980px){
  .topbar{
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"brand tools" "nav nav"!important;
  }
  .header-tools-v14{grid-area:tools!important}
}
@media(max-width:640px){
  .header-tools-v14{gap:6px}
  .language-picker-v14{height:40px;border-radius:13px;padding:0 6px 0 8px}
  .language-picker-v14 select{width:40px;font-size:12px}
  .sponsor-contact-v14{align-items:flex-start}
}


/* v15: admin login audit log */
.admin-login-log-v15{margin-top:18px}
.admin-log-stats-v15{grid-template-columns:repeat(4,minmax(0,1fr))}
.login-result-v15{display:inline-flex;align-items:center;justify-content:center;min-width:82px;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:1000}
.login-result-v15.ok{background:rgba(22,182,127,.14);color:var(--green-dark);border:1px solid rgba(22,182,127,.28)}
.login-result-v15.fail{background:rgba(226,65,83,.12);color:#c22f42;border:1px solid rgba(226,65,83,.24)}
.user-agent-v15{max-width:360px;white-space:normal;overflow-wrap:anywhere;font-size:11px;color:var(--muted)}
.admin-log-filters-v15{display:flex;gap:7px;flex-wrap:wrap}
.admin-log-filters-v15 .active{background:var(--text);color:var(--panel);border-color:var(--text)}
.admin-log-date-v15{font-size:16px!important;overflow-wrap:anywhere}
@media(max-width:1050px){.admin-log-stats-v15{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.admin-log-stats-v15{grid-template-columns:1fr}.admin-login-log-v15 .admin-section-head-v13{align-items:stretch;flex-direction:column}.admin-log-filters-v15{display:grid;grid-template-columns:repeat(3,1fr)}.admin-log-filters-v15 a{text-align:center;justify-content:center}}
