:root {
  --bg: #0f172a;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --primary: #f97316;
  --primary-strong: #ea580c;
  --success: #22c55e;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

html {
  font-size: 16px;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.2), transparent 30%),
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.16), transparent 22%),
    linear-gradient(180deg, #111827 0%, #0f172a 48%, #020617 100%);
}

body.telesales-focus-body {
  background: #eef2f7;
  color: #0f172a;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1rem;
}

.topbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand-link {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-caption,
.section-copy,
.hero-copy,
.empty-state,
.activity-card p,
.status-lead-card p {
  margin: 0;
  color: var(--muted);
}

.topbar-actions,
.user-pill,
.mobile-nav,
.hero-stats,
.metric-grid,
.content-grid,
.action-grid,
.status-board,
.mini-metrics {
  display: grid;
  gap: 1rem;
}

.user-pill {
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.user-pill__name {
  font-weight: 700;
}

.user-pill__role {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.mobile-nav {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.mobile-nav__link {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-shell {
  display: grid;
  gap: 1rem;
}

.flash-banner,
.panel-card,
.page-header-card,
.lead-focus-card,
.hero-card {
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.flash-banner,
.page-header-card,
.panel-card,
.lead-focus-card,
.hero-card,
.auth-card {
  padding: 1.3rem;
}

.flash-banner {
  color: #fff7ed;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.95), rgba(194, 65, 12, 0.92));
}

[data-flash-banner] {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 220ms ease;
}

[data-flash-banner].is-dismissing {
  opacity: 0;
  transform: translateY(-6px);
}

.hero-grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

.hero-card h1,
.page-header-card h1,
.lead-focus-card h2,
.panel-card h2 {
  margin: 0.25rem 0 0.5rem;
  line-height: 1.1;
}

.eyebrow {
  display: inline-block;
  color: #fdba74;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
}

.stat-card,
.metric-card,
.activity-card,
.status-lead-card,
.template-row,
.status-row {
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card strong,
.metric-card strong {
  display: block;
  font-size: 1.4rem;
}

.premium-input {
  min-height: 3.4rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.premium-input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(249, 115, 22, 0.18);
  color: var(--text);
}

.premium-input::file-selector-button {
  background: rgba(249, 115, 22, 0.18);
  color: var(--text);
  border: 0;
  padding: 0.75rem 1rem;
  margin-right: 1rem;
}

.premium-button {
  min-height: 3.35rem;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 16px 30px rgba(234, 88, 12, 0.28);
}

.premium-button:hover,
.premium-button:focus {
  background: linear-gradient(135deg, #fb923c, var(--primary));
}

.stack-form {
  display: grid;
  gap: 1rem;
}

.metric-grid,
.hero-stats,
.status-board {
  grid-template-columns: 1fr;
}

.metric-card span,
.template-row strong,
.status-row span,
.lead-focus-card p,
.activity-meta small,
.status-lead-meta small {
  color: var(--muted);
}

.content-grid {
  grid-template-columns: 1fr;
}

.section-heading {
  margin-bottom: 1rem;
}

.table-stack,
.status-summary-list,
.template-list {
  display: grid;
  gap: 0.85rem;
}

.activity-card,
.status-lead-card,
.status-row,
.template-row,
.lead-focus-card__header,
.mini-metrics,
.page-header-card {
  align-items: center;
}

.activity-card,
.status-lead-card,
.status-row,
.template-row,
.lead-focus-card__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.activity-meta,
.status-lead-meta {
  display: grid;
  text-align: right;
}

.mini-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-metrics > div {
  padding: 0.9rem 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
}

.mini-metrics strong {
  display: block;
  font-size: 1.3rem;
}

.lead-focus-card__header {
  margin-bottom: 1.25rem;
}

.lead-phone {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

.action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  border-radius: 18px;
  font-weight: 700;
}

.action-button--call {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.action-button--whatsapp {
  background: linear-gradient(135deg, #15803d, #22c55e);
}

.empty-state-block {
  display: grid;
  gap: 1rem;
  text-align: center;
}

.request-panel {
  max-width: 540px;
  margin: 0 auto;
}

.auth-card {
  width: 100%;
}

.form-label {
  color: #e5e7eb;
  margin-bottom: 0.45rem;
}

.telesales-shell {
  max-width: 440px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.telesales-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.2rem 0;
}

.telesales-header h1 {
  margin: 0.2rem 0 0;
  font-size: 1.75rem;
  color: #f8fafc;
}

.telesales-eyebrow {
  color: #7dd3c7;
}

.telesales-user-badge {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #0f172a;
  background: linear-gradient(135deg, #d1fae5, #99f6e4);
  box-shadow: 0 12px 24px rgba(45, 212, 191, 0.25);
}

.telesales-empty-card,
.telesales-lead-card {
  padding: 1.1rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.96));
  color: #1e293b;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.telesales-empty-card {
  display: grid;
  gap: 1rem;
  text-align: center;
  padding: 1.6rem 1.2rem;
}

.telesales-empty-card h2,
.telesales-lead-main h2 {
  margin: 0;
  color: #1f2937;
}

.telesales-empty-card p,
.telesales-lead-main p {
  margin: 0;
  color: #64748b;
}

.telesales-empty-visual {
  width: 7rem;
  height: 7rem;
  margin: 0 auto;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #d1fae5, #e2e8f0 70%);
  box-shadow: inset 0 8px 20px rgba(255, 255, 255, 0.9);
}

.telesales-empty-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.telesales-primary-button,
.telesales-submit-button {
  min-height: 3.4rem;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
}

.telesales-primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #059669);
  box-shadow: 0 14px 28px rgba(5, 150, 105, 0.28);
}

.telesales-submit-button {
  color: #ffffff;
  background: linear-gradient(135deg, #4b5563, #6b7280);
}

.telesales-lead-card {
  display: grid;
  gap: 1rem;
}

.telesales-lead-main {
  display: grid;
  gap: 0.45rem;
  text-align: center;
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid rgba(15, 118, 110, 0.12);
}

.telesales-phone-link {
  color: #0f766e;
  font-size: 1.15rem;
  font-weight: 700;
}

.telesales-form {
  display: grid;
  gap: 1rem;
}

.telesales-form-section {
  display: grid;
  gap: 0.55rem;
}

.telesales-label {
  color: #334155;
  font-weight: 700;
}

.telesales-select {
  min-height: 3.2rem;
  border-radius: 16px;
  border: 1px solid rgba(15, 118, 110, 0.25);
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 10px 24px rgba(148, 163, 184, 0.12);
}

.telesales-select:focus {
  border-color: rgba(20, 184, 166, 0.55);
  box-shadow: 0 0 0 0.18rem rgba(45, 212, 191, 0.16);
}

.telesales-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.telesales-action-button {
  min-height: 3.2rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.14);
}

.telesales-action-button--call {
  background: linear-gradient(135deg, #065f46, #0f766e);
}

.telesales-action-button--whatsapp {
  background: linear-gradient(135deg, #15803d, #22c55e);
}

@media (min-width: 768px) {
  .app-shell {
    padding: 1.5rem;
  }

  .topbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .topbar-actions {
    grid-template-columns: auto auto;
    align-items: center;
  }

  .mobile-nav {
    grid-template-columns: repeat(4, max-content);
    justify-content: start;
  }

  .hero-grid,
  .content-grid {
    grid-template-columns: 1.25fr 0.95fr;
  }

  .metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .status-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-header-card {
    display: flex;
    justify-content: space-between;
  }

  .telesales-shell {
    max-width: 520px;
  }
}
