/* ══════════════════════════════════════════════════════
   bio-style.css — Bio Link / Linktree Alternative Theme
   Color: Purple-violet — Instagram gradient feel
══════════════════════════════════════════════════════ */
:root {
  --bio-purple:      #a855f7;
  --bio-purple-dark: #7c3aed;
  --bio-purple-lite: #c084fc;
  --bio-pink:        #ec4899;
  --bio-grad:        linear-gradient(135deg, #a855f7, #ec4899);
  --bio-dark:        #0a080f;
  --bio-dark2:       #120d1a;
  --bio-dark3:       #1a1225;
  --bio-dark4:       #241830;
  --bio-text:        #faf5ff;
  --bio-muted:       #a78bba;
  --bio-border:      rgba(255,255,255,.09);
}

.bio-page { background: var(--bio-dark); min-height: 100vh; }

/* ── Navbar ── */
.bio-navbar {
  background: rgba(7,4,12,.97) !important;
  border-bottom: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(12px);
  padding: .65rem 0;
}
.bio-nl {
  color: var(--bio-muted) !important;
  font-size: .87rem; font-weight: 500;
  padding: .35rem .7rem !important;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.bio-nl:hover, .bio-nl.active {
  color: var(--bio-text) !important;
  background: var(--bio-dark3) !important;
}
.bio-nav-btn {
  background: var(--bio-purple) !important;
  color: #fff !important; border: none !important;
  font-weight: 700; font-size: .84rem;
  border-radius: 7px !important;
  transition: background .15s !important;
}
.bio-nav-btn:hover { background: var(--bio-purple-dark) !important; color: #fff !important; }
.bio-toggler {
  border: 1px solid rgba(255,255,255,.2) !important;
  padding: .3rem .5rem !important; border-radius: 6px;
}
.bio-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
.bio-toggler:focus { box-shadow: 0 0 0 3px rgba(168,85,247,.28) !important; outline: none !important; }
@media (max-width: 991px) {
  #bioNavMenu {
    background: var(--bio-dark2);
    border: 1px solid var(--bio-border);
    border-radius: 10px; padding: .65rem .75rem; margin-top: .5rem;
  }
  .bio-nl { padding: .55rem .75rem !important; display: block; }
  .navbar-nav { gap: .15rem; }
  .bio-nav-btn { margin-top: .35rem; display: inline-flex; }
}

/* ── Hero ── */
.bio-hero {
  background: var(--bio-dark);
  padding: 4rem 0 3rem;
  position: relative; overflow: hidden;
}
.bio-hero::before {
  content: '';
  position: absolute; top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 360px;
  background: radial-gradient(ellipse, rgba(168,85,247,.12) 0%, transparent 65%);
  pointer-events: none;
}
.bio-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(168,85,247,.1);
  border: 1px solid rgba(168,85,247,.28);
  color: #d8b4fe;
  font-size: .77rem; font-weight: 600; letter-spacing: .04em;
  padding: .28rem .85rem; border-radius: 50px; margin-bottom: .8rem;
}
.bio-title {
  font-size: clamp(1.85rem, 5vw, 3rem);
  font-weight: 800; color: var(--bio-text);
  line-height: 1.18; margin-bottom: .8rem; letter-spacing: -.5px;
}
.bio-accent {
  background: var(--bio-grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bio-sub {
  color: var(--bio-muted); font-size: 1rem; line-height: 1.6;
  margin-bottom: 1.75rem; max-width: 540px;
  margin-left: auto; margin-right: auto;
}

/* ── Two-panel layout ── */
.bio-builder-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  align-items: flex-start;
}
@media (max-width: 860px) {
  .bio-builder-wrap { grid-template-columns: 1fr; }
  .bio-preview-panel { display: none; }
}

/* ── Builder Card ── */
.bio-builder-card {
  background: var(--bio-dark3);
  border: 1px solid var(--bio-border);
  border-radius: 16px; padding: 1.4rem;
}

/* ── Profile section ── */
.bio-section-head {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--bio-muted);
  margin-bottom: .75rem; display: flex; align-items: center; gap: .4rem;
}
.bio-section-head::after {
  content: ''; flex: 1; height: 1px; background: var(--bio-border);
}

.bio-field-label {
  font-size: .78rem; font-weight: 600;
  color: var(--bio-muted); margin-bottom: .3rem; display: block;
}
.bio-input-wrap {
  display: flex; align-items: center;
  background: #fff; border-radius: 10px; overflow: hidden;
  border: 2px solid #e5e7eb; transition: border-color .15s;
  margin-bottom: .75rem;
}
.bio-input-wrap:focus-within { border-color: var(--bio-purple); }
.bio-input-icon {
  display: flex; align-items: center; justify-content: center;
  padding: 0 .8rem 0 .9rem; background: #fff;
  flex-shrink: 0; color: var(--bio-purple);
}
.bio-input {
  flex: 1; min-width: 0;
  border: none !important; outline: none !important; box-shadow: none !important;
  background: #fff !important; color: #111 !important;
  font-size: .92rem; padding: .72rem .4rem .72rem 0; line-height: 1.4;
}
.bio-input::placeholder { color: #9ca3af; }
.bio-textarea {
  width: 100%; border: 2px solid #e5e7eb; border-radius: 10px;
  background: #fff; color: #111; outline: none;
  font-size: .88rem; padding: .7rem .9rem; line-height: 1.5;
  resize: none; font-family: inherit; margin-bottom: .75rem;
  transition: border-color .15s;
}
.bio-textarea:focus { border-color: var(--bio-purple); }
.bio-textarea::placeholder { color: #9ca3af; }

/* ── Avatar upload ── */
.bio-avatar-row {
  display: flex; align-items: center; gap: .85rem; margin-bottom: 1rem;
}
.bio-avatar-preview {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--bio-dark4);
  border: 2px solid var(--bio-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden; cursor: pointer;
  position: relative;
}
.bio-avatar-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.bio-avatar-initials { font-size: 1.3rem; font-weight: 700; color: var(--bio-purple-lite); }
.bio-avatar-hint { font-size: .78rem; color: var(--bio-muted); line-height: 1.5; }
.bio-avatar-hint span { color: var(--bio-purple-lite); cursor: pointer; text-decoration: underline; }

/* ── Theme picker ── */
.bio-theme-row {
  display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: 1rem;
}
.bio-theme-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s, border-color .15s;
  flex-shrink: 0;
}
.bio-theme-btn:hover { transform: scale(1.15); }
.bio-theme-btn.active { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.4); }

/* ── Link items ── */
.bio-links-list { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .75rem; }
.bio-link-item {
  background: var(--bio-dark4);
  border: 1px solid var(--bio-border);
  border-radius: 10px; padding: .65rem .75rem;
  display: flex; align-items: center; gap: .55rem;
  transition: border-color .15s;
}
.bio-link-item:hover { border-color: rgba(168,85,247,.3); }
.bio-link-drag {
  color: rgba(168,85,247,.35); cursor: grab; flex-shrink: 0;
  font-size: 1rem; line-height: 1; padding: 0 .1rem;
  user-select: none;
}
.bio-link-drag:active { cursor: grabbing; }
.bio-link-inputs { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.bio-link-title-input {
  border: none; outline: none; background: transparent;
  color: var(--bio-text); font-size: .85rem; font-weight: 600;
  font-family: inherit; width: 100%;
}
.bio-link-title-input::placeholder { color: rgba(167,139,186,.45); font-weight: 400; }
.bio-link-url-input {
  border: none; outline: none; background: transparent;
  color: var(--bio-muted); font-size: .78rem;
  font-family: inherit; width: 100%;
}
.bio-link-url-input::placeholder { color: rgba(167,139,186,.35); }
.bio-link-del {
  background: transparent; border: none; cursor: pointer;
  color: rgba(167,139,186,.3); padding: .2rem;
  border-radius: 5px; flex-shrink: 0; line-height: 1;
  transition: color .15s, background .15s;
}
.bio-link-del:hover { color: #f87171; background: rgba(248,113,113,.1); }
.bio-add-link-btn {
  width: 100%; background: transparent;
  border: 1px dashed rgba(168,85,247,.35);
  color: var(--bio-purple-lite); border-radius: 10px;
  padding: .65rem; font-size: .85rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  transition: border-color .15s, background .15s;
}
.bio-add-link-btn:hover { border-color: var(--bio-purple); background: rgba(168,85,247,.06); }

/* ── Generate button ── */
.bio-btn-generate {
  width: 100%; background: var(--bio-grad); color: #fff;
  border: none; border-radius: 10px;
  padding: .9rem; font-size: .97rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  transition: opacity .15s, transform .1s;
  margin-top: .25rem;
}
.bio-btn-generate:hover { opacity: .9; transform: translateY(-1px); }
.bio-btn-generate:active { transform: translateY(0); }
.bio-error-msg { color: #f87171; font-size: .82rem; margin: .4rem 0; display: flex; align-items: center; gap: .35rem; }

/* ── Phone preview ── */
.bio-preview-panel { position: sticky; top: 80px; }
.bio-preview-label {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--bio-muted);
  text-align: center; margin-bottom: .75rem;
  display: flex; align-items: center; gap: .4rem; justify-content: center;
}
.bio-phone-frame {
  width: 220px; margin: 0 auto;
  background: #0a0a0a;
  border-radius: 36px;
  border: 6px solid #222;
  box-shadow: 0 0 0 1px #333, 0 20px 60px rgba(0,0,0,.6);
  overflow: hidden; position: relative;
  min-height: 440px;
}
.bio-phone-notch {
  width: 90px; height: 22px; background: #0a0a0a;
  border-radius: 0 0 16px 16px;
  margin: 0 auto; position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.bio-phone-notch-dot { width: 8px; height: 8px; background: #222; border-radius: 50%; }
.bio-phone-screen {
  overflow-y: auto; max-height: 400px;
  padding: 0 0 1rem;
  scrollbar-width: none;
}
.bio-phone-screen::-webkit-scrollbar { display: none; }

/* ── Preview bio page ── */
.bio-preview-bg {
  min-height: 100%; padding: 1.25rem .75rem 1rem;
  display: flex; flex-direction: column; align-items: center;
  transition: background .3s;
}
.bio-preview-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700; color: #fff;
  margin-bottom: .5rem; overflow: hidden; flex-shrink: 0;
}
.bio-preview-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bio-preview-name {
  font-size: .9rem; font-weight: 700; color: #fff;
  text-align: center; margin-bottom: .15rem;
}
.bio-preview-bio {
  font-size: .65rem; color: rgba(255,255,255,.55);
  text-align: center; margin-bottom: .85rem;
  line-height: 1.4; max-width: 160px;
}
.bio-preview-links { width: 100%; display: flex; flex-direction: column; gap: .4rem; }
.bio-preview-link {
  display: block; text-align: center;
  padding: .5rem .65rem; border-radius: 50px;
  font-size: .7rem; font-weight: 700; color: #fff;
  text-decoration: none; word-break: break-all;
  transition: opacity .15s, transform .1s;
  cursor: pointer;
}
.bio-preview-link:hover { opacity: .85; transform: scale(.98); }
.bio-preview-empty {
  font-size: .65rem; color: rgba(255,255,255,.2);
  text-align: center; margin-top: .5rem;
}

/* ── Result panel ── */
@keyframes bioFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bio-result { animation: bioFadeUp .3s ease both; margin-top: 1.1rem; }
.bio-result-status {
  display: flex; align-items: center; gap: .4rem;
  color: #c084fc; font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75rem;
}
.bio-link-box {
  background: var(--bio-dark4); border: 1px solid rgba(168,85,247,.25);
  border-radius: 10px; padding: .85rem 1rem;
  font-family: 'Courier New', monospace; font-size: .88rem;
  color: #d8b4fe; word-break: break-all; margin-bottom: .75rem;
}
.bio-action-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.bio-btn-copy {
  flex: 1; min-width: 120px;
  background: var(--bio-purple); color: #fff;
  border: none; border-radius: 8px;
  padding: .65rem .9rem; font-size: .86rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  transition: background .15s;
}
.bio-btn-copy:hover { background: var(--bio-purple-dark); }
.bio-btn-copy.copied { background: #7c3aed; }
.bio-btn-open {
  flex: 1; min-width: 120px;
  background: transparent; border: 1px solid rgba(168,85,247,.3);
  color: #c084fc; border-radius: 8px;
  padding: .65rem .9rem; font-size: .86rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  transition: all .15s; text-decoration: none;
}
.bio-btn-open:hover { border-color: var(--bio-purple); color: var(--bio-text); background: rgba(168,85,247,.08); }
.bio-btn-new {
  width: 100%; margin-top: .55rem;
  background: transparent; border: 1px solid var(--bio-border);
  color: var(--bio-muted); font-size: .82rem; font-weight: 600;
  padding: .5rem; border-radius: 8px; cursor: pointer;
  transition: all .15s; font-family: inherit;
}
.bio-btn-new:hover { border-color: var(--bio-purple); color: var(--bio-text); }
.bio-tip-box {
  background: rgba(168,85,247,.07); border: 1px solid rgba(168,85,247,.18);
  border-radius: 8px; padding: .55rem .8rem;
  font-size: .76rem; color: #d8b4fe;
  display: flex; gap: .4rem; align-items: flex-start; line-height: 1.5;
  margin-top: .65rem;
}
.bio-tool-note { color: rgba(167,139,186,.28); font-size: .75rem; margin-top: .65rem; text-align: center; }

/* ── Section styles ── */
.bio-section-dark { background: var(--bio-dark); }
.bio-section-mid  { background: var(--bio-dark2); }
.bio-section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 800; color: var(--bio-text);
  margin-bottom: .5rem; letter-spacing: -.3px;
}
.bio-section-sub { color: var(--bio-muted); font-size: .97rem; }
.bio-body-text { font-size: 1rem; color: var(--bio-muted); line-height: 1.8; margin-bottom: 1.1rem; }

/* ── Feature / Step cards ── */
.bio-step-card {
  background: var(--bio-dark3); border: 1px solid var(--bio-border);
  border-radius: 14px; padding: 2rem 1.5rem 1.5rem;
  text-align: center; position: relative; height: 100%;
  transition: border-color .2s;
}
.bio-step-card:hover { border-color: rgba(168,85,247,.35); }
.bio-step-num {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 26px; background: var(--bio-purple); color: #fff;
  font-size: .77rem; font-weight: 700; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.bio-step-icon { color: var(--bio-purple-lite); margin-bottom: .7rem; }
.bio-step-title { font-size: .97rem; font-weight: 700; color: var(--bio-text); margin-bottom: .4rem; }
.bio-step-desc  { font-size: .85rem; color: var(--bio-muted); margin: 0; line-height: 1.6; }
.bio-feature-card {
  background: var(--bio-dark3); border: 1px solid var(--bio-border);
  border-radius: 12px; padding: 1.3rem; height: 100%;
  transition: border-color .2s;
}
.bio-feature-card:hover { border-color: rgba(168,85,247,.3); }
.bio-feature-dot { width: 8px; height: 8px; background: var(--bio-purple); border-radius: 50%; margin-bottom: .6rem; }
.bio-feature-title { font-size: .92rem; font-weight: 700; color: var(--bio-text); margin-bottom: .3rem; }
.bio-feature-desc  { font-size: .83rem; color: var(--bio-muted); margin: 0; line-height: 1.6; }

/* ── FAQ ── */
.bio-faq-item { border-bottom: 1px solid var(--bio-border); }
.bio-faq-item:last-child { border-bottom: none; }
.bio-faq-btn {
  width: 100%; background: transparent; border: none;
  color: var(--bio-text); font-size: .93rem; font-weight: 600;
  padding: 1rem 0; text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  font-family: inherit; line-height: 1.4;
}
.bio-faq-btn.open { color: var(--bio-purple-lite); }
.bio-faq-arrow { flex-shrink: 0; transition: transform .2s; color: var(--bio-muted); }
.bio-faq-body { font-size: .9rem; color: var(--bio-muted); line-height: 1.75; padding: 0 0 1rem; }

/* ── CTA ── */
.bio-cta-section {
  background: linear-gradient(135deg, #080511 0%, #12082a 100%);
  border-top: 1px solid rgba(168,85,247,.12);
}
.bio-cta-title { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; color: var(--bio-text); margin-bottom: .5rem; }
.bio-cta-sub   { color: var(--bio-muted); margin-bottom: 1.5rem; }

/* ── Footer ── */
.bio-footer { background: #050309; border-top: 1px solid var(--bio-border); padding: 2rem 0; }
.bio-footer-tagline { font-size: .82rem; color: rgba(167,139,186,.38); margin: .3rem 0 0; }
.bio-footer-nav { display: flex; flex-wrap: wrap; gap: .25rem .75rem; }
.bio-footer-nav a { font-size: .83rem; color: rgba(167,139,186,.42); text-decoration: none; }
.bio-footer-nav a:hover { color: var(--bio-text); }
.bio-footer-copy { font-size: .82rem; color: rgba(167,139,186,.28); }

/* Linktree compare table */
.bio-compare-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.bio-compare-table th {
  background: var(--bio-dark4); color: var(--bio-text);
  padding: .7rem 1rem; text-align: left; font-weight: 700;
  border-bottom: 2px solid var(--bio-border);
}
.bio-compare-table td { padding: .65rem 1rem; color: var(--bio-muted); border-bottom: 1px solid var(--bio-border); }
.bio-compare-table tr:hover td { background: rgba(255,255,255,.015); }
.bio-check { color: #c084fc; font-weight: 700; }
.bio-cross  { color: #f87171; }
.bio-highlight td { color: var(--bio-text); font-weight: 600; }
.bio-highlight td:first-child { color: var(--bio-purple-lite); }
