/* AM_Tech Tap - shared styles (Phase 1) */
:root {
  --bg: #061a2e;
  --surface: #0a2540;
  --surface-2: #103252;
  --text: #f2f7fb;
  --muted: #8fa8c4;
  --accent: #00d4ff;
  --accent-2: #14f195;
  --radius: 20px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.container { width: 100%; max-width: 480px; margin: 0 auto; padding: 24px 20px 48px; }

/* ---------- Buttons ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 18px; border-radius: 14px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .08s ease, opacity .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: #1d4468; }

/* ---------- Card page ---------- */
.card-hero { text-align: center; padding-top: 32px; }
.avatar {
  width: 112px; height: 112px; border-radius: 50%;
  margin: 0 auto 16px; object-fit: cover;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; font-weight: 700; color: #fff;
  border: 3px solid rgba(255,255,255,.12);
}
.card-name { font-size: 26px; font-weight: 700; }
.card-title { color: var(--muted); font-size: 15px; margin-top: 4px; }
.card-company { color: var(--accent-2); font-size: 14px; font-weight: 600; margin-top: 2px; }
.card-bio { color: var(--muted); font-size: 14px; margin: 16px 4px 0; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.actions .btn-primary { grid-column: 1 / -1; }
.links { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.link-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid #153a5c;
  padding: 14px 16px; border-radius: 14px; text-decoration: none; font-size: 15px;
}
.link-row .icon { width: 22px; text-align: center; }
.link-row .label { flex: 1; }
.link-row .arrow { color: var(--muted); }
.card-footer { text-align: center; color: var(--muted); font-size: 12px; margin-top: 36px; }
.card-footer a { color: var(--muted); }

/* ---------- Landing ---------- */
.landing { max-width: 720px; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 32px; }
.brand { font-weight: 800; font-size: 18px; letter-spacing: .3px; }
.brand span { color: var(--accent-2); }
.hero { padding: 48px 0 24px; }
.hero h1 { font-size: 38px; line-height: 1.15; font-weight: 800; }
.hero h1 .grad { background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 17px; margin: 18px 0 28px; max-width: 520px; }
.hero-cta { display: inline-flex; }
.features { display: grid; gap: 14px; margin-top: 48px; }
.feature { background: var(--surface); border: 1px solid #153a5c; border-radius: var(--radius); padding: 20px; }
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(3, 1fr); } }

/* link icons (inline SVG) */
.link-row .icon { display: inline-flex; width: 22px; justify-content: center; color: var(--accent-2); }
.link-row .icon svg { width: 20px; height: 20px; }
.emoji-icon { font-size: 18px; }
.feat-icon { width: 22px; height: 22px; color: var(--accent-2); margin-bottom: 8px; }

/* المشاركة: QR + NFC */
.share { margin-top: 24px; background: var(--surface); border: 1px solid #153a5c; border-radius: var(--radius); padding: 20px; text-align: center; }
.share-title { font-size: 17px; margin-bottom: 14px; }
.qr-box { display: flex; justify-content: center; margin-bottom: 14px; }
.share-buttons { display: grid; gap: 10px; }
.share-hint { color: var(--muted); font-size: 12px; margin-top: 12px; }

[hidden] { display: none !important; }

/* forms */
input, textarea, select { max-width: 100%; }
main.container form { overflow-wrap: break-word; }

/* ---------- App (dashboard/auth) ---------- */
.field-label { display:block; font-size:13px; color:var(--muted); margin:14px 0 6px; }
.field-input { width:100%; padding:13px 14px; border-radius:12px; border:1px solid #1d4468; background:var(--surface-2); color:var(--text); font-size:15px; font-family:inherit; }
.field-input:focus { outline:none; border-color:var(--accent); }
.notice { border-radius:12px; padding:12px 14px; font-size:14px; margin:14px 0; display:none; }
.notice.show { display:block; }
.notice.err { background:rgba(255,90,90,.12); border:1px solid rgba(255,90,90,.35); color:#ffb3b3; }
.notice.ok { background:rgba(20,241,149,.1); border:1px solid rgba(20,241,149,.3); color:#9bf5cd; }
.dash-card { display:block; text-decoration:none; background:var(--surface); border:1px solid #153a5c; border-radius:16px; padding:16px; margin-bottom:12px; }
.dash-card h3 { font-size:16px; margin-bottom:2px; }
.dash-card p { color:var(--muted); font-size:13px; }
.dash-card .url { direction:ltr; text-align:left; color:var(--accent); font-size:12px; margin-top:8px; word-break:break-all; }
.dash-top { display:flex; align-items:center; justify-content:space-between; margin:8px 0 20px; }
.dash-top .who { color:var(--muted); font-size:13px; }
.link-btn { background:none; border:none; color:var(--accent-2); font-size:13px; cursor:pointer; font-family:inherit; }
.otp-row { display:flex; gap:10px; direction:ltr; justify-content:center; margin:18px 0; }
.otp-row input { width:48px; height:56px; text-align:center; font-size:24px; font-weight:700; border-radius:12px; border:1px solid #1d4468; background:var(--surface-2); color:var(--text); }
.otp-row input:focus { outline:none; border-color:var(--accent); }

/* ---------- Lead capture on public card ---------- */
.lead-form { margin-top:28px; background:var(--surface); border:1px solid #153a5c; border-radius:var(--radius); padding:20px; }
.lead-form .share-title { font-size:16px; margin-bottom:12px; }
.lead-form .field-input { margin-top:10px; }

/* ---------- Dashboard stats + leads ---------- */
.stats-row { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:18px; }
.stat { background:var(--surface); border:1px solid #153a5c; border-radius:14px; padding:12px; text-align:center; }
.stat strong { display:block; font-size:22px; color:var(--accent); }
.stat span { font-size:11px; color:var(--muted); }
.lead-row { display:flex; align-items:center; gap:12px; margin-top:8px; }
.lead-status { font-size:11px; background:var(--surface-2); border-radius:8px; padding:3px 10px; color:var(--accent-2); }
.lead-date { font-size:11px; color:var(--muted); flex:1; }
.lead-msg { font-size:13px; color:var(--muted); }

/* ---------- Pricing ---------- */
.plans-grid { display:grid; gap:14px; }
@media (min-width:640px) { .plans-grid { grid-template-columns:repeat(3,1fr); } }
.plan-card { background:var(--surface); border:1px solid #153a5c; border-radius:var(--radius); padding:20px; }
.plan-card.featured { border-color:var(--accent); }
.plan-card h3 { font-size:17px; }
.plan-price { color:var(--accent); font-size:22px; font-weight:800; margin:6px 0 12px; }
.plan-card ul { list-style:none; }
.plan-card li { font-size:13px; color:var(--muted); padding:4px 0; }
.plan-card li::before { content:"✓ "; color:var(--accent-2); }

/* ---------- Dashboard tabs ---------- */
.tabs { display:flex; gap:8px; margin:16px 0 4px; }
.tab { background:var(--surface); border:1px solid #153a5c; color:var(--muted); border-radius:10px; padding:8px 16px; font-size:13px; cursor:pointer; font-family:inherit; }
.tab.active { color:var(--text); border-color:var(--accent); background:var(--surface-2); }
.plan-line { display:flex; justify-content:space-between; align-items:center; background:var(--surface); border:1px solid #153a5c; border-radius:12px; padding:10px 14px; font-size:13px; margin-top:12px; }

/* ---------- Card rich content ---------- */
.rich-h { font-size:15px; margin:26px 0 10px; color:var(--text); }
.rich-row { background:var(--surface); border:1px solid #153a5c; border-radius:12px; padding:12px 14px; margin-bottom:8px; font-size:13px; }
.rich-row p { margin:4px 0 0; color:var(--muted); font-size:13px; line-height:1.7; }
.rich-link { color:var(--accent); text-decoration:none; }
.rich-by { display:block; margin-top:6px; color:var(--accent-2); font-size:12px; }
