/* ============================================================
   KDEM — Sistema de Disseny Unificat
   Compartit per: index.html · organitzador.html
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  /* Colors */
  --cream:  #F9F4EE;
  --brown:  #3B2314;
  --rust:   #C04B1E;
  --gold:   #D4A853;
  --light:  #EDE5D8;
  --mid:    #A8896C;
  --green:  #2D6A4F;
  --smoke:  #F2EBE0;
  --danger: #b91c1c;

  /* Tipografia */
  --font-body:  'Inter', sans-serif;
  --font-brand: 'Righteous', sans-serif;

  /* Escala de text (base 16px) */
  --text-xs:  .65rem;   /* 10px — labels, badges */
  --text-sm:  .75rem;   /* 12px — text secundari */
  --text-md:  .825rem;  /* 13px — text base */
  --text-lg:  .925rem;  /* 15px — títols secundaris */
  --text-xl:  1.15rem;  /* 18px — títols principals */

  /* Radis */
  --radius-sm:  8px;
  --radius-md:  10px;
  --radius-lg:  12px;
  --radius-xl:  16px;

  /* Ombres */
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-rust: 0 4px 16px rgba(192,75,30,.25);

  /* Transicions */
  --transition: all .15s ease;
}

/* ── RESET ───────────────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  font-size: .875rem;
  background: var(--cream);
  color: var(--brown);
  min-height: 100vh;
}

button, [onclick] {
  touch-action: manipulation;
  font-family: var(--font-body);
}

/* ── MARCA KDEM ──────────────────────────────────────────────── */
.kdem-logo {
  font-family: var(--font-brand);
  color: var(--gold);
  letter-spacing: .04em;
}

/* ── BOTONS ──────────────────────────────────────────────────── */
/*
  Variants:  primary | secondary | ghost | danger
  Mides:     default (40px) | .btn-sm (32px) | .btn-icon (36×36)
  Amplada:   auto per defecte | .btn-block = 100%
*/

.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  width: auto;
  height: 40px;
  padding: 0 1.1rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-block { width: 100%; }

.btn-primary {
  background: var(--rust);
  color: white;
  border-color: var(--rust);
  box-shadow: var(--shadow-rust);
}
.btn-primary:hover,
.btn-primary:active { background: #a33d18; border-color: #a33d18; }
.btn-primary:disabled { background: var(--light); border-color: var(--light); color: var(--mid); box-shadow: none; cursor: not-allowed; }

.btn-secondary { background: white; color: var(--brown); border-color: var(--light); }
.btn-secondary:hover,
.btn-secondary:active { border-color: var(--mid); background: var(--smoke); }

.btn-ghost { background: transparent; color: var(--mid); border-color: var(--light); font-weight: 500; }
.btn-ghost:hover,
.btn-ghost:active { border-color: var(--mid); color: var(--brown); }

.btn-danger { background: transparent; color: var(--danger); border-color: #fca5a5; }
.btn-danger:hover,
.btn-danger:active { background: #fff1f1; }

.btn-sm { height: 32px; padding: 0 .75rem; font-size: var(--text-xs); }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--smoke);
  border: 1.5px solid var(--light);
  font-size: .95rem;
  color: var(--brown);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.btn-icon:hover,
.btn-icon:active { background: var(--rust); color: white; border-color: var(--rust); }
.btn-icon.btn-icon-danger:hover,
.btn-icon.btn-icon-danger:active { background: #fff1f1; color: var(--danger); border-color: #fca5a5; }

.btn-primary .spinner,
.btn-secondary .spinner { width: 16px; height: 16px; border-width: 2px; }

/* ── INPUTS ──────────────────────────────────────────────────── */
.form-input,
input[type="text"],
input[type="email"],
input[type="date"],
input[type="number"],
input[type="password"],
textarea {
  width: 100%;
  height: 48px;
  padding: 0 .9rem;
  border: 1.5px solid var(--light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem; /* mínim 16px → evita zoom iOS */
  color: var(--brown);
  background: var(--cream);
  transition: border-color .2s;
  appearance: none;
}

textarea {
  height: auto;
  min-height: 80px;
  padding: .65rem .9rem;
  resize: none;
}

.form-input:focus,
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--rust);
}

.form-label,
.label-sm {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--mid);
  margin-bottom: .4rem;
}

/* ── CARD ────────────────────────────────────────────────────── */
/*
  .card       — padding 1rem   (llistes, comandes, items)
  .card.card-lg — padding 1.2rem (panels amb més respiració)
*/
.card {
  background: white;
  border: 1.5px solid var(--light);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: .8rem;
  box-shadow: var(--shadow-sm);
}
.card.card-lg { padding: 1.2rem; }

/* ── SECTION TITLE ───────────────────────────────────────────── */
.section-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: .8rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── BADGES ──────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: var(--text-xs);
  padding: .18rem .5rem;
  border-radius: 20px;
  font-weight: 600;
  line-height: 1.4;
}
.badge-open   { background: #dcfce7; color: #166534; }
.badge-closed { background: #fee2e2; color: #991b1b; }

/* ── BANNER (feedback) ───────────────────────────────────────── */
.banner {
  padding: .85rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 500;
  font-size: var(--text-sm);
  display: none;
}
.banner.success { background: var(--green); color: white; display: block; }
.banner.error   { background: var(--danger); color: white; display: block; }

/* ── MODALS ──────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.modal-overlay.active { display: flex; }

.modal-box {
  background: white;
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  box-shadow: 0 -4px 40px rgba(0,0,0,.15);
}
.modal-header {
  padding: 1.2rem;
  border-bottom: 1.5px solid var(--light);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--brown);
}
.modal-body {
  padding: 1.25rem 1.2rem;
  font-size: var(--text-sm);
  color: var(--brown);
  line-height: 1.6;
}
.modal-footer {
  padding: 1rem 1.2rem;
  border-top: 1.5px solid var(--light);
  display: flex;
  gap: .6rem;
}
.modal-footer .btn-primary,
.modal-footer .btn-secondary,
.modal-footer .btn-danger { flex: 1; }

/* ── SPINNER ─────────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(0,0,0,.1);
  border-top-color: var(--rust);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  vertical-align: middle;
}
.btn-primary .spinner { border-top-color: white; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── EMPTY STATE ─────────────────────────────────────────────── */
.empty-msg {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--mid);
  font-size: var(--text-sm);
}
.empty-msg .empty-icon { font-size: 2.5rem; margin-bottom: .75rem; display: block; }

/* ── ACCORDION ───────────────────────────────────────────────── */
/*
  Ús: <div class="accordion-item"> (state: .open)
        <div class="accordion-header"> ... <span class="accordion-arrow">▶</span></div>
        <div class="accordion-body"> ... </div>
      </div>
  JS: item.classList.toggle('open')
*/
.accordion-item {
  background: white;
  border: 1.5px solid var(--light);
  border-radius: var(--radius-md);
  margin-bottom: .5rem;
  overflow: hidden;
}
.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .8rem 1rem;
  cursor: pointer;
  user-select: none;
  transition: background .15s;
}
.accordion-header:active { background: var(--smoke); }
.accordion-arrow {
  font-size: .65rem;
  color: var(--mid);
  transition: transform .2s;
  flex-shrink: 0;
}
.accordion-item.open .accordion-arrow { transform: rotate(90deg); }
.accordion-body {
  display: none;
  padding: .5rem 1rem 1rem;
  border-top: 1px solid var(--light);
  background: var(--cream);
}
.accordion-item.open .accordion-body { display: block; }

/* ── TOTALS BOX ──────────────────────────────────────────────── */
.totals-box {
  background: var(--brown);
  color: var(--cream);
  border-radius: var(--radius-md);
  padding: .9rem 1.1rem;
  margin-top: .8rem;
  margin-bottom: 1.2rem;
}
.totals-box h3 { color: var(--gold); margin-bottom: .5rem; font-size: var(--text-sm); }
.total-line {
  display: flex;
  justify-content: space-between;
  padding: .22rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: var(--text-sm);
}
.total-line:last-child { border: none; }

/* ── TRANSFER ROW ────────────────────────────────────────────── */
.transfer-row {
  padding: .75rem .9rem;
  border-radius: var(--radius-md);
  margin-bottom: .4rem;
  border: 1.5px solid var(--light);
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}
.transfer-row.jo-pago  { background: #fff1f1; border-color: #fca5a5; }
.transfer-row.em-paguen { background: #f0fdf4; border-color: #86efac; }
.transfer-row .tr-info { flex: 1; min-width: 0; }
.transfer-row .tr-nom { font-size: .95rem; font-weight: 500; color: var(--brown); }
.transfer-row .tr-detall { font-size: .78rem; color: var(--mid); margin-top: .2rem; }
.transfer-row .tr-detall strong { font-weight: 700; }
.transfer-row .tr-estat { flex-shrink: 0; text-align: right; }

/* ── PWA INSTALL MODAL ───────────────────────────────────────── */
#pwa-overlay { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.5); align-items: flex-end; }
#pwa-overlay.visible { display: flex; }
#pwa-sheet { background: #fff; border-radius: 20px 20px 0 0; padding: 1.2rem 1.4rem calc(1.6rem + env(safe-area-inset-bottom)); width: 100%; box-shadow: 0 -4px 30px rgba(0,0,0,.2); animation: pwaSlideUp .28s cubic-bezier(.32,1,.23,1); }
#pwa-sheet .pwa-drag { width: 36px; height: 4px; background: #ddd; border-radius: 2px; margin: 0 auto 1.2rem; }
#pwa-sheet .pwa-header { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; }
#pwa-sheet .pwa-icon-wrap { width: 54px; height: 54px; border-radius: 12px; overflow: hidden; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
#pwa-sheet .pwa-icon-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
#pwa-sheet .pwa-meta { flex: 1; min-width: 0; }
#pwa-sheet .pwa-meta strong { display: block; font-size: 1rem; font-weight: 700; color: #1a1a1a; }
#pwa-sheet .pwa-meta span { font-size: .8rem; color: #888; }
#pwa-sheet .pwa-close { background: #f0f0f0; border: none; border-radius: 50%; width: 28px; height: 28px; font-size: .85rem; cursor: pointer; color: #666; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#pwa-sheet .pwa-steps { list-style: none; margin: 0 0 1.3rem; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
#pwa-sheet .pwa-steps li { display: flex; align-items: center; gap: .85rem; font-size: .92rem; color: #222; line-height: 1.35; }
#pwa-sheet .pwa-steps li .step-num { background: var(--brown); color: var(--cream); border-radius: 50%; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; flex-shrink: 0; }
#pwa-sheet .pwa-btn-install { width: 100%; padding: .85rem; background: var(--rust); color: white; border: none; border-radius: 12px; font-size: 1rem; font-weight: 700; cursor: pointer; }
#pwa-sheet .pwa-btn-dismiss { width: 100%; padding: .7rem; background: #f5f5f5; border: 1.5px solid #ddd; border-radius: 12px; color: #555; font-size: .9rem; font-weight: 500; cursor: pointer; margin-top: .5rem; }
@keyframes pwaSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ============================================================
   APP PÚBLICA (index.html) — Header, nav, seccions participants
   ============================================================ */

/* ── HEADER ── */
header {
  background: var(--brown);
  color: var(--cream);
  padding: 1.2rem 1.2rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg,transparent,transparent 8px,rgba(255,255,255,.03) 8px,rgba(255,255,255,.03) 9px);
}
header h1 { font-size: clamp(1.3rem,5vw,2rem); position: relative; }
#header-info { font-size: .8rem; opacity: .6; font-weight: 300; position: relative; margin-top: .25rem; }
#header-back { position: absolute; top: 50%; left: 1rem; transform: translateY(-50%); z-index: 1; background: rgba(255,255,255,.12); border: none; border-radius: 8px; color: var(--cream); font-size: .8rem; padding: .35rem .7rem; cursor: pointer; display: none; }
#header-logo-small { font-size: .7rem; opacity: .45; letter-spacing: .05em; font-family: var(--font-brand); position: relative; margin-bottom: .1rem; }

/* ── BOTTOM NAV ── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: white;
  border-top: 1.5px solid var(--light);
  display: flex;
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .5rem .3rem .55rem;
  cursor: pointer;
  font-size: .68rem;
  font-weight: 500;
  color: var(--mid);
  gap: .2rem;
  border: none;
  background: none;
  position: relative;
  transition: color .2s;
}
.nav-item::before {
  content: '';
  position: absolute;
  top: 0; left: 25%; right: 25%;
  height: 2.5px;
  background: var(--rust);
  border-radius: 0 0 3px 3px;
  transform: scaleX(0);
  transition: transform .2s;
}
.nav-item .nav-icon { font-size: 1.25rem; line-height: 1; transition: transform .2s; }
.nav-item.active { color: var(--brown); font-weight: 700; }
.nav-item.active::before { transform: scaleX(1); }
.nav-item.active .nav-icon { transform: scale(1.15); }

/* ── ADMIN MENU FLOTANT ── */
.admin-menu { position: fixed; bottom: 65px; right: 1rem; z-index: 200; background: white; border: 1.5px solid var(--light); border-radius: var(--radius-md); box-shadow: 0 8px 24px rgba(0,0,0,.15); overflow: hidden; min-width: 160px; }
.admin-menu-item { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; width: 100%; border: none; background: white; color: var(--brown); font-size: .9rem; font-weight: 500; cursor: pointer; transition: all .15s; border-bottom: 1px solid var(--light); text-align: left; }
.admin-menu-item:last-child { border-bottom: none; }
.admin-menu-item:active { background: var(--smoke); }

/* ── MAIN ── */
main { max-width: 520px; margin: 0 auto; padding: 1rem .7rem 5.5rem; }

/* ── WELCOME ── */
.welcome-screen { text-align: center; padding: 2rem 0 1rem; }
.welcome-title { font-size: 1.5rem; margin-bottom: .5rem; }
.welcome-sub { font-size: .88rem; color: var(--mid); margin-bottom: 2rem; line-height: 1.5; }
.welcome-btns { display: flex; flex-direction: column; gap: .7rem; max-width: 300px; margin: 0 auto; }

/* ── SESSIONS ── */
.sessions-list { margin-bottom: 1.5rem; }
.sessions-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mid); margin-bottom: .6rem; font-weight: 600; }
.session-item { display: flex; align-items: center; background: white; border: 1.5px solid var(--light); border-radius: var(--radius-lg); padding: .75rem 1rem; margin-bottom: .5rem; gap: .75rem; cursor: pointer; transition: all .15s; text-align: left; width: 100%; }
.session-item:active { border-color: var(--rust); }
.session-avatar { width: 40px; height: 40px; background: var(--smoke); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.session-info { flex: 1; min-width: 0; }
.session-nom-trobada { font-size: .88rem; font-weight: 600; color: var(--brown); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.session-nom-familia { font-size: .78rem; color: var(--mid); margin-top: .1rem; }
.session-forget { width: 36px; height: 36px; background: transparent; border: 1.5px solid var(--light); border-radius: 50%; color: var(--mid); font-size: .75rem; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.session-forget:active { background: #fef2f2; color: var(--rust); border-color: #fca5a5; }
.sessions-divider { display: flex; align-items: center; gap: .75rem; margin: 1.2rem 0 1rem; color: var(--mid); font-size: .8rem; font-weight: 500; }
.sessions-divider::before,
.sessions-divider::after { content: ''; flex: 1; height: 1px; background: var(--light); }

/* ── PIN ── */
.pin-reveal { background: var(--brown); color: var(--cream); border-radius: var(--radius-xl); padding: 2rem 1.5rem; text-align: center; margin: 1rem 0; }
.pin-reveal-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; opacity: .6; margin-bottom: .8rem; }
.pin-reveal-number { font-size: 3.5rem; font-weight: 900; color: var(--gold); letter-spacing: .25em; }
.pin-reveal-warning { font-size: .8rem; opacity: .7; margin-top: .8rem; line-height: 1.5; }
.pin-screen { text-align: center; padding: 1.2rem 0; }
.pin-title { font-size: 1.4rem; font-weight: 700; margin-bottom: .4rem; }
.pin-subtitle { font-size: .85rem; color: var(--mid); margin-bottom: 1.5rem; }
.pin-dots { display: flex; justify-content: center; gap: .65rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.pin-dot { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--mid); transition: all .2s; }
.pin-dot.filled { background: var(--brown); border-color: var(--brown); }
.keypad { display: grid; grid-template-columns: repeat(3,1fr); gap: .6rem; max-width: 260px; margin: 0 auto; }
.key { background: white; border: 1.5px solid var(--light); border-radius: var(--radius-lg); padding: 1rem; font-size: 1.5rem; font-weight: 700; cursor: pointer; color: var(--brown); transition: all .15s; user-select: none; box-shadow: 0 2px 6px rgba(0,0,0,.05); }
.key:active { background: var(--brown); color: var(--cream); border-color: var(--brown); }
.key.del { font-size: 1.1rem; font-weight: 500; }
.key.ok { background: var(--rust); color: white; font-size: 1.3rem; border-color: var(--rust); }
.key.ok:active { background: #a03d15; }
.key.empty { background: transparent; border-color: transparent; box-shadow: none; cursor: default; pointer-events: none; }
.pin-error { color: var(--danger); font-size: .85rem; margin-top: .8rem; min-height: 1.2em; }

/* ── PRODUCTES / COMANDA ── */
.product-card { background: white; border: 1.5px solid var(--light); border-radius: var(--radius-md); padding: .65rem .9rem; display: flex; align-items: center; gap: .75rem; margin-bottom: .4rem; transition: border-color .15s, box-shadow .15s; }
.product-card.active { border-color: var(--gold); box-shadow: 0 2px 8px rgba(212,168,83,.15); }
.product-name { flex: 1; font-weight: 500; font-size: .875rem; line-height: 1.3; min-width: 0; }
.qty-control { display: flex; align-items: center; gap: .3rem; flex-shrink: 0; width: 110px; justify-content: flex-end; }
.qty-btn { width: 32px; height: 32px; border-radius: var(--radius-sm); border: 1.5px solid var(--light); background: var(--smoke); color: var(--brown); font-size: 1.1rem; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all .15s; flex-shrink: 0; vertical-align: middle; }
.qty-btn:active, .qty-btn:hover { background: var(--rust); color: white; border-color: var(--rust); }
.qty-btn:disabled { opacity: .35; cursor: not-allowed; }
.qty-num { width: 36px !important; min-width: 36px; height: 32px !important; line-height: 32px; text-align: center; font-size: 1rem; font-weight: 700; border: none !important; background: none !important; color: var(--brown); padding: 0 !important; flex-shrink: 0; appearance: textfield; -moz-appearance: textfield; }
.qty-num::-webkit-inner-spin-button,
.qty-num::-webkit-outer-spin-button { display: none; }
.qty-num:focus { outline: none; }

/* ── GASTOS ── */
.gasto-row { display: flex; align-items: center; gap: .5rem; padding: .55rem 0; border-bottom: 1px solid var(--light); font-size: .88rem; }
.gasto-row:last-child { border: none; }
.gasto-nom { flex: 1; font-weight: 500; }
.gasto-desc { flex: 2; color: var(--mid); font-size: .85rem; }
.gasto-import { font-family: var(--font-body); font-size: 1rem; font-weight: 700; min-width: 55px; text-align: right; }

/* ── LIQUIDACIÓ ── */
.liquid-family-row { display: flex; justify-content: space-between; align-items: center; padding: .55rem .9rem; border-bottom: 1px solid var(--light); }
.liquid-family-row:last-child { border: none; }
.liquid-family-row.jo { background: var(--smoke); }
.liquidacio-box { background: var(--brown); color: var(--cream); border-radius: 12px; padding: 1.2rem 1.4rem; }
.liquidacio-box h3 { color: var(--gold); margin-bottom: 1rem; }
.saldo-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .35rem 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .88rem; }
.saldo-row:last-child { border: none; }
.saldo-row .saldo-info { min-width: 0; flex: 1; }
.saldo-row .saldo-nom { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saldo-row .saldo-adults { font-size: .72rem; opacity: .5; margin-top: .1rem; }
.saldo-row .saldo-imports { flex-shrink: 0; text-align: right; }
.saldo-pos { color: #86efac; font-weight: 600; }
.saldo-neg { color: #fca5a5; font-weight: 600; }
.transferencia { background: rgba(255,255,255,.08); border-radius: 8px; padding: .6rem .9rem; margin-top: .5rem; font-size: .9rem; display: flex; justify-content: space-between; align-items: center; }
.transferencia .arrow { color: var(--gold); font-size: 1.1rem; }
.transferencia .import { font-size: 1.1rem; font-weight: 700; color: var(--gold); }

/* ── CLOSED / SUCCESS ── */
.closed-notice { background: var(--brown); color: var(--cream); border-radius: var(--radius-lg); padding: 2rem; text-align: center; margin-top: 1rem; }
.closed-notice h2 { color: var(--gold); margin-bottom: .5rem; }
.success-screen { text-align: center; padding: 2.5rem 1rem; }
.success-screen h2 { font-size: 1.3rem; margin-bottom: .5rem; margin-top: .8rem; }
.success-screen p { color: var(--mid); font-size: .88rem; margin-bottom: 1.5rem; }
