:root{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#162033;background:#f5f7fb;-webkit-tap-highlight-color:transparent
}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;background:linear-gradient(180deg,#eef3fa,#f8fafc 45%,#f1f4f8);color:#162033}
button,select,input{font:inherit}
button{cursor:pointer}
[hidden]{display:none!important}
.public-shell{width:min(760px,100%);margin:0 auto;padding:28px 16px 48px}
.hero-card,.calculator-card{
  background:#fff;border:1px solid #dce3ed;border-radius:24px;box-shadow:0 18px 55px #36577b14
}
.hero-card{display:flex;gap:18px;align-items:flex-start;padding:24px;margin-bottom:16px}
.brand-mark{width:62px;height:78px;border:2px solid #182335;border-radius:12px;display:grid;place-items:center;font-size:27px;font-weight:900;background:#fff;box-shadow:0 5px 14px #1e37531a;flex:0 0 auto}
.eyebrow{margin:0 0 5px;text-transform:uppercase;letter-spacing:.13em;font-size:11px;font-weight:850;color:#718096}
h1{margin:0;font-size:clamp(1.85rem,7vw,3rem);letter-spacing:-.045em;line-height:1}
.intro{margin:12px 0 0;color:#637083;line-height:1.55;font-size:.94rem}
.calculator-card{padding:22px}
.field{display:grid;gap:8px;margin-bottom:18px}
.field>label{font-weight:800;font-size:.85rem;color:#344054}
.card-picker-button{
  width:100%;min-height:94px;display:grid;grid-template-columns:58px 1fr auto;align-items:center;gap:14px;
  border:1px solid #d2dae5;border-radius:17px;background:#f9fbfd;color:#162033;padding:10px 15px;text-align:left
}
.card-picker-button:active{transform:scale(.995)}
.card-picker-button img{width:54px;height:76px;object-fit:contain;border-radius:6px;box-shadow:0 3px 9px #0001}
.card-picker-button strong{display:block;font-size:1.02rem;text-transform:capitalize}
.card-picker-button small{display:block;color:#7b8798;margin-top:3px}
.chevron{font-size:30px;color:#98a2b3}
select{
  width:100%;padding:14px 15px;border:1px solid #d2dae5;border-radius:14px;background:#fff;color:#172033;
  appearance:auto
}
.calculate-button{
  width:100%;border:0;border-radius:15px;padding:15px 18px;background:#152238;color:#fff;font-weight:850;
  box-shadow:0 8px 20px #15223824
}
.calculate-button:disabled{opacity:.58;cursor:wait}
.calculation{margin-top:18px;padding:16px;border-radius:16px;background:#f0f5fb;display:flex;align-items:center;gap:13px}
.calculation strong,.calculation span{display:block}
.calculation span{font-size:.8rem;color:#718096;margin-top:3px}
.spinner{width:28px;height:28px;border-radius:50%;border:3px solid #cbd7e7;border-top-color:#20314d;animation:spin .8s linear infinite;flex:0 0 auto}
@keyframes spin{to{transform:rotate(360deg)}}
.result-card{margin-top:18px;padding:18px;border-radius:17px;border:1px solid #cfdbea;background:#f8fbff}
.result-kicker{font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.12em;color:#728095}
.result-card p{margin:8px 0;font-size:1.05rem;line-height:1.55}
.result-card small{color:#7b8798}
.modal{position:fixed;z-index:50;inset:0;display:grid;place-items:end center}
.modal-backdrop{position:absolute;inset:0;background:#101828a8;backdrop-filter:blur(5px)}
.card-modal-panel{position:relative;width:min(820px,100%);max-height:min(88vh,900px);background:#f9fbfd;border-radius:26px 26px 0 0;overflow:auto;padding-bottom:24px;box-shadow:0 -24px 60px #0004}
.modal-header{position:sticky;z-index:4;top:0;display:flex;justify-content:space-between;align-items:flex-start;padding:20px 20px 15px;background:#f9fbfdf3;backdrop-filter:blur(14px);border-bottom:1px solid #e2e8f0}
.modal-header h2{margin:0;font-size:1.35rem}
.close-button{width:40px;height:40px;border:0;border-radius:50%;background:#e9eef5;font-size:26px;color:#344054}
.card-groups{display:grid;gap:16px;padding:17px}
.suit-section{padding:13px;border-radius:18px;background:#fff;border:1px solid #e0e6ee}
.suit-section h3{margin:0 0 10px;font-size:.93rem;color:#26364d}.suit-section h3.red{color:#c42634}
.card-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.card-choice{position:relative;border:0;background:transparent;padding:0;border-radius:9px;min-width:0}
.card-choice img{display:block;width:100%;height:auto;border-radius:7px;box-shadow:0 2px 7px #0002}
.card-choice span{display:none}
.card-choice.selected{outline:3px solid #2a69b8;outline-offset:2px}
.card-choice:active{transform:scale(.96)}
.toast{position:fixed;z-index:100;left:50%;bottom:25px;transform:translateX(-50%);padding:11px 15px;border-radius:999px;background:#172033;color:#fff;font-size:.82rem;font-weight:750;box-shadow:0 10px 30px #0004;max-width:calc(100vw - 30px);text-align:center}
.modal-open{overflow:hidden}

/* Admin / verify shared */
.admin-page{background:#080b10;color:#edf2f7;min-height:100vh}
.admin-shell{width:min(980px,100%);margin:0 auto;padding:24px 15px 50px}
.admin-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:16px}
.admin-header h1{font-size:clamp(1.65rem,6vw,2.5rem)}
.admin-header .eyebrow{color:#8d99aa}
.admin-card{background:#141922;border:1px solid #2b3442;border-radius:22px;padding:20px;margin-bottom:14px;box-shadow:0 20px 60px #0005}
.admin-card h2{margin:0 0 6px;font-size:1.05rem}
.admin-card p{margin:0;color:#98a2b1;line-height:1.5;font-size:.86rem}
.login-box{width:min(420px,calc(100% - 30px));position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);background:#141922;border:1px solid #2b3442;border-radius:22px;padding:22px;color:#fff}
.login-box h1{font-size:1.6rem}
.login-box input{width:100%;margin:14px 0 10px;background:#0a0e14;color:#fff;border:1px solid #394457;border-radius:12px;padding:12px}
.admin-button{border:0;border-radius:12px;padding:11px 14px;background:#eef2f7;color:#111827;font-weight:850}
.admin-button.secondary{background:#252d39;color:#eef2f7;border:1px solid #3a4658}
.admin-button.danger{background:#5c1d25;color:#ffe0e4;border:1px solid #8d3140}
.admin-button:disabled{opacity:.4}
.stack-mode{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.mode-card{display:flex;align-items:center;gap:10px;padding:13px;border:1px solid #394457;border-radius:14px;background:#0c1118}
.stack-summary{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:14px 0}
.stack-count{font-size:1.2rem;font-weight:900}
.custom-stack-list{display:grid;gap:13px;margin-top:15px}
.custom-stack-suit{border:1px solid #2d3746;border-radius:16px;background:#0d1219;padding:11px}
.custom-stack-suit h3{margin:0 0 9px;font-size:.86rem}.custom-stack-suit h3.red{color:#ff6e7c}
.custom-stack-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.stack-card{position:relative;border:0;border-radius:8px;padding:0;background:#fff;overflow:visible}
.stack-card img{display:block;width:100%;border-radius:7px}
.stack-card.selected{opacity:.55}.stack-card:disabled{opacity:.55}
.order-badge{position:absolute;right:-4px;top:-5px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;display:grid;place-items:center;background:#3b82f6;color:#fff;font-size:10px;font-weight:900;border:2px solid #0d1219}
.admin-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}
.active-stack-list{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:12px}
.active-stack-list span{padding:7px 8px;border-radius:8px;background:#0b1017;color:#cbd5e1;font-size:.76rem}
.verify-display{min-height:62vh;display:grid;place-items:center;text-align:center;background:#000;border-radius:22px;border:1px solid #252c35}
.verify-card{font-size:clamp(6rem,32vw,15rem);line-height:.75;font-weight:950;letter-spacing:-.08em}
.verify-position{font-size:clamp(2rem,10vw,5rem);font-weight:900;margin-top:25px}
.verify-detail{margin-top:15px;color:#aab4c3;font-size:.9rem}
.verify-empty{color:#657080;font-size:1.1rem;font-weight:800}

@media(max-width:620px){
  .public-shell{padding:12px 10px 35px}.hero-card{padding:18px;gap:13px;border-radius:19px}.brand-mark{width:48px;height:64px;font-size:22px}.calculator-card{padding:16px;border-radius:19px}
  .card-grid,.custom-stack-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .stack-mode{grid-template-columns:1fr}
  .active-stack-list{grid-template-columns:repeat(2,1fr)}
}
