/* ================================================================
   ALJ Webinar Portal — Brand CSS
   Colors & fonts from the presenter/landing page design system
   ================================================================ */

:root {
  --bg: #151515;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --card-border: rgba(184, 3, 0, 0.6);
  --red: #b80300;
  --red-bright: #f91a1a;
  --red-dark: #850200;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.55);
  --muted-dim: rgba(255, 255, 255, 0.3);
  --grid-line: rgba(184, 3, 0, 0.06);
  --success: #22c55e;
  --success-bg: rgba(34, 197, 94, 0.12);
}

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

body {
  font-family: 'Questrial', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Grid overlay on body */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 79px, var(--grid-line) 79px, var(--grid-line) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, var(--grid-line) 79px, var(--grid-line) 80px);
  pointer-events: none;
  z-index: 0;
}

/* ---- LAYOUT ---- */
main {
  flex: 1;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
  position: relative;
  z-index: 1;
}

/* ---- HEADER ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo { height: 36px; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-email {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Header tabs */
.header-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--muted);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.header-tab:hover {
  color: var(--white);
}

.header-tab--active {
  color: var(--white);
  border-bottom-color: var(--red);
}

.header-tab svg {
  opacity: 0.6;
}

.header-tab--active svg {
  opacity: 1;
}

.header-sep {
  width: 1px;
  height: 16px;
  background: var(--border);
}

/* ---- AVATAR ---- */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
}

.avatar--sm {
  width: 28px;
  height: 28px;
  font-size: 0.65rem;
}

.avatar--lg {
  width: 64px;
  height: 64px;
  font-size: 1.25rem;
}

/* ---- FOOTER ---- */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.8rem;
  color: var(--muted-dim);
  position: relative;
  z-index: 1;
}

.footer-links {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--muted-dim);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-links span {
  opacity: 0.3;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.4rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }

.accent { color: var(--red-bright); }
.text-muted { color: var(--muted); }
.text-small { font-size: 0.85rem; }

.subtitle {
  font-family: 'Inter Tight', sans-serif;
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* ---- CARDS ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--card-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: background 0.15s;
}

.card:hover { background: var(--bg-card-hover); }
.card-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.card-desc {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---- BADGES ---- */
.badge {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2em 0.7em;
  border-radius: 4px;
  vertical-align: middle;
}

.badge-standard {
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

.badge-vip {
  background: rgba(184, 3, 0, 0.2);
  color: var(--red-bright);
  border: 1px solid rgba(184, 3, 0, 0.4);
}

/* ---- FORMS ---- */
.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
textarea,
select {
  width: 100%;
  padding: 0.7rem 1rem;
  font-family: 'Inter Tight', sans-serif;
  font-size: 1rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.15s;
}

input:focus, select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(184, 3, 0, 0.2);
}

select option {
  background: var(--bg);
  color: var(--white);
}

/* ---- ADMIN FORM GRID ---- */
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0 1rem;
  margin-bottom: 0.5rem;
}

.admin-form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.admin-form-row .form-group {
  flex: 1;
  min-width: 180px;
}

/* Stat card (admin dashboards) */
.stat-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  flex: 1 1 0;
  min-width: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--card-border);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
}

.stat-card__value {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1.2;
}

.stat-card__label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Form helper text */
.form-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
  display: block;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--red-bright);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
  font-size: 0.75rem;
  padding: 0.4rem 0.9rem;
}

.btn-danger {
  background: transparent;
  color: var(--red-bright);
  border: 1px solid rgba(184, 3, 0, 0.4);
}
.btn-danger:hover {
  background: rgba(184, 3, 0, 0.15);
}

.btn-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.btn-success:hover {
  background: rgba(34, 197, 94, 0.2);
}

/* ---- ALERTS ---- */
.alert {
  padding: 0.8rem 1rem;
  border-radius: 6px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.alert-error {
  background: rgba(184, 3, 0, 0.12);
  color: var(--red-bright);
  border: 1px solid rgba(184, 3, 0, 0.3);
}

.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.alert-info {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* ---- TABLES ---- */
.table-wrap {
  overflow-x: auto;
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.table-wrap::-webkit-scrollbar {
  height: 4px;
}

.table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.table-wrap::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.9rem;
}

thead th {
  text-align: left;
  padding: 0.6rem 0.8rem;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

tbody td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* ---- UTILITY ---- */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

.text-center { text-align: center; }

/* ---- PAGE-SPECIFIC: DASHBOARD WEBINAR CARDS ---- */
.webinar-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--card-border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.2s;
}

.webinar-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(184, 3, 0, 0.5);
  border-left-color: var(--red-bright);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(184, 3, 0, 0.15);
}

.webinar-card--locked {
  opacity: 0.55;
  cursor: default;
}

.webinar-card--locked:hover {
  background: var(--bg-card);
  border-color: var(--border);
  border-left-color: var(--card-border);
}

/* Thumbnail */
.webinar-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.webinar-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Play button overlay */
.webinar-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.2s;
}

.webinar-card:hover .webinar-card__play {
  opacity: 1;
}

/* Lock overlay */
.webinar-card__lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: var(--muted);
}

/* Card body */
.webinar-card__body {
  padding: 1.25rem 1.5rem;
}

.webinar-card__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.webinar-card__meta {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.8rem;
  color: var(--muted-dim);
  margin-top: 0.5rem;
}

.webinar-card__cta {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--red-bright);
  margin-top: 0.75rem;
  transition: color 0.15s;
}

.webinar-card:hover .webinar-card__cta {
  color: var(--white);
}

/* ---- SECTION LABELS ---- */
.section-label {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* ---- PAGE-SPECIFIC: LOGIN ---- */
.login-container {
  max-width: 420px;
  margin: 3rem auto 0;
  text-align: center;
}

.login-brand {
  margin-bottom: 2rem;
}

.login-icon {
  margin-bottom: 1.25rem;
}

.login-container h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.login-container .subtitle {
  margin-bottom: 0;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  text-align: left;
}

.login-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.8rem;
  color: var(--muted-dim);
  text-align: center;
}

/* ---- PAGE-SPECIFIC: CHECK EMAIL ---- */
.check-email {
  max-width: 480px;
  margin: 3rem auto 0;
  text-align: center;
}

.check-email__icon {
  margin-bottom: 1.5rem;
}

.check-email__tips {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.check-email__tip {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}

.check-email__tip strong {
  color: rgba(255, 255, 255, 0.75);
}

/* ---- PAGE-SPECIFIC: REPLAY ---- */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- PAGE-SPECIFIC: ERROR ---- */
.error-page {
  text-align: center;
  padding-top: 4rem;
}

.error-icon {
  margin-bottom: 1rem;
  opacity: 0.7;
}

.error-page .error-code {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 5rem;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.25rem;
}

/* ---- ADMIN SIDEBAR LAYOUT ---- */
body.admin-page main {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  padding-top: 2rem;
}

body.admin-page .admin-sidebar {
  flex-shrink: 0;
  width: 180px;
  position: sticky;
  top: 80px;
  align-self: flex-start;
}

body.admin-page .admin-content {
  flex: 1;
  min-width: 0;
}

.admin-sidebar__label {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-dim);
  padding: 0 0.75rem 0.6rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
}

.admin-sidebar__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--muted);
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  margin-top: 2px;
  transition: color 0.15s, background 0.15s;
}

.admin-sidebar__item svg {
  opacity: 0.5;
  flex-shrink: 0;
}

.admin-sidebar__item:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.admin-sidebar__item:hover svg {
  opacity: 0.8;
}

.admin-sidebar__item--active {
  color: var(--white);
  background: rgba(184, 3, 0, 0.12);
  border-left: 2px solid var(--red);
  padding-left: calc(0.75rem - 2px);
}

.admin-sidebar__item--active svg {
  opacity: 1;
  stroke: var(--red-bright);
}

@media (max-width: 768px) {
  body.admin-page main {
    flex-direction: column;
    gap: 0;
  }

  body.admin-page .admin-sidebar {
    width: 100%;
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .admin-sidebar__label {
    width: 100%;
    border-bottom: none;
    padding-bottom: 0.3rem;
    margin-bottom: 0;
  }

  .admin-sidebar__item {
    padding: 0.4rem 0.7rem;
    font-size: 0.75rem;
    margin-top: 0;
  }
}

/* ---- EMAIL FLOW CARDS ---- */
.email-flow {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.email-flow__header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.email-flow__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.email-flow__name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}

.email-flow__trigger {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.email-flow__header .badge {
  margin-left: auto;
  flex-shrink: 0;
}

.email-flow__details {
  padding: 0.75rem 1.25rem;
}

.email-flow__row {
  display: flex;
  gap: 1rem;
  padding: 0.35rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.email-flow__label {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  min-width: 80px;
  flex-shrink: 0;
  padding-top: 0.1rem;
}

/* ---- EMAIL JOURNEY DIAGRAM ---- */
.email-journey {
  padding: 1rem 0 1rem 1.5rem;
}

.email-journey__step {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.email-journey__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.email-journey__dot--branch {
  background: var(--muted);
}

.email-journey__dot--success {
  background: var(--success);
  border-color: rgba(34, 197, 94, 0.3);
}

.email-journey__dot--warning {
  background: var(--red);
  border-color: rgba(184, 3, 0, 0.3);
}

.email-journey__content {
  display: flex;
  flex-direction: column;
}

.email-journey__content strong {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
}

.email-journey__content .text-muted {
  font-size: 0.75rem;
  margin-top: 0.1rem;
}

.email-journey__line {
  width: 2px;
  height: 24px;
  background: var(--border);
  margin-left: 5px;
}

.email-journey__branches {
  display: flex;
  gap: 3rem;
  padding-left: 0;
  margin-top: 0.5rem;
}

.email-journey__branch {
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}

.email-journey__branch-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

/* ---- ADMIN TABLE ACTIONS ---- */
.actions-cell {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.actions-cell form {
  display: inline;
}

/* ---- BREADCRUMBS ---- */
.breadcrumb {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--white);
}
.breadcrumb .sep {
  margin: 0 0.4rem;
  opacity: 0.4;
}

/* ---- ANNOUNCEMENTS ---- */
.announcement {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: linear-gradient(135deg, rgba(184, 3, 0, 0.1) 0%, rgba(184, 3, 0, 0.03) 100%);
  border: 1px solid rgba(184, 3, 0, 0.2);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.9rem;
}

/* ---- UPCOMING DATES ---- */
.upcoming-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(184, 3, 0, 0.15);
  border: 1px solid rgba(184, 3, 0, 0.3);
  border-radius: 8px;
  flex-shrink: 0;
}

.upcoming-date__month {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red-bright);
  line-height: 1;
}

.upcoming-date__day {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  line-height: 1.1;
}

/* ---- ACCOUNT PAGE ---- */
.account-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.account-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem;
}

.account-avatar {
  margin-bottom: 1rem;
}

.account-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.account-stat {
  text-align: center;
}

.account-stat__value {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1.2;
}

.account-stat__label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 0.15rem;
}

.account-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.account-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.account-detail:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.account-detail__label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
}

.account-detail__value {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.85rem;
}

/* ---- WEBINAR DETAIL ---- */
.webinar-detail__header {
  margin-bottom: 1.5rem;
}

.webinar-detail__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.webinar-detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.webinar-detail__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ---- RESOURCES ---- */
.resource-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: var(--white);
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.9rem;
  transition: background 0.15s, border-color 0.15s;
}

.resource-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--red);
}

.resource-item--locked {
  opacity: 0.5;
  cursor: default;
}

.resource-item--locked:hover {
  background: var(--bg-card);
  border-color: var(--border);
}

/* ---- NOTES ---- */
.notes-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.9rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 6px;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
  line-height: 1.6;
}

.notes-textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(184, 3, 0, 0.2);
}

.notes-status {
  font-weight: 400;
  font-size: 0.7rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 0.5rem;
}

/* ---- STAR RATING ---- */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.15rem;
}

.star-rating input {
  display: none;
}

.star-rating label {
  display: inline-block;
  font-size: 1.5rem;
  color: var(--muted-dim);
  cursor: pointer;
  transition: color 0.1s;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: var(--red-bright);
}

/* ---- WELCOME BANNER ---- */
.welcome-banner {
  position: relative;
  background: linear-gradient(135deg, rgba(184, 3, 0, 0.15) 0%, rgba(184, 3, 0, 0.05) 100%);
  border: 1px solid rgba(184, 3, 0, 0.3);
  border-left: 3px solid var(--red);
  border-radius: 8px;
  padding: 1.25rem 2.5rem 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.welcome-dismiss {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

.welcome-dismiss:hover {
  color: var(--white);
}

.welcome-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.welcome-desc {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.welcome-desc strong {
  color: var(--white);
}

/* ---- MOBILE BOTTOM NAV ---- */
.mobile-nav {
  display: none;
}

/* ---- SHOP PAGES (wider layout) ---- */
body.shop-page main {
  max-width: 960px;
}

/* ---- SHOP GRID ---- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.shop-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.2s;
}

.shop-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(184, 3, 0, 0.4);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(184, 3, 0, 0.15);
}

.shop-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.shop-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-dim);
}

.shop-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.shop-card__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  text-transform: none;
}

.shop-card__desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.shop-card__date {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.8rem;
  color: var(--muted-dim);
  margin-bottom: 0.75rem;
}

.shop-card__prices {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.shop-card__price {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}

.shop-card__price--vip {
  color: var(--red-bright);
}

/* ---- SHOP DETAIL ---- */
.shop-detail__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.shop-detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-detail__desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.shop-detail__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* ---- PRICING CARDS ---- */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.pricing-card--vip {
  border-color: rgba(184, 3, 0, 0.5);
  background: linear-gradient(135deg, rgba(184, 3, 0, 0.08) 0%, var(--bg-card) 100%);
  position: relative;
}

.pricing-card__header {
  margin-bottom: 1.25rem;
}

.pricing-card__price {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  line-height: 1.1;
  margin-top: 0.5rem;
}

.pricing-card--vip .pricing-card__price {
  color: var(--red-bright);
}

.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.pricing-card__features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
}

.pricing-card__features li svg {
  color: var(--success);
  flex-shrink: 0;
}

.pricing-card__form {
  margin-top: auto;
}

.pricing-card__form .form-group {
  margin-bottom: 0.75rem;
}

.pricing-card__form input[type="email"],
.pricing-card__form input[type="text"] {
  font-size: 0.9rem;
  padding: 0.6rem 0.85rem;
}

/* ---- SHOP CARD FOOTER ---- */
.shop-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.shop-card__enrolled {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.75rem;
  color: var(--muted-dim);
}

.shop-card--bundle {
  border-color: rgba(184, 3, 0, 0.3);
  background: linear-gradient(135deg, rgba(184, 3, 0, 0.04) 0%, var(--bg-card) 100%);
}

/* ---- COUNTDOWN ---- */
.countdown-banner {
  background: linear-gradient(135deg, rgba(184, 3, 0, 0.12) 0%, rgba(184, 3, 0, 0.04) 100%);
  border: 1px solid rgba(184, 3, 0, 0.25);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  margin: 1.5rem 0;
}

.countdown-label {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-unit span {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
  color: var(--red-bright);
}

.countdown-unit small {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ---- TESTIMONIALS ---- */
.testimonials {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
}

.testimonial__stars {
  display: flex;
  gap: 0.1rem;
  margin-bottom: 0.5rem;
}

.testimonial__text {
  font-style: italic;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.testimonial__author {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-dim);
}

/* ---- UPSELL BANNER ---- */
.upsell-banner {
  background: linear-gradient(135deg, rgba(184, 3, 0, 0.12) 0%, rgba(184, 3, 0, 0.04) 100%);
  border: 1px solid rgba(184, 3, 0, 0.3);
  border-left: 3px solid var(--red);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.upsell-banner__text {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
  min-width: 200px;
}

.upsell-banner__text strong {
  color: var(--white);
}

/* ---- REVENUE CHART ---- */
.revenue-chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 120px;
  padding-top: 0.5rem;
}

.revenue-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.revenue-bar__fill {
  width: 100%;
  min-width: 4px;
  background: var(--red);
  border-radius: 2px 2px 0 0;
  transition: height 0.3s;
  min-height: 2px;
}

.revenue-bar:hover .revenue-bar__fill {
  background: var(--red-bright);
}

.revenue-bar__label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.55rem;
  color: var(--muted-dim);
  margin-top: 0.25rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  main {
    padding: 1.5rem 1rem;
    padding-bottom: 5rem; /* space for bottom nav */
  }
  h1 { font-size: 1.75rem; }
  .site-header { padding: 0.75rem 1rem; }
  .user-email { display: none; }
  .header-tab { display: none; }
  .header-sep { display: none; }

  /* Footer needs clearance too */
  .site-footer {
    padding-bottom: 5rem;
  }

  /* Show mobile bottom nav */
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    z-index: 100;
    padding: 0.5rem 0;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
  }

  .mobile-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-decoration: none;
    color: var(--muted);
    font-family: 'Inter Tight', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.4rem 0;
    transition: color 0.15s;
  }

  .mobile-nav__item:hover,
  .mobile-nav__item--active {
    color: var(--white);
  }

  .mobile-nav__item--active svg {
    stroke: var(--red-bright);
  }
}
