/* ATP Coaching V30.21.53: keep dashboard typography & status colors. */
.atp53-main{font-family:inherit;color:inherit}.atp53-body{padding:18px;display:grid;gap:13px}.atp53-body h3{font-size:1rem;margin:13px 0 3px}.atp53-body h4{font-size:.92rem}.atp53-body p,.atp53-body small{line-height:1.65}.atp53-stack{display:grid;gap:9px}.atp53-contract,.atp53-reward,.atp53-row{border:1px solid var(--edge,#34425c);background:var(--surface,#142033);border-radius:11px;padding:13px;display:flex;align-items:center;justify-content:space-between;gap:12px}.atp53-contract>div,.atp53-row>div{display:grid;gap:5px}.atp53-contract small,.atp53-reward small,.atp53-row small{color:var(--muted,#a1afc0);display:block;font-size:12px}.atp53-wheel-frame{display:grid;grid-template-columns:minmax(210px,360px) 1fr;gap:16px;align-items:center}.atp53-wheel-scene{width:min(100%,360px);aspect-ratio:1;position:relative;margin:auto;filter:drop-shadow(0 11px 25px #06152d)}.atp53-wheel-disk{width:100%;height:100%;display:block;transition:none}.atp53-wheel-hub{position:absolute;width:23%;height:23%;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;border-radius:50%;background:#0e1729;border:4px solid #86b6ff;box-shadow:0 0 12px #2563eb88;overflow:hidden}.atp53-wheel-hub img{display:block;width:100%;height:100%;object-fit:contain}.atp53-pointer{position:absolute;z-index:2;top:-2%;left:50%;transform:translateX(-50%);border-left:13px solid transparent;border-right:13px solid transparent;border-top:28px solid #f3c568;filter:drop-shadow(0 2px 2px #000)}.atp53-wheel-legend{display:flex;flex-wrap:wrap;gap:8px}.atp53-wheel-legend span{background:#122b50;border:1px solid #416ba0;padding:8px;border-radius:7px;color:#e8f1ff;font-size:12px}.atp53-result{background:#134b36;color:#eaffef;border-radius:9px;padding:14px}.atp53-error{padding:12px;background:#652129;color:#fff;border-radius:9px}.atp53-details{border:1px solid var(--edge,#34425c);border-radius:10px;padding:12px}.atp53-details summary{cursor:pointer;font-weight:700}.atp53-form{display:grid;gap:12px;margin-top:13px}.atp53-form label{display:grid;gap:5px;font-size:12px}.atp53-form input:not([type=checkbox]),.atp53-form select,.atp53-body select{width:100%;max-width:100%;min-height:38px;border-radius:8px;border:1px solid #475569;padding:8px;background:#182738;color:#fff;font:inherit}.atp53-form input[type=checkbox]{accent-color:#72a2ff}.atp53-options{display:flex;gap:10px;flex-wrap:wrap}.atp53-prize-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.atp53-prize-form{border:1px solid #344761;border-radius:9px;padding:10px;display:grid;gap:6px}.atp53-3col{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.atp53-note{font-size:12px;color:var(--muted,#a7b2bf)}.atp53-pill{display:inline-block;border:1px solid #4b648d;padding:3px 7px;border-radius:14px;font-size:11px;margin-left:4px}
@media(max-width:730px){.atp53-wheel-frame{grid-template-columns:1fr}.atp53-prize-grid,.atp53-3col{grid-template-columns:1fr}.atp53-contract,.atp53-row{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.atp53-wheel-disk{transition:none!important}}

/* V30.21.54 — ATP premium wheel, themed for slate/dark dashboard with soft blue + amber accents.
   Visual only. Spin outcome, permissions, reward data, badge and pricing are unchanged. */
.atp53-wheel-frame{grid-template-columns:minmax(240px,440px) minmax(190px,1fr);gap:clamp(14px,2.8vw,28px);padding:clamp(14px,2.5vw,26px);border-radius:18px;border:1px solid var(--edge,#334352);background:radial-gradient(circle at 28% 45%,rgba(21,92,155,.21),transparent 44%),linear-gradient(130deg,#101d30 0%,#101820 65%,var(--surface,#16202a) 100%);box-shadow:inset 0 1px rgba(211,232,255,.08),0 10px 32px rgba(0,0,0,.12)}
.atp54-wheel-feature{display:grid;justify-items:center;align-content:center;gap:8px;min-width:0}
.atp53-wheel-scene.atp54-wheel-scene{width:min(100%,430px);aspect-ratio:1;position:relative;filter:none;isolation:isolate;padding:0;margin:0 auto;user-select:none}
.atp54-wheel-aura{position:absolute;inset:3%;border-radius:50%;box-shadow:0 0 22px rgba(20,126,230,.37),0 0 66px rgba(22,100,199,.17);pointer-events:none}
.atp53-wheel-disk.atp54-wheel-disk{display:block;position:relative;z-index:1;width:100%;height:100%;transform-origin:50% 50%;will-change:transform;filter:drop-shadow(0 8px 18px rgba(3,13,33,.4))}
.atp54-wheel-text{font-family:var(--body,'Be Vietnam Pro',system-ui,sans-serif);text-anchor:middle;paint-order:stroke fill}
.atp54-wheel-primary{fill:#f4d18d;font-weight:800;stroke:#14233c;stroke-width:.65px;letter-spacing:.005em}
.atp54-wheel-secondary{fill:#d8ebff;font-weight:650;letter-spacing:.004em}
.atp54-wheel-sector>path{transition:filter .2s ease}
.atp54-wheel-sector:hover>path{filter:brightness(1.25)}
.atp53-wheel-hub.atp54-wheel-hub{z-index:4;width:28%;height:28%;left:50%;top:50%;box-sizing:border-box;padding:8px;border-radius:50%;transform:translate(-50%,-50%);background:radial-gradient(circle at 42% 32%,#183b6b,#07142b 72%);border:3px solid #78cfff;box-shadow:0 0 0 4px rgba(9,36,74,.96),0 0 0 6px rgba(235,184,91,.65),0 0 22px 4px rgba(64,157,255,.62),inset 0 0 10px #316eac;overflow:hidden;display:grid;place-items:center}
.atp53-wheel-hub.atp54-wheel-hub img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;display:block;transform:none;filter:drop-shadow(0 0 4px rgba(125,197,255,.16))}
.atp53-pointer.atp54-wheel-pointer{position:absolute;z-index:5;top:-2.5%;left:50%;width:44px;height:49px;transform:translateX(-50%);border:none;background:linear-gradient(105deg,#a6692a 0%,#fbe9aa 34%,#f0b95a 56%,#a36a24 100%);clip-path:polygon(9% 0%,91% 0%,100% 13%,53% 100%,47% 100%,0 13%);filter:drop-shadow(0 3px 5px rgba(3,10,27,.85))}
.atp53-pointer.atp54-wheel-pointer::after{content:"";position:absolute;inset:4px 6px 8px;background:linear-gradient(135deg,#fff7cb,#d89c41);clip-path:polygon(9% 0%,91% 0%,100% 13%,53% 100%,47% 100%,0 13%)}
.atp54-wheel-caption{font-family:var(--body,'Be Vietnam Pro',system-ui,sans-serif);font-size:clamp(10px,1.2vw,13px);font-weight:800;letter-spacing:.075em;text-align:center;color:#f2ce84;max-width:100%;padding:7px 13px;border:1px solid rgba(89,180,255,.4);border-radius:999px;background:linear-gradient(135deg,rgba(12,52,97,.58),rgba(9,20,43,.7))}
.atp54-wheel-caption span{margin-left:5px;color:#ceeaff;font-weight:650;white-space:nowrap}
.atp53-wheel-legend{display:flex;align-content:center;align-items:stretch;flex-direction:column;flex-wrap:nowrap;gap:8px;min-width:0}
.atp54-wheel-legend-title{font-weight:800;color:#e2f1ff;font-size:12px;letter-spacing:.045em;padding:3px 2px}
.atp53-wheel-legend span{display:block;width:100%;color:#e5eff9;background:rgba(14,40,73,.8);border:1px solid rgba(82,147,204,.5);border-left:3px solid var(--amber,#f0b95a);border-radius:9px;padding:8px 11px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:840px){.atp53-wheel-frame{grid-template-columns:1fr}.atp53-wheel-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.atp54-wheel-legend-title{grid-column:1/-1}}
@media(max-width:420px){.atp53-wheel-frame{padding:10px;gap:12px}.atp53-wheel-legend{grid-template-columns:1fr}.atp53-pointer.atp54-wheel-pointer{width:34px;height:38px}}
@media(prefers-reduced-motion:reduce){.atp54-wheel-aura{box-shadow:0 0 14px rgba(20,126,230,.2)}}

/* V30.21.55 – accessible reward popup; overlay is outside the cached tab nodes. */
.atp55-existing-setting{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:10px!important;padding:12px;border:1px solid var(--edge,#425066);background:var(--surface,#16202a);border-radius:10px}
.atp55-existing-setting>input{width:auto!important;margin-top:4px;accent-color:#47a3e7}
.atp55-existing-setting span{display:grid;gap:5px}
.atp55-existing-setting small{line-height:1.5;color:var(--muted,#a9bbcc);font-size:12px}
.atp55-wheel-popup-overlay{position:fixed;inset:0;background:rgba(2,8,21,.76);z-index:2147482200;display:grid;place-items:center;padding:16px;overflow:auto;overscroll-behavior:contain}
.atp55-wheel-popup{position:relative;isolation:isolate;box-sizing:border-box;width:min(100%,470px);padding:clamp(20px,4vw,34px);border-radius:20px;border:1px solid rgba(83,189,255,.66);background:radial-gradient(ellipse at 50% -15%,#204872 0%,transparent 65%),linear-gradient(145deg,#111e34,#0a1528);box-shadow:0 25px 85px rgba(0,0,0,.48),0 0 28px rgba(46,136,214,.3);text-align:center;color:#edf5ff;font-family:var(--body,'Be Vietnam Pro',system-ui,sans-serif)}
.atp55-wheel-popup h2{margin:12px 0 14px;font-size:clamp(20px,4.5vw,27px);line-height:1.3;color:#f5e2b5}
.atp55-wheel-popup p{font-size:14px;line-height:1.6;color:#dceafa}
.atp55-popup-close{position:absolute;right:10px;top:10px;border:1px solid #4e6c88;background:#101f36;color:#eef6ff;border-radius:100px;width:34px;height:34px;font-size:24px;cursor:pointer}
.atp55-popup-gift{width:66px;height:66px;margin:0 auto;display:grid;place-items:center;border-radius:50%;border:2px solid #edbf64;background:radial-gradient(circle,#224d8d,#0b1d42);font-size:34px;color:#f9d38e;box-shadow:0 0 28px #3d94ff66}
.atp55-popup-tag{font-size:11px;letter-spacing:.14em;font-weight:700;color:#8cd3ff;margin-top:14px}
.atp55-wheel-popup .atp55-popup-expiry{color:#f3ce82;font-size:12px}
.atp55-popup-actions{display:flex;gap:10px;justify-content:center;margin-top:24px;flex-wrap:wrap}
.atp55-popup-actions button{min-width:135px;min-height:42px}
@media(max-width:420px){.atp55-popup-actions{flex-direction:column}.atp55-popup-actions button{width:100%}}
@media(prefers-reduced-motion:reduce){.atp55-wheel-popup{transition:none}}


/* V30.21.56 – Admin/Manager preview. Isolated modal, original dashboard theme. */
.atp56-form-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.atp56-preview-btn{white-space:normal}
.atp56-preview-overlay{position:fixed;inset:0;z-index:2147482500;padding:16px;display:grid;place-items:center;overflow-y:auto;overscroll-behavior:contain;background:rgba(2,8,20,.78);font-family:var(--body,'Be Vietnam Pro',system-ui,sans-serif)}
.atp56-preview-dialog{box-sizing:border-box;width:min(100%,1050px);max-height:min(92dvh,950px);overflow-y:auto;overscroll-behavior:contain;padding:clamp(16px,2.5vw,28px);background:radial-gradient(ellipse at 20% -10%,rgba(24,88,151,.33),transparent 60%),linear-gradient(150deg,#112339,#0b1726);border:1px solid #4b779e;border-radius:18px;color:#f1f6ff;box-shadow:0 18px 80px rgba(0,0,0,.56),0 0 28px rgba(21,120,224,.22)}
.atp56-preview-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
.atp56-preview-head h2{font-size:clamp(18px,3.5vw,25px);line-height:1.35;margin:5px 0 4px;color:#f2ddb0}
.atp56-preview-head p{font-size:12px;color:#b7cae0;margin:0;line-height:1.5}
.atp56-preview-eyebrow{color:#93d9ff;font-size:10px;letter-spacing:.12em;font-weight:800}
.atp56-preview-close{width:37px;height:37px;flex:0 0 37px;border-radius:50%;font-size:24px;color:#ecf6ff;background:#182c44;border:1px solid #587a9e;cursor:pointer}
.atp56-preview-info{color:#f0deb4;background:#27311f55;border:1px solid #9f813a;border-radius:9px;padding:10px 12px;font-size:12px;line-height:1.5;margin:14px 0}
.atp56-preview-content{display:grid;grid-template-columns:minmax(240px,1fr) minmax(220px,.8fr);gap:clamp(14px,3vw,26px);align-items:center}
.atp56-preview-wheel-col{display:grid;justify-items:center;gap:8px;min-width:0}
.atp56-preview-wheel-col .atp53-wheel-scene{width:min(100%,430px)}
.atp56-preview-side{display:grid;align-content:center;gap:11px;min-width:0}
.atp56-preview-side>strong{font-size:14px}
.atp56-preview-prizes{display:grid;gap:6px;max-height:210px;overflow-y:auto;padding-right:3px}
.atp56-preview-prize{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:7px 9px;border-radius:7px;background:rgba(15,43,75,.85);border:1px solid rgba(72,139,198,.5);font-size:12px;overflow-wrap:anywhere}
.atp56-preview-prize b{white-space:nowrap;color:#f1cb7b}
.atp56-preview-total{display:flex;justify-content:space-between;font-size:12px;padding:5px 2px}
.atp56-preview-invalid{font-size:12px;line-height:1.5;color:#ffe1df;background:#8b293044;border:1px solid #a55c65;border-radius:7px;padding:9px}
.atp56-preview-valid{font-size:12px;color:#bbf7d0}
.atp56-preview-result{min-height:44px;display:grid;align-items:center;background:#0b2b47;border:1px dashed #4c94ce;border-radius:8px;padding:10px;font-size:13px;line-height:1.5}
.atp56-preview-actions{display:flex;gap:10px;flex-wrap:wrap}
.atp56-preview-actions button{min-height:41px;flex:1 1 130px}
.atp56-preview-side .atp53-note{line-height:1.5;color:#c6d4e4}
@media(max-width:740px){.atp56-preview-dialog{max-height:calc(100dvh - 24px)}.atp56-preview-overlay{padding:12px}.atp56-preview-content{grid-template-columns:1fr}.atp56-preview-wheel-col .atp53-wheel-scene{width:min(100%,330px)}}
@media(max-width:430px){.atp56-preview-dialog{padding:14px}.atp56-preview-wheel-col .atp53-wheel-scene{width:min(100%,310px)}.atp56-preview-prizes{max-height:150px}}
@media(prefers-reduced-motion:reduce){.atp56-preview-wheel-col .atp53-wheel-disk{transition:none!important}}

/* V30.21.57: Active package choices, with explicit per-package offer readiness. */
.atp57-package-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:9px}
.atp57-package-option{display:flex!important;flex-direction:row!important;align-items:center;gap:10px!important;border:1px solid var(--edge,#334155);border-radius:10px;padding:11px 12px;background:var(--surface,#142033);cursor:pointer;min-width:0}
.atp57-package-option input{width:18px;height:18px;flex:0 0 auto}
.atp57-package-option span{min-width:0;display:grid;gap:3px}
.atp57-package-option strong{font-size:13px;line-height:1.3}
.atp57-package-option small{font-size:11px;line-height:1.4;color:#79d4ad}
.atp57-package-needs-setup{border-color:#987349}
.atp57-package-needs-setup small{color:#f3ca88}
.atp57-promo-help{margin:0;font-size:12px;line-height:1.6;color:var(--muted,#a9b8cd)}
@media(max-width:560px){.atp57-package-options{grid-template-columns:1fr}}
