/* ══════════════════════════════════════════
   LinkHub — Shared Stylesheet
   ══════════════════════════════════════════ */

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

:root {
  --bg:        #0d0d12;
  --surface:   #16161f;
  --border:    #2a2a38;
  --accent1:   #7c5cfc;
  --accent2:   #e05fff;
  --accent3:   #3df0c2;
  --text:      #f0eeff;
  --muted:     #8585a8;
  --card-bg:   #1c1c28;
  --card-hover:#222233;
  --danger:    #ff5064;
  --success:   #3df0c2;
  --radius:    18px;
  --radius-sm: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Ambient glow ── */
.glow-bg::before {
  content: '';
  position: fixed;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  width: min(700px, 100vw);
  height: 500px;
  background: radial-gradient(ellipse at 40% 40%,
    rgba(124,92,252,.22) 0%,
    rgba(224,95,255,.10) 45%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Typography ── */
.font-display {
  font-family: 'Syne', 'Inter', sans-serif;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; cursor: pointer;
  font-family: 'Syne', sans-serif; font-weight: 700;
  transition: opacity .18s, transform .15s, border-color .18s, color .18s, background .18s;
  text-decoration: none;
}
.btn:hover  { opacity: .88; }
.btn:active { transform: scale(.97); }

.btn-gradient {
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  color: #fff;
  border-radius: 12px;
  padding: 12px 22px;
  font-size: .92rem;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  padding: 11px 18px;
  font-size: .88rem;
  font-family: 'Inter', sans-serif; font-weight: 500;
}
.btn-ghost:hover { border-color: var(--muted); color: var(--text); opacity: 1; }

.btn-danger {
  background: rgba(255,80,100,.1);
  border: 1px solid rgba(255,80,100,.35);
  border-radius: 10px;
  color: #ff7090;
  padding: 8px 14px;
  font-size: .8rem;
  font-family: 'Inter', sans-serif; font-weight: 500;
}
.btn-danger:hover { background: rgba(255,80,100,.2); opacity: 1; }

.btn-sm { padding: 7px 14px; font-size: .8rem; border-radius: 9px; }

/* ── Form elements ── */
.field-group { margin-bottom: 12px; }
.field-group label {
  display: block;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: 6px;
}
.input {
  width: 100%;
  padding: 12px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Inter', sans-serif; font-size: .9rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus {
  border-color: var(--accent1);
  box-shadow: 0 0 0 3px rgba(124,92,252,.12);
}
.input-icon-wrap { position: relative; }
.input-icon-wrap .input { padding-left: 42px; }
.input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 1.05rem; pointer-events: none;
}
select.input { cursor: pointer; }
select.input option { background: #1c1c28; }

/* ── Alert flash ── */
.flash {
  padding: 12px 16px; border-radius: 12px; margin-bottom: 18px;
  font-size: .88rem; display: flex; align-items: center; gap: 10px;
}
.flash-success { background: rgba(61,240,194,.12); border: 1px solid rgba(61,240,194,.3); color: var(--accent3); }
.flash-error   { background: rgba(255,80,100,.12); border: 1px solid rgba(255,80,100,.3); color: #ff7090; }

/* ── Card ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ── Divider ── */
.divider { height: 1px; background: var(--border); margin: 28px 0; }

/* ── Section label ── */
.section-label {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); margin-bottom: 12px; padding-left: 2px;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

/* ── Animations ── */
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes fadeUp  { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
@keyframes slideUp { from { transform:translateY(100%); } to { transform:translateY(0); } }

.fade-up { animation: fadeUp .35s ease both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}