/* PhoneSaver.com — Main Stylesheet */
:root {
  --navy: #0f1f3d;
  --navy-light: #1a3260;
  --green: #22c55e;
  --green-dark: #16a34a;
  --bg: #f8fafc;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
  --radius: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--gray-900);
  line-height: 1.6;
}

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

/* ─── DISCLOSURE BAR ────────────────────────────────────── */
.disclosure-bar {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  text-align: center;
  font-size: 12px;
  padding: 8px 16px;
  letter-spacing: .01em;
}
.disclosure-bar a { color: var(--green); }

/* ─── NAVIGATION ────────────────────────────────────────── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.logo {
  font-size: 24px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -.5px;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.logo-icon {
  display: flex;
  align-items: center;
  filter: drop-shadow(0 2px 4px rgba(34,197,94,.45));
  margin-right: 2px;
}
.logo-icon svg {
  width: 30px;
  height: 52px;
}
.logo-accent {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}
.logo-dot {
  color: var(--gray-500);
  font-size: 14px;
  font-weight: 600;
  align-self: flex-end;
  margin-bottom: 2px;
  letter-spacing: 0;
}
.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  transition: color .2s;
}
.nav-links a:hover { color: var(--navy); }
.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--green-dark) !important; color: var(--white) !important; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--gray-700); margin: 5px 0; border-radius: 2px; }

/* ─── HERO ──────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #0d3b6e 100%);
  color: var(--white);
  padding: 14px 24px 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(34,197,94,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(34,197,94,.10) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.hero-row { text-align: center; }
.hero-left { text-align: center; }
.hero-left h1 { text-align: center; }
.hero-left p { text-align: center; white-space: nowrap; font-size: 13px; margin: 4px auto 0; }
.hero-right { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34,197,94,.15);
  border: 1px solid rgba(34,197,94,.3);
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
  margin-top: 14px;
  margin-bottom: 10px;
}
.hero h1 {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -.5px;
}
.hero h1 em { color: var(--green); font-style: normal; }
.hero p {
  font-size: 15px;
  color: rgba(255,255,255,.80);
  margin-bottom: 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  white-space: nowrap;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 0;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 20px; font-weight: 800; color: var(--green); }
.hero-stat span { font-size: 13px; color: rgba(255,255,255,.65); }

/* ─── SECTION WRAPPER ───────────────────────────────────── */
.section { padding: 24px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
.section-subtitle { color: var(--gray-500); font-size: 15px; margin-bottom: 32px; }

/* ─── QUICK FILTERS ─────────────────────────────────────── */
.filters-section { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 12px 24px; }
.filters-inner { max-width: 1200px; margin: 0 auto; }
.filters-label { font-size: 13px; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.filter-cards {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.filter-card {
  padding: 6px 12px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-200);
  background: var(--white);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  transition: all .2s;
  white-space: nowrap;
}
.filter-card:hover { border-color: var(--green); color: var(--green-dark); background: #f0fdf4; }
.filter-card.active { border-color: var(--green); background: #f0fdf4; color: var(--green-dark); }
.filter-card .icon { font-size: 16px; }

/* ─── FEATURED DEALS ────────────────────────────────────── */
.featured-section { background: var(--bg); }
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.deal-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 2px solid var(--gray-200);
  padding: 24px;
  position: relative;
  transition: all .2s;
  box-shadow: var(--shadow-sm);
}
.deal-card:hover { border-color: var(--green); box-shadow: var(--shadow); transform: translateY(-2px); }
.deal-card.featured-1 { border-color: var(--green); }
.deal-badge {
  position: absolute;
  top: -12px; left: 20px;
  background: var(--green);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.deal-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.deal-logo { width: 80px; height: 32px; object-fit: contain; }
.deal-carrier { font-size: 13px; color: var(--gray-500); }
.deal-plan { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.deal-price { font-size: 32px; font-weight: 800; color: var(--navy); line-height: 1; }
.deal-price sub { font-size: 14px; font-weight: 600; color: var(--gray-500); }
.deal-details { margin: 12px 0; }
.deal-detail { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gray-700); margin-bottom: 6px; }
.deal-detail .check { color: var(--green); font-weight: 700; }
.btn-deal {
  display: block;
  width: 100%;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 16px;
  transition: background .2s;
  text-align: center;
}
.btn-deal:hover { background: var(--green-dark); }
.btn-deal-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--gray-300);
}
.btn-deal-outline:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }

/* ─── COMPARISON TABLE ──────────────────────────────────── */
.comparison-section { background: var(--white); }
.table-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  align-items: center;
}
.table-search-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.table-search {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.table-search:focus { border-color: var(--green); }
.table-sort {
  padding: 10px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--white);
  cursor: pointer;
  outline: none;
}
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--gray-200); }
table { width: 100%; border-collapse: collapse; min-width: 800px; }
thead { background: var(--navy); }
thead th {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 14px 16px;
  text-align: left;
  white-space: nowrap;
}
thead th:first-child { border-radius: var(--radius) 0 0 0; }
thead th:last-child { border-radius: 0 var(--radius) 0 0; }
thead th.sortable { cursor: pointer; user-select: none; }
thead th.sortable:hover { background: var(--navy-light); }
thead th .sort-icon { margin-left: 4px; opacity: .5; }
thead th.sort-asc .sort-icon::after { content: ' ↑'; opacity: 1; }
thead th.sort-desc .sort-icon::after { content: ' ↓'; opacity: 1; }
tbody tr { border-bottom: 1px solid var(--gray-100); transition: background .15s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--gray-50); }
tbody tr.featured-row { background: #f0fdf4; }
td { padding: 14px 16px; font-size: 14px; vertical-align: middle; }
.td-carrier { display: flex; align-items: center; gap: 12px; }
.carrier-logo-cell { width: 60px; height: 24px; object-fit: contain; flex-shrink: 0; }
.carrier-name-cell { font-weight: 600; color: var(--navy); }
.carrier-network { font-size: 11px; color: var(--gray-500); margin-top: 2px; }
.plan-name-cell { font-weight: 600; }
.plan-tag { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px; text-transform: uppercase; letter-spacing: .04em; margin-left: 6px; vertical-align: middle; }
.tag-featured { background: #fef9c3; color: #854d0e; }
.tag-best { background: #f0fdf4; color: #166534; }
.price-cell { font-size: 18px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.price-cell small { font-size: 11px; font-weight: 400; color: var(--gray-500); }
.network-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.badge-verizon { background: #fee2e2; color: #991b1b; }
.badge-att { background: #dbeafe; color: #1e40af; }
.badge-tmobile { background: #fce7f3; color: #9d174d; }
.badge-own { background: var(--gray-100); color: var(--gray-700); }
.btn-view {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
  text-decoration: none;
}
.btn-view:hover { background: var(--green-dark); color: var(--white); }
.check-icon { color: var(--green); font-weight: 700; }
.x-icon { color: var(--gray-300); }
.no-results { text-align: center; padding: 48px; color: var(--gray-500); }

/* ─── BEST OF SECTIONS ──────────────────────────────────── */
.bestof-section { background: var(--bg); }
.bestof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 40px; }
.bestof-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 10px;
}
.bestof-heading h3 { font-size: 20px; font-weight: 800; color: var(--navy); }
.bestof-heading .tag-label {
  background: var(--navy);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  text-transform: uppercase;
}
.plan-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: all .2s;
}
.plan-card:hover { box-shadow: var(--shadow); border-color: var(--gray-300); transform: translateY(-1px); }
.plan-card-top { display: flex; justify-content: space-between;
  position: relative; align-items: flex-start; margin-bottom: 12px; }
.plan-card-logo { width: 70px; height: 28px; object-fit: contain; }
.plan-card-price { font-size: 26px; font-weight: 800; color: var(--navy); text-align: right; line-height: 1.1; }
.plan-card-price span { font-size: 12px; font-weight: 500; color: var(--gray-500); display: block; }
.plan-card-name { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.plan-card-specs { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.spec-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--gray-100);
  color: var(--gray-700);
}
.spec-pill.highlight { background: #f0fdf4; color: var(--green-dark); }
.plan-card-pros { font-size: 13px; color: var(--gray-700); }
.plan-card-pros li { display: flex; gap: 6px; margin-bottom: 4px; list-style: none; }
.plan-card-pros li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.btn-plan {
  display: block;
  width: 100%;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 14px;
  transition: background .2s;
  text-align: center;
}
.btn-plan:hover { background: var(--navy-light); }

/* ─── HOW IT WORKS ──────────────────────────────────────── */
.howitworks-section { background: var(--navy); color: var(--white); }
.howitworks-section .section-title { color: var(--white); }
.howitworks-section .section-subtitle { color: rgba(255,255,255,.6); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.step { text-align: center; }
.step-number {
  width: 52px; height: 52px;
  background: rgba(34,197,94,.15);
  border: 2px solid var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: var(--green);
  margin: 0 auto 16px;
}
.step h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.6; }

/* ─── FAQ ───────────────────────────────────────────────── */
.faq-section { background: var(--bg); }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  position: relative;
  align-items: center;
  gap: 16px;
}
.faq-question:hover { color: var(--green-dark); }
.faq-icon { font-size: 20px; transition: transform .3s; flex-shrink: 0; color: var(--gray-500); }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--green); }
.faq-answer {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s;
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 20px; }

/* ─── FOOTER ────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.65);
  padding: 40px 24px 24px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between;
  position: relative; align-items: flex-start; gap: 32px; margin-bottom: 32px; flex-wrap: wrap; }
.footer-logo { font-size: 20px; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.footer-logo span { color: var(--green); }
.footer-tagline { font-size: 13px; max-width: 240px; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col h5 { color: var(--white); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-col a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: 12px; line-height: 1.6; }
.footer-bottom a { color: var(--green); }

/* ─── MOBILE NAV ────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); flex-direction: column; gap: 0; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow); z-index: 99; }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--gray-100); }
  .nav-links a { display: block; padding: 14px 24px; }
  .hamburger { display: block; }
  .hero { padding: 24px 16px 20px; }
  .hero-stats { gap: 24px; }
  .filter-cards { gap: 8px; }
  .filter-card { padding: 8px 14px; font-size: 13px; }
  .deals-grid { grid-template-columns: 1fr; }
  .bestof-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 24px; }
  .table-controls { flex-direction: column; align-items: stretch; }
  .footer-top { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 24px; }
}

/* ─── LOADING SKELETON ──────────────────────────────────── */
.skeleton { background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 4px; }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ─── UTILITIES ─────────────────────────────────────────── */
.text-green { color: var(--green); }
.text-navy { color: var(--navy); }
.text-muted { color: var(--gray-500); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.footer-logo-dot { color: #94a3b8; font-size: 13px; font-weight: 600; }

/* Footer + admin logo icon sizing */
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-logo-icon { display: flex; align-items: center; filter: drop-shadow(0 1px 3px rgba(34,197,94,.4)); }
.footer-logo-icon svg { width: 22px; height: 38px; }
.admin-logo-icon { display: inline-flex; align-items: center; vertical-align: middle; margin-right: 6px; filter: drop-shadow(0 1px 3px rgba(34,197,94,.4)); }
.admin-logo-icon svg { width: 20px; height: 35px; }
.sidebar-phone svg { width: 18px; height: 31px; }
