/* Bajo el Árbol — estilo "Bosque" (verde profundo, dorado y destellos).
   El estilo anterior está guardado en styles-clasico.css */
:root {
  --forest: #0b2e1b;
  --forest-2: #0f3a23;
  --card: #164a2e;
  --card-2: #1a5233;
  --bar: #123d26;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #ffffff;
  --muted: #b8d4c2;
  --muted-2: #8fb39d;
  --gold: #f2c94c;
  --gold-deep: #c99d22;
  --berry: #d12f3b; /* texto blanco encima: contraste AA */
  --berry-deep: #a81c27;
  --radius: 22px;
  --tabbar-h: 84px;
  --font: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  font-weight: 500;
  color: var(--text);
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(47, 122, 74, .55), transparent 60%),
    radial-gradient(ellipse 80% 40% at 100% 100%, rgba(47, 122, 74, .25), transparent 60%),
    var(--forest);
  background-attachment: fixed;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.45;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
body.night { background: radial-gradient(ellipse 120% 60% at 50% 0%, rgba(47, 122, 74, .6), transparent 60%), var(--forest); }
img, svg { display: block; }
a { color: var(--gold); }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font); font-weight: 900; line-height: 1.1; margin: 0; color: var(--text); letter-spacing: -.2px; }
h1 { font-size: clamp(2rem, 7vw, 2.6rem); }
h2 { font-size: 1.35rem; font-weight: 800; }
h3 { font-size: 1.08rem; font-weight: 800; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 10px; }

/* ---------- nieve y destellos ---------- */
.snow { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.snow i {
  position: absolute; top: -10px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, .7);
  animation: fall linear infinite;
}
@keyframes fall { to { transform: translate3d(var(--drift, 20px), 105vh, 0); } }
.sparkle { position: fixed; z-index: 0; pointer-events: none; color: #fff; opacity: .75; animation: twinkle 3.6s ease-in-out infinite; }
.sparkle svg { width: 100%; height: 100%; }
@keyframes twinkle { 50% { opacity: .2; transform: scale(.7) rotate(20deg); } }
@media (prefers-reduced-motion: reduce) { .snow { display: none; } .sparkle { animation: none; } }

/* ---------- barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: calc(12px + env(safe-area-inset-top)) 18px 12px;
  background: rgba(11, 46, 27, .82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; color: inherit; text-decoration: none; margin-right: auto; }
.brand img { background: #fff; border-radius: 12px; padding: 3px; flex: none; }
.brand span { font-size: 1.2rem; font-weight: 900; letter-spacing: -.2px; white-space: nowrap; }
@media (max-width: 380px) {
  .brand span { font-size: 1.05rem; }
  .countdown .long { display: none; }
}
@media (max-width: 340px) { .brand span { display: none; } }
.countdown {
  font-size: .82rem; font-weight: 800; color: var(--forest);
  background: var(--gold); padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}
.avatar-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--gold);
  background: var(--berry); color: #fff; font-weight: 900; cursor: pointer; flex: none;
  overflow: visible; padding: 0; display: grid; place-items: center;
}

/* ---------- vista ---------- */
.view {
  position: relative; z-index: 1;
  max-width: 760px; margin: 0 auto;
  padding: 26px 18px calc(var(--tabbar-h) + 44px + env(safe-area-inset-bottom));
  outline: none;
}
.view.bare { padding-bottom: 40px; }
/* con botón flotante: espacio extra para que nunca tape la última tarjeta */
.view:has(.fab) { padding-bottom: calc(var(--tabbar-h) + 124px + env(safe-area-inset-bottom)); }
.page-head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .sub { color: var(--gold); font-weight: 800; font-size: 1.05rem; margin-top: 6px; }
.page-head .desc { color: var(--muted); margin-top: 2px; flex: 0 0 100%; padding-right: 20%; }
.back {
  display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-weight: 700; margin-bottom: 16px; font-size: .95rem;
}
.back::before {
  content: "←"; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); color: #fff; font-size: 1.05rem;
}
.back:hover { color: #fff; }

/* adorno de esfera y acebo en el encabezado */
.deco { position: absolute; right: -14px; top: -34px; width: 132px; height: 116px; pointer-events: none; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); }
@media (max-width: 420px) { .deco { width: 104px; height: 92px; right: -10px; top: -26px; } }

/* ---------- barra inferior ---------- */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 20;
  width: min(calc(100% - 28px), 520px);
  display: flex; justify-content: space-around; gap: 4px;
  padding: 8px; background: rgba(18, 61, 38, .94); backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong); border-radius: 26px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
}
.tabbar a {
  flex: 1; min-height: 54px; border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--muted-2); text-decoration: none; font-size: .76rem; font-weight: 800;
}
.tabbar svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.active { color: var(--forest); background: #fff; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 999px; border: 0;
  font-weight: 900; cursor: pointer; text-decoration: none; transition: transform .08s, filter .15s;
  background: #fff; color: var(--forest);
}
.btn:hover { filter: brightness(.94); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.red { background: var(--berry); color: #fff; box-shadow: 0 8px 20px rgba(226, 59, 69, .35); }
.btn.gold { background: var(--gold); color: var(--forest); box-shadow: 0 8px 20px rgba(242, 201, 76, .25); }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn.ghost:hover { background: rgba(255, 255, 255, .06); filter: none; }
.btn.small { min-height: 42px; padding: 0 16px; font-size: .92rem; }
.btn.block { width: 100%; }
.link-btn { background: none; border: 0; padding: 8px 6px; color: var(--muted); font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 40px; }
.link-btn:hover { color: #fff; }
.link-btn.danger { color: #ff8e95; }

.fab {
  position: fixed; right: max(18px, calc(50vw - 362px)); bottom: calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom)); z-index: 15;
  min-height: 56px; padding: 0 24px; font-size: 1rem;
}

/* ---------- avisos ---------- */
.note {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(242, 201, 76, .08); border: 1px dashed rgba(242, 201, 76, .45); border-radius: 18px;
  padding: 12px 14px; color: var(--muted); font-size: .93rem; margin-bottom: 18px;
}
.note b { color: #fff; }
.note .ico { font-size: 1.2rem; line-height: 1.2; }
.note.warn { background: rgba(226, 59, 69, .12); border: 1px solid rgba(255, 142, 149, .4); }

/* ---------- mosaicos de datos ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat svg { width: 36px; height: 36px; margin-bottom: 8px; }
.stat b { display: block; font-size: 1.1rem; font-weight: 900; }
.stat span { color: var(--muted); font-size: .88rem; }

/* ---------- tarjetas de regalo ---------- */
.gifts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.tag {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 8px;
}
.tag.grupal { background: linear-gradient(135deg, #1a5233, #164a2e); border-color: rgba(242, 201, 76, .22); }
.tag-top { display: flex; align-items: center; gap: 12px; }
.tag-ico {
  width: 52px; height: 52px; border-radius: 16px; background: var(--forest-2); flex: none;
  display: grid; place-items: center;
}
.tag-ico svg { width: 38px; height: 38px; }
.tag-title { flex: 1; min-width: 0; }
.tag h3 { font-size: 1.08rem; word-break: break-word; }
.stars { color: var(--gold); letter-spacing: 1px; font-size: .9rem; white-space: nowrap; }
.stars .off { color: rgba(255, 255, 255, .18); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; color: var(--muted); font-size: .9rem; }
.price { font-weight: 900; color: var(--gold); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800;
  padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff;
}
.chip.gold { background: rgba(242, 201, 76, .16); color: var(--gold); }
.chip.red { background: rgba(226, 59, 69, .18); color: #ff9aa1; }
.notes { color: #e3efe7; font-size: .95rem; white-space: pre-wrap; word-break: break-word; }
.tag-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; padding-top: 2px; }
.tag.archived { opacity: .7; border-style: dashed; }
.tag-actions .spacer { flex: 1; }
.store-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: .92rem; color: var(--gold); text-decoration: none; min-height: 40px; }
.store-link:hover { text-decoration: underline; }
.no-link { display: inline-flex; align-items: center; min-height: 40px; font-size: .88rem; font-weight: 700; color: var(--muted-2); }

/* tomado por otra persona */
.tag.taken { background: rgba(22, 74, 46, .45); border: 1px dashed rgba(255, 255, 255, .22); }
.tag.taken h3, .tag.taken .notes, .tag.taken .meta, .tag.taken .tag-ico { opacity: .55; }
.ribbon {
  position: absolute; top: 14px; right: -36px; transform: rotate(35deg);
  background: var(--gold); color: var(--forest); font-size: .72rem; font-weight: 900; letter-spacing: .4px;
  padding: 5px 42px; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); text-transform: uppercase;
}
.ribbon.gold { background: var(--berry); color: #fff; }
.tag.has-ribbon .tag-top { padding-right: 62px; }
.status-line { font-size: .9rem; font-weight: 800; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.status-line.mine { color: var(--gold); }
.for-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.for-line b { color: #fff; }
.for-line .via { color: var(--muted-2); }
.mini-avatar.tiny { width: 22px; height: 22px; font-size: .62rem; }
.pledge { margin-top: 8px; }
.pledge .bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.pledge .bar span { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.organizer { font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .3px; color: var(--forest); background: var(--gold); border-radius: 99px; padding: 1px 6px; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.toggle { border: 1.5px solid var(--line-strong); background: transparent; color: var(--muted); border-radius: 999px; min-height: 40px; padding: 0 14px; font-weight: 800; cursor: pointer; }
.toggle[aria-pressed="true"] { background: #fff; color: var(--forest); border-color: #fff; }
.managed-list { display: grid; gap: 10px; }
.reveal-card { display: flex; gap: 14px; align-items: center; background: linear-gradient(135deg, #1a5233, #164a2e); border: 1px solid rgba(242, 201, 76, .4); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; color: inherit; text-decoration: none; }
.reveal-card svg { width: 44px; height: 44px; flex: none; }
.changed-line {
  font-size: .88rem; font-weight: 700; color: #ffe08a;
  background: rgba(242, 201, 76, .1); border: 1px solid rgba(242, 201, 76, .35); border-radius: 12px; padding: 8px 10px;
}
.people { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- personas (esferas) ---------- */
.members { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(132px, 42%), 1fr)); }
.member {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 12px 16px; text-decoration: none; color: inherit;
  transition: transform .12s, background .12s;
}
.member:hover { transform: translateY(-3px); background: var(--card-2); }
.member::before { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 16px; background: var(--gold); }
.ornament {
  width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; position: relative;
  font-size: 1.55rem; font-weight: 900; color: #fff;
  box-shadow: inset -7px -9px 0 rgba(0, 0, 0, .18), inset 7px 7px 0 rgba(255, 255, 255, .22), 0 10px 20px rgba(0, 0, 0, .3);
}
.ornament::before { content: ""; position: absolute; z-index: 1; top: -7px; width: 16px; height: 9px; border-radius: 3px; background: var(--gold); }
.member .name { font-weight: 900; font-size: 1.05rem; }
.member .count { font-size: .85rem; color: var(--muted); }

.family-list { display: grid; gap: 12px; }
.family-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  text-decoration: none; color: inherit;
}
.family-card:hover { background: var(--card-2); }
.family-card .fname { font-size: 1.25rem; font-weight: 900; }
.family-card .arrow { color: var(--gold); font-size: 1.6rem; }

/* ---------- formularios ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .field .label { font-weight: 800; font-size: .92rem; }
.field .hint { font-size: .82rem; color: var(--muted); }
.input, textarea.input, select.input {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 14px;
  border: 1.5px solid var(--line-strong); background: var(--forest-2); color: #fff; transition: border-color .15s;
}
.input::placeholder { color: rgba(255, 255, 255, .4); }
textarea.input { min-height: 88px; resize: vertical; }
.input:focus { border-color: var(--gold); outline: none; }
.input[readonly] { background: rgba(255, 255, 255, .05); color: var(--muted); }
select.input option { background: var(--forest-2); }
select.input.compact { min-height: 40px; width: auto; padding: 4px 10px; font-size: .85rem; border-radius: 999px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .row2 { grid-template-columns: 1fr; } }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segmented label {
  display: flex; flex-direction: column; gap: 2px; cursor: pointer;
  border: 1.5px solid var(--line-strong); border-radius: 16px; padding: 10px 12px; background: var(--forest-2); font-weight: 800;
}
.segmented label small { font-weight: 600; color: var(--muted); font-size: .78rem; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { border-color: var(--gold); background: rgba(242, 201, 76, .1); }
.segmented label:has(input:focus-visible) { outline: 3px solid var(--gold); }

.star-pick { display: flex; gap: 6px; }
.star-pick button {
  flex: 1; min-height: 50px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--forest-2); cursor: pointer;
  font-size: .8rem; font-weight: 800; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; padding: 4px;
}
.star-pick button span { color: var(--gold); font-size: 1rem; }
.star-pick button[aria-pressed="true"] { border-color: var(--gold); background: rgba(242, 201, 76, .1); color: #fff; }

.optional-divider {
  display: flex; align-items: center; gap: 10px; margin: 6px 0 14px;
  font-size: .78rem; font-weight: 900; color: var(--muted-2); text-transform: uppercase; letter-spacing: .5px;
}
.optional-divider::before, .optional-divider::after { content: ""; flex: 1; border-top: 1px dashed var(--line-strong); }
.error { color: #ff9aa1; font-weight: 800; font-size: .9rem; min-height: 1.2em; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--forest-2); cursor: pointer; font-weight: 800; font-size: .9rem; }
.checks label:has(input:checked) { border-color: var(--gold); background: rgba(242, 201, 76, .1); }
.checks input { accent-color: var(--gold); }

/* ---------- bienvenida ---------- */
.welcome { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; position: relative; z-index: 1; }
.welcome-card {
  width: 100%; max-width: 420px; background: rgba(22, 74, 46, .92); border-radius: 30px; padding: 32px 24px 24px;
  border: 1px solid var(--line-strong); box-shadow: 0 30px 70px rgba(0, 0, 0, .45); position: relative;
}
.welcome-logo { width: 92px; height: 92px; margin: 0 auto 12px; background: #fff; border-radius: 26px; padding: 8px; }
.welcome-card h1 { text-align: center; font-size: clamp(1.75rem, 8.5vw, 2.2rem); }
@media (max-width: 360px) { .welcome { padding: 24px 12px; } .welcome-card { padding: 26px 18px 20px; } }
.welcome-card .lead { text-align: center; color: var(--muted); margin: 8px 0 22px; }
.welcome-foot { text-align: center; margin-top: 16px; font-size: .85rem; color: var(--muted); }

/* ---------- vacíos ---------- */
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty svg { width: 120px; height: 120px; margin: 0 auto 14px; }
.empty h2 { margin-bottom: 6px; }

/* ---------- hoja/modal ---------- */
.sheet {
  border: 1px solid var(--line-strong); padding: 0; width: min(560px, 100%); max-height: 92vh; border-radius: 28px;
  background: var(--bar); color: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.sheet::backdrop { background: rgba(4, 18, 10, .6); backdrop-filter: blur(3px); }
.sheet-inner { padding: 24px 20px 20px; overflow: auto; max-height: 92vh; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sheet-close { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: transparent; color: #fff; cursor: pointer; font-size: 1.1rem; }
.sheet-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }
@media (max-width: 480px) { .sheet-actions > .btn { flex: 1 1 0; padding: 0 12px; } }
.sheet-inner:focus { outline: none; }
@media (max-width: 560px) {
  .sheet { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 28px 28px 0 0; }
  .sheet-inner { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 30px + env(safe-area-inset-bottom)); z-index: 50;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #fff; color: var(--forest); padding: 12px 20px; border-radius: 999px; font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35); transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--berry); color: #fff; }

/* ---------- admin ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.panel h2 { margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.list li:first-child { border-top: 0; }
.list .grow { flex: 1; min-width: 160px; }
.list .small { font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form .input { flex: 1; min-width: 180px; }
.small-note { color: var(--muted); font-size: .9rem; margin: -4px 0 12px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 0 10px; margin-top: 2px; }
.row-actions .link-btn { padding-left: 0; padding-right: 0; }
.danger-zone { border-color: rgba(255, 142, 149, .25); }
.member .chip { margin-top: -2px; }
.linkbox { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.linkbox .input { flex: 1; min-width: 200px; font-size: .85rem; }

.mini-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: .85rem; flex: none; }
.chip .mini-avatar { width: 20px; height: 20px; font-size: .6rem; }
.has-photo { position: relative; }
.has-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-photo { width: 116px; height: 116px; font-size: 2.4rem; margin: 6px auto 14px; }
.profile-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }

.loading { display: grid; place-items: center; padding: 60px 0; color: var(--muted); gap: 12px; }
.loading .spin { width: 34px; height: 34px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .15); border-top-color: var(--gold); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.section-title { font-size: 1.2rem; font-weight: 900; margin: 26px 0 12px; display: flex; align-items: center; gap: 10px; }
.section-title:first-child { margin-top: 0; }
