:root {
  --border: #e5e7eb;
  --muted: #6b7280;
  --text: #111827;
  --bg: #fff;
  --container: 1100px
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial;
  height: 100%
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column
}

main {
  flex: 1
}

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

.lite-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: #fff
}

.lite-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  position: relative
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px
}

.language-menu {
  display: flex;
  align-items: center
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #111827;
  text-decoration: none
}

.brand img {
  height: 75px;
  width: auto
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  margin-left: auto
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #111827
}

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

.nav-lite a {
  color: var(--muted);
  text-decoration: none
}

.dropdown {
  position: relative
}

.dropdown-toggle {
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px
}

.dropdown-toggle:hover {
  color: #111827
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  min-width: 200px;
  z-index: 1000;
  display: none;
  flex-direction: column;
  padding: 8px 0
}

.dropdown:hover .dropdown-menu {
  display: flex
}

.dropdown-menu a {
  padding: 8px 16px;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px
}

.dropdown-menu a:hover {
  background: #f9fafb;
  color: #111827
}

.arrow {
  font-size: 10px;
  transition: transform .2s
}

.dropdown:hover .arrow {
  transform: rotate(180deg)
}

.hero-lite {
  margin: 24px 0
}

.seo,
.hero-lite,
.countries,
.numbers,
.related-blocks {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto
}

.number-hero-lite {
  margin: 16px auto 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px
}

.number-hero-lite h1 {
  text-align: center;
  margin: 0
}

.number-meta-line {
  display: flex;
  gap: 8px;
  justify-content: center;
  color: var(--muted);
  margin-top: 4px;
  flex-wrap: wrap
}

.number-meta-line span {
  color: var(--muted)
}

.number-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap
}

.btn:hover {
  opacity: .9
}

.country-hero-lite {
  margin: 12px 0 8px
}

.grid {
  display: grid;
  gap: 20px
}

.grid-countries {
  grid-template-columns: 1fr
}

.grid-numbers {
  grid-template-columns: 1fr
}

.numbers h2 {
  margin: 8px 0 10px
}

.numbers .grid-numbers {
  gap: 16px
}

@media (min-width:769px) {
  .grid-countries {
    grid-template-columns: repeat(4, 1fr)
  }

  .grid-numbers {
    grid-template-columns: repeat(4, 1fr)
  }
}

@media (max-width:768px) {
  .hamburger {
    display: inline-flex
  }

  .header-right {
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: flex-end
  }

  .nav-lite {
    position: absolute;
    right: 16px;
    top: 60px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
    z-index: 1000
  }

  .nav-lite.open {
    display: flex
  }

  .language-menu {
    display: flex;
    align-items: center;
    position: static;
    z-index: 1001
  }

  .language-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    transform: none;
    min-width: 150px
  }
}

.card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  background: #f9fafb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  transition: box-shadow .2s ease, transform .2s ease
}

.country-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  aspect-ratio: 1/1;
  min-height: auto;
  position: relative;
  color: var(--text);
  text-decoration: none
}

.country-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
  transform: translateY(-2px)
}

.country-flag {
  width: 96px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto
}

.country-flag img {
  width: 96px;
  height: 64px;
  object-fit: cover;
  aspect-ratio: 3/2;
  border-radius: 8px
}

.country-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  flex-wrap: wrap
}

.country-name {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 18px;
  color: #111827
}

.country-dial {
  white-space: nowrap;
  color: var(--muted);
  font-weight: 600
}

.dot {
  color: var(--muted)
}

.country-status {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: center
}

.badge {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 20px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px
}

.badge-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .2)
}

.number-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  aspect-ratio: auto;
  position: relative;
  color: var(--text);
  text-decoration: none
}

.number-card .number-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center
}

.number-status {
  position: static;
  display: flex;
  justify-content: center;
  margin-top: 6px
}

.e164 {
  font-weight: 800;
  font-size: 20px
}

.provider {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.sms-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.sms-list.fixed .sms-item {
  min-height: 72px
}

.sms-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between
}

.sms-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--muted)
}

.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.btn {
  background: #111827;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer
}

.lite-footer {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  background: #fff
}

.lite-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px;
  color: var(--muted);
  font-size: 14px
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px
}

.footer-nav {
  display: flex;
  gap: 12px
}

.footer-nav a {
  text-decoration: none;
  color: var(--muted)
}

.footer-nav a:hover {
  color: #111827
}

@media (max-width:768px) {
  .lite-footer .container {
    align-items: center
  }

  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px
  }
}

/* Mobile country grid and sizing adjustments */
@media (max-width:768px) {
  .grid-countries {
    grid-template-columns: repeat(2, 1fr)
  }

  .country-card {
    gap: 10px
  }

  .country-flag {
    width: 72px;
    height: 48px
  }

  .country-flag img {
    width: 72px;
    height: 48px
  }

  .country-name {
    font-size: 16px
  }

  .badge {
    padding: 4px 10px;
    font-size: 14px
  }

  .badge-dot {
    width: 12px;
    height: 12px;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, .2)
  }
}

/* Mobile number grid and sizing adjustments */
@media (max-width:768px) {
  .grid-numbers {
    grid-template-columns: repeat(2, 1fr)
  }

  .numbers .grid-numbers {
    gap: 12px
  }

  .card {
    padding: 12px
  }

  .number-card {
    gap: 8px
  }

  .number-card .e164 {
    font-size: 16px
  }

  .number-card .provider {
    font-size: 12px
  }
}

/* 404 Error Page Styles */
.error-hero {
  text-align: center;
  padding: 60px 20px;
  max-width: 600px;
  margin: 0 auto
}

.error-content h1 {
  font-size: 120px;
  font-weight: 900;
  color: #e5e7eb;
  margin: 0;
  line-height: 1
}

.error-content h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 16px
}

.error-content p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.6
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap
}

.btn-secondary {
  background: var(--muted);
  color: #fff
}

.btn-secondary:hover {
  opacity: .9
}

.help-section {
  max-width: 600px;
  margin: 40px auto;
  padding: 0 20px
}

.help-section h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text)
}

.help-section ul {
  list-style: none;
  padding: 0;
  margin: 0
}

.help-section li {
  padding: 8px 0;
  color: var(--muted);
  font-size: 16px
}

.help-section a {
  color: #111827;
  text-decoration: none;
  font-weight: 500
}

.help-section a:hover {
  text-decoration: underline
}

@media (max-width:768px) {
  .error-content h1 {
    font-size: 80px
  }

  .error-content h2 {
    font-size: 24px
  }

  .error-content p {
    font-size: 16px
  }

  .error-actions {
    flex-direction: column;
    align-items: center
  }

  .btn {
    width: 200px
  }
}