/* =============================================================
   Kronux Soluções Tecnológicas — App de Agendamento para DJ
   Tema dark neon (violeta + ciano)
   ============================================================= */
:root {
  --bg: #07070f;
  --bg-soft: #0c0c18;
  --card: #11111f;
  --card-2: #151527;
  --line: #23233a;
  --text: #f1f1fa;
  --muted: #9a9ab8;
  --violet: #1e63f5;
  --violet-2: #4d8dff;
  --cyan: #22d3ee;
  --amber: #fbbf24;
  --green: #34d399;
  --red: #f87171;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --glow: 0 0 24px rgba(30, 99, 245, 0.35);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 60% 40% at 15% -5%, rgba(30, 99, 245, 0.22), transparent),
    radial-gradient(ellipse 50% 35% at 90% 0%, rgba(34, 211, 238, 0.12), transparent);
  background-attachment: fixed;
}

::selection { background: rgba(30, 99, 245, 0.5); }

.ico { width: 1.15em; height: 1.15em; flex: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.01em; }

/* ------------------- topbar ------------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(7, 7, 15, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-mark.big { width: 72px; height: 72px; margin: 0 auto 12px; }
.brand-logo {
  border-radius: 50%; object-fit: cover; background: #050510;
  box-shadow: 0 0 16px rgba(30, 99, 245, 0.45), 0 0 3px rgba(34, 211, 238, 0.6);
}
.brand-text {
  font-weight: 800; font-size: 1.1rem; letter-spacing: 0.14em; line-height: 1.05;
  background: linear-gradient(90deg, #fff, #9ec5ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-text small {
  display: block; font-size: 0.58rem; letter-spacing: 0.22em; font-weight: 600;
  color: var(--muted); -webkit-text-fill-color: var(--muted);
}
.nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 600; transition: color 0.2s; }
.nav a:not(.btn):hover { color: var(--text); }

/* ------------------- botões ------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; border-radius: var(--radius-sm);
  font-family: var(--font); font-weight: 700; font-size: 0.95rem;
  padding: 11px 20px; text-decoration: none; color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-lg { padding: 15px 26px; font-size: 1.02rem; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--violet), var(--violet-2));
  box-shadow: var(--glow);
}
.btn-primary:hover { box-shadow: 0 0 34px rgba(30, 99, 245, 0.55); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1.5px solid var(--violet); color: #d8ccff; }
.btn-outline:hover { background: rgba(30, 99, 245, 0.14); }
.btn-outline.green { border-color: var(--green); color: var(--green); }
.btn-outline.green:hover { background: rgba(52, 211, 153, 0.12); }
.btn-outline.red { border-color: var(--red); color: var(--red); }
.btn-outline.red:hover { background: rgba(248, 113, 113, 0.12); }
.btn-ghost { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-danger-ghost { background: transparent; border: 1px solid rgba(248, 113, 113, 0.4); color: var(--red); margin-top: 10px; }
.btn-danger-ghost:hover { background: rgba(248, 113, 113, 0.1); }
.icon-btn {
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--muted);
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  transition: 0.2s;
}
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.12); }
.icon-btn svg { width: 18px; height: 18px; }

/* ------------------- hero ------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(64px, 10vw, 120px) 20px clamp(48px, 7vw, 90px);
  text-align: center;
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; pointer-events: none; }
.orb-a { width: 420px; height: 420px; background: rgba(30, 99, 245, 0.45); top: -160px; left: -120px; }
.orb-b { width: 360px; height: 360px; background: rgba(34, 211, 238, 0.25); bottom: -180px; right: -100px; }
.hero-inner { position: relative; max-width: 880px; margin: 0 auto; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.28em;
  font-size: 0.78rem; font-weight: 700; color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.35); padding: 7px 16px; border-radius: 999px;
  background: rgba(34, 211, 238, 0.07); margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 900;
  background: linear-gradient(92deg, #fff 15%, #9ec5ff 55%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 60px rgba(30, 99, 245, 0.35);
}
.hero-tagline { font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: var(--muted); margin-top: 10px; }

/* equalizador */
.eq { display: flex; align-items: flex-end; justify-content: center; gap: 6px; height: 56px; margin: 30px 0 8px; }
.eq span {
  width: 8px; border-radius: 4px;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  animation: eq 1.1s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(30, 99, 245, 0.6);
}
.eq span:nth-child(4n+1) { animation-delay: 0.05s; }
.eq span:nth-child(4n+2) { animation-delay: 0.3s; }
.eq span:nth-child(4n+3) { animation-delay: 0.55s; }
.eq span:nth-child(4n+4) { animation-delay: 0.15s; }
.eq span:nth-child(1) { height: 40%; } .eq span:nth-child(2) { height: 75%; }
.eq span:nth-child(3) { height: 55%; } .eq span:nth-child(4) { height: 90%; }
.eq span:nth-child(5) { height: 65%; } .eq span:nth-child(6) { height: 100%; }
.eq span:nth-child(7) { height: 70%; } .eq span:nth-child(8) { height: 95%; }
.eq span:nth-child(9) { height: 50%; } .eq span:nth-child(10) { height: 80%; }
.eq span:nth-child(11) { height: 45%; } .eq span:nth-child(12) { height: 60%; }
@keyframes eq { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ------------------- passos ------------------- */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px; max-width: 1060px; margin: 0 auto; padding: 20px clamp(16px, 4vw, 48px) 40px;
}
.step {
  background: linear-gradient(160deg, var(--card), var(--card-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; position: relative; overflow: hidden;
}
.step::after {
  content: ""; position: absolute; inset: auto -30% -60% 40%; height: 120%;
  background: radial-gradient(circle, rgba(30, 99, 245, 0.18), transparent 65%);
}
.step-num {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 900; font-size: 1.1rem; color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  margin-bottom: 14px; box-shadow: var(--glow);
}
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.93rem; position: relative; }

/* ------------------- seções ------------------- */
.section { max-width: 1060px; margin: 0 auto; padding: clamp(36px, 6vw, 64px) clamp(16px, 4vw, 48px); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 10px; }
.grad {
  background: linear-gradient(90deg, var(--violet-2), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ------------------- cards / formulário ------------------- */
.card {
  background: linear-gradient(170deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-card { padding: clamp(20px, 4vw, 36px); }
.form-legend { font-weight: 700; margin-bottom: 12px; }
.req { color: var(--violet-2); margin-left: 3px; }

.choice-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 26px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-body {
  display: block; cursor: pointer; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px 16px 52px; position: relative; font-weight: 700; color: var(--muted);
  transition: all 0.2s; background: rgba(255, 255, 255, 0.02); min-height: 78px;
}
.choice-body small { display: block; font-weight: 500; color: var(--muted); margin-top: 3px; }
.choice-ico { position: absolute; left: 16px; top: 16px; width: 24px; height: 24px; color: var(--muted); transition: 0.2s; }
.choice input:checked + .choice-body {
  border-color: var(--violet); color: var(--text);
  background: rgba(30, 99, 245, 0.12); box-shadow: var(--glow);
}
.choice input:checked + .choice-body .choice-ico { color: var(--violet-2); }
.choice input:focus-visible + .choice-body { outline: 2px solid var(--cyan); outline-offset: 2px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.span-2 { grid-column: span 2; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  background: var(--bg-soft); border: 1.5px solid var(--line); color: var(--text);
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 1rem; font-family: var(--font);
  transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
  color-scheme: dark;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(30, 99, 245, 0.25);
}
.field input::placeholder, .field textarea::placeholder { color: #55557a; }
.hint { color: var(--muted); font-size: 0.78rem; }
.form-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-top: 26px; flex-wrap: wrap;
}
.form-note { color: var(--muted); font-size: 0.85rem; }

/* ------------------- acompanhar ------------------- */
.track-card { padding: clamp(20px, 4vw, 32px); }
.track-form { display: flex; gap: 12px; flex-wrap: wrap; }
.track-form input {
  flex: 1; min-width: 200px; background: var(--bg-soft); border: 1.5px solid var(--line);
  color: var(--text); border-radius: var(--radius-sm); padding: 13px 16px; font-size: 1.15rem;
  font-family: var(--font); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color-scheme: dark;
}
.track-form input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(30, 99, 245, 0.25); }
.status-result { margin-top: 6px; }

.result-card { border-top: 1px dashed var(--line); margin-top: 22px; padding-top: 22px; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.result-head h3 { font-size: 1.25rem; letter-spacing: 0.06em; }
.result-meta { color: var(--muted); margin-top: 8px; font-size: 0.95rem; }
.result-meta strong { color: var(--text); }

.timeline { display: flex; align-items: center; margin: 26px 0 8px; }
.tl-step { flex: 1; text-align: center; position: relative; }
.tl-dot {
  width: 18px; height: 18px; border-radius: 50%; margin: 0 auto 8px;
  background: var(--line); border: 3px solid var(--card); z-index: 1; position: relative;
  transition: 0.3s;
}
.tl-step::before {
  content: ""; position: absolute; top: 7px; left: -50%; right: 50%; height: 4px;
  background: var(--line); z-index: 0;
}
.tl-step:last-child::after {
  content: ""; position: absolute; top: 7px; left: 50%; right: 0; height: 4px; background: var(--line); z-index: 0;
}
.tl-step:first-child::before { display: none; }
.tl-step:last-child::after { display: none; }
.tl-step.done .tl-dot { background: var(--green); box-shadow: 0 0 14px rgba(52, 211, 153, 0.7); }
.tl-step.done::before { background: var(--green); }
.tl-step.done .tl-label { color: var(--text); }
.tl-step.now .tl-dot { background: var(--violet-2); box-shadow: 0 0 14px rgba(77, 141, 255, 0.8); animation: pulse 1.6s infinite; }
.tl-label { font-size: 0.78rem; color: var(--muted); font-weight: 700; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }

.quote-box {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: rgba(34, 211, 238, 0.07); border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: var(--radius-sm); padding: 18px 20px; margin-top: 18px;
}
.quote-box .qv { font-size: 1.8rem; font-weight: 900; color: var(--cyan); }
.quote-box p { color: var(--muted); font-size: 0.9rem; }
.notice {
  border-radius: var(--radius-sm); padding: 16px 18px; margin-top: 18px; font-size: 0.95rem;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--muted);
}
.notice.amber { border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.07); color: #fde68a; }
.notice.red { border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.07); color: #fecaca; }
.notice.green { border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.07); color: #a7f3d0; }

/* ------------------- badges ------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; border: 1px solid transparent;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.pendente { color: var(--amber); border-color: rgba(251, 191, 36, 0.45); background: rgba(251, 191, 36, 0.1); }
.badge.orcamento_enviado { color: var(--cyan); border-color: rgba(34, 211, 238, 0.45); background: rgba(34, 211, 238, 0.1); }
.badge.aprovado { color: var(--green); border-color: rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.1); }
.badge.recusado { color: var(--red); border-color: rgba(248, 113, 113, 0.45); background: rgba(248, 113, 113, 0.1); }
.badge.concluido { color: var(--violet-2); border-color: rgba(77, 141, 255, 0.45); background: rgba(77, 141, 255, 0.1); }

/* ------------------- contato / rodapé ------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.contact-card {
  display: flex; align-items: center; gap: 16px; padding: 22px;
  text-decoration: none; color: var(--text); transition: 0.2s;
}
.contact-card:hover { transform: translateY(-2px); border-color: var(--violet); box-shadow: var(--glow); }
.contact-ico { width: 34px; height: 34px; flex: none; }
.contact-ico.whats { color: #25d366; }
.contact-ico.mail { color: var(--cyan); }
.contact-card span { color: var(--muted); display: block; font-size: 0.92rem; }

.footer {
  text-align: center; padding: 44px 20px 34px; color: var(--muted);
  border-top: 1px solid var(--line); margin-top: 30px; font-size: 0.9rem;
}
.footer-brand { font-size: 1rem; margin-bottom: 6px; }
.footer-brand strong {
  background: linear-gradient(90deg, #fff, #9ec5ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: 0.14em;
}

/* ------------------- modal ------------------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(3, 3, 8, 0.75); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  overflow-y: auto;
}
.modal {
  background: linear-gradient(170deg, var(--card), var(--card-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); width: 100%; max-width: 480px;
  padding: 30px 26px; animation: pop 0.25s ease;
}
@keyframes pop { from { transform: scale(0.94) translateY(12px); opacity: 0; } }
.success-modal { text-align: center; }
.success-check { width: 74px; height: 74px; margin: 0 auto 16px; color: var(--green); filter: drop-shadow(0 0 18px rgba(52, 211, 153, 0.6)); }
.success-modal p { color: var(--muted); margin-top: 8px; }
.protocol-box {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--bg-soft); border: 1.5px dashed var(--violet);
  border-radius: var(--radius-sm); padding: 14px 18px; margin: 20px 0 12px;
}
.protocol-box span {
  font-size: 1.6rem; font-weight: 900; letter-spacing: 0.12em;
  background: linear-gradient(90deg, var(--violet-2), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.success-summary { font-size: 0.9rem; }
.modal-actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }

/* ------------------- toast ------------------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 200; background: var(--card-2); border: 1px solid var(--violet);
  color: var(--text); padding: 13px 22px; border-radius: 999px;
  box-shadow: var(--shadow); font-weight: 600; font-size: 0.95rem;
  animation: toast-in 0.25s ease; max-width: min(92vw, 560px); text-align: center;
}
.toast.error { border-color: var(--red); }
.toast.success { border-color: var(--green); }
@keyframes toast-in { from { transform: translate(-50%, 16px); opacity: 0; } }

/* ------------------- admin ------------------- */
.admin-body { min-height: 100vh; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: 100%; max-width: 400px; padding: 34px 30px; text-align: center; }
.login-card h1 { font-size: 1.5rem; font-weight: 800; }
.login-card form { margin-top: 22px; text-align: left; display: grid; gap: 16px; }
.back-link { display: inline-block; margin-top: 18px; color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.back-link:hover { color: var(--text); }

.admin-main { max-width: 1120px; margin: 0 auto; padding: 26px clamp(16px, 4vw, 48px) 60px; }

.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { padding: 18px; text-align: center; border-top: 3px solid var(--line); }
.stat-num { display: block; font-size: 1.7rem; font-weight: 900; }
.stat-label { color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.stat.amber { border-top-color: var(--amber); } .stat.amber .stat-num { color: var(--amber); }
.stat.cyan { border-top-color: var(--cyan); } .stat.cyan .stat-num { color: var(--cyan); }
.stat.green { border-top-color: var(--green); } .stat.green .stat-num { color: var(--green); }
.stat.violet { border-top-color: var(--violet-2); } .stat.violet .stat-num { color: var(--violet-2); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 7px 15px; font-size: 0.82rem; font-weight: 700;
  cursor: pointer; font-family: var(--font); transition: 0.2s;
}
.pill:hover { color: var(--text); }
.pill.active { background: linear-gradient(135deg, var(--violet), var(--violet-2)); color: #fff; border-color: transparent; box-shadow: var(--glow); }
.search-box {
  display: flex; align-items: center; gap: 8px; background: var(--bg-soft);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 9px 14px;
  color: var(--muted); flex: 1; min-width: 220px; max-width: 340px;
}
.search-box input { background: none; border: 0; outline: none; color: var(--text); font-family: var(--font); font-size: 0.95rem; width: 100%; }

.orders { display: grid; gap: 12px; }
.order-row {
  display: grid; grid-template-columns: 110px 1.5fr 1fr 1fr auto; align-items: center; gap: 14px;
  background: linear-gradient(170deg, var(--card), var(--card-2));
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; cursor: pointer; transition: 0.2s;
}
.order-row:hover { border-color: var(--violet); transform: translateX(3px); }
.order-row .proto { font-weight: 900; letter-spacing: 0.08em; color: var(--violet-2); font-size: 0.9rem; }
.order-row .who strong { display: block; font-size: 0.98rem; }
.order-row .who span, .order-row .when span, .order-row .where span { display: block; font-size: 0.8rem; color: var(--muted); }
.order-row .who small { color: var(--cyan); font-size: 0.78rem; font-weight: 700; }
.order-row .when strong, .order-row .where strong { font-size: 0.88rem; font-weight: 600; }
.order-side { text-align: right; display: grid; gap: 6px; justify-items: end; }
.order-side .price { font-weight: 800; color: var(--cyan); font-size: 0.95rem; }
.order-side .no-price { color: var(--muted); font-size: 0.78rem; }

.empty { text-align: center; color: var(--muted); padding: 60px 20px; }
.empty svg { width: 54px; height: 54px; opacity: 0.4; margin-bottom: 12px; }

/* modal detalhe */
.detail-modal { max-width: 900px; padding: 0; overflow: hidden; }
.detail-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 24px 26px; border-bottom: 1px solid var(--line);
  background: rgba(30, 99, 245, 0.06);
}
.detail-head h3 { margin-top: 10px; font-size: 1.3rem; }
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; }
.detail-info { padding: 24px 26px; border-right: 1px solid var(--line); max-height: 68vh; overflow-y: auto; }
.detail-info h4 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--violet-2);
  margin: 22px 0 10px;
}
.detail-info h4:first-child { margin-top: 0; }
.kv { display: grid; gap: 8px; }
.kv div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; }
.kv dt { color: var(--muted); font-size: 0.85rem; }
.kv dd { font-size: 0.92rem; word-break: break-word; }
.notes { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 0.9rem; white-space: pre-wrap; }
.history { list-style: none; display: grid; gap: 8px; }
.history li { font-size: 0.83rem; color: var(--muted); padding-left: 18px; position: relative; }
.history li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.history li strong { color: var(--text); }

.detail-manage { padding: 24px 26px; display: flex; flex-direction: column; gap: 16px; background: rgba(0, 0, 0, 0.18); }
.detail-manage h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--cyan); }
.manage-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.tab-btn { border: 0; background: transparent; color: var(--muted); }
.tab-btn.active { color: var(--text); background: rgba(30, 99, 245, 0.18); }

/* ------------------- responsivo ------------------- */
@media (max-width: 860px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-info { border-right: 0; border-bottom: 1px solid var(--line); max-height: none; }
  .order-row { grid-template-columns: 1fr auto; }
  .order-row .proto, .order-row .when, .order-row .where { display: none; }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: span 1; }
  .nav a:not(.btn) { display: none; }
  .kv div { grid-template-columns: 1fr; gap: 2px; }
  .brand-text small { display: none; }
}

/* scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a45; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a5f; }

/* ------------------- multi-empresa (SaaS) ------------------- */
.hero-note { color: var(--muted); margin-top: 16px; font-size: 0.9rem; }
.hero-note strong { color: var(--cyan); }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.feature { padding: 24px 22px; }
.feature-ico { font-size: 1.9rem; margin-bottom: 12px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.92rem; }

.pricing-wrap { display: grid; place-items: center; }
.pricing-card { max-width: 440px; width: 100%; padding: 34px 30px; text-align: center; border-color: rgba(30, 99, 245, 0.5); position: relative; overflow: hidden; }
.pricing-card::before { content: ""; position: absolute; inset: -50% -30% auto; height: 200%;
  background: radial-gradient(circle at 50% 0%, rgba(30, 99, 245, 0.25), transparent 60%); pointer-events: none; }
.pricing-tag { display: inline-block; text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.75rem;
  font-weight: 800; color: var(--cyan); border: 1px solid rgba(34, 211, 238, 0.4); border-radius: 999px;
  padding: 6px 16px; margin-bottom: 18px; position: relative; }
.pricing-value { position: relative; font-weight: 900; }
.pricing-value .currency { font-size: 1.3rem; vertical-align: top; color: var(--muted); }
.pricing-value #planPrice { font-size: 3.6rem; line-height: 1;
  background: linear-gradient(90deg, #fff, #9ec5ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pricing-value .period { color: var(--muted); font-weight: 600; }
.pricing-trial { color: var(--muted); margin: 8px 0 20px; font-size: 0.95rem; }
.pricing-trial strong { color: var(--cyan); }
.check-list { list-style: none; text-align: left; display: grid; gap: 10px; margin: 0 auto 24px; max-width: 330px; position: relative; }
.check-list li { padding-left: 28px; position: relative; font-size: 0.95rem; color: var(--muted); }
.check-list li strong { color: var(--text); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 900; }
.pricing-note { color: var(--muted); font-size: 0.82rem; margin-top: 12px; }

.cta-final { padding: 44px 30px; text-align: center; }
.cta-final h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 8px; }
.cta-final p { color: var(--muted); margin-bottom: 22px; }

.signup-card { max-width: 520px; text-align: left; }
.signup-card h1 { font-size: 1.45rem; text-align: center; }
.signup-card > .muted { text-align: center; }
.signup-card form { display: grid; gap: 14px; margin-top: 18px; }
.signup-login { text-align: center; margin-top: 16px; font-size: 0.9rem; color: var(--muted); }
.signup-login a { color: var(--cyan); text-decoration: none; font-weight: 700; }

.footer-admin { color: #4a4a6a; font-size: 0.78rem; text-decoration: none; }
.footer-admin:hover { color: var(--muted); }
.footer-cta { margin-top: 8px; font-size: 0.85rem; }
.footer-cta a { color: var(--cyan); text-decoration: none; font-weight: 700; }

/* aviso página suspensa / não encontrada */
.state-notice { max-width: 640px; margin: 60px auto; padding: 0 16px; }
.state-card { padding: 40px 30px; text-align: center; }
.state-card h2 { margin-bottom: 10px; }
.state-card p { color: var(--muted); }
.state-card.amber { border-color: rgba(251, 191, 36, 0.4); }
.state-card.red { border-color: rgba(248, 113, 113, 0.4); }

/* banner de plano no painel do DJ */
.plan-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 18px; font-size: 0.92rem;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
}
.plan-banner a { color: var(--cyan); font-weight: 700; text-decoration: none; }
.plan-banner a:hover { text-decoration: underline; }
.plan-banner.amber { border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.07); }
.plan-banner.red { border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.07); }
.plan-banner.green { border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.06); }

/* ações nas linhas do master */
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; margin-top: 4px; }
.stat.red { border-top-color: var(--red); } .stat.red .stat-num { color: var(--red); }

/* ------------------- Assinatura Asaas (Fase 2) ------------------- */
.asaas-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.asaas-banner .pix-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cyan); border: 1px solid rgba(34, 211, 238, 0.45); background: rgba(34, 211, 238, 0.08); padding: 4px 9px; border-radius: 999px; }

.sub-modal { max-width: 560px; padding: 30px 28px; }
.sub-modal .modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sub-modal h3 { font-size: 1.35rem; }
.sub-modal .modal-tag { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); border: 1px solid rgba(34, 211, 238, 0.4); padding: 4px 11px; border-radius: 999px; }
.sub-modal p.sub-lead { color: var(--muted); margin-bottom: 18px; font-size: 0.96rem; }
.sub-modal .price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.sub-modal .price-big { font-size: 2.4rem; font-weight: 900;
  background: linear-gradient(90deg, #fff, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub-modal .price-cycle { color: var(--muted); }
.sub-modal .trial-row { background: rgba(34, 211, 238, 0.06); border: 1px solid rgba(34, 211, 238, 0.3); border-radius: var(--radius-sm); padding: 12px 14px; margin: 14px 0 18px; font-size: 0.9rem; }
.sub-modal .trial-row strong { color: var(--cyan); }

.cpf-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.cpf-row input { width: 100%; }

.pix-box {
  display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: start;
  margin-top: 18px; padding: 18px; border-radius: var(--radius);
  background: rgba(34, 211, 238, 0.05); border: 1px solid rgba(34, 211, 238, 0.35);
}
.pix-qr {
  width: 200px; height: 200px; background: #fff; padding: 8px; border-radius: 12px;
  display: grid; place-items: center;
}
.pix-qr img, .pix-qr canvas { width: 100%; height: 100%; display: block; }
.pix-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pix-info h4 { font-size: 1.05rem; color: var(--cyan); }
.pix-info p { color: var(--muted); font-size: 0.88rem; }
.pix-info .pix-pay { font-size: 1.6rem; font-weight: 900; color: #fff; background: rgba(0, 0, 0, 0.3); border-radius: var(--radius-sm); padding: 10px 14px; margin: 4px 0; }
.pix-info .pix-status { font-size: 0.85rem; color: var(--muted); }
.pix-info .pix-status .online { color: var(--green); }
.pix-info textarea {
  width: 100%; background: var(--bg-soft); border: 1.5px solid var(--line); color: var(--cyan);
  border-radius: var(--radius-sm); padding: 10px 12px; font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 0.78rem; resize: none; height: 64px;
}

.sub-status { display: grid; gap: 8px; font-size: 0.92rem; margin-top: 10px; }
.sub-status .row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.sub-status .row:last-child { border-bottom: 0; }
.sub-status .row strong { color: var(--text); }
.sub-status .row span { color: var(--muted); }

.history-list { list-style: none; display: grid; gap: 6px; max-height: 200px; overflow-y: auto; }
.history-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 0.85rem; }
.history-list .amt { color: var(--cyan); font-weight: 700; }

@keyframes pixpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5); } 50% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); } }
.pix-pending { animation: pixpulse 1.8s infinite; }

@media (max-width: 580px) {
  .pix-box { grid-template-columns: 1fr; }
  .pix-qr { width: 100%; max-width: 240px; margin: 0 auto; }
}

/* card grande de pagamentos (master) */
.payments-card { padding: 30px 28px; }
.payments-card .pay-grid { display: grid; gap: 16px; }
.api-key-mask { font-family: ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: 0.05em; }
.help-tip { background: rgba(30, 99, 245, 0.08); border: 1px solid rgba(30, 99, 245, 0.3); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 0.88rem; color: var(--muted); margin-top: 14px; }
.help-tip code { background: rgba(0,0,0,0.3); padding: 2px 8px; border-radius: 6px; color: var(--cyan); font-size: 0.85rem; }
.help-tip.aL { color: #fde68a; border-color: rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.06); }
.help-tip.green { color: #a7f3d0; border-color: rgba(52, 211, 153, 0.3); background: rgba(52, 211, 153, 0.06); }

.asaas-env-toggle { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.asaas-env-toggle button { background: transparent; border: 0; color: var(--muted); font-family: var(--font); font-weight: 700; font-size: 0.82rem; padding: 6px 14px; border-radius: 999px; cursor: pointer; transition: 0.2s; }
.asaas-env-toggle button.active { background: linear-gradient(135deg, var(--violet), var(--violet-2)); color: #fff; }
