:root {
  --bg-1: #0f172a;
  --bg-2: #1e293b;
  --card-bg: rgba(15, 23, 42, 0.92);
  --card-border: rgba(255, 255, 255, 0.08);
  --inner-card-bg: rgba(255, 255, 255, 0.04);
  --text-main: #f8fafc;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --danger-soft: rgba(239, 68, 68, 0.16);
  --danger-border: rgba(239, 68, 68, 0.3);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --max-card-width: 760px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.08), transparent 35%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
  color: var(--text-main);
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.page {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-card {
  width: min(100%, var(--max-card-width));
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.card-inner {
  padding: 28px;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.top-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: var(--text-soft);
  font-size: 14px;
}

.top-badge svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.top-map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.22);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  text-decoration: none;
  color: var(--text-soft);
  font-size: 14px;
  flex: 0 0 auto;
}

.top-map-link:hover {
  transform: translateY(-2px);
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.35);
}

.top-map-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.top-map-link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.top-map-link span {
  white-space: nowrap;
}

.establishment-box,
.message-box {
  margin-bottom: 20px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--inner-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.establishment-logo-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  margin: 0 auto 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.establishment-logo {
  display: block;
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.establishment-label {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.establishment-name {
  margin: 0;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.35;
  font-weight: 700;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.title {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.6vw, 34px);
  line-height: 1.15;
  font-weight: 700;
  word-break: break-word;
}

.subtitle {
  margin: 0 0 34px;
  color: var(--text-soft);
  font-size: clamp(14px, 1.7vw, 15px);
  line-height: 1.55;
}

.section-divider {
  height: 2px;
  margin: 12px 0 40px 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(56, 189, 248, 0.22) 18%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(56, 189, 248, 0.22) 82%,
    rgba(255, 255, 255, 0) 100%
  );
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.08);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(210px, 250px));
  justify-content: center;
  gap: 12px;
  margin: 0 auto;
}

.action-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 54px;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--text-main);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  text-align: center;
  cursor: pointer;
}

.action-link:hover {
  transform: translateY(-2px);
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
}

.action-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.action-link img {
  width: 120px;
  max-height: 44px;
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
}

.action-link span {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  word-break: break-word;
  white-space: nowrap;
}

.restricted-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--danger-soft);
  border: 1px solid var(--danger-border);
  margin-bottom: 22px;
  text-align: center;
}

.restricted-banner svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.restricted-text {
  margin: 0;
  color: #fecaca;
  line-height: 1.5;
  font-size: 15px;
  text-align: center;
}

.outer-divider {
  margin: 8px 0 40px 0;
}

.bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 8px;
}

.encrypted {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  flex-wrap: wrap;
}

.encrypted svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.encrypted-separator {
  opacity: 0.7;
}

.provider-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 6px 12px;
  min-width: 0;
  color: var(--text-main);
  text-decoration: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  cursor: pointer;
}

.provider-link:hover {
  transform: translateY(-2px);
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: #e0f2fe;
}

.provider-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.provider-link img {
  width: 120px;
  max-height: 38px;
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
}

.provider-label {
  color: var(--text-soft);
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 700px) {
  body {
    padding: 14px;
    align-items: flex-start;
  }

  .card-inner {
    padding: 20px;
  }

  .links-grid {
    grid-template-columns: 1fr;
    max-width: 260px;
  }

  .action-link {
    justify-content: center;
    text-align: center;
  }

  .bottom-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .provider-link {
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .card-inner {
    padding: 16px;
  }

  .top-bar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .top-badge {
    justify-content: center;
  }

  .restricted-banner {
    align-items: center;
  }

  .action-link img,
  .provider-link img {
    width: 96px;
    max-height: 40px;
  }
}