:root{--bg:#070707;--panel:#101010;--panel2:#151515;--gold:#d4af37;--gold2:#f5d66f;--text:#fff;--muted:#969696;--line:#292929;--radius:20px}*{box-sizing:border-box}html{background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif}body{margin:0;background:radial-gradient(circle at 85% 10%,rgba(212,175,55,.08),transparent 28%),var(--bg)}a{color:inherit;text-decoration:none}.app-shell{display:flex;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:250px;border-right:1px solid var(--line);background:rgba(9,9,9,.96);padding:24px 18px;z-index:30;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;padding:0 8px 28px}.brand-mark{width:42px;height:42px;border:1px solid var(--gold);border-radius:50%;display:grid;place-items:center;color:var(--gold2);font-weight:900;box-shadow:0 0 30px rgba(212,175,55,.14)}.brand strong{letter-spacing:.15em}.brand small{display:block;color:var(--muted);font-size:11px;letter-spacing:.22em;margin-top:4px}.sidebar nav{display:grid;gap:7px}.sidebar nav a{padding:13px 14px;border-radius:12px;color:#aaa;display:flex;gap:12px;align-items:center}.sidebar nav a:hover,.sidebar nav a.active{background:linear-gradient(90deg,rgba(212,175,55,.16),rgba(212,175,55,.03));color:#fff;border:1px solid rgba(212,175,55,.15)}.sidebar nav span{color:var(--gold)}.sidebar-foot{margin-top:auto;color:var(--muted);font-size:13px;padding:12px}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--gold);box-shadow:0 0 12px var(--gold);margin-right:8px}.main{margin-left:250px;width:calc(100% - 250px);padding:0 32px 28px;max-width:1700px}.topbar{height:92px;display:flex;align-items:center;justify-content:space-between}.topbar h1{font-size:20px;margin:2px 0 0}.eyebrow{margin:0;color:var(--gold);font-size:12px;font-weight:800;letter-spacing:.22em}.top-actions{display:flex;align-items:center;gap:10px}.icon-btn,.avatar{width:42px;height:42px;border-radius:12px;border:1px solid var(--line);background:#111;color:#fff;display:grid;place-items:center}.avatar{border-color:rgba(212,175,55,.35);color:var(--gold2);font-size:13px;font-weight:800}.menu-btn{display:none}.hero-card{min-height:340px;border:1px solid rgba(212,175,55,.2);border-radius:28px;padding:52px;display:flex;align-items:center;justify-content:space-between;overflow:hidden;background:linear-gradient(125deg,#111 0%,#0b0b0b 62%,#151106 100%);position:relative}.hero-card:after{content:"";position:absolute;inset:auto -90px -170px auto;width:430px;height:430px;border-radius:50%;background:rgba(212,175,55,.045)}.pill,.badge{font-size:11px;letter-spacing:.14em;font-weight:900;color:var(--gold2);border:1px solid rgba(212,175,55,.27);background:rgba(212,175,55,.07);padding:8px 10px;border-radius:999px}.hero-card h2{font-size:clamp(32px,4.2vw,65px);line-height:.99;letter-spacing:-.045em;margin:22px 0 18px;max-width:760px}.hero-card h2 em{font-style:normal;color:var(--gold2)}.hero-card p{color:#aaa;max-width:580px;line-height:1.7}.hero-actions{display:flex;gap:10px;margin-top:28px}.btn{padding:12px 17px;border-radius:11px;border:1px solid var(--line);font-size:13px;font-weight:800}.btn.gold{background:linear-gradient(135deg,var(--gold2),#b88a12);color:#111;border:0}.btn.ghost{background:#111;color:#ddd}.btn.small{padding:9px 12px}.coin-orbit{width:255px;height:255px;position:relative;display:grid;place-items:center;flex:0 0 300px}.coin{width:88px;height:88px;border-radius:50%;border:1px solid var(--gold);display:grid;place-items:center;font-size:38px;color:var(--gold2);background:#0b0b0b;box-shadow:0 0 60px rgba(212,175,55,.16)}.orbit{position:absolute;border:1px solid rgba(212,175,55,.18);border-radius:50%}.orbit-a{width:180px;height:180px;animation:spin 11s linear infinite}.orbit-a:before{content:"";position:absolute;top:-5px;left:50%;width:9px;height:9px;background:var(--gold);border-radius:50%;box-shadow:0 0 14px var(--gold)}.orbit-b{width:245px;height:245px;border-style:dashed;animation:spin 18s linear infinite reverse}@keyframes spin{to{transform:rotate(360deg)}}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:16px 0 34px}.stats-grid article,.module-card,.rule-grid>div,.wallet-demo article{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:20px}.stats-grid span,.wallet-demo span{font-size:11px;color:var(--muted);font-weight:800;letter-spacing:.13em}.stats-grid b,.wallet-demo b{display:block;font-size:25px;margin:8px 0}.stats-grid small,.wallet-demo small{color:#747474}.section{margin:34px 0}.section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:16px}.section h3{font-size:24px;margin:6px 0 0}.module-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.module-card{display:grid;grid-template-columns:46px 1fr auto;gap:14px;align-items:center}.module-icon{width:46px;height:46px;border-radius:13px;background:rgba(212,175,55,.08);color:var(--gold2);display:grid;place-items:center;border:1px solid rgba(212,175,55,.15)}.module-card h4,.rule-grid h4{margin:0 0 6px}.module-card p,.rule-grid p{margin:0;color:var(--muted);font-size:13px;line-height:1.55}.badge.muted{color:#888;border-color:#333;background:#151515}.dashed{border-style:dashed}.rule-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.rule-grid b{color:var(--gold);font-size:12px}footer{border-top:1px solid var(--line);padding:25px 0;color:#666;font-size:12px;display:flex;justify-content:space-between}.overlay{display:none}.standalone{max-width:1000px;margin:auto;padding:60px 24px}.standalone h1{font-size:56px;margin:8px 0}.back{color:var(--gold);font-size:13px}.wallet-demo{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:30px}code{color:var(--gold2)}
@media(max-width:1100px){.stats-grid,.rule-grid{grid-template-columns:1fr 1fr}.module-grid{grid-template-columns:1fr 1fr}.coin-orbit{width:210px;flex-basis:220px}.hero-card{padding:38px}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:.25s}.sidebar.open{transform:none}.main{margin-left:0;width:100%;padding:0 16px 22px}.menu-btn{display:grid}.topbar{height:76px}.topbar>div:nth-child(2){margin-right:auto;margin-left:10px}.topbar h1{font-size:15px}.top-actions .icon-btn{display:none}.hero-card{padding:28px 22px 30px;min-height:auto;display:block}.hero-card h2{font-size:39px}.hero-card p{font-size:14px}.coin-orbit{width:185px;height:185px;margin:30px auto 0}.orbit-a{width:130px;height:130px}.orbit-b{width:180px;height:180px}.coin{width:70px;height:70px;font-size:30px}.stats-grid,.module-grid,.rule-grid,.wallet-demo{grid-template-columns:1fr}.stats-grid{gap:10px}.module-card{grid-template-columns:44px 1fr auto}.section-head{align-items:center}.section h3{font-size:20px}footer{display:block;line-height:1.8}.overlay{position:fixed;inset:0;background:rgba(0,0,0,.65);z-index:20}.overlay.show{display:block}.standalone{padding-top:35px}.standalone h1{font-size:42px}}
/* Admin module manager */
.admin-hero{border:1px solid rgba(212,175,55,.2);border-radius:24px;padding:30px 32px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(120deg,#111,#0b0b0b 70%,#181204)}.admin-hero h2{font-size:34px;margin:16px 0 8px}.admin-hero p,.lead-muted{color:var(--muted);line-height:1.6}.admin-score{min-width:150px;text-align:center;border-left:1px solid var(--line);padding-left:28px}.admin-score b{font-size:48px;color:var(--gold2);display:block}.admin-score span,.admin-score small{display:block;font-size:11px;letter-spacing:.16em;color:var(--muted);margin-top:5px}.flash{margin:16px 0;padding:13px 15px;border-radius:12px;border:1px solid var(--line);font-size:13px}.flash-ok{background:#10170f;border-color:#24341f}.flash-error{background:#1b1010;border-color:#472222}.admin-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.admin-module-card{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:20px}.module-card-top{display:flex;gap:14px;align-items:flex-start}.grow{flex:1;min-width:0}.module-title-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.module-title-row h4{font-size:17px;margin:2px 0 7px}.admin-module-card p{font-size:13px;color:var(--muted);margin:0;line-height:1.55}.module-meta{display:flex;flex-wrap:wrap;gap:8px;margin:17px 0 14px}.module-meta span{font-size:11px;color:#aaa;background:#151515;border:1px solid #292929;border-radius:999px;padding:6px 8px}.module-actions{display:flex;flex-wrap:wrap;gap:8px}.module-actions form{margin:0}.safety-strip{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#0e0e0e}.safety-strip div{padding:18px;border-right:1px solid var(--line);display:flex;gap:10px;align-items:center}.safety-strip div:last-child{border-right:0}.safety-strip b{color:var(--gold);font-size:12px}.safety-strip span{font-size:12px;color:#aaa}.wide{max-width:1150px}.preview-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:24px 0}.preview-grid article{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:20px}.preview-grid span{font-size:11px;color:var(--muted);letter-spacing:.12em}.preview-grid b{display:block;font-size:25px;margin-top:8px}.preview-panel,.danger-zone{border:1px solid var(--line);background:var(--panel);border-radius:18px;padding:22px;margin:18px 0}.preview-panel h3,.danger-zone h3{margin:0 0 12px}.token-row{display:flex;gap:8px;flex-wrap:wrap}.token-row code{background:#0b0b0b;border:1px solid #2e2917;padding:8px 10px;border-radius:8px}.danger-zone{display:flex;justify-content:space-between;align-items:center;gap:20px;border-color:#4a2525}.danger-zone p{color:var(--muted);font-size:13px;max-width:650px}.danger-actions{display:flex;gap:8px;flex-wrap:wrap}.btn.danger{background:#351414;border-color:#6a2626;color:#ffd7d7}
@media(max-width:900px){.admin-module-grid{grid-template-columns:1fr}.preview-grid,.safety-strip{grid-template-columns:1fr 1fr}.danger-zone{display:block}.danger-actions{margin-top:16px}}
@media(max-width:600px){.admin-hero{padding:24px 20px;display:block}.admin-hero h2{font-size:26px}.admin-score{border-left:0;border-top:1px solid var(--line);padding:18px 0 0;margin-top:20px;text-align:left}.admin-score b{font-size:34px}.preview-grid,.safety-strip{grid-template-columns:1fr}.safety-strip div{border-right:0;border-bottom:1px solid var(--line)}.module-title-row{align-items:flex-start}.module-actions .btn{padding:9px 10px}.standalone.wide h1{font-size:36px}.danger-actions{display:grid}.danger-actions form,.danger-actions button{width:100%}}
/* V3 package installer */
.package-panel{border:1px solid rgba(212,175,55,.17);background:linear-gradient(135deg,#0e0e0e,#0a0a0a);border-radius:20px;padding:22px}.package-upload{display:grid;grid-template-columns:minmax(260px,1fr) auto auto;gap:12px;align-items:center}.drop-zone{min-height:92px;border:1px dashed #51431d;border-radius:16px;padding:16px;display:grid;grid-template-columns:44px 1fr;column-gap:12px;align-items:center;background:#0b0b0b;cursor:pointer}.drop-zone:hover{border-color:var(--gold)}.drop-zone .drop-icon{grid-row:1/3;width:44px;height:44px;border:1px solid rgba(212,175,55,.25);border-radius:12px;display:grid;place-items:center;color:var(--gold2)}.drop-zone b{font-size:14px}.drop-zone small{color:var(--muted);font-size:12px;margin-top:5px}.drop-zone input{grid-column:2;font-size:12px;color:#aaa;margin-top:6px;max-width:100%}.check-row{display:flex;gap:8px;align-items:center;color:#aaa;font-size:12px;max-width:180px}.check-row input{accent-color:var(--gold)}.package-rules{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.package-rules span{font-size:11px;color:#9d9d9d;border:1px solid #282828;padding:6px 8px;border-radius:999px;background:#111}
@media(max-width:980px){.package-upload{grid-template-columns:1fr 1fr}.drop-zone{grid-column:1/-1}}
@media(max-width:600px){.package-panel{padding:17px}.package-upload{grid-template-columns:1fr}.drop-zone{grid-column:auto}.check-row{max-width:none}.package-upload>.btn{width:100%}}
/* V4 authentication */
.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 50% 0,rgba(212,175,55,.10),transparent 34%)}.auth-card{width:min(100%,460px);background:#0e0e0e;border:1px solid rgba(212,175,55,.24);border-radius:26px;padding:34px;box-shadow:0 30px 90px rgba(0,0,0,.45)}.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:28px}.auth-brand small{display:block;color:var(--muted);font-size:11px;letter-spacing:.2em;margin-top:3px}.auth-card h1{font-size:36px;margin:20px 0 8px}.auth-card>p{color:var(--muted);margin:0 0 22px}.auth-form{display:grid;gap:15px}.auth-form label{font-size:12px;color:#aaa}.auth-form input{width:100%;margin-top:7px;background:#080808;border:1px solid #303030;border-radius:12px;padding:14px;color:#fff;outline:none}.auth-form input:focus{border-color:var(--gold)}.auth-form .btn{margin-top:4px;font-size:14px}.auth-foot{display:flex;gap:7px;flex-wrap:wrap;margin-top:22px}.auth-foot span{font-size:11px;color:#888;border:1px solid #272727;border-radius:999px;padding:6px 8px}@media(max-width:520px){.auth-card{padding:25px 20px}.auth-card h1{font-size:30px}}

/* =========================================================
   V25.20 — ALLANDRICH BLACK / GOLD / WHITE CRYPTO UI
   Framework-wide visual layer. No business logic changes.
   ========================================================= */
:root{
  --ar-bg:#050505;
  --ar-bg-soft:#090909;
  --ar-surface:#0d0d0d;
  --ar-surface-2:#121212;
  --ar-surface-3:#17140b;
  --ar-gold:#d9b74a;
  --ar-gold-bright:#f1d56d;
  --ar-gold-deep:#9f7812;
  --ar-white:#fff;
  --ar-text:#f5f5f5;
  --ar-muted:#989898;
  --ar-line:#2b281f;
  --ar-line-gold:#55451b;
  --ar-success:#91dc98;
  --ar-danger:#ffabab;
  --ar-warning:#efcf72;
  --ar-radius-xs:9px;
  --ar-radius-sm:12px;
  --ar-radius-md:16px;
  --ar-radius-lg:22px;
  --ar-radius-xl:28px;
  --ar-shadow:0 22px 70px rgba(0,0,0,.38);
  --ar-glow:0 0 28px rgba(217,183,74,.12);
}
html{color-scheme:dark;scroll-behavior:smooth}
body{
  background:
    radial-gradient(circle at 82% -8%,rgba(217,183,74,.12),transparent 27%),
    radial-gradient(circle at -8% 38%,rgba(217,183,74,.045),transparent 22%),
    var(--ar-bg)!important;
  color:var(--ar-text)!important;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  -webkit-font-smoothing:antialiased;
}
::selection{background:rgba(241,213,109,.28);color:#fff}
a{transition:color .18s ease,border-color .18s ease,background .18s ease,transform .18s ease}
button,input,select,textarea{font:inherit}
input,select,textarea{
  background:#080808!important;
  color:#fff!important;
  border:1px solid #343434!important;
  border-radius:11px!important;
  outline:none;
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
input:focus,select:focus,textarea:focus{
  border-color:var(--ar-gold)!important;
  box-shadow:0 0 0 3px rgba(217,183,74,.08)!important;
}
input::placeholder,textarea::placeholder{color:#666}
button,.btn{
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease!important;
}
button:hover,.btn:hover{transform:translateY(-1px)}
.btn{
  border:1px solid var(--ar-line-gold)!important;
  background:linear-gradient(180deg,#121212,#0c0c0c)!important;
  color:var(--ar-gold-bright)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
.btn.gold,.btn.primary,.btn[type=submit]:not(.danger){
  background:linear-gradient(135deg,var(--ar-gold-bright),#bc8f18)!important;
  border-color:transparent!important;
  color:#090909!important;
  font-weight:900!important;
  box-shadow:0 8px 24px rgba(184,139,20,.18);
}
.btn.danger{background:#210f0f!important;border-color:#693434!important;color:#ffb5b5!important}
.panel,.card,.c,.wallet-card,.deposit-card,.admin-module-card,.package-panel,.auth-card,.preview-panel{
  background:
    linear-gradient(145deg,rgba(255,255,255,.018),rgba(255,255,255,0)),
    var(--ar-surface)!important;
  border-color:var(--ar-line)!important;
  box-shadow:var(--ar-shadow);
}
.panel:hover,.card:hover,.wallet-card:hover,.admin-module-card:hover{
  border-color:#3b3421!important;
}
.brand,.eyebrow,.gold,.wallet-type,.dep-eyebrow{
  color:var(--ar-gold-bright)!important;
}
.muted,.help,.refresh-note,.mini{color:var(--ar-muted)!important}
h1,h2,h3,h4,h5,h6{color:#fff;letter-spacing:-.025em}
table,.table,.t{border-collapse:separate!important;border-spacing:0!important;width:100%}
.table th,.t th,table th{
  color:#a8a8a8!important;
  font-size:12px!important;
  letter-spacing:.09em;
  text-transform:uppercase;
  background:#0a0a0a;
  border-bottom:1px solid #38301b!important;
}
.table td,.t td,table td{border-bottom:1px solid #202020!important}
.table tr:hover td,.t tr:hover td{background:rgba(217,183,74,.025)}
.badge,.pill,.status{
  border-radius:999px!important;
  font-weight:800!important;
  letter-spacing:.045em;
}
.badge.completed,.pill.completed,.status.completed,.ok{color:var(--ar-success)!important}
.badge.pending,.pill.pending,.status.pending,.pending{color:var(--ar-warning)!important}
.badge.failed,.pill.bad,.status.failed,.bad{color:var(--ar-danger)!important}
.admin-tabs,.tabs{
  scrollbar-width:none;
}
.admin-tabs::-webkit-scrollbar,.tabs::-webkit-scrollbar{display:none}
.admin-tabs a,.tabs .tab{
  background:#0c0c0c!important;
  border:1px solid #302b20!important;
  color:#b2a98a!important;
}
.admin-tabs a:hover,.tabs .tab:hover,.tabs .tab.active{
  border-color:var(--ar-gold)!important;
  color:var(--ar-gold-bright)!important;
  background:linear-gradient(180deg,#171207,#0e0d09)!important;
}
.flash{box-shadow:0 12px 28px rgba(0,0,0,.24)}
.addr,.memo,.tx-ref,.tx{font-variant-numeric:tabular-nums}
.wrap,.table-wrap{border-radius:12px}
.status-dot,.dot{box-shadow:0 0 11px currentColor}
hr{border:0;border-top:1px solid var(--ar-line)}
/* Product-shell helpers */
.ar-page-shell{max-width:1420px;margin:auto;padding:18px 22px 34px}
.ar-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
.ar-page-head h1{font-size:clamp(28px,4vw,46px);margin:4px 0 4px}
.ar-kicker{font-size:12px;letter-spacing:.18em;font-weight:900;color:var(--ar-gold-bright)}
.ar-page-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.ar-grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.ar-stat{background:linear-gradient(145deg,#101010,#090909);border:1px solid var(--ar-line);border-radius:16px;padding:15px}
.ar-stat span{display:block;color:#777;font-size:11px;letter-spacing:.11em;text-transform:uppercase}
.ar-stat strong{display:block;color:var(--ar-gold-bright);font-size:24px;margin-top:6px}
.ar-mobile-nav{display:none}
@media(max-width:980px){
  .ar-grid-4{grid-template-columns:1fr 1fr}
}
@media(max-width:680px){
  body{padding-bottom:66px}
  .ar-page-shell{padding:12px 12px 24px}
  .ar-page-head{flex-direction:column}
  .ar-page-actions{width:100%}
  .ar-page-actions>.btn,.ar-page-actions>form{flex:1}
  .ar-page-actions>form>.btn{width:100%}
  .ar-grid-4{grid-template-columns:1fr}
  .admin-tabs{position:sticky;top:0;z-index:10;background:rgba(5,5,5,.94);backdrop-filter:blur(12px);padding:8px 0 12px}
  .ar-mobile-nav{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;left:10px;right:10px;bottom:10px;z-index:100;background:rgba(11,11,11,.96);border:1px solid #3b321e;border-radius:16px;padding:6px;box-shadow:0 18px 50px rgba(0,0,0,.55);backdrop-filter:blur(14px)}
  .ar-mobile-nav a{display:grid;place-items:center;gap:2px;color:#8f8f8f;font-size:11px;padding:8px 4px;border-radius:10px}
  .ar-mobile-nav a strong{font-size:15px;color:var(--ar-gold-bright)}
}

/* =========================================================
   V25.37 — Global ALLANDRICH Gold Aura Interaction
   Applies to user/admin/module content surfaces.
   ========================================================= */
.ar-aura-surface{
  position:relative!important;
  isolation:isolate;
  overflow:hidden;
  --ar-mx:50%;
  --ar-my:50%;
  --ar-aura:0;
  --ar-text-warm:0;
  transition:
    border-color .32s ease,
    box-shadow .32s ease,
    transform .32s cubic-bezier(.2,.7,.2,1),
    background-color .32s ease!important;
}
.ar-aura-surface::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  border-radius:inherit;
  opacity:1;
  background:
    radial-gradient(
      300px circle at var(--ar-mx) var(--ar-my),
      rgba(242,214,111,var(--ar-aura)),
      transparent 68%
    );
  transition:background .18s linear,opacity .28s ease;
}
.ar-aura-surface>*{
  position:relative;
  z-index:2;
}
.ar-aura-active{
  --ar-aura:.13;
  border-color:#55491f!important;
  box-shadow:
    0 22px 64px rgba(0,0,0,.26),
    0 0 34px rgba(217,183,74,.055)!important;
}
.ar-aura-tilt{
  transform:
    perspective(1000px)
    rotateX(var(--ar-rx,0deg))
    rotateY(var(--ar-ry,0deg))
    translateY(-2px)!important;
}

/* Reactive text */
.ar-aura-surface p,
.ar-aura-surface .muted,
.ar-aura-surface .help,
.ar-aura-surface .mini,
.ar-aura-surface small,
.ar-aura-surface label,
.ar-aura-surface .tx-label,
.ar-aura-surface .refresh-note,
.ar-aura-surface .secret-note{
  transition:color .42s ease,text-shadow .42s ease,opacity .42s ease!important;
}
.ar-aura-active p{
  color:#f1ead5!important;
  text-shadow:0 0 calc(8px + 8px * var(--ar-text-warm,1)) rgba(217,183,74,.09);
}
.ar-aura-active .muted,
.ar-aura-active .help,
.ar-aura-active .mini,
.ar-aura-active small,
.ar-aura-active label,
.ar-aura-active .tx-label,
.ar-aura-active .refresh-note,
.ar-aura-active .secret-note{
  color:#c7b98c!important;
  text-shadow:0 0 10px rgba(217,183,74,.06);
}
.ar-aura-active h1,
.ar-aura-active h2,
.ar-aura-active h3,
.ar-aura-active h4,
.ar-aura-active strong{
  transition:color .38s ease,text-shadow .38s ease!important;
}
.ar-aura-active h2,
.ar-aura-active h3,
.ar-aura-active h4,
.ar-aura-active strong{
  color:#fff!important;
  text-shadow:0 0 16px rgba(217,183,74,.07);
}

/* Keep interactive controls stable and readable */
.ar-aura-surface input,
.ar-aura-surface select,
.ar-aura-surface textarea,
.ar-aura-surface button,
.ar-aura-surface .btn,
.ar-aura-surface table,
.ar-aura-surface .table{
  position:relative;
  z-index:3;
}

/* Tiny gold mouse dust on desktop */
.ar-global-dust{
  position:fixed;
  width:2px;
  height:2px;
  border-radius:50%;
  pointer-events:none;
  z-index:9999;
  background:#efd676;
  box-shadow:0 0 7px rgba(239,214,118,.45);
  opacity:.28;
  animation:arDustFade .75s ease-out forwards;
}
@keyframes arDustFade{
  to{
    transform:translate3d(var(--ar-dx),var(--ar-dy),0) scale(.2);
    opacity:0;
  }
}

/* Tables: row-level warm feedback without tilt */
.ar-row-aura{
  transition:background .3s ease,color .3s ease!important;
}
.ar-row-aura:hover{
  background:linear-gradient(90deg,rgba(217,183,74,.035),transparent)!important;
}

/* Mobile: aura remains softly visible on focus/touch surfaces, no tilt/dust */
@media(max-width:760px),(pointer:coarse){
  .ar-aura-tilt{transform:none!important}
  .ar-global-dust{display:none!important}
  .ar-aura-active{--ar-aura:.055}
}
@media(prefers-reduced-motion:reduce){
  .ar-aura-tilt{transform:none!important}
  .ar-global-dust{display:none!important}
}

/* =========================================================
   V25.38 — Inside-page Aura Reliability
   Uses a real .ar-aura-layer child so module pseudo-elements
   cannot hide or replace the interaction.
   ========================================================= */
.ar-aura-surface{
  position:relative!important;
  isolation:isolate!important;
  overflow:hidden!important;
  --ar-mx:50%;
  --ar-my:50%;
  --ar-aura:0;
  --ar-text-warm:0;
}
.ar-aura-surface::before{
  /* V25.37 compatibility pseudo-layer disabled.
     V25.38 uses a real child overlay instead. */
  display:none!important;
}
.ar-aura-layer{
  position:absolute!important;
  inset:0!important;
  z-index:1!important;
  pointer-events:none!important;
  border-radius:inherit!important;
  opacity:1;
  background:
    radial-gradient(
      320px circle at var(--ar-mx,50%) var(--ar-my,50%),
      rgba(242,214,111,var(--ar-aura,0)),
      transparent 70%
    )!important;
  transition:background .16s linear,opacity .30s ease!important;
}
.ar-aura-surface>*:not(.ar-aura-layer){
  position:relative;
  z-index:2;
}
.ar-aura-active{
  --ar-aura:.15!important;
  border-color:#625223!important;
  box-shadow:
    0 22px 64px rgba(0,0,0,.26),
    0 0 40px rgba(217,183,74,.065)!important;
}

/* More inside-page text types */
.ar-aura-surface .label,
.ar-aura-surface .caption,
.ar-aura-surface .description,
.ar-aura-surface .sub,
.ar-aura-surface .note,
.ar-aura-surface .meta,
.ar-aura-surface .wallet-type,
.ar-aura-surface .address-label,
.ar-aura-surface .verify-line,
.ar-aura-surface .status-text{
  transition:color .42s ease,text-shadow .42s ease!important;
}
.ar-aura-active .label,
.ar-aura-active .caption,
.ar-aura-active .description,
.ar-aura-active .sub,
.ar-aura-active .note,
.ar-aura-active .meta,
.ar-aura-active .wallet-type,
.ar-aura-active .address-label,
.ar-aura-active .verify-line,
.ar-aura-active .status-text{
  color:#cbbb88!important;
  text-shadow:0 0 10px rgba(217,183,74,.055);
}

/* Explicitly support common internal project blocks */
.summary-box.ar-aura-active,
.balance.ar-aura-active,
.zer-row.ar-aura-active,
.field.ar-aura-active,
.memo-box.ar-aura-active,
.notice.ar-aura-active,
.tx.ar-aura-active,
.card.ar-aura-active,
.panel.ar-aura-active,
.c.ar-aura-active{
  background-color:#0f0e0a!important;
}

/* Forms themselves remain stable; field wrappers can glow */
.ar-aura-surface form,
.ar-aura-surface input,
.ar-aura-surface select,
.ar-aura-surface textarea,
.ar-aura-surface button,
.ar-aura-surface .btn{
  position:relative!important;
  z-index:4!important;
}

@media(max-width:760px),(pointer:coarse){
  .ar-aura-active{--ar-aura:.07!important}
}

/* =========================================================
   V25.40 — GLOBAL HOME THEME
   Home black/gold/white visual language applied project-wide.
   Home-only crypto masthead orbits remain home-only.
   ========================================================= */
:root{
  --ar-bg:#050505;
  --ar-bg-soft:#080808;
  --ar-panel:#0d0d0d;
  --ar-panel-2:#111111;
  --ar-gold:#d9b74a;
  --ar-gold-bright:#f2d66f;
  --ar-gold-deep:#8d6810;
  --ar-white:#ffffff;
  --ar-text:#f5f5f3;
  --ar-muted:#939393;
  --ar-line:#2b281f;
  --ar-line-gold:#51451e;
  --ar-success:#91dc98;
  --ar-warning:#efcf72;
  --ar-danger:#ffaaaa;
  --ar-radius:16px;
  --ar-shadow:0 24px 70px rgba(0,0,0,.34);
}

html{
  color-scheme:dark;
  background:var(--ar-bg);
}

body{
  margin:0;
  background:
    radial-gradient(circle at 84% -10%,rgba(217,183,74,.095),transparent 26%),
    radial-gradient(circle at -8% 42%,rgba(217,183,74,.038),transparent 23%),
    var(--ar-bg)!important;
  color:var(--ar-text)!important;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
  position:relative;
}

/* Global universe field added by ar-interactions.js */
.ar-global-sky{
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  overflow:hidden;
}
.ar-global-sky::before{
  content:"";
  position:absolute;
  inset:-12%;
  opacity:.09;
  background-image:
    linear-gradient(rgba(255,255,255,.026) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.026) 1px,transparent 1px);
  background-size:58px 58px;
  mask-image:radial-gradient(circle at 52% 20%,#000 0,rgba(0,0,0,.7) 38%,transparent 80%);
  animation:arGridDrift 42s linear infinite;
}
@keyframes arGridDrift{to{transform:translate3d(58px,58px,0)}}

.ar-global-star{
  position:absolute;
  width:1px;
  height:1px;
  border-radius:50%;
  background:#fff9dc;
  opacity:.08;
  box-shadow:0 0 4px rgba(255,244,194,.3);
  animation:arGlobalStarFloat linear infinite,arGlobalStarBlink ease-in-out infinite;
}
.ar-global-star.big{
  width:2px;
  height:2px;
  background:#f2d66f;
  box-shadow:0 0 7px rgba(242,214,111,.4);
}
@keyframes arGlobalStarFloat{
  from{transform:translate3d(0,30px,0)}
  to{transform:translate3d(-4px,-120px,0)}
}
@keyframes arGlobalStarBlink{
  0%,100%{opacity:.04}
  48%{opacity:.32}
  62%{opacity:.16}
}

.ar-global-halo{
  position:absolute;
  border-radius:50%;
  filter:blur(85px);
  opacity:.08;
}
.ar-global-halo.one{
  width:420px;height:420px;
  background:#c79d22;
  top:-190px;right:-100px;
  animation:arHaloOne 24s ease-in-out infinite alternate;
}
.ar-global-halo.two{
  width:340px;height:340px;
  background:#8d6810;
  left:-180px;top:45%;
  animation:arHaloTwo 29s ease-in-out infinite alternate;
}
@keyframes arHaloOne{to{transform:translate(-110px,125px) scale(1.16)}}
@keyframes arHaloTwo{to{transform:translate(145px,-90px) scale(1.12)}}

/* Every application shell sits above the global sky. */
body > *:not(.ar-global-sky):not(.ar-global-dust){
  position:relative;
  z-index:2;
}

/* Typography */
h1,h2,h3,h4,h5,h6{
  color:#fff!important;
  letter-spacing:-.025em;
}
.brand,.gold,.eyebrow,.kicker,.wallet-type,.dep-eyebrow{
  color:var(--ar-gold-bright)!important;
}
.muted,.help,.mini,.refresh-note,.caption,.description{
  color:var(--ar-muted)!important;
}

/* ALLANDRICH brand text uses Georgia globally where the literal brand class is present. */
.ar-brand-name,
[data-ar-brand="name"]{
  font-family:Georgia,"Times New Roman",serif!important;
  letter-spacing:.11em!important;
}

/* Surfaces */
.panel,.card,.c,.wide,.feature,.wallet-card,.deposit-card,
.admin-module-card,.package-panel,.auth-card,.preview-panel,
.summary-box,.balance,.zer-row,.memo-box,.notice,.field,
.module-card,.service-card,.setting-card,.plan-card,.reward-card,
.history-card,.content-card,.gateway-card,.stat,.ar-stat{
  background:
    linear-gradient(145deg,rgba(255,255,255,.014),rgba(255,255,255,0)),
    var(--ar-panel)!important;
  border-color:var(--ar-line)!important;
  box-shadow:0 16px 48px rgba(0,0,0,.18);
}

.panel:hover,.card:hover,.c:hover,.wide:hover,.feature:hover,
.wallet-card:hover,.summary-box:hover,.balance:hover,.zer-row:hover{
  border-color:#41371e!important;
}

/* Buttons exactly follow the clearer home treatment. */
.btn,button.btn,a.btn{
  min-height:40px;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:10px 15px!important;
  border-radius:11px!important;
  border:1px solid #514727!important;
  background:rgba(12,12,11,.96)!important;
  color:#f7f7f4!important;
  font-weight:750!important;
  letter-spacing:.012em;
  text-decoration:none!important;
  text-shadow:0 1px 1px rgba(0,0,0,.6);
  transition:transform .2s ease,border-color .2s ease,background .2s ease,box-shadow .2s ease,color .2s ease!important;
}
.btn:hover,button.btn:hover,a.btn:hover{
  transform:translateY(-1px);
  color:#fff!important;
  background:#151208!important;
  border-color:#a8892d!important;
  box-shadow:0 8px 24px rgba(0,0,0,.24),0 0 22px rgba(217,183,74,.045)!important;
}
.btn.gold,.btn.primary,button[type="submit"].gold{
  color:#090806!important;
  background:linear-gradient(180deg,#f0d56f 0%,#d6b648 100%)!important;
  border-color:#f3dc82!important;
  font-weight:850!important;
  text-shadow:none!important;
}
.btn.gold:hover,.btn.primary:hover{
  color:#000!important;
  background:linear-gradient(180deg,#f6df82 0%,#dfc257 100%)!important;
  border-color:#fff0aa!important;
}
.btn:focus-visible,button:focus-visible,a:focus-visible{
  outline:2px solid var(--ar-gold-bright)!important;
  outline-offset:3px;
}

/* Forms */
input,select,textarea{
  background:#080808!important;
  color:#fff!important;
  border:1px solid #383838!important;
  border-radius:10px!important;
  outline:none;
  transition:border-color .2s ease,box-shadow .2s ease,background .2s ease!important;
}
input:focus,select:focus,textarea:focus{
  border-color:var(--ar-gold)!important;
  box-shadow:0 0 0 3px rgba(217,183,74,.08)!important;
  background:#0a0907!important;
}
input::placeholder,textarea::placeholder{color:#666!important}
label{color:#b2b2b2!important}

/* Tables */
table,.table,.t{
  width:100%;
  border-collapse:separate!important;
  border-spacing:0!important;
}
table th,.table th,.t th{
  background:#090909!important;
  color:#aaa!important;
  font-size:12px!important;
  letter-spacing:.08em;
  text-transform:uppercase;
  border-bottom:1px solid #3b321d!important;
}
table td,.table td,.t td{
  border-bottom:1px solid #202020!important;
}
table tr:hover td,.table tr:hover td,.t tr:hover td{
  background:linear-gradient(90deg,rgba(217,183,74,.025),transparent)!important;
}

/* Tabs / chips */
.tabs,.admin-tabs{
  border-color:#302a1b!important;
  background:#090909!important;
}
.tab,.tabs .tab,.admin-tabs a{
  color:#9f9a89!important;
}
.tab.active,.tabs .tab.active,.admin-tabs a.active,.admin-tabs a.on{
  background:linear-gradient(135deg,#efcf69,#a77c15)!important;
  color:#080808!important;
  font-weight:850!important;
}

/* Status */
.badge,.pill,.status{
  border-radius:999px!important;
  font-weight:800!important;
}
.completed,.success,.ok{color:var(--ar-success)!important}
.pending,.processing,.warning{color:var(--ar-warning)!important}
.failed,.danger,.error,.bad{color:var(--ar-danger)!important}

/* Scrollbar */
*{
  scrollbar-width:thin;
  scrollbar-color:#66511f #090909;
}
*::-webkit-scrollbar{width:9px;height:9px}
*::-webkit-scrollbar-track{background:#090909}
*::-webkit-scrollbar-thumb{background:#4d401d;border:2px solid #090909;border-radius:999px}
*::-webkit-scrollbar-thumb:hover{background:#876b21}

/* Mobile keeps the theme, with lighter background motion. */
@media(max-width:760px){
  .ar-global-sky::before{opacity:.055;background-size:46px 46px;animation-duration:58s}
  .ar-global-halo{opacity:.05}
  .panel,.card,.c,.wide,.wallet-card,.summary-box,.balance,.zer-row{
    box-shadow:none;
  }
}
@media(prefers-reduced-motion:reduce){
  .ar-global-sky::before{animation-duration:90s!important}
  .ar-global-star{animation-duration:40s,9s!important}
  .ar-global-halo{animation-duration:55s!important}
}

/* V25.42 — official ALLANDRICH logo is global */
.ar-global-brand-logo{
  width:38px;height:38px;object-fit:contain;display:block;flex:0 0 38px;
  border-radius:11px;background:#050505;border:1px solid #342d1b;
  box-shadow:0 0 24px rgba(217,183,74,.10);
}
.ar-global-brand-link{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:#fff}
.ar-global-brand-link .ar-global-brand-logo{transition:transform .25s ease,box-shadow .25s ease}
.ar-global-brand-link:hover .ar-global-brand-logo{transform:scale(1.035);box-shadow:0 0 30px rgba(217,183,74,.18)}
.ua-brand i.ar-logo-host,.home-logo-mark.ar-logo-host,.logo-mark.ar-logo-host{
  padding:0!important;overflow:hidden!important;background:#050505!important;border-color:#342d1b!important;
}
.ua-brand i.ar-logo-host img,.home-logo-mark.ar-logo-host img,.logo-mark.ar-logo-host img{
  display:block;width:100%;height:100%;object-fit:contain;
}

/* V25.48 — Global header brand/menu clarity */
.logo-title,.ar-brand-name,header .brand-name{
  font-family:Georgia,"Times New Roman",serif!important;
  font-weight:700!important;
  letter-spacing:.10em!important;
  color:#fff!important;
}
header nav a,.ar-topbar a,.topnav a{
  color:#d2d2cf!important;
  font-weight:650!important;
  opacity:1!important;
}
header nav a:hover,.ar-topbar a:hover,.topnav a:hover{
  color:#fff!important;
}

/* =========================================================
   V25.52 — Global Internal Header Alignment
   Canonical structure:
   [Logo] [ALLANDRICH · MODULE]
          Page title / description
   ========================================================= */
.ar-global-brandbar{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  min-height:42px;
  margin:0 0 8px!important;
  width:max-content;
  max-width:100%;
}

.ar-global-brandbar .ar-global-brand-link{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  width:38px!important;
  height:38px!important;
  margin:0!important;
}

.ar-global-brandbar .ar-global-brand-logo{
  display:block!important;
  width:38px!important;
  height:38px!important;
  object-fit:contain!important;
  margin:0!important;
}

.ar-global-brand-label{
  display:block!important;
  margin:0!important;
  padding:0!important;
  line-height:1.2!important;
  color:var(--ar-gold-bright,#f2d66f)!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:12px!important;
  font-weight:700!important;
  letter-spacing:.095em!important;
  text-transform:uppercase;
  white-space:normal;
}

/* Page heading follows the compact brand row without oversized gaps. */
.ar-global-brandbar + h1{
  margin-top:0!important;
}

/* Common internal header shells. */
.ar-page-head,
header.top,
.top.ar-page-head{
  align-items:flex-start!important;
}

.ar-page-head > div:first-child,
header.top > div:first-child{
  min-width:0;
}

/* Never let the old global logo link become a vertical standalone block. */
.ar-global-brand-link:not(.ar-global-brandbar .ar-global-brand-link){
  margin:0!important;
}

@media(max-width:700px){
  .ar-global-brandbar{
    gap:8px!important;
    min-height:34px;
    margin-bottom:6px!important;
  }
  .ar-global-brandbar .ar-global-brand-link,
  .ar-global-brandbar .ar-global-brand-logo{
    width:32px!important;
    height:32px!important;
  }
  .ar-global-brand-label{
    font-size:12px!important;
    letter-spacing:.075em!important;
  }

  .ar-page-head,
  header.top,
  .top.ar-page-head{
    gap:10px!important;
  }
}

/* V25.73 shared readability normalization */
html{font-size:16px}body{font-size:15px;line-height:1.58}.sidebar nav a{font-size:14px;min-height:43px}.topbar h1{font-size:22px}.module-card p,.rule-grid p,.lead-muted{font-size:14px}.btn{font-size:14px;min-height:42px}@media(max-width:760px){body{font-size:15px}.topbar h1{font-size:18px}}
