:root {
  --ink: #0c1210;
  --ink-soft: #1a2420;
  --panel: rgba(18, 28, 24, 0.88);
  --panel-solid: #14201c;
  --line: rgba(212, 175, 55, 0.22);
  --gold: #d4af37;
  --gold-bright: #f0d060;
  --emerald: #1f7a4c;
  --emerald-bright: #2fa866;
  --cream: #e8efe9;
  --muted: #9aada2;
  --danger: #c45c4a;
  --ok: #3cb371;
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --radius: 4px;
  --max: 1100px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--cream);
  background: var(--ink);
  line-height: 1.5;
  position: relative;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(31, 122, 76, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(212, 175, 55, 0.12), transparent 50%),
    linear-gradient(180deg, #0c1210 0%, #101816 45%, #0a0f0d 100%);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 12px,
    rgba(255, 255, 255, 0.4) 12px,
    rgba(255, 255, 255, 0.4) 13px
  );
  pointer-events: none;
}

.page-bg.page-bg-photo {
  background-color: #0c1210;
  background-image:
    linear-gradient(180deg, rgba(8, 12, 10, 0.72) 0%, rgba(8, 12, 10, 0.82) 45%, rgba(8, 12, 10, 0.92) 100%),
    var(--page-bg-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.page-bg.page-bg-photo::after {
  opacity: 0.03;
}

body.has-custom-bg .site-header {
  background: rgba(12, 18, 16, 0.82);
}

body.has-custom-bg .panel,
body.has-custom-bg .timer-panel,
body.has-custom-bg .cause-block:not(.cause-block-compact),
body.has-custom-bg .day-item,
body.has-custom-bg .stat {
  background: rgba(14, 22, 18, 0.82);
  backdrop-filter: blur(8px);
}

.bg-preview {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 16 / 9;
  margin-bottom: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background-size: cover;
  background-position: center;
}

a {
  color: var(--gold-bright);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

img,
video {
  max-width: 100%;
  display: block;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  min-height: var(--header-h);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  background: rgba(12, 18, 16, 0.75);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: linear-gradient(145deg, var(--gold-bright), var(--gold));
  border-radius: 2px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.06em;
  font-weight: 400;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--cream);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--gold-bright);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  background: var(--emerald);
  color: #fff !important;
  border-radius: var(--radius);
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--emerald-bright);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--cream);
  margin: 6px 0;
  transition: transform 0.2s ease;
}

.site-main {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 1.75rem 0 3rem;
}

.site-footer {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.flash {
  width: min(100% - 2rem, var(--max));
  margin: 1rem auto 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  animation: fadeSlide 0.35s ease;
}

.flash-success {
  background: rgba(60, 179, 113, 0.15);
  border-color: rgba(60, 179, 113, 0.4);
}

.flash-error {
  background: rgba(196, 92, 74, 0.15);
  border-color: rgba(196, 92, 74, 0.45);
}

.flash-info {
  background: rgba(212, 175, 55, 0.12);
}

/* Hero / landing */
.hero {
  min-height: calc(100vh - var(--header-h) - 4rem);
  display: grid;
  align-content: center;
  gap: 1.25rem;
  padding: 2rem 0 3rem;
  animation: fadeSlide 0.7s ease;
}

.hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 12vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
  font-weight: 400;
  max-width: 12ch;
}

.hero-lead {
  margin: 0;
  max-width: 36ch;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--emerald);
  color: #fff;
}

.btn-primary:hover {
  background: var(--emerald-bright);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--cream);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn-danger {
  background: transparent;
  border-color: rgba(196, 92, 74, 0.5);
  color: #f0a89c;
}

.btn-sm {
  padding: 0.45rem 0.75rem;
  font-size: 0.88rem;
}

/* Sections */
.section {
  margin: 3rem 0;
  animation: fadeSlide 0.55s ease both;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: 0.04em;
  font-weight: 400;
  margin: 0 0 0.5rem;
}

.section > p {
  color: var(--muted);
  max-width: 48ch;
  margin: 0 0 1.5rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.panel + .panel {
  margin-top: 1rem;
}

.grid-2 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Forms */
.form-stack {
  display: grid;
  gap: 1rem;
  max-width: 420px;
}

.form-stack.wide {
  max-width: 720px;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="url"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--cream);
  font: inherit;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(212, 175, 55, 0.45);
  outline-offset: 1px;
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
  .form-row.cols-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.help {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
}

.checkbox-row input {
  width: auto;
}

/* Progress / days */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.stat {
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius);
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  line-height: 1;
}

.stat span {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.progress-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.75rem 0 1.5rem;
}

.progress-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  border-radius: inherit;
  transition: width 0.4s ease;
}

.day-list {
  display: grid;
  gap: 0.65rem;
}

.day-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.day-item:hover {
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(31, 122, 76, 0.12);
  color: inherit;
}

.day-item.done {
  border-color: rgba(60, 179, 113, 0.35);
}

.day-num {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--gold);
}

.day-item.done .day-num {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #fff;
}

.day-meta strong {
  display: block;
  font-size: 1rem;
}

.day-meta small {
  color: var(--muted);
}

.badge {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.badge-ok {
  color: #9de0b8;
  border-color: rgba(60, 179, 113, 0.45);
}

.badge-locked {
  opacity: 0.7;
}

/* Workout day */
.workout-layout {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  grid-template-areas:
    "timer"
    "video"
    "head"
    "below";
}

.workout-head-col {
  grid-area: head;
}

.workout-video-col {
  grid-area: video;
}

.workout-timer-col {
  grid-area: timer;
}

.workout-below {
  grid-area: below;
}

.timer-interval-meta {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.workout-description {
  color: var(--muted);
  margin: 0 0 1rem;
}

.workout-complete {
  margin-top: 0;
}

.workout-below-head {
  display: none;
}

.workout-back-mobile {
  display: none;
  margin-top: 1rem;
  width: 100%;
}

@media (min-width: 900px) {
  .workout-layout {
    grid-template-columns: 1.4fr 1fr;
    grid-template-areas:
      "head head"
      "video timer"
      "below below";
    align-items: start;
  }
}

.video-shell {
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

/* Portrait workout videos (9:16) — fills mobile width instead of letterboxing in 16:9 */
.video-shell-portrait {
  aspect-ratio: 9 / 16;
  width: min(100%, 420px);
  margin: 0 auto;
}

.video-shell video,
.video-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  background:
    radial-gradient(circle at 30% 30%, rgba(31, 122, 76, 0.25), transparent 50%),
    #0a0f0d;
}

.timer-panel {
  --p: 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  text-align: center;
}

.timer-phase {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.35rem;
}

.timer-phase.is-break {
  color: var(--muted);
}

.timer-visual {
  --p: 0;
  position: relative;
  width: 220px;
  margin: 0.5rem auto 1rem;
  display: grid;
  place-items: center;
}

.timer-display {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 5rem);
  letter-spacing: 0.06em;
  line-height: 1;
  margin: 0;
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
}

.timer-round {
  color: var(--muted);
  margin: 0 0 1rem;
}

.timer-sync-note {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: var(--gold);
  line-height: 1.35;
}

.timer-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.music-control {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.music-control-label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0;
}

.music-control input[type="range"] {
  flex: 1;
  min-width: 0;
  accent-color: var(--emerald-bright);
}

/* Desktop: circular progress around the time */
.timer-ring {
  grid-area: 1 / 1;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--panel-solid) 78%, transparent 79% 100%),
    conic-gradient(var(--emerald-bright) calc(var(--p) * 1%), rgba(255, 255, 255, 0.08) 0);
  transition: background 0.15s linear;
}

.timer-visual.is-break .timer-ring {
  background:
    radial-gradient(closest-side, var(--panel-solid) 78%, transparent 79% 100%),
    conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(255, 255, 255, 0.08) 0);
}

.timer-bar {
  display: none;
  grid-area: auto;
}

.timer-bar-fill {
  display: block;
  height: 100%;
  width: calc(var(--p) * 1%);
  background: linear-gradient(90deg, var(--emerald), var(--emerald-bright));
  border-radius: inherit;
  transition: width 0.15s linear;
}

.timer-visual.is-break .timer-bar-fill {
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
}

/* Mobile: compact timer + video only in first view */
@media (max-width: 899px) {
  body.page-workout .site-header {
    min-height: 52px;
    padding: 0.45rem 0.85rem;
  }

  body.page-workout .brand-text small {
    display: none;
  }

  body.page-workout .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  body.page-workout .brand-text strong {
    font-size: 1.25rem;
  }

  body.page-workout .site-main {
    width: 100%;
    padding: 0.35rem 0 2rem;
  }

  body.page-workout .site-footer {
    display: none;
  }

  body.page-workout .flash {
    width: calc(100% - 1.5rem);
    margin: 0.5rem auto 0;
  }

  .workout-page-head {
    margin-bottom: 0;
  }

  .workout-below-head {
    display: none;
  }

  .workout-layout {
    gap: 0.45rem;
    width: calc(100% - 1.25rem);
    margin: 0 auto;
  }

  .workout-video-col {
    display: flex;
    justify-content: center;
  }

  .page-workout .video-shell-portrait {
    width: min(100%, calc(78vh * 9 / 16));
    max-height: 78vh;
  }

  .timer-panel {
    position: static;
    padding: 0.45rem 0.65rem 0.55rem;
    box-shadow: none;
  }

  .timer-phase {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    margin: 0;
  }

  .timer-visual {
    width: 100%;
    margin: 0.05rem auto 0.25rem;
    display: block;
  }

  .timer-ring {
    display: none;
  }

  .timer-display {
    display: block;
    font-size: clamp(2rem, 9.5vw, 2.55rem);
    line-height: 0.95;
    margin: 0 0 0.25rem;
  }

  .timer-bar {
    display: block;
    width: 100%;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
  }

  .timer-round {
    margin: 0.3rem 0 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--cream);
  }

  .timer-controls {
    gap: 0.3rem;
  }

  .timer-controls .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.5rem 0.35rem;
    font-size: 0.85rem;
  }

  .music-control {
    margin-top: 0.55rem;
    padding-top: 0.5rem;
    gap: 0.4rem;
  }

  .music-control .btn {
    padding: 0.35rem 0.55rem;
    font-size: 0.78rem;
  }

  .workout-below {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
  }
}

.share-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
}

.share-box input {
  flex: 1;
  min-width: 180px;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

table.data th,
table.data td {
  text-align: left;
  padding: 0.7rem 0.55rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.data th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table-wrap {
  overflow-x: auto;
}

.admin-chip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.admin-chip-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.admin-progress-label {
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.admin-progress-bar {
  margin: 0;
  max-width: 160px;
  height: 8px;
}

.admin-filters label {
  margin: 0;
}

/* Admin shell — left sidebar layout */
body.page-admin {
  min-height: 100vh;
}

body.page-admin .page-bg {
  background:
    radial-gradient(ellipse 70% 40% at 0% 0%, rgba(31, 122, 76, 0.22), transparent 50%),
    linear-gradient(180deg, #0a0f0d 0%, #101816 100%);
}

.admin-shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0.85rem 1.25rem;
  border-right: 1px solid var(--line);
  background: rgba(10, 14, 12, 0.92);
  backdrop-filter: blur(10px);
  z-index: 40;
}

.admin-sidebar-brand {
  padding: 0.35rem 0.5rem 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.5rem;
}

.admin-sidebar-brand .brand-text small {
  color: var(--gold);
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  overflow-y: auto;
  padding: 0 0.25rem;
}

.admin-side-label {
  margin: 0.85rem 0.55rem 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-side-link {
  display: block;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius);
  color: var(--cream);
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
}

.admin-side-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(212, 175, 55, 0.15);
}

.admin-side-link.is-active {
  background: rgba(31, 122, 76, 0.28);
  border-color: rgba(47, 168, 102, 0.35);
  color: #fff;
}

.admin-sidebar-foot {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 0.55rem 0;
  border-top: 1px solid var(--line);
  margin-top: 0.75rem;
}

.admin-sidebar-foot a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.admin-sidebar-foot a:hover {
  color: var(--gold-bright);
}

.admin-sidebar-user {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.admin-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 18, 16, 0.75);
  position: sticky;
  top: 0;
  z-index: 30;
}

.admin-topbar-title {
  flex: 1;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.admin-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 10px;
}

.admin-menu-toggle span {
  display: block;
  height: 2px;
  background: var(--cream);
  margin: 6px 0;
}

.admin-content {
  width: min(100% - 2rem, 1100px);
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
}

body.page-admin .flash {
  width: min(100% - 2rem, 1100px);
  margin: 1rem auto 0;
}

body.page-admin .page-head h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.admin-backdrop {
  display: none;
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(280px, 86vw);
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.45);
  }

  body.admin-nav-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-menu-toggle {
    display: block;
  }

  .admin-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 35;
  }

  .admin-backdrop[hidden] {
    display: none;
  }

  .admin-topbar-site {
    display: none;
  }
}



.page-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.page-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  letter-spacing: 0.04em;
  font-weight: 400;
}

.page-head p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.profile-hero {
  margin-bottom: 1.5rem;
}

.profile-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4rem);
  letter-spacing: 0.04em;
  margin: 0;
  font-weight: 400;
}

.auth-wrap {
  max-width: 440px;
  margin: 1rem auto;
}

.auth-wrap h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.35rem;
  font-weight: 400;
}

.auth-wrap > p {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: rgba(12, 18, 16, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site-nav .nav-cta {
    margin-top: 0.5rem;
    justify-content: center;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .day-item {
    grid-template-columns: auto 1fr;
  }

  .day-item .badge {
    grid-column: 2;
    justify-self: start;
  }
}

.cause-block {
  margin: 0 0 1.5rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
}

.cause-block-compact {
  margin: 0.75rem 0 0;
  background: transparent;
  border: 0;
  padding: 0;
}

.cause-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.cause-charity {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.04em;
  font-weight: 400;
  line-height: 1.1;
}

.cause-copy {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.5;
}

.cause-donate {
  display: inline-flex;
}

.cause-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin: 0 0 1rem;
}

.cause-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  max-width: 140px;
}

.cause-logo img {
  max-width: 120px;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 4px;
  padding: 0.4rem 0.55rem;
}

.cause-logo-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.25;
}

.cause-block-compact .cause-logos {
  margin-bottom: 0.75rem;
}

.cause-block-compact .cause-logo img {
  max-width: 100px;
  max-height: 52px;
}

.admin-logo-grid {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .admin-logo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.admin-logo-card {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
}

.admin-logo-card img {
  width: 88px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border-radius: 3px;
  padding: 0.35rem;
}

.panel .cause-block-compact .cause-donate {
  margin-top: 0.25rem;
}
.celebrate-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(6, 10, 8, 0.72);
  backdrop-filter: blur(4px);
}

.celebrate-overlay.is-open {
  display: flex;
  animation: celebrateFade 0.35s ease;
}

.celebrate-confetti {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.celebrate-modal {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.18), transparent 55%),
    var(--panel-solid);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: celebratePop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}

.celebrate-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.celebrate-modal h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 10vw, 3.4rem);
  letter-spacing: 0.04em;
  font-weight: 400;
  line-height: 0.95;
}

.celebrate-copy {
  margin: 0 0 1.35rem;
  color: var(--muted);
  line-height: 1.45;
}

.celebrate-actions {
  display: grid;
  gap: 0.55rem;
}

.celebrate-actions .btn {
  width: 100%;
}

@keyframes celebrateFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes celebratePop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

