:root{
  --brand:#1FB6D5; --brand-dark:#1593AC;
  --text:#0B1F2A; --muted:#5B6B76;
  --bg:#F3F8FC; --surface:#ffffff;
  --border:rgba(11,31,42,.10);
  --shadow-md:0 18px 50px rgba(11,31,42,.10);
  --shadow-sm:0 10px 26px rgba(11,31,42,.06);
  --nav-h:76px;
  --ring:0 0 0 4px rgba(31,182,213,.15);
}
html[data-theme="dark"]{
  --bg:#071821;
  --surface:#0B2230;
  --text:#EAF4FA;
  --muted:#B9D0DD;
  --border:rgba(234,244,250,.12);
  --shadow-md:0 22px 70px rgba(0,0,0,.40);
  --shadow-sm:0 14px 40px rgba(0,0,0,.28);
}

/* HERO */
.hero-band{ padding-top: calc(var(--nav-h) + 30px); padding-bottom: 20px; }
.hero-title{
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 950;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin:0;
}
.hero-title span{ color: var(--brand); }
.hero-sub{
  color: var(--muted);
  font-weight: 700;
  font-size: 1.12rem;
  max-width: 600px;
  margin: 15px 0 25px;
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  background: var(--surface);
  border:1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-weight:950;
  letter-spacing:.08em;
  font-size:.78rem;
  text-transform:uppercase;
  color: var(--brand-dark);
}

@media (max-width: 992px){
  .hero-band{ text-align:center; }
  .hero-sub{ margin: 15px auto 25px; }
}

/* ✅ HERO MEDIA (photo + call UI overlay) */
.hero-media{
  position:relative;
  display:inline-block;
  width:100%;
  max-width:460px;
  border-radius:40px;
  border:8px solid rgba(255,255,255,.92);
  box-shadow: var(--shadow-md);
  overflow:hidden;
  background: #0b2230;
  isolation:isolate;
}
html[data-theme="dark"] .hero-media{
  border-color: rgba(255,255,255,0.10);
}
.hero-media img{
  width:100%;
  height:auto;
  display:block;
  object-fit:cover;
  transform: scale(1.02);
}

.template-overlay{
  position:absolute;
  inset:0;
  z-index: 20;
  pointer-events:none;
  padding: 14px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:12px;
}

/* Top-left HUD */
.template-topbar{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  width:100%;
}
.template-hud{
  background: rgba(255,255,255,0.28);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.96);
  border-radius: 16px;
  padding: 10px 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.16);
  display:grid;
  gap: 8px;
  min-width: 170px;
}
html[data-theme="dark"] .template-hud{
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
}
.hud-row{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 950;
  letter-spacing: .01em;
  line-height: 1.1;
}
.hud-row i{
  font-size: 1.05rem;
  opacity: .95;
  color: rgba(255,255,255,.92);
}
.hud-row .hud-value{
  font-size: .98rem;
  color: rgba(255,255,255,.96);
  text-shadow: 0 1px 10px rgba(0,0,0,0.18);
  white-space:nowrap;
}

/* Bottom: 5 colored buttons */
.template-actions-wrap{
  width: 100%;
  display:flex;
  justify-content:center;
  padding-bottom: 2px;
}
.template-actions{
  display:flex;
  align-items:center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 44px rgba(0,0,0,0.16);
}
.tbtn{
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}
.tbtn i{font-size:1.2rem}
.tbtn.hangup{ background: rgba(239, 68, 68, 0.94); }
.tbtn.info{   background: rgba(31,182,213,0.94); }
.tbtn.user{   background: rgba(59, 130, 246, 0.94); }
.tbtn.video{  background: rgba(16, 185, 129, 0.94); }
.tbtn.sound{  background: rgba(168, 85, 247, 0.94); }

@media (max-width: 992px){
  .hero-media{max-width:520px}
}
@media (max-width: 420px){
  .hero-media{border-radius:28px;border-width:6px}
  .template-overlay{padding:12px}
  .template-hud{min-width:150px}
  .template-actions{gap: 10px}
  .tbtn{width:44px;height:44px}
  .tbtn i{font-size:1.05rem}
}

/* ✅ ROLE SWITCH INFO BANNER */
.role-switch-tip {
  background: rgba(31, 182, 213, 0.08);
  border: 1px solid rgba(31, 182, 213, 0.2);
  border-radius: 16px;
  padding: 15px 20px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.role-switch-tip i { color: var(--brand); font-size: 1.35rem; margin-top:2px; }
.role-switch-tip p { margin: 0; font-weight: 800; font-size: 0.95rem; color: var(--brand-dark); line-height:1.35; }
html[data-theme="dark"] .role-switch-tip p{ color: rgba(31,182,213,.95); }

/* SIGNUP FORM */
.form-panel{ background: var(--surface); border: 1px solid var(--border); border-radius: 34px; box-shadow: var(--shadow-md); overflow:hidden; }
.form-head{ padding: 28px 30px 20px; background: linear-gradient(180deg, rgba(31,182,213,.08), transparent); border-bottom: 1px solid var(--border); text-align: center; }
.form-body{ padding: 30px; }

.form-label{
  font-weight: 950;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--muted);
}

.form-control{
  height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.4);
  background: rgba(248,250,252,0.8);
  font-weight: 750;
  color: var(--text);
  transition:.2s ease;
}
html[data-theme="dark"] .form-control{
  background: rgba(255,255,255,0.05);
  border-color: rgba(234,244,250,.16);
  color: var(--text);
}
.form-control::placeholder{ color: rgba(91,107,118,.75); }
html[data-theme="dark"] .form-control::placeholder{ color: rgba(185,208,221,.65); }
.form-control:focus{ border-color: var(--brand); box-shadow: var(--ring); outline: none; }

.or-divider{
  display:flex; align-items:center; gap:15px;
  margin: 38px 0 30px;
  color: var(--muted);
  font-weight: 950;
  font-size: 0.75rem;
  letter-spacing:.12em;
  justify-content:center;
}
.or-divider::before, .or-divider::after{ content:""; height:1px; flex:1; background: var(--border); }

/* ✅ SOCIAL BUTTONS (same style as Cyber Friend) */
.social-row{ display:grid; grid-template-columns: 1fr 1fr; gap:14px; }
@media (max-width: 520px){ .social-row{ grid-template-columns:1fr; } }

.social-btn{
  height:54px;
  border-radius:12px;
  border:1px solid rgba(148,163,184,.45);
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  font-weight:850;
  color:#0B1F2A;
  transition:.16s ease;
  user-select:none;
  padding:0 14px;
}
.social-btn:hover{ transform:translateY(-1px); box-shadow:0 10px 26px rgba(11,31,42,.08); }
.social-btn .logo{ width:20px; height:20px; display:inline-block; }
.social-btn .label{ font-weight:950; }
.social-btn.apple svg{ display:block; width:18px; height:18px; fill:#111; }

html[data-theme="dark"] .social-btn{
  background: rgba(255,255,255,0.06);
  border-color: rgba(234,244,250,.16);
  color: var(--text);
}
html[data-theme="dark"] .social-btn.apple svg{ fill: var(--text); }

/* ✅ dark text fixes (the 2 things you mentioned) */
html[data-theme="dark"] .text-muted{ color: rgba(234,244,250,.72) !important; }

.form-legal{ color: rgba(11,31,42,.62); font-weight:900; }
.form-legal a{ color: inherit; text-decoration:none; }
html[data-theme="dark"] .form-legal,
html[data-theme="dark"] .form-legal a{
  color: rgba(234,244,250,.80);
}
.form-legal a:hover{ color: var(--brand-dark); }

/* FEATURE CARDS (CALLER) */
.info-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: 0.22s ease;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
html[data-theme="dark"] .info-card{ box-shadow: var(--shadow-sm); }
.info-card:hover{ transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(31,182,213,.40); }
.info-icon{ width: 70px; height: 70px; flex-shrink: 0; background: var(--bg); border-radius: 18px; padding: 12px; border:1px solid var(--border); align-items: center;display: flex;justify-content: center; font-size:20px }
.info-icon img { width: 100%; height: 100%; object-fit: contain; }
.info-content h4{ font-weight: 950; font-size: 1.22rem; margin:0 0 6px; }
.info-content p{ margin: 0; color: var(--muted); font-weight: 750; font-size: 0.95rem; line-height: 1.4; }

/* Footer */
footer{
  background: var(--surface) !important;
  border-top: 1px solid var(--border) !important;
}

@media (prefers-reduced-motion: reduce){
  *{scroll-behavior:auto!important}
  .btn-racf,.theme-toggle,.social-btn,.info-card{transition:none!important}
}
