/* MALIK HEX — shared CPM2 Mini App identity, adapted for the existing UI. */
html:root, html:root[data-theme] {
  --bg:#090a0b; --surface:#141516; --surface2:#1d1e20;
  --hair:#35322c; --hair2:#645b48; --border:#35322c;
  --ink:#f4efe5; --ink-inv:#090a0b; --fg:#f4efe5;
  --sub:#c7beae; --muted:#a69d8f; --fg2:#c7beae; --fg3:#a69d8f;
  --brass:#d6b77a; --brass2:#f1d9a4; --brass-ink:#20190d;
  --accent:#d6b77a; --running:#d6b77a; --ring-bg:#343027;
  --icbg:#292319; --icring:rgba(214,183,122,.35);
  --sheet:#111213; --pop:#1b1c1d;
  --ok:#72e8b6; --success:#72e8b6; --bad:#ff8ca3; --danger:#ff8ca3;
  --warn:#f4cb7c; --info:#d6b77a;
  --ok-bg:#122b25; --bad-bg:#301822; --warn-bg:#2b2517; --info-bg:#292319;
  --tint:#29251d; --edge:rgba(214,183,122,.58); --vbg:#30291d;
  --glow:rgba(214,183,122,.2); --mesh1:rgba(214,183,122,.16);
  --mesh2:rgba(214,183,122,.08); --mesh3:rgba(160,132,83,.06);
  --ui:'Manrope',-apple-system,'Segoe UI',system-ui,sans-serif;
  --disp:'Georgia','Times New Roman',serif;
  --hex-spectrum:linear-gradient(110deg,#ad8547,#f1d9a4 48%,#c6a263);
  color-scheme:dark;
}
html {background-color:var(--bg)}
body {color:var(--ink);background-color:transparent}
.dashboard-head,.top {position:relative}
.dashboard-head::after,.top::after {
  content:'';position:absolute;bottom:-9px;left:0;right:0;height:1px;
  background:var(--hex-spectrum);opacity:.65;
}
.dashboard-copy h1,.hex-progress-brand strong {
  font-family:var(--disp);font-weight:700;letter-spacing:.025em;
  color:var(--ink);line-height:1.2;
}
.dashboard-copy h1 {font-size:clamp(25px,7vw,34px)}
.brand-mark {
  font-family:var(--disp);font-weight:700;color:#17130c;
  background:var(--hex-spectrum);border:0;box-shadow:0 0 28px -12px #d6b77a;
}
.svc-row.main {
  background:linear-gradient(165deg,#30281b,var(--surface) 75%) padding-box,
    var(--hex-spectrum) border-box;
}
.btn:not(.secondary):not(.danger):not(.outline):not(.quiet) {
  background:var(--hex-spectrum);color:#17130c;border-color:transparent;text-shadow:none;
}
.btn:disabled {opacity:.55}
.ic,.badge {color:var(--brass2)}
.hex-kicker {
  color:var(--brass2)!important;font:700 10px/1.5 var(--ui)!important;
  letter-spacing:.14em;margin:0 0 5px!important;
}
.hex-credit {margin:28px 0 0;padding:18px 8px 0;border-top:1px solid var(--hair);
  color:var(--sub);text-align:center;font:500 11px/1.7 var(--ui)}
.hex-credit strong {color:var(--brass2);font-weight:800;letter-spacing:.08em}
.hex-credit span {display:block;font-size:10px;letter-spacing:.12em;text-transform:uppercase}
.hex-owner-credit {margin:20px 0 12px;color:var(--sub);font:600 11px/1.5 var(--ui);letter-spacing:.06em}
.hex-progress-brand {display:flex;flex-direction:column;gap:5px;padding-bottom:14px;border-bottom:1px solid var(--border)}
.hex-progress-brand strong {font-size:22px}
.hex-progress-brand span {font:600 10px/1.4 var(--ui);color:var(--sub);letter-spacing:.12em}
:focus-visible {outline:2px solid var(--brass2);outline-offset:3px}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

/* Original CPM2 engine feature forms. */
.hex-form {display:flex;flex-direction:column;gap:14px;margin:18px 0}
.hex-form label {display:flex;flex-direction:column;gap:7px;font:600 13px/1.5 var(--ui);color:var(--sub)}
.hex-form input,.hex-form select {width:100%;min-height:46px;border:1px solid var(--hair2);border-radius:12px;padding:11px 12px;background:var(--surface);color:var(--ink);font:500 16px/1.4 var(--ui)}
.hex-form .btn,.hex-actions .btn {margin-top:0}
.hex-status {white-space:pre-wrap;overflow-wrap:anywhere;max-height:320px;overflow:auto;background:var(--surface);border:1px solid var(--hair);border-radius:14px;padding:14px;margin:16px 0;color:var(--sub);font:500 12px/1.7 var(--ui)}
.hex-actions {display:flex;flex-wrap:wrap;gap:10px}.hex-actions .btn {flex:1;min-width:130px;font-size:12px}
.hex-targets {display:flex;flex-direction:column;gap:8px}.hex-targets label{display:flex;flex-direction:row;align-items:center;border:1px solid var(--hair);padding:10px;border-radius:12px}
.hex-targets input {width:20px;min-height:20px;flex-shrink:0}

.hex-admin-dock {position:sticky;bottom:calc(10px + env(safe-area-inset-bottom,0px));z-index:5;margin:22px 0 0;padding:4px;border-radius:16px;background:var(--bg);box-shadow:0 8px 30px #0008}
.hex-admin-dock a {display:block;padding:14px;border-radius:12px;background:var(--hex-spectrum);color:#17130c;text-align:center;text-decoration:none;font:800 15px/1.4 var(--ui)}

/* Shared page structure and luxury glass surfaces. */
html {background:radial-gradient(ellipse at 15% 0%,#6d542133,transparent 55%),radial-gradient(ellipse at 100% 65%,#52432822,transparent 60%),#090a0b;background-attachment:fixed}
body {font-family:var(--ui);background:transparent}
.page {max-width:520px;padding-top:calc(28px + env(safe-area-inset-top,0px))}
.dashboard-head {padding-bottom:18px;margin-bottom:24px}.dashboard-head::after {background:linear-gradient(90deg,#d6b77a,transparent);opacity:.65}
.brand-mark {border-radius:16px;background:linear-gradient(145deg,#f1d9a4,#ad8547);box-shadow:0 8px 30px #b38c4b33}
.dashboard-copy .eyebrow {color:#d6b77a;letter-spacing:.2em;font-size:10px}.dashboard-copy h1 {font-size:30px}
.grp,.bal,.hex-tool-list,.hex-connected,.hex-login-card,.sec {backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
.hex-tool-list {display:flex;flex-direction:column;gap:0;background:linear-gradient(140deg,#6e583035,#23211b60);border:1px solid var(--hair2);border-radius:22px;overflow:hidden;box-shadow:0 18px 45px #0003,inset 0 1px 0 #fff1}
.hex-tool-list .svc-row,.hex-tool-list .svc-row.main {display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:14px;min-height:80px;padding:16px 18px;border:0;border-radius:0;background:transparent;box-shadow:none;width:100%;transform:none}
.hex-tool-list .svc-row+.svc-row {border-top:1px solid var(--hair)}
.hex-tool-list .svc-row:active {background:#d6b77a14}.hex-tool-list .svc-row .tx {flex:1}.hex-tool-list .tx b {font:700 15px/1.4 var(--ui)}.hex-tool-list .tx small {font-size:12px;color:var(--sub)}
.hex-tool-list .svc-row .ic {width:38px;height:38px;flex-shrink:0;background:#d6b77a12;box-shadow:none;border:1px solid #d6b77a20;border-radius:12px}
.hex-tool-list .chev {position:static;margin-left:auto;color:var(--brass)}.hex-tool-list .pill {position:static;white-space:nowrap;font-size:10px;order:3}
.hex-connected {display:flex;align-items:center;gap:12px;padding:15px 14px;margin:10px 0 14px;border:1px solid var(--hair);border-radius:17px;background:var(--surface)}
.hex-connected>div {min-width:0;flex:1}.hex-connected small {display:block;font:700 9px/1.4 var(--ui);letter-spacing:.16em;color:var(--sub)}.hex-connected b {display:block;margin-top:4px;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hex-connected-dot {width:8px;height:8px;border-radius:50%;background:#87dfb5;box-shadow:0 0 12px #87dfb544;flex:none}.hex-logout {border:1px solid var(--hair2);border-radius:9px;background:transparent;color:var(--sub);font:600 11px var(--ui);padding:9px;cursor:pointer}
.hex-account-details {margin:8px 0 16px}.hex-account-details summary {cursor:pointer;font:600 12px/1.6 var(--ui);color:var(--sub);padding:6px 0}.hex-account-details[open] summary {margin-bottom:10px}
.btn:not(.secondary):not(.danger):not(.outline):not(.quiet) {background:var(--hex-spectrum);box-shadow:0 8px 24px #b38c4b22;border-radius:13px}.btn.quiet {background:#d6b77a11;color:var(--brass2);border:1px solid var(--hair2);box-shadow:none}
.vip-btn.selected::after {background:linear-gradient(135deg,#f1d9a4,#b38c4b)}
.hex-admin-dock {background:#141516d9;backdrop-filter:blur(20px)}.hex-admin-dock a {background:#d6b77a12;color:var(--brass2);border:1px solid var(--hair2)}
.hex-login-body {margin:0;min-height:100dvh;display:grid;place-items:center;padding:calc(28px + env(safe-area-inset-top,0px)) 20px;box-sizing:border-box}
.hex-login-card {box-sizing:border-box;width:min(100%,420px);padding:30px 24px;background:linear-gradient(145deg,#6e583035,#23211b88);border:1px solid var(--hair2);border-radius:28px;box-shadow:0 30px 70px #0005,inset 0 1px 0 #fff1;color:var(--ink)}
.hex-login-wordmark {font:700 17px/1.3 var(--disp);letter-spacing:.08em}.hex-login-wordmark>span {color:var(--brass)}.hex-login-wordmark small {display:block;font:700 8px/1.4 var(--ui);letter-spacing:.25em;color:var(--muted);margin-top:6px}
.hex-login-symbol {display:grid;place-items:center;width:70px;height:70px;border:1px solid #f1d9a444;border-radius:22px;margin:36px 0 22px;color:var(--brass2);background:linear-gradient(140deg,#f1d9a422,#d6b77a11);font:700 25px var(--disp);box-shadow:0 10px 30px #ad854720}
.hex-login-eyebrow {font:700 9px/1.5 var(--ui);letter-spacing:.17em;color:var(--brass2)}.hex-login-card h1 {font:700 30px/1.2 var(--ui);margin:8px 0 12px;letter-spacing:-.035em}.hex-login-intro {font:400 13px/1.7 var(--ui);color:var(--sub);margin:0 0 22px}
.hex-login-card .hex-form label {font-size:11px}.hex-login-card .hex-form input {box-sizing:border-box;background:#111213aa;min-height:50px;border-color:var(--hair2);font-size:14px}
.hex-primary {display:flex;align-items:center;justify-content:space-between;min-height:50px;padding:0 17px;border:0;border-radius:13px;background:var(--hex-spectrum);color:#20190d;font:800 13px var(--ui);cursor:pointer;margin-top:6px;box-shadow:0 10px 24px #b38c4b22}.hex-primary:disabled {opacity:.6;cursor:wait}
.hex-login-message {font:500 11px/1.7 var(--ui);color:var(--sub);min-height:36px}.hex-login-credit {margin-top:24px;padding-top:18px;border-top:1px solid var(--hair);font:500 10px/1.7 var(--ui);color:var(--muted);text-align:center}.hex-login-credit strong {color:var(--brass2);letter-spacing:.06em}
.hex-login-admin {display:block;margin-top:14px;padding:12px;border:1px solid var(--hair2);border-radius:12px;color:var(--brass2);text-align:center;text-decoration:none;font:700 12px var(--ui)}.hex-login-admin[hidden] {display:none!important}
@media(max-width:360px){.hex-login-card{padding:24px 18px}.hex-tool-list .svc-row{padding:14px 13px}.dashboard-copy h1{font-size:26px}}
.hex-live-banner{display:flex;justify-content:space-between;align-items:center;color:var(--brass2);font:800 10px/1.5 var(--ui);letter-spacing:.1em;margin:20px 0 10px}.hex-live-banner span{display:flex;align-items:center;gap:7px}.hex-live-banner i{width:6px;height:6px;border-radius:50%;background:#d6b77a;box-shadow:0 0 8px #d6b77a88}.hex-live-banner b{font-size:14px;letter-spacing:0}
#hexCreateProgress{display:block;width:100%;height:7px;appearance:none;border:0;border-radius:99px;overflow:hidden;background:#d6b77a18}#hexCreateProgress::-webkit-progress-bar{background:#d6b77a18}#hexCreateProgress::-webkit-progress-value{background:var(--hex-spectrum);border-radius:99px}#hexCreateProgress::-moz-progress-bar{background:#d6b77a;border-radius:99px}.hex-release{display:block;margin-top:6px;color:var(--brass2);font-size:10px;letter-spacing:.06em}

/* Champagne / obsidian luxury finish. Keep the shared, accessible UI controls. */
body {background-image:radial-gradient(ellipse at 80% 0,rgba(214,183,122,.075),transparent 48%)}
.svc-row {border:1px solid var(--hair);border-radius:18px;background:linear-gradient(145deg,#1b1b1a,#111213);box-shadow:0 8px 24px #0002}
.svc-row:hover {border-color:var(--brass);transform:translateY(-1px)}
.svc-row .tx b {font-weight:600;letter-spacing:.01em}
.ph h1,.brand h1 {font-family:var(--disp);font-weight:500;letter-spacing:.02em}
.btn {border-radius:12px;min-height:46px;letter-spacing:.02em}
input,select,textarea {accent-color:var(--brass)}
button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible {outline:2px solid var(--brass2);outline-offset:3px}
.hex-status {border:1px solid var(--hair);border-radius:12px;background:#101112;padding:16px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
