/* NexusSpira — public countdown pages */

.countdowns-page {
  background: #F2F6FF;
}

.countdowns-page .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.countdowns-page .reveal.visible {
  opacity: 1;
  transform: none;
}

.countdowns-page .page-hero {
  padding: var(--space-16) 5% var(--space-12);
  background: transparent;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.countdowns-page .page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 15% 80%, rgba(26, 111, 191, 0.1) 0%, transparent 60%);
}
.countdowns-page .hero-float {
  position: absolute;
  border-radius: 24px;
  opacity: .45;
  pointer-events: none;
  animation: cdFloatY 7s ease-in-out infinite;
}
.countdowns-page .hero-float.f1 { top: 18%; left: 8%; width: 40px; height: 40px; background: linear-gradient(135deg, #EC4899, #F472B6); transform: rotate(10deg); animation-delay: 0s; }
.countdowns-page .hero-float.f2 { top: 64%; left: 13%; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #1A6FBF, #00B8C8); animation-delay: 1.1s; }
.countdowns-page .hero-float.f3 { top: 24%; right: 10%; width: 32px; height: 32px; background: linear-gradient(135deg, #8B5CF6, #B794F6); transform: rotate(-12deg); animation-delay: .7s; }
.countdowns-page .hero-float.f4 { top: 66%; right: 15%; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #F59E0B, #FBBF24); animation-delay: 1.5s; }
.countdowns-page .hero-float.f5 { top: 10%; right: 32%; width: 18px; height: 18px; background: linear-gradient(135deg, #EC4899, #FF8B55); transform: rotate(45deg); animation-delay: .9s; }
@keyframes cdFloatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.countdowns-page .page-hero > * { position: relative; z-index: 1; }
.countdowns-page .page-hero .hero-eyebrow { margin-bottom: 12px; padding: 5px 12px; font-size: 11px; }
.countdowns-page .page-hero h1 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.2;
}
.countdowns-page .page-hero h1 .accent {
  background: linear-gradient(135deg, #EC4899, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.countdowns-page .page-hero p {
  font-size: 14px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
}

.cd-section { background: var(--white); padding: 20px 5% 40px; }
.cd-wrap { max-width: 1180px; margin: 0 auto; }

.cd-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}
.cd-stat {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 10px 8px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cd-stat .num { font-size: 1.15rem; font-weight: 800; color: var(--navy); display: inline-block; line-height: 1; }
.cd-stat .lbl { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; display: inline-block; }

.featured-cd {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #1A0A3A 0%, #831D5C 50%, #1A6FBF 100%);
  padding: 44px;
  margin-bottom: 40px;
  text-align: center;
  box-shadow: 0 16px 50px -10px rgba(131, 29, 92, 0.4);
}
.featured-cd::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: cdSweep 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cdSweep { 0% { left: -60%; } 50% { left: 120%; } 100% { left: 120%; } }
.featured-cd-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 18px;
  color: #fff;
}
.featured-cd h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.featured-cd p {
  position: relative;
  z-index: 1;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 30px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.flip-clock {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.flip-unit { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.flip-digits { display: flex; gap: 4px; }
.flip-card {
  position: relative;
  width: 58px;
  height: 72px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f0f0f5 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
}
.flip-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
}
.flip-label { font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, 0.7); text-transform: uppercase; letter-spacing: 1px; }

.featured-cd-btn {
  position: relative;
  z-index: 1;
  background: #fff;
  color: #831D5C;
  border: none;
  padding: 13px 30px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.featured-cd-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26); }

.cat-pills-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  padding: 9px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  cursor: default;
  transition: all .25s;
}
.cat-pill .cat-emoji { font-size: 14px; line-height: 1; }
.cat-pill.filterable { cursor: pointer; }
.cat-pill.filterable:hover {
  border-color: var(--teal);
  color: var(--blue);
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 184, 200, 0.14);
}
.cat-pill.filterable.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 31, 92, 0.22);
}

.cd-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 10px;
}
.cd-row-head h2 { font-size: 20px; font-weight: 800; color: var(--navy); }
.cd-row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cd-completed-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  text-decoration: none;
}
.cd-completed-toggle:hover,
.cd-completed-toggle.is-active {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(26, 111, 191, 0.08);
}
.cd-list-links {
  display: flex;
  justify-content: flex-end;
  margin: -8px 0 18px;
}
.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  transition: gap .2s;
}
.view-all-link:hover { gap: 12px; }

.filter-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; margin-bottom: 24px; }
.filter-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1.4;
  min-width: 0;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  height: 44px;
  transition: all .2s;
}
.filter-search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 184, 200, 0.12); background: var(--white); }
.filter-search svg { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.filter-search input {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  min-width: 0;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text);
}
.filter-search input::placeholder { color: var(--muted); }

.filter-daterange {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1.3;
  min-width: 0;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0 10px;
  height: 44px;
  transition: all .2s;
}
.filter-daterange:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 184, 200, 0.12); background: var(--white); }
.filter-date {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  min-width: 0;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.filter-date::-webkit-calendar-picker-indicator { filter: invert(40%) sepia(10%); cursor: pointer; opacity: .6; }
.filter-date-sep { color: var(--muted); font-size: 12px; flex-shrink: 0; }

.filter-select {
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all .2s;
  flex: 1;
  min-width: 0;
}
.filter-select:hover,
.filter-select:focus { border-color: var(--teal); }

.cd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 50px; }
.cd-grid.list-grid { margin-bottom: 40px; }
.cd-card {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  transition: all .3s cubic-bezier(.22, .68, 0, 1.2);
  display: flex;
  flex-direction: column;
}
.cd-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
  z-index: 2;
}
.cd-card:hover { transform: translateY(-6px); box-shadow: 0 18px 42px -8px rgba(26, 46, 107, 0.16); border-color: transparent; }
.cd-card:hover::before { transform: scaleX(1); }
.cd-card-bar { height: 6px; width: 100%; }
.cd-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.cd-card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.cd-cat-badge { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; padding: 4px 11px; border-radius: 50px; }
.cd-personal-badge { font-size: 10px; font-weight: 700; color: #831D5C; background: rgba(131, 29, 92, 0.1); padding: 3px 9px; border-radius: 50px; }
.cd-completed-badge { font-size: 10px; font-weight: 700; color: #64748B; background: rgba(100, 116, 139, 0.12); padding: 3px 9px; border-radius: 50px; }
.cd-card--completed { opacity: .92; }
.cd-card-body h3 { font-size: 15.5px; font-weight: 700; color: var(--navy); margin-bottom: 14px; line-height: 1.4; transition: color .2s; }
.cd-card:hover .cd-card-body h3 { color: var(--blue); }

.cd-mini-clock { display: flex; gap: 8px; margin-bottom: 16px; }
.cd-mini-unit {
  flex: 1;
  text-align: center;
  background: #F2F6FF;
  border-radius: 10px;
  padding: 9px 4px;
}
.cd-mini-num { font-size: 18px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; display: block; }
.cd-mini-lbl { font-size: 9px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }

.cd-card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border); }
.cd-date-label { font-size: 12px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.cd-date-label svg { width: 13px; height: 13px; stroke: var(--muted); fill: none; stroke-width: 2; }
.cd-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
}
.cd-view-btn:hover { box-shadow: 0 4px 16px rgba(26, 111, 191, 0.3); transform: scale(1.03); }

.cd-card.hidden-card { display: none; }
.cd-empty { text-align: center; padding: 60px 20px; color: var(--muted); display: none; }
.cd-empty.show { display: block; }
.cd-empty .emoji { font-size: 48px; margin-bottom: 14px; }
.cd-empty h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }

.cd-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 8px; }

.create-cta {
  background: linear-gradient(135deg, #0B1845 0%, #831D5C 100%);
  border-radius: 24px;
  padding: 36px 40px;
  margin-bottom: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.create-cta-text h3 { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.create-cta-text p { font-size: 13.5px; color: rgba(255, 255, 255, 0.75); }
.create-cta-btn {
  background: #fff;
  color: #831D5C;
  border: none;
  padding: 12px 26px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
  white-space: nowrap;
  text-decoration: none;
}
.create-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); }

/* ===== Detail page (matches static-countdown-detail) ===== */
main.ns-main.countdowns-page--detail {
  padding-top: 0;
  min-height: 0;
  background: #F2F6FF;
}

.cd-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 84px 5% 40px;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(135deg, #0B0520 0%, #1A0A3A 40%, #0E1A4A 100%);
}
.countdowns-page--detail .star {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  background: #fff;
  animation: cdTwinkle 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cdTwinkle {
  0%, 100% { opacity: .2; transform: scale(1); }
  50% { opacity: .9; transform: scale(1.4); }
}
.cd-hero-glow1,
.cd-hero-glow2 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.cd-hero-glow1 {
  top: 10%;
  left: 15%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(131, 29, 92, 0.35), transparent 70%);
}
.cd-hero-glow2 {
  bottom: 5%;
  right: 10%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(26, 111, 191, 0.3), transparent 70%);
}
/* Keep content above decorations; do not override absolute stars/glows */
.cd-hero > *:not(.star):not(.cd-hero-glow1):not(.cd-hero-glow2) {
  position: relative;
  z-index: 2;
}

.cd-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.cd-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 600;
}
.cd-breadcrumb a:hover { color: #fff; }
.cd-breadcrumb span { color: rgba(255, 255, 255, 0.3); }

.cd-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  padding: 6px 14px;
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}
.cd-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.15;
}
.cd-hero p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 auto 28px;
  max-width: 540px;
}

.big-flip-clock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.big-flip-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.big-flip-sep {
  font-size: 52px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1;
  margin-bottom: 28px;
  animation: cdBlink 1s step-end infinite;
}
@keyframes cdBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: .2; }
}
.big-flip-card {
  position: relative;
  width: 100px;
  height: 120px;
  border-radius: 18px;
  background: linear-gradient(180deg, #2A2A4A 0%, #1A1A2E 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
}
.big-flip-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.4);
}
.big-flip-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.flip-animate { animation: cdFlipAnim .35s ease-out; }
@keyframes cdFlipAnim {
  0% { transform: rotateX(0deg); }
  50% { transform: rotateX(-90deg); opacity: .4; }
  100% { transform: rotateX(0deg); opacity: 1; }
}

.cd-target-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  margin-bottom: 24px;
}
.cd-target-info svg {
  width: 15px;
  height: 15px;
  stroke: rgba(255, 255, 255, 0.6);
  fill: none;
  stroke-width: 2;
}

.cd-tz-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin-bottom: 24px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.cd-tz-switcher-label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}
.cd-tz-select {
  min-width: 220px;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.cd-tz-select:hover,
.cd-tz-select:focus {
  border-color: rgba(255, 255, 255, 0.45);
  outline: none;
}
.cd-tz-select option {
  color: #0f172a;
  background: #fff;
}
.cd-tz-hint {
  flex: 1 1 100%;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  line-height: 1.45;
}

.cd-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cd-btn-primary {
  background: #fff;
  color: var(--navy);
  border: none;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.cd-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}
.cd-btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 12px 26px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
}
.cd-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.cd-progress-section { background: #F2F6FF; padding: 50px 5%; }
.cd-progress-wrap { max-width: 700px; margin: 0 auto; text-align: center; }
.cd-progress-wrap h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 18px;
}
.cd-progress-track {
  height: 14px;
  background: #E8EFFC;
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}
.cd-progress-fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, #EC4899, #8B5CF6, #1A6FBF);
  transition: width 1s ease;
  width: 0%;
}
.cd-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.cd-pct-label {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
  display: block;
}

.cd-info-section { background: var(--white); padding: 50px 5%; }
.cd-info-wrap { max-width: 700px; margin: 0 auto; }
.cd-info-card {
  background: #F2F6FF;
  border: 1.5px solid var(--border);
  border-radius: 22px;
  padding: 30px;
  margin-bottom: 24px;
}
.cd-info-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cd-info-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}
.cd-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cd-info-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}
.cd-info-item .item-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 5px;
}
.cd-info-item .item-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.cd-share-section { background: #E8EFFC; padding: 40px 5%; }
.cd-share-wrap { max-width: 700px; margin: 0 auto; text-align: center; }
.cd-share-wrap h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 18px;
}
.share-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.share-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--navy);
  transition: all .2s;
  font-family: inherit;
}
.share-pill:hover {
  border-color: var(--teal);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 184, 200, 0.15);
}

.cd-related-section { background: var(--white); padding: 50px 5%; }
.cd-related-wrap { max-width: 700px; margin: 0 auto; }
.cd-related-wrap h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 18px;
}
.cd-related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cd-related-item {
  background: #F2F6FF;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  transition: all .22s;
  text-decoration: none;
}
.cd-related-item:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 16px rgba(0, 184, 200, 0.12);
  transform: translateY(-2px);
}
.cd-related-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  flex: 1;
}
.cd-related-item:hover h4 { color: var(--blue); }
.cd-related-mini {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cd-ri-unit {
  text-align: center;
  background: var(--white);
  border-radius: 8px;
  padding: 5px 8px;
  min-width: 38px;
}
.cd-ri-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  display: block;
  font-variant-numeric: tabular-nums;
}
.cd-ri-lbl {
  font-size: 8px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}
.cd-related-empty {
  font-size: 14px;
  color: var(--muted);
  padding: 12px 0;
}

@media (max-width: 1000px) {
  .cd-grid { grid-template-columns: repeat(2, 1fr); }
  .cd-stats-strip { grid-template-columns: repeat(2, 1fr); }
  .flip-card { width: 48px; height: 60px; font-size: 26px; }
}
@media (max-width: 700px) {
  .big-flip-card { width: 72px; height: 88px; font-size: 36px; border-radius: 14px; }
  .big-flip-clock { gap: 10px; }
  .big-flip-sep { font-size: 36px; }
  .cd-info-grid { grid-template-columns: 1fr; }
  .cd-related-mini { display: none; }
  .cd-hero { padding: 76px 4% 32px; }
  .cel-hero {
    padding: 68px 4% 32px;
  }
  .cel-emoji-wrap { font-size: 64px; margin-bottom: 14px; }
  .cel-hero h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .cel-hero p { font-size: 14px; margin-bottom: 24px; }
  .cel-elapsed { padding: 14px 18px; margin-bottom: 24px; }
  .cel-actions { margin-bottom: 20px; }
  .cd-row-head { flex-direction: column; align-items: flex-start; }
  .cd-row-actions { width: 100%; justify-content: space-between; }
}
@media (max-width: 420px) {
  .big-flip-card { width: 58px; height: 72px; font-size: 28px; }
}
@media (max-width: 900px) {
  .filter-toolbar { flex-wrap: wrap; }
  .filter-search { flex: 1 1 100%; }
  .filter-daterange { flex: 1 1 calc(50% - 5px); }
  .filter-select { flex: 1 1 calc(50% - 5px); }
}
@media (max-width: 600px) {
  .cd-grid { grid-template-columns: 1fr; }
  .flip-card { width: 40px; height: 52px; font-size: 21px; }
  .flip-digits { gap: 2px; }
  .flip-clock { gap: 8px; }
  .create-cta { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .filter-toolbar { flex-direction: column; align-items: stretch; }
  .filter-search,
  .filter-daterange,
  .filter-select { flex: 1 1 100%; width: 100%; }
}

/* Create countdown page */
main.ns-main.countdowns-page--create,
main.ns-main.countdowns-page--celebration {
  padding-top: 0;
}

.cd-create-section {
  background: var(--white);
  padding: 0 5% 90px;
  display: flex;
  justify-content: center;
}
.cd-create-wrap {
  max-width: 620px;
  width: 100%;
  margin-top: -44px;
  position: relative;
  z-index: 2;
}
.cd-create-card {
  background: var(--white);
  border: 1px solid rgba(209, 218, 234, 0.6);
  border-radius: 28px;
  box-shadow: 0 24px 60px -12px rgba(15, 31, 92, 0.16), 0 4px 16px rgba(15, 31, 92, 0.06);
  overflow: hidden;
}
.cd-create-card::before {
  content: '';
  display: block;
  height: 5px;
  background: linear-gradient(90deg, #EC4899, #8B5CF6, #1A6FBF);
}
.cd-create-card-body { padding: 36px; }
.cd-create-card-body h2 {
  font-size: 21px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}
.cd-create-card-body > .subtitle {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 28px;
}
.cd-form-group { margin-bottom: 20px; }
.cd-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.cd-form-row .cd-form-group { margin-bottom: 0; }
.cd-form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
}
.cd-form-group label .req { color: #e44; }
.cd-form-group label .opt { font-weight: 400; color: var(--muted); }
.cd-form-group input[type="text"],
.cd-form-group input[type="date"],
.cd-form-group input[type="time"],
.cd-form-group select,
.cd-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: #F2F6FF;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: all .2s;
}
.cd-form-group input:focus,
.cd-form-group select:focus,
.cd-form-group textarea:focus {
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 184, 200, 0.12);
}
.cd-form-group textarea { resize: vertical; min-height: 90px; }
.cd-form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235B6680' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.cd-visibility-toggle { display: flex; gap: 10px; margin-top: 8px; }
.cd-vis-option { flex: 1; position: relative; }
.cd-vis-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.cd-vis-option label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all .2s;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: #F2F6FF;
  height: 100%;
}
.cd-vis-option label small { font-weight: 400; color: var(--muted); line-height: 1.4; }
.cd-vis-option input:checked + label {
  border-color: var(--blue);
  background: rgba(26, 111, 191, 0.05);
  color: var(--navy);
}
.cd-vis-option label .vis-icon { font-size: 16px; flex-shrink: 0; }
.cd-preview-box {
  background: #F2F6FF;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-top: 24px;
  text-align: center;
}
.cd-preview-box h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 14px;
}
.cd-preview-mini-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  min-height: 24px;
}
.cd-preview-clock { display: flex; gap: 8px; justify-content: center; }
.cd-prev-unit {
  background: var(--navy);
  border-radius: 10px;
  padding: 10px 14px;
  text-align: center;
  min-width: 54px;
}
.cd-prev-num {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  display: block;
  line-height: 1;
}
.cd-prev-lbl {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}
.cd-form-error {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 53, 0.08);
  border: 1.5px solid rgba(255, 107, 53, 0.3);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
  color: #C04A1A;
}
.cd-create-btn-row { display: flex; gap: 12px; margin-top: 4px; }
.cd-btn-cancel {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F2F6FF;
  color: var(--navy);
  border: 1.5px solid var(--border);
  padding: 13px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: all .2s;
}
.cd-btn-cancel:hover { background: #E8EFFC; }
.cd-btn-create {
  flex: 1.4;
  background: linear-gradient(135deg, #1A2E6B 0%, #1A6FBF 50%, #00B8C8 100%);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 6px 22px rgba(26, 111, 191, 0.28);
}
.cd-btn-create:disabled { opacity: .5; cursor: not-allowed; }
.cd-form-note { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 14px; }
.cd-create-success { text-align: center; padding: 20px 0; }
.cd-success-icon { font-size: 52px; margin-bottom: 16px; }
.cd-create-success h3 { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.cd-create-success p { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.cd-create-success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cd-detail-create-cta { margin: 0 5% 60px; max-width: 1180px; margin-left: auto; margin-right: auto; }

/* Celebration page */
.countdowns-page--celebration { overflow-x: hidden; }
#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.cel-hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 76px 5% 48px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0B0520 0%, #1A0A3A 45%, #0E1A4A 100%);
}
.cel-glow1,
.cel-glow2,
.cel-glow3 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.cel-glow1 {
  top: 10%; left: 10%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.3), transparent 70%);
  animation: celPulseGlow 3s ease-in-out infinite;
}
.cel-glow2 {
  bottom: 10%; right: 10%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25), transparent 70%);
  animation: celPulseGlow 3s ease-in-out infinite 1.5s;
}
.cel-glow3 {
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26, 111, 191, 0.15), transparent 70%);
}
@keyframes celPulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}
/* Keep content above decorations; do not override absolute stars/glows */
.cel-hero > *:not(.cel-glow1):not(.cel-glow2):not(.cel-glow3):not(.cel-star) {
  position: relative;
  z-index: 2;
}
.cel-emoji-wrap { font-size: 80px; margin-bottom: 20px; }
.cel-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}
.cel-hero h1 span {
  background: linear-gradient(135deg, #FFD700, #FF6B35, #EC4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cel-event-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 10px 22px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
}
.cel-hero p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 460px;
  margin: 0 auto 36px;
}
.cel-elapsed {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 18px 28px;
  margin-bottom: 36px;
  display: inline-block;
}
.cel-elapsed-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.cel-elapsed-nums { display: flex; gap: 16px; justify-content: center; }
.cel-elapsed-num {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  display: block;
  font-variant-numeric: tabular-nums;
}
.cel-elapsed-lbl {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}
.cel-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.cel-btn-primary,
.cel-btn-secondary {
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
}
.cel-btn-primary {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.cel-btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}
.cel-star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: celTwinkle 3s ease-in-out infinite;
}
@keyframes celTwinkle {
  0%, 100% { opacity: .15; transform: scale(1); }
  50% { opacity: .8; transform: scale(1.5); }
}
.cel-info-section { background: var(--white); padding: 60px 5%; }
.cel-info-wrap { max-width: 640px; margin: 0 auto; text-align: center; }
.cel-info-wrap h2 { font-size: 24px; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.cel-info-wrap p { font-size: 15px; color: var(--muted); line-height: 1.75; margin-bottom: 30px; }
.cel-share { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.cel-share-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--navy);
  font-family: inherit;
}
.cel-btn-create {
  background: linear-gradient(135deg, #1A2E6B 0%, #1A6FBF 50%, #00B8C8 100%);
  color: #fff;
  box-shadow: 0 6px 22px rgba(26, 111, 191, 0.28);
}
.cel-more-section { background: #E8EFFC; padding: 60px 5%; }
.cel-more-wrap { max-width: 800px; margin: 0 auto; }
.cel-more-wrap h2 { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 22px; text-align: center; }
.cel-more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cel-more-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  text-decoration: none;
  display: block;
  transition: transform .25s;
}
.cel-more-card:hover { transform: translateY(-4px); }
.cel-more-card h4 { font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.cel-more-mini { display: flex; gap: 6px; margin-bottom: 10px; }
.cmm-unit { flex: 1; background: #F2F6FF; border-radius: 8px; padding: 6px 4px; text-align: center; }
.cmm-num { font-size: 15px; font-weight: 800; color: var(--navy); display: block; }
.cmm-lbl { font-size: 8px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.cel-more-cat { font-size: 10px; font-weight: 700; color: var(--muted); }

@media (max-width: 700px) {
  .cel-more-grid { grid-template-columns: 1fr 1fr; }
  .cd-visibility-toggle { flex-direction: column; }
}
@media (max-width: 540px) {
  .cd-form-row { grid-template-columns: 1fr; }
  .cd-create-card-body { padding: 26px 20px; }
  .cd-create-btn-row { flex-direction: column-reverse; }
}
@media (max-width: 440px) {
  .cel-more-grid { grid-template-columns: 1fr; }
}

/* My countdowns manage page */
main.ns-main.countdowns-page--manage {
  padding-top: 0;
}

.cd-breadcrumb {
  padding: 78px 5% 8px;
  max-width: 1180px;
  margin: 0 auto;
}
.cd-breadcrumb-inner {
  font-size: 13px;
  color: var(--muted);
}
.cd-breadcrumb-inner a {
  color: var(--muted);
  text-decoration: none;
}
.cd-breadcrumb-inner a:hover { color: var(--blue); }
.cd-breadcrumb-inner .sep { color: var(--border); margin: 0 6px; }
.cd-breadcrumb-inner .current { color: var(--navy); font-weight: 600; }

.cd-user-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 5% 80px;
}

.cd-manage-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.cd-manage-header h1 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}
.cd-manage-header p { font-size: 14px; color: var(--muted); }
.cd-btn-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #1A2E6B 0%, #1A6FBF 50%, #00B8C8 100%);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 22px rgba(26, 111, 191, 0.28);
}

.cd-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.cd-stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cd-stat-icon { font-size: 22px; }
.cd-stat-text .num {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
}
.cd-stat-text .lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

.cd-manage-toolbar { margin-bottom: 16px; }
.cd-status-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.cd-status-tab {
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--muted);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.cd-status-tab.active {
  border-color: var(--blue);
  color: var(--navy);
  background: rgba(26, 111, 191, 0.06);
}
.cd-status-tab .tab-count {
  margin-left: 4px;
  opacity: 0.7;
}

.cd-manage-list { display: flex; flex-direction: column; gap: 12px; }
.cd-manage-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.cd-manage-card:hover { box-shadow: 0 8px 28px rgba(26, 46, 107, 0.1); }
.cd-manage-card-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}
.cd-manage-card-main { flex: 1; min-width: 0; }
.cd-manage-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.cd-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  background: rgba(26, 111, 191, 0.1);
  color: var(--blue);
}
.cd-status-badge.completed {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}
.cd-cat-mini,
.cd-vis-mini {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.cd-manage-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}
.cd-manage-desc {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.5;
}
.cd-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.cd-manage-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.cd-act-btn {
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--navy);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  text-align: center;
}
.cd-act-btn.view { background: rgba(26, 111, 191, 0.08); border-color: rgba(26, 111, 191, 0.2); color: var(--blue); }
.cd-act-btn.danger { color: #dc2626; border-color: rgba(239, 68, 68, 0.3); }

.cd-manage-empty {
  text-align: center;
  padding: 48px 20px;
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: 18px;
}
.cd-manage-empty-icon { font-size: 40px; margin-bottom: 12px; }
.cd-manage-empty h3 { font-size: 1.1rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.cd-manage-empty p { font-size: 14px; color: var(--muted); margin-bottom: 18px; }

.cd-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 31, 92, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
}
.cd-modal-overlay.open { display: flex; }
.cd-modal {
  background: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 24px 60px rgba(15, 31, 92, 0.2);
}
.cd-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}
.cd-modal-head h2 { font-size: 18px; font-weight: 800; color: var(--navy); }
.cd-modal-close {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: var(--muted);
}
.cd-modal-body { padding: 22px; }
.cd-modal-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 22px 22px;
  border-top: 1px solid var(--border);
}

@media (max-width: 760px) {
  .cd-stats-row { grid-template-columns: repeat(2, 1fr); }
  .cd-manage-header { flex-direction: column; }
  .cd-manage-card-inner { flex-direction: column; }
  .cd-manage-actions { flex-direction: row; flex-wrap: wrap; }
}
