/* ── Flash app theme — copied 1:1 from flash-desktop's Flash.css so the
   website's login + billing pages look identical to the in-app screens
   (this site is only used for subscriptions/renewals, not marketing). ── */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --flash-orange: #ff6b35;
  --flash-teal:   #4ecdc4;
  --fl-font: 'IBM Plex Sans', 'Segoe UI', sans-serif;
}

.fl-page {
  min-height: 100vh;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  position: relative;
  overflow: hidden;
  font-family: var(--fl-font);
}

.fl-page--login {
  background-image:
    linear-gradient(180deg, rgba(10,10,10,0.55), rgba(10,10,10,0.8)),
    url('assets/flash-login-bg.png');
  background-size: cover;
  background-position: center;
}

.fl-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.25;
  pointer-events: none;
}
.fl-orb--1 { width: 380px; height: 380px; background: var(--flash-orange); top: -120px; left: -100px; }
.fl-orb--2 { width: 420px; height: 420px; background: var(--flash-teal);   bottom: -140px; right: -120px; }

.fl-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: #141414;
  border: 1px solid rgba(78,205,196,0.18);
  border-radius: 22px;
  padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
}

.fl-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  margin-bottom: 16px;
}
.fl-logo__icon { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; }
.fl-logo__mark {
  font-weight: 800;
  font-size: 1.05rem;
  background: linear-gradient(135deg, var(--flash-orange), var(--flash-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fl-logo__text { font-weight: 600; color: #ddd; font-size: 0.95rem; }

.fl-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--flash-teal);
  background: rgba(78,205,196,0.1);
  border: 1px solid rgba(78,205,196,0.25);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 10px;
}

.fl-title { font-size: 1.4rem; font-weight: 800; color: #f5f5f0; margin: 0 0 5px; }
.fl-sub   { font-size: 0.83rem; color: #999; margin: 0 0 14px; line-height: 1.45; }

.fl-field { margin-bottom: 10px; }
.fl-field label { display: block; font-size: 0.78rem; font-weight: 600; color: #bbb; margin-bottom: 5px; }
.fl-field input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: #f5f5f0;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
  font-family: inherit;
}
.fl-field input::placeholder { color: #555; }
.fl-field input:focus { border-color: rgba(78,205,196,0.45); background: rgba(255,255,255,0.07); }
.fl-field__hint { display: block; font-size: 0.74rem; color: #777; margin-top: 6px; }

.fl-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--flash-orange), var(--flash-teal));
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 11px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.fl-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(78,205,196,0.3); }
.fl-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.fl-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: #ccc;
}
.fl-btn--ghost:hover:not(:disabled) { border-color: rgba(78,205,196,0.4); color: #fff; box-shadow: none; transform: none; }

.fl-error {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  color: #f87171;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.8rem;
  margin-bottom: 16px;
  line-height: 1.5;
}
.fl-msg-ok {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
  color: #4ade80;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.8rem;
  margin-bottom: 16px;
}

.fl-foot { margin-top: 14px; text-align: center; font-size: 0.82rem; color: #888; }
.fl-foot a { color: var(--flash-teal); text-decoration: none; font-weight: 600; }
.fl-foot a:hover { text-decoration: underline; }

/* ── Device-limit prompt ─────────────────────────────────────────── */
.fl-device-list { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 18px; }
.fl-device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px 14px;
}
.fl-device-row__info strong { display: block; font-size: 0.84rem; color: #eee; }
.fl-device-row__info span   { font-size: 0.73rem; color: #888; }
.fl-device-row button {
  background: transparent;
  border: 1px solid rgba(255,107,53,0.35);
  color: var(--flash-orange);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}
.fl-device-row button:hover:not(:disabled) { background: rgba(255,107,53,0.1); }
.fl-device-row button:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── DASHBOARD ───────────────────────────────────────────────────── */
.fl-dash {
  min-height: 100vh;
  background: #0a0a0a;
  font-family: var(--fl-font);
}
.fl-dash__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fl-dash__main {
  max-width: 920px;
  margin: 0 auto;
  padding: 36px 24px 60px;
}

.fl-greet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}
.fl-greet h1 { font-size: 1.6rem; font-weight: 800; color: #f5f5f0; margin: 0 0 6px; }
.fl-greet p  { font-size: 0.86rem; color: #999; margin: 0; }

.fl-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(78,205,196,0.3);
  background: rgba(78,205,196,0.08);
  color: var(--flash-teal);
}

.fl-section {
  background: #141414;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 26px;
  margin-bottom: 22px;
}
.fl-section h2 { font-size: 1.05rem; font-weight: 700; color: #f5f5f0; margin: 0 0 4px; }
.fl-section > p { font-size: 0.8rem; color: #888; margin: 0 0 18px; }

.fl-current-plan {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 22px;
}
.fl-current-plan__info { display: flex; flex-direction: column; gap: 4px; }
.fl-current-plan__label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #888; }
.fl-current-plan__info h3 { font-size: 1.1rem; font-weight: 800; color: #f5f5f0; margin: 0; }
.fl-current-plan__sub { font-size: 0.78rem; color: var(--flash-teal); margin: 0; }

.fl-usage-bar-wrap { display: flex; flex-direction: column; gap: 8px; }
.fl-usage-bar {
  display: flex;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}
.fl-usage-bar__used { background: var(--flash-orange); transition: width 0.3s; }
.fl-usage-bar__remaining { background: rgba(255,255,255,0.14); transition: width 0.3s; }
.fl-usage-bar__label { font-size: 0.76rem; color: #999; margin: 0; }

/* ── Pricing / subscription plan grid ───────────────────────────── */
.fl-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
@media (max-width: 720px)  { .fl-pricing-grid { grid-template-columns: 1fr; } }

.fl-pricing-card {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s, transform 0.2s;
}
.fl-pricing-card:hover { border-color: rgba(78,205,196,0.3); transform: translateY(-2px); }
.fl-pricing-card--featured {
  border-color: var(--flash-teal);
  background: rgba(78,205,196,0.07);
}
.fl-pricing-card__badge {
  align-self: flex-start;
  background: var(--flash-teal);
  color: #06231f;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.fl-pricing-card h3 { font-size: 0.92rem; font-weight: 700; color: #f5f5f0; margin: 0; }
.fl-pricing-card__price { display: flex; align-items: baseline; gap: 4px; }
.fl-pricing-card__price strong { font-size: 1.5rem; font-weight: 800; color: var(--flash-teal); }
.fl-pricing-card__price span { font-size: 0.78rem; color: #888; }
.fl-pricing-card__billed { font-size: 0.74rem; color: #999; margin: 0; }
.fl-pricing-card__desc { font-size: 0.74rem; color: #777; margin: 0 0 6px; }
.fl-pricing-card .fl-btn, .fl-pricing-card .fl-btn--ghost { margin-top: auto; padding: 9px 14px; font-size: 0.8rem; }
.fl-pricing-card__tokens {
  align-self: flex-start;
  background: rgba(78,205,196,0.14);
  color: var(--flash-teal);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  margin: 2px 0 4px;
}

/* ── One-time token packs ───────────────────────────────────────── */
.fl-topup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 4px; }
@media (max-width: 600px) { .fl-topup-grid { grid-template-columns: 1fr; } }
.fl-topup-card {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.fl-topup-card--popular { border-color: rgba(78,205,196,0.3); }
.fl-topup-card__badge { font-size: 0.68rem; font-weight: 800; color: var(--flash-teal); background: rgba(78,205,196,0.12); border-radius: 999px; padding: 2px 8px; }
.fl-topup-card__desc { font-size: 0.78rem; font-weight: 700; color: #f5f5f0; }
.fl-topup-card__price { font-size: 1.3rem; font-weight: 900; color: var(--flash-orange); }
.fl-topup-card .fl-btn, .fl-topup-card .fl-btn--ghost { width: 100%; margin-top: 4px; padding: 7px 10px; font-size: 0.78rem; }

/* ── Billing cycle toggle ───────────────────────────────────────── */
.fl-cycle-toggle {
  display: inline-flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 18px;
}
.fl-cycle-toggle__btn {
  background: transparent;
  border: none;
  color: #999;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: inherit;
  padding: 7px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.fl-cycle-toggle__btn:hover { color: #ddd; }
.fl-cycle-toggle__btn--active {
  background: linear-gradient(135deg, var(--flash-orange), var(--flash-teal));
  color: #06231f;
}
.fl-cycle-toggle__save {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  background: rgba(78,205,196,0.15); color: var(--flash-teal);
  border-radius: 4px; font-size: 0.65rem; font-weight: 700; vertical-align: middle;
}

.fl-student-pack-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 28px 0 20px; color: #444; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
}
.fl-student-pack-divider::before,
.fl-student-pack-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.07); }

/* ── Toast ───────────────────────────────────────────────────────── */
.fl-toast {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translate(-50%, -8px);
  background: rgba(78,205,196,0.12);
  border: 1px solid rgba(78,205,196,0.3);
  color: var(--flash-teal);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 50;
}
.fl-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 720px) {
  .fl-dash__header { padding: 16px 18px; }
  .fl-dash__main { padding: 24px 16px 50px; }
}
