/* ============================================
   CHECKWHATISMYIP.COM — Design System
   Premium dark theme with glassmorphism
   ============================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  /* Colors — Dark Theme */
  --bg-primary: #060a14;
  --bg-secondary: #0c1120;
  --bg-tertiary: #111827;
  --bg-card: rgba(17, 24, 39, 0.6);
  --bg-card-hover: rgba(23, 33, 54, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-border: rgba(255, 255, 255, 0.06);

  /* Accent Colors */
  --accent-primary: #00d4ff;
  --accent-secondary: #7b61ff;
  --accent-gradient: linear-gradient(135deg, #00d4ff, #7b61ff);
  --accent-gradient-hover: linear-gradient(135deg, #33ddff, #9580ff);
  --accent-green: #22c55e;
  --accent-red: #ef4444;
  --accent-yellow: #f59e0b;
  --accent-orange: #f97316;

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-accent: #00d4ff;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(0, 212, 255, 0.3);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.15);
  --shadow-glow-strong: 0 0 40px rgba(0, 212, 255, 0.25);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 64px;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Animated background gradient */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 212, 255, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(123, 97, 255, 0.05), transparent),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(0, 212, 255, 0.04), transparent);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-secondary);
}

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(6, 10, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
}

.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--text-primary);
  text-decoration: none;
}

.nav-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
}

.nav-logo span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-links a {
  padding: var(--space-sm) var(--space-md);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.nav-links a.active {
  color: var(--accent-primary);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* Dropdown menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: rgba(12, 17, 32, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
  box-shadow: var(--shadow-lg);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

/* ---- Main Content ---- */
.main {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--nav-height));
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-4xl) 0;
}

.section-sm {
  padding: var(--space-2xl) 0;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: var(--text-5xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-3xl); letter-spacing: -0.01em; }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-size: var(--text-3xl);
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
  font-size: var(--text-lg);
}

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.card-flat {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.card-flat:hover {
  transform: none;
}

.card-accent {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.625rem 1.25rem;
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #000;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
  transform: translateY(-1px);
  color: #000;
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-accent);
}

.btn-ghost {
  color: var(--text-secondary);
  padding: var(--space-sm) var(--space-md);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: var(--text-base);
  border-radius: var(--radius-xl);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* ---- Forms ---- */
.input-group {
  display: flex;
  gap: var(--space-sm);
}

.input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  transition: all var(--transition-fast);
}

.input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.input::placeholder {
  color: var(--text-tertiary);
}

.input-lg {
  padding: 1rem 1.25rem;
  font-size: var(--text-lg);
}

textarea.input {
  resize: vertical;
  min-height: 120px;
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.form-group {
  margin-bottom: var(--space-lg);
}

/* ---- Grid Layouts ---- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

/* ---- Data Display ---- */
.data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.data-row:last-child {
  border-bottom: none;
}

.data-label {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
}

.data-value {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}

/* ---- Status Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-green {
  background: rgba(34, 197, 94, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-red {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-yellow {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-yellow);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-blue {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

/* ---- FAQ Accordion ---- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) 0;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--accent-primary);
}

.faq-question .faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-left: var(--space-md);
  transition: transform var(--transition-base);
  color: var(--text-tertiary);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--accent-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: var(--space-lg);
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- AdSense Slots ---- */
.ad-slot {
  background: var(--bg-glass);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  overflow: hidden;
}

.ad-banner-top {
  width: 100%;
  height: 90px;
  margin: var(--space-lg) auto;
  max-width: 728px;
}

.ad-rectangle {
  width: 100%;
  max-width: 336px;
  height: 280px;
  margin: var(--space-xl) auto;
}

.ad-banner-bottom {
  width: 100%;
  height: 90px;
  margin: var(--space-xl) auto;
  max-width: 728px;
}

/* ---- Promotional Content (replaces ad slots before AdSense) ---- */
.promo-bar {
  width: 100%;
  max-width: var(--max-width);
  margin: var(--space-md) auto;
  padding: var(--space-sm) var(--space-lg);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(123, 97, 255, 0.04));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.promo-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.promo-bar-text {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.promo-bar-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent-primary);
  padding: 4px 10px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.promo-bar-link:hover {
  background: rgba(0, 212, 255, 0.08);
  color: var(--text-primary);
}

.promo-bar-sep {
  color: var(--text-tertiary);
  font-size: var(--text-xs);
}

/* NordVPN Promo Card */
.promo-vpn-card {
  width: 100%;
  max-width: 380px;
  margin: var(--space-2xl) auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-accent);
  background: linear-gradient(160deg, rgba(0, 212, 255, 0.08), rgba(123, 97, 255, 0.06));
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  height: auto;
}

.promo-vpn-inner {
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  text-align: center;
}

.promo-vpn-shield {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.promo-vpn-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.promo-vpn-features {
  list-style: none;
  text-align: left;
  margin-bottom: var(--space-lg);
}

.promo-vpn-features li {
  padding: 6px 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.promo-vpn-features li:last-child {
  border-bottom: none;
}

.promo-vpn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  padding: 0.875rem;
  background: var(--accent-gradient);
  color: #000;
  font-weight: 700;
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.promo-vpn-btn:hover {
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
  transform: translateY(-1px);
  color: #000;
}

.promo-vpn-note {
  margin-top: var(--space-md);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* Blog Article Promos */
.promo-articles {
  width: 100%;
  max-width: 728px;
  margin: var(--space-xl) auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  height: auto;
  padding: var(--space-lg);
}

.promo-articles-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.promo-articles-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.promo-articles-list {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.promo-article-link {
  flex: 1;
  min-width: 180px;
  padding: var(--space-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.promo-article-link:hover {
  border-color: var(--border-accent);
  background: rgba(0, 212, 255, 0.04);
  color: var(--accent-primary);
}

.promo-article-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 768px) {
  .promo-bar-inner { justify-content: flex-start; }
  .promo-articles-list { flex-direction: column; }
  .promo-article-link { min-width: auto; }
}

/* ---- NordVPN Affiliate Banner ---- */
.vpn-banner {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(123, 97, 255, 0.1));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  margin: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.vpn-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08), transparent 70%);
  pointer-events: none;
}

.vpn-banner-content h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.vpn-banner-content p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.vpn-banner .btn {
  flex-shrink: 0;
}

/* ---- Footer ---- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-3xl) 0 var(--space-xl);
  background: rgba(6, 10, 20, 0.5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-top: var(--space-md);
  max-width: 300px;
  line-height: 1.7;
}

.footer-title {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-tertiary);
  font-size: var(--text-xs);
}

/* ---- Footer Social Links ---- */
.footer-social {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--border-accent);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

/* ---- Hero Section ---- */
.hero {
  text-align: center;
  padding: var(--space-4xl) 0 var(--space-2xl);
}

.hero h1 {
  margin-bottom: var(--space-lg);
}

.hero .subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
}

/* ---- IP Display (Hero) ---- */
.ip-display {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-glow-strong);
  margin-bottom: var(--space-2xl);
  max-width: 100%;
  overflow: hidden;
}

.ip-display .ip-label {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ip-display .ip-value {
  font-family: var(--font-mono);
  font-size: var(--text-4xl);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  word-break: break-all;
  overflow-wrap: break-word;
  max-width: 100%;
}

.ip-display .copy-btn {
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ip-display .copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.ip-display .copy-btn.copied {
  color: var(--accent-green);
  border-color: var(--accent-green);
}

/* ---- Loading States ---- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, rgba(255,255,255,0.05) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

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

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- Map Container ---- */
.map-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  height: 300px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---- Security Check Panel ---- */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
}

.security-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.security-item:hover {
  border-color: var(--border-light);
}

.security-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.security-icon.safe {
  background: rgba(34, 197, 94, 0.15);
  color: var(--accent-green);
}

.security-icon.warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-yellow);
}

.security-icon.danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
}

.security-info .security-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.security-info .security-value {
  font-weight: 600;
  font-size: var(--text-sm);
}

/* ---- Page Header (for sub-pages) ---- */
.page-header {
  text-align: center;
  padding: var(--space-3xl) 0 var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-2xl);
}

.page-header h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
}

.page-header .page-description {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  max-width: 640px;
  margin: 0 auto;
}

/* ---- Blog / Article Styles ---- */
.article-content {
  max-width: 780px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

.article-content h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  font-size: var(--text-2xl);
}

.article-content h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  font-size: var(--text-xl);
}

.article-content p {
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: var(--text-lg);
}

.article-content ul,
.article-content ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

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

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

.article-content li {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

.article-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 2px 6px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--accent-primary);
}

.article-content blockquote {
  border-left: 3px solid var(--accent-primary);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  background: var(--bg-glass);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.article-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
}

.article-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--accent-primary);
  font-weight: 500;
}

/* ---- Blog Listing ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-xl);
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.blog-card h3 {
  margin-bottom: var(--space-md);
  font-size: var(--text-lg);
}

.blog-card h3 a {
  color: var(--text-primary);
}

.blog-card h3 a:hover {
  color: var(--accent-primary);
}

.blog-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
  flex: 1;
}

.blog-card-meta {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* ---- Table ---- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
}

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

thead {
  background: var(--bg-tertiary);
}

th {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
}

td {
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background: var(--bg-glass);
}

/* ---- Tool Result Card ---- */
.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-glow);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
}

/* ---- Tooltip ---- */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.tooltip:hover::after {
  opacity: 1;
}

/* ---- Animations ---- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-fade-in { animation: fadeIn 0.5s ease forwards; }
.animate-fade-in-up { animation: fadeInUp 0.6s ease forwards; }
.animate-fade-in-down { animation: fadeInDown 0.4s ease forwards; }
.animate-scale-in { animation: scaleIn 0.3s ease forwards; }

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }
.delay-5 { animation-delay: 0.5s; opacity: 0; }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.text-lg { font-size: var(--text-lg); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent-primary); }
.text-green { color: var(--accent-green); }
.text-red { color: var(--accent-red); }
.text-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mt-3 { margin-top: var(--space-2xl); }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.mb-3 { margin-bottom: var(--space-2xl); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-md); }
.gap-2 { gap: var(--space-xl); }
.gap-sm { gap: var(--space-sm); }
.flex-wrap { flex-wrap: wrap; }

.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

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

@media (max-width: 768px) {
  :root {
    --text-5xl: 2.25rem;
    --text-4xl: 1.875rem;
    --text-3xl: 1.5rem;
  }

  /* Nav mobile */
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(6, 10, 20, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: var(--space-md);
    width: 100%;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-dropdown-menu {
    position: static;
    background: rgba(255,255,255,0.03);
    border: none;
    box-shadow: none;
    display: none;
    width: 100%;
  }

  .nav-dropdown.active .nav-dropdown-menu {
    display: block;
  }

  /* Grid mobile */
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  /* IP display mobile */
  .ip-display {
    flex-direction: column;
    text-align: center;
    padding: var(--space-lg);
    max-width: 100%;
    box-sizing: border-box;
  }

  .ip-display .ip-value {
    font-size: var(--text-xl);
    word-break: break-all;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  /* VPN banner mobile */
  .vpn-banner {
    flex-direction: column;
    text-align: center;
    padding: var(--space-xl);
  }

  /* Footer mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  /* Section padding mobile */
  .section {
    padding: var(--space-2xl) 0;
  }

  .hero {
    padding: var(--space-2xl) 0 var(--space-lg);
  }

  .page-header {
    padding: var(--space-2xl) 0 var(--space-lg);
  }

  /* Input group stack */
  .input-group {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  :root {
    --text-5xl: 1.875rem;
    --text-4xl: 1.5rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .card {
    padding: var(--space-lg);
  }

  .security-grid {
    grid-template-columns: 1fr;
  }

  .ip-display {
    padding: var(--space-md);
  }

  .ip-display .ip-value {
    font-size: var(--text-lg);
  }

  .ip-box .ip-box-value {
    font-size: var(--text-base);
    word-break: break-all;
  }

  .hero h1 {
    font-size: var(--text-3xl);
  }
}

/* ---- Print Styles ---- */
@media print {
  body::before { display: none; }
  .nav, .footer, .ad-slot, .vpn-banner { display: none; }
  body { color: #000; background: #fff; }
  .card { border: 1px solid #ddd; box-shadow: none; background: #fff; }
}
