/* =========================================
   CONNECTION BJ — SALES APP STYLES
   Mobile-First, Progressive Enhancement
   ========================================= */

:root {
  --primary: #0a2540;
  --primary-light: #1a3a5c;
  --accent: #00c6ff;
  --accent2: #0072ff;
  --green: #00c853;
  --red: #f44336;
  --yellow: #ffc107;
  --orange: #ff6b35;

  /* Operators */
  --softbank: #1a6fd4;
  --softbank-light: #e8f1fc;
  --au: #f47c2f;
  --au-light: #fef3ea;
  --home: #00a86b;
  --home-light: #e0f5ed;
  --flets: #7b2fbe;
  --flets-light: #f0e8fc;
  --nuro: #e53935;
  --nuro-light: #fde8e8;

  --bg: #f0f4f8;
  --card-bg: #ffffff;
  --text: #1a1a2e;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  --topbar-h: 60px;
  --bottomnav-h: 68px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
img { max-width: 100%; }

/* ===== UTILITIES ===== */
.hidden { display: none !important; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* ===== SPLASH ===== */
.splash {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, #0072ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.splash.fade-out {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}
.splash-logo {
  text-align: center;
  color: #fff;
}
.splash-icon {
  width: 90px; height: 90px;
  background: rgba(255,255,255,0.2);
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 40px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.splash-logo h1 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.splash-logo p { font-size: 14px; opacity: 0.8; margin-bottom: 30px; }
.splash-loader {
  width: 160px; height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  margin: 0 auto;
  overflow: hidden;
}
.splash-bar {
  height: 100%;
  background: #fff;
  border-radius: 4px;
  width: 0%;
  animation: loadBar 1.8s ease-in-out forwards;
}
@keyframes loadBar {
  0% { width: 0%; }
  60% { width: 70%; }
  100% { width: 100%; }
}

/* ===== APP ===== */
.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* ===== TOPBAR ===== */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--primary);
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.topbar-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  gap: 12px;
}
.topbar-title {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.brand-dot {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}
.btn-back, .btn-menu {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  border-radius: 10px;
  transition: background 0.2s;
  font-size: 18px;
}
.btn-back:hover, .btn-menu:hover { background: rgba(255,255,255,0.15); }

/* ===== DRAWER ===== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  backdrop-filter: blur(4px);
}
.drawer {
  position: fixed;
  top: 0; right: 0;
  width: 280px;
  height: 100%;
  background: var(--card-bg);
  z-index: 201;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  transform: translateX(0);
  transition: transform 0.3s ease;
}
.drawer.slide-out { transform: translateX(100%); }
.drawer-header {
  padding: 20px 16px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: calc(20px + env(safe-area-inset-top));
}
.drawer-logo {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-size: 16px; font-weight: 700;
}
.drawer-logo i { font-size: 20px; color: var(--accent); }
.drawer-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
  border-radius: 8px;
  transition: background 0.2s;
}
.drawer-close:hover { background: rgba(255,255,255,0.2); }
.drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
  list-style: none;
}
.drawer-nav li { margin: 0; }
.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.drawer-link:hover { background: var(--bg); border-left-color: var(--accent); }
.drawer-link i { width: 20px; text-align: center; color: var(--text-muted); }
.op-softbank-link { color: var(--softbank); }
.op-softbank-link i { color: var(--softbank); }
.op-au-link { color: var(--au); }
.op-au-link i { color: var(--au); }
.op-home-link { color: var(--home); }
.op-home-link i { color: var(--home); }
.op-flets-link { color: var(--flets); }
.op-flets-link i { color: var(--flets); }
.drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===== PAGES ===== */
.pages-container {
  margin-top: var(--topbar-h);
  margin-bottom: var(--bottomnav-h);
  height: calc(100vh - var(--topbar-h) - var(--bottomnav-h));
  height: calc(100dvh - var(--topbar-h) - var(--bottomnav-h));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.page {
  display: none;
  min-height: 100%;
  animation: fadeIn 0.3s ease;
}
.page.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== PAGE HEADERS ===== */
.page-header {
  padding: 28px 20px 24px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), #1a3a5c);
  color: #fff;
}
.page-header i { font-size: 36px; margin-bottom: 10px; display: block; }
.page-header h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.page-header p { font-size: 14px; opacity: 0.8; }
.wizard-header { background: linear-gradient(135deg, #6a11cb, #2575fc); }
.compare-header { background: linear-gradient(135deg, #0a2540, #0072ff); }
.scripts-header { background: linear-gradient(135deg, #128c7e, #25d366); }
.contact-header { background: linear-gradient(135deg, #1a1a2e, #16213e); }

/* ===== HOME PAGE ===== */
.home-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0072ff 100%);
  padding: 32px 20px 60px;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.home-hero::after {
  content: '';
  position: absolute;
  bottom: -30px; left: -30px;
  width: 150px; height: 150px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; color: #fff; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  backdrop-filter: blur(4px);
}
.hero-content h2 { font-size: 26px; font-weight: 900; margin-bottom: 6px; }
.hero-content p { font-size: 14px; opacity: 0.85; }
.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.home-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  margin: 0 16px;
  border-radius: var(--radius);
  padding: 14px 8px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
  transform: translateY(-28px);
  margin-bottom: -14px;
}
.stat-item {
  flex: 1;
  text-align: center;
}
.stat-item strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}
.stat-item span {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

.home-actions {
  padding: 12px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  text-align: left;
  width: 100%;
}
.action-card:active { transform: scale(0.98); }
.action-card.primary {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
}
.action-card.primary .action-text strong { color: #fff; }
.action-card.primary .action-text span { color: rgba(255,255,255,0.8); }
.action-card.primary .action-arrow { color: rgba(255,255,255,0.7); }

.action-icon {
  width: 48px; height: 48px;
  min-width: 48px;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: #fff;
}
.action-card.primary .action-icon {
  background: rgba(255,255,255,0.2);
}
.compare-icon { background: linear-gradient(135deg, #0a2540, #0072ff); }
.whats-icon { background: linear-gradient(135deg, #128c7e, #25d366); }

.action-text { flex: 1; }
.action-text strong { display: block; font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.action-text span { font-size: 12px; color: var(--text-muted); }
.action-arrow { font-size: 14px; color: var(--text-muted); }

.ops-grid-section { padding: 20px 16px 0; }
.section-title {
  font-size: 16px; font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}
.ops-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
/* On screens with 5 cards, make last 2 span better */
.ops-grid > .op-card:nth-child(4),
.ops-grid > .op-card:nth-child(5) {
  /* Natural flow — 3 cols, 2nd row: first is center of 3 slots */
}
.op-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  border: 2px solid transparent;
  width: 100%;
}
.op-card:active { transform: scale(0.96); }
.op-card .op-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin-bottom: 2px;
}
.op-card strong { font-size: 12px; font-weight: 700; }
.op-card span { font-size: 11px; color: var(--text-muted); }
.op-badge {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
  background: #e8f4ff;
  color: #0072ff;
  margin-top: 2px;
}
.op-badge.nishi-only { background: #fff3e0; color: var(--au); }
.op-badge.cashback { background: #fde8e8; color: var(--nuro); }

.op-card.softbank { border-color: var(--softbank-light); }
.op-card.softbank:hover { border-color: var(--softbank); }
.op-card.softbank .op-icon { background: var(--softbank-light); color: var(--softbank); }
.op-card.au .op-icon { background: var(--au-light); color: var(--au); }
.op-card.home .op-icon { background: var(--home-light); color: var(--home); }
.op-card.flets .op-icon { background: var(--flets-light); color: var(--flets); }
.op-card.nuro .op-icon { background: var(--nuro-light); color: var(--nuro); }

.promo-banner {
  margin: 16px 16px 24px;
  background: linear-gradient(135deg, var(--nuro), #ff6b6b);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-md);
}
.promo-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.promo-inner > i { font-size: 24px; flex-shrink: 0; }
.promo-inner > div { flex: 1; }
.promo-inner strong { display: block; font-size: 14px; font-weight: 700; }
.promo-inner span { font-size: 12px; opacity: 0.9; }
.promo-btn {
  background: rgba(255,255,255,0.25);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
}
.promo-btn:hover { background: rgba(255,255,255,0.35); }

/* ===== WIZARD ===== */
.wizard-container { padding: 16px; }
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadeIn 0.3s ease; }

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
  padding-top: 8px;
}
.step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.3s;
}
.step-dot.active {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
  box-shadow: 0 4px 12px rgba(106,17,203,0.4);
}
.step-dot.done {
  background: var(--green);
  color: #fff;
  font-size: 11px;
}
.step-line {
  flex: 1;
  max-width: 60px;
  height: 3px;
  background: var(--border);
  transition: background 0.3s;
}
.step-line.done { background: var(--green); }

.step-content { padding: 0 4px; }
.step-content h3 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.step-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }

.wizard-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wizard-options.three {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.wiz-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.2s;
  text-align: center;
}
.wiz-btn:active { transform: scale(0.97); }
.wiz-btn i { font-size: 28px; color: #6a11cb; }
.wiz-btn span { font-size: 15px; font-weight: 700; color: var(--text); }
.wiz-btn small { font-size: 12px; color: var(--text-muted); }
.wizard-options.three .wiz-btn { padding: 16px 8px; }
.wizard-options.three .wiz-btn i { font-size: 22px; }
.wizard-options.three .wiz-btn span { font-size: 13px; }
.wiz-btn:hover {
  border-color: #6a11cb;
  background: #f5f0ff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== WIZARD RESULT ===== */
.wizard-result { margin-bottom: 20px; }

.result-header {
  background: linear-gradient(135deg, var(--green), #00e676);
  color: #fff;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
}
.result-header i { font-size: 40px; margin-bottom: 8px; display: block; }
.result-header h3 { font-size: 20px; font-weight: 800; }
.result-header p { font-size: 13px; opacity: 0.9; margin-top: 4px; }

.result-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  border-left: 4px solid var(--green);
}
.result-card.op-softbank { border-left-color: var(--softbank); }
.result-card.op-au { border-left-color: var(--au); }
.result-card.op-home { border-left-color: var(--home); }
.result-card.op-flets { border-left-color: var(--flets); }
.result-card.op-nuro { border-left-color: var(--nuro); }

.result-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.result-rank {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.rank-1 { background: #ffd700; }
.rank-2 { background: #c0c0c0; }
.rank-3 { background: #cd7f32; }

.result-op-name { font-size: 16px; font-weight: 700; flex: 1; }
.result-price { font-size: 18px; font-weight: 800; }
.result-details { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.result-details li { margin-left: 16px; margin-bottom: 2px; }

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.result-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
}
.tag-good { background: #e8f5e9; color: var(--green); }
.tag-warn { background: #fff3e0; color: var(--orange); }
.tag-info { background: #e3f2fd; color: #1565c0; }
.tag-promo { background: #fde8e8; color: var(--nuro); }

.result-action {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.btn-view-plan {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  transition: opacity 0.2s;
}
.btn-view-plan:active { opacity: 0.8; }
.btn-view-plan.softbank { background: var(--softbank); }
.btn-view-plan.au { background: var(--au); }
.btn-view-plan.home { background: var(--home); }
.btn-view-plan.flets { background: var(--flets); }
.btn-view-plan.nuro { background: var(--nuro); }

.btn-whatsapp-script {
  padding: 10px 14px;
  background: #25d366;
  color: #fff;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  transition: opacity 0.2s;
}
.btn-whatsapp-script:active { opacity: 0.8; }

.btn-restart {
  width: 100%;
  padding: 14px;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s;
}
.btn-restart:hover { border-color: #6a11cb; color: #6a11cb; }

/* ===== COMPARE ===== */
.filter-tabs {
  display: flex;
  gap: 0;
  padding: 12px 16px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
}
.filter-tab {
  flex: 1;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  text-align: center;
}
.filter-tab.active {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.compare-table-wrap { padding: 16px; }

.compare-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.compare-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: #fff;
}
.compare-card-header i { font-size: 20px; }
.compare-card-header strong { font-size: 16px; font-weight: 700; flex: 1; }
.compare-card-header .region-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.2);
  font-weight: 600;
}
.softbank-header { background: var(--softbank); }
.au-header { background: var(--au); }
.home-header { background: var(--home); }
.flets-header { background: var(--flets); }
.nuro-header { background: var(--nuro); }

.compare-rows { padding: 0 16px 12px; }
.compare-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.compare-row:last-child { border-bottom: none; }
.compare-row .row-label { color: var(--text-muted); font-size: 13px; }
.compare-row .row-value { font-weight: 600; text-align: right; }
.row-value.highlight { color: var(--green); }
.row-value.warn { color: var(--orange); }

.compare-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px 14px;
}
.feature-chip {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
}
.chip-yes { background: #e8f5e9; color: var(--green); }
.chip-no { background: #fde8e8; color: var(--red); }
.chip-info { background: #e3f2fd; color: #1565c0; }
.chip-promo { background: #fff3e0; color: var(--orange); }

.compare-legend {
  display: flex;
  gap: 16px;
  padding: 12px 16px 24px;
  justify-content: center;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.legend-dot.green { background: var(--green); }
.legend-dot.red { background: var(--red); }
.legend-dot.yellow { background: var(--yellow); }

/* ===== OPERATOR PAGES ===== */
.op-hero {
  padding: 28px 20px 48px;
  position: relative;
  overflow: hidden;
}
.op-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.softbank-hero { background: linear-gradient(135deg, #1a6fd4, #00c6ff); }
.au-hero { background: linear-gradient(135deg, #f47c2f, #ffbb33); }
.home-hero-op { background: linear-gradient(135deg, #00a86b, #00e676); }
.flets-hero { background: linear-gradient(135deg, #7b2fbe, #a855f7); }
.nuro-hero { background: linear-gradient(135deg, #e53935, #ff6b6b); }

.op-hero-content { position: relative; z-index: 1; color: #fff; text-align: center; }
.op-logo-badge {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: #fff;
  margin: 0 auto 12px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.op-hero-content h2 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.op-hero-content p { font-size: 13px; opacity: 0.9; }

.op-content {
  padding: 16px;
  margin-top: -24px;
  position: relative;
  z-index: 1;
}

.op-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.op-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.op-section-header i { font-size: 18px; }
.op-section-header.softbank-accent i, .op-section-header.softbank-accent { color: var(--softbank); }
.op-section-header.au-accent { color: var(--au); }
.op-section-header.home-accent { color: var(--home); }
.op-section-header.flets-accent { color: var(--flets); }
.op-section-header.nuro-accent { color: var(--nuro); }

.plan-list { padding: 12px 16px; }
.plan-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.plan-item:last-child { border-bottom: none; }
.plan-info { flex: 1; }
.plan-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.plan-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.plan-price {
  text-align: right;
  flex-shrink: 0;
  margin-left: 12px;
}
.plan-price .price-main { font-size: 18px; font-weight: 800; color: var(--text); }
.plan-price .price-sub { font-size: 11px; color: var(--text-muted); white-space: nowrap; }

.info-list { padding: 12px 16px; list-style: none; }
.info-list li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
}
.info-list li:last-child { border-bottom: none; }
.info-list li i { margin-top: 2px; flex-shrink: 0; font-size: 14px; }
.info-list li.good i { color: var(--green); }
.info-list li.warn i { color: var(--orange); }
.info-list li.info i { color: #1565c0; }
.info-list li.promo i { color: var(--nuro); }

.highlight-box {
  margin: 12px 16px;
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.highlight-box.green-box { background: #e8f5e9; border-left: 4px solid var(--green); }
.highlight-box.orange-box { background: #fff3e0; border-left: 4px solid var(--orange); }
.highlight-box.blue-box { background: #e3f2fd; border-left: 4px solid #1565c0; }
.highlight-box.red-box { background: #fde8e8; border-left: 4px solid var(--nuro); }
.highlight-box i { font-size: 18px; margin-top: 1px; flex-shrink: 0; }
.green-box i { color: var(--green); }
.orange-box i { color: var(--orange); }
.blue-box i { color: #1565c0; }
.red-box i { color: var(--nuro); }
.highlight-box .hb-content strong { display: block; font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.highlight-box .hb-content p, .highlight-box .hb-content span { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ===== SCRIPTS ===== */
.scripts-container { padding: 16px; }
.script-category { margin-bottom: 24px; }
.script-category h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.script-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
}
.script-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.script-card-header:hover { background: var(--bg); }
.script-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.script-card-title i { font-size: 16px; color: #25d366; }
.script-card-title strong { font-size: 14px; font-weight: 600; }
.script-expand { font-size: 14px; color: var(--text-muted); transition: transform 0.3s; }
.script-expand.open { transform: rotate(180deg); }

.script-body { display: none; padding: 0 16px 16px; }
.script-body.open { display: block; animation: fadeIn 0.2s ease; }
.script-text {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  margin-bottom: 10px;
  border: 1px solid var(--border);
}
.btn-copy {
  width: 100%;
  padding: 10px;
  background: #25d366;
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s;
}
.btn-copy:active { transform: scale(0.98); opacity: 0.9; }
.btn-copy.copied { background: var(--green); }

/* ===== CONTACT ===== */
.contact-container { padding: 16px; }
.contact-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 14px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.contact-item:last-child { border-bottom: none; }
.contact-item:hover { background: var(--bg); }
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}
.phone-icon { background: linear-gradient(135deg, #1a6fd4, #00c6ff); }
.whatsapp-icon { background: linear-gradient(135deg, #128c7e, #25d366); }
.email-icon { background: linear-gradient(135deg, #e53935, #ff6b6b); }
.site-icon { background: linear-gradient(135deg, #6a11cb, #2575fc); }
.contact-item > div strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.contact-item > div span { font-size: 13px; color: var(--text-muted); }

.hours-card, .address-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 14px;
}
.hours-header, .address-header {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
  letter-spacing: 0.5px;
}
.hours-card p, .address-card p { font-size: 14px; line-height: 1.6; }
.cnpj { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottomnav-h);
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s;
  padding: 8px 4px;
}
.nav-item i { font-size: 20px; transition: all 0.2s; }
.nav-item.active { color: var(--primary); }
.nav-item.active i {
  color: var(--primary);
  transform: translateY(-2px);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: calc(var(--bottomnav-h) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #fff;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 300;
  opacity: 0;
  transition: all 0.3s;
  box-shadow: var(--shadow-md);
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast i { color: var(--green); }

/* ===== EXTRA POLISH ===== */

/* Nuro promo pulse on home page */
.op-card.nuro {
  position: relative;
  overflow: hidden;
}
.op-card.nuro::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--nuro);
  animation: cardPulse 2s infinite;
  pointer-events: none;
}
@keyframes cardPulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

/* Wiz buttons row layout for 2-choice steps */
.wizard-options:not(.three) .wiz-btn {
  flex-direction: row;
  text-align: left;
  gap: 16px;
}
.wizard-options:not(.three) .wiz-btn i {
  font-size: 24px;
  flex-shrink: 0;
}
.wizard-options:not(.three) .wiz-btn span {
  flex: 1;
}

/* Plan badge pill */
.plan-badge {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  margin-left: 6px;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, #f0f0f0 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  border-radius: 6px;
}
@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Active state ripple for buttons */
.wiz-btn, .action-card, .op-card, .contact-item {
  -webkit-tap-highlight-color: transparent;
}

/* Drawer links active state */
.drawer-link.active {
  background: var(--bg);
  border-left-color: var(--accent);
  color: var(--primary);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ===== RESPONSIVE ===== */
@media (min-width: 480px) {
  .ops-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 640px) {
  .home-hero { padding: 40px 32px 70px; }
  .hero-content h2 { font-size: 32px; }
  .op-content { padding: 20px 24px; }
  .pages-container { max-width: 600px; margin: var(--topbar-h) auto 0; }
  .topbar-inner { max-width: 600px; margin: 0 auto; }
  .bottom-nav { max-width: 600px; left: 50%; transform: translateX(-50%); }
}

/* ===== SAFE AREA ===== */
@supports (padding-top: env(safe-area-inset-top)) {
  .topbar {
    padding-top: env(safe-area-inset-top);
    height: calc(var(--topbar-h) + env(safe-area-inset-top));
  }
  .pages-container {
    margin-top: calc(var(--topbar-h) + env(safe-area-inset-top));
    height: calc(100dvh - var(--topbar-h) - var(--bottomnav-h) - env(safe-area-inset-top));
  }
}
