/* ============================================
   Broadband Salesman - Clean Blue Theme
   ============================================ */

/* --- CSS Variables --- */
:root {
  --blue-50: #EFF6FF;
  --blue-100: #DBEAFE;
  --blue-200: #BFDBFE;
  --blue-300: #93C5FD;
  --blue-400: #60A5FA;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --blue-800: #1E40AF;
  --blue-900: #1E3A5F;

  --bg: #FFFFFF;
  --bg-elevated: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F0F9FF;
  --bg-input: #F1F5F9;
  --text: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --border-hover: #CBD5E1;

  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;

  --gradient-primary: linear-gradient(135deg, #3B82F6 0%, #2563EB 50%, #1D4ED8 100%);
  --gradient-primary-subtle: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(29,78,216,0.03) 100%);
  --gradient-light: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-blue: 0 4px 24px rgba(59,130,246,0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition: 0.2s ease;
}

/* --- Base Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--blue-600);
  text-decoration: none;
  transition: opacity var(--transition);
}

.logo:hover {
  opacity: 0.85;
}

.logo .cn {
  display: inline;
}

.logo .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--blue-500);
  border-radius: 50%;
  margin: 0 2px;
}

.logo-tag {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.logo-tag svg {
  width: 100%;
  height: 100%;
}

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

.nav a {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav a:hover {
  color: var(--blue-600);
}

.nav a.active {
  color: var(--blue-600);
  font-weight: 600;
  border-bottom-color: var(--blue-600);
}

.mobile-menu-btn {
  display: none;
  color: var(--blue-600);
  font-size: 24px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

/* --- Hero --- */
.hero {
  background: var(--gradient-primary);
  color: #FFFFFF;
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-tag-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.hero-tag-icon svg {
  width: 64px;
  height: 64px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: #FFFFFF;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.25);
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  color: #FFFFFF;
  position: relative;
}

.hero .highlight {
  color: #93C5FD;
}

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-phone {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
}

.hero-phone a {
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: #FFFFFF;
  color: var(--blue-600);
  border-color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--blue-50);
  border-color: var(--blue-50);
}

.btn-outline {
  background-color: transparent;
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: #FFFFFF;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: #FFFFFF;
  border-color: var(--whatsapp);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-dark);
  border-color: var(--whatsapp-dark);
}

.btn-call {
  background-color: transparent;
  color: var(--blue-600);
  border-color: var(--blue-600);
}

.btn-call:hover {
  background-color: var(--blue-50);
}

.btn-blue {
  background-color: var(--blue-600);
  color: #FFFFFF;
  border-color: var(--blue-600);
}

.btn-blue:hover {
  background-color: var(--blue-700);
  border-color: var(--blue-700);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

/* --- Stats Bar --- */
.stats-bar {
  background-color: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 24px 20px;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

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

.stat-item .stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue-600);
  line-height: 1.2;
}

.stat-item .stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- Categories --- */
.categories {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
  text-decoration: none;
  display: block;
  box-shadow: var(--shadow-sm);
}

.category-card:hover {
  border-color: var(--blue-300);
  box-shadow: var(--shadow-md);
  background-color: var(--bg-card-hover);
}

.category-card .icon {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
}

.category-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.category-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.category-card .arrow {
  color: var(--blue-500);
  font-size: 14px;
  font-weight: 600;
  transition: transform var(--transition);
  display: inline-block;
}

.category-card:hover .arrow {
  transform: translateX(4px);
}

/* --- Featured Section --- */
.featured-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}

.section-header .view-all {
  color: var(--blue-600);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}

.section-header .view-all:hover {
  color: var(--blue-700);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* --- Plan Cards --- */
.plan-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.plan-card:hover {
  border-color: var(--blue-400);
  box-shadow: var(--shadow-blue);
}

.provider {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.plan-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.4;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 16px;
}

.price-currency {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-600);
}

.price {
  font-size: 36px;
  font-weight: 800;
  color: var(--blue-600);
  line-height: 1;
}

.price-period {
  font-size: 14px;
  color: var(--text-muted);
  margin-left: 4px;
}

.badge {
  display: inline-block;
  background-color: var(--blue-500);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-right: 6px;
  margin-bottom: 12px;
}

.badge.hot {
  background-color: var(--blue-600);
}

.badge.verified {
  background-color: #16A34A;
}

.features {
  list-style: none;
  margin-bottom: 20px;
  flex: 1;
}

.features li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.5;
}

.features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue-500);
  font-weight: 700;
  font-size: 14px;
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.actions .btn {
  flex: 1;
  text-align: center;
  justify-content: center;
}

/* --- Compare Checkbox --- */
.compare-checkbox {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-muted);
}

.compare-input {
  display: none;
}

.compare-checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--blue-400);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition), border-color var(--transition);
}

.compare-input:checked + .compare-checkmark {
  background-color: var(--blue-500);
  border-color: var(--blue-500);
}

.compare-input:checked + .compare-checkmark::after {
  content: "\2713";
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
}

/* --- Filter Bar --- */
.filter-bar-advanced {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto 24px;
}

.filter-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}

.filter-row:last-child {
  margin-bottom: 0;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
}

.search-input-wrapper .filter-input {
  padding-left: 38px;
}

.filter-input,
.filter-bar-advanced select {
  background-color: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.filter-input:focus,
.filter-bar-advanced select:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.filter-bar-advanced select {
  min-width: 160px;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8.825L1.175 4 2.238 2.938 6 6.7 9.763 2.937 10.825 4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.btn-clear-filters {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn-clear-filters:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.result-count {
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 0;
}

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pills .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background-color: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-pills .pill:hover,
.filter-pills .pill.active {
  background-color: var(--blue-50);
  border-color: var(--blue-300);
  color: var(--blue-700);
}

.filter-pills .pill .remove {
  font-size: 12px;
  line-height: 1;
  opacity: 0.5;
}

.filter-pills .pill .remove:hover {
  opacity: 1;
}

/* --- Price Slider --- */
.slider-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 4px;
}

.price-slider-wrapper {
  width: 100%;
  padding: 8px 0;
}

.dual-slider {
  position: relative;
  height: 40px;
}

.slider-track {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 4px;
  background-color: var(--blue-100);
  border-radius: 2px;
}

.slider-range {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background-color: var(--blue-500);
  border-radius: 2px;
}

.dual-slider input[type="range"] {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 4px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  outline: none;
}

.dual-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background-color: var(--blue-500);
  border: 3px solid #FFFFFF;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.dual-slider input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.dual-slider input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background-color: var(--blue-500);
  border: 3px solid #FFFFFF;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: var(--shadow-sm);
}

.price-display {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Compare Bar --- */
.compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
  z-index: 900;
  padding: 12px 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.compare-bar.show {
  transform: translateY(0);
}

.compare-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.compare-items {
  display: flex;
  gap: 12px;
  flex: 1;
  overflow-x: auto;
}

.compare-items .compare-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
}

.compare-items .compare-item .remove-item {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  transition: color var(--transition);
}

.compare-items .compare-item .remove-item:hover {
  color: var(--text);
}

.btn-compare {
  background-color: var(--blue-600);
  color: #FFFFFF;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background-color var(--transition);
  white-space: nowrap;
}

.btn-compare:hover {
  background-color: var(--blue-700);
}

/* --- Compare Modal --- */
.compare-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.compare-modal.show {
  display: flex;
}

.compare-modal-content {
  background-color: var(--bg);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.compare-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.compare-modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.compare-modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
  background: none;
  border: none;
}

.compare-modal-close:hover {
  background-color: var(--bg-elevated);
  color: var(--text);
}

.compare-modal-body {
  padding: 24px;
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.compare-table th {
  font-weight: 700;
  color: var(--text);
  background-color: var(--bg-elevated);
}

.compare-table td {
  color: var(--text-secondary);
}

/* --- Contact Section --- */
.contact-section {
  background-color: var(--blue-50);
  padding: 64px 20px;
  text-align: center;
}

.contact-section h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.contact-section > p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.contact-methods {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.contact-method {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  text-align: center;
  transition: box-shadow var(--transition), border-color var(--transition);
  text-decoration: none;
  display: block;
}

.contact-method:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-200);
}

.contact-icon {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
}

.contact-method h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-600);
  margin-bottom: 8px;
}

.contact-method p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- News Grid --- */
.news-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px;
}

.news-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
  text-decoration: none;
}

.news-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-200);
}

.news-img {
  background-color: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  font-size: 48px;
}

.news-body {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.news-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.news-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

/* --- Legal Content --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 20px;
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 20px;
  margin-top: 32px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content ul {
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-content li {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.7;
}

.legal-content a {
  color: var(--blue-600);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.legal-content a:hover {
  color: var(--blue-700);
}

/* --- Page Header --- */
.page-header {
  background: var(--gradient-primary);
  color: #FFFFFF;
  text-align: center;
  padding: 56px 20px;
}

.page-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.page-header .icon {
  display: inline;
  margin-right: 8px;
}

.page-header p {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  max-width: 500px;
  margin: 0 auto;
}

/* --- Footer --- */
.footer {
  background-color: #0F172A;
  color: #FFFFFF;
  padding: 48px 20px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand h3 {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  color: #94A3B8;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-brand .phone-line {
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand .phone-line a {
  color: #FFFFFF;
  text-decoration: none;
}

.footer-brand .phone-line a:hover {
  text-decoration: underline;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-300);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: #94A3B8;
  text-decoration: none;
  padding: 4px 0;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p,
.footer-bottom span {
  font-size: 13px;
  color: #64748B;
}

.footer-bottom a {
  color: #64748B;
  text-decoration: none;
  font-size: 13px;
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: #94A3B8;
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 800;
  width: 56px;
  height: 56px;
  background-color: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #FFFFFF;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
  transition: box-shadow var(--transition), transform var(--transition);
}

.whatsapp-float:hover {
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
  transform: translateY(-2px);
}

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--text);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* --- Utility Classes --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.text-blue {
  color: var(--blue-600);
}

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

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* --- Plans Listing Page --- */
.plans-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
}

.plans-page .section-header {
  margin-bottom: 20px;
}

/* --- Pagination --- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 32px;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition);
}

.pagination a:hover {
  background-color: var(--blue-50);
  color: var(--blue-600);
}

.pagination .active {
  background-color: var(--blue-600);
  color: #FFFFFF;
  font-weight: 700;
}

.pagination .dots {
  color: var(--text-muted);
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumbs a:hover {
  color: var(--blue-600);
}

.breadcrumbs .separator {
  color: var(--border-hover);
}

.breadcrumbs .current {
  color: var(--text);
  font-weight: 500;
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 64px 20px;
}

.empty-state .icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* --- Loading Skeleton --- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, #E2E8F0 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 14px;
  margin-bottom: 10px;
  width: 80%;
}

.skeleton-text.short {
  width: 50%;
}

.skeleton-title {
  height: 20px;
  margin-bottom: 12px;
  width: 60%;
}

.skeleton-price {
  height: 36px;
  width: 120px;
  margin-bottom: 16px;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-elevated);
}

::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* --- Selection --- */
::selection {
  background-color: var(--blue-200);
  color: var(--text);
}

/* --- Focus Visible --- */
:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

/* ============================================
   Responsive
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .featured-grid,
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .categories,
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .header-inner {
    height: 56px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 20px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 10px 0;
    font-size: 16px;
    width: 100%;
    border-bottom: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    padding: 56px 20px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 300px;
  }

  .stats-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .stat-item .stat-number {
    font-size: 24px;
  }

  .categories,
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .category-card {
    padding: 16px;
  }

  .category-card .icon {
    font-size: 28px;
  }

  .category-card h3 {
    font-size: 14px;
  }

  .featured-grid,
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .plan-card {
    padding: 16px;
  }

  .price {
    font-size: 28px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .section-header h2 {
    font-size: 20px;
  }

  .filter-row {
    flex-direction: column;
  }

  .search-input-wrapper {
    min-width: 100%;
  }

  .filter-bar-advanced select {
    min-width: 100%;
  }

  .contact-methods {
    flex-direction: column;
    align-items: center;
  }

  .contact-method {
    max-width: 100%;
    width: 100%;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .page-header h1 {
    font-size: 24px;
  }

  .compare-bar-inner {
    flex-direction: column;
    gap: 12px;
  }

  .compare-items {
    width: 100%;
  }

  .btn-compare {
    width: 100%;
  }

  .compare-modal-content {
    max-height: 95vh;
    border-radius: var(--radius-md);
  }

  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero {
    padding: 40px 16px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero p {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .hero-badge {
    font-size: 12px;
    padding: 4px 12px;
  }

  .categories,
  .categories-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .category-card {
    padding: 12px;
  }

  .category-card .icon {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .category-card h3 {
    font-size: 13px;
  }

  .category-card p {
    display: none;
  }

  .featured-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plan-card {
    padding: 16px;
  }

  .price {
    font-size: 32px;
  }

  .contact-section {
    padding: 40px 16px;
  }

  .contact-section h2 {
    font-size: 22px;
  }

  .legal-content {
    padding: 32px 16px;
  }

  .legal-content h2 {
    font-size: 18px;
  }

  .breadcrumbs {
    padding: 12px 16px;
    font-size: 12px;
  }

  .filter-bar-advanced {
    padding: 12px;
  }

  .filter-pills .pill {
    font-size: 12px;
    padding: 4px 10px;
  }

  .footer {
    padding: 32px 16px 0;
  }

  .news-card {
    flex-direction: row;
    align-items: stretch;
  }

  .news-img {
    width: 100px;
    height: auto;
    min-height: 100px;
    font-size: 32px;
    flex-shrink: 0;
  }

  .news-body {
    padding: 12px;
  }

  .news-card h3 {
    font-size: 14px;
  }

  .news-card p {
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .stats-bar {
    padding: 16px;
  }

  .stat-item .stat-number {
    font-size: 20px;
  }

  .stat-item .stat-label {
    font-size: 12px;
  }

  .actions {
    flex-direction: column;
  }

  .page-header {
    padding: 40px 16px;
  }

  .page-header h1 {
    font-size: 20px;
  }

  .page-header p {
    font-size: 14px;
  }
}

/* --- Print --- */
@media print {
  .header,
  .footer,
  .whatsapp-float,
  .compare-bar,
  .toast,
  .mobile-menu-btn {
    display: none !important;
  }

  body {
    background: #FFFFFF;
    color: #000000;
    font-size: 12pt;
  }

  .plan-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #CCC;
  }
}
