/* ═══════════════════════════════════════════════
   BEM On The Rock — home.css
═══════════════════════════════════════════════ */

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

.home-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Header override for home ── */
.home-header { flex-shrink: 0; }

/* ── Main ── */
.home-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 3rem;
}

/* ── Welcome Card ── */
.home-welcome-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  max-width: 820px;
  width: 100%;
  box-shadow: 0 12px 48px rgba(0,0,0,0.4);
  text-align: center;
}

.home-welcome-bm {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 3rem);
  color: var(--header-title);
  letter-spacing: 0.1em;
  text-shadow: 0 0 30px rgba(255,140,0,0.35);
  margin-bottom: 0.15rem;
}

.home-welcome-en {
  font-family: var(--font-body);
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 2rem;
}

/* ── Button Grid ── */
.home-btn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

/* ── Nav Button (base) ── */
.home-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,140,0,0.07);
  border: 1.5px solid rgba(255,140,0,0.25);
  border-radius: 12px;
  padding: 1rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.25s ease;
  cursor: pointer;
  min-height: 110px;
  justify-content: center;
}

.home-nav-btn:hover {
  background: rgba(255,140,0,0.15);
  border-color: var(--marigold);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255,140,0,0.2);
}

.home-btn-icon { font-size: 1.8rem; margin-bottom: 0.15rem; }

.home-btn-bm {
  font-family: var(--font-display);
  font-size: 0.82rem; font-weight: 700;
  color: var(--header-title);
  letter-spacing: 0.03em;
  line-height: 1.4; text-align: center;
}

.home-btn-en {
  font-size: 0.78rem; color: var(--text-muted);
  font-style: italic; text-align: center; line-height: 1.4;
}

/* Full-width — same height as regular, spans both columns */
.home-nav-btn--full {
  grid-column: 1 / -1;
  flex-direction: row;
  gap: 0.9rem;
  min-height: 110px;
  justify-content: center;
}

.home-nav-btn--full .home-btn-icon { font-size: 1.8rem; margin-bottom: 0; flex-shrink: 0; }
.home-nav-btn--full .home-btn-bm,
.home-nav-btn--full .home-btn-en { text-align: left; }

/* Spacer cell — keeps grid balanced */
.home-btn-spacer { min-height: 110px; visibility: hidden; pointer-events: none; }

/* Disabled */
.home-nav-btn--disabled { opacity: 0.42; cursor: not-allowed; pointer-events: none; }

.home-btn-soon {
  font-size: 0.7rem; color: var(--marigold-dim);
  font-style: italic; margin-top: 0.15rem; text-align: center;
}

/* On Behalf button — product badge */
.home-nav-btn--behalf { position: relative; border-color: rgba(255,140,0,0.4); background: rgba(255,140,0,0.09); }

.behalf-badge {
  font-size: 0.67rem; color: var(--text-muted); font-style: italic;
  line-height: 1.4; text-align: center;
  background: rgba(255,140,0,0.1); border: 1px solid rgba(255,140,0,0.2);
  border-radius: 6px; padding: 0.3rem 0.5rem;
  max-width: 100%; margin-bottom: 0.25rem;
}

/* Admin button — full-width, compact */
.home-nav-btn--admin {
  grid-column: 1 / -1;
  background: rgba(255,140,0,0.04); border-color: rgba(255,140,0,0.15);
  flex-direction: row; gap: 0.8rem; padding: 0.75rem 1.5rem;
  min-height: unset; justify-content: center;
}
.home-nav-btn--admin .home-btn-bm,
.home-nav-btn--admin .home-btn-en { text-align: left; }
.home-nav-btn--admin .home-btn-icon { font-size: 1.2rem; margin-bottom: 0; }

/* ── Theme Toggle ── */
.theme-toggle-wrap {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255,140,0,0.2);
}

.theme-icon { font-size: 0.9rem; }

.theme-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.theme-switch input { display: none; }

.theme-slider {
  position: absolute;
  inset: 0;
  background: var(--silver-border);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.25s;
}

.theme-slider::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
}

.theme-switch input:checked + .theme-slider { background: var(--marigold); }
.theme-switch input:checked + .theme-slider::before { transform: translateX(16px); }

/* ── Responsive ── */
@media (max-width: 560px) {
  .home-btn-grid { grid-template-columns: 1fr; }
  .home-nav-btn--full  { grid-column: 1; flex-direction: column; }
  .home-nav-btn--admin { grid-column: 1; }
  .home-btn-spacer     { display: none; }
  .home-welcome-card   { padding: 1.8rem 1.2rem; }
}

/* ── Floating Payment Button ── */
.payment-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(135deg, var(--marigold), var(--marigold-dim));
  color: #000;
  text-decoration: none;
  border-radius: 16px;
  padding: 0.75rem 1.1rem;
  box-shadow:
    0 0 0 3px rgba(0,0,0,0.5),
    0 6px 20px rgba(255,140,0,0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 72px;
}

.payment-fab:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 3px rgba(0,0,0,0.5),
    0 10px 28px rgba(255,140,0,0.55);
}

.payment-fab-icon { font-size: 1.6rem; line-height: 1; }

.payment-fab-label {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .payment-fab { bottom: 1.2rem; right: 1.2rem; padding: 0.65rem 0.9rem; }
  .payment-fab-icon { font-size: 1.4rem; }
  .payment-fab-label { font-size: 0.58rem; }
}