/* ══════════════════════════════════════════════════════════════════
   CuadraYa — Design System
   Paleta: Índigo profundo + Verde éxito + Grises oscuros
   ══════════════════════════════════════════════════════════════════ */

/* ── Variables ───────────────────────────────────────────────────── */
:root {
  --brand-primary:   #6366f1; /* índigo */
  --brand-secondary: #8b5cf6; /* violeta */
  --brand-success:   #22c55e; /* verde */
  --brand-warning:   #f59e0b;
  --brand-danger:    #ef4444;

  --bg-base:    #0f0f1a;
  --bg-card:    #16162a;
  --bg-card-2:  #1e1e38;
  --bg-surface: #252545;

  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;

  --border:         rgba(255,255,255,0.08);
  --border-strong:  rgba(255,255,255,0.16);

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(99,102,241,0.25);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 1120px;
}

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── Utility ─────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.gradient-text {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hidden { display: none !important; }

/* ── Lucide Icons ────────────────────────────────────────────────── */
.lucide {
  width: 1.2em;
  height: 1.2em;
  stroke-width: 2px;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #fff;
  box-shadow: 0 4px 16px rgba(99,102,241,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(99,102,241,0.5); }
.btn-ghost { color: var(--text-secondary); background: transparent; }
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-card); }
.btn-outline {
  border: 1.5px solid var(--border-strong);
  color: var(--text-primary);
  background: transparent;
}
.btn-outline:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.btn-lg { padding: 14px 32px; font-size: 17px; border-radius: var(--radius-lg); }
.btn-block { width: 100%; justify-content: center; }

/* ── Navbar ─────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15,15,26,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.5); }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; }
.logo-icon { font-size: 24px; }
.logo-pe { color: var(--brand-primary); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-card); }
.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 22px; cursor: pointer; }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 160px 0 100px;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(99,102,241,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(139,92,246,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(99,102,241,0.4);
  background: rgba(99,102,241,0.1);
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease both;
}
.hero-title {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
  animation: fadeUp 0.6s 0.1s ease both;
}
.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  animation: fadeUp 0.6s 0.2s ease both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
  animation: fadeUp 0.6s 0.3s ease both;
}
.hero-proof {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 14px;
  animation: fadeUp 0.6s 0.4s ease both;
}
.proof-item { display: flex; align-items: center; gap: 6px; }

/* ── Demo Section ────────────────────────────────────────────────── */
.demo { padding: 100px 0; }
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.demo-text h2 { font-size: 40px; font-weight: 800; margin-bottom: 40px; }
.steps { display: flex; flex-direction: column; gap: 28px; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step-num {
  width: 40px; height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
  box-shadow: 0 4px 16px rgba(99,102,241,0.4);
}
.step-body strong { display: block; font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.step-body p { color: var(--text-secondary); font-size: 14px; }

/* Phone Mockup */
.demo-phone { display: flex; justify-content: center; }
.phone-frame {
  width: 280px;
  border-radius: 36px;
  border: 8px solid var(--bg-surface);
  background: #1a1a2e;
  box-shadow: var(--shadow-glow), var(--shadow-card);
  overflow: hidden;
}
.phone-screen { height: 480px; display: flex; flex-direction: column; }
.chat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  background: var(--bg-card-2);
  border-bottom: 1px solid var(--border);
}
.chat-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.chat-name { font-weight: 700; font-size: 14px; }
.chat-status { font-size: 11px; color: var(--brand-success); }
.chat-messages {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
  animation: fadeUp 0.4s ease both;
}
.msg-in {
  background: var(--bg-surface);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.msg-out {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.msg-image { font-size: 20px; text-align: center; padding: 4px 0; }

/* Typing indicator */
.typing {
  display: flex !important;
  gap: 4px;
  align-items: center;
  padding: 12px 16px;
}
.typing span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }

/* ── Features ────────────────────────────────────────────────────── */
.features { padding: 100px 0; background: linear-gradient(180deg, transparent, rgba(99,102,241,0.03)); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 40px; font-weight: 800; margin-bottom: 12px; }
.section-header p { color: var(--text-secondary); font-size: 18px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-primary);
  box-shadow: 0 8px 32px rgba(99,102,241,0.2);
}
.feature-icon { font-size: 36px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 14px; }

/* ── Pricing ─────────────────────────────────────────────────────── */
.pricing { padding: 100px 0; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  transition: all 0.3s ease;
}
.plan-card:hover { transform: translateY(-4px); }
.plan-card.plan-featured {
  border-color: var(--brand-primary);
  background: linear-gradient(160deg, rgba(99,102,241,0.12), var(--bg-card));
  box-shadow: 0 0 40px rgba(99,102,241,0.2);
  transform: scale(1.04);
}
.plan-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.plan-badge-hot { color: var(--brand-warning); }
.plan-name { font-size: 24px; font-weight: 800; margin-bottom: 16px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 28px; }
.plan-amount { font-size: 48px; font-weight: 900; }
.plan-period { color: var(--text-muted); font-size: 16px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.plan-features li { font-size: 14px; }
.plan-features li.disabled { color: var(--text-muted); }

/* ── CTA Final ───────────────────────────────────────────────────── */
.cta-final {
  padding: 120px 0;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(99,102,241,0.06), transparent);
}
.cta-final h2 { font-size: 48px; font-weight: 900; margin-bottom: 16px; }
.cta-final p { color: var(--text-secondary); font-size: 18px; margin-bottom: 40px; }

/* ── Footer ──────────────────────────────────────────────────────── */
.footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-primary); }
.footer-copy { color: var(--text-muted); font-size: 13px; }

/* ── Auth Pages ──────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 40px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(99,102,241,0.15) 0%, transparent 70%);
}
.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-card);
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-title { font-size: 28px; font-weight: 800; margin-bottom: 8px; text-align: center; }
.auth-subtitle { color: var(--text-secondary); font-size: 15px; text-align: center; margin-bottom: 32px; }

/* ── Form Elements ───────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  transition: all 0.2s;
  outline: none;
}
.form-input:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.form-input::placeholder { color: var(--text-muted); }
.form-input.error { border-color: var(--brand-danger); }

/* Password visibility toggle */
.password-wrapper {
  position: relative;
  width: 100%;
}
.password-wrapper .form-input {
  padding-right: 48px;
}
.password-toggle-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: color 0.2s;
  z-index: 2;
  outline: none;
}
.password-toggle-btn:hover {
  color: var(--text-primary);
}
.password-toggle-btn svg,
.password-toggle-btn .lucide {
  width: 20px;
  height: 20px;
  stroke-width: 1.75px;
}

.form-hint { font-size: 12px; color: var(--text-muted); }
.form-error { font-size: 12px; color: var(--brand-danger); display: none; }
.form-error.show { display: block; }

.form-divider { text-align: center; color: var(--text-muted); font-size: 13px; margin: 24px 0; position: relative; }
.form-divider::before, .form-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 20px);
  height: 1px;
  background: var(--border);
}
.form-divider::before { left: 0; }
.form-divider::after { right: 0; }

.form-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-secondary); }
.form-footer a { color: var(--brand-primary); font-weight: 600; }
.form-footer a:hover { text-decoration: underline; }

/* Alert */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 20px;
  display: none;
}
.alert.show { display: block; }
.alert-success { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }
.alert-error { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }

/* Onboarding Steps */
.onboarding-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 36px;
  position: relative;
}
.onboarding-steps::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.o-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}
.o-step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.3s;
}
.o-step.active .o-step-dot {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  box-shadow: 0 0 12px rgba(99,102,241,0.5);
}
.o-step.done .o-step-dot { background: var(--brand-success); border-color: var(--brand-success); }
.o-step-label { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.o-step.active .o-step-label { color: var(--brand-primary); }

/* ── Dashboard ───────────────────────────────────────────────────── */
.dashboard { min-height: 100vh; display: flex; }
.sidebar {
  width: 240px;
  min-height: 100vh;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  position: fixed;
  top: 0; left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-logo { padding: 8px 12px; margin-bottom: 16px; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.sidebar-link:hover { background: var(--bg-card-2); color: var(--text-primary); }
.sidebar-link.active { background: rgba(99,102,241,0.15); color: var(--brand-primary); }
.sidebar-icon { font-size: 18px; }
.dashboard-main { margin-left: 240px; padding: 40px; flex: 1; }
.dashboard-header { margin-bottom: 32px; }
.dashboard-header h1 { font-size: 28px; font-weight: 800; }
.dashboard-header p { color: var(--text-secondary); font-size: 15px; margin-top: 4px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s;
}
.stat-card:hover { border-color: var(--brand-primary); transform: translateY(-2px); }
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.stat-value { font-size: 32px; font-weight: 800; margin-bottom: 4px; }
.stat-change { font-size: 12px; color: var(--brand-success); }

.payments-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.table-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.table-header h2 { font-size: 18px; font-weight: 700; }
table { width: 100%; border-collapse: collapse; }
th {
  padding: 12px 24px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card-2);
}
td { padding: 14px 24px; font-size: 14px; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

.badge-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.badge-ok { background: rgba(34,197,94,0.15); color: #86efac; }
.badge-err { background: rgba(239,68,68,0.15); color: #fca5a5; }

/* ── Plan Usage Bar ──────────────────────────────────────────────── */
.usage-bar-wrap { margin-top: 8px; }
.usage-bar-track { height: 6px; background: var(--bg-surface); border-radius: 999px; overflow: hidden; }
.usage-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary)); transition: width 0.8s ease; }
.usage-bar-fill.danger { background: linear-gradient(90deg, var(--brand-warning), var(--brand-danger)); }

/* ── Animations ──────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(-6px); }
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    gap: 8px;
    z-index: 99;
  }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-phone { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .plan-card.plan-featured { transform: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .sidebar { display: none; }
  .dashboard-main { margin-left: 0; padding: 20px; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 32px 24px; }
  .hero { padding: 120px 0 80px; }
}

/* ── Modal ───────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 15, 26, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow-card);
  transform: translateY(20px);
  transition: transform 0.25s ease;
  position: relative;
}
.modal-overlay.active .modal-container {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 24px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
  line-height: 1;
}
.modal-close:hover {
  color: var(--text-primary);
}
.modal-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.modal-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.yape-box {
  background: var(--bg-card-2);
  border: 1px dashed var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 16px 0;
  text-align: center;
}
.yape-phone {
  font-size: 24px;
  font-weight: 800;
  color: var(--brand-primary);
  letter-spacing: 1px;
  margin-top: 4px;
}
.yape-name {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Sheets & Collaborators Panel ────────────────────────────────── */
.sheets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.sheet-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.sheet-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.sheet-card.active {
  border-color: var(--brand-success);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.1);
}
.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.sheet-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.sheet-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sheet-url {
  font-size: 13px;
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  text-decoration: none;
  word-break: break-all;
}
.sheet-url:hover {
  text-decoration: underline;
}
.sheet-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.collaborators-section {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.collaborators-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.collaborator-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card-2);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text-primary);
}
.btn-delete-colab {
  background: transparent;
  border: none;
  color: var(--brand-danger);
  cursor: pointer;
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  padding: 2px;
}
.btn-delete-colab:hover {
  opacity: 1;
}
.add-collaborator-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}


