:root {
  color-scheme: dark;
  --bg-deep: #0b1220;
  --bg-mid: #111a2e;
  --bg-bright: #16243b;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.16);
  --text-main: #eaf2ff;
  --text-muted: rgba(234, 242, 255, 0.7);
  --text-secondary: #4b5563;
  --accent: #00c2ff;
  --accent-2: #19d3a2;
  --accent-3: #ffc857;
  --accent-4: #00c2ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
}

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

body {
  font-family: "Sora", "Helvetica Neue", sans-serif;
  color: var(--text-main);
  background: radial-gradient(
      circle at top,
      rgba(26, 32, 56, 0.72) 0%,
      rgba(3, 3, 5, 0.92) 65%
    ),
    url("background.webp") center / cover no-repeat fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

.ambient-glow {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 15% 15%, rgba(77, 232, 255, 0.32), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(255, 106, 160, 0.24), transparent 40%),
    radial-gradient(circle at 65% 80%, rgba(164, 255, 125, 0.22), transparent 45%),
    radial-gradient(circle at 25% 80%, rgba(255, 209, 106, 0.18), transparent 50%);
  filter: blur(18px);
  z-index: -2;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.2;
  z-index: -1;
}

.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
  margin-bottom: 48px;
}

.hero-copy h1 {
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin: 12px 0 18px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.back-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.back-row .back-link {
  margin-top: 0;
}

.back-link:hover {
  color: var(--text-main);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  color: var(--accent);
}

.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.brand-logo {
  width: 260px;
  height: 260px;
  border-radius: 0;
  object-fit: cover;
  background: transparent;
}

.lede {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 1.05rem;
}

.chip-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-card {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-stack {
  display: grid;
  gap: 16px;
}

.hero-card h2 {
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
  margin-bottom: 16px;
}

.metric {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}

.metric-value {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.metric-note {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(242, 244, 255, 0.45);
}

.metric strong {
  color: var(--text-main);
}

.metric:last-child {
  border-bottom: none;
}

.panel {
  background: var(--glass);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 28px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  animation: floatUp 0.9s ease-out;
  position: relative;
  overflow: hidden;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    140deg,
    rgba(77, 232, 255, 0.08),
    rgba(255, 106, 160, 0.08),
    rgba(164, 255, 125, 0.08)
  );
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.panel > * {
  position: relative;
  z-index: 1;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.panel-header h2 {
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
}

.events-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.panel-subtitle {
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.5;
}

.trends-promo {
  padding: 28px 32px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(120deg, rgba(0, 194, 255, 0.16), rgba(25, 211, 162, 0.18));
  position: relative;
}

.trends-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -30deg,
    rgba(255, 255, 255, 0.08) 0,
    rgba(255, 255, 255, 0.08) 8px,
    transparent 8px,
    transparent 16px
  );
  opacity: 0.35;
  pointer-events: none;
}

.trends-promo-body {
  position: relative;
  z-index: 1;
}

.trends-promo-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}

.trends-promo-logo {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 12, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.trends-promo-image {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.trends-promo-text {
  display: grid;
  gap: 10px;
}

.trends-promo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(6, 10, 18, 0.9);
  background: rgba(255, 200, 87, 0.95);
}

.trends-ad {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(120deg, rgba(0, 194, 255, 0.2), rgba(25, 211, 162, 0.22));
}

.trends-ad::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -30deg,
    rgba(255, 255, 255, 0.1) 0,
    rgba(255, 255, 255, 0.1) 8px,
    transparent 8px,
    transparent 16px
  );
  opacity: 0.4;
  pointer-events: none;
}

.trends-ad > * {
  position: relative;
  z-index: 1;
}

.trends-ad-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 16px;
}

.trends-ad-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.trends-ad-copy h3 {
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.trends-ad-copy p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.trends-promo-title {
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
}

.trends-promo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(25, 211, 162, 0.25), rgba(0, 194, 255, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-decoration: none;
  color: var(--text-main);
  width: fit-content;
}

.trends-promo-link:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.feed-grid,
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.choice-card {
  padding: 20px;
  border-radius: 18px;
  background: rgba(8, 10, 16, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: inherit;
  display: grid;
  gap: 8px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-list {
  display: grid;
  gap: 18px;
}

.faq-item {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(8, 10, 16, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.faq-answer {
  color: var(--text-muted);
  line-height: 1.6;
}

.seo-copy {
  display: grid;
  gap: 12px;
}

.seo-copy p {
  color: var(--text-muted);
  line-height: 1.6;
}

.choice-card h3 {
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
}

.choice-card p {
  color: var(--text-muted);
  line-height: 1.4;
}

.choice-card:hover {
  transform: translateY(-6px);
  border-color: rgba(77, 232, 255, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.choice-card.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.feed-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(8, 10, 16, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.feed-card:hover {
  transform: translateY(-6px);
  border-color: rgba(64, 240, 255, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.feed-card p {
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
  color: var(--accent);
}

.feed-card span {
  color: var(--text-muted);
}

.event-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.event-item {
  display: grid;
  grid-template-columns: minmax(140px, 180px) 1fr;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(6, 8, 14, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.event-date {
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
  font-size: 1.1rem;
  color: var(--accent-2);
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.event-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.event-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.event-source {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.event-source a {
  color: var(--accent);
  text-decoration: none;
}

.event-source a:hover {
  text-decoration: underline;
}

.event-link {
  color: var(--accent);
  font-size: 0.85rem;
  text-decoration: none;
}

.event-link:hover {
  text-decoration: underline;
}

.tax-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.tax-card {
  background: rgba(6, 8, 14, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.tax-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.tax-value {
  font-size: 1rem;
  line-height: 1.4;
  color: var(--accent-2);
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tax-prefix {
  color: var(--text-main);
  font-weight: 600;
}

.tax-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tax-source {
  color: var(--text-muted);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tax-source a {
  color: var(--accent);
  text-decoration: none;
}

.tax-source a:hover {
  text-decoration: underline;
}

.badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 106, 160, 0.16);
  border: 1px solid rgba(255, 106, 160, 0.4);
}

.country-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(6, 8, 14, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.country-card h3 {
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
  margin-bottom: 12px;
}

.country-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.country-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.mono {
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
  color: var(--accent);
}

.footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 24px 16px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.footer-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-line + .footer-line::before {
  content: "·";
  margin: 0 6px;
  color: var(--text-muted);
}

.footer-links {
  gap: 12px;
}

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

.footer a:hover {
  text-decoration: underline;
}

.search-panel {
  display: grid;
  gap: 16px;
}

.search-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

#search-input {
  flex: 1 1 260px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 10, 16, 0.8);
  color: var(--text-main);
  font-size: 0.95rem;
}

#search-input::placeholder {
  color: rgba(242, 244, 255, 0.5);
}

#search-clear {
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(135deg, rgba(77, 232, 255, 0.18), rgba(255, 106, 160, 0.2));
  color: var(--text-main);
  font-size: 0.9rem;
  cursor: pointer;
}

#search-clear:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.search-meta {
  color: var(--text-muted);
}

.list-toggle {
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 10, 16, 0.8);
  color: var(--text-main);
  font-size: 0.9rem;
  cursor: pointer;
  display: none;
  width: 100%;
  justify-content: center;
}

.list-toggle:hover {
  border-color: rgba(77, 232, 255, 0.5);
}

.country-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.country-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 10, 16, 0.8);
  color: var(--text-main);
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.country-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.country-time {
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
  font-size: 0.85rem;
  color: var(--accent-2);
}

.country-button:hover {
  border-color: rgba(77, 232, 255, 0.5);
  transform: translateY(-2px);
}

.country-button.is-active {
  border-color: rgba(255, 106, 160, 0.6);
  box-shadow: 0 14px 28px rgba(255, 106, 160, 0.18);
}

.country-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.country-seo-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 10, 16, 0.7);
  color: var(--text-main);
  font-size: 0.8rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.country-seo-link:hover {
  border-color: rgba(77, 232, 255, 0.5);
}

.rss-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 10, 16, 0.7);
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rss-link:hover {
  border-color: rgba(77, 232, 255, 0.55);
}

.event-empty {
  padding: 16px;
  border-radius: 14px;
  background: rgba(8, 10, 16, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.flag {
  width: 20px;
  height: 14px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(242, 244, 255, 0.7);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.flag-bahamas {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'><rect width='30' height='20' fill='%2300abc9'/><rect y='6.66' width='30' height='6.68' fill='%23ffd447'/><polygon points='0,0 12,10 0,20' fill='%23000'/></svg>");
}

.flag-jamaica {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'><rect width='30' height='20' fill='%231b8f4b'/><polygon points='0,0 4,0 30,16 30,20 26,20 0,4' fill='%23fdd116'/><polygon points='30,0 26,0 0,16 0,20 4,20 30,4' fill='%23fdd116'/><polygon points='0,0 12,10 0,20' fill='%23000'/><polygon points='30,0 18,10 30,20' fill='%23000'/></svg>");
}

.flag-trinidad {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'><rect width='30' height='20' fill='%23ce1126'/><polygon points='-2,2 4,-2 32,18 26,22' fill='%23ffffff'/><polygon points='0,4 6,0 30,16 24,20' fill='%23000'/><polygon points='2,6 8,2 28,14 22,18' fill='%23ffffff'/></svg>");
}

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

@media (max-width: 720px) {
    .list-toggle {
      display: flex;
    }

  .event-item {
    grid-template-columns: 1fr;
  }

  .list-collapsible {
    max-height: 300px;
    overflow: hidden;
  }

  .list-collapsible.is-expanded {
    max-height: none;
  }

  .footer {
    flex-direction: column;
    gap: 6px;
  }

  .footer-line {
    justify-content: center;
  }

  .footer-line + .footer-line::before {
    content: "";
    margin: 0;
  }

  .trends-promo {
    padding: 24px;
  }

  .trends-promo-body {
    grid-template-columns: 1fr;
  }

  .trends-promo-logo {
    width: 72px;
    height: 72px;
  }
}
