/* =====================================================================
   JT ROBY CAMPAIGN — Digital Business Card Stylesheet
   Master/Slave pattern: owner-only sections (data-owner-only) hidden
   when URL contains ?share=1 (see card.js).
   Design: Energetic, youthful — matches campaign aesthetic.
   ===================================================================== */

:root {
  --navy: #0a2342;
  --navy-light: #1a3a5c;
  --navy-deep: #061a33;
  --blue: #1c5d99;
  --blue-bright: #00aeef;
  --blue-dem: #00aef3;
  --blue-glow: #17c0f5;
  --red: #c8102e;
  --cream: #faf8f3;
  --white: #ffffff;
  --ink: #1a1a2e;
  --muted: #6b7280;
  --muted-light: #9ca3af;
  --line: rgba(10,35,66,.12);
  --line-light: rgba(10,35,66,.06);
  --accent-gold: #fbbf24;
  --accent-green: #10b981;
  --accent-purple: #8b5cf6;
  --accent-orange: #f97316;
  --shadow-card: 0 26px 80px rgba(10,35,66,.22), 0 0 0 1px rgba(255,255,255,.9);
  --shadow-glow: 0 0 40px rgba(0,174,243,.25);
  --radius: 28px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

body {
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #ffffff 0%, var(--cream) 48%, #e2eaf3 100%);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 22px;
  line-height: 1.5;
}

/* ── Card Shell ── */
.card-page { width: 100%; display: flex; justify-content: center; }
.card-shell {
  width: min(430px, 100%);
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* ── Hero / Banner ── */
.hero { position: relative; }
.hero-banner-wrap {
  position: relative;
  height: 210px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--blue) 100%);
  overflow: hidden;
}
.hero-banner-wrap::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,174,243,.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139,92,246,.15) 0%, transparent 45%);
  pointer-events: none;
}
/* animated grid pattern */
.hero-banner-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  animation: gridPan 20s linear infinite;
}
@keyframes gridPan {
  0% { transform: translate(0, 0); }
  100% { transform: translate(28px, 28px); }
}
.hero-topbar {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 0 0;
  z-index: 2;
}
.hero-party-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.hero-party-mark .donkey {
  width: 22px; height: 22px;
}
.hero-photo-wrap {
  position: absolute;
  bottom: -54px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.avatar {
  width: 108px; height: 108px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-dem));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-weight: 800;
  font-family: "Inter", sans-serif;
  letter-spacing: 1px;
  border: 5px solid var(--white);
  box-shadow: 0 8px 28px rgba(10,35,66,.25);
}

.avatar-photo {
  object-fit: cover;
  width: 108px; height: 108px;
}

/* ── Hero Info ── */
.hero-info {
  padding: 64px 22px 20px;
  text-align: center;
}
.hero-info h1 {
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
  letter-spacing: -.5px;
}
.subtitle {
  font-size: 14px;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 12px;
}
.specialty-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}
.specialty-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 5px 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0,174,243,.12), rgba(28,93,153,.1));
  color: var(--blue);
  border: 1px solid rgba(0,174,243,.2);
}
.specialty-tag.gold {
  background: linear-gradient(135deg, rgba(251,191,36,.15), rgba(249,115,22,.1));
  color: #b45309;
  border-color: rgba(251,191,36,.3);
}
.specialty-tag.purple {
  background: linear-gradient(135deg, rgba(139,92,246,.12), rgba(124,58,237,.08));
  color: #6d28d9;
  border-color: rgba(139,92,246,.25);
}
.org-line {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* ── Content ── */
.content {
  padding: 6px 22px 0;
}

/* Primary Save button */
.primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 20px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(10,35,66,.2);
  margin-bottom: 16px;
}
.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(10,35,66,.3), 0 0 30px rgba(0,174,243,.2);
}
.primary:active { transform: translateY(0); }
.btn-save-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--blue-bright);
  font-size: 16px;
  font-weight: 900;
}

/* RE grid (resource buttons) */
.re-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.re-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 6px;
  border-radius: 14px;
  background: var(--cream);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--navy);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.re-btn:hover {
  background: var(--white);
  border-color: var(--blue-dem);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,174,243,.15);
}
.re-icon { font-size: 22px; margin-bottom: 4px; }
.re-sub {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}

/* About button */
.btn-about {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--navy);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 18px;
}
.btn-about:hover {
  border-color: var(--blue-dem);
  background: rgba(0,174,243,.05);
}

/* Section labels */
.section-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 18px 0 8px;
}

/* Button grid */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 6px;
}
.btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--cream);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--navy);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn:hover {
  background: var(--white);
  border-color: var(--blue-dem);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,174,243,.12);
}
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0,174,243,.15), rgba(28,93,153,.1));
  font-size: 15px;
  font-weight: 800;
  color: var(--blue);
  flex-shrink: 0;
}

/* Focus areas / neighborhoods */
.neighborhoods {
  margin: 20px 0 8px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(10,35,66,.03), rgba(0,174,243,.04));
  border: 1px solid var(--line-light);
}
.neighborhoods h3 {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy);
  margin-bottom: 10px;
}
.neighborhood-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.neighborhood-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 16px;
  background: var(--white);
  color: var(--blue);
  border: 1px solid rgba(0,174,243,.2);
}

/* ── Owner-Only Section ── */
.owner-section { }
.owner-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 20px 0 16px;
}
.owner-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 10px;
}
.owner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.owner-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 8px;
  border-radius: 14px;
  background: var(--navy);
  border: none;
  color: var(--white);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.owner-btn:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(10,35,66,.25);
}
.homescreen-btn {
  width: 100%;
  margin-top: 8px;
}
.ob-icon { font-size: 16px; }

/* Send menu */
.send-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  margin-top: 0;
}
.send-menu.open { max-height: 240px; margin-top: 8px; }
.send-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 6px;
}
.send-option:hover {
  border-color: var(--blue-dem);
  background: rgba(0,174,243,.05);
}
.send-icon { font-size: 18px; }
.send-label { flex: 1; text-align: left; }
.send-arrow { color: var(--muted); font-size: 16px; }

/* Home screen tips */
.homescreen-tips {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.homescreen-tips.open { max-height: 500px; margin-top: 10px; }
.hs-platform-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 10px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.hs-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border: none;
  background: var(--cream);
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.hs-tab.active {
  background: var(--navy);
  color: var(--white);
}
.hs-tab-icon { font-size: 16px; }
.hs-platform-panel { padding: 4px 0; }
.hs-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.hs-num {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}
.hs-step p {
  font-size: 12px;
  color: var(--ink);
  line-height: 1.5;
  margin: 0;
}
.hs-step strong { color: var(--navy); }

/* ── Footer ── */
.card-footer {
  padding: 18px 22px 24px;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(10,35,66,.03));
}
.footer-donkey { font-size: 24px; margin-bottom: 6px; }
.footer-mark {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.card-footer p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── QR Modal ── */
.qr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,35,66,.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  padding: 20px;
}
.qr-overlay.active { opacity: 1; pointer-events: auto; }
.qr-card {
  background: var(--white);
  border-radius: 24px;
  padding: 32px 28px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
  transform: scale(.9);
  transition: transform .3s ease;
}
.qr-overlay.active .qr-card { transform: scale(1); }
.qr-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}
.qr-card h2 {
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}
.qr-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.qr-image-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.qr-image-wrap img {
  width: 240px; height: 240px;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.qr-hint {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}
.qr-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
}
.qr-download:hover { background: var(--navy-light); }

/* ── About Overlay ── */
.about-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,35,66,.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  padding: 20px;
  overflow-y: auto;
}
.about-overlay.active { opacity: 1; pointer-events: auto; }
.about-card {
  background: var(--white);
  border-radius: 24px;
  padding: 0;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
  transform: scale(.9);
  transition: transform .3s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.about-overlay.active .about-card { transform: scale(1); }
.about-close {
  position: absolute;
  top: 14px; right: 18px;
  background: rgba(255,255,255,.9);
  border: none;
  font-size: 28px;
  color: var(--navy);
  cursor: pointer;
  line-height: 1;
  z-index: 2;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-header {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  padding: 32px 28px 24px;
  text-align: center;
  border-radius: 24px 24px 0 0;
  position: relative;
}
.about-header::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,174,243,.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139,92,246,.12) 0%, transparent 45%);
  pointer-events: none;
  border-radius: 24px 24px 0 0;
}
.about-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-dem));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  border: 4px solid var(--white);
  margin: 0 auto 12px;
  position: relative;
  z-index: 1;
}

.about-avatar-photo {
  object-fit: cover;
  width: 72px; height: 72px;
}
.about-header h2 {
  font-family: "Inter", sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}
.about-role {
  font-size: 13px;
  color: rgba(255,255,255,.85);
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.about-body {
  padding: 28px;
}
.about-body p {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.65;
  margin-bottom: 14px;
}
.about-body .dropcap::first-letter {
  font-size: 36px;
  font-weight: 800;
  float: left;
  line-height: 1;
  margin: 4px 8px 0 0;
  color: var(--blue);
  font-family: "Inter", sans-serif;
}
.about-body em { color: var(--navy); font-weight: 600; font-style: italic; }
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 14px;
}
.about-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 16px;
  background: rgba(0,174,243,.1);
  color: var(--blue);
}
.signature {
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  font-style: italic;
  margin-top: 8px;
}

@media (max-width: 480px) {
  body { padding: 0; }
  .card-shell { border-radius: 0; min-height: 100vh; box-shadow: none; }
}
