/* RAFAELA premium look (near-black + electric purple). Loaded last: restyles the header, the Create page and the shared member area. No behaviour lives here. */
body.theme-light {
  --bg: #09090D;
  --sidebar: #0c0c12;
  --card: #14141c;
  --card-hover: #1a1a25;
  --field: #0D0D15;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #F8F8FC;
  --text-soft: #dcdce8;
  --muted: #9696AD;
  --subtle: #7d7d96;
  --primary: #8738F5;
  --primary-hover: #A855F7;
  --primary-soft: rgba(135, 56, 245, 0.16);
  --gradient: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
}

/* ---------- header ---------- */
.theme-light .sitebar { background: rgba(9, 9, 13, .86); border-bottom: 1px solid rgba(135, 56, 245, .18); }
.site-brand { padding: 0; }
.brand-logo { display: block; width: auto; max-width: none; object-fit: contain; }
.brand-logo-site { height: 56px; margin: 4px 0; }
.brand-logo-admin { height: 38px; width: auto; max-width: 100%; }
.brand-logo-auth { height: 64px; width: auto; max-width: 100%; }
.brand-text-admin { display: block; }
.brand-text-admin small { display: block; font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
.site-link.active, .site-menu.active > .site-menu-btn { background: rgba(135, 56, 245, .2); color: #fff; }
@media (max-width: 900px) { .brand-logo-site { height: 40px; margin: 4px 0; } }

/* ---------- Create page container ---------- */
.theme-light .gen-panel { background: #101018; border: 1px solid rgba(135, 56, 245, .22); border-radius: 26px; padding: 30px 30px 32px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .02) inset, 0 30px 90px -40px rgba(135, 56, 245, .55); }
.theme-light .gen-panel.gen-wide { max-width: 1040px; }
.gen-intro { align-items: flex-start; margin: 0 0 22px; }
.gen-kicker { font-size: 13.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: #A855F7; margin: 0 0 8px; }
.theme-light .gen-title { font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; color: #F8F8FC; }
.gen-accent { color: #A855F7; background: linear-gradient(90deg, #9b4dff, #c084fc); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.theme-light .gen-lead { margin: 10px 0 0; font-size: clamp(15px, 2vw, 19px); color: #9696AD; }
.gen-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 12px; border: 1px solid rgba(135, 56, 245, .7); background: rgba(135, 56, 245, .1); color: #F8F8FC; font-size: 14px; font-weight: 700; }
.gen-pill::before { content: ""; width: 18px; height: 18px; flex: none; background: #A855F7; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 8l4.5 4L12 5l4.5 7L21 8l-2 10H5L3 8z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 8l4.5 4L12 5l4.5 7L21 8l-2 10H5L3 8z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------- Auto Generate / Manual Setup cards ---------- */
.theme-light .mode-switch { gap: 16px; padding: 0; border: 0; background: transparent; margin: 0 0 12px; }
.theme-light .mode-tab { flex-direction: row; align-items: center; gap: 16px; padding: 18px 22px; min-height: 84px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 16px; background: #171720; color: #9696AD; }
.theme-light .mode-tab:hover { background: #1c1c28; border-color: rgba(135, 56, 245, .45); }
.theme-light .mode-tab.is-on { background: linear-gradient(100deg, #6a2bf0 0%, #8738F5 45%, #a855f7 100%); border-color: rgba(192, 132, 252, .75); box-shadow: 0 14px 34px -16px rgba(135, 56, 245, 1); color: #fff; }
.mt-ico { flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: #c4b5fd; }
.mt-ico .icon { width: 24px; height: 24px; }
.mode-tab.is-on .mt-ico { background: rgba(255, 255, 255, .2); color: #fff; }
.mt-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.theme-light .mode-tab strong { font-size: 19px; font-weight: 700; color: #F8F8FC; }
.theme-light .mode-tab small { font-size: 14px; color: #9696AD; line-height: 1.3; }
.theme-light .mode-tab.is-on small { color: rgba(255, 255, 255, .85); }
.theme-light .mode-help { margin: 0 2px 20px; color: #8e8ea8; font-size: 13.5px; }

/* ---------- fields ---------- */
.theme-light .gen-panel .g-input { background: #0D0D15; border: 1px solid rgba(255, 255, 255, .11); border-radius: 14px; padding: 15px 20px; font-size: 16.5px; color: #F8F8FC; }
.theme-light .gen-panel .g-input::placeholder { color: #6f6f88; }
.theme-light .gen-panel .g-input:focus { border-color: #8738F5; box-shadow: 0 0 0 3px rgba(135, 56, 245, .24); }
.theme-light .gen-panel .g-area { border-radius: 14px; }
.theme-light .gen-panel .g-select { background-color: #0D0D15; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239696AD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.theme-light .gen-panel .g-label { font-size: 15px; font-weight: 650; color: #F8F8FC; }
.theme-light .gen-panel .g-label.small { font-size: 13px; color: #9696AD; font-weight: 600; }
.theme-light .gen-panel .g-help { color: #8e8ea8; }
.theme-light .gen-panel .lp-top { margin-bottom: 16px; }
.theme-light .gen-panel .lp-qty { min-width: 200px; width: auto; padding-top: 12px; padding-bottom: 12px; }

/* ---------- Landing Page cards ---------- */
.theme-light .lp-cards { gap: 18px; }
.theme-light .lp-card { background: #171720; border: 1px solid rgba(255, 255, 255, .08); border-radius: 20px; padding: 24px 26px 26px; gap: 14px; }
.theme-light .lp-card.has-error { border-color: rgba(248, 113, 113, .7); }
.theme-light .lp-name { font-size: clamp(20px, 2.6vw, 25px); font-weight: 750; letter-spacing: -.01em; color: #F8F8FC; }
.theme-light .lp-lbl { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #9696AD; margin: 4px 0 8px 2px; }
.theme-light .lp-card .g-input { padding: 16px 22px; font-size: 17px; }
.theme-light .lp-prev { display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border: 1px solid #8738F5; border-radius: 12px; background: transparent; color: #c084fc; font-size: 15px; font-weight: 650; }
.theme-light .lp-prev:hover { background: rgba(135, 56, 245, .16); color: #e9d5ff; }
.lp-eye { flex: none; }
.theme-light .lp-sel { gap: 14px; margin-top: 4px; }
.lp-selbox, .theme-light .lp-colbox { position: relative; display: block; }
.lp-ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: #A855F7; display: inline-flex; pointer-events: none; z-index: 1; }
.theme-light .lp-sel .g-select { padding-left: 52px; padding-top: 14px; padding-bottom: 14px; font-size: 16px; font-weight: 500; }
.theme-light .lp-colbox .pl-dot { position: absolute; left: 46px; top: 50%; transform: translateY(-50%); z-index: 1; width: 12px; height: 12px; pointer-events: none; }
.theme-light .lp-colbox .g-select { padding-left: 70px; }
.theme-light .lp-actions { margin-top: 18px; }
.theme-light .lp-result { border-top-color: rgba(255, 255, 255, .1); }

/* ---------- section cards under the LP cards (logo, SEO, custom assets, advanced) ---------- */
.theme-light .gen-panel #logoBox, .theme-light .gen-panel #localeBox, .theme-light .gen-panel #manualAssets, .theme-light .gen-panel #advBox { background: #14141c; border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; padding: 20px 22px; margin: 18px 0; }
.theme-light .gen-panel #logoBox > .g-label:first-child, .theme-light .gen-panel #localeBox > .g-label:first-child, .theme-light .gen-panel #manualAssets > .g-label:first-child { font-size: 17px; font-weight: 700; }
.theme-light .gen-panel .asset-tile, .theme-light .gen-panel .drow { background: #171720; border-color: rgba(255, 255, 255, .09); border-radius: 14px; }
.theme-light .gen-panel .g-radio-dot { border-color: rgba(255, 255, 255, .4); }
.theme-light .gen-panel .g-radio input:checked + .g-radio-dot { border-color: #A855F7; }
.theme-light .gen-panel .g-radio input:checked + .g-radio-dot::after { background: #A855F7; }
.theme-light .gen-panel .at-seg button.is-on { background: var(--gradient); }
.theme-light .gen-panel .button-secondary { background: transparent; border: 1px solid rgba(135, 56, 245, .6); color: #d8b4fe; border-radius: 12px; }
.theme-light .gen-panel .button-secondary:hover { background: rgba(135, 56, 245, .16); color: #fff; }

/* ---------- credit box + Generate button ---------- */
.theme-light .gen-panel #creditBox { background: #14141c; border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; }
.theme-light .gen-panel .g-btn { min-height: 64px; padding: 16px 24px; border-radius: 18px; font-size: 19px; font-weight: 700; letter-spacing: .005em; background: linear-gradient(100deg, #6a2bf0 0%, #8738F5 50%, #a855f7 100%); box-shadow: 0 18px 44px -16px rgba(135, 56, 245, .95), 0 0 0 1px rgba(192, 132, 252, .3) inset; }
.theme-light .gen-panel .g-btn:hover { filter: brightness(1.1); box-shadow: 0 22px 52px -14px rgba(168, 85, 247, 1), 0 0 0 1px rgba(216, 180, 254, .4) inset; }
.theme-light .gen-panel .g-btn:focus-visible { outline: 3px solid rgba(216, 180, 254, .7); outline-offset: 3px; }
.theme-light .gen-panel .g-btn .icon { width: 22px; height: 22px; }
.theme-light .gen-panel .g-btn.is-loading, .theme-light .gen-panel .g-btn[aria-busy="true"] { opacity: .8; }

/* ---------- other member pages: the same purple ---------- */
.theme-light .button-primary { background: var(--gradient); }
.theme-light .card { border-color: rgba(255, 255, 255, .09); }

/* ---------- phones ---------- */
@media (max-width: 720px) {
  .theme-light .gen-panel { padding: 20px 14px 24px; border-radius: 20px; }
  .theme-light .mode-switch { grid-template-columns: 1fr; gap: 10px; }
  .theme-light .mode-tab { padding: 14px 16px; min-height: 72px; }
  .mt-ico { width: 44px; height: 44px; border-radius: 12px; }
  .theme-light .mode-tab strong { font-size: 17px; }
  .theme-light .lp-card { padding: 18px 14px 20px; border-radius: 16px; }
  .theme-light .lp-card .g-input { font-size: 16px; padding: 14px 16px; }
  .theme-light .lp-sel { grid-template-columns: 1fr; }
  .gen-intro { gap: 12px; }
  .theme-light .gen-panel .g-btn { font-size: 17px; min-height: 58px; }
}

/* subscription card (traffic dashboard + account) */
.ca-card { border: 1px solid rgba(135, 56, 245, .35); border-radius: 20px; background: linear-gradient(180deg, rgba(135, 56, 245, .10), #14141c 55%); padding: 22px 24px; margin: 0 0 18px; display: grid; gap: 14px; }
.ca-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.ca-kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #A855F7; font-weight: 650; }
.ca-card-title { margin: 2px 0 0; font-size: 20px; font-weight: 750; color: #F8F8FC; }
.ca-state { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 650; border: 1px solid rgba(255, 255, 255, .15); color: #dcdce8; background: rgba(255, 255, 255, .05); }
.ca-state.is-ok { color: #6ee7b7; border-color: rgba(52, 211, 153, .5); background: rgba(52, 211, 153, .1); }
.ca-state.is-wait { color: #fcd34d; border-color: rgba(251, 191, 36, .5); background: rgba(251, 191, 36, .1); }
.ca-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 24px; margin: 0; }
.ca-dl dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #9696AD; }
.ca-dl dd { margin: 2px 0 0; font-size: 17px; color: #F8F8FC; }
.ca-meter { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ca-meter span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #7C3AED, #A855F7); }
.ca-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ca-actions form { margin: 0; }
.ca-limit-note { margin: 0 0 12px; }

/* manual payment page */
.pay-how { text-align: left; margin: 16px 0; padding: 14px 16px; border: 1px solid rgba(135, 56, 245, .35); border-radius: 14px; background: rgba(135, 56, 245, .08); }

