:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --blue: #3b82f6;
  --blue-deep: #2563eb;
  --blue-soft: #eff6ff;
  --gold: #3b82f6;
  --gold-deep: #2563eb;
  --ok: #059669;
  --warn: #d97706;
  --danger: #dc2626;
  --side: #ffffff;
  --side-muted: #6b7280;
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --display: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --shadow: 0 1px 2px rgba(17,24,39,.04), 0 8px 24px rgba(17,24,39,.06);
  --shadow-sm: 0 1px 3px rgba(17,24,39,.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body, body.fg, body.fenda {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }
img { max-width: 100%; display: block; }
h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.01em;
}

.f-btn, .fg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff !important;
  font: 600 .95rem/1 var(--font);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: .15s ease;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(37,99,235,.25);
}
.f-btn:hover, .fg-btn:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}
.f-btn.secondary, .f-btn.ghost, .fg-btn.ghost {
  background: #fff;
  color: var(--ink) !important;
  border-color: var(--line);
  box-shadow: none;
}
.f-btn.secondary:hover, .f-btn.ghost:hover, .fg-btn.ghost:hover {
  background: var(--blue-soft);
  border-color: #bfdbfe;
  color: var(--blue-deep) !important;
}
.f-btn.danger { background: var(--danger); border-color: var(--danger); }
.f-btn.sm { min-height: 36px; padding: 0 12px; font-size: .82rem; }
.f-btn:disabled { opacity: .65; cursor: not-allowed; }

.f-input, .f-select, .f-textarea, .fg-input, .fg-select {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-sm);
  font: 500 .95rem/1.3 var(--font);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.f-input:focus, .f-select:focus, .f-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.f-label, .fg-label {
  display: block;
  margin-bottom: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0;
  text-transform: none;
}
.f-field { margin-bottom: 14px; }

.f-alert {
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  background: #fff;
  border-radius: var(--radius-sm);
}
.f-alert.error { border-left-color: var(--danger); background: #fef2f2; }
.f-alert.success { border-left-color: var(--ok); background: #ecfdf5; }
.f-alert.warn { border-left-color: var(--warn); background: #fffbeb; }

.badge {
  display: inline-block;
  padding: 4px 9px;
  border: 0;
  font-size: .72rem;
  font-weight: 700;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
}
.badge.ok { color: #047857; background: #d1fae5; }
.badge.warn { color: #b45309; background: #fef3c7; }
.badge.danger { color: #b91c1c; background: #fee2e2; }
.mono { font-family: var(--mono); font-size: .86rem; word-break: break-all; }
.muted { color: var(--muted); }
.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  background: #fff;
  border-radius: var(--radius);
}

/* Shell / sidebar estilo PlayFiver */
.f-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.f-side {
  background: var(--side);
  color: var(--ink);
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  border-right: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.f-brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -.02em;
  margin: 4px 10px 22px;
  color: var(--ink);
}
.f-brand span, .f-brand em, .brand b {
  color: var(--blue);
  font-style: normal;
}
.f-nav a {
  display: block;
  padding: 11px 12px;
  margin-bottom: 2px;
  color: var(--side-muted);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  border: 0;
}
.f-nav a:hover {
  background: #f9fafb;
  color: var(--ink);
}
.f-nav a.active {
  background: var(--blue-soft);
  color: var(--blue-deep);
  box-shadow: inset 3px 0 0 var(--blue);
  padding-left: 14px;
}
.nav-section {
  margin: 16px 12px 8px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9ca3af;
}
.side-user {
  margin-top: 24px;
  padding: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
}

.phone-row { display: grid; grid-template-columns: 96px 1fr; gap: 8px; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
  color: var(--muted);
  font-size: .85rem;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.terms-note {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 14px 0 0;
}

.f-main { padding: 28px 32px 56px; max-width: 1400px; }
.f-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.f-title {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0;
  text-transform: none;
}
.f-sub { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }

.f-grid { display: grid; gap: 14px; grid-template-columns: repeat(12, 1fr); }
.f-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.f-card.stat-blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: 0;
  color: #fff;
}
.f-card.stat-blue .stat-label,
.f-card.stat-blue .muted { color: rgba(255,255,255,.85); }
.f-card.stat-blue .stat-value { color: #fff; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }
.stat-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}
.stat-value {
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-top: 8px;
}

.f-table { width: 100%; border-collapse: collapse; }
.f-table th, .f-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.f-table th {
  font-size: .75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}
.f-table tr:hover td { background: #f9fafb; }
.table-wrap { overflow-x: auto; }

.key-box {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  background: #111827;
  color: #f9fafb;
  padding: 14px;
  border-radius: var(--radius-sm);
}
.key-box .mono { color: #f9fafb; }
.actions-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.mobile-bar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  color: var(--ink);
  padding: 12px 16px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.mobile-bar button {
  background: var(--blue-soft);
  border: 1px solid #bfdbfe;
  color: var(--blue-deep);
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

/* Auth — card central estilo SaaS */
.auth-wrap,
.auth-wrap.auth-center {
  min-height: 100vh;
  height: auto;
  display: grid;
  place-items: center;
  grid-template-columns: 1fr;
  padding: 32px 16px;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(59,130,246,.12), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(37,99,235,.08), transparent 50%),
    var(--bg);
  overflow: auto;
}
.auth-visual { display: none; }
.auth-panel {
  width: 100%;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  height: auto;
  overflow: visible;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px 28px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.auth-card .auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -.02em;
  color: var(--ink);
}
.auth-card .auth-logo span { color: var(--blue); }
.auth-card h1 {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.02em;
  text-transform: none;
  margin: 0 0 6px;
  text-align: center;
}
.auth-card > .muted.lead {
  text-align: center;
  margin: 0 0 22px;
}
.auth-card .link-row {
  display: flex;
  justify-content: flex-end;
  margin: -6px 0 16px;
  font-size: .88rem;
}
.auth-card .link-row a { font-weight: 600; }

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(17,24,39,.45);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.show { display: flex; }
.modal-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
  animation: up .25s ease both;
}
.modal-card h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -.02em;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.modal-close:hover { color: var(--ink); }
#verifyCode {
  text-align: center;
  font-size: 1.4rem;
  letter-spacing: .28em;
  font-family: var(--mono);
}
.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -.02em;
  color: #fff;
}

/* Landing */
.land { background: #0f172a; color: #f8fafc; }
.land-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5vw;
}
.land-nav a {
  color: rgba(248,250,252,.88);
  font-weight: 600;
  font-size: .9rem;
  text-transform: none;
  letter-spacing: 0;
}
.land-nav a:hover { color: #fff; }
.land-nav .links { display: flex; gap: 16px; align-items: center; }
.land-nav .brand { color: #fff; }
.land-nav .brand b { color: #60a5fa; }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 5vw 8vh;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(15,23,42,.88) 0%, rgba(15,23,42,.55) 45%, rgba(15,23,42,.9) 100%),
    url("https://images.unsplash.com/photo-1511512578047-dfb367046420?auto=format&fit=crop&w=2000&q=80") center/cover;
  animation: zoomOut 14s ease-out forwards;
}
.hero-bg::after { display: none; }
.hero-copy { position: relative; z-index: 1; max-width: 780px; }
.hero-copy .brand-xl {
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: .95;
  margin: 0 0 16px;
  animation: up .7s ease both;
  text-transform: none;
}
.hero-copy .brand-xl b { color: #60a5fa; }
.hero-copy h1 {
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-weight: 600;
  margin: 0 0 12px;
  max-width: 22ch;
  animation: up .7s .08s ease both;
  text-transform: none;
  letter-spacing: -.01em;
}
.hero-copy p {
  margin: 0;
  max-width: 42ch;
  color: rgba(248,250,252,.75);
  font-size: 1.05rem;
  animation: up .7s .14s ease both;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  animation: up .7s .2s ease both;
}
.hero .f-btn, .hero .fg-btn { border-color: var(--blue); }
.hero .f-btn.secondary, .hero .fg-btn.ghost {
  color: #fff !important;
  border-color: rgba(255,255,255,.35);
  background: transparent;
}
.hero .f-btn.secondary:hover, .hero .fg-btn.ghost:hover {
  background: #fff;
  color: var(--ink) !important;
}

.section { padding: 68px 5vw; background: var(--bg); color: var(--ink); }
.section.ink { background: #0f172a; color: #f8fafc; }
.section h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 10px;
  text-transform: none;
}
.section .lead { color: var(--muted); max-width: 48ch; margin: 0 0 28px; }
.section.ink .lead { color: #94a3b8; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; border: 0; }
.steps article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.steps .n { font-family: var(--display); font-size: 1.6rem; color: var(--blue); font-weight: 800; }
.steps h3 {
  font-family: var(--display);
  margin: 8px 0;
  font-size: 1.15rem;
  text-transform: none;
  letter-spacing: -.01em;
}

.price-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.price-box {
  border: 1px solid rgba(255,255,255,.1);
  padding: 22px;
  background: #1e293b;
  border-radius: var(--radius);
}
.price-box.hot { border-color: var(--blue); box-shadow: 0 0 0 1px rgba(59,130,246,.35); }
.price-box .amt { font-family: var(--display); font-size: 2.4rem; margin: 10px 0; font-weight: 800; }

.land-foot {
  padding: 24px 5vw 36px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: #0f172a;
}

@keyframes up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes zoomOut {
  from { transform: scale(1.04); }
  to { transform: scale(1); }
}
.reveal { animation: up .65s ease both; }
.reveal.d1 { animation-delay: .08s; }
.reveal.d2 { animation-delay: .16s; }
.f-card:hover { border-color: #d1d5db; }
a.f-card { transition: border-color .15s ease, transform .15s ease; }
a.f-card:hover { transform: translateY(-1px); color: inherit; }

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.check-list li {
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--muted);
  font-weight: 600;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #fff;
}
.check-list li.done { color: var(--ink); }
.check-list li.done::before {
  border-color: var(--ok);
  background: var(--ok);
  box-shadow: inset 0 0 0 3px #fff;
}

.seg-bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #e5e7eb;
  margin: 8px 0 16px;
}
.seg-bar span { display: block; min-width: 4px; }
.two-col-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
}
.list-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: .92rem;
}
.list-row .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.prov-row { margin-bottom: 14px; }
.prov-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: .92rem;
}
.prov-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}
.prov-bar span { display: block; height: 100%; border-radius: 999px; }
.pkg-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.pkg-balance { margin-top: 8px; font-size: 1.05rem; }
.pkg-meter {
  margin-top: 14px;
  height: 10px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}
.pkg-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}
.create-empty {
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.create-empty:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}
.consume-list { max-height: 280px; overflow: auto; }

@media (max-width: 980px) {
  .two-col-list { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .f-shell { grid-template-columns: 1fr; }
  .f-side {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(280px, 86vw);
    transform: translateX(-105%);
    transition: transform .22s ease;
    z-index: 40;
  }
  .f-side.open { transform: none; }
  .mobile-bar { display: flex; }
  .span-3, .span-4, .span-6, .span-8 { grid-column: span 12; }
  .steps, .price-row { grid-template-columns: 1fr; }
  .land-nav .hide-m { display: none; }
  .f-main { padding: 20px 16px 40px; }
  .side-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 35;
  }
  .side-backdrop.show { display: block; }
}
