*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f7f5f0;
  --black: #111111;
  --white: #ffffff;
  --red: #d63a2a;
  --red-dark: #b22e20;
  --gray: #e8e5de;
  --gray-mid: #c8c4bc;
  --muted: #888880;
  --border: rgba(0,0,0,0.1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--black);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* HEADER */
header {
  padding: 2.5rem 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--black);
}
.logo span { color: var(--red); }

.header-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
  line-height: 1.6;
}

/* FORM */
.form-wrap { padding: 1.5rem; }

.form-section { margin-bottom: 1.5rem; }

.form-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}

/* TOGGLE CHIPS */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip-toggle { display: none; }

.chip-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  padding: 7px 14px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  border-radius: 2px;
}

.chip-toggle:checked + .chip-label {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* SELECT ROW */
.select-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.select-group { display: flex; flex-direction: column; gap: 6px; }

.form-select {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--black);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  padding: 10px 12px;
  outline: none;
  appearance: none;
  -webkit-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='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  border-radius: 2px;
  cursor: pointer;
}

.form-select:focus { border-color: var(--black); }

/* INJURY FILTER */
.injury-section { margin-bottom: 1rem; }

.injury-toggle-row {
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  padding: 8px 0;
  display: block;
  width: 100%;
  text-align: left;
  letter-spacing: 0.02em;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.injury-toggle-row:hover { color: var(--black); }

.injury-body {
  background: var(--gray);
  padding: 14px;
  border-radius: 2px;
  margin-top: 2px;
}

.injury-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}

.injury-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }

.injury-toggle { display: none; }

.injury-chip-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  border-radius: 2px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.injury-toggle:checked + .injury-chip-label {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.injury-other-input {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--black);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 300;
  padding: 9px 12px;
  outline: none;
  border-radius: 2px;
  margin-top: 4px;
}
.injury-other-input:focus { border-color: var(--black); }

.injury-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.injury-clear-link, .injury-hide-link {
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  padding: 4px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.injury-clear-link { text-decoration: underline; }
.injury-clear-link:hover { color: var(--red); }
.injury-hide-link:hover { color: var(--black); }

/* GENERATE BUTTON */
.gen-btn {
  width: 100%;
  background: var(--red);
  color: #fff;
  border: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 0.08em;
  padding: 18px 24px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 0.5rem;
}
.gen-btn:hover { background: var(--red-dark); }
.gen-btn:active { transform: scale(0.99); }
.gen-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* HISTORY */
.history-section {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.history-title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.history-badge {
  background: var(--black);
  color: var(--white);
  font-size: 10px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0;
}

.history-clear {
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  text-decoration: underline;
  padding: 0;
}
.history-clear:hover { color: var(--red); }

.history-list { display: flex; flex-direction: column; gap: 1px; }

.history-row {
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--white);
  transition: background 0.15s;
}
.history-row:hover { background: #fafaf8; }

.history-row-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 14px;
  gap: 1rem;
  min-height: 44px;
}

.history-row-left { flex: 1; min-width: 0; }

.history-row-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--black);
  line-height: 1;
  margin-bottom: 6px;
}

.history-pills { display: flex; flex-wrap: wrap; gap: 4px; }

.history-pill {
  font-size: 10px;
  background: var(--gray);
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 2px;
  white-space: nowrap;
}

.history-row-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 2px;
}

.history-date {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.history-chevron {
  font-size: 18px;
  color: var(--gray-mid);
  transition: transform 0.2s;
  line-height: 1;
  display: inline-block;
}
.history-chevron.open { transform: rotate(90deg); }

.history-row-body { border-top: 1px solid var(--border); }

.history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 14px;
  background: var(--gray);
  font-size: 11px;
  color: var(--muted);
}

.history-injury-tag { color: #e07060; }

/* LOADING */
.loading-section {
  display: none;
  padding: 3rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.loader-track {
  width: 48px;
  height: 48px;
  border: 2px solid var(--gray);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

.loading-msg {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* WOD OUTPUT */
.wod-section {
  display: none;
  border-top: 1px solid var(--border);
  animation: fadeIn 0.4s ease;
}

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

/* SHARED BANNER */
.shared-banner {
  background: var(--black);
  color: var(--white);
  padding: 12px 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 13px;
}

.shared-banner-btn {
  background: var(--red);
  color: #fff;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 14px;
  cursor: pointer;
  border-radius: 2px;
  white-space: nowrap;
  min-height: 44px;
}
.shared-banner-btn:hover { background: var(--red-dark); }

.wod-header {
  padding: 1.5rem;
  background: var(--black);
  color: var(--white);
}

.wod-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.wod-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40px;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--white);
}

.wod-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.meta-pill {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border: 0.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
}

.meta-pill.red { border-color: rgba(214,58,42,0.5); color: #e07060; }

/* WOD BLOCKS */
.wod-body { padding: 0; }

.wod-block {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.wod-block:last-child { border-bottom: none; }

.block-type {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.block-type::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--border);
}

.block-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--black);
  line-height: 1;
  margin-bottom: 8px;
}

.block-content {
  font-size: 14px;
  color: #444;
  line-height: 1.8;
  font-weight: 300;
}

.block-content strong {
  font-weight: 500;
  color: var(--black);
}

/* MOVEMENT LINKS */
.movement-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: rgba(0,0,0,0.3);
}
.movement-link:hover { text-decoration-color: var(--black); }

.play-icon { font-style: normal; }

@media (min-width: 600px) {
  .movement-link { text-decoration: none; }
  .play-icon { display: none; }
  .wod-block:hover .movement-link {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: rgba(0,0,0,0.3);
  }
  .wod-block:hover .play-icon { display: inline; }
}

.scaling-toggle {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--red);
  cursor: pointer;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  border: none;
  background: none;
  padding: 0;
  font-family: 'DM Sans', sans-serif;
}

.scaling-content {
  display: none;
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--gray);
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  border-left: 2px solid var(--red);
}

.scaling-content.open { display: block; }

/* ACTION ROW */
.wod-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 1.25rem 1.5rem;
  background: var(--gray);
  border-top: 1px solid var(--border);
}

.action-btn {
  flex: 1;
  min-width: 70px;
  padding: 12px 8px;
  min-height: 44px;
  background: var(--white);
  border: 1px solid var(--border);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  cursor: pointer;
  transition: all 0.15s;
  border-radius: 2px;
}

.action-btn:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.action-btn.primary { background: var(--red); color: #fff; border-color: var(--red); }
.action-btn.primary:hover { background: var(--red-dark); border-color: var(--red-dark); }

/* ERROR */
.error-msg {
  display: none;
  margin: 1rem 1.5rem;
  padding: 12px 14px;
  background: #fff5f5;
  border: 1px solid #fcc;
  border-left: 3px solid var(--red);
  font-size: 13px;
  color: #c00;
  line-height: 1.6;
}

/* FOOTER */
footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

footer p { font-size: 11px; color: var(--muted); }
footer strong { color: var(--red); font-weight: 500; }

.divider { height: 1px; background: var(--border); margin: 0; }

/* UPGRADE MODAL */
.upgrade-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.upgrade-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  max-width: 360px;
  width: 100%;
  text-align: center;
}

.upgrade-card h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 0.04em;
  color: var(--black);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.upgrade-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.upgrade-btn-primary {
  width: 100%;
  background: var(--red);
  color: #fff;
  border: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.06em;
  padding: 14px 24px;
  cursor: pointer;
  margin-bottom: 10px;
  display: block;
  min-height: 44px;
}
.upgrade-btn-primary:hover { background: var(--red-dark); }

.upgrade-btn-secondary {
  width: 100%;
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 10px;
  cursor: pointer;
  display: block;
  min-height: 44px;
}
.upgrade-btn-secondary:hover { color: var(--black); border-color: var(--gray-mid); }

/* MODE SELECTOR */
.mode-section { margin-bottom: 1.5rem; }

.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mode-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  padding: 14px 10px 12px;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: border-color 0.15s, background 0.15s;
  border-radius: 2px;
  font-family: 'DM Sans', sans-serif;
  width: 100%;
}

.mode-card:hover {
  border-color: var(--gray-mid);
  background: #fafaf8;
}

.mode-card.selected {
  border-color: var(--red);
  background: #fff8f7;
}

.mode-icon {
  font-size: 22px;
  line-height: 1;
  display: block;
  margin-bottom: 2px;
}

.mode-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  line-height: 1.2;
  display: block;
}

.mode-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
  display: block;
}

/* HISTORY UPGRADE NUDGE */
.history-upgrade-nudge {
  margin-top: 10px;
  text-align: center;
  padding: 4px 0 2px;
}

.history-upgrade-nudge button {
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--red);
  cursor: pointer;
  padding: 6px 0;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: rgba(214,58,42,0.4);
}

.history-upgrade-nudge button:hover {
  text-decoration-style: solid;
}

.history-pill-mode {
  background: #fff0ee;
  color: var(--red);
  border: 1px solid rgba(214,58,42,0.2);
}

/* EMAIL CAPTURE BANNER */
.email-banner {
  background: #f2f0eb;
  border-top: 2px solid var(--red);
  padding: 14px 1.5rem;
  position: relative;
}

.email-banner-dismiss {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  min-height: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
}

.email-banner-dismiss:hover { color: var(--black); }

.email-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-right: 20px;
}

.email-banner-left { flex-shrink: 0; }

.email-banner-heading {
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 2px;
}

.email-banner-sub {
  font-size: 11px;
  color: var(--muted);
}

.email-banner-right { flex: 1; min-width: 200px; }

.email-banner-form {
  display: flex;
  gap: 6px;
}

.email-input {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--black);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 300;
  padding: 9px 12px;
  outline: none;
  border-radius: 2px;
  min-height: 40px;
}

.email-input:focus { border-color: var(--black); }
.email-input:disabled { opacity: 0.6; }

.email-btn {
  background: var(--red);
  color: #fff;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 9px 14px;
  cursor: pointer;
  border-radius: 2px;
  white-space: nowrap;
  min-height: 40px;
  letter-spacing: 0.04em;
}

.email-btn:hover { background: var(--red-dark); }
.email-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.email-error {
  font-size: 11px;
  color: #c00;
  margin-top: 5px;
}

.email-banner-success {
  font-size: 14px;
  font-weight: 500;
  color: #1a6b3c;
  padding: 8px 0;
  text-align: center;
}

@media (max-width: 480px) {
  .email-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .email-banner-right { width: 100%; }

  .email-banner-form { flex-direction: column; }

  .email-btn { width: 100%; text-align: center; }
}

/* SHOP ROW */
.shop-row {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.shop-row-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.shop-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.shop-pill {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  padding: 5px 11px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--black);
  text-decoration: none;
  border-radius: 2px;
  white-space: nowrap;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
}

.shop-pill:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* AFFILIATE CARD */
.affiliate-card {
  padding: 14px 1.5rem;
  background: #fffdf9;
  border-top: 1px solid var(--border);
}

.affiliate-card-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.affiliate-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.affiliate-link-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--black);
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.15s;
  display: inline-block;
  min-height: 38px;
  line-height: 24px;
}

.affiliate-link-btn:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.affiliate-tap {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}

.affiliate-disclosure {
  font-size: 10px;
  color: var(--muted);
  opacity: 0.7;
  letter-spacing: 0.01em;
}

/* EMAIL WOD PANEL */
.email-wod-panel {
  background: #f2f0eb;
  border-top: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.email-wod-panel.open { max-height: 160px; }

.email-wod-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 1.5rem 0;
}

.email-wod-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
}

.email-wod-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
  padding: 0 0 0 12px;
  font-family: 'DM Sans', sans-serif;
  line-height: 1;
  min-height: 32px;
  display: flex;
  align-items: center;
}
.email-wod-close:hover { color: var(--black); }

.email-wod-body { padding: 10px 1.5rem 14px; }

.email-wod-form-row {
  display: flex;
  gap: 6px;
}

.email-wod-error {
  font-size: 11px;
  color: #c00;
  margin-top: 5px;
}

.email-wod-success-msg {
  font-size: 14px;
  font-weight: 500;
  color: #1a6b3c;
  padding: 4px 0 2px;
}

.email-wod-subscribe-nudge {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.email-wod-subscribe-nudge button {
  background: none;
  border: none;
  color: var(--red);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-decoration-style: dotted;
}
.email-wod-subscribe-nudge button:hover { text-decoration-style: solid; }

/* FOOTER DISCLOSURE */
.footer-disclosure {
  width: 100%;
  text-align: center;
  margin-top: 4px;
}

@media (max-width: 480px) {
  .email-wod-form-row { flex-direction: column; }
  .email-wod-panel.open { max-height: 220px; }
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.toast.toast-visible { opacity: 1; }
.toast.toast-hidden { opacity: 0; transition: opacity 0.3s; }

/* SHARED TOP BANNER */
#shared-top-banner {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1f1f1f;
  color: #ffffff;
}

.shared-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 12px 1.5rem;
}

.shared-top-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.shared-top-cta {
  background: none;
  border: none;
  color: var(--red);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-align: left;
  min-height: 0;
}
.shared-top-cta:hover { color: #e84c3c; text-decoration: underline; }

.shared-top-dismiss {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  font-family: 'DM Sans', sans-serif;
  min-width: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.shared-top-dismiss:hover { color: #fff; }

/* SHARE URL MODAL */
.share-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.share-modal-card {
  background: var(--white);
  padding: 1.5rem;
  max-width: 360px;
  width: 100%;
}

.share-modal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--black);
  margin-bottom: 1rem;
}

.share-modal-input {
  width: 100%;
  background: var(--gray);
  border: 1px solid var(--border);
  color: var(--black);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 300;
  padding: 9px 12px;
  outline: none;
  border-radius: 2px;
  margin-bottom: 1rem;
  cursor: text;
}

.share-modal-actions {
  display: flex;
  gap: 8px;
}

.share-modal-actions .action-btn { flex: 1; }
