/* ===================================================
   VELOURS — Birthday Calendar
   Typography: Cormorant (display) + Syne (body)
   Palette: plum-black · crème · or ambré
   =================================================== */

:root {
  --font-display: 'Cormorant', Georgia, serif;
  --font-body: 'Syne', system-ui, sans-serif;

  --bg:        #0C0910;
  --surface:   #17111C;
  --surface2:  #211929;
  --surface3:  #2B2136;
  --border:    rgba(230,195,150,0.07);
  --border2:   rgba(230,195,150,0.15);
  --text:      #F2E8DA;
  --text-2:    #9A8676;
  --text-3:    #5C4A40;
  --gold:      #E0AA50;
  --gold-dim:  rgba(224,170,80,0.12);
  --gold-glow: rgba(224,170,80,0.26);
  --rose:      #E06878;
  --rose-dim:  rgba(224,104,120,0.13);
  --green:     #6CC4A0;
  --green-dim: rgba(108,196,160,0.12);
  --shadow:    0 4px 32px rgba(0,0,0,0.5);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.72);
  --radius:    14px;
  --radius-sm: 10px;
  --radius-xs: 7px;
  --header-h:  64px;
}

[data-theme="light"] {
  --bg:        #F9F4EC;
  --surface:   #FFFFFF;
  --surface2:  #F2E9DC;
  --surface3:  #E8DDD0;
  --border:    rgba(60,40,20,0.08);
  --border2:   rgba(60,40,20,0.16);
  --text:      #1A1208;
  --text-2:    #6A5A48;
  --text-3:    #A8947E;
  --gold:      #B8860C;
  --gold-dim:  rgba(184,134,12,0.10);
  --gold-glow: rgba(184,134,12,0.22);
  --rose:      #C8404E;
  --rose-dim:  rgba(200,64,78,0.10);
  --green:     #3A9468;
  --green-dim: rgba(58,148,104,0.10);
  --shadow:    0 4px 32px rgba(0,0,0,0.07);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.13);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background .3s, color .3s;
  overflow-x: hidden;
}

/* Subtle grain texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: .032;
  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='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

input, button, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.w-full { width: 100%; }

/* ──────────────────────────────────────────────────────
   AUTH
────────────────────────────────────────────────────── */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.auth-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 15%, rgba(224,170,80,.09) 0%, transparent 65%),
    radial-gradient(ellipse 55% 45% at 85% 85%, rgba(224,104,120,.06) 0%, transparent 65%),
    radial-gradient(ellipse 50% 70% at 55% 40%, rgba(108,196,160,.04) 0%, transparent 65%);
}

/* Large watermark */
.auth-ambient::after {
  content: 'ANNIVERSAIRES';
  position: absolute;
  bottom: -1.5rem;
  right: -1rem;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 11vw, 8.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--gold);
  opacity: .045;
  white-space: nowrap;
  letter-spacing: .05em;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 22px;
  padding: 2.75rem 2.5rem;
  box-shadow: var(--shadow-lg);
  animation: fadeUp .4s cubic-bezier(.16,1,.3,1);
}

/* Corner ornaments */
.auth-card::before,
.auth-card::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  border-color: var(--gold);
  border-style: solid;
  opacity: .28;
}
.auth-card::before { top: 13px; left: 13px; border-width: 1.5px 0 0 1.5px; border-radius: 4px 0 0 0; }
.auth-card::after  { bottom: 13px; right: 13px; border-width: 0 1.5px 1.5px 0; border-radius: 0 0 4px 0; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-logo { text-align: center; font-size: 2.2rem; margin-bottom: .6rem; line-height: 1; }

.auth-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  font-style: italic;
  text-align: center;
  letter-spacing: .01em;
  margin-bottom: .3rem;
}

.auth-sub {
  text-align: center;
  color: var(--text-2);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.auth-tabs {
  display: flex;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: 1.75rem;
  gap: 3px;
}

.auth-tab {
  flex: 1;
  padding: .5rem;
  border-radius: 7px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: all .2s;
}

.auth-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 8px rgba(0,0,0,.28);
}

.auth-form { display: flex; flex-direction: column; gap: 1.1rem; }

/* ──────────────────────────────────────────────────────
   FIELDS
────────────────────────────────────────────────────── */

.field { display: flex; flex-direction: column; gap: .35rem; }

.field label {
  font-size: .68rem;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.field input,
.field select,
.field textarea {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xs);
  padding: .7rem .9rem;
  color: var(--text);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  font-size: .88rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--text-3); font-style: italic; }
.field textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.req { color: var(--gold); }

.field-row { display: flex; gap: .75rem; align-items: flex-start; }
.flex-1 { flex: 1; }
.field-toggle { width: 130px; flex-shrink: 0; }

.form-error {
  background: var(--rose-dim);
  border: 1px solid rgba(224,104,120,.25);
  border-radius: var(--radius-xs);
  color: var(--rose);
  font-size: .8rem;
  font-weight: 500;
  padding: .65rem .9rem;
}

/* ──────────────────────────────────────────────────────
   BUTTONS
────────────────────────────────────────────────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .75rem 1.5rem;
  background: var(--gold);
  color: #0C0910;
  border-radius: var(--radius-xs);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: filter .15s, transform .1s;
}
.btn-primary:hover  { filter: brightness(1.08); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); filter: brightness(.94); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem 1.3rem;
  color: var(--text-2);
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: 1px solid var(--border2);
  transition: all .15s;
}
.btn-ghost:hover { background: var(--surface2); color: var(--text); }

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem 1.3rem;
  color: var(--rose);
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: .75rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: all .15s;
}
.btn-danger:hover { background: var(--rose-dim); }

.icon-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-xs);
  color: var(--text-2);
  transition: all .15s;
  position: relative;
}
.icon-btn:hover { background: var(--surface2); color: var(--text); }

.btn-ie {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .95rem;
  color: var(--text-2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: all .15s;
  white-space: nowrap;
}
.btn-ie:hover { background: var(--gold-dim); color: var(--gold); border-color: var(--gold); }
.btn-ie span { display: none; }
@media (min-width: 560px) { .btn-ie span { display: inline; } }

.btn-add {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem 1.1rem;
  background: var(--gold);
  color: #0C0910;
  border-radius: var(--radius-xs);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: filter .15s, transform .1s;
  white-space: nowrap;
}
.btn-add:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ──────────────────────────────────────────────────────
   TOGGLE
────────────────────────────────────────────────────── */

.toggle { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; inset: 0;
  background: var(--surface3);
  border: 1px solid var(--border2);
  border-radius: 24px;
  transition: background .2s, border-color .2s;
  cursor: pointer;
}
.slider::before {
  content: '';
  position: absolute;
  height: 16px; width: 16px;
  left: 3px; top: 3px;
  background: var(--text-2);
  border-radius: 50%;
  transition: transform .2s, background .2s;
}
.toggle input:checked + .slider { background: var(--gold); border-color: var(--gold); }
.toggle input:checked + .slider::before { transform: translateX(18px); background: #0C0910; }

.toggle-row { display: flex; align-items: center; gap: .6rem; margin-top: .4rem; }
.toggle-txt { font-size: .72rem; font-weight: 700; color: var(--text-2); letter-spacing: .06em; text-transform: uppercase; }

/* ──────────────────────────────────────────────────────
   HEADER
────────────────────────────────────────────────────── */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(12,9,16,.88);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
  z-index: 100;
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  transition: background .3s;
}

[data-theme="light"] .header { background: rgba(249,244,236,.9); }

.header-left { flex: 1; }
.header-center { display: flex; justify-content: center; }
.header-right { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: .4rem; }

.logo { display: flex; align-items: center; gap: .55rem; }
.logo-icon { font-size: 1.2rem; line-height: 1; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  font-style: italic;
  color: var(--text);
  letter-spacing: .02em;
}

.view-toggle {
  display: flex;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}

.vtog {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .38rem .9rem;
  border-radius: 7px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: all .2s;
}
.vtog span { display: none; }
@media (min-width: 480px) { .vtog span { display: inline; } }
.vtog.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 6px rgba(0,0,0,.3); }

/* Avatar */
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  color: var(--gold);
  cursor: pointer;
  position: relative;
  user-select: none;
  flex-shrink: 0;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px); right: 0;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  min-width: 210px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: fadeDown .2s cubic-bezier(.16,1,.3,1);
  z-index: 200;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dropdown-info { padding: 1rem 1.1rem; border-bottom: 1px solid var(--border); }
.dropdown-info strong { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .15rem; }
.dropdown-info small { color: var(--text-2); font-size: .75rem; }
.dropdown-sep { border: none; border-top: 1px solid var(--border); }
.dropdown-item {
  width: 100%; padding: .75rem 1.1rem;
  text-align: left; font-size: .72rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  transition: background .15s;
}
.dropdown-item:hover { background: var(--surface2); }
.dropdown-item.danger { color: var(--rose); }

.notif-badge {
  position: absolute;
  top: 3px; right: 3px;
  width: 8px; height: 8px;
  background: var(--rose);
  border-radius: 50%;
  border: 2px solid var(--surface);
}

/* ──────────────────────────────────────────────────────
   MAIN
────────────────────────────────────────────────────── */

.app { display: flex; flex-direction: column; min-height: 100vh; }

.main {
  margin-top: var(--header-h);
  flex: 1;
  padding: 2rem 1.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* ──────────────────────────────────────────────────────
   STATS BAR
────────────────────────────────────────────────────── */

.stats-bar {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  animation: fadeUp .35s cubic-bezier(.16,1,.3,1) .05s both;
}

.stat-card {
  flex: 1;
  min-width: 110px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  position: relative;
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--border2);
  transition: background .2s;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-card.highlight::after { background: var(--gold); }
.stat-card.rose::after      { background: var(--rose); }

.stat-val {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  letter-spacing: -.01em;
}
.stat-label { font-size: .65rem; color: var(--text-2); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.stat-card.highlight .stat-val { color: var(--gold); }
.stat-card.rose .stat-val      { color: var(--rose); }

/* ──────────────────────────────────────────────────────
   LIST VIEW
────────────────────────────────────────────────────── */

.view { animation: fadeUp .28s cubic-bezier(.16,1,.3,1); }

.list-toolbar {
  display: flex;
  gap: .75rem;
  margin-bottom: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: 1;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: .6rem .95rem;
  transition: border-color .15s, box-shadow .15s;
}
.search-box:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
.search-ico { color: var(--text-3); flex-shrink: 0; }
.search-box input { flex: 1; border: none; background: none; outline: none; color: var(--text); font-size: .88rem; }
.search-box input::placeholder { color: var(--text-3); font-style: italic; }

.group-select {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: .6rem .95rem;
  color: var(--text);
  outline: none;
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%239A8676' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  padding-right: 2.2rem;
}
.group-select:focus { border-color: var(--gold); }

/* Month group */
.month-group { margin-bottom: 2.25rem; }

.month-heading {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  font-style: italic;
  color: var(--text);
  padding: 0 0 .75rem;
  margin-bottom: .75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: .6rem;
}

.month-heading .month-count {
  font-family: var(--font-body);
  font-style: normal;
  font-size: .64rem;
  font-weight: 700;
  background: var(--surface2);
  color: var(--text-3);
  padding: .15rem .55rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .07em;
}

/* Birthday card */
.bday-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border2);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  margin-bottom: .5rem;
  cursor: pointer;
  transition: all .18s;
  animation: fadeUp .22s cubic-bezier(.16,1,.3,1);
}
.bday-card:hover {
  border-color: var(--border2);
  border-left-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.bday-card.today {
  border-color: var(--gold);
  border-left-color: var(--gold);
  background: linear-gradient(100deg, var(--gold-dim) 0%, var(--surface) 55%);
}
.bday-card.soon { border-left-color: var(--rose); }

.bday-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  flex-shrink: 0;
  background: var(--gold-dim);
  color: var(--gold);
  border: 1.5px solid transparent;
}
.bday-card.today .bday-avatar { border-color: var(--gold); }

.bday-info { flex: 1; min-width: 0; }
.bday-name { font-size: .95rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .01em; }
.bday-meta { display: flex; align-items: center; gap: .5rem; margin-top: .2rem; flex-wrap: wrap; }
.bday-date { font-size: .76rem; color: var(--text-2); font-weight: 500; }
.bday-age  { font-size: .7rem;  color: var(--text-3); font-weight: 600; letter-spacing: .03em; }

.bday-group-tag {
  font-size: .63rem;
  font-weight: 700;
  padding: .1rem .5rem;
  border-radius: 20px;
  background: var(--surface2);
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .07em;
  border: 1px solid var(--border2);
}

.bday-right { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; flex-shrink: 0; }

.days-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: .28rem .7rem;
  border-radius: 20px;
  letter-spacing: .04em;
}
.days-badge.today    { background: var(--gold); color: #0C0910; }
.days-badge.soon     { background: var(--rose-dim); color: var(--rose); }
.days-badge.upcoming { background: var(--surface2); color: var(--text-2); }

/* Empty state */
.empty-state { text-align: center; padding: 5rem 2rem; color: var(--text-2); }
.empty-emoji { font-size: 3rem; margin-bottom: 1.25rem; display: block; }
.empty-state h3 { font-family: var(--font-display); font-size: 1.5rem; font-style: italic; font-weight: 600; color: var(--text); margin-bottom: .5rem; }
.empty-state p  { font-size: .85rem; margin-bottom: 1.75rem; }

/* ──────────────────────────────────────────────────────
   CALENDAR
────────────────────────────────────────────────────── */

.cal-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .cal-layout { grid-template-columns: 1fr; }
  .cal-sidebar { display: none; }
}

.cal-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cal-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.cal-month-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  font-style: italic;
  text-transform: capitalize;
  letter-spacing: .01em;
}

.cal-nav-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-xs);
  color: var(--text-2);
  border: 1px solid var(--border2);
  transition: all .15s;
}
.cal-nav-btn:hover { background: var(--surface2); color: var(--text); }

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: .6rem 1rem .35rem;
  border-bottom: 1px solid var(--border);
}
.cal-weekdays span {
  text-align: center;
  font-size: .63rem;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .09em;
}
.cal-weekdays span.weekend { color: var(--gold); opacity: .7; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: .75rem 1rem 1rem;
  gap: 4px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  padding-top: .45rem; gap: 3px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: background .12s;
  position: relative;
  min-height: 44px;
}
.cal-day:hover { background: var(--surface2); }
.cal-day.empty { cursor: default; }
.cal-day.empty:hover { background: none; }

.cal-day-num { font-size: .79rem; font-weight: 500; color: var(--text-2); line-height: 1; }

.cal-day.today .cal-day-num {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold);
  color: #0C0910;
  border-radius: 50%;
  font-weight: 800;
  font-size: .77rem;
}

.cal-day.other-month .cal-day-num { color: var(--text-3); opacity: .35; }

.cal-dots { display: flex; gap: 2px; flex-wrap: wrap; justify-content: center; max-width: 28px; }
.cal-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.cal-dot.today-dot { background: var(--rose); }

/* Day popup */
.day-popup {
  position: fixed;
  z-index: 300;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px; max-width: 280px;
  padding: 1rem 1.1rem;
  animation: fadeUp .18s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}

.day-popup-date {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  font-style: italic;
  color: var(--gold);
  margin-bottom: .65rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

.popup-bday-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .4rem 0;
  border-bottom: 1px solid var(--border);
}
.popup-bday-item:last-child { border-bottom: none; }

.popup-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gold-dim);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: .8rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.popup-name { font-size: .84rem; font-weight: 600; }
.popup-age  { font-size: .72rem; color: var(--text-2); font-weight: 500; }

/* Calendar sidebar */
.cal-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.sidebar-heading {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 600; font-style: italic;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}

.upcoming-list { display: flex; flex-direction: column; gap: .35rem; }

.upcoming-item {
  display: flex; align-items: center; gap: .65rem;
  padding: .6rem .7rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: background .12s;
}
.upcoming-item:hover { background: var(--surface2); }

.up-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: .88rem; font-weight: 600;
  background: var(--gold-dim); color: var(--gold);
  flex-shrink: 0;
}

.up-info { flex: 1; min-width: 0; }
.up-name { font-size: .84rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-date { font-size: .72rem; color: var(--text-2); margin-top: .1rem; }

.up-days {
  font-size: .66rem; font-weight: 700;
  padding: .18rem .5rem; border-radius: 20px;
  background: var(--surface2); color: var(--text-3);
  white-space: nowrap; letter-spacing: .04em;
}
.up-days.today { background: var(--gold); color: #0C0910; }
.up-days.soon  { background: var(--rose-dim); color: var(--rose); }

/* ──────────────────────────────────────────────────────
   MODALS
────────────────────────────────────────────────────── */

.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  z-index: 400;
  animation: fadeBg .2s ease;
}
@keyframes fadeBg { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  width: 100%; max-width: 480px;
  box-shadow: var(--shadow-lg);
  animation: modalIn .25s cubic-bezier(.16,1,.3,1);
  max-height: 90vh; overflow: auto;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.95) translateY(14px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 1.6rem;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 600; font-style: italic;
  letter-spacing: .01em;
}

.modal-x {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; color: var(--text-2);
  transition: all .15s;
}
.modal-x:hover { background: var(--surface2); color: var(--text); }

.modal-body { padding: 1.4rem 1.6rem; display: flex; flex-direction: column; gap: 1.1rem; }

.modal-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.6rem;
  border-top: 1px solid var(--border);
  gap: .75rem;
}

.foot-right { display: flex; gap: .5rem; margin-left: auto; }

/* ──────────────────────────────────────────────────────
   SETTINGS
────────────────────────────────────────────────────── */

.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .35rem 0; }
.setting-label { font-size: .88rem; font-weight: 600; color: var(--text); }
.setting-hint  { font-size: .75rem; color: var(--text-2); margin-top: .15rem; }

.notif-options {
  display: flex; flex-direction: column; gap: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
  margin-top: .75rem;
}
.notif-options.disabled { opacity: .4; pointer-events: none; }

.time-picker {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xs);
  padding: .5rem .75rem;
  color: var(--text); outline: none;
  font-size: .88rem; width: 115px; text-align: center; cursor: pointer;
}
.time-picker:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }

.chip-section { display: flex; flex-direction: column; gap: .5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; padding-top: .25rem; }
.chip {
  padding: .35rem .85rem; border-radius: 20px;
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  background: var(--surface2); color: var(--text-2);
  border: 1px solid var(--border2);
  transition: all .15s;
}
.chip:hover  { border-color: var(--gold); color: var(--gold); }
.chip.active { background: var(--gold); color: #0C0910; border-color: var(--gold); }

.notif-warn {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  background: var(--rose-dim);
  border: 1px solid rgba(224,104,120,.25);
  border-radius: var(--radius-xs);
  color: var(--rose); font-size: .78rem; font-weight: 500;
  padding: .65rem .9rem;
}
.notif-warn button { font-weight: 700; color: var(--rose); text-decoration: underline; font-size: .78rem; }

/* ──────────────────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .main { padding: 1.25rem .9rem; }
  .header { padding: 0 .9rem; }
  .logo-text { display: none; }
  .btn-add span { display: none; }
  .btn-add { padding: .5rem .75rem; }
  .stats-bar { gap: .5rem; }
  .stat-card { padding: .8rem 1rem; }
  .stat-val { font-size: 1.8rem; }
  .modal { border-radius: 18px 18px 0 0; }
  .overlay { align-items: flex-end; padding: 0; }
  .cal-weekdays { padding: .4rem .5rem; }
  .cal-grid { padding: .4rem .5rem .75rem; gap: 2px; }
  .field-row { flex-direction: column; }
  .field-toggle { width: 100%; }
}

@media (min-width: 768px) {
  .main { padding: 2rem 2.5rem; }
  .header { padding: 0 2.5rem; }
}

/* ──────────────────────────────────────────────────────
   SCROLLBAR / LOADING
────────────────────────────────────────────────────── */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

.btn-loading { opacity: .7; pointer-events: none; }
.btn-loading::after {
  content: '';
  display: inline-block;
  width: 13px; height: 13px;
  border: 2px solid rgba(0,0,0,.3);
  border-top-color: rgba(0,0,0,.8);
  border-radius: 50%;
  animation: spin .55s linear infinite;
  margin-left: .4rem;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ──────────────────────────────────────────────────────
   YEAR NAV
────────────────────────────────────────────────────── */

.year-nav {
  display: flex; align-items: center; gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 2px; flex-shrink: 0;
}
.year-arrow {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 5px; font-size: 1.1rem; color: var(--text-2);
  transition: all .12s; line-height: 1;
}
.year-arrow:hover { background: var(--surface2); color: var(--text); }
.year-val {
  min-width: 52px; padding: 0 .35rem; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; color: var(--text);
  border-radius: 5px; transition: all .12s;
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.year-val:hover { background: var(--gold-dim); color: var(--gold); }
.year-val.is-current { color: var(--gold); }

/* ──────────────────────────────────────────────────────
   IMPORT / EXPORT
────────────────────────────────────────────────────── */

.modal-wide { max-width: 560px; }
.ie-section { display: flex; flex-direction: column; gap: .9rem; }
.ie-section-title {
  display: flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text);
}
.ie-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
.ie-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: .4rem; padding: 1.1rem .75rem;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius); cursor: pointer;
  transition: all .18s; text-align: center;
}
.ie-btn:hover { border-color: var(--gold); background: var(--gold-dim); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.ie-btn-icon  { font-size: 1.6rem; line-height: 1; }
.ie-btn-label { font-size: .78rem; font-weight: 700; letter-spacing: .05em; color: var(--text); }
.ie-btn-hint  { font-size: .67rem; color: var(--text-2); line-height: 1.4; }
.ie-divider   { border: none; border-top: 1px solid var(--border); margin: .15rem 0; }

.ie-tabs {
  display: flex; gap: .4rem;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.ie-tab {
  flex: 1; padding: .42rem; border-radius: 6px;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--text-2); transition: all .15s;
}
.ie-tab.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.22); }

.drop-zone {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: .5rem; padding: 2rem;
  border: 1.5px dashed var(--border2);
  border-radius: var(--radius); cursor: pointer;
  transition: all .18s; color: var(--text-3); text-align: center;
}
.drop-zone:hover, .drop-zone.drag-over { border-color: var(--gold); background: var(--gold-dim); color: var(--gold); }
.drop-text { font-size: .85rem; color: var(--text-2); font-weight: 500; }
.drop-zone:hover .drop-text, .drop-zone.drag-over .drop-text { color: var(--gold); }
.drop-link  { color: var(--gold); cursor: pointer; text-decoration: underline; font-weight: 700; }
.drop-hint  { font-size: .72rem; color: var(--text-3); font-weight: 500; }

.ie-format-hint {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: .7rem .95rem;
  font-size: .76rem; color: var(--text-2); line-height: 1.65;
}
.ie-format-hint code {
  font-family: 'Courier New', monospace;
  font-size: .72rem; color: var(--gold);
  background: var(--surface3);
  padding: .1rem .35rem; border-radius: 3px;
}
.ie-result { border-radius: var(--radius-xs); padding: .8rem 1.1rem; font-size: .84rem; line-height: 1.65; font-weight: 500; }
.ie-result.success { background: var(--green-dim); border: 1px solid rgba(108,196,160,.25); color: var(--green); }
.ie-result.error   { background: var(--rose-dim);  border: 1px solid rgba(224,104,120,.25); color: var(--rose); }

@media (max-width: 480px) {
  .ie-grid { gap: .4rem; }
  .ie-btn  { padding: .8rem .5rem; }
  .ie-btn-hint { display: none; }
}

/* ──────────────────────────────────────────────────────
   SETTINGS SHARE
────────────────────────────────────────────────────── */

.setting-section-title {
  font-size: .65rem; font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; color: var(--text-3);
  padding: .2rem 0 .4rem;
}
.setting-divider { border: none; border-top: 1px solid var(--border); margin: 1rem 0 .75rem; }

.share-link-box {
  display: flex; flex-direction: column; gap: .5rem;
  padding: .85rem;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  margin-bottom: .25rem;
}
.share-url-row { display: flex; gap: .4rem; }
.share-url-input {
  flex: 1;
  background: var(--surface3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xs);
  color: var(--text-2);
  font-size: .75rem; font-family: 'Courier New', monospace;
  padding: .5rem .65rem; outline: none; min-width: 0; cursor: pointer;
}
.share-url-input:focus { border-color: var(--gold); }

.btn-copy {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xs);
  color: var(--text-2);
  padding: .5rem .65rem; cursor: pointer;
  display: flex; align-items: center;
  transition: all .15s; flex-shrink: 0;
}
.btn-copy:hover { color: var(--gold); border-color: var(--gold); background: var(--gold-dim); }

.btn-text-sm {
  background: none; border: none; color: var(--text-3);
  font-size: .72rem; font-weight: 600; cursor: pointer;
  padding: 0; text-align: left; letter-spacing: .02em;
  transition: color .15s;
}
.btn-text-sm:hover { color: var(--gold); }

/* ──────────────────────────────────────────────────────
   TOAST
────────────────────────────────────────────────────── */

.app-toast {
  position: fixed;
  bottom: 1.75rem; left: 50%;
  transform: translateX(-50%) translateY(140%);
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--text);
  font-size: .84rem; font-weight: 500;
  padding: .8rem 1.4rem;
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transition: transform .35s cubic-bezier(.16,1,.3,1);
  max-width: min(420px, 90vw);
  text-align: center;
  pointer-events: none;
  letter-spacing: .01em;
}
.app-toast.visible { transform: translateX(-50%) translateY(0); }

/* ──────────────────────────────────────────────────────
   PUSH STATUS
────────────────────────────────────────────────────── */

.push-status-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem; min-height: 1.4rem; margin-top: .25rem;
}
.push-status { font-size: .76rem; color: var(--text-3); font-weight: 500; }
.push-status.push-ok  { color: var(--green); }
.push-status.push-err { color: var(--rose); }

/* ──────────────────────────────────────────────────────
   PUBLIC SHARE PAGE
────────────────────────────────────────────────────── */

.share-page { min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--font-body); padding: 2rem 1rem 4rem; }

.share-header { text-align: center; padding: 3.5rem 1rem 2.5rem; max-width: 600px; margin: 0 auto; }
.share-cake { font-size: 2.5rem; display: block; margin-bottom: 1rem; }
.share-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 600; font-style: italic;
  margin: 0 0 .5rem; letter-spacing: .01em;
}
.share-subtitle { color: var(--text-2); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin: 0; }

.share-list { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.75rem; }

.share-month {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 600; font-style: italic;
  color: var(--text);
  padding: 0 0 .6rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: .85rem;
}

.share-row {
  display: flex; align-items: center; gap: .9rem;
  padding: .85rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border2);
  border-radius: var(--radius);
  transition: border-color .15s;
}
.share-row:hover { border-left-color: var(--gold); }

.share-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gold-dim); color: var(--gold);
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.share-info { flex: 1; min-width: 0; }
.share-name { font-weight: 600; font-size: .95rem; }
.share-date { font-size: .78rem; color: var(--text-2); margin-top: .15rem; }

.share-badge {
  font-size: .66rem; font-weight: 700; letter-spacing: .05em;
  padding: .3rem .7rem; border-radius: 20px;
  background: var(--surface2); color: var(--text-2);
  white-space: nowrap; flex-shrink: 0; text-transform: uppercase;
}
.share-badge-soon { background: var(--gold-dim); color: var(--gold); }
.share-empty { text-align: center; color: var(--text-3); padding: 3rem; font-style: italic; }

/* ──────────────────────────────────────────────────────
   MISC
────────────────────────────────────────────────────── */

.zodiac { font-size: .7rem; color: var(--text-3); }

/* ──────────────────────────────────────────────────────
   CAGNOTTE
────────────────────────────────────────────────────── */

.modal-wide { max-width: 560px; }

/* Cagnotte icon button in birthday modal footer */
.btn-cagnotte {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-xs);
  border: 1px solid var(--border2); background: none;
  font-size: 1.1rem; cursor: pointer;
  transition: background .15s;
  flex-shrink: 0;
}
.btn-cagnotte:hover { background: var(--surface2); }

/* Admin form */
.cagnotte-idea-row {
  display: flex; gap: .5rem; align-items: center; margin-bottom: .4rem;
}
.cagnotte-idea-input {
  flex: 1; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: .5rem .75rem; color: var(--text-1);
  font-family: var(--font-body); font-size: .9rem;
}
.cagnotte-idea-remove {
  background: none; border: none; color: var(--text-3);
  cursor: pointer; font-size: .9rem; padding: .3rem .5rem;
  transition: color .15s;
}
.cagnotte-idea-remove:hover { color: var(--danger); }

.cagnotte-link-section { margin: 1.2rem 0 .8rem; }

.cagnotte-contribs-section { margin-top: 1.2rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.cagnotte-total { font-size: .95rem; color: var(--text-2); margin: .5rem 0; }

.cagnotte-progress-wrap { margin: .6rem 0; }
.cagnotte-progress-bar {
  height: 8px; border-radius: 20px;
  background: var(--surface2); overflow: hidden; margin-bottom: .4rem;
}
.cagnotte-progress-fill {
  height: 100%; border-radius: 20px;
  background: linear-gradient(90deg, var(--gold), #e8c060);
  transition: width .4s ease;
}
.cagnotte-progress-label { font-size: .8rem; color: var(--text-2); }

.contrib-list { display: flex; flex-direction: column; gap: .5rem; margin-top: .75rem; }
.contrib-row {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .6rem .75rem; background: var(--surface2);
  border-radius: 10px;
}
.contrib-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold-dim); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem; flex-shrink: 0;
}
.contrib-info { flex: 1; min-width: 0; }
.contrib-name { font-weight: 600; font-size: .88rem; }
.contrib-meta { font-size: .75rem; color: var(--text-2); margin-top: .1rem; line-height: 1.4; }
.contrib-amount {
  font-weight: 700; font-size: .9rem; color: var(--gold);
  white-space: nowrap; flex-shrink: 0;
}

/* Public page */
.cagnotte-public-page {
  min-height: 100vh;
  background: var(--bg);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 2rem 1rem 4rem;
}
.cagnotte-public-inner {
  width: 100%; max-width: 500px;
  animation: fadeUp .4s ease;
}
.cagnotte-pub-logo {
  font-size: 3rem; text-align: center; margin-bottom: .75rem;
}
.cagnotte-pub-title {
  font-family: var(--font-display); font-size: 2rem; font-weight: 600;
  text-align: center; color: var(--text-1); margin-bottom: .3rem;
}
.cagnotte-pub-sub {
  text-align: center; color: var(--text-2); font-size: .9rem;
  margin-bottom: 1.5rem;
}
.cagnotte-pub-progress { margin-bottom: 1.2rem; }
.cagnotte-pub-total {
  text-align: center; font-size: .95rem; color: var(--text-2);
  margin-bottom: 1rem;
}

.cagnotte-pub-participants {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin-bottom: 1.2rem;
}
.pub-participant {
  display: flex; align-items: center; gap: .4rem;
  background: var(--surface2); border-radius: 20px;
  padding: .3rem .75rem; font-size: .82rem;
}
.pub-participant-name { font-weight: 600; }
.pub-participant-idea { color: var(--text-2); }
.pub-participant-amount { color: var(--gold); font-weight: 700; }

.cagnotte-pub-ideas { margin-bottom: 1.2rem; }
.cagnotte-pub-ideas-title {
  font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-2); margin-bottom: .6rem;
}
.cagnotte-ideas-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.cagnotte-idea-chip {
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: 20px; padding: .4rem 1rem;
  font-family: var(--font-body); font-size: .88rem; color: var(--text-1);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.cagnotte-idea-chip:hover,
.cagnotte-idea-chip.selected {
  border-color: var(--gold); background: var(--gold-dim); color: var(--gold);
}

.cagnotte-pub-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.5rem;
}
.cagnotte-pub-form .field { margin-bottom: 1rem; }

.cagnotte-pub-success {
  text-align: center; padding: 3rem 1rem;
}
.cagnotte-pub-success-icon { font-size: 3rem; margin-bottom: 1rem; }
.cagnotte-pub-success-title {
  font-family: var(--font-display); font-size: 1.6rem;
  font-weight: 600; margin-bottom: .5rem;
}
