/* ============================================================
   Dhani.Win — Component & Layout System
   ============================================================ */

/* ── Spacing & Layout Tokens ────────────────────────────── */
:root {
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  2.5rem;

  --radius-sm:  0.375rem;
  --radius:     0.625rem;
  --radius-lg:  0.875rem;
  --radius-xl:  1.25rem;
  --radius-full:9999px;

  --transition-fast:   all 0.15s ease;
  --transition:        all 0.25s ease;
  --transition-slow:   all 0.4s ease;

  --container: 620px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
          'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', Consolas, monospace;
}

/* ── Reset ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

/* ── Base ───────────────────────────────────────────────── */
body {
  min-height: 100vh;
  background: var(--bg-gradient);
  background-attachment: fixed;
  font-family: var(--font);
  color: var(--text-body);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle animated background mesh */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(124, 58, 237, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(245, 176, 20, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 60% 10%, rgba(109, 40, 217, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Container ──────────────────────────────────────────── */
.container {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  width: 100%;
  padding: var(--space-md) var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  opacity: 0;
  animation: fadeIn 0.5s ease-out 0.1s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ── Error Banner ───────────────────────────────────────── */
.error-message {
  background: var(--gradient-error);
  color: #fff;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  box-shadow: var(--shadow);
  animation: slideDown 0.25s ease-out;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-0.4rem); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Card ───────────────────────────────────────────────── */
.card {
  background: var(--gradient-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Header card — glass strip */
header.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.07);
  padding: 0.6rem var(--space-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
header.card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.09);
}

/* ── Logo (header) ──────────────────────────────────────── */
.logo {
  height: 2.8rem;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

/* ── Logo (hero section) ────────────────────────────────── */
.hero__logo {
  height: 4.5rem;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 1.5rem rgba(124, 58, 237, 0.4));
}

/* ── Header Brand Strip ─────────────────────────────────── */
.header-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(135deg, rgba(245,176,20,0.12), rgba(245,176,20,0.06));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 0 0.5rem rgba(245,176,20,0.1);
}

.header-badge svg {
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
}

/* ── Search ─────────────────────────────────────────────── */
.search {
  display: flex;
  height: 3.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--alpha-15), var(--shadow-glow-purple), 0 2px 12px rgba(0,0,0,0.3);
  background: rgba(255, 255, 255, 0.07);
}

.search__input {
  flex: 1;
  padding: 0 var(--space-md);
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  font-family: var(--font);
  letter-spacing: 0.01em;
}

.search__input::placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  padding: var(--space-sm) var(--space-md);
  color: var(--text-inverse);
}

/* Primary purple button */
.btn--primary {
  background: var(--gradient-primary);
  box-shadow: var(--shadow-sm), 0 0 0.5rem var(--shadow-purple);
}
.btn--primary:hover {
  filter: brightness(1.12);
  box-shadow: var(--shadow), var(--shadow-glow-purple);
  transform: translateY(-1px);
}
.btn--primary:active {
  transform: translateY(0) scale(0.98);
  filter: brightness(0.95);
}

/* Gold accent button */
.btn--gold {
  background: var(--gradient-accent);
  color: var(--purple-950);
  box-shadow: var(--shadow-sm), 0 0 0.5rem var(--shadow-gold);
}
.btn--gold:hover {
  filter: brightness(1.08);
  box-shadow: var(--shadow), var(--shadow-glow-gold);
  transform: translateY(-1px);
}
.btn--gold:active {
  transform: translateY(0) scale(0.98);
}

/* Ghost outlined button */
.btn--ghost {
  background: var(--alpha-10);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
}
.btn--ghost:hover {
  background: var(--alpha-20);
  border-color: var(--primary-light);
  color: var(--text-primary);
}

/* Search button (attaches to input right edge) */
.btn--search {
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0 var(--space-lg);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--gradient-accent);
  color: var(--purple-950);
  font-weight: 700;
  gap: var(--space-sm);
  flex-shrink: 0;
}
.btn--search:hover {
  filter: brightness(1.08);
  box-shadow: var(--shadow-glow-gold);
}
.btn--search:active {
  filter: brightness(0.95);
}
.btn--search:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn__icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
}

/* ── Install Button ─────────────────────────────────────── */
.pwa-install {
  display: flex;
  justify-content: center;
  margin-top: var(--space-md);
}

.btn--install {
  background: var(--gradient-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-gold);
  padding: 0.6rem var(--space-lg);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  gap: var(--space-sm);
  box-shadow: var(--shadow), var(--shadow-glow-purple);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: var(--transition);
  font-family: var(--font);
}
.btn--install:hover {
  filter: brightness(1.1);
  box-shadow: var(--shadow-md), var(--shadow-glow-gold);
  transform: translateY(-1px);
}

/* ── Hero Section (Title card) ──────────────────────────── */
.hero {
  text-align: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-gold);
  margin-bottom: var(--space-sm);
}

.hero__eyebrow svg {
  width: 0.9rem;
  height: 0.9rem;
}

.title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xs);
}

.title--gold {
  background: var(--gradient-gold-shine);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShine 4s linear infinite;
}

@keyframes goldShine {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: var(--space-xs);
  letter-spacing: 0.02em;
}

/* ── Stats Row ──────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: var(--space-md);
}

.stat {
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(124,58,237,0.06));
  border: 1px solid var(--border-medium);
  border-radius: var(--radius);
  padding: 0.7rem var(--space-xs);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 0 0 var(--radius-full) var(--radius-full);
}

.stat:hover {
  border-color: var(--border-gold);
  background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(124,58,237,0.08));
  box-shadow: 0 0 0.75rem var(--gold-alpha-10);
}

.stat__value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-gold);
  display: block;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.stat__label {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.2rem;
  display: block;
  font-weight: 600;
}

/* ── Domain List ────────────────────────────────────────── */
.list__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-light);
}

.list__title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
}

.list__title svg {
  color: var(--text-gold);
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.list__count {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  background: var(--alpha-10);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.15rem 0.6rem;
  font-weight: 500;
}

#domain-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Domain Item */
.item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.6rem var(--space-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--alpha-5), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-gold);
  box-shadow: 0 0 0.5rem var(--gold-alpha-10);
}

.item:hover::before {
  transform: translateX(100%);
}

.item__number {
  width: 1.75rem;
  height: 1.75rem;
  background: var(--alpha-15);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gold);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  font-family: var(--font-mono);
}

.item__text {
  flex: 1;
  color: #5fb2ff;
  font-size: 0.975rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

.item__action {
  flex-shrink: 0;
}

/* Visit button inside domain item */
.btn--visit {
  background: var(--alpha-15);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  gap: var(--space-xs);
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}

.btn--visit svg {
  width: 0.85rem;
  height: 0.85rem;
}

.btn--visit:hover {
  background: var(--gradient-accent);
  border-color: var(--accent);
  color: var(--purple-950);
  box-shadow: var(--shadow-glow-gold);
}

/* Skeleton loader */
.item--skeleton {
  pointer-events: none;
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--alpha-10) 25%,
    var(--alpha-20) 50%,
    var(--alpha-10) 75%
  );
  background-size: 200% 100%;
  border-radius: var(--radius-sm);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton--number {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}

.skeleton--text {
  flex: 1;
  height: 1rem;
}

.skeleton--btn {
  width: 4rem;
  height: 1.75rem;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}

/* ── Dynamic Content Sections container ─────────────────── */
#content-sections {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

#content-sections .card {
  padding: var(--space-lg);
}


.section-heading {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-light);
}

.section-heading svg {
  color: var(--text-gold);
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* ── Body Text ──────────────────────────────────────────── */
.text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: var(--space-sm);
}

.text:last-child { margin-bottom: 0; }

.text--highlight {
  color: var(--text-gold);
  font-weight: 600;
}

.text b {
  color: var(--text-primary);
  font-weight: 600;
}

.link {
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-fast);
  border-bottom: 1px solid transparent;
}

.link:hover {
  color: var(--text-gold);
  border-bottom-color: var(--gold-alpha-50);
}

/* ── Steps ──────────────────────────────────────────────── */
.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: var(--alpha-5);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: var(--transition-fast);
}

.step:hover {
  background: var(--alpha-10);
  border-color: var(--border-gold);
}

.step__number {
  width: 1.75rem;
  height: 1.75rem;
  background: var(--gradient-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-950);
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.step__content {
  flex: 1;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ── Floating Action Buttons ────────────────────────────── */
.floats {
  position: fixed;
  right: var(--space-md);
  bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  z-index: 50;
}

.float-btn {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  position: relative;
  animation: floatPulse 3s ease-in-out infinite;
}

.float-btn:nth-child(2) { animation-delay: 0.4s; }
.float-btn:nth-child(3) { animation-delay: 0.8s; }
.float-btn:nth-child(4) { animation-delay: 1.2s; }

@keyframes floatPulse {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-3px); }
}

.float-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: var(--shadow-xl);
  animation-play-state: paused;
}

.float-btn:active {
  transform: scale(0.95);
}

.float-btn svg {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
}

/* Tooltip */
.float-btn::before {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 0.5rem);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 5, 32, 0.95);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  font-family: var(--font);
}

.float-btn:hover::before {
  opacity: 1;
}

/* Individual float colors */
.float-btn--telegram {
  background: linear-gradient(135deg, var(--telegram), var(--telegram-dark));
  color: #fff;
}
.float-btn--telegram:hover {
  box-shadow: var(--shadow-xl), 0 0 1rem rgba(0, 136, 204, 0.5);
}

.float-btn--whatsapp {
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  color: #fff;
}
.float-btn--whatsapp:hover {
  box-shadow: var(--shadow-xl), 0 0 1rem rgba(37, 211, 102, 0.5);
}

.float-btn--service {
  background: var(--gradient-primary);
  color: #fff;
}
.float-btn--service:hover {
  box-shadow: var(--shadow-xl), var(--shadow-glow-purple);
}

.float-btn--download {
  background: var(--gradient-accent);
  color: var(--purple-950);
}
.float-btn--download:hover {
  box-shadow: var(--shadow-xl), var(--shadow-glow-gold);
}

/* ── Modal ──────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease-out;
  padding: var(--space-md);
}

.modal__content {
  background: var(--modal-bg);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  max-width: 26rem;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-xl), var(--shadow-glow-purple);
  animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(1rem) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modal close button */
.modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 2rem;
  height: 2rem;
  background: var(--alpha-10);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  outline: none;
}

.modal__close:hover {
  background: var(--alpha-20);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.modal__close svg {
  width: 1rem;
  height: 1rem;
  pointer-events: none;
}

/* Modal logo */
.modal__logo {
  width: 5rem;
  height: auto;
  display: block;
  margin: 0 auto var(--space-md);
}

/* Modal status icon */
.modal__icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.modal__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.modal__icon--success {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success);
}

.modal__icon--error {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error);
}

.modal__title {
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.modal__url {
  background: var(--alpha-10);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius);
  padding: 0.65rem var(--space-md);
  font-size: 0.95rem;
  font-family: var(--font-mono);
  text-align: center;
  color: var(--text-primary);
  margin: var(--space-sm) 0;
  word-break: break-word;
  min-height: 2.5rem;
  transition: var(--transition);
  line-height: 1.4;
}

.modal__url--clickable {
  cursor: pointer;
  color: var(--accent-light);
  position: relative;
}

.modal__url--clickable:hover {
  background: var(--gold-alpha-10);
  border-color: var(--border-gold);
  color: var(--text-gold);
  box-shadow: var(--shadow-glow-gold);
}

.modal__visit-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: var(--space-xs);
}

.modal__visit-hint svg {
  width: 0.75rem;
  height: 0.75rem;
}

.modal__desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.5;
  margin-top: var(--space-sm);
}

/* Modal state borders */
.modal__content.success { border-color: var(--success-border); }
.modal__content.error   { border-color: var(--error-border); }

/* ── Alert Marquee Bar ──────────────────────────────────── */
.marquee-bar {
  display: flex;
  align-items: stretch;
  background: #f5b014;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(245, 176, 20, 0.35);
  min-height: 2.4rem;
  position: relative;
  z-index: 1;
}

.marquee-bar__label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: #ffffff;
  color: #f5b014;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 0.85rem;
  flex-shrink: 0;
  white-space: nowrap;

}

.marquee-bar__label svg {
  width: 0.8rem;
  height: 0.8rem;
  flex-shrink: 0;
}

.marquee-bar__track {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.marquee-bar__content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: marqueeScroll 40s linear infinite;
  will-change: transform;
}

.marquee-bar:hover .marquee-bar__content {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #1e0a3c;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0 1.25rem;
}

.marquee-item svg {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
  color: #5b21b6;
}

.marquee-sep {
  color: #a86c06;
  font-size: 0.55rem;
  flex-shrink: 0;
  opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-bar__content {
    animation: none;
    overflow-x: auto;
  }
}

/* ── Divider ────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border-light);
  margin: var(--space-sm) 0;
}

/* ── Utility ────────────────────────────────────────────── */
.hidden   { display: none !important; }
.sr-only  {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ── Focus Styles ───────────────────────────────────────── */
*:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  margin-top: var(--space-xs);
  padding: var(--space-md) var(--space-sm) var(--space-lg);
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.site-footer__brand svg {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--text-gold);
}

.site-footer__domain {
  color: var(--text-gold);
  font-weight: 700;
}

.site-footer__copy {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.site-footer__domain-link {
  color: var(--text-gold);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--gold-alpha-30);
  transition: var(--transition-fast);
}

.site-footer__domain-link:hover {
  color: var(--accent-light);
  border-bottom-color: var(--gold-alpha-50);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 480px) {
  html { font-size: 15px; }

  .container {
    padding: var(--space-sm);
    gap: 0.5rem;
  }

  .card { padding: 0.875rem; }

  .logo { height: 2.4rem; }
  .hero__logo { height: 4rem; }

  .title { font-size: 1.35rem; }

  .stat__value { font-size: 1.2rem; }

  .search { height: 3.2rem; }

  .float-btn {
    width: 2.9rem;
    height: 2.9rem;
  }

  .float-btn::before { display: none; }

  .floats {
    right: var(--space-sm);
    bottom: var(--space-lg);
    gap: 0.4rem;
  }

  .modal__content {
    padding: var(--space-md);
  }

  .site-footer { padding-bottom: var(--space-xl); }
}

/* ── Reduced Motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}