/* ==========================================================
   PlayOnlineMiniGame — Modern Minimalist Stylesheet
   现代简约风格：大留白、低饱和、精致排版、克制交互
   ========================================================== */

:root {
  /* Core Palette — Indigo + Neutral Slate */
  --primary: #4f46e5;          /* indigo-600 主色：按钮、链接 */
  --primary-hover: #4338ca;    /* indigo-700 悬停 */
  --primary-soft: #eef2ff;     /* indigo-50 柔和背景 */
  --ink-900: #0f172a;          /* 标题、正文 */
  --ink-700: #334155;          /* 次要文本 */
  --ink-500: #64748b;          /* 辅助文字 */
  --ink-300: #cbd5e1;          /* 淡边框 */
  --line: #e2e8f0;             /* 分隔线 */
  --surface: #ffffff;          /* 卡片表面 */
  --bg: #f8fafc;               /* 页面背景 */
  --bg-alt: #f1f5f9;           /* 交替区块 */
  --success: #16a34a;

  /* Shape */
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  /* Shadow — very subtle for minimalist feel */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
  --font-mono: 'SF Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Spacing scale */
  --max-w: 1120px;
}

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

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

body {
  font-family: var(--font-sans);
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
}

h1, h2, h3, h4 { color: var(--ink-900); letter-spacing: -0.01em; line-height: 1.3; }
h1 { font-weight: 800; }
h2 { font-weight: 700; }
h3 { font-weight: 600; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

a { color: var(--primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--primary-hover); }

/* ==========================================================
   HEADER — Clean sticky bar
   ========================================================== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header .container {
  display: flex; align-items: center;
  padding-top: 14px; padding-bottom: 14px;
  gap: 24px;
}
.logo {
  font-size: 1.05rem; font-weight: 700;
  color: var(--ink-900); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  letter-spacing: -0.02em; flex-shrink: 0;
  transition: color .15s ease;
}
.logo:hover { color: var(--primary); }
.logo::before {
  content: "◈";
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 900;
}

.nav-links { display: flex; gap: 28px; align-items: center; flex: 1; justify-content: center; }
.nav-links a {
  color: var(--ink-500); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  transition: color .15s ease;
  position: relative;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink-900); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px;
  height: 2px; background: var(--primary); border-radius: 2px 2px 0 0;
}

/* Language switcher */
.lang-switch {
  padding: 7px 36px 7px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.82rem; font-weight: 500;
  color: var(--ink-700); background: var(--surface);
  cursor: pointer; outline: none;
  appearance: none; -webkit-appearance: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E"),
    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='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center, right 12px center;
  transition: border-color .15s ease, background-color .15s ease;
  flex-shrink: 0; min-width: 128px;
}
.lang-switch:hover { border-color: var(--primary); background: var(--primary-soft); }
.lang-switch:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

/* ==========================================================
   BREADCRUMB
   ========================================================== */
.breadcrumb { padding: 20px 0 8px; font-size: 0.85rem; color: var(--ink-500); }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ==========================================================
   HERO — Elegant gradient-less hero
   ========================================================== */
.hero {
  padding: 72px 0 56px;
  text-align: center;
  background:
    radial-gradient(1000px 400px at 50% -100px, var(--primary-soft), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--line);
}
.hero h1 {
  font-size: clamp(1.8rem, 4.2vw, 2.8rem);
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}
.hero .subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--ink-500);
  max-width: 640px;
  margin: 0 auto 24px;
}
.badges { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--ink-500);
  border: 1px solid var(--line);
  font-weight: 500;
  transition: all .15s ease;
}
.badge:hover { border-color: var(--primary); color: var(--primary); }

/* ==========================================================
   SELECTOR SECTION — Refined card
   ========================================================== */
.selector-section {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  margin: -20px 0 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  scroll-margin-top: 80px;
  position: relative;
  z-index: 2;
}
.selector-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 16px;
  align-items: end;
}
.control-group { display: flex; flex-direction: column; }
.control-group label {
  font-weight: 600; margin-bottom: 8px;
  color: var(--ink-900); font-size: 0.85rem;
  letter-spacing: 0.01em;
}

.select {
  width: 100%; padding: 11px 40px 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.95rem; font-family: inherit;
  background: var(--surface); color: var(--ink-900);
  cursor: pointer;
  transition: all .15s ease;
  appearance: none; -webkit-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='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.select:hover { border-color: var(--ink-300); }
.select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.generate-btn {
  flex-shrink: 0;
  padding: 12px 26px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s ease;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.generate-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}
.generate-btn:active { transform: translateY(0); }
.generate-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

/* Custom country dropdown */
.cust-sel { position: relative; width: 100%; }
.cust-sel-trigger {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: var(--surface);
  color: var(--ink-900);
  cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  transition: all .15s ease;
  user-select: none;
}
.cust-sel-trigger:hover { border-color: var(--ink-300); }
.cust-sel-trigger.open {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.cust-sel-arrow {
  margin-left: auto; font-size: 0.7rem;
  color: var(--ink-500); transition: transform .2s;
}
.cust-sel-trigger.open .cust-sel-arrow { transform: rotate(180deg); }

.cust-sel-drop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  z-index: 200;
  max-height: 260px;
  overflow-y: auto;
  display: none;
  box-shadow: var(--shadow-md);
}
.cust-sel-drop.open { display: block; animation: fade .12s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(-4px);} to {opacity:1; transform: translateY(0);} }

.cust-sel-opt {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.92rem;
  display: flex; align-items: center; gap: 10px;
  transition: background .1s ease;
}
.cust-sel-opt:hover { background: var(--bg); }
.cust-sel-opt.sel { background: var(--primary-soft); color: var(--primary); font-weight: 600; }

.flag-icon {
  width: 24px; height: 16px; flex-shrink: 0;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

/* ==========================================================
   EMPTY STATE
   ========================================================== */
.empty-state {
  text-align: center;
  padding: 56px 24px;
  color: var(--ink-500);
}
.empty-state .empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.8;
}
.empty-state p { font-size: 0.92rem; }

/* ==========================================================
   RESULT SECTION
   ========================================================== */
.result-section {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 80px;
  margin: 0 0 28px;
}
.result-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  background: var(--ink-900);
  color: #fff;
}
.result-header h3 { font-size: 0.95rem; font-weight: 600; color: #fff; }
.result-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.result-actions button {
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: #e2e8f0;
  cursor: pointer;
  font-size: 0.8rem; font-weight: 500; font-family: inherit;
  transition: all .15s ease;
  white-space: nowrap;
}
.result-actions button:hover { background: rgba(255,255,255,0.16); color: #fff; }
.result-actions button.copied { background: var(--success); border-color: var(--success); color: #fff; }

.result-body { padding: 4px 0; }
.field-row {
  display: flex; align-items: center;
  padding: 12px 24px;
  border-bottom: 1px solid var(--bg-alt);
  transition: background .12s ease;
  gap: 12px;
}
.field-row:last-child { border-bottom: none; }
.field-row:hover { background: var(--bg); }
.field-icon { font-size: 1rem; opacity: 0.85; flex-shrink: 0; }
.field-label {
  font-size: 0.8rem; color: var(--ink-500);
  width: 120px; flex-shrink: 0;
  font-weight: 500;
}
.field-value {
  flex: 1;
  font-size: 0.92rem;
  font-family: var(--font-mono);
  color: var(--ink-900);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.field-copy-btn {
  padding: 5px 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  transition: all .15s ease;
  flex-shrink: 0;
  color: var(--ink-500);
}
.field-copy-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.field-copy-btn.copied { background: var(--success); border-color: var(--success); color: #fff; }

/* ==========================================================
   ADSENSE AD SLOTS — Placeholder styling
   Users will replace with real AdSense code
   ========================================================== */
.ad-slot {
  width: 100%;
  min-height: 90px;
  background: repeating-linear-gradient(
    45deg,
    var(--bg-alt),
    var(--bg-alt) 10px,
    var(--bg) 10px,
    var(--bg) 20px
  );
  border: 1px dashed var(--ink-300);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-500);
  font-size: 0.8rem;
  margin: 28px 0;
  padding: 16px;
  text-align: center;
}
.ad-slot--leaderboard { min-height: 110px; }
.ad-slot--incontent   { min-height: 250px; }
.ad-slot--sidebar     { min-height: 300px; }

/* ==========================================================
   FEATURES GRID
   ========================================================== */
.features-section { padding: 56px 0 28px; }
.features-section h2 {
  text-align: center;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin-bottom: 8px;
}
.features-section > .container > p {
  text-align: center;
  color: var(--ink-500);
  font-size: 0.95rem;
  margin-bottom: 36px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: all .2s ease;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: transparent;
}
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.feature-card h3 { font-size: 1rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.88rem; color: var(--ink-500); line-height: 1.6; }

/* ==========================================================
   BLOG SECTION
   ========================================================== */
.blog-section { padding: 56px 0 36px; }
.blog-section h2 {
  text-align: center;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin-bottom: 8px;
}
.blog-desc {
  text-align: center;
  color: var(--ink-500);
  margin-bottom: 36px;
  font-size: 0.95rem;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: all .2s ease;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column;
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--primary);
}
.blog-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--ink-900);
  transition: color .15s ease;
}
.blog-card:hover h3 { color: var(--primary); }
.blog-card p {
  font-size: 0.85rem;
  color: var(--ink-500);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.blog-card .date {
  font-size: 0.75rem;
  color: var(--ink-500);
  letter-spacing: 0.02em;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.blog-all { text-align: center; margin-top: 28px; }
.blog-all a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity .15s ease;
}
.blog-all a:hover { text-decoration: underline; }

/* ==========================================================
   FAQ
   ========================================================== */
.faq-section { padding: 40px 0 24px; }
.faq-section h2 {
  text-align: center;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin-bottom: 32px;
}
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--surface);
  transition: border-color .15s ease;
}
.faq-item:hover { border-color: var(--ink-300); }
.faq-q {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.92rem;
  user-select: none;
  color: var(--ink-900);
}
.faq-q:hover { background: var(--bg); }
.faq-q .arrow {
  transition: transform .25s ease;
  font-size: 0.75rem;
  color: var(--ink-500);
  font-weight: 400;
}
.faq-q.open .arrow { transform: rotate(180deg); color: var(--primary); }

.faq-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .25s ease;
}
.faq-a.open { max-height: 500px; padding: 0 20px 18px; }
.faq-a p { font-size: 0.9rem; color: var(--ink-500); line-height: 1.7; }

/* ==========================================================
   CTA SECTION
   ========================================================== */
.cta-section {
  text-align: center;
  padding: 56px 36px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  margin: 40px 0;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #818cf8, var(--primary));
}
.cta-section h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin-bottom: 10px;
}
.cta-section p {
  color: var(--ink-500);
  margin-bottom: 28px;
  font-size: 0.95rem;
}
.cta-btn {
  display: inline-block;
  padding: 13px 32px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all .15s ease;
  letter-spacing: 0.01em;
}
.cta-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  color: #fff;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}

/* ==========================================================
   SAVED ADDRESSES
   ========================================================== */
.saved-section {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  margin: 0 0 28px;
  overflow: hidden;
}
.saved-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap; gap: 12px;
}
.saved-header h2 { font-size: 1.1rem; }
.saved-header-actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.saved-count { font-size: 0.8rem; color: var(--ink-500); font-weight: 500; }
.saved-action-btn {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-700);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  transition: all .15s ease;
  white-space: nowrap;
}
.saved-action-btn:hover { background: var(--bg); border-color: var(--ink-300); }
.saved-action-btn.danger { color: #dc2626; border-color: #fecaca; }
.saved-action-btn.danger:hover { background: #fef2f2; }

.saved-body { padding: 22px 24px; }
.saved-cards {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}
.saved-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all .2s ease;
}
.saved-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.saved-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: var(--primary);
  color: #fff;
}
.saved-card-header .saved-name {
  font-weight: 600; font-size: 0.9rem;
  display: flex; align-items: center; gap: 6px;
}
.saved-card-header .saved-gender { font-size: 0.78rem; opacity: 0.9; }
.saved-card-body {
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.saved-card-body .saved-line {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.85rem;
}
.saved-card-body .saved-line .saved-label {
  color: var(--ink-500); font-size: 0.72rem;
  min-width: 56px; flex-shrink: 0; padding-top: 2px;
}
.saved-card-body .saved-line .saved-val {
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  word-break: break-all;
}
.saved-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.saved-card-footer .saved-time { font-size: 0.72rem; color: var(--ink-500); }
.saved-card-footer .saved-card-actions { display: flex; gap: 6px; }
.saved-card-footer .saved-card-actions button {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  cursor: pointer;
  font-size: 0.72rem;
  font-family: inherit;
  transition: all .15s ease;
  white-space: nowrap;
}
.saved-card-footer .saved-card-actions .saved-copy-btn {
  color: var(--primary);
  border-color: #c7d2fe;
}
.saved-card-footer .saved-card-actions .saved-copy-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.saved-card-footer .saved-card-actions .saved-del-btn {
  color: #dc2626; border-color: #fecaca;
}
.saved-card-footer .saved-card-actions .saved-del-btn:hover {
  background: #fef2f2;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  background: var(--ink-900);
  color: #94a3b8;
  padding: 56px 0 0;
  margin-top: 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #1e293b;
}
.footer-col h4 {
  color: #f1f5f9;
  font-size: 0.9rem;
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col p { font-size: 0.85rem; line-height: 1.7; }
.footer-col a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 4px 0;
  transition: color .15s ease;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding: 22px 0;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}
.footer-bottom a { color: #94a3b8; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ==========================================================
   TOAST
   ========================================================== */
.toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink-900);
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.85rem;
  z-index: 9999;
  opacity: 0;
  transition: all .25s ease;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
  font-weight: 500;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==========================================================
   LEGAL / ABOUT / CONTACT PAGES
   ========================================================== */
.legal-content, .about-content, .contact-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 16px 0 48px;
}
.legal-content h1, .about-content h1, .contact-content h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}
.legal-date, .contact-intro {
  color: var(--ink-500);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.legal-content section, .about-content section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.legal-content section:last-child, .about-content section:last-child { border-bottom: none; }

.legal-content h2, .about-content h2, .contact-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--ink-900);
}
.legal-content h3 {
  font-size: 1rem; font-weight: 600;
  margin: 18px 0 8px;
  color: var(--ink-900);
}
.legal-content p, .about-content p, .contact-content p {
  margin-bottom: 12px;
  line-height: 1.75;
  color: var(--ink-700);
}
.legal-content ul, .about-content ul {
  margin: 8px 0 16px 22px;
}
.legal-content li, .about-content li {
  margin-bottom: 6px;
  line-height: 1.7;
  color: var(--ink-700);
}
.legal-content a, .about-content a, .contact-content a {
  color: var(--primary);
  text-decoration: none;
}
.legal-content a:hover, .about-content a:hover, .contact-content a:hover {
  text-decoration: underline;
}

/* About Hero */
.about-hero {
  padding: 24px 28px;
  background: var(--primary-soft);
  border-radius: var(--radius);
  margin-bottom: 18px;
  border-left: 4px solid var(--primary);
}
.about-hero h2 { font-size: 1.2rem; margin-bottom: 8px; color: var(--ink-900); }
.about-hero p { color: var(--ink-700); line-height: 1.75; font-size: 0.92rem; margin: 0; }

.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.country-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  transition: all .15s ease;
}
.country-item:hover { box-shadow: var(--shadow-sm); border-color: var(--primary); }
.country-item .country-flag { font-size: 1.2rem; }
.country-item strong { color: var(--ink-900); font-weight: 600; }
.country-item span:last-child {
  color: var(--ink-500);
  font-size: 0.78rem;
  margin-left: auto;
}

/* Tip Box */
.tip-box {
  position: relative;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-sm);
  padding: 16px 20px 16px 44px;
  margin: 16px 0;
  font-size: 0.9rem;
}
.tip-box::before {
  content: "⚠";
  position: absolute;
  left: 16px; top: 16px;
  font-size: 1rem;
  color: #b45309;
}
.tip-box strong { color: #92400e; }
.tip-box p { color: #78350f; margin: 0; line-height: 1.7; }

/* Contact */
.contact-intro { max-width: 620px; margin-bottom: 32px; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: all .2s ease;
}
.contact-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--primary);
}
.contact-card-icon { font-size: 2rem; margin-bottom: 10px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-card p {
  color: var(--ink-500);
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.contact-link {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 6px;
  word-break: break-all;
}
.contact-link:hover { text-decoration: underline; }
.contact-hint { display: block; font-size: 0.75rem; color: var(--ink-500); }

/* ==========================================================
   COOKIE BANNER
   ========================================================== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--ink-900);
  color: #e2e8f0;
  padding: 14px 24px;
  z-index: 9998;
  display: none;
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.25);
  font-size: 0.85rem;
  line-height: 1.6;
}
.cookie-banner.show { display: block; animation: slideUp .25s ease; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner-text { flex: 1; min-width: 240px; }
.cookie-banner-text a { color: #a5b4fc; text-decoration: underline; }
.cookie-banner-text a:hover { color: #c7d2fe; }
.cookie-banner-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn {
  padding: 8px 18px;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .15s ease;
  white-space: nowrap;
  font-family: inherit;
}
.cookie-btn-accept { background: var(--primary); color: #fff; }
.cookie-btn-accept:hover { background: var(--primary-hover); }
.cookie-btn-settings {
  background: transparent;
  color: #94a3b8;
  border: 1px solid #475569;
}
.cookie-btn-settings:hover { color: #fff; border-color: #94a3b8; }

/* ==========================================================
   BACK TO TOP
   ========================================================== */
.back-to-top {
  position: fixed;
  bottom: 96px; right: 24px;
  width: 42px; height: 42px;
  background: var(--surface);
  color: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all .2s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center; justify-content: center;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 860px) {
  .hero { padding: 56px 0 44px; }
  .selector-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .selector-section { padding: 20px; margin-top: -10px; }
  .generate-btn { width: 100%; }
  .field-label { width: 80px; font-size: 0.75rem; }
  .field-value { font-size: 0.85rem; }
  .field-row { padding: 10px 16px; gap: 8px; }
  .result-header {
    padding: 12px 16px;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .result-actions { width: 100%; flex-wrap: wrap; }
  .features-grid, .blog-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; order: 3; width: 100%; justify-content: flex-start; }
  .header .container { flex-wrap: wrap; gap: 10px; padding: 12px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-col { text-align: center; }
  .legal-content h1, .about-content h1, .contact-content h1 { font-size: 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .country-grid { grid-template-columns: 1fr 1fr; }
  .cta-section { padding: 36px 20px; }
  .about-hero { padding: 18px 20px; }
  .saved-body { padding: 18px 16px; }
  .saved-header { padding: 14px 16px; }
  .container { padding: 0 18px; }
}

@media (max-width: 520px) {
  .field-label { width: 68px; font-size: 0.7rem; }
  .container { padding: 0 14px; }
  .country-grid { grid-template-columns: 1fr; }
  .cookie-banner-inner { flex-direction: column; text-align: center; gap: 12px; }
  .cookie-banner-actions { width: 100%; justify-content: center; }
  .hero { padding: 44px 0 36px; }
  .hero h1 { font-size: 1.6rem; }
  .selector-section { padding: 16px; border-radius: 12px; }
  .result-section, .saved-section, .cta-section { border-radius: 12px; }
  .back-to-top { bottom: 110px; right: 14px; width: 38px; height: 38px; }
}
