/* ============================================================
   CAMBRON CAN CLEAN UP — Digital Business Card Stylesheet
   Master/slave card system · forest green / ivory / amber
   ============================================================ */

:root {
  --forest: #123524;
  --forest-deep: #0a2317;
  --forest-mid: #1e4d33;
  --forest-soft: #2e6b47;
  --forest-mist: #e8f0ea;
  --ivory: #f7f4ec;
  --ivory-warm: #efe9dc;
  --ivory-deep: #e6dfd0;
  --amber: #d9a441;
  --amber-bright: #e8b85c;
  --amber-soft: #f3e2b8;
  --ink: #1c2620;
  --ink-soft: #41503f;
  --muted: #6d7a6d;
}

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

body {
  font-family: 'Archivo', 'Segoe UI', Arial, sans-serif;
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(217,164,65,.12), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(18,53,36,.14), transparent 60%),
    var(--forest-deep);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ── Card page shell ── */
.card-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 26px 14px 40px;
}

.card-shell {
  width: 100%;
  max-width: 480px;
  background: var(--ivory);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.4);
  border: 1px solid rgba(217,164,65,.3);
  align-self: flex-start;
}

/* ── Hero ── */
.hero { background: var(--forest); color: var(--ivory); position: relative; }

.hero-banner-wrap { position: relative; }

.hero-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px 0;
}
.hero-party-mark {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber-bright);
}
.hero-party-mark span {
  background: rgba(217,164,65,.15);
  border: 1px solid rgba(217,164,65,.45);
  padding: 5px 12px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
}

.hero-photo-wrap {
  display: flex; justify-content: center;
  padding: 18px 0 4px;
}
.avatar {
  width: 132px; height: 132px;
  border-radius: 50%;
  border: 4px solid var(--amber);
  object-fit: cover;
  background: var(--forest-mid);
}
.avatar-photo { object-fit: cover; }
.about-avatar-photo img, .avatar.photo-img { width: 100%; height: 100%; object-fit: cover; }
.avatar, .about-avatar { overflow: hidden; }

.hero-info { text-align: center; padding: 10px 22px 26px; }
.hero-info h1 {
  font-family: 'Frank Ruhl Libre', 'Georgia', serif;
  font-size: 30px; font-weight: 800;
  color: var(--ivory);
  margin-bottom: 4px;
}
.subtitle {
  color: var(--amber-bright);
  font-weight: 700; font-size: 13px;
  letter-spacing: .1em; text-transform: uppercase;
}
.specialty-tags {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 7px; margin-top: 14px;
}
.specialty-tag {
  background: rgba(247,244,236,.1);
  border: 1px solid rgba(247,244,236,.22);
  color: rgba(247,244,236,.92);
  font-size: 11.5px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
}
.specialty-tag.gold { background: rgba(217,164,65,.2); border-color: rgba(217,164,65,.5); color: var(--amber-bright); }
.specialty-tag.green { background: rgba(46,107,71,.35); border-color: rgba(46,107,71,.7); color: #cfe7d6; }

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

.primary {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  background: linear-gradient(135deg, var(--amber), var(--amber-bright));
  color: var(--forest-deep);
  font-family: 'Archivo', sans-serif;
  font-weight: 800; font-size: 15.5px;
  border: none; border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(217,164,65,.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(217,164,65,.5); }
.btn-save-icon { font-size: 20px; font-weight: 800; }

/* Quick-links grid */
.re-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-top: 14px;
}
.re-btn {
  background: var(--white);
  border: 1px solid var(--ivory-deep);
  border-radius: 14px;
  padding: 14px 8px 12px;
  text-align: center;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.re-btn:hover { transform: translateY(-3px); border-color: var(--amber); box-shadow: 0 8px 18px rgba(18,53,36,.12); }
.re-btn .re-icon { display: block; font-size: 22px; margin-bottom: 4px; }
.re-btn .re-btn-main { display: block; font-weight: 800; font-size: 12.5px; color: var(--forest); }
.re-btn .re-sub { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }

/* About button */
.btn-about {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  margin-top: 14px;
  background: var(--forest-mist);
  border: 1px solid rgba(18,53,36,.14);
  color: var(--forest);
  font-weight: 800; font-size: 14.5px;
  padding: 14px;
  border-radius: 14px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.btn-about:hover { background: var(--amber-soft); border-color: var(--amber); }

/* Section labels */
.section-label {
  font-size: 11.5px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber);
  margin: 22px 0 10px;
}
.section-label::after {
  content: ''; display: block;
  height: 2px; width: 30px;
  background: var(--amber);
  margin-top: 5px;
}

/* Button grid */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--white);
  border: 1px solid var(--ivory-deep);
  color: var(--forest);
  font-weight: 700; font-size: 13.5px;
  padding: 14px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); border-color: var(--amber); }

/* Neighborhoods / what-I-fight-for chips */
.neighborhoods { padding: 0 22px 26px; }
.neighborhoods h3 {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 15.5px; color: var(--forest);
  margin-bottom: 10px;
}
.neighborhood-list { display: flex; flex-wrap: wrap; gap: 7px; }
.neighborhood-chip {
  background: var(--forest-mist);
  border: 1px solid rgba(18,53,36,.1);
  color: var(--forest);
  font-size: 11.5px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px;
}

/* ── Owner-only section ── */
.owner-section { padding: 0 22px 26px; }
.owner-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  margin-bottom: 16px;
}
.owner-label {
  font-size: 11.5px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}
.owner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.owner-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--forest);
  color: var(--ivory);
  border: none; border-radius: 14px;
  font-weight: 700; font-size: 13px;
  padding: 14px 10px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.owner-btn:hover { background: var(--forest-mid); transform: translateY(-2px); }
.homescreen-btn { width: 100%; margin-top: 10px; }

.send-menu {
  display: none;
  margin-top: 10px;
  border: 1px solid var(--ivory-deep);
  border-radius: 14px;
  overflow: hidden;
}
.send-menu.open { display: block; }
.send-option {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  background: var(--white);
  border: none;
  padding: 13px 16px;
  font-family: inherit; font-size: 13.5px; font-weight: 700;
  color: var(--forest);
  cursor: pointer;
  text-align: left;
  
  border-bottom: 1px solid var(--ivory-deep);
  transition: background .15s ease;
}
.send-option:hover { background: var(--amber-soft); }
.send-option:last-child { border-bottom: none; }
.send-icon { font-size: 17px; }
.send-arrow { margin-left: auto; color: var(--amber); font-weight: 800; }

.homescreen-tips { display: none; margin-top: 10px; }
.homescreen-tips.open { display: block; }
.hs-platform-tabs {
  display: flex; gap: 8px; margin-bottom: 10px;
}
.hs-tab {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--ivory-deep);
  border-radius: 10px;
  padding: 10px;
  font-family: inherit; font-size: 12.5px; font-weight: 800;
  color: var(--muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.hs-tab.active {
  border-color: var(--amber);
  color: var(--forest);
  background: var(--amber-soft);
}
.hs-platform-panel { border: 1px solid var(--ivory-deep); border-radius: 12px; padding: 12px; background: var(--white); }
.hs-step { display: flex; gap: 10px; margin-bottom: 10px; }
.hs-step:last-child { margin-bottom: 0; }
.hs-step p { font-size: 12px; color: var(--ink-soft); line-height: 1.5; }
.hs-num {
  flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--forest); color: var(--amber-bright);
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ── Footer ── */
.card-footer {
  background: var(--forest-deep);
  text-align: center;
  padding: 24px 22px 28px;
  color: rgba(247,244,236,.75);
  font-size: 12px;
  line-height: 1.7;
}
.footer-donkey { font-size: 22px; margin-bottom: 6px; }
.footer-mark {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700; font-size: 14px;
  color: var(--amber-bright);
}
.card-footer em { opacity: .7; }

/* ── QR modal ── */
.qr-overlay {
  position: fixed; inset: 0;
  background: rgba(10,35,23,.82);
  display: none;
  align-items: center; justify-content: center;
  z-index: 10000;
  padding: 20px;
}
.qr-overlay.active { display: flex; }
.qr-card {
  background: var(--ivory);
  border-radius: 22px;
  padding: 30px;
  max-width: 340px; width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.qr-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none;
  font-size: 26px; color: var(--muted);
  cursor: pointer;
}
.qr-card h2 {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 22px; color: var(--forest);
  margin-bottom: 4px;
}
.qr-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.qr-image-wrap {
  display: flex; justify-content: center;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--ivory-deep);
  border-radius: 16px;
}
.qr-image-wrap img { width: 240px; height: 240px; }
.qr-hint { font-size: 12.5px; color: var(--ink-soft); margin: 14px 0; }
.qr-download {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--forest);
  color: var(--ivory);
  border-radius: 12px;
  padding: 13px;
  font-weight: 800; font-size: 13.5px;
  transition: background .2s ease;
}
.qr-download:hover { background: var(--forest-mid); }

/* ── About overlay ── */
.about-overlay {
  
  position: fixed; inset: 0;
  background: rgba(10,35,23,.82);
  display: none;
  align-items: center; justify-content: center;
  z-index: 10001;
  padding: 20px;
}
.about-overlay.active { display: flex; }
.about-card {
  background: var(--ivory);
  border-radius: 22px;
  max-width: 460px; width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.about-close {
  position: absolute; top: 12px; right: 14px;
  
  background: rgba(247,244,236,.9);
  border: none;
  font-size: 24px; color: var(--forest);
  width: 34px; height: 34px; border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}
.about-header {
  background: var(--forest);
  color: var(--ivory);
  padding: 30px 24px 22px;
  text-align: center;
}
.about-avatar {
  width: 92px; height: 92px;
  border-radius: 50%;
  border: 3px solid var(--amber);
  object-fit: cover;
  margin-bottom: 12px;
}
.about-avatar-photo { object-fit: cover; }
.about-header h2 {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 24px; color: var(--ivory);
}
.about-role {
  color: var(--amber-bright);
  font-size: 12px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  margin-top: 4px;
}
.about-body { padding: 24px; }
.about-body p { 
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.about-body p { color: var(--ink-soft); font-size: 14.5px; }
.about-body .dropcap::first-letter {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 42px; float: left;
  line-height: .85; padding-right: 8px;
  color: var(--amber); font-weight: 800;
}
.about-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.about-tag {
  background: var(--amber-soft);
  color: var(--forest-deep);
  font-size: 11px; font-weight: 800;
  padding: 5px 11px; border-radius: 999px;
}
.signature {
  text-align: right;
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 17px; font-weight: 700;
  color: var(--forest);
  margin-top: 10px;
}

/* ── Toast ── */
#cardToast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  background: var(--forest);
  color: var(--ivory);
  padding: 12px 20px; border-radius: 10px;
  font-size: 13px; font-family: 'Archivo', sans-serif;
  z-index: 10001; box-shadow: 0 4px 16px rgba(0,0,0,.25);
  max-width: 90%; text-align: center;
}

@media (max-width: 400px) {
  .card-shell { border-radius: 18px; }
  .hero-info h1 { font-size: 26px; }
}
