@import url("/static/global.css");

body {
  color: var(--ink);
  background: var(--bg);
}

body.menu-open {
  overflow: hidden;
}

body.menu-open iframe {
  pointer-events: none;
}

.app-loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(26, 26, 26, 0.95), rgba(12, 12, 12, 0.98));
  display: grid;
  place-items: center;
  z-index: 80;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.app-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.app-loader-card {
  display: grid;
  gap: 10px;
  place-items: center;
  text-align: center;
  padding: 20px 24px;
  border-radius: 18px;
  border: 1px solid #2a2a2a;
  background: rgba(20, 20, 20, 0.9);
  color: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.app-loader-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.app-loader-text {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.app-loader-spinner {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  animation: app-spin 0.8s linear infinite;
}

.page {
  max-width: 520px;
  margin: 0 auto;
  padding: 18px 16px 6px;
}

.top-bar {
  display: grid;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  background: #151515;
  color: #fff;
  padding: 12px 16px;
  border-radius: 14px 14px 0 0;
  border: 1px solid #1f1f1f;
  position: relative;
  overflow: hidden;
}

.top-bar.is-flush {
  margin-bottom: 0;
}

.top-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.08) 45%, transparent 60%);
  transform: translateX(-120%);
  animation: sheen 8s ease-in-out infinite;
  pointer-events: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  justify-self: center;
  text-decoration: none;
}

.logo-image {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
}

.top-nav {
  display: none;
}

.top-nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
}

.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 4px 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-toggle.is-floating {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  background: rgba(21, 21, 21, 0.9);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.notify-indicator {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #7a1f1f;
  box-shadow: 0 0 0 rgba(122, 31, 31, 0.4);
  animation: pulse-red 1.6s ease-in-out infinite;
  display: none;
}

.home-dashboard .notify-indicator {
  display: inline-block;
}

.notify-indicator.is-on {
  background: #26c281;
  box-shadow: 0 0 0 rgba(38, 194, 129, 0.4);
  animation: pulse-green 1.6s ease-in-out infinite;
}

.menu-toggle-icon {
  font-size: 18px;
  line-height: 1;
}

.menu-toggle-label {
  display: none;
}

.side-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 60;
}

.side-menu-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.side-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(280px, 80vw);
  height: 100vh;
  background: linear-gradient(180deg, #1a1a1a 0%, #111 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 20px 26px;
  border-left: 1px solid #2a2a2a;
  box-shadow: -24px 0 40px rgba(0, 0, 0, 0.45);
  transition: right 0.25s ease;
  z-index: 70;
  overflow-y: auto;
}

.side-menu.is-open {
  right: 0;
}

.side-menu strong {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.side-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.side-menu-toggle {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 14px;
  border-radius: 14px;
  text-align: left;
  color: #fff;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.side-menu-sub {
  display: none;
  gap: 6px;
  margin: 2px 0 6px 14px;
}

.side-menu-sub.is-open {
  display: grid;
}

.side-menu-sub a {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  padding: 10px 12px;
  border-radius: 12px;
}

.cta,
.event-button,
.pill,
.menu-toggle,
.ghost-button,
.shop-chip,
.cart-pill {
  text-transform: capitalize;
}

.side-menu-footer {
  display: grid;
  gap: 8px;
  padding-top: 10px;
}

.side-menu-footer .muted-link {
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.side-menu-map {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.side-menu-spacer {
  margin-top: auto;
}

.side-menu-map iframe {
  width: 100%;
  height: 200px;
  border: 0;
  display: block;
}

.top-bar-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

.top-bar-spacer {
  justify-self: start;
  display: inline-flex;
  align-items: center;
}

.promo-banner {
  background: #1a1a1a;
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  border: 1px solid #222;
}

.promo-cta {
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--green);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 12px;
  background: var(--green);
}

.hero {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.96), rgba(26, 26, 26, 0.72));
  border-radius: 0 0 18px 18px;
  padding: 22px;
  margin-bottom: 18px;
  border: 1px solid #2a2a2a;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  color: #fff;
  position: relative;
  overflow: hidden;
  animation: none;
}

.top-bar.is-flush + .hero {
  margin-top: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero::after {
  display: none;
}

.hero h1 {
  font-size: 26px;
  margin: 0 0 8px;
}

.hero p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.75);
}

.micro-copy {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c19243, #a9772f);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 10px rgba(173, 131, 57, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.section {
  margin-bottom: 24px;
}

.section h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
  color: #f0dcc2;
}

.cards {
  display: grid;
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
  transform: translateY(12px) scale(0.97);
  opacity: 0.9;
  will-change: transform, opacity;
  transition: transform 0.45s ease, box-shadow 0.45s ease, opacity 0.45s ease;
  transition-delay: var(--stagger-delay, 0s);
}

.card.animate-in {
  animation: none;
}

.card.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.26);
}

.cards .card:first-child {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.card.dark-card {
  background: linear-gradient(135deg, rgba(21, 21, 21, 0.96), rgba(31, 31, 31, 0.86));
  border: 1px solid #2a2a2a;
  color: #fff;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}

.card.dark-card span {
  color: rgba(255, 255, 255, 0.85);
}

.card.dark-card .shop-chip {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.card.dark-card .muted-link {
  color: rgba(255, 255, 255, 0.8);
}

.card strong {
  font-size: 16px;
}

.card img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

#announcements .card:first-child,
#events .card:first-child,
#shop .card:first-child {
  border-color: var(--line);
  background: #fff;
}

#announcements .card:first-child .badge,
#events .card:first-child .badge,
#shop .card:first-child .badge {
  background: var(--cream);
  color: var(--ink);
}


.badge {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: #121212;
  color: #fff;
  border: 1px solid #2a2a2a;
  width: max-content;
  animation: pulse 6s ease-in-out infinite;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  display: grid;
  gap: 6px;
  min-height: 74px;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.14);
}

.pill span {
  font-size: 12px;
  color: var(--muted);
}

.map-embed {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.map-embed iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

.muted-link {
  font-size: 12px;
  color: #fff;
  text-decoration: none;
}

.event-card img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.event-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, #c19243, #a9772f);
  letter-spacing: 0.06em;
  box-shadow: 0 4px 10px rgba(173, 131, 57, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.event-button.dark {
  background: #1c1c1c;
  border-color: #1c1c1c;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.cta:hover,
.event-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(173, 131, 57, 0.24);
}

.shop-cards {
  gap: 16px;
}

.shop-feature {
  gap: 12px;
}

.shop-preview {
  border-radius: 16px;
  padding: 16px;
  background: rgba(173, 131, 57, 0.18);
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.shop-preview-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
}

.shop-preview-title {
  font-size: 16px;
  font-weight: 700;
}

.shop-benefits {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.shop-benefits li {
  list-style: disc;
}

.shop-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.collections-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.collections-content {
  flex: 1;
  display: grid;
  gap: 8px;
}

.collections-preview {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  border: 1px solid var(--charcoal-border);
  background: #141414;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.collections-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 480px) {
  .collections-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .collections-preview {
    width: 100%;
    height: 140px;
  }
}

.shop-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--muted);
  background: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.notify-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 12px;
  background: #fff;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.notify-card.is-first-visit {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(173, 131, 57, 0.4);
}

.notify-card--spaced {
  margin-top: 12px;
}

.notify-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notify-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--cream);
}

.notify-button {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--green);
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}

.notify-button.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  font-weight: 700;
}

.notify-status-panel {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
  font-size: 12px;
  background: #fcfbf7;
}

.notify-status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notify-status-item span {
  color: var(--muted);
}

.install-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 10px;
  background: #fcfbf7;
}

.install-tabs {
  display: inline-flex;
  gap: 6px;
  background: #efeae0;
  padding: 4px;
  border-radius: 999px;
  width: max-content;
}

.install-tab {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  color: var(--green-dark);
}

.install-tab.is-active {
  background: #fff;
  border-color: var(--green-dark);
}

.install-panel {
  display: none;
}

.install-panel.is-active {
  display: block;
}

.install-steps {
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  font-size: 12px;
  display: grid;
  gap: 6px;
}

.animate-in {
  animation: rise 0.5s ease both;
}

.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.12s; }
.delay-3 { animation-delay: 0.2s; }

@keyframes rise {
  from { opacity: 0.85; transform: translateY(18px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.02); opacity: 0.9; }
}

@keyframes sheen {
  0% { transform: translateX(-120%); }
  40% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45); }
  50% { box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55); }
}

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

@keyframes app-spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(122, 31, 31, 0.6); opacity: 0.9; }
  70% { box-shadow: 0 0 0 8px rgba(122, 31, 31, 0); opacity: 1; }
  100% { box-shadow: 0 0 0 0 rgba(122, 31, 31, 0); opacity: 0.9; }
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(38, 194, 129, 0.6); opacity: 0.9; }
  70% { box-shadow: 0 0 0 8px rgba(38, 194, 129, 0); opacity: 1; }
  100% { box-shadow: 0 0 0 0 rgba(38, 194, 129, 0); opacity: 0.9; }
}

@media (max-width: 420px) {
  .top-bar {
    gap: 8px;
  }

  .promo-banner {
    border-radius: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 550px) {
  .top-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 369px) {
  .top-bar-main {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .top-bar-spacer {
    display: none;
  }

  .top-actions {
    justify-self: center;
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.modal {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  width: 100%;
  max-width: 360px;
  border: 1px solid var(--line);
  box-shadow: 10px 10px 0 rgba(30, 57, 50, 0.12);
}

.modal h3 {
  margin: 0 0 6px;
}

.modal p {
  margin: 0 0 14px;
  color: var(--muted);
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.modal-actions button {
  flex: 1;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--green-dark);
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}

.modal-actions .primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.modal-status {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.footer {
  margin-top: 8px;
  background: #151515;
  border-radius: 14px;
  padding: 6px 16px;
  border: 1px solid #1f1f1f;
}

.footer h2 {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: #f0dcc2;
}

.footer-logo-strip {
  max-width: 520px;
  margin: 4px auto 8px;
  padding: 0 12px;
}

.footer-logo-wide {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.footer-links {
  margin: 0;
  padding: 8px 0;
}

.social-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 0;
  padding-bottom: 6px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--green);
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  font-weight: 600;
  font-size: 12px;
}

.social-link--icon {
  border: none;
  padding: 0;
}

.social-svg {
  width: 32px;
  height: 32px;
  display: block;
  color: var(--green);
}
