:root {
  --navy: #102746;
  --navy-2: #18375e;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-pale: #eff6ff;
  --sky: #dbeafe;
  --ink: #172033;
  --muted: #667085;
  --line: #e4e9f1;
  --surface: #ffffff;
  --page: #f4f7fb;
  --success: #1d9c69;
  --shadow: 0 18px 55px rgba(31, 47, 75, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.page-shell { min-height: 100vh; }

.site-header {
  align-items: center;
  display: flex;
  height: 88px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1220px;
  padding: 0 28px;
}

.brand {
  align-items: center;
  color: var(--navy);
  display: inline-flex;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--blue);
  border-radius: 12px;
  box-shadow: 0 9px 22px rgba(37, 99, 235, 0.25);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand-mark svg { height: 26px; width: 26px; }
.brand-mark path { fill: #fff; }
.brand-mark circle { fill: var(--blue); stroke: #fff; stroke-width: 2; }

.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.05; }
.brand strong { font-family: "Manrope", sans-serif; font-size: 18px; letter-spacing: -0.5px; }
.brand small { color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: 2.5px; margin-top: 5px; text-transform: uppercase; }

.header-actions { align-items: center; display: flex; gap: 18px; }
.text-button { background: none; border: 0; cursor: pointer; color: #536179; }
.text-button { align-items: center; display: inline-flex; gap: 7px; padding: 8px; }
.text-button:hover { color: var(--blue); }
.text-button svg { height: 20px; width: 20px; }
.text-button svg { fill: none; stroke: currentColor; stroke-linejoin: round; stroke-width: 1.8; }

.country-nav { background: var(--navy); box-shadow: 0 6px 18px rgba(12, 31, 55, 0.12); }
.country-menu { display: flex; margin: 0 auto; max-width: 1220px; padding: 0 28px; }
.country-menu a {
  border-bottom: 3px solid transparent;
  color: #c5d1e0;
  font-size: 14px;
  font-weight: 600;
  padding: 18px 25px 15px;
  text-decoration: none;
  transition: 160ms ease;
}
.country-menu a:hover { background: rgba(255,255,255,.05); color: #fff; }
.country-menu a.active { background: rgba(255,255,255,.06); border-color: #60a5fa; color: #fff; }
.mobile-menu-button { display: none; }

.main-layout {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 320px;
  margin: 0 auto;
  max-width: 1220px;
  padding: 28px 28px 54px;
}

.breadcrumbs { align-items: center; color: #8a95a5; display: flex; font-size: 13px; gap: 9px; margin-bottom: 18px; }
.breadcrumbs a { color: var(--blue); font-weight: 600; text-decoration: none; }

.hero-card {
  background: linear-gradient(125deg, #edf5ff 0%, #fff 68%);
  border: 1px solid #dbe8fb;
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  padding: 34px 38px;
  position: relative;
}
.hero-card::after {
  background-image: radial-gradient(#bcd1f1 1.1px, transparent 1.1px);
  background-size: 13px 13px;
  content: "";
  height: 120px;
  opacity: .55;
  position: absolute;
  right: -20px;
  top: -20px;
  width: 200px;
}

.eyebrow { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; }
.hero-card h1 {
  color: var(--navy);
  font-family: "Manrope", sans-serif;
  font-size: clamp(29px, 4vw, 42px);
  letter-spacing: -1.8px;
  line-height: 1.12;
  margin: 8px 0 12px;
}
.hero-card h1 em { color: var(--blue); font-style: normal; }
.hero-card p { color: var(--muted); margin: 0; max-width: 540px; }
.hero-copy { position: relative; z-index: 1; }
.hero-flag {
  align-items: center;
  background: #fff;
  border: 1px solid #dae3ef;
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex;
  height: 78px;
  justify-content: center;
  margin: auto 2px auto 24px;
  min-width: 112px;
  position: relative;
  transform: rotate(2deg);
  z-index: 1;
}
.hero-flag svg { filter: drop-shadow(0 3px 7px rgba(0,0,0,.12)); width: 74px; }

.generator-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 20px;
  padding: 22px;
}
.search-row { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) auto; }
.search-box { align-items: center; background: #f8fafc; border: 1px solid #dce3ec; border-radius: 11px; display: flex; padding: 0 15px; transition: 160ms ease; }
.search-box:focus-within { background: #fff; border-color: #8eb5f8; box-shadow: 0 0 0 4px rgba(37,99,235,.09); }
.search-box svg { fill: none; height: 20px; min-width: 20px; stroke: #8792a3; stroke-linecap: round; stroke-width: 1.8; width: 20px; }
.search-box input { background: transparent; border: 0; color: var(--ink); min-width: 0; outline: none; padding: 12px 10px; width: 100%; }
.search-box input::placeholder { color: #98a2b3; }

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 7px;
  justify-content: center;
  padding: 11px 15px;
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button svg { fill: none; height: 18px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 18px; }
.button-primary { background: var(--blue); box-shadow: 0 6px 16px rgba(37,99,235,.22); color: #fff; }
.button-primary:hover { background: var(--blue-dark); }
.button-dark { background: var(--navy); color: #fff; }
.button-dark:hover { background: var(--navy-2); }
.button-light { background: #f8fafc; border-color: #e1e7ef; color: #48566b; }
.button-light:hover { background: #eef3f8; }
.button-full { width: 100%; }

.panel-toolbar { align-items: center; border-top: 1px solid var(--line); display: flex; justify-content: space-between; margin-top: 18px; padding-top: 17px; }
.panel-toolbar p { align-items: center; color: var(--muted); display: flex; font-size: 12px; margin: 0; }
.status-dot { background: #30b77b; border-radius: 50%; box-shadow: 0 0 0 4px rgba(48,183,123,.13); height: 7px; margin: 0 10px 0 4px; width: 7px; }
.status-dot.warning { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.13); }
.toolbar-actions { display: flex; gap: 8px; }

.profile-sections { display: grid; gap: 18px; margin-top: 20px; }
.ad-slot { display: none; }
.ads-enabled .ad-slot {
  align-items: center;
  background: transparent;
  color: #98a2b3;
  flex-direction: column;
  font-size: 10px;
  justify-content: center;
  letter-spacing: .7px;
  overflow: hidden;
  text-align: center;
  text-transform: uppercase;
  width: 100%;
}
.ads-enabled .ad-slot-native { display: flex; margin: 20px 0 0; min-height: 90px; }
.ads-enabled .ad-slot-banner { display: flex; margin: 3px 0; min-height: 66px; }
.ads-enabled .ad-slot-rectangle { display: flex; min-height: 272px; }
.ad-label { display: block; line-height: 1; margin-bottom: 8px; }
.ad-slot iframe { border: 0; display: block; margin: 0 auto; max-width: 100%; }
.ad-slot-native > div { max-width: 100%; width: 100%; }
.ad-slot[data-ad-state="failed"] { display: none; }
.data-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(31,47,75,.04); overflow: hidden; }
.card-header { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: 19px 22px; }
.card-title { align-items: center; display: flex; gap: 12px; }
.card-title-icon { align-items: center; background: var(--blue-pale); border-radius: 10px; color: var(--blue); display: inline-flex; height: 36px; justify-content: center; width: 36px; }
.card-title-icon svg { fill: none; height: 19px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 19px; }
.card-title h2 { font-family: "Manrope", sans-serif; font-size: 16px; margin: 0; }
.card-count { background: #f1f4f8; border-radius: 20px; color: #7a8697; font-size: 11px; font-weight: 700; padding: 4px 9px; }
.data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.data-row { align-items: center; border-bottom: 1px solid #edf0f4; display: grid; gap: 13px; grid-template-columns: 118px minmax(0, 1fr) 30px; min-height: 57px; padding: 10px 18px 10px 22px; }
.data-row:nth-child(odd) { border-right: 1px solid #edf0f4; }
.data-row:last-child, .data-row:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
.data-label { color: #7a8697; font-size: 12px; font-weight: 600; }
.data-value { color: #273349; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.data-value.empty { color: #abb3bf; font-style: italic; font-weight: 400; }
.copy-field { align-items: center; background: transparent; border: 0; border-radius: 7px; color: #9aa5b4; cursor: pointer; display: flex; height: 30px; justify-content: center; padding: 0; width: 30px; }
.copy-field:hover { background: var(--blue-pale); color: var(--blue); }
.copy-field svg { fill: none; height: 15px; stroke: currentColor; stroke-width: 1.8; width: 15px; }
.data-row.full-width { grid-column: 1 / -1; }

.loading-state { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); display: flex; flex-direction: column; justify-content: center; min-height: 180px; }
.loader { animation: spin .8s linear infinite; border: 3px solid var(--sky); border-radius: 50%; border-top-color: var(--blue); height: 26px; width: 26px; }
@keyframes spin { to { transform: rotate(360deg); } }

.notice-card { align-items: flex-start; background: #fffaf0; border: 1px solid #f5dfb5; border-radius: 14px; display: flex; gap: 13px; margin-top: 20px; padding: 18px 20px; }
.notice-icon { align-items: center; background: #f59e0b; border-radius: 50%; color: #fff; display: flex; flex: 0 0 auto; font-family: Georgia, serif; font-weight: bold; height: 24px; justify-content: center; width: 24px; }
.notice-card h2 { color: #8a5410; font-size: 14px; margin: 0 0 3px; }
.notice-card p { color: #936c38; font-size: 12px; margin: 0; }

.sidebar { display: grid; gap: 18px; margin-top: 35px; position: sticky; top: 18px; }
.sidebar-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 34px rgba(31,47,75,.055); overflow: hidden; padding: 21px; }
.sidebar-heading { align-items: center; display: flex; justify-content: space-between; }
.sidebar-heading h2 { font-family: "Manrope", sans-serif; font-size: 17px; margin: 2px 0 0; }
.state-badge { background: var(--navy); border-radius: 8px; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .7px; padding: 6px 8px; }
.quick-card address { color: #39465a; font-style: normal; font-weight: 600; line-height: 1.7; margin: 19px 0; }
.link-list { margin: 13px -21px -21px; }
.link-list button { align-items: center; background: #fff; border: 0; border-top: 1px solid #edf0f4; cursor: pointer; display: flex; font-size: 13px; justify-content: space-between; padding: 13px 21px; text-align: left; transition: 140ms ease; width: 100%; }
.link-list button:hover { background: var(--blue-pale); color: var(--blue); padding-left: 24px; }
.link-list span { color: #9aa5b4; font-size: 20px; }
.tip-card { align-items: flex-start; background: linear-gradient(135deg, var(--navy), #1c4777); border: 0; color: #fff; display: flex; gap: 13px; }
.tip-card > svg { fill: none; flex: 0 0 auto; height: 22px; stroke: #7db4ff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; width: 22px; }
.tip-card h2 { font-size: 14px; margin: 0 0 4px; }
.tip-card p { color: #c7d7ea; font-size: 12px; margin: 0; }
.tip-card code { color: #fff; }

.site-footer { align-items: center; background: #fff; border-top: 1px solid var(--line); color: #8a95a5; display: flex; font-size: 12px; gap: 24px; justify-content: space-between; padding: 26px max(28px, calc((100vw - 1164px) / 2)); }
.footer-brand .brand-mark { border-radius: 9px; height: 32px; width: 32px; }
.footer-brand .brand-mark svg { height: 21px; width: 21px; }
.footer-brand strong { font-size: 14px; }
.footer-brand small { font-size: 8px; letter-spacing: 2px; margin-top: 3px; }

.toast { align-items: center; background: var(--navy); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; bottom: 24px; box-shadow: 0 12px 34px rgba(16,39,70,.3); color: #fff; display: flex; gap: 10px; left: 50%; opacity: 0; padding: 12px 18px; pointer-events: none; position: fixed; transform: translate(-50%, 15px); transition: 220ms ease; z-index: 20; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { fill: none; height: 18px; stroke: #76e2b6; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.2; width: 18px; }

@media (max-width: 980px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; position: static; }
  .ads-enabled .ad-slot-rectangle { grid-column: 1 / -1; }
  .tip-card { grid-column: 1 / -1; }
  .country-menu a { padding-left: 17px; padding-right: 17px; }
}

@media (max-width: 720px) {
  .site-header { height: 76px; padding: 0 18px; }
  .brand strong { font-size: 16px; }
  .brand-mark { height: 38px; width: 38px; }
  .text-button { font-size: 0; }
  .header-actions { gap: 5px; }
  .country-nav { padding: 0 18px; }
  .mobile-menu-button { align-items: center; background: none; border: 0; color: #fff; cursor: pointer; display: flex; font-size: 13px; font-weight: 700; gap: 8px; height: 52px; padding: 0; }
  .mobile-menu-button span { background: #9fb3cb; border-radius: 2px; display: block; height: 2px; width: 16px; }
  .mobile-menu-button span:nth-child(2), .mobile-menu-button span:nth-child(3) { margin-left: -24px; }
  .mobile-menu-button span:nth-child(2) { transform: translateY(-5px); }
  .mobile-menu-button span:nth-child(3) { transform: translateY(5px); }
  .country-menu { display: none; flex-direction: column; padding: 0 0 12px; }
  .country-menu.open { display: flex; }
  .country-menu a { border-bottom: 0; border-left: 3px solid transparent; padding: 10px 14px; }
  .country-menu a.active { border-left-color: #60a5fa; }
  .main-layout { padding: 20px 14px 40px; }
  .hero-card { padding: 27px 24px; }
  .hero-card h1 { letter-spacing: -1.2px; }
  .hero-flag { display: none; }
  .generator-panel { padding: 16px; }
  .panel-toolbar { align-items: flex-start; flex-direction: column; gap: 15px; }
  .toolbar-actions { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .data-grid { grid-template-columns: 1fr; }
  .data-row:nth-child(odd) { border-right: 0; }
  .data-row:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid #edf0f4; }
  .data-row { grid-template-columns: 106px minmax(0, 1fr) 30px; padding-left: 16px; }
  .sidebar { grid-template-columns: 1fr; }
  .ads-enabled .ad-slot-rectangle { grid-column: auto; }
  .tip-card { grid-column: auto; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 10px; padding: 24px 18px; }
  .site-footer p { margin: 0; }
}

@media (max-width: 440px) {
  .search-row { grid-template-columns: 1fr; }
  .search-row .button { width: 100%; }
  .toolbar-actions .button { padding-left: 8px; padding-right: 8px; }
  .toolbar-actions .button svg { display: none; }
  .data-row { align-items: start; gap: 4px; grid-template-columns: minmax(0, 1fr) 30px; padding-bottom: 13px; padding-top: 13px; }
  .data-label { grid-column: 1; }
  .data-value { grid-column: 1; }
  .copy-field { grid-column: 2; grid-row: 1 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
