/* Visible College — Digital Business Cards
   Brand: midnight blue lead, white text, sky/sunlight accents, Inter type. */

:root {
  --midnight: #0A0839;
  --bright: #0018E9;
  --sky: #00E0FB;
  --sunlight: #FFD600;
  --warm-gray: #FAF3F4;
  --ink: #14132e;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(10, 8, 57, 0.28);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--warm-gray);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--bright); }

.wrap { max-width: 880px; margin: 0 auto; padding: 28px 20px 64px; }
.center { max-width: 460px; }

/* ---------- Login ---------- */
.login-screen {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 120% at 50% 0%, #161147 0%, var(--midnight) 60%);
  padding: 24px;
}
.login-card {
  width: 100%; max-width: 400px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 36px 30px;
  text-align: center;
  box-shadow: var(--shadow);
}
.login-card img.logo { width: 200px; max-width: 80%; margin-bottom: 26px; }
.login-card h1 { color: #fff; font-size: 1.15rem; font-weight: 600; margin: 0 0 4px; }
.login-card p.sub { color: rgba(255,255,255,0.6); font-size: .9rem; margin: 0 0 24px; }

input, textarea, select {
  width: 100%; padding: 13px 14px; font-family: var(--font); font-size: 1rem;
  border: 1px solid #d7d3da; border-radius: 12px; background: #fff; color: var(--ink);
}
.login-card input {
  background: rgba(255,255,255,0.95); border: none; text-align: center; margin-bottom: 14px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--sky); border-color: transparent; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font-family: var(--font); font-weight: 600;
  font-size: 1rem; padding: 13px 22px; border-radius: 12px; text-decoration: none;
  transition: transform .05s ease, opacity .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--bright); color: #fff; width: 100%; }
.btn-sky { background: var(--sky); color: var(--midnight); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-dark { background: var(--midnight); color: #fff; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn-block { width: 100%; }

.error { color: #ff5a6b; font-size: .88rem; min-height: 1.1em; margin-top: 4px; }

/* ---------- Builder ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--midnight); padding: 14px 20px;
}
.topbar img { height: 30px; }
.topbar a { color: rgba(255,255,255,.75); font-size: .85rem; text-decoration: none; }

h2.section { font-size: 1.3rem; margin: 0 0 4px; color: var(--midnight); }
p.lead { color: #6b6878; margin: 0 0 26px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 6px; color: var(--midnight); }
.field .hint { font-weight: 400; color: #9a96a6; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.custom-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; margin-bottom: 8px; }
.custom-row button { background: #efedf2; border: none; border-radius: 10px; padding: 0 14px; cursor: pointer; font-size: 1.2rem; color: #6b6878; }
.add-link { background: none; border: 1px dashed #cfcbd6; color: var(--bright); padding: 10px; width: 100%; border-radius: 10px; cursor: pointer; font-weight: 600; }

.accent-pick { display: flex; gap: 12px; }
.accent-pick label { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid #d7d3da; border-radius: 12px; cursor: pointer; flex: 1; font-weight: 500; }
.accent-pick input { width: auto; }
.swatch { width: 18px; height: 18px; border-radius: 50%; display: inline-block; }

.headshot-row { display: flex; align-items: center; gap: 16px; }
.headshot-prev { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; background: #e7e4ec; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.1); }

.consent { display: flex; gap: 10px; align-items: flex-start; background: #f3f1f6; padding: 14px; border-radius: 12px; margin: 22px 0; font-size: .88rem; color: #555167; }
.consent input { width: auto; margin-top: 2px; }

/* ---------- Pass / card preview ---------- */
.preview-layout { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: start; }
@media (max-width: 720px) { .preview-layout { grid-template-columns: 1fr; } .grid2 { grid-template-columns: 1fr; } }

.passcard {
  background: linear-gradient(160deg, #161147 0%, var(--midnight) 70%);
  color: #fff; border-radius: 22px; padding: 26px 24px 28px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.passcard .vc-logo { height: 26px; margin-bottom: 22px; }
.passcard .accent-bar { height: 4px; width: 54px; border-radius: 4px; margin: 0 0 18px; }
.passcard .headshot { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.18); margin-bottom: 14px; }
.passcard .pname { font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.passcard .ppron { font-size: .8rem; opacity: .7; margin: 2px 0 0; }
.passcard .ptitle { font-size: 1rem; font-weight: 500; margin: 10px 0 0; }
.passcard .porg { font-size: .9rem; opacity: .8; margin: 2px 0 0; }
.passcard .rows { margin-top: 20px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 16px; }
.passcard .row { margin-bottom: 10px; }
.passcard .row .lab { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; opacity: .6; }
.passcard .row .val { font-size: .95rem; word-break: break-word; }
.passcard .qr-panel { background: #fff; border-radius: 16px; padding: 14px; margin-top: 22px; text-align: center; }
.passcard .qr-panel img { width: 100%; max-width: 190px; display: block; margin: 0 auto; }
.passcard .qr-panel .cap { color: var(--midnight); font-size: .78rem; font-weight: 600; margin-top: 8px; }

.wallet-buttons { display: flex; flex-direction: column; gap: 12px; max-width: 320px; }
.wallet-btn { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 12px; font-weight: 600; text-decoration: none; border: none; cursor: pointer; font-size: 1rem; }
.wallet-btn.apple { background: #000; color: #fff; }
.wallet-btn.google { background: #fff; color: #3c4043; border: 1px solid #dadce0; }
.wallet-btn[disabled], .wallet-btn.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.soon { font-size: .72rem; background: var(--sunlight); color: var(--midnight); border-radius: 6px; padding: 2px 6px; margin-left: auto; font-weight: 700; }
.muted { color: #6b6878; font-size: .85rem; }
.linkrow { margin-top: 18px; display: flex; gap: 16px; flex-wrap: wrap; }
