:root { --bg:#0a101b; --panel:#111b2c; --panel-2:#16243a; --line:#293a56; --text:#eef4ff; --muted:#9db0cf; --blue:#2f6fff; --blue-2:#1d55d4; --green:#19c78b; --amber:#f2b84b; --danger:#ef6b75; font-family: Inter, Segoe UI, Arial, sans-serif; color:var(--text); background:var(--bg); }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; min-height:100vh; background:radial-gradient(1100px 550px at 85% -10%, #15335b 0%, transparent 60%), var(--bg); }
button,input { font:inherit; }
button { cursor:pointer; }
.shell { width:min(1080px, calc(100% - 32px)); margin:0 auto; padding:24px 0 52px; }
.topbar { min-height:68px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); margin-bottom:42px; }
.brand { display:flex; align-items:center; gap:10px; font-size:21px; font-weight:800; }
.brand-mark { color:var(--amber); font-size:26px; }.account-menu { display:flex; gap:14px; align-items:center; color:var(--muted); font-size:14px; }
.auth-layout { min-height:480px; display:grid; grid-template-columns:1.2fr .8fr; gap:58px; align-items:center; }.eyebrow { color:#80a9ff; margin:0 0 10px; font-size:12px; font-weight:800; letter-spacing:.08em; }.intro h1,.dashboard-heading h1 { margin:0; font-size:42px; letter-spacing:0; }.intro > p:not(.eyebrow) { color:var(--muted); line-height:1.6; max-width:560px; }.beta-notice { margin-top:26px; border-left:3px solid var(--amber); padding:12px 14px; color:#dce6fa; background:#17233a; line-height:1.5; }
.panel { border:1px solid var(--line); background:rgba(17,27,44,.96); padding:22px; border-radius:8px; }.auth-panel { display:grid; gap:15px; }.auth-panel label { display:grid; gap:7px; color:#c7d6f0; font-size:13px; font-weight:700; }.auth-panel label[hidden] { display:none !important; }.auth-panel input { width:100%; padding:11px 12px; border:1px solid #355075; background:#0b1322; color:var(--text); border-radius:4px; outline:none; }.auth-panel input:focus { border-color:#6290ff; }.optional,.muted { color:var(--muted); font-weight:400; }.segmented { display:flex; border-bottom:1px solid var(--line); margin-bottom:4px; }.segmented button { background:none; border:0; color:var(--muted); padding:11px 12px; font-weight:700; }.segmented button.active { color:var(--text); border-bottom:2px solid var(--blue); }
.button { min-height:38px; padding:0 16px; border-radius:4px; border:1px solid transparent; font-weight:800; }.primary { color:white; background:var(--blue); }.primary:hover { background:var(--blue-2); }.secondary { color:#d9e6ff; background:#1c2e4c; border-color:#375984; }.ghost { background:transparent; color:#b6c7e4; border-color:#39506f; }.form-message { min-height:18px; margin:0; color:var(--danger); font-size:13px; }.form-message.ok { color:#82e0b9; }
.auth-link { justify-self:start; padding:0; border:0; background:transparent; color:#9fc0ff; font-size:13px; font-weight:700; text-decoration:underline; text-underline-offset:3px; }.auth-link:hover { color:#d4e3ff; }
.recovery-layout { min-height:500px; display:grid; place-items:center; }.recovery-panel { width:min(100%, 470px); display:grid; gap:15px; }.recovery-panel h1 { margin:0; font-size:30px; }.recovery-panel label { display:grid; gap:7px; color:#c7d6f0; font-size:13px; font-weight:700; }.recovery-panel input { width:100%; padding:11px 12px; border:1px solid #355075; background:#0b1322; color:var(--text); border-radius:4px; outline:none; }.recovery-panel input:focus { border-color:#6290ff; }
.password-dialog { width:min(460px, calc(100% - 28px)); padding:0; color:var(--text); border:1px solid #385271; border-radius:8px; background:#111b2c; box-shadow:0 24px 70px rgba(0,0,0,.55); }.password-dialog::backdrop { background:rgba(3,8,16,.7); }.password-dialog-card { display:grid; gap:14px; padding:22px; }.dialog-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }.dialog-heading h2 { margin:0; font-size:22px; }.dialog-close { width:30px; height:30px; padding:0; border:0; border-radius:4px; color:#b8c9e6; background:#1c2e4c; font-size:20px; line-height:1; }.password-dialog-card > .muted { margin:0; font-size:13px; line-height:1.45; }.password-dialog-card label { display:grid; gap:7px; color:#c7d6f0; font-size:13px; font-weight:700; }.password-dialog-card input { width:100%; padding:11px 12px; border:1px solid #355075; background:#0b1322; color:var(--text); border-radius:4px; outline:none; }.password-dialog-card input:focus { border-color:#6290ff; }.dialog-actions { display:flex; justify-content:flex-end; gap:8px; }
.danger { color:#fff; background:#9d2634; border-color:#ca5964; }.danger:hover { background:#bd3244; }
.admin-form { display:grid; grid-template-columns:1fr 1fr; gap:10px; }.admin-form label { display:grid; gap:5px; color:var(--muted); font-size:12px; font-weight:700; }.admin-form input { min-width:0; border:1px solid #355075; background:#0b1322; color:var(--text); padding:9px; border-radius:4px; }.admin-form .button,.admin-form .form-message { grid-column:1/-1; }.admin-actions { display:flex; flex-wrap:wrap; gap:8px; }.account-menu a { color:#b4cbff; font-size:13px; text-decoration:none; }
.dashboard-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }.dashboard-heading h1 { font-size:30px; }.badge { background:#193d34; color:#8cecc6; padding:7px 10px; font-size:12px; font-weight:800; border-radius:4px; }.stats-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:14px; }.stat { padding:18px; border:1px solid var(--line); background:var(--panel); border-radius:7px; display:grid; gap:6px; }.stat span,.stat small { color:var(--muted); font-size:12px; }.stat strong { font-size:21px; }.dashboard-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }.wide { grid-column:1/-1; }.section-title { display:flex; justify-content:space-between; margin-bottom:18px; }.section-title h2 { font-size:17px; margin:0 0 4px; }.section-title p { color:var(--muted); margin:0; font-size:13px; line-height:1.45; }.plans { display:grid; gap:10px; }.plan { border:1px solid #314868; background:#0d1728; padding:16px; display:grid; grid-template-columns:1fr auto; gap:7px 20px; align-items:center; }.plan h3,.plan p,.plan strong { margin:0; }.plan h3 { font-size:16px; }.plan-days { color:var(--muted); font-size:13px; }.plan-price { color:#8cecc6; }.plan .button { grid-column:2; grid-row:1/3; }.referral-code { display:flex; gap:8px; }.referral-code code { min-width:0; flex:1; padding:11px; background:#0b1322; color:#b4cbff; border:1px dashed #456891; overflow:hidden; text-overflow:ellipsis; }.table-wrap { overflow:auto; }table { width:100%; border-collapse:collapse; min-width:560px; }th,td { text-align:left; padding:11px 9px; border-bottom:1px solid #263753; font-size:13px; }th { color:#9db0cf; font-weight:700; }td { color:#e1eaff; }.status-approved { color:#8cecc6; }.status-pending { color:#f2c563; }.status-rejected,.status-refunded,.status-chargeback { color:#ff8a91; }
@media (max-width:760px) { .shell { width:min(100% - 24px, 620px); }.topbar { margin-bottom:25px; }.auth-layout,.dashboard-grid { grid-template-columns:1fr; gap:22px; }.intro h1 { font-size:32px; }.stats-grid { grid-template-columns:1fr; }.wide { grid-column:auto; }.account-menu span { display:none; } }
.dashboard-refresh { display:flex; align-items:center; gap:9px; flex-wrap:wrap; justify-content:flex-end; }
.dashboard-refresh .muted { font-size:12px; }
.referral-stats { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; margin-top:16px; }.referral-stats > div { border:1px solid #2a4263; background:#0d1728; padding:10px; display:grid; gap:4px; }.referral-stats span { color:var(--muted); font-size:11px; }.referral-stats strong { color:#dce8ff; font-size:18px; }.referral-list-wrap { margin-top:15px; }.referral-list-title { margin:0 0 7px; color:#cbdaf3; font-size:12px; font-weight:800; }.referral-list { list-style:none; margin:0; padding:0; border-top:1px solid #263753; max-height:146px; overflow:auto; }.referral-list li { min-height:34px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid #263753; color:#dce8ff; font-size:12px; }.referral-list li > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.referral-list small { text-align:right; white-space:nowrap; font-size:11px; }.referral-ready { color:#8cecc6; }
.resume-checkout { min-height:30px; padding:0 9px; white-space:nowrap; font-size:12px; }
.public-overview { grid-column:1/-1; margin-top:34px; padding-top:42px; border-top:1px solid var(--line); }.overview-heading { max-width:660px; }.overview-heading h2 { margin:0; font-size:28px; }.overview-heading > p:not(.eyebrow) { margin:10px 0 0; color:var(--muted); line-height:1.6; }.feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:24px; }.feature-card { min-height:168px; border:1px solid var(--line); background:#0e1828; padding:16px; }.feature-index { color:#80a9ff; font-size:11px; font-weight:800; }.feature-card h3 { margin:20px 0 8px; font-size:15px; }.feature-card p { margin:0; color:var(--muted); font-size:13px; line-height:1.5; }.public-flow { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:28px; padding:20px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }.public-flow > div { display:grid; grid-template-columns:30px 1fr; gap:2px 9px; align-items:center; }.public-flow span { grid-row:1/3; display:grid; place-items:center; width:28px; height:28px; border:1px solid #3e6291; color:#aecdff; font-size:12px; font-weight:800; }.public-flow strong { font-size:14px; }.public-flow small { color:var(--muted); font-size:12px; line-height:1.35; }.public-note { margin:18px 0 0; color:#c9d8ef; font-size:13px; line-height:1.55; }
.light-client-callout { display:grid; gap:4px; margin-top:18px; padding:13px 15px; border-left:3px solid var(--green); background:#102b2b; color:#d8f7ec; }.light-client-callout strong { font-size:14px; }.light-client-callout span { color:#b7dccc; font-size:13px; line-height:1.45; }
.product-preview { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-top:18px; padding:17px 18px; border:1px solid #2b4262; background:#0d1728; }.product-preview h3 { margin:0; font-size:18px; }.product-preview p:not(.eyebrow) { margin:6px 0 0; color:var(--muted); font-size:13px; line-height:1.45; }.product-preview .button { flex:0 0 auto; white-space:nowrap; }.product-gallery-dialog { width:min(1060px, calc(100% - 32px)); max-height:88vh; padding:0; border:1px solid #385271; border-radius:8px; color:var(--text); background:#111b2c; box-shadow:0 24px 70px rgba(0,0,0,.62); }.product-gallery-dialog::backdrop { background:rgba(3,8,16,.8); }.product-gallery-dialog-card { max-height:88vh; overflow:auto; padding:22px; }.gallery-dialog-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }.gallery-dialog-heading h2 { margin:0; font-size:24px; }.product-gallery-dialog-card > .muted { margin:9px 0 18px; font-size:13px; }.gallery-modal-grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:12px; }.gallery-modal-card { display:grid; gap:8px; min-width:0; padding:9px; border:1px solid #304968; border-radius:6px; background:#0b1322; color:#eaf2ff; text-decoration:none; font-size:12px; font-weight:800; }.gallery-modal-card img { display:block; width:100%; height:238px; object-fit:contain; object-position:top center; background:#070d18; }.gallery-modal-card:hover { border-color:#5c88c1; }.gallery-modal-card:focus-visible { outline:2px solid #88adff; outline-offset:2px; }
.public-download-card { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px 16px; align-items:center; margin-top:16px; padding:14px 15px; border:1px solid #365277; background:#101f34; }.public-download-card > div { display:grid; gap:4px; }.public-download-card strong { font-size:14px; }.public-download-card span { color:var(--muted); font-size:12px; }.public-download-card .form-message { grid-column:1/-1; }
@media (max-width:900px) { .feature-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:760px) { .product-preview { align-items:flex-start; flex-direction:column; }.product-preview .button { width:100%; }.product-gallery-dialog { width:min(100% - 20px, 680px); }.product-gallery-dialog-card { padding:16px; }.gallery-modal-grid { grid-template-columns:repeat(2, minmax(0,1fr)); }.gallery-modal-card img { height:190px; } }
.badge-expired { background:#48371f; color:#f2c563; }
.badge-blocked { background:#48212a; color:#ff9aa2; }
.admin-actions input { min-width:260px; min-height:38px; padding:8px 10px; border:1px solid #355075; background:#0b1322; color:var(--text); border-radius:4px; }
.support-grid { margin-top:18px; }.support-grid h3 { margin:0 0 10px; font-size:14px; color:#d9e6ff; }.support-grid .table-wrap { min-width:0; }.support-grid table { min-width:440px; }
.plan-toolbar { display:flex; align-items:end; gap:10px; flex-wrap:wrap; margin:-4px 0 16px; }
.plan-toolbar label { display:grid; gap:5px; flex:1; min-width:240px; color:var(--muted); font-size:12px; font-weight:700; }
.plan-toolbar select,.admin-form select { width:100%; min-width:0; border:1px solid #355075; background:#0b1322; color:var(--text); padding:9px; border-radius:4px; }
.check-label { align-self:end; min-height:38px; display:flex !important; align-items:center; gap:8px; color:#d7e4fb !important; }
.check-label input { min-width:auto; }.plan-actions { grid-column:1/-1; }.plan-actions .button { grid-column:auto; }
.plan-price-old { color:#9db0cf; text-decoration:line-through; font-size:12px; }
.plan-price-sale { color:#ffe4a3; font-size:18px; }.plan-sale-badge { width:max-content; color:#12221c; background:#8cecc6; padding:3px 6px; border-radius:3px; font-size:11px; font-weight:800; }
.plan-offer-countdown { grid-column:1; color:#ffd68c; font-size:12px; font-weight:800; }
.dashboard-grid { grid-template-areas:"plans referrals" "download download" "history history"; }
.dashboard-grid > .panel:nth-child(1) { grid-area:plans; }
.dashboard-grid > .panel:nth-child(2) { grid-area:download; }
.dashboard-grid > .panel:nth-child(3) { grid-area:referrals; }
.dashboard-grid > .panel:nth-child(4) { grid-area:history; }
.download-panel { padding:18px 22px; }
.download-panel .section-title { margin-bottom:12px; }
.download-card { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 16px; border:1px solid #314868; background:#0d1728; }
@media (max-width:760px) { .dashboard-grid { grid-template-areas:"plans" "referrals" "download" "history"; } }
.download-card > div { display:grid; gap:5px; min-width:0; }.download-card strong { font-size:16px; }.download-card small { color:var(--muted); font-size:12px; }.download-panel .form-message { margin-top:10px; }
.admin-guard { width:min(100%, 560px); margin:70px auto; }.admin-guard h1 { margin:0 0 10px; font-size:25px; }.admin-guard .button { display:inline-flex; align-items:center; margin-top:12px; text-decoration:none; }
.release-panel { width:min(100%, 680px); }.release-current { display:grid; gap:5px; padding:15px; border:1px solid #314868; background:#0d1728; margin-bottom:16px; }.release-current span,.release-current small { color:var(--muted); font-size:12px; }.release-current strong { font-size:18px; }.release-form { display:grid; gap:13px; }.release-form label { display:grid; gap:7px; color:#c7d6f0; font-size:13px; font-weight:700; }.release-form input { width:100%; padding:11px 12px; border:1px solid #355075; background:#0b1322; color:var(--text); border-radius:4px; }.release-form input[type=file] { padding:8px; }

/* Mobile: preserve the same flows while giving each action its own row. */
@media (max-width:600px) {
  .shell { width:calc(100% - 28px); padding:16px 0 36px; }
  .topbar { min-height:56px; margin-bottom:28px; gap:12px; }
  .brand { gap:8px; font-size:18px; white-space:nowrap; }
  .brand-mark { font-size:22px; }
  .account-menu { gap:8px; }
  .account-menu .button { min-height:34px; padding:0 11px; }

  .auth-layout { min-height:0; gap:26px; }
  .intro h1 { font-size:34px; line-height:1.1; }
  .intro > p:not(.eyebrow) { margin-bottom:0; }
  .beta-notice { margin-top:20px; }
  .public-download-card { grid-template-columns:1fr; }.public-download-card .button { width:100%; }
  .panel { padding:17px; }
  .auth-panel { gap:13px; }
  .recovery-layout { min-height:420px; }
  .recovery-panel h1 { font-size:27px; }
  .password-dialog-card { padding:18px; }
  .dialog-actions { flex-direction:column-reverse; }
  .dialog-actions .button { width:100%; }
  .segmented button { flex:1; padding:10px 8px; }
  .auth-panel .button { width:100%; }

  .public-overview { margin-top:28px; padding-top:30px; }
  .overview-heading h2 { font-size:24px; line-height:1.18; }
  .product-preview { margin-top:14px; padding:15px; }.product-preview h3 { font-size:17px; }.gallery-modal-grid { grid-template-columns:1fr; }.gallery-modal-card img { height:230px; }
  .feature-grid, .public-flow { grid-template-columns:1fr; gap:10px; }
  .feature-card { min-height:0; padding:15px; }
  .feature-card h3 { margin-top:14px; }
  .public-flow { margin-top:20px; padding:16px 0; }
  .public-note { margin-top:15px; }

  .dashboard-heading { align-items:flex-start; gap:12px; flex-direction:column; }
  .dashboard-heading h1 { font-size:27px; }
  .stats-grid { gap:10px; min-width:0; }
  .stat { min-width:0; max-width:100%; padding:15px; }
  .dashboard-grid { min-width:0; gap:10px; }
  .dashboard-grid > *, .dashboard-grid .panel { min-width:0; max-width:100%; }
  .section-title { align-items:flex-start; flex-direction:column; gap:12px; margin-bottom:15px; }
  .dashboard-refresh { width:100%; justify-content:space-between; }
  .dashboard-refresh .button { flex:0 0 auto; }

  .plans, .plan { min-width:0; max-width:100%; }
  .download-card { align-items:stretch; flex-direction:column; }.download-card .button { width:100%; }
  .plan { width:100%; grid-template-columns:minmax(0, 1fr); gap:8px; padding:14px; }
  .plan h3, .plan p, .plan strong { min-width:0; overflow-wrap:anywhere; }
  .plan .button { width:100%; min-width:0; max-width:100%; grid-column:1; grid-row:auto; margin-top:4px; }
  .referral-code { min-width:0; max-width:100%; align-items:stretch; flex-direction:column; }
  .referral-code code, .referral-code .button { min-width:0; max-width:100%; }
  .referral-code .button { width:100%; }
  .referral-stats { grid-template-columns:1fr; }
  .referral-list li { align-items:flex-start; flex-direction:column; gap:3px; padding:8px 0; }
  .referral-list small { text-align:left; }
  .table-wrap { width:100%; max-width:100%; margin:0; padding:0 0 4px; overflow-x:auto; }
  table { min-width:520px; }
}

@media (max-width:370px) {
  .shell { width:calc(100% - 20px); }
  .panel { padding:13px; }
  .brand { font-size:16px; }
  .intro h1 { font-size:30px; }
  .dashboard-refresh { align-items:stretch; flex-direction:column; }
  .dashboard-refresh .button { width:100%; }
}
.license-remaining { color:#6ee7b7 !important; font-weight:800; }
.license-remaining.is-urgent { color:#ff8a91 !important; }
