:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --primary-soft: #eff6ff;
  --secondary: #7c3aed;
  --text: #172033;
  --muted: #64748b;
  --border: #e2e8f0;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --background: #f4f7fb;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .06);
  --shadow-md: 0 14px 34px rgba(15, 23, 42, .09);
  --shadow-lg: 0 24px 65px rgba(15, 23, 42, .14);
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--background);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.public-page { background: #fff; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-heading); line-height: 1.18; }
p { margin: 0; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 32px)); margin-inline: auto; }

.site-header,
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(226, 232, 240, .85);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
}
.navbar,
.app-topbar-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-copy { display: flex; flex-direction: column; min-width: 0; }
.brand-logo {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font: 800 1.08rem/1.2 var(--font-heading); letter-spacing: -.02em; }
.brand-tagline { margin-top: 2px; color: var(--muted); font-size: .76rem; font-weight: 600; }
.footer-brand-line { color: var(--muted); font: 600 .76rem/1.4 var(--font); }
.legal-footer { display:flex; justify-content:center; gap:10px 18px; flex-wrap:wrap; padding:18px 20px 28px; color:var(--muted); font-size:.82rem; border-top:1px solid rgba(226,232,240,.8); background:#fff; }
.legal-footer a { color:var(--primary); font-weight:800; padding:6px 10px; border:1px solid #bfdbfe; border-radius:999px; background:#eff6ff; }
.legal-footer a:hover { text-decoration:none; background:#dbeafe; }
.legal-page { padding: 48px 0 30px; }
.legal-page-head { display:flex; flex-direction:column; gap:2px; margin:26px 0 34px; }
.legal-page h1 { font-size:clamp(2rem,5vw,3.2rem); margin-bottom:18px; }
.legal-page h2 { margin:30px 0 8px; font-size:1.2rem; }
.legal-page p { max-width: 760px; color:var(--muted); }
.cookie-consent { position:fixed; left:50%; right:auto; bottom:24px; z-index:100; width:min(620px,calc(100% - 28px)); transform:translateX(-50%); display:flex; align-items:flex-end; justify-content:space-between; gap:20px; padding:22px 24px; border:1px solid #cbd5e1; border-radius:20px; background:rgba(255,255,255,.99); box-shadow:0 24px 70px rgba(15,23,42,.24); }
.cookie-consent strong { display:block; font:800 1rem/1.2 var(--font-heading); color:var(--text); }
.cookie-consent p { margin-top:6px; color:var(--muted); font-size:.84rem; line-height:1.5; }
.cookie-consent a { color:var(--primary); font-weight:700; }
.cookie-consent-actions { display:flex; gap:8px; flex:0 0 auto; }
@media (max-width: 700px) { .cookie-consent { align-items:stretch; flex-direction:column; gap:14px; } .cookie-consent-actions { width:100%; } .cookie-consent-actions .btn { flex:1; } }
.nav-links { display: flex; align-items: center; gap: 7px; }
.nav-link { padding: 9px 11px; border-radius: 10px; color: #475569; font-size: .88rem; font-weight: 700; transition: .16s ease; }
.nav-link:hover { color: var(--primary); background: var(--primary-soft); }

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: 10px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 9px 18px -12px rgba(37, 99, 235, .9);
  font-weight: 800;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 13px 25px -14px rgba(37, 99, 235, .9); filter: saturate(1.05); }
.btn:active { transform: translateY(0) scale(.99); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-ghost { color: var(--text); border-color: var(--border); background: #fff; box-shadow: none; }
.btn-ghost:hover { color: var(--primary); background: var(--primary-soft); box-shadow: none; }
.btn-danger { color: #fff; border-color: var(--danger); background: var(--danger); }
.btn-success { color: #fff; border-color: var(--success); background: var(--success); }
.btn-warning { color: #fff; border-color: var(--warning); background: var(--warning); }
.btn-sm { min-height: 34px; padding: 7px 11px; border-radius: 10px; font-size: .78rem; }
.btn-block { width: 100%; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: grid;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 86% 18%, rgba(147, 197, 253, .34), transparent 29rem),
    radial-gradient(circle at 8% 88%, rgba(124, 58, 237, .25), transparent 26rem),
    linear-gradient(135deg, #172554 0%, #1d4ed8 52%, #4f46e5 100%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 54px; padding-block: 84px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.1); font-size: .78rem; font-weight: 800; }
.hero h1 { max-width: 720px; margin-top: 20px; font-size: clamp(2.55rem, 5.4vw, 4.7rem); letter-spacing: -.055em; }
.hero-copy { max-width: 660px; margin-top: 20px; color: rgba(255,255,255,.82); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .btn { min-height: 50px; padding-inline: 21px; background: #fff; border-color: #fff; color: #1d4ed8; box-shadow: 0 14px 32px rgba(15,23,42,.22); }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.08); }
.hero-proof { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 22px; color: rgba(255,255,255,.78); font-size: .82rem; font-weight: 700; }
.hero-proof span::before { content: '✓'; margin-right: 7px; color: #86efac; }
.hero-preview { position: relative; padding: 20px; border: 1px solid rgba(255,255,255,.17); border-radius: 30px; background: rgba(255,255,255,.1); backdrop-filter: blur(18px); box-shadow: 0 35px 70px rgba(4, 17, 50, .3); animation: float-card 6s ease-in-out infinite; }
.preview-window { overflow: hidden; border-radius: 22px; background: #fff; color: var(--text); box-shadow: var(--shadow-lg); }
.preview-bar { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--border); background: #f8fafc; }
.preview-bar i { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.preview-body { padding: 20px; }
.preview-title { font: 800 1rem var(--font-heading); }
.preview-sub { margin-top: 5px; color: var(--muted); font-size: .75rem; }
.preview-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 17px; }
.preview-kpi { padding: 12px; border: 1px solid var(--border); border-radius: 13px; background: #fff; }
.preview-kpi span { display: block; color: var(--muted); font-size: .62rem; font-weight: 700; }
.preview-kpi strong { display: block; margin-top: 5px; font-size: 1.2rem; }
.preview-list { display: grid; gap: 8px; margin-top: 14px; }
.preview-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: #f8fafc; }
.preview-time { color: var(--primary); font-weight: 900; }
.preview-person { font-size: .74rem; font-weight: 800; }
.preview-service { color: var(--muted); font-size: .65rem; }
.preview-status { padding: 4px 7px; border-radius: 999px; color: #047857; background: #d1fae5; font-size: .58rem; font-weight: 900; }

.section { padding: 92px 0; }
.section-alt { background: var(--surface-soft); }
.section-head { max-width: 720px; margin: 0 auto 42px; text-align: center; }
.section-kicker { color: var(--primary); font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.section-title { margin-top: 9px; font-size: clamp(1.85rem, 3.4vw, 2.75rem); letter-spacing: -.04em; }
.section-subtitle { margin-top: 12px; color: var(--muted); font-size: 1rem; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info-card,
.plan-card,
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.info-card:hover,
.plan-card:hover { transform: translateY(-5px); border-color: rgba(37,99,235,.3); box-shadow: var(--shadow-md); }
.info-card { padding: 26px; }
.info-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: var(--primary); background: var(--primary-soft); font: 900 1rem var(--font-heading); }
.info-card h3 { margin-top: 18px; font-size: 1.05rem; }
.info-card p { margin-top: 9px; color: var(--muted); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.process-card { position: relative; padding: 25px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
.process-number { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--primary); font-weight: 900; }
.process-card h3 { margin-top: 18px; font-size: 1rem; }
.process-card p { margin-top: 8px; color: var(--muted); font-size: .88rem; }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan-card { display: flex; flex-direction: column; padding: 28px; }
.plan-card.featured { border-color: rgba(37,99,235,.52); box-shadow: 0 22px 45px rgba(37,99,235,.14); }
.plan-pill { align-self: flex-start; padding: 5px 9px; border-radius: 999px; color: var(--primary); background: var(--primary-soft); font-size: .68rem; font-weight: 900; }
.plan-card h3 { margin-top: 16px; font-size: 1.3rem; }
.plan-price { margin-top: 12px; font-size: 1.55rem; font-weight: 900; letter-spacing: -.03em; }
.plan-price small { color: var(--muted); font-size: .76rem; font-weight: 700; }
.feature-list { flex: 1; display: grid; gap: 10px; margin: 20px 0 24px; padding: 0; list-style: none; color: #475569; }
.feature-list li::before { content: '✓'; margin-right: 8px; color: var(--success); font-weight: 900; }
.privacy-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 42px; align-items: center; padding: 38px; border-radius: var(--radius-xl); color: #fff; background: linear-gradient(135deg, #172554, #1e40af); box-shadow: var(--shadow-lg); }
.privacy-card h2 { font-size: 2rem; letter-spacing: -.035em; }
.privacy-card p { margin-top: 12px; color: rgba(255,255,255,.76); }
.privacy-points { display: grid; gap: 12px; }
.privacy-point { padding: 15px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.08); font-weight: 700; }
.cta-box { padding: 48px; border: 1px solid #dbeafe; border-radius: var(--radius-xl); text-align: center; background: linear-gradient(135deg, #eff6ff, #eef2ff); }
.cta-box h2 { font-size: 2rem; }
.cta-box p { margin: 12px auto 24px; max-width: 650px; color: var(--muted); }
.site-footer { padding: 36px 0; border-top: 1px solid var(--border); background: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; color: var(--muted); font-size: .82rem; }

.auth-layout { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { position: relative; overflow: hidden; padding: 54px; color: #fff; background: linear-gradient(145deg, #172554, #1d4ed8 55%, #4f46e5); }
.auth-aside::after { content: ''; position: absolute; width: 480px; height: 480px; right: -180px; bottom: -180px; border-radius: 50%; background: rgba(255,255,255,.1); }
.auth-aside .brand-logo { width: 58px; height: 58px; }
.auth-aside .brand-name { font-size: 1.2rem; }
.auth-aside .brand-tagline { color: rgba(255,255,255,.68); }
.auth-aside-content { position: relative; z-index: 1; max-width: 560px; margin-top: 15vh; }
.auth-aside h1 { font-size: clamp(2.2rem, 4vw, 3.65rem); letter-spacing: -.05em; }
.auth-aside p { margin-top: 18px; color: rgba(255,255,255,.76); font-size: 1rem; }
.auth-main { display: grid; place-items: center; padding: 42px 28px; background: #fff; }
.auth-card { width: min(480px, 100%); animation: soft-in .35s ease both; }
.auth-card h2 { font-size: 1.8rem; letter-spacing: -.035em; }
.auth-card > p { margin-top: 8px; color: var(--muted); }
.auth-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; }
.text-link { color: var(--primary); font-weight: 800; }
.button-link { padding: 0; border: 0; background: transparent; font: inherit; cursor: pointer; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 24px; }
.form-grid.one { grid-template-columns: 1fr; }
.full { grid-column: 1 / -1; }
label { display: grid; gap: 7px; color: #475569; font-size: .79rem; font-weight: 800; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 94px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: rgba(37,99,235,.62); box-shadow: 0 0 0 4px rgba(37,99,235,.11); }
.input-hint { color: var(--muted); font-size: .7rem; font-weight: 600; }
.form-field { grid-template-rows: auto 44px 18px 18px; align-content: start; }
.field-note { color: var(--muted); font-size: .7rem; font-weight: 600; line-height: 1.3; }
.field-error { min-height: 18px; color: var(--danger); font-size: .7rem; font-weight: 750; line-height: 1.3; }
.form-field.invalid input { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.09); }
.form-field.valid input { border-color: rgba(5,150,105,.48); }
.form-message { margin-top: 14px; padding: 11px 13px; border-radius: 11px; font-size: .8rem; font-weight: 750; }
.form-message.error { color: #991b1b; background: #fef2f2; border: 1px solid #fecaca; }
.form-message.success { color: #065f46; background: #ecfdf5; border: 1px solid #a7f3d0; }
.automation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.automation-option { min-height: 92px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-soft); }
.automation-option span { display: grid; gap: 4px; }
.automation-option strong { color: var(--text); font-family: var(--font-heading); font-size: .9rem; }
.automation-option small { color: var(--muted); font-weight: 600; line-height: 1.4; }
.automation-option input[type="checkbox"] { width: 46px; min-height: 25px; appearance: none; border: 0; border-radius: 999px; padding: 0; background: #cbd5e1; position: relative; transition: .18s ease; }
.automation-option input[type="checkbox"]::after { content: ''; position: absolute; width: 19px; height: 19px; top: 3px; left: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 7px rgba(15,23,42,.2); transition: .18s ease; }
.automation-option input[type="checkbox"]:checked { background: var(--success); }
.automation-option input[type="checkbox"]:checked::after { transform: translateX(21px); }
.automation-option input[type="checkbox"]:disabled { opacity: .55; cursor: not-allowed; }

.register-page { min-height: 100vh; padding: 34px 0 64px; background: linear-gradient(180deg, #f8fbff, #eef3fa); }
.register-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 26px; }
.register-shell { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow-lg); }
.stepper { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--border); background: #f8fafc; }
.step-item { position: relative; padding: 19px 12px; text-align: center; color: var(--muted); font-size: .7rem; font-weight: 800; }
.step-item::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: transparent; }
.step-item.active { color: var(--primary); }
.step-item.active::after, .step-item.done::after { background: var(--primary); }
.step-number { width: 28px; height: 28px; display: grid; place-items: center; margin: 0 auto 6px; border: 1px solid var(--border); border-radius: 50%; background: #fff; }
.step-item.active .step-number, .step-item.done .step-number { color: #fff; border-color: var(--primary); background: var(--primary); }
.register-body { min-height: 510px; padding: 34px; }
.register-step { display: none; animation: step-in .25s ease both; }
.register-step.active { display: block; }
.register-step h2 { font-size: 1.55rem; }
.register-step > p { margin-top: 8px; color: var(--muted); }
.register-footer { display: flex; justify-content: space-between; gap: 12px; padding: 20px 34px; border-top: 1px solid var(--border); background: #f8fafc; }
.logo-uploader { display: grid; grid-template-columns: 150px 1fr; gap: 20px; margin-top: 22px; }
.logo-preview { width: 150px; height: 150px; display: grid; place-items: center; overflow: hidden; border: 1px dashed #94a3b8; border-radius: 22px; background: #f8fafc; color: var(--muted); font-weight: 800; text-align: center; }
.logo-preview img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.color-row { display: flex; gap: 12px; align-items: center; }
.color-row input[type='color'] { width: 66px; min-height: 48px; padding: 4px; }
.theme-preview { margin-top: 18px; overflow: hidden; border: 1px solid var(--border); border-radius: 17px; box-shadow: var(--shadow-sm); }
.theme-preview-head { padding: 16px; color: #fff; background: var(--preview-color, #2563eb); font-weight: 900; }
.theme-preview-body { display: flex; gap: 9px; padding: 15px; background: #fff; }
.theme-chip { padding: 7px 10px; border-radius: 9px; color: var(--preview-color, #2563eb); background: color-mix(in srgb, var(--preview-color, #2563eb) 12%, white); font-size: .72rem; font-weight: 900; }
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; }
.review-item { padding: 15px; border: 1px solid var(--border); border-radius: 13px; background: #f8fafc; }
.review-item span { display: block; color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.review-item strong { display: block; margin-top: 5px; }
.terms { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; }
.terms input { width: 18px; min-height: 18px; margin-top: 2px; }

.app-body { min-height: 100vh; background: var(--background); }
.app-topbar-inner { width: min(1440px, calc(100% - 32px)); margin-inline: auto; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.user-pill { padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); font-size: .75rem; font-weight: 750; }
.app-layout { width: min(1440px, calc(100% - 32px)); margin: 22px auto 48px; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; }
.sidebar { position: sticky; top: 98px; height: max-content; padding: 13px; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.sidebar-label { padding: 8px 10px; color: #94a3b8; font-size: .65rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.side-link { width: 100%; display: flex; align-items: center; gap: 9px; padding: 10px 11px; border: 0; border-radius: 11px; color: #475569; background: transparent; font-size: .79rem; font-weight: 800; text-align: left; }
.side-link:hover, .side-link.active { color: var(--primary); background: var(--primary-soft); }
.app-main { min-width: 0; }
.page-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.page-head h1 { font-size: 1.65rem; letter-spacing: -.035em; }
.page-head p { margin-top: 6px; color: var(--muted); }
.panel-section { display: none; animation: soft-in .2s ease both; }
.panel-section.active { display: block; }
.card { padding: 19px; margin-bottom: 16px; }
.card:hover { box-shadow: var(--shadow-md); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.card-head h2 { font-size: 1.08rem; }
.card-head p { margin-top: 5px; color: var(--muted); font-size: .8rem; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 16px; }
.kpi-card { padding: 17px; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.kpi-label { color: var(--muted); font-size: .7rem; font-weight: 800; }
.kpi-value { margin-top: 7px; font: 900 1.62rem var(--font-heading); letter-spacing: -.04em; }
.kpi-meta { margin-top: 4px; color: #94a3b8; font-size: .66rem; font-weight: 700; }
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 15px; }
.table-wrap { width: 100%; overflow: auto; border: 1px solid var(--border); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; background: #fff; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
th { color: #475569; background: #f1f5f9; font-size: .66rem; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
td { font-size: .77rem; }
tbody tr:hover { background: #f8fafc; }
tbody tr:last-child td { border-bottom: 0; }
.badge { display: inline-flex; align-items: center; padding: 5px 8px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: .65rem; font-weight: 900; white-space: nowrap; }
.badge.pending { color: #92400e; border-color: #fde68a; background: #fffbeb; }
.badge.active, .badge.approved, .badge.trial, .badge.available, .badge.success, .badge.current, .badge.passed, .badge.verified, .badge.ready { color: #065f46; border-color: #a7f3d0; background: #ecfdf5; }
.badge.grace, .badge.partial, .badge.running, .badge.starting, .badge.overdue, .badge.verification_pending, .badge.verification_disabled, .badge.not_run, .badge.not_configured { color: #9a3412; border-color: #fed7aa; background: #fff7ed; }
.badge.suspended, .badge.rejected, .badge.cancelled, .badge.revoked, .badge.failed, .badge.stopped { color: #991b1b; border-color: #fecaca; background: #fef2f2; }
.badge.used, .badge.expired, .badge.development { color: #475569; border-color: #cbd5e1; background: #f8fafc; }
.badge.superadmin { color: #3730a3; border-color: #c7d2fe; background: #eef2ff; }
.badge.critical, .badge.error, .badge.not_subscribed, .badge.verification_failed, .badge.blocked { color: #991b1b; border-color: #fecaca; background: #fef2f2; }
.badge.warning, .badge.unverified, .badge.stalled { color: #92400e; border-color: #fde68a; background: #fffbeb; }
.badge.healthy { color: #065f46; border-color: #a7f3d0; background: #ecfdf5; }
.actions { display: flex; flex-wrap: wrap; gap: 7px; }
.empty { padding: 32px; text-align: center; color: var(--muted); }
.plan-summary { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.plan-hero { padding: 25px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #172554, var(--primary)); }
.plan-hero .badge { margin-top: 14px; }
.usage-list { display: grid; gap: 13px; }
.usage-row { padding: 14px; border: 1px solid var(--border); border-radius: 13px; background: #fff; }
.usage-bar { height: 7px; overflow: hidden; margin-top: 8px; border-radius: 999px; background: #e2e8f0; }
.usage-bar span { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.notice { margin-bottom: 15px; padding: 14px 15px; border: 1px solid #bfdbfe; border-radius: 13px; color: #1e40af; background: #eff6ff; font-size: .8rem; font-weight: 700; }
.notice.warning { color: #92400e; border-color: #fde68a; background: #fffbeb; }
.notice.danger { color: #991b1b; border-color: #fecaca; background: #fef2f2; }
.notice.success { color: #065f46; border-color: #a7f3d0; background: #ecfdf5; }
.domain-verification { padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: #f8fafc; }
.domain-verification-head, .domain-verification-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.domain-verification-head { margin-bottom: 13px; }
.domain-verification-head h3 { margin-top: 3px; overflow-wrap: anywhere; }
.dns-records { display: grid; gap: 9px; margin-bottom: 13px; }
.dns-record { display: grid; grid-template-columns: 58px minmax(0, .9fr) minmax(0, 1.4fr); gap: 9px; align-items: start; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.dns-record strong { color: var(--primary); font-size: .7rem; }
.dns-record-field { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.dns-record-field span { grid-column: 1 / -1; color: var(--muted); font-size: .62rem; font-weight: 800; text-transform: uppercase; }
.dns-record code { padding: 7px 8px; overflow-wrap: anywhere; border-radius: 8px; color: #334155; background: #f1f5f9; font-size: .68rem; }
.domain-verification .notice { margin-bottom: 12px; }
.domain-verification > .input-hint { display: block; margin-top: 12px; line-height: 1.5; }
.launch-summary { border-color: #c7d2fe; background: linear-gradient(145deg, #fff, #f5f7ff); }
.launch-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.launch-summary-head h2 { margin-top: 4px; font-size: 1.35rem; }
.launch-main-actions { margin-top: 17px; }
.launch-check-grid { display: grid; gap: 11px; }
.launch-check { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 15px; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.launch-check.ready { border-color: #a7f3d0; }
.launch-check.error { border-color: #fecaca; }
.launch-check.pending { border-color: #fde68a; }
.launch-check-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #92400e; background: #fffbeb; font-size: 1rem; font-weight: 900; }
.launch-check.ready .launch-check-icon { color: #047857; background: #ecfdf5; }
.launch-check.error .launch-check-icon { color: #b91c1c; background: #fef2f2; }
.launch-check-title { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.launch-check-title h3 { margin-right: 2px; font-size: .91rem; }
.launch-check-copy p { margin-top: 5px; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.launch-check-action { justify-self: end; }
.launch-closed-shell { width: min(580px, calc(100% - 28px)); margin: min(15vh, 120px) auto; padding: 38px; text-align: center; border: 1px solid var(--border); border-radius: 26px; background: #fff; box-shadow: var(--shadow-lg); }
.launch-closed-logo { width: 82px; height: 82px; margin: 0 auto 17px; }
.launch-closed-eyebrow { color: var(--primary); border-color: #bfdbfe; background: #eff6ff; }
.launch-closed-shell h1 { margin-top: 17px; font-size: clamp(2rem, 7vw, 3.2rem); letter-spacing: -.05em; }
.launch-closed-shell p { max-width: 470px; margin: 14px auto 24px; color: var(--muted); line-height: 1.65; }
.launch-closed-shell small { display: block; margin-top: 22px; color: #94a3b8; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.detail-item { padding: 13px; border: 1px solid var(--border); border-radius: 13px; background: #f8fafc; }
.detail-item span { display: block; color: var(--muted); font-size: .68rem; font-weight: 850; text-transform: uppercase; letter-spacing: .03em; }
.detail-item strong { display: block; margin-top: 5px; overflow-wrap: anywhere; }
.filter-action { align-items: end; padding-top: 21px; }
.filters.professional-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) max-content; }
.professional-filters .filter-action { grid-column: auto; flex-wrap: nowrap; }
.account-card { max-width: 620px; }
.btn-small { min-height: 32px; padding: 6px 10px; border-radius: 9px; font-size: .7rem; }
.btn-danger-soft { color: #b91c1c; border-color: #fecaca; background: #fff; box-shadow: none; }
.btn-success-soft { color: #047857; border-color: #a7f3d0; background: #fff; box-shadow: none; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stack-list { display: grid; gap: 9px; }
.stack-item { display: grid; gap: 4px; padding: 13px; border: 1px solid var(--border); border-radius: 13px; background: #f8fafc; }
.stack-item span { color: var(--muted); font-size: .76rem; }
.appointment-list { display: grid; gap: 10px; }
.appointment-card { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 15px; border: 1px solid var(--border); border-radius: 15px; background: #fff; transition: .16s ease; }
.appointment-card.appointment-pendiente { border-left: 4px solid #f59e0b; }
.appointment-card.appointment-confirmada { border-left: 4px solid #2563eb; }
.appointment-card.appointment-atendiendo { border-left: 4px solid #10b981; background: #f0fdf4; }
.appointment-card.appointment-completada { border-left: 4px solid #059669; background: #f8fffb; }
.appointment-card.appointment-cancelada { border-left: 4px solid #94a3b8; background: #f8fafc; opacity: .86; }
.appointment-card.appointment-no_asistio, .appointment-card.appointment-vencida { border-left: 4px solid #f97316; background: #fffaf5; }
.appointment-card:hover { border-color: #bfdbfe; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.appointment-time { display: grid; gap: 2px; color: var(--primary); }
.appointment-time strong { font: 900 1.05rem var(--font-heading); }
.appointment-time span { color: var(--muted); font-size: .7rem; }
.appointment-time small { color: #64748b; font-size: .68rem; font-weight: 750; }
.appointment-title { font-weight: 900; }
.appointment-info p { margin-top: 3px; color: var(--muted); font-size: .75rem; }
.appointment-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.cancel-detail { color: #9a3412 !important; font-size: .7rem !important; }
.agenda-tools { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:-2px 0 14px; }
.view-switch { display:flex; gap:6px; }
.view-switch .btn.active { color:#1d4ed8; border-color:#93c5fd; background:#eff6ff; }
.calendar-view { border:1px solid var(--border); border-radius:15px; padding:12px; background:#fff; }
.calendar-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; text-transform:capitalize; color:#1e293b; }
.calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:6px; }
.calendar-weekday { padding:7px 4px; text-align:center; color:#64748b; font-size:.68rem; font-weight:850; }
.calendar-day { min-height:92px; padding:8px; border:1px solid #e2e8f0; border-radius:10px; background:#fff; text-align:left; color:#1e293b; cursor:pointer; }
.calendar-day:hover { border-color:#93c5fd; background:#f8fbff; }
.calendar-day strong { display:block; margin-bottom:5px; font-size:.78rem; }
.calendar-day.muted-day { min-height:0; border:0; background:transparent; cursor:default; }
.calendar-event { display:block; overflow:hidden; margin-top:3px; padding:3px 4px; border-radius:5px; color:#334155; background:#f1f5f9; font-size:.62rem; line-height:1.2; text-overflow:ellipsis; white-space:nowrap; }
.calendar-event.appointment-pendiente { background:#fef3c7; color:#92400e; }
.calendar-event.appointment-confirmada { background:#dbeafe; color:#1d4ed8; }
.calendar-event.appointment-atendiendo, .calendar-event.appointment-completada { background:#d1fae5; color:#047857; }
.calendar-event.appointment-cancelada, .calendar-event.appointment-no_asistio { background:#e2e8f0; color:#475569; }
.calendar-more { display:block; margin-top:4px; color:#2563eb; font-size:.62rem; font-weight:800; }
.service-live { margin-top: 7px; display: inline-flex; padding: 5px 9px; border: 1px solid #a7f3d0; border-radius: 999px; color: #047857; background: #ecfdf5; font-size: .72rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.buffer-dialog-card { width: min(520px, 100%); text-align: center; border: 1px solid #c4b5fd; background: linear-gradient(180deg,#fff,#faf7ff); }
.buffer-dialog-badge { display: inline-flex; margin-bottom: 12px; padding: 6px 10px; border: 1px solid #c4b5fd; border-radius: 999px; color: #6d28d9; background: #f5f3ff; font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.buffer-countdown { margin: 18px 0 3px; color: #6d28d9; font: 900 clamp(2.6rem,9vw,4.4rem)/1 var(--font-heading); font-variant-numeric: tabular-nums; letter-spacing: -.05em; }
.buffer-details { display: grid; gap: 8px; margin-top: 18px; padding: 15px; border: 1px solid var(--border); border-radius: 15px; text-align: left; background: #fff; }
.buffer-detail { display: grid; grid-template-columns: 105px minmax(0,1fr); gap: 10px; font-size: .8rem; }
.buffer-detail span { color: var(--muted); font-weight: 750; }
.buffer-question { margin-top: 14px; color: #475569; font-size: .8rem; font-weight: 750; }
.buffer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.badge.confirmada { color: #1d4ed8; border-color: #bfdbfe; background: #eff6ff; }
.badge.atendiendo { color: #047857; border-color: #a7f3d0; background: #ecfdf5; }
.badge.completada { color: #065f46; border-color: #a7f3d0; background: #ecfdf5; }
.badge.no_asistio, .badge.vencida { color: #9a3412; border-color: #fed7aa; background: #fff7ed; }
.waiting-card { width: min(610px, calc(100% - 32px)); margin: 10vh auto; padding: 38px; border: 1px solid var(--border); border-radius: var(--radius-xl); text-align: center; background: #fff; box-shadow: var(--shadow-lg); }
.waiting-icon { width: 76px; height: 76px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 24px; color: var(--primary); background: var(--primary-soft); font: 900 1.6rem var(--font-heading); }
.waiting-card h1 { font-size: 1.7rem; }
.waiting-card p { margin-top: 11px; color: var(--muted); }
.waiting-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.drawer-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(15,23,42,.42); backdrop-filter: blur(2px); }
.drawer { position: fixed; top: 0; right: 0; z-index: 71; width: min(760px, 96vw); height: 100%; display: flex; flex-direction: column; background: #fff; box-shadow: -25px 0 65px rgba(15,23,42,.2); animation: drawer-in .2s ease both; }
.drawer-head { padding: 19px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--border); }
.drawer-body { flex: 1; overflow: auto; padding: 19px; }
.drawer-body .form-grid > * { min-width: 0; }
.monthly-billing table { min-width: 0; }
.monthly-billing th, .monthly-billing td { padding: 10px 8px; }
.drawer-tabs { display: flex; gap: 7px; overflow: auto; padding-bottom: 12px; }
.drawer-tab { border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; color: var(--muted); background: #fff; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.drawer-tab.active { color: var(--primary); border-color: #bfdbfe; background: var(--primary-soft); }
.dialog-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 18px; background: rgba(15,23,42,.48); backdrop-filter: blur(3px); }
.dialog-card { width: min(580px, 100%); max-height: 92vh; overflow: auto; padding: 22px; border-radius: 21px; background: #fff; box-shadow: var(--shadow-lg); animation: soft-in .18s ease both; }
.dialog-head { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.proof-image { width: 100%; max-height: 430px; object-fit: contain; border: 1px solid var(--border); border-radius: 14px; background: #f8fafc; }
.proof-pdf { height: 430px; }
.toast-host { position: fixed; z-index: 100; right: 18px; bottom: 18px; display: grid; gap: 9px; }
.toast { min-width: min(360px, calc(100vw - 36px)); padding: 13px 15px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: var(--shadow-md); font-size: .79rem; font-weight: 750; animation: soft-in .2s ease both; }
.toast.error { color: #991b1b; border-color: #fecaca; background: #fff7f7; }
.toast.success { color: #065f46; border-color: #a7f3d0; background: #f2fffa; }

@keyframes soft-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes step-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }
@keyframes float-card { 0%, 100% { transform: translateY(0) rotate(.2deg); } 50% { transform: translateY(-9px) rotate(-.2deg); } }
@keyframes drawer-in { from { transform: translateX(25px); opacity: .7; } to { transform: translateX(0); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 1040px) {
  .nav-links .nav-link { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-preview { max-width: 650px; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; display: flex; overflow-x: auto; }
  .sidebar-label { display: none; }
  .side-link { width: auto; white-space: nowrap; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: repeat(2, 1fr); }
  .automation-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .container, .narrow { width: min(100% - 22px, 1180px); }
  .navbar { min-height: 66px; }
  .brand-tagline { display: none; }
  .nav-links { gap: 5px; }
  .nav-links .btn { min-height: 38px; padding: 8px 10px; font-size: .72rem; }
  .hero { min-height: auto; }
  .hero-grid { padding: 64px 0; gap: 38px; }
  .hero h1 { font-size: 2.55rem; }
  .hero-preview { padding: 10px; border-radius: 23px; }
  .section { padding: 68px 0; }
  .info-grid, .plans-grid, .process-grid, .privacy-card { grid-template-columns: 1fr; }
  .privacy-card, .cta-box { padding: 28px 21px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-aside { min-height: 275px; padding: 28px 22px; }
  .auth-aside-content { margin-top: 48px; }
  .auth-aside h1 { font-size: 2.2rem; }
  .auth-main { padding: 34px 20px; align-items: start; }
  .form-grid, .review-grid, .plan-summary { grid-template-columns: 1fr; }
  .detail-grid, .profile-grid { grid-template-columns: 1fr; }
  .dns-record { grid-template-columns: 1fr; align-items: stretch; }
  .domain-verification-head, .domain-verification-actions { align-items: flex-start; flex-direction: column; }
  .launch-check { grid-template-columns: 36px minmax(0, 1fr); align-items: start; }
  .launch-check-action { grid-column: 2; justify-self: start; }
  .launch-summary-head { align-items: flex-start; }
  .launch-closed-shell { padding: 29px 21px; }
  .appointment-card { grid-template-columns: 72px minmax(0, 1fr); }
  .appointment-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .buffer-actions { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: repeat(5, minmax(56px, 1fr)); overflow-x: auto; }
  .step-item { min-width: 72px; font-size: .6rem; }
  .register-body { padding: 25px 20px; }
  .register-footer { padding: 16px 20px; }
  .logo-uploader { grid-template-columns: 1fr; }
  .logo-preview { width: 130px; height: 130px; }
  .app-topbar-inner, .app-layout { width: min(100% - 20px, 1440px); }
  .topbar-actions .user-pill { display: none; }
  .page-head { flex-direction: column; }
  .kpi-grid, .filters { grid-template-columns: 1fr; }
  .filters.professional-filters { grid-template-columns: 1fr; }
  .professional-filters .filter-action { grid-column: auto; flex-wrap: wrap; }
  .card { padding: 15px; }
  .agenda-tools { align-items:flex-start; flex-direction:column; }
  .calendar-grid { gap:3px; }
  .calendar-day { min-height:72px; padding:5px; }
  .calendar-event { font-size:.55rem; }
  .drawer { width: 100vw; }
}

/* Panel profesional: una sola vista operativa de Reservas. */
.professional-single-layout {
  grid-template-columns: minmax(0, 1fr);
  width: min(1180px, calc(100% - 32px));
}
.professional-main { width: 100%; }
.professional-current-view {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: .78rem;
  font-weight: 850;
}
.sound-toggle { white-space: nowrap; }
.sound-toggle:not(.hidden) { color:#1e3a8a; border-color:#bfdbfe; background:#eff6ff; }
@media (max-width: 640px) {
  .professional-current-view { display: none; }
  .professional-single-layout { width: min(100% - 20px, 1180px); }
}
