:root {
  --primary: #2563EB;
  --primary-light: #60A5FA;
  --primary-dark: #1E40AF;
  --accent: #06B6D4; /* Cyan accent for "Tech" feel */
  --accent-glow: rgba(6, 182, 212, 0.4);
  --bg-page: #F0F4F8; /* Fallback */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  --text-main: #1E293B;
  --text-secondary: #64748B;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

body {
  font-family: 'Plus Jakarta Sans', 'Noto Sans SC', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  /* Mesh Gradient Background */
  background-image: 
    radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(244, 114, 182, 0.05) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(96, 165, 250, 0.1) 0px, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-xl);
}

.container-custom {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

a { text-decoration: none; transition: all 0.3s ease; color: inherit; }
a:hover { color: var(--primary); }

/* --- Hero Section --- */
.hero-wrapper {
  margin: 20px 0 40px;
  position: relative;
}

.hero-card {
  padding: 60px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 100%);
}

/* Animated background elements for Hero */
.hero-blob {
  position: absolute;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.6;
}
.blob-1 { top: -20%; right: -10%; width: 400px; height: 400px; background: var(--primary-light); animation: float 10s infinite alternate; }
.blob-2 { bottom: -20%; left: -10%; width: 300px; height: 300px; background: var(--accent); animation: float 8s infinite alternate-reverse; }

@keyframes float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(20px, 40px); }
}

.hero-content { position: relative; z-index: 2; }

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  border-radius: 50px;
  font-weight: 700;
  margin-bottom: 24px;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: 40px;
}

.feature-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  font-weight: 600;
  color: var(--text-main);
}
.feature-item i { color: var(--accent); font-size: 1.2rem; }

/* --- Navigation --- */
.nav-section {
  position: sticky;
  top: 10px;
  z-index: 100;
  margin-bottom: 30px;
}

.nav-container {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  gap: 20px;
}

.nav-main {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.nav-main::-webkit-scrollbar { display: none; }

.nav-btn {
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 0.3s;
}

.nav-btn:hover {
  background: rgba(255,255,255,0.5);
  color: var(--primary);
}

.nav-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.4);
}

.subnav-container {
  margin-top: 10px;
  padding: 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Updated Subnav Pill Style for "Country|Name|Tag" */
.subnav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 12px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 40px;
  cursor: pointer;
}

.subnav-pill:hover {
  background: white;
  border-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.subnav-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.pill-text {
  font-weight: 600;
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  height: 26px;
  white-space: nowrap;
  transition: all 0.2s;
}

.subnav-pill.active .pill-tag {
  background: white;
  color: var(--primary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.flag-icon { 
  width: 24px; 
  height: 24px; 
  object-fit: contain; 
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
}

/* --- Product Grid --- */
.products-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
  padding-bottom: 80px;
}

/* --- High-End Glassmorphism Card Style --- */
.product-card {
  --card-bg: rgba(255, 255, 255, 0.75);
  --card-border: rgba(255, 255, 255, 0.6);
  --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
  --hover-shadow: 0 20px 40px -5px rgba(37, 99, 235, 0.15);
  --primary: #2563EB;
  
  background: linear-gradient(180deg, var(--card-bg) 0%, rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  padding: 0; /* Layout handled by children */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  opacity: 0.6;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--hover-shadow);
  border-color: rgba(255, 255, 255, 0.9);
}

.card-header {
  padding: 24px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

.card-icon-box {
  /* Removed large fixed box styles */
  display: none; /* Hide old box container */
}

/* New Modern Icon Style */
.card-icon-modern {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-right: 16px; /* Spacing from title */
}

.product-card:hover .card-icon-modern {
  transform: translateY(-2px) rotate(5deg);
  border-color: var(--primary-light);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.15);
  color: var(--primary-dark);
}

.card-body {
  padding: 24px;
  flex: 1;
}

/* --- Refined Typography & Layout --- */
.card-title {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.4;
}

.card-title .main-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1E293B;
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title .sub-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
  margin-top: 8px;
  display: inline-block;
  align-self: flex-start;
}

/* --- Tags --- */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.mini-tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.8);
  color: #64748B;
  font-weight: 600;
  transition: all 0.2s;
}

.mini-tag:hover {
  background: white;
  border-color: var(--primary-light);
  color: var(--primary);
}

/* Special styling for "Double ISP" or 3rd tag */
.mini-tag:nth-child(3) {
  background: rgba(37, 99, 235, 0.05);
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.15);
}

/* --- Specs List Optimization --- */
.card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card-desc ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 0;
  margin: 0;
  list-style: none;
}

.card-desc li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 10px; /* More padding */
  margin: 0;
  position: relative;
  border-bottom: 1px solid #f5f7fa; /* Very light border */
  transition: background-color 0.2s ease;
}

.card-desc li:last-child {
  border-bottom: none;
}

.card-desc li:hover {
  background-color: #f9fbfd;
}

.card-desc li::before {
  display: none;
}

/* Styled via PHP preg_replace */
.spec-label {
  font-size: 0.92rem;
  color: #333;
  display: flex;
  align-items: center;
  font-weight: 500;
}

.spec-label i {
  margin-right: 12px;
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  color: #2563EB; /* Default Icon Color */
}

/* Emoji-style icons from your example */
.spec-label i.icon-cpu::before { content: "⚙️"; font-style: normal; }
.spec-label i.icon-ram::before { content: "💾"; font-style: normal; }
.spec-label i.icon-wifi::before { content: "📶"; font-style: normal; }
.spec-label i.icon-dashboard::before { content: "🔁"; font-style: normal; }
.spec-label i.icon-hdd::before { content: "💿"; font-style: normal; }
.spec-label i.icon-deploymentunit::before { content: "🛣️"; font-style: normal; }
.spec-label i.icon-tags::before { content: "🏷️"; font-style: normal; }
.spec-label i.icon-unlock::before { content: "🔓"; font-style: normal; }
.spec-label i.icon-rocket::before { content: "🚀"; font-style: normal; }
.spec-label i.icon-chip::before { content: "🚀"; font-style: normal; }

.spec-value {
  font-size: 0.92rem;
  font-weight: 500;
  color: #666;
  text-align: right;
}

/* Special Highlighting Logic via CSS (nth-child approximation or data attributes if we could)
   Since we can't easily add classes to specific LIs without more PHP, we'll use nth-child 
   to mimic the "Route", "Attr", "Unlock" being lower down.
*/

/* Example: Highlight "Route" (usually 6th), "Attr" (7th), "Unlock" (8th) */
.card-desc li:nth-child(6) .spec-value { color: #f5222d; font-weight: 600; }
.card-desc li:nth-child(6) .spec-label { color: #1677ff; }

.card-desc li:nth-child(7) .spec-value { color: #fa8c16; font-weight: 600; }
.card-desc li:nth-child(7) .spec-label { color: #1677ff; }

.card-desc li:nth-child(8) .spec-value { color: #52c41a; font-weight: 600; }
.card-desc li:nth-child(8) .spec-label { color: #1677ff; }

.card-desc li:nth-child(9) .spec-value { color: #1890ff; font-weight: 600; }
.card-desc li:nth-child(9) .spec-label { color: #1677ff; }

/* Remove previous icon styles that clash */
.spec-label i.iconfont { font-family: inherit !important; } 


/* --- Footer & Price --- */
.card-footer {
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0 0 24px 24px;
}

.price-area { display: flex; flex-direction: column; }
.price-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.price-cycle {
  font-size: 0.85rem;
  color: #94A3B8;
  font-weight: 500;
  margin-left: 4px;
}

.btn-buy {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  border-radius: 12px;
  padding: 10px 24px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  color: white;
  border: none;
  position: relative;
  overflow: hidden;
  font-weight: 600;
}

.btn-buy::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn-buy:hover::before { opacity: 1; }

.btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.btn-buy.disabled {
  background: #CBD5E1;
  box-shadow: none;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .hero-card { padding: 30px 20px; }
  .hero-title { font-size: 2.2rem; }
  .products-wrapper { grid-template-columns: 1fr; }
}


