/* ══════════════════════════════════════════════════════════════
   TOLANI OYEFULE — Link Bio  |  styles.css  |  v0.00.4
   Theme: Vibrant Professional
   Palette: Electric Indigo · Cyber Teal · Soft Coral
   Dual-target: Instagram visual impact + LinkedIn credibility
   Mobile-first. Breakpoints: 520px · 768px.
══════════════════════════════════════════════════════════════ */

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

/* ══════════════════════════════════════════════════════════════
   DESIGN TOKENS
   Dark mode = default (:root)
   Light mode = [data-theme="light"] on <html>
══════════════════════════════════════════════════════════════ */
:root {
  /* ── Surfaces ── */
  --bg:              #07090f;
  --bg-card:         #0d1120;
  --bg-link:         #111827;
  --bg-link-hover:   #161f30;
  --bg-modal:        #0e1220;
  --bg-input:        rgba(255, 255, 255, 0.04);
  --bg-input-focus:  rgba(92, 106, 255, 0.06);

  /* ── Borders ── */
  --border:          rgba(255, 255, 255, 0.07);
  --border-card:     rgba(92, 106, 255, 0.18);
  --border-hover:    rgba(0, 212, 200, 0.5);
  --border-input:    rgba(255, 255, 255, 0.1);
  --border-focus:    rgba(92, 106, 255, 0.6);
  --border-modal:    rgba(255, 255, 255, 0.08);

  /* ── Accent Palette ── */
  --indigo:          #5c6aff;
  --indigo-light:    #818bff;
  --indigo-dim:      rgba(92, 106, 255, 0.15);
  --teal:            #00d4c8;
  --teal-light:      #33e8de;
  --coral:           #ff6b8a;
  --coral-light:     #ff8fa5;

  /* ── Gradients ── */
  --grad-primary:    linear-gradient(135deg, #5c6aff 0%, #00d4c8 100%);
  --grad-secondary:  linear-gradient(135deg, #ff6b8a 0%, #5c6aff 100%);
  --grad-teal-coral: linear-gradient(135deg, #00d4c8 0%, #ff6b8a 100%);
  --grad-coral-ind:  linear-gradient(135deg, #ff6b8a 0%, #5c6aff 100%);
  --grad-ind-coral:  linear-gradient(135deg, #5c6aff 0%, #ff6b8a 100%);

  /* ── Text ── */
  --text:            #e8eaf6;
  --text-muted:      #8b91a7;
  --text-dim:        #4a5066;

  /* ── Danger ── */
  --red:             #f05252;
  --red-bg:          rgba(240, 82, 82, 0.1);
  --red-border:      rgba(240, 82, 82, 0.28);

  /* ── Motion ── */
  --ease:            cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:     cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur:             0.24s;
  --dur-theme:       0.35s;

  /* ── Shape ── */
  --radius-card:     18px;
  --radius-input:    10px;

  /* ── Typography ── */
  --font-display:    'Syne', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:       'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ══════════════════════════════════════════════════════════════
   LIGHT THEME OVERRIDES
══════════════════════════════════════════════════════════════ */
[data-theme="light"] {
  --bg:              #f2f4fb;
  --bg-card:         #ffffff;
  --bg-link:         #edf0f8;
  --bg-link-hover:   #e4e8f5;
  --bg-modal:        #ffffff;
  --bg-input:        rgba(0, 0, 0, 0.03);
  --bg-input-focus:  rgba(92, 106, 255, 0.05);

  --border:          rgba(0, 0, 0, 0.07);
  --border-card:     rgba(92, 106, 255, 0.2);
  --border-hover:    rgba(0, 212, 200, 0.6);
  --border-input:    rgba(0, 0, 0, 0.1);
  --border-focus:    rgba(92, 106, 255, 0.5);
  --border-modal:    rgba(0, 0, 0, 0.07);

  --text:            #1a1d2e;
  --text-muted:      #5a607a;
  --text-dim:        #9499b0;
}

/* ── Global Theme Transition ──────────────────────────────── */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  transition:
    background-color var(--dur-theme) var(--ease),
    color            var(--dur-theme) var(--ease);
}

/* ══════════════════════════════════════════════════════════════
   BASE
══════════════════════════════════════════════════════════════ */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2.25rem 1rem 5rem;
  overflow-x: hidden;
  position: relative;
  transition:
    background-color var(--dur-theme) var(--ease),
    color            var(--dur-theme) var(--ease);
}

/* ── Aurora Ambient Glow ──────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 720px;
  background:
    radial-gradient(ellipse at 35% 45%, rgba(92, 106, 255, 0.11) 0%, transparent 58%),
    radial-gradient(ellipse at 65% 55%, rgba(0, 212, 200, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 80%, rgba(255, 107, 138, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  transition: opacity var(--dur-theme) var(--ease);
}

[data-theme="light"] body::before {
  opacity: 0.45;
}

/* ── Noise Grain Overlay ──────────────────────────────────── */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.024;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  transition: opacity var(--dur-theme) var(--ease);
}

[data-theme="light"] .noise { opacity: 0.014; }

/* ══════════════════════════════════════════════════════════════
   THEME TOGGLE
══════════════════════════════════════════════════════════════ */
.theme-toggle {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 300;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
  transition:
    background     var(--dur-theme) var(--ease),
    border-color   var(--dur-theme) var(--ease),
    box-shadow     var(--dur)       var(--ease),
    transform      var(--dur)       var(--ease-spring);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
}

/* ══════════════════════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════════════════════ */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
}

/* ══════════════════════════════════════════════════════════════
   PROFILE CARD
══════════════════════════════════════════════════════════════ */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 26px;
  padding: 2.5rem 1.6rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition:
    background     var(--dur-theme) var(--ease),
    border-color   var(--dur-theme) var(--ease),
    box-shadow     var(--dur-theme) var(--ease);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 28px 72px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(92, 106, 255, 0.04);
}

[data-theme="light"] .profile-card {
  box-shadow:
    0 8px 48px rgba(92, 106, 255, 0.09),
    0 1px 0 rgba(255, 255, 255, 1) inset;
}

/* ══════════════════════════════════════════════════════════════
   AVATAR
══════════════════════════════════════════════════════════════ */
.avatar-ring {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(
    135deg,
    var(--indigo)  0%,
    var(--teal)    33%,
    var(--coral)   66%,
    var(--indigo)  100%
  );
  background-size: 300% 300%;
  animation: gradientSpin 5s ease infinite;
  margin-bottom: 1.35rem;
  flex-shrink: 0;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-theme) var(--ease);
}

.avatar span {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
  letter-spacing: 0.04em;
}

/* ══════════════════════════════════════════════════════════════
   IDENTITY
══════════════════════════════════════════════════════════════ */
.name {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 6vw, 2.1rem);
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  text-align: center;
  line-height: 1.15;
  margin-bottom: 0.45rem;
}

.title {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 0.9rem;
  transition: color var(--dur-theme) var(--ease);
}

.bio {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  text-align: center;
  max-width: 300px;
  line-height: 1.72;
  transition: color var(--dur-theme) var(--ease);
}

/* Gradient rule under bio */
.bio::after {
  content: '';
  display: block;
  height: 2px;
  width: 56px;
  margin: 1.6rem auto 0;
  background: var(--grad-primary);
  border-radius: 99px;
}

/* ══════════════════════════════════════════════════════════════
   LINKS CONTAINER
══════════════════════════════════════════════════════════════ */
.links-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.75rem;
  margin-bottom: 1.1rem;
}

/* ── Empty State ──────────────────────────────────────────── */
.empty-state {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
  padding: 1.5rem 0;
}

.empty-state strong {
  color: var(--indigo-light);
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════
   LINK CARD
══════════════════════════════════════════════════════════════ */
.link-card {
  /* Cursor-glow CSS variables — driven by script.js */
  --gx:            50%;
  --gy:            50%;
  --glow-opacity:  0;

  position: relative;
  display: block;
  background: var(--bg-link);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: var(--text);
  padding: 1rem 1.2rem;
  overflow: hidden;
  animation: slideUp 0.42s var(--ease) both;
  transition:
    border-color   var(--dur)       var(--ease),
    background     var(--dur)       var(--ease),
    box-shadow     var(--dur)       var(--ease),
    transform      var(--dur)       var(--ease),
    background     var(--dur-theme) var(--ease);
}

/* Left-edge gradient accent bar */
.link-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--grad-primary);
  opacity: 0.55;
  transition:
    height   var(--dur) var(--ease),
    top      var(--dur) var(--ease),
    opacity  var(--dur) var(--ease);
}

/* Cycle accent gradients per position */
.link-card:nth-child(2)::before { background: var(--grad-secondary); }
.link-card:nth-child(3)::before { background: var(--grad-teal-coral); }
.link-card:nth-child(4)::before { background: var(--grad-coral-ind); }
.link-card:nth-child(5)::before { background: var(--grad-ind-coral); }
.link-card:nth-child(6)::before { background: var(--grad-primary); }
.link-card:nth-child(7)::before { background: var(--grad-secondary); }

/* Cursor-following spotlight glow — JS sets --gx/--gy */
.link-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--gx) var(--gy),
    rgba(92, 106, 255, 0.1) 0%,
    transparent 65%
  );
  opacity: var(--glow-opacity);
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.link-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-link-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 212, 200, 0.07);
}

.link-card:hover::before {
  height: 70%;
  top: 15%;
  opacity: 1;
}

.link-card:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}

.link-card:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ── Link Internals ───────────────────────────────────────── */
.link-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.link-text {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
}

.link-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--dur-theme) var(--ease);
}

.link-desc {
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--dur-theme) var(--ease);
}

.link-arrow {
  font-size: 0.95rem;
  color: var(--teal);
  opacity: 0.45;
  flex-shrink: 0;
  transition:
    opacity   var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.link-card:hover .link-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* ── Delete Button ────────────────────────────────────────── */
.delete-btn {
  position: absolute;
  top: 50%;
  right: -42px;
  transform: translateY(-50%);
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  border-radius: 50%;
  width: 27px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition:
    right       var(--dur) var(--ease),
    background  var(--dur) var(--ease);
}

.link-card:hover .delete-btn { right: 10px; }
.delete-btn:hover { background: rgba(240, 82, 82, 0.22); }

/* ══════════════════════════════════════════════════════════════
   NEW LINK BUTTON
══════════════════════════════════════════════════════════════ */
.new-link-btn {
  width: 100%;
  padding: 0.85rem 1rem;
  background: transparent;
  border: 1.5px dashed rgba(92, 106, 255, 0.3);
  border-radius: var(--radius-card);
  color: var(--indigo-light);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition:
    border-color var(--dur) var(--ease),
    background   var(--dur) var(--ease),
    box-shadow   var(--dur) var(--ease),
    transform    var(--dur) var(--ease);
}

.new-link-btn:hover {
  border-color: var(--indigo);
  background: var(--indigo-dim);
  transform: translateY(-1px);
}

.new-link-btn:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}

.btn-icon {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1;
}

/* ══════════════════════════════════════════════════════════════
   MODAL OVERLAY
══════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Modal Panel ─────────────────────────────────────────── */
.modal {
  background: var(--bg-modal);
  border: 1px solid var(--border-modal);
  border-top: 1px solid var(--border-card);
  border-radius: 22px 22px 0 0;
  padding: 0.75rem 1.5rem 2.5rem;
  width: 100%;
  max-width: 460px;
  transform: translateY(52px);
  transition:
    transform    0.38s var(--ease-spring),
    background   var(--dur-theme) var(--ease),
    border-color var(--dur-theme) var(--ease);
  box-shadow: 0 -16px 56px rgba(0, 0, 0, 0.45);
}

.modal-overlay.open .modal { transform: translateY(0); }

.modal-handle {
  width: 36px;
  height: 4px;
  background: var(--border-card);
  border-radius: 99px;
  margin: 0 auto 1.5rem;
  transition: background var(--dur-theme) var(--ease);
}

/* ── Modal Title ─────────────────────────────────────────── */
.modal-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.4rem;
  transition: color var(--dur-theme) var(--ease);
}

/* ── Form Fields ─────────────────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  user-select: none;
  transition: color var(--dur-theme) var(--ease);
}

.optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.7rem;
  color: var(--text-dim);
}

.field input {
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-input);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  transition:
    border-color var(--dur)       var(--ease),
    background   var(--dur)       var(--ease),
    box-shadow   var(--dur)       var(--ease),
    background   var(--dur-theme) var(--ease),
    color        var(--dur-theme) var(--ease);
}

.field input:focus {
  border-color: var(--border-focus);
  background: var(--bg-input-focus);
  box-shadow: 0 0 0 3px rgba(92, 106, 255, 0.12);
}

.field input.error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-bg);
  animation: shake 0.32s var(--ease);
}

.field input::placeholder {
  color: var(--text-dim);
  font-weight: 300;
}

/* ── Modal Actions ───────────────────────────────────────── */
.modal-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.6rem;
}

.btn-cancel {
  flex: 1;
  padding: 0.8rem;
  background: transparent;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-input);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color var(--dur) var(--ease),
    color        var(--dur) var(--ease),
    box-shadow   var(--dur) var(--ease);
}

.btn-cancel:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.btn-cancel:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

.btn-save {
  flex: 2;
  padding: 0.8rem;
  background: var(--grad-primary);
  border: none;
  border-radius: var(--radius-input);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    opacity   var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.btn-save:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-save:active { transform: translateY(0); opacity: 1; }

.btn-save:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ══════════════════════════════════════════════════════════════
   KEYFRAME ANIMATIONS
══════════════════════════════════════════════════════════════ */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes shake {
  0%, 100% { transform: translateX(0);   }
  20%       { transform: translateX(-7px); }
  40%       { transform: translateX(7px);  }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px);  }
}

@keyframes gradientSpin {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET / DESKTOP
══════════════════════════════════════════════════════════════ */
@media (min-width: 520px) {
  body {
    padding: 3.5rem 1.5rem 6rem;
    justify-content: center;
  }

  .profile-card { padding: 3rem 2.5rem 2.5rem; }
  .avatar-ring  { width: 92px; height: 92px;   }

  /* Centered dialog on desktop instead of bottom sheet */
  .modal-overlay {
    align-items: center;
    padding: 1.5rem;
  }

  .modal {
    border-radius: 22px;
    padding: 2rem 2rem 2.25rem;
    transform: scale(0.94) translateY(0);
    transition: transform 0.3s var(--ease-spring), background var(--dur-theme) var(--ease);
  }

  .modal-overlay.open .modal { transform: scale(1) translateY(0); }
  .modal-handle { display: none; }
}

@media (min-width: 768px) {
  .container { max-width: 480px; }
}

/* ══════════════════════════════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:  0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .avatar-ring { animation: none; }
}

/* ══════════════════════════════════════════════════════════════
   ADMIN — auth gate, toolbar, status banner, link-url line
   (admin.html only)
══════════════════════════════════════════════════════════════ */
#authGate code,
.gate-help code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82em;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: 5px;
  padding: 0.08em 0.4em;
}

.gate-error {
  color: var(--red);
  font-size: 0.8rem;
  min-height: 1.1rem;
  margin-top: 0.6rem;
}

.gate-help {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.6;
  margin-top: 1.4rem;
}

.admin-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin-bottom: 1.4rem;
}

.status-banner {
  width: 100%;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-input);
  margin-bottom: 1rem;
}

.status-banner.info    { background: var(--indigo-dim); color: var(--indigo-light); }
.status-banner.success { background: rgba(0, 212, 200, 0.12); color: var(--teal); }
.status-banner.error    { background: var(--red-bg); color: var(--red); }

.link-url {
  display: block;
  font-size: 0.66rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.1rem;
}

/* Beat .profile-card's display:flex — equal specificity, and author
   styles win over the UA [hidden] default at a tie, so without this
   an element with class="profile-card" and the hidden attribute set
   still renders. */
.profile-card[hidden] { display: none; }

#editorScreen .link-card { cursor: default; }
#editorScreen .link-card:hover { transform: none; }
#editorScreen .delete-btn { right: 10px; }

.btn-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}
