/* SaveOnPhone.com — Stylesheet */
:root {
  --primary: #0f3460;
  --accent: #16a394;
  --accent-dark: #0d7a6e;
  --bg: #f0f8ff;
  --white: #ffffff;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --border: #d1e8f0;
  --shadow: 0 2px 12px rgba(15,52,96,0.08);
  --shadow-hover: 0 6px 24px rgba(15,52,96,0.15);
  --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--accent-dark); }

/* ── NAV ── */
.navbar { background: var(--primary); padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 62px; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo:hover { text-decoration: none; }
.nav-logo-text { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; line-height: 1; }
.nav-logo-text .saveon { color: var(--white); }
.nav-logo-text .phone { background: linear-gradient(135deg, #16a394, #0dd3bb); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-logo-text .dot-com { color: #9ca3af; font-size: 14px; font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 500; text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--white); text-decoration: none; }
.btn-nav-cta { background: var(--accent) !important; color: var(--white) !important; padding: 8px 18px !important; border-radius: 6px !important; font-weight: 600 !important; transition: background .2s !important; }
.btn-nav-cta:hover { background: var(--accent-dark) !important; }

/* ── HERO ── */
.hero { background: linear-gradient(160deg, var(--primary) 0%, #1a4b7a 100%); padding: 40px 24px 32px; text-align: center; color: var(--white); }
.hero h1 { font-size: clamp(24px, 4vw, 40px); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 12px; line-height: 1.2; }
.hero h1 .highlight { color: var(--accent); }
.hero-subtitle { font-size: 17px; color: rgba(255,255,255,0.82); white-space: nowrap; margin-bottom: 16px; }
.hero-badge { display: inline-block; background: var(--accent); color: var(--white); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 20px; }

/* ── FILTER BAR ── */
.filter-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 12px 24px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; position: sticky; top: 62px; z-index: 90; box-shadow: 0 2px 6px rgba(15,52,96,0.06); }
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-btn { background: none; border: 1.5px solid var(--border); color: var(--text); font-size: 13px; font-weight: 500; padding: 6px 14px; border-radius: 20px; cursor: pointer; transition: all .18s; white-space: nowrap; }
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: var(--white); }
.filter-spacer { flex: 1; min-width: 0; }
.search-wrap { display: flex; align-items: center; gap: 8px; }
#planSearch { border: 1.5px solid var(--border); border-radius: 6px; padding: 7px 12px; font-size: 13px; width: 200px; outline: none; transition: border-color .2s; }
#planSearch:focus { border-color: var(--accent); }
#sortSelect { border: 1.5px solid var(--border); border-radius: 6px; padding: 7px 10px; font-size: 13px; outline: none; cursor: pointer; background: var(--white); color: var(--text); }
#sortSelect:focus { border-color: var(--accent); }

/* ── PLANS TABLE ── */
.plans-section { padding: 0 24px 24px; }
.plans-count { font-size: 13px; color: var(--text-muted); padding: 12px 0 8px; }
.plans-count strong { color: var(--text); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); background: var(--white); }
table.plans-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.plans-table thead th { background: var(--primary); color: var(--white); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; padding: 12px 14px; text-align: left; white-space: nowrap; }
.plans-table tbody tr { border-bottom: 1px solid var(--border); transition: background .15s; }
.plans-table tbody tr:last-child { border-bottom: none; }
.plans-table tbody tr:hover { background: #eef7ff; }
.plans-table td { padding: 12px 14px; vertical-align: middle; }
.carrier-cell { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.carrier-logo-placeholder { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--white); flex-shrink: 0; text-align: center; line-height: 1.2; }
.carrier-name { font-weight: 600; font-size: 13px; }
.plan-name-cell { font-weight: 500; max-width: 160px; }
.price-cell { font-weight: 700; font-size: 16px; color: var(--primary); white-space: nowrap; }
.price-cell .per-mo { font-size: 11px; font-weight: 400; color: var(--text-muted); }
.data-cell { font-weight: 500; white-space: nowrap; }
.unlimited-badge { background: #e0f5f3; color: var(--accent-dark); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.3px; }
.network-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 4px; background: #eef0f8; color: var(--primary); }
.network-badge.vz { background: #fff0e0; color: #b45309; }
.network-badge.att { background: #e8f4ff; color: #1d4ed8; }
.network-badge.tmob { background: #fce8f4; color: #be185d; }
.features-cell { max-width: 220px; font-size: 12px; color: var(--text-muted); }
.feature-tag { display: inline-block; background: #f0f8ff; color: var(--primary); border: 1px solid var(--border); font-size: 11px; padding: 2px 6px; border-radius: 4px; margin: 2px 2px 2px 0; white-space: nowrap; }
.action-cell { text-align: center; }
.btn-view { display: inline-block; background: var(--accent); color: var(--white); font-size: 12px; font-weight: 600; padding: 7px 14px; border-radius: 5px; text-decoration: none; white-space: nowrap; transition: background .18s; }
.btn-view:hover { background: var(--accent-dark); color: var(--white); text-decoration: none; }

/* ── BEST-OF ── */
.best-of-section { padding: 36px 24px; background: var(--white); border-top: 1px solid var(--border); }
.section-title { font-size: 22px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.section-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.best-card { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 18px; background: var(--white); transition: box-shadow .2s, transform .2s; }
.best-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.best-card .card-carrier { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; font-weight: 500; }
.best-card .card-plan { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.best-card .card-price { font-size: 24px; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.best-card .card-price span { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.best-card .card-features { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; }
.best-card .card-tag { background: #e0f5f3; color: var(--accent-dark); font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; display: inline-block; margin-bottom: 12px; }

/* ── HOW IT WORKS ── */
.how-it-works { padding: 48px 24px; background: linear-gradient(160deg, var(--primary) 0%, #1a4b7a 100%); color: var(--white); text-align: center; }
.how-it-works .section-title { color: var(--white); margin-bottom: 8px; }
.how-it-works .section-subtitle { color: rgba(255,255,255,0.7); margin-bottom: 32px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; max-width: 900px; margin: 0 auto; }
.step-card { background: rgba(255,255,255,0.08); border-radius: var(--radius); padding: 24px 20px; border: 1px solid rgba(255,255,255,0.12); }
.step-icon { width: 50px; height: 50px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 20px; }
.step-num { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.step-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.5; }

/* ── FAQ ── */
.faq-section { padding: 48px 24px; max-width: 800px; margin: 0 auto; }
.faq-section .section-title { text-align: center; margin-bottom: 6px; }
.faq-section .section-subtitle { text-align: center; margin-bottom: 28px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: 6px; margin-bottom: 8px; overflow: hidden; }
.faq-question { padding: 16px 20px; font-weight: 600; font-size: 15px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none; transition: background .15s; }
.faq-question:hover { background: #f0f8ff; }
.faq-chevron { width: 20px; height: 20px; transition: transform .2s; flex-shrink: 0; color: var(--accent); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { padding: 0 20px; font-size: 14px; color: var(--text-muted); line-height: 1.7; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.faq-item.open .faq-answer { max-height: 300px; padding: 0 20px 16px; }

/* ── FOOTER ── */
.footer { background: var(--primary); color: rgba(255,255,255,0.7); padding: 40px 24px 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; max-width: 1100px; margin: 0 auto 32px; }
.footer-brand .nav-logo-text { font-size: 20px; display: block; margin-bottom: 10px; }
.footer-brand p { font-size: 13px; line-height: 1.6; max-width: 260px; }
.footer-col h4 { color: var(--white); font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 13px; text-decoration: none; transition: color .15s; }
.footer-col ul li a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 12px; max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: rgba(255,255,255,0.5); }

/* ── NEWS ── */
.news-listing-header { background: linear-gradient(160deg, var(--primary) 0%, #1a4b7a 100%); color: var(--white); padding: 48px 24px 36px; text-align: center; }
.news-listing-header h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.news-listing-header p { color: rgba(255,255,255,0.75); font-size: 15px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; padding: 32px 24px; max-width: 1100px; margin: 0 auto; }
.news-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.news-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.news-card-body { padding: 20px; }
.news-card-date { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.news-card-title { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 8px; line-height: 1.4; }
.news-card-title a { color: inherit; text-decoration: none; }
.news-card-title a:hover { color: var(--accent); }
.news-card-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.news-card-link { font-size: 13px; font-weight: 600; color: var(--accent); }

/* ── ARTICLE ── */
.article-page { background: var(--bg); min-height: 100vh; }
.article-container { max-width: 760px; margin: 0 auto; padding: 36px 24px 60px; }
.article-back { font-size: 13px; color: var(--accent); margin-bottom: 20px; display: inline-flex; align-items: center; gap: 5px; }
.article-back:hover { color: var(--accent-dark); text-decoration: none; }
.article-date { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.article-title { font-size: clamp(22px, 3.5vw, 32px); font-weight: 800; color: var(--primary); line-height: 1.3; margin-bottom: 20px; }
.article-divider { height: 3px; width: 50px; background: var(--accent); border-radius: 2px; margin-bottom: 24px; }
.article-content { font-size: 15px; line-height: 1.8; color: #2d3748; }
.article-content p { margin-bottom: 16px; }
.article-content h2 { font-size: 20px; font-weight: 700; color: var(--primary); margin: 24px 0 12px; }
.article-content h3 { font-size: 17px; font-weight: 600; color: var(--primary); margin: 20px 0 10px; }
.article-content a { color: var(--accent); }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 16px; }
.article-content li { margin-bottom: 6px; }
.article-content blockquote { border-left: 3px solid var(--accent); padding: 8px 16px; background: #e0f5f3; border-radius: 0 6px 6px 0; margin: 16px 0; font-style: italic; color: var(--accent-dark); }

/* ── ADMIN ── */
.admin-login-page { min-height: 100vh; background: var(--primary); display: flex; align-items: center; justify-content: center; }
.login-box { background: var(--white); border-radius: 12px; padding: 40px 36px; width: 100%; max-width: 380px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); text-align: center; }
.login-box h2 { font-size: 20px; color: var(--primary); margin-bottom: 6px; }
.login-box p { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.form-group { margin-bottom: 16px; text-align: left; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 6px; font-size: 14px; outline: none; transition: border-color .2s; font-family: inherit; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); }
.btn-login { width: 100%; padding: 11px; background: var(--accent); color: var(--white); border: none; border-radius: 6px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s; margin-top: 4px; }
.btn-login:hover { background: var(--accent-dark); }
.login-error { color: #dc2626; font-size: 13px; margin-top: 10px; display: none; }
.admin-panel { min-height: 100vh; background: var(--bg); }
.admin-topbar { background: var(--primary); color: var(--white); padding: 0 24px; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.admin-topbar h1 { font-size: 18px; font-weight: 700; }
.btn-logout { background: rgba(255,255,255,0.15); color: var(--white); border: 1px solid rgba(255,255,255,0.2); padding: 6px 14px; border-radius: 5px; font-size: 13px; cursor: pointer; }
.btn-logout:hover { background: rgba(255,255,255,0.25); }
.admin-body { display: flex; min-height: calc(100vh - 60px); }
.admin-sidebar { width: 220px; background: var(--white); border-right: 1px solid var(--border); padding: 20px 0; flex-shrink: 0; }
.admin-sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 10px 20px; font-size: 14px; color: var(--text); text-decoration: none; transition: background .15s; border-left: 3px solid transparent; }
.admin-sidebar nav a:hover { background: #eef7ff; color: var(--accent); }
.admin-sidebar nav a.active { background: #e0f5f3; color: var(--accent-dark); border-left-color: var(--accent); font-weight: 600; }
.admin-content { flex: 1; padding: 28px 32px; overflow-x: auto; }
.admin-content h2 { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 20px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; }
.stat-card .stat-num { font-size: 28px; font-weight: 800; color: var(--accent); }
.stat-card .stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.admin-table-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { background: #f8fafc; border-bottom: 1px solid var(--border); padding: 10px 14px; text-align: left; font-weight: 600; color: var(--text); white-space: nowrap; }
.admin-table td { padding: 10px 14px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #f8fafc; }
.btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 4px; cursor: pointer; border: none; font-weight: 500; }
.btn-edit { background: #e0f5f3; color: var(--accent-dark); }
.btn-delete { background: #fee2e2; color: #dc2626; }
.btn-add { background: var(--accent); color: var(--white); padding: 8px 16px; border-radius: 6px; border: none; font-size: 14px; font-weight: 600; cursor: pointer; margin-bottom: 16px; display: inline-block; text-decoration: none; transition: background .2s; }
.btn-add:hover { background: var(--accent-dark); color: var(--white); text-decoration: none; }
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1000; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal-box { background: var(--white); border-radius: 10px; width: 100%; max-width: 540px; padding: 28px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.modal-box h3 { font-size: 18px; color: var(--primary); margin-bottom: 18px; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.btn-cancel { background: #f3f4f6; color: var(--text); padding: 8px 16px; border-radius: 6px; border: none; font-size: 14px; cursor: pointer; }
.btn-save { background: var(--accent); color: var(--white); padding: 8px 16px; border-radius: 6px; border: none; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-save:hover { background: var(--accent-dark); }
.alert { padding: 10px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #e0f5f3; color: var(--accent-dark); border: 1px solid var(--accent); }
.alert-error { background: #fee2e2; color: #dc2626; border: 1px solid #dc2626; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .navbar { padding: 0 16px; }
  .nav-links { display: none; }
  .hero-subtitle { white-space: normal; font-size: 15px; }
  .filter-bar { top: 62px; padding: 10px 16px; }
  #planSearch { width: 140px; }
  .plans-section { padding: 0 12px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
  .admin-sidebar { display: none; }
  .admin-content { padding: 20px 16px; }
  .modal-grid { grid-template-columns: 1fr; }
}

/* Logo wordmark - slab serif style */
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.saveon, .phone, .dot-com {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  letter-spacing: -.5px;
}
.saveon { color: #fff; font-size: 22px; }
.phone { color: #16a394; font-size: 22px; }
.dot-com { color: #94a3b8; font-size: 14px; }
.nav-logo-tagline {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
  color: rgba(255,255,255,.55);
  font-weight: 400;
  letter-spacing: .2px;
  margin-top: 2px;
  white-space: nowrap;
}

/* ── Logo rebuild ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.sop-wordmark {
  font-family: Georgia, "Times New Roman", "Palatino Linotype", serif;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -.5px;
  line-height: 1;
}
.sop-save { color: #8b1a1a; }
.sop-on   { color: #8b1a1a; }
.sop-phone { color: #8b1a1a; }
.sop-dotcom { color: #8b1a1a; font-size: 18px; }
.nav-logo-tagline {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
  color: rgba(255,255,255,.55);
  font-weight: 400;
  letter-spacing: .3px;
  margin-top: 3px;
  white-space: nowrap;
}
.nav-logo-phone-icon {
  display: flex;
  align-items: center;
  margin-left: 4px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
}
/* Remove old logo styles */
.saveon, .phone, .dot-com { all: unset; }
