:root{color-scheme:dark;--bg:#0b0e14;--panel:#151a24;--line:#293142;--text:#edf1f8;--muted:#9aa5b8;--accent:#8b9cff;--danger:#d96b76}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% -20%,#202a48 0,transparent 55%),var(--bg);font:15px/1.55 system-ui,-apple-system,Segoe UI,sans-serif;color:var(--text)}.shell{width:min(920px,calc(100% - 32px));margin:0 auto;min-height:100vh;display:flex;flex-direction:column}header,.brand,.status,.phone,.welcome,.tabs,.actions,.metrics{display:flex;align-items:center}header{justify-content:space-between;padding:24px 0;border-bottom:1px solid var(--line)}.brand{gap:12px}.brand b{display:block;letter-spacing:.12em}.brand small,.footnote,small{color:var(--muted)}.mark{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(135deg,#6c7eff,#9e73db);font-weight:800;font-size:22px}.status{gap:8px;color:var(--muted);font-size:12px}.status i{width:7px;height:7px;border-radius:50%;background:#64d7a2}.card{background:linear-gradient(145deg,#171d29,#111620);border:1px solid var(--line);border-radius:18px;padding:26px;box-shadow:0 18px 60px #0003}.login{width:min(460px,100%);margin:9vh auto 30px}.eyebrow{font-size:11px;letter-spacing:.16em;color:var(--accent);font-weight:700}h1{font-size:clamp(28px,5vw,38px);line-height:1.15;margin:10px 0}h2{margin:0 0 10px;font-size:21px}p{color:var(--muted)}label{display:block;margin:20px 0 7px;font-size:13px;color:#cbd3e1}.phone{gap:10px;border:1px solid var(--line);border-radius:10px;padding:0 12px}.phone span{color:var(--muted)}input{width:100%;background:#0d121b;color:var(--text);border:1px solid var(--line);border-radius:10px;padding:13px;font:inherit;outline:none}.phone input{border:0;padding-left:0}input:focus{border-color:var(--accent)}button{border:0;border-radius:10px;padding:12px 16px;background:var(--accent);color:#101522;font:600 14px system-ui;cursor:pointer;margin-top:14px}button:disabled{opacity:.5;cursor:wait}.login>button,#otpArea button{width:100%}.secondary{background:#242d40;color:var(--text)}.danger{background:#4b252d;color:#ffdce0}.otp{letter-spacing:.35em;text-align:center;font-size:22px}.notice{min-height:24px;margin-top:12px;color:#f0c27c;font-size:13px}.footnote{display:block;margin-top:10px;font-size:12px}.hidden{display:none!important}.welcome{justify-content:space-between;margin:34px 0 20px}.welcome h1{margin:4px 0}.welcome p{margin:0}.tabs{gap:8px;flex-wrap:wrap;margin-bottom:14px}.tab{background:transparent;color:var(--muted);border:1px solid var(--line);margin:0}.tab.active{background:#293451;color:white;border-color:#596b9b}.panel{margin-bottom:30px}.metrics{gap:12px;flex-wrap:wrap;margin-top:24px}.metrics div{flex:1;min-width:120px;background:#0e1420;padding:14px;border:1px solid var(--line);border-radius:12px}.metrics small,.metrics b{display:block}.metrics b{margin-top:4px}.actions{gap:8px;flex-wrap:wrap}pre{white-space:pre-wrap;background:#0d121b;padding:14px;border-radius:10px;color:#c9d4ed;min-height:55px}.hint{font-size:12px}footer{margin-top:auto;text-align:center;padding:24px 0;color:#687489;font-size:12px}@media(max-width:560px){header{padding:18px 0}.status{font-size:0}.status i{width:8px;height:8px}.card{padding:20px}.welcome{align-items:flex-start}.tabs{display:grid;grid-template-columns:1fr 1fr}.tab{font-size:12px;padding:10px 6px}}

textarea{width:100%;min-height:150px;resize:vertical;background:#0e121b;color:inherit;border:1px solid #343c4d;border-radius:12px;padding:12px;font:inherit}
hr{border:0;border-top:1px solid #303747;margin:22px 0}
h3{margin:12px 0 8px}
.actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}
.actions button{flex:1 1 140px}
.pair-code{font-size:25px;font-weight:800;letter-spacing:.14em;text-align:center;padding:18px;border-radius:12px;background:#0b1019;color:#e7edf9}
.list{display:grid;gap:10px;margin-top:14px}
.license-row{display:grid;gap:4px;padding:12px;border:1px solid #343c4d;border-radius:12px}
.license-row small,.hint{color:#9ca8ba}


/* RADIT BOT WHATSAPP Customer Bot UI */
.pairing-panel{margin:22px 0;padding:18px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(145deg,#171f30,#101722)}
.pairing-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.pairing-heading h3{margin:5px 0}
.pairing-badge{display:inline-block;padding:6px 10px;border-radius:20px;background:#293451;color:#dce5ff;font-size:12px}
.pairing-badge[data-state="connected"],.pairing-badge[data-state="running"]{background:#173b32;color:#a7f0cf}
.pairing-badge[data-state="failed"]{background:#4b252d;color:#ffdce0}
.pairing-code-card{margin-top:16px;padding:18px;text-align:center;border:1px solid var(--line);border-radius:13px;background:#0b1019}
.pairing-code-card>small{letter-spacing:.12em;font-weight:700}
.pairing-code-card .pair-code{margin:12px 0;overflow-wrap:anywhere}
.pairing-code-card button{min-width:140px}
.pairing-steps{margin-top:16px;padding:14px;border-radius:12px;background:#111a28;font-size:13px}
.pairing-steps ol{padding-left:22px}
.pairing-steps li{margin:5px 0}
.pairing-steps small{color:var(--muted)}
.log-title{margin-top:26px}
.log-table-wrap{width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:12px}
.customer-log-table{width:100%;border-collapse:collapse;font-size:12px;min-width:480px}
.customer-log-table th,.customer-log-table td{padding:11px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.customer-log-table th{color:#cbd3e1;background:#111a28;white-space:nowrap}
.customer-log-table td:first-child{color:var(--muted);white-space:nowrap}
.customer-log-table td:nth-child(2){color:#aebcff;white-space:nowrap;font-weight:700}
.customer-log-table tr:last-child td{border-bottom:0}
@media(max-width:560px){.pairing-panel{padding:14px}.pairing-code-card{padding:12px}}


/* ===== RADIT BOT WHATSAPP · SERVER ORDER UI REFRESH ===== */
#customerPurchase{--ui-line:#303b50;--ui-muted:#9ba9bf}
#customerPurchase>h3{font-size:21px;letter-spacing:-.02em;margin:18px 0 6px}
#customerPurchase>p.hint{max-width:680px;line-height:1.7;margin:0 0 18px}
#customerPurchase label{font-size:12px;font-weight:650;letter-spacing:.025em;color:#cbd6e8;margin:18px 0 8px}
#customerPurchase input:not([type=file]),#customerPurchase select{
 width:100%;min-height:48px;padding:12px 14px;border:1px solid #344158;border-radius:12px;
 background:linear-gradient(180deg,#111a29,#0d1420);color:#f0f4fc;font:500 14px system-ui;
 outline:none;box-shadow:inset 0 1px 0 #ffffff08;transition:border-color .18s,box-shadow .18s
}
#customerPurchase input:focus,#customerPurchase select:focus{border-color:#8298ff;box-shadow:0 0 0 3px #8298ff20}
#customerPurchase select{appearance:none;padding-right:44px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ba9bf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 15px center}
#customerPurchase select option{background:#111a29;color:#f0f4fc}
#customerPurchase input[type=file]{display:block;width:100%;padding:12px;border:1px dashed #465570;border-radius:12px;background:#0e1624;color:#aebbd0;font-size:12px}
#customerPurchase label:has(#serverUnlimited){display:flex;align-items:center;gap:13px;margin:22px 0 8px;padding:16px;border:1px solid #596ba0;border-radius:14px;background:linear-gradient(110deg,#202e4b,#151e30);color:#e7edff;font-size:13px;line-height:1.5}
#customerPurchase #serverUnlimited{appearance:none;flex:0 0 21px;width:21px;height:21px;min-height:21px;margin:0;border:1px solid #7284b7;border-radius:6px;background:#0d1524;cursor:pointer;position:relative}
#customerPurchase #serverUnlimited:checked{background:#8298ff;border-color:#8298ff}
#customerPurchase #serverUnlimited:checked:after{content:"✓";position:absolute;inset:0;display:grid;place-items:center;color:#101727;font-weight:900}
#customerPurchase #currentServerInfo,#customerPurchase #apiKeyInfo{padding:13px 15px;border:1px solid #303e56;border-radius:12px;background:#101a29;color:#b8c6dc;line-height:1.65}
#customerPurchase #serverPrice{margin:20px 0 14px;padding:18px;border:1px solid #596ba0;border-radius:15px;background:linear-gradient(125deg,#202f50,#172238);color:#eaf0ff;font-size:16px;font-weight:750;line-height:1.6}
#customerPurchase #purchaseQris{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:100px;padding:20px;margin:14px 0;border:1px solid #303e56;border-radius:16px;background:linear-gradient(145deg,#121d2d,#0d1420);color:#aebbd0;text-align:center}
#customerPurchase #purchaseQris img{display:block;width:min(280px,100%);max-height:360px;object-fit:contain;padding:10px;border-radius:14px;background:#fff;box-shadow:0 12px 34px #0005}
#customerPurchase #submitPayment{width:100%;min-height:50px;margin:14px 0 4px;border-radius:12px;background:linear-gradient(110deg,#8298ff,#a88bff);color:#101626;font-size:14px;font-weight:800;box-shadow:0 8px 24px #8298ff25}
#customerPurchase #submitPayment:disabled{filter:grayscale(.5);box-shadow:none}
#customerPurchase #saveCustomerBotApiKey{width:100%;min-height:46px;margin-top:10px}
#customerPurchase #serverOrderType{margin-bottom:5px}
#customerPurchase #proofFile{margin-top:3px}
#customerPurchase #purchaseResult{padding:0 2px;line-height:1.65}
#customerPurchase .list{margin-top:12px}
#customerPurchase .license-row{padding:15px;border-color:#303d53;background:#101827;border-radius:13px}
#customerPurchase .license-row b{overflow-wrap:anywhere;color:#e7edff}
#customerPurchase .license-row small{line-height:1.6}
#customerPurchase hr{margin:24px 0;border-color:#2c374a}
@media(min-width:680px){
 #customerPurchase{padding:30px}
 #customerPurchase #serverRam,#customerPurchase #serverStorage,#customerPurchase #serverDuration{max-width:100%}
}
@media(max-width:560px){
 #customerPurchase{padding:18px}
 #customerPurchase>h3{font-size:19px}
 #customerPurchase label{margin-top:16px}
 #customerPurchase #serverPrice{font-size:15px;padding:16px}
 #customerPurchase #purchaseQris{padding:14px}
 #customerPurchase #purchaseQris img{width:min(250px,100%);max-height:320px}
}
