.premium-plan-admin-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr));gap:16px; }
.premium-plan-grid { display:flex;gap:16px;align-items:flex-start; }
#premium-modal .premium-dialog { width:min(1000px,96vw);max-width:1000px; }
.premium-plan-card { position:relative;min-width:0;flex:var(--premium-card-weight,.75) 1 0;background:#111c27;border:1px solid #665839;border-radius:10px;overflow:hidden;aspect-ratio:var(--premium-card-ratio,3/4);box-sizing:content-box; }
.premium-plan-card .premium-plan-front,.premium-plan-card .premium-plan-back { position:absolute;inset:0;height:100%;width:100%;min-height:0;box-sizing:border-box; }
.premium-plan-card .premium-plan-back { overflow-y:auto; }
.premium-plan-front { display:block;width:100%;padding:0;background:linear-gradient(145deg,#29343d,#151c23);color:#fff;border:0;cursor:pointer; }
.premium-plan-front img { display:block;width:100%;height:100%;object-fit:contain; }
.premium-plan-back { padding:16px;animation:premium-card-reveal .25s ease-out;color:#fff; }
.premium-plan-back label { display:grid;gap:8px; }
.premium-plan-back select { width:100%;color:white;background:#1d2936;padding:8px;border:1px solid #665839; }
.premium-plan-back ul { padding-left:18px;margin:12px 0; }
.premium-plan-return { color:#fff;background:none;border:0;padding:0 0 16px;cursor:pointer; }
.premium-payment-placeholder { display:grid;gap:8px;padding:12px;background:#0b131b;margin-bottom:12px; }
.premium-payment-qr { width:140px;max-width:100%;height:auto;justify-self:center; }
.premium-payment-placeholder small { line-height:1.5;color:#c0c9d2; }
.premium-plan-message { color:#fff;white-space:pre-wrap; }
.premium-plan-admin-grid fieldset { min-width:0;padding:16px;border:1px solid #344358;border-radius:8px; }
#premium-plan-editor { padding:20px; }
#premium-plans-form { display:grid; gap:20px; }
.premium-plan-admin-grid fieldset { background:linear-gradient(145deg,rgba(50,42,27,.4),rgba(10,16,24,.8)); border-color:rgba(208,176,106,.26); }
.premium-plan-admin-grid legend { padding:0 8px; color:#d8bd80; font-weight:700; letter-spacing:.1em; }
.premium-plan-admin-heading { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-bottom:14px; }
.premium-plan-admin-heading strong { font-size:20px; color:white; }
.premium-plan-admin-heading>span { padding:4px 8px; background:rgba(109,190,149,.1); color:#9ee0bb; font-size:10px; border-radius:3px; }
.premium-base-notice { padding:14px; border:1px solid rgba(106,182,143,.28); border-radius:5px; background:rgba(60,116,87,.09); color:#dceee4; }
.premium-base-notice p { margin:7px 0 0; font-size:11px; line-height:1.6; }
.premium-feature-list { display:grid; gap:6px; margin-bottom:16px; }
.premium-feature-list .premium-toggle { margin:0; padding:6px 0; font-size:12px; }
.premium-toggle { position:relative; display:flex; align-items:center; justify-content:space-between; gap:12px; cursor:pointer; color:#eef3f1; padding:8px 0; }
.premium-toggle>span { min-width:0; line-height:1.5; }
.premium-toggle>input { position:absolute; right:0; width:44px; height:24px; opacity:0; cursor:pointer; margin:0; }
.premium-toggle>i { position:relative; width:44px; height:24px; flex:0 0 44px; border:1px solid #51636a; border-radius:20px; background:#202d35; pointer-events:none; transition:background .18s ease; }
.premium-toggle>i:before { content:''; position:absolute; left:3px; top:3px; width:16px; height:16px; border-radius:50%; background:#c9d4d6; transition:transform .18s ease; }
.premium-toggle>input:checked+i { background:#285f48; border-color:#66c497; }
.premium-toggle>input:checked+i:before { transform:translateX(20px); background:#e4fff0; }
.premium-toggle>input:focus-visible+i { outline:2px solid #9be0b7; outline-offset:3px; }
.premium-restrictions-switch { padding:16px; border:1px solid rgba(208,176,106,.28); border-radius:6px; background:rgba(0,0,0,.15); }
.premium-restrictions-switch small { display:block; margin-top:5px; max-width:760px; color:#a6b9b4; }
.premium-restrictions-switch>input { right:16px; }
.premium-appearance { margin-top:18px; border-top:1px solid rgba(208,176,106,.18); padding-top:12px; }
.premium-appearance summary { color:#d4bd8b; cursor:pointer; margin-bottom:12px; }
.premium-duration-editor { display:grid; gap:8px; margin-bottom:12px; }
.premium-duration-row { padding:10px; background:rgba(0,0,0,.18); border-radius:4px; }
#payment-settings-editor { padding:20px; }
.premium-preparation-badge { color:#dcc38e; border:1px solid rgba(208,176,106,.28); border-radius:4px; padding:8px 12px; font-size:11px; white-space:nowrap; }
.payment-settings-section { padding:18px 0; border-bottom:1px solid rgba(208,176,106,.18); }
.payment-settings-section h3 { color:#d6be86; margin:0 0 14px; }
.payment-fields,.payment-letter-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.payment-full-width { grid-column:1/-1; }
.payment-help,.payment-smtp-state { font-size:12px; line-height:1.7; color:#abbfba; }
.payment-help a { color:#caba91; }
.payment-letter { min-width:0; padding:16px; border:1px solid rgba(208,176,106,.22); border-radius:5px; background:rgba(0,0,0,.15); }
.payment-letter h4 { color:white; margin:0 0 12px; }
.payment-preview { padding:16px 0 0; }
.payment-preview iframe { display:block; width:100%; height:330px; border:1px solid #3c5147; border-radius:5px; margin-top:12px; background:#080e12; }
.payment-settings-actions { display:flex; flex-wrap:wrap; align-items:center; gap:14px; padding-top:20px; }
@media(max-width:760px){.payment-fields,.payment-letter-grid{grid-template-columns:1fr}.premium-preparation-badge{white-space:normal}.premium-restrictions-switch{align-items:flex-start}}
.premium-plan-admin-grid label { margin:8px 0; }
.premium-plan-admin-preview { width:100%;height:120px;object-fit:contain; }
.premium-plan-asset { display:grid;gap:8px;margin:16px 0;min-width:0; }
.premium-plan-admin-grid .premium-plan-asset>label { margin:0;display:grid;gap:6px; }
.premium-plan-asset-actions { display:flex;flex-wrap:wrap;gap:8px; }
.premium-plan-upload input { max-width:100%; }
.premium-plan-upload input::file-selector-button { color:#fff;background:#263b39;border:1px solid #516a60;border-radius:3px;padding:7px 10px;margin-right:8px;cursor:pointer; }
.premium-plan-asset-status { margin:0;color:#a8dfbf;font-size:12px;line-height:1.5;overflow-wrap:anywhere; }
.premium-plan-asset-status.is-error { color:#ffb4ad; }
.premium-plan-asset [hidden] { display:none!important; }
.premium-duration-row { display:grid;grid-template-columns:1fr 1fr 30px;gap:8px;align-items:end; }
.premium-duration-row label { min-width:0;display:grid;gap:4px; }
.premium-duration-row input { width:100%; }
.premium-plan-front[hidden],.premium-plan-back[hidden] { display:none; }
@keyframes premium-card-reveal { from { opacity:.3;transform:rotateY(-15deg); } to { opacity:1;transform:rotateY(0); } }
@media(max-width:1100px) { .premium-plan-admin-grid { grid-template-columns:1fr; } }
@media(max-width:650px) { .premium-plan-grid { flex-direction:column; }.premium-plan-card { flex:none;align-self:stretch; } }
@media(prefers-reduced-motion:reduce) { .premium-plan-back { animation:none; } }
