/* ==========================================================================
   LevooNet Telecom - Clean & Modern Stylesheet
   Design: Minimalist Cyber Telecom, High Legibility & Seamless Portal Integration
   ========================================================================== */

:root {
  --bg-dark: #070b14;
  --bg-surface: #0e1628;
  --bg-surface-elevated: #131e36;
  --bg-card: rgba(16, 26, 48, 0.65);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 210, 255, 0.3);

  --primary-blue: #0066ff;
  --primary-cyan: #00d2ff;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-heading: #ffffff;

  --whatsapp-color: #25d366;
  --whatsapp-dark: #128c7e;

  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', var(--font-main);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --shadow-cyan: 0 8px 25px rgba(0, 210, 255, 0.25);
  --shadow-whatsapp: 0 8px 25px rgba(37, 211, 102, 0.35);

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------- RESET & BASE ---------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Background Ambient Glows */
.glow-bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.25;
}

.orb-1 {
  width: 500px;
  height: 500px;
  top: -80px;
  left: -100px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.6), transparent 70%);
}

.orb-2 {
  width: 600px;
  height: 600px;
  top: 45%;
  right: -150px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.4), transparent 70%);
}

/* Typography Helpers */
h1, h2, h3, h4 {
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

ul {
  list-style: none;
}

button, input {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3.5vw, 28px);
}

.max-w-800 {
  max-width: 780px;
  width: 100%;
}

.text-center {
  text-align: center;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 15%, #00f2fe 65%, #0066ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-cyan { color: var(--primary-cyan) !important; }
.text-orange { color: var(--accent-amber) !important; }

/* ---------------- GLASSMORPHISM ---------------- */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.glass-panel:hover {
  border-color: rgba(0, 210, 255, 0.25);
}

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-large {
  padding: 14px 28px;
  font-size: 1.02rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
  color: #ffffff;
  border: none;
  box-shadow: var(--shadow-cyan);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 210, 255, 0.4);
  filter: brightness(1.05);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-cyan);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-cyan);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
  background: rgba(0, 210, 255, 0.05);
}

.btn-whatsapp-nav {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff;
  box-shadow: var(--shadow-whatsapp);
}

.btn-whatsapp-nav:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn-whatsapp-plan {
  background: rgba(37, 211, 102, 0.1);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.3);
  width: 100%;
}

.btn-whatsapp-plan:hover {
  background: #25d366;
  color: #ffffff;
  border-color: #25d366;
  box-shadow: var(--shadow-whatsapp);
}

/* ---------------- HEADER ---------------- */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  transition: all var(--transition-fast);
}

.main-header.scrolled {
  background: rgba(4, 7, 13, 0.96);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-full {
  display: flex;
  align-items: center;
  height: 48px;
  max-width: 210px;
  width: auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.brand-logo-full:hover {
  transform: scale(1.02);
  filter: brightness(1.08);
}

.brand-logo-svg {
  height: 100%;
  width: auto;
  aspect-ratio: 2150 / 650;
  display: block;
}

.footer-logo-full {
  height: 52px;
  max-width: 220px;
  width: auto;
  margin-bottom: 14px;
  display: inline-block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.footer-logo-full:hover {
  transform: scale(1.02);
  filter: brightness(1.08);
}

.footer-logo-full svg {
  height: 100%;
  width: auto;
  aspect-ratio: 2150 / 650;
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-phone-short {
  display: none;
}

.mobile-menu-actions {
  display: none;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------------- HERO SECTION ---------------- */
.hero-section {
  padding: clamp(40px, 7vw, 75px) 0 clamp(45px, 8vw, 80px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(28px, 4vw, 48px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.2);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--primary-cyan);
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.hero-title {
  font-size: clamp(2.1rem, 5vw + 0.3rem, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 18px;
  word-break: break-word;
}

.hero-desc {
  font-size: clamp(0.95rem, 1.2vw + 0.5rem, 1.05rem);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.hero-desc strong {
  color: #fff;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-coverage-summary {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cov-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.cov-pills {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.cov-pills strong {
  color: var(--primary-cyan);
}

/* Quick Access 2ª Via Card */
.quick-access-card {
  padding: 30px;
  border: 1px solid rgba(0, 210, 255, 0.22);
  background: rgba(14, 23, 44, 0.8);
}

.card-status-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.status-indicator.live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-cyan);
  box-shadow: 0 0 8px var(--primary-cyan);
}

.quick-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.quick-card-body p {
  font-size: 0.86rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.quick-card-features {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.q-feat {
  font-size: 0.75rem;
  color: var(--accent-green);
}

.quick-card-footer {
  margin-top: 16px;
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-dim);
}

.quick-card-footer strong {
  color: #fff;
}

/* ---------------- DIFERENCIAIS ---------------- */
.section-features {
  padding: clamp(20px, 4vw, 30px) 0 clamp(35px, 6vw, 55px);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}

.feature-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: clamp(18px, 3vw, 24px);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.f-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ---------------- SEÇÕES COMUNS ---------------- */
.section {
  padding: clamp(50px, 8vw, 85px) 0;
}

.section-header {
  margin-bottom: clamp(28px, 5vw, 42px);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw + 0.4rem, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: clamp(0.92rem, 1.2vw + 0.4rem, 1.02rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------------- PLANOS (200, 300, 400 MB) ---------------- */
.plans-tab-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 35px;
}

.tabs-pill {
  display: inline-flex;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  padding: 5px;
  border-radius: var(--radius-full);
  gap: 6px;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
  color: #ffffff;
  box-shadow: var(--shadow-cyan);
}

.plans-grid-container {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(18px, 2.5vw, 26px);
  max-width: 1080px;
  margin: 0 auto;
}

.plans-grid-container.active {
  display: grid;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.plan-card {
  padding: clamp(24px, 3.5vw, 32px) clamp(18px, 2.5vw, 24px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  height: 100%;
}

.plan-featured {
  border-color: var(--primary-cyan);
  box-shadow: 0 12px 35px rgba(0, 210, 255, 0.15);
  transform: scale(1.03);
  background: linear-gradient(180deg, rgba(20, 34, 62, 0.85) 0%, rgba(14, 23, 44, 0.8) 100%);
}

.featured-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #00f2fe, #0066ff);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 14px;
  border-radius: var(--radius-full);
}

.plan-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
  margin-bottom: 6px;
}

.plan-name {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.plan-speed {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}

.speed-number {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
}

.speed-unit {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dim);
}

.plan-desc {
  font-size: 0.85rem;
  min-height: 44px;
  margin-bottom: 16px;
}

.plan-price-box {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.price-notice {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.price-region-hint {
  display: block;
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.plan-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
  flex: 1;
}

.plan-features-list li {
  font-size: 0.85rem;
  color: #cbd5e1;
  position: relative;
  padding-left: 18px;
}

.plan-features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: 800;
}

.plan-cta {
  margin-top: auto;
}

/* ---------------- COBERTURA / CIDADES ---------------- */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(18px, 2.5vw, 24px);
  margin-bottom: 25px;
}

.city-card {
  padding: clamp(22px, 3.5vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.city-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.city-pin {
  font-size: 1.3rem;
}

.city-title-row h3 {
  font-size: 1.3rem;
}

.city-sub {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.city-locations {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
  flex: 1;
}

.city-locations li {
  font-size: 0.88rem;
  color: #cbd5e1;
  padding-left: 14px;
  position: relative;
}

.city-locations li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-cyan);
}

.coverage-direct-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 20px;
}

.coverage-direct-note a {
  color: var(--primary-cyan);
  font-weight: 600;
}

.coverage-direct-note a:hover {
  text-decoration: underline;
}

/* ---------------- CENTRAL DO ASSINANTE SECTION ---------------- */
.central-card {
  padding: 40px;
  border: 1px solid rgba(0, 210, 255, 0.25);
  background: var(--bg-surface);
}

.central-header .c-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.central-header h2 {
  font-size: 1.85rem;
  margin-bottom: 8px;
}

.central-header p {
  font-size: 0.92rem;
  max-width: 540px;
  margin: 0 auto 24px;
}

/* Form Styles & Inputs */
.central-form {
  max-width: 580px;
  margin: 0 auto 20px;
}

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.input-action-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.input-action-group input,
.form-group input[type="text"] {
  width: 100%;
  background: rgba(10, 16, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 13px 20px;
  color: #ffffff;
  font-size: 0.98rem;
  outline: none;
  transition: all var(--transition-fast);
}

.input-action-group input {
  flex: 1;
}

.input-action-group input:focus,
.form-group input[type="text"]:focus {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.3);
  background: rgba(14, 23, 44, 0.95);
}

.input-action-group input::placeholder,
.form-group input[type="text"]::placeholder {
  color: var(--text-dim);
}

/* Invoices Loader */
.invoices-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 0;
  color: var(--primary-cyan);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Invoices Status Alert */
.invoices-status-box {
  margin: 20px auto;
  max-width: 600px;
  animation: fadeIn 0.3s ease;
}

.status-alert {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: left;
}

.status-alert.error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.alert-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.alert-content strong {
  display: block;
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.alert-content p {
  font-size: 0.88rem;
  color: #fca5a5;
  line-height: 1.55;
  margin-bottom: 14px;
}

.alert-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Container de Resultados de Faturas */
.invoices-results-container {
  margin-top: 26px;
  text-align: left;
  animation: fadeIn 0.35s ease;
}

.customer-welcome {
  background: rgba(0, 210, 255, 0.06);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 20px;
}

.user-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.customer-welcome h4 {
  font-size: 1.25rem;
  margin-bottom: 4px;
  color: #fff;
}

.customer-welcome h4 strong {
  color: var(--primary-cyan);
}

.customer-welcome p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.invoices-cards-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.invoice-item-card {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 23, 44, 0.75);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.invoice-item-card:hover {
  border-color: rgba(0, 210, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.invoice-item-card.invoice-paid {
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.04);
}

.inv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.inv-due, .inv-amount {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.inv-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  font-weight: 600;
}

.inv-date {
  font-size: 1.05rem;
  color: #ffffff;
  font-weight: 700;
}

.inv-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-cyan);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pill.badge-open {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.status-pill.badge-overdue {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.status-pill.badge-paid {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.inv-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.inv-paid-notice {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--accent-green);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Histórico / Faturas Anteriores Expansíveis */
.older-invoices-wrapper {
  margin-top: 18px;
}

.older-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0 16px;
  color: var(--text-dim);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.older-divider::before,
.older-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.older-divider span {
  padding: 0 14px;
}

.older-invoices-list {
  animation: fadeIn 0.3s ease;
  margin-bottom: 14px;
}

.btn-toggle-older {
  margin-top: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.btn-toggle-older:hover {
  background: rgba(0, 210, 255, 0.08);
  border-color: var(--primary-cyan);
  color: #ffffff;
}

.btn-toggle-older.active {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.3);
  border-style: solid;
}

.central-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  font-size: 0.84rem;
  flex-wrap: wrap;
}

.btn-text-link {
  background: none;
  border: none;
  color: var(--primary-cyan);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition-fast);
}

.btn-text-link:hover {
  text-decoration: underline;
  color: #ffffff;
}

.link-crm {
  color: var(--primary-cyan);
  font-weight: 600;
}

.link-whats {
  color: var(--whatsapp-color);
  font-weight: 600;
}

.sep {
  color: var(--text-dim);
}

/* ---------------- FAQ ACCORDION ---------------- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  gap: 14px;
}

.accordion-icon {
  font-size: 1.3rem;
  color: var(--primary-cyan);
  transition: transform var(--transition-normal);
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 22px;
}

.accordion-item.active .accordion-body {
  max-height: 300px;
  padding: 0 22px 18px;
}

.accordion-body p {
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ---------------- FOOTER ---------------- */
.main-footer {
  background: #03060c;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 50px 0 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 40px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.footer-brand span {
  color: var(--primary-cyan);
}

.footer-info p {
  font-size: 0.86rem;
  line-height: 1.5;
  margin-bottom: 4px;
}

.footer-info strong {
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 20px 0;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ---------------- FLOATING WHATSAPP ---------------- */
.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 99;
}

.float-btn-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition-fast);
}

.float-btn-icon:hover {
  transform: scale(1.08);
}

/* ---------------- MODAL INTEGRADO (PORTAL IN-SITE) ---------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 24px);
  overflow-y: auto;
}

.modal-backdrop.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.modal-window-iframe {
  width: 100%;
  max-width: 960px;
  height: min(760px, 90vh);
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  background: #0d1527;
  border: 1px solid rgba(0, 210, 255, 0.35);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.portal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: #090f1d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-brand-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 210, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-brand-identity h3 {
  font-size: 1.05rem;
  line-height: 1.2;
}

.portal-badge-ssl {
  font-size: 0.7rem;
  color: var(--accent-green);
  display: block;
}

.portal-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-portal-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn-portal-action:hover {
  color: #fff;
  border-color: var(--primary-cyan);
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.modal-close-btn:hover {
  color: #fff;
}

/* Iframe Container */
.portal-iframe-wrapper {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  background: #ffffff;
}

.portal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.iframe-loading-spinner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #090f1d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
  z-index: 5;
  transition: opacity 0.3s ease;
}

.spinner-circle {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(0, 210, 255, 0.2);
  border-top-color: var(--primary-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.portal-modal-footer {
  padding: 10px 20px;
  background: #090f1d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  text-align: center;
  color: var(--text-dim);
}

.portal-modal-footer a {
  color: var(--whatsapp-color);
}

/* ---------------- TOAST ---------------- */
.toast-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--primary-cyan);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------------- RESPONSIVIDADE & PROPORÇÃO TOTAL ---------------- */

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tablets Landscape & Small Laptops (<= 1080px) */
@media (max-width: 1080px) {
  .hero-grid {
    gap: 32px;
  }
  .plan-featured {
    transform: none;
  }
  .modal-window-iframe {
    height: 90vh;
    max-height: 90vh;
  }
}

/* Tablets Portrait & Mobile Drawer (<= 860px) */
@media (max-width: 860px) {
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(9, 15, 29, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 24px clamp(16px, 4vw, 28px);
    display: none;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    z-index: 99;
  }

  .nav-menu.active {
    display: flex;
    animation: slideDown 0.25s ease;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: background var(--transition-fast), color var(--transition-fast);
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(0, 210, 255, 0.08);
  }

  .mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .menu-toggle {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .plans-grid-container,
  .plans-grid-container.active {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .cities-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto 25px;
  }
}

/* Standard Smartphones (<= 640px) */
@media (max-width: 640px) {
  .btn-central {
    display: none;
  }

  .nav-phone-full {
    display: none;
  }

  .nav-phone-short {
    display: inline;
  }

  .btn-whatsapp-nav {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .quick-access-card {
    padding: 22px 18px;
  }

  .central-card {
    padding: 24px 16px;
  }

  .input-action-group {
    flex-direction: column;
    align-items: stretch;
  }

  .input-action-group .btn {
    width: 100%;
    justify-content: center;
  }

  .inv-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .inv-status {
    grid-column: span 2;
  }

  .inv-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .inv-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .modal-window-iframe {
    height: 94vh;
    max-height: 94vh;
    border-radius: var(--radius-md);
  }

  .portal-modal-header {
    padding: 10px 14px;
  }

  .portal-brand-identity h3 {
    font-size: 0.95rem;
  }

  .action-text {
    display: none;
  }

  .footer-content {
    flex-direction: column;
    gap: 26px;
  }
}

/* Compact Smartphones (<= 420px) */
@media (max-width: 420px) {
  .nav-container {
    height: 64px;
  }

  .nav-menu {
    top: 64px;
    max-height: calc(100vh - 64px);
  }

  .brand-logo-full {
    height: 38px;
    max-width: 155px;
  }

  .tabs-pill {
    width: 100%;
  }

  .tab-btn {
    flex: 1;
    padding: 9px 8px;
    font-size: 0.82rem;
    text-align: center;
  }

  .inv-top {
    grid-template-columns: 1fr;
  }

  .inv-status {
    grid-column: auto;
  }

  .quick-card-features {
    flex-direction: column;
    gap: 8px;
  }

  .floating-whatsapp {
    bottom: 18px;
    right: 16px;
  }

  .float-btn-icon {
    width: 50px;
    height: 50px;
  }

  .float-btn-icon svg {
    width: 28px;
    height: 28px;
  }
}
