
:root {
  /* Universal Color Roles */
  --color-primary-action: #053E1D;   /* Buttons, CTAs, Active States */
  --color-accent: #00FF4F;           /* Success, toggles, micro-accents only */
  --color-card-bg: #F9F0E1;          /* Card backgrounds */
  --color-soft-bg: #E6FFDA;          /* Soft backgrounds, dividers, empty states */
  --color-text: #1D1D1D;             /* All text */
  --color-surface: #FFFFFF;          /* General white backgrounds */
  --color-muted: #4A4A4A;            /* Muted/secondary text */

  /* Typography */
  --font-headline: 'Montserrat', sans-serif;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing/Layout */
  --app-shell-gap: clamp(0.75rem, 2vw, 1.5rem);
  --app-shell-radius: clamp(1.5rem, 3vw, 3.25rem);
}


html {
  min-height: 100%;
  background: var(--color-card-bg);
}


body {
  font-family: var(--font-body);
  background: var(--color-card-bg);
  color: var(--color-text);
  margin: 0;
  min-height: 100vh;
  padding: var(--app-shell-gap);
}


.app-shell {
  min-height: calc(100vh - (var(--app-shell-gap) * 2));
  background: var(--color-card-bg);
  border-radius: var(--app-shell-radius);
  border: 1px solid rgba(5, 62, 29, 0.08);
  box-shadow: 0 20px 60px rgba(5, 62, 29, 0.08);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

.app-shell #app {
  flex: 1 1 auto;
  min-height: 0;
}

@media (max-width: 48rem) {
  body {
    padding: 0;
  }

  .app-shell {
    min-height: 100vh;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
}

body.plan-modal-open {
  overflow: hidden;
}


.site-header {
  background: var(--color-primary-action);
  border-bottom: 1px solid rgba(0, 255, 79, 0.2);
  color: var(--color-card-bg);
  box-shadow: 0 4px 24px rgba(5, 62, 29, 0.2);
}


.card {
  border: 1px solid rgba(5, 62, 29, 0.12);
  background: var(--color-card-bg);
  color: var(--color-text);
  box-shadow: 0 8px 24px rgba(5, 62, 29, 0.06);
}

.card .card-body {
  color: var(--text);
}

.table-dark {
  --bs-table-bg: #FFFFFF;
  --bs-table-striped-bg: #E6FFDA;
  border-radius: 1rem;
  overflow: hidden;
}

.table-dark th {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
}

.table-dark td {
  color: var(--text);
}

footer {
  border-top: 1px solid rgba(5, 62, 29, 0.12);
  background: #053E1D;
  color: #F9F0E1;
}


.chrome-button {
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.35rem;
  font-size: 0.95rem;
  font-family: var(--font-headline);
  font-weight: 700;
  cursor: pointer;
  background: var(--color-primary-action);
  color: var(--color-card-bg);
  box-shadow: 0 8px 24px rgba(5, 62, 29, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.chrome-button:hover {
  transform: translateY(-1px);
  background: #031f0f;
  box-shadow: 0 14px 32px rgba(5, 62, 29, 0.28);
}

.chrome-button.is-disabled {
  opacity: 0.7;
  pointer-events: none;
  cursor: not-allowed;
  background: rgba(5, 62, 29, 0.4);
  color: rgba(249, 240, 225, 0.85);
  box-shadow: none;
}

/* ── Plan modal ── */
.plan-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 62, 29, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
  z-index: 999;
}

.plan-modal-backdrop[hidden] {
  display: none;
}

.plan-modal {
  width: min(26.25rem, 100%);
  background: #FFFFFF;
  border-radius: 1.25rem;
  border: 1px solid rgba(5, 62, 29, 0.15);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: 0 18px 60px rgba(5, 62, 29, 0.2);
  position: relative;
}

.plan-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  color: #053E1D;
  font-size: 1.5rem;
  cursor: pointer;
}

.plan-modal-head {
  margin-bottom: 1.25rem;
}

.plan-modal-label {
  text-transform: uppercase;
  letter-spacing: 0.0625rem;
  font-size: 0.75rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #053E1D;
  margin: 0 0 0.4rem;
}

.plan-modal-head h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #1D1D1D;
  margin: 0;
}

.plan-modal-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.plan-modal-option {
  width: 100%;
  border: 1px solid rgba(5, 62, 29, 0.2);
  border-radius: 1rem;
  background: #F9F0E1;
  padding: 1rem 1.125rem;
  text-align: left;
  color: #1D1D1D;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: 'Roboto', sans-serif;
}

@media (min-width: 37.5rem) {
  .plan-modal-option {
    font-weight: 500;
  }
}

.plan-modal-option-detail {
  color: #4A4A4A;
  font-size: 0.9rem;
}

.plan-modal-option.is-active {
  border-color: #053E1D;
  background: #E6FFDA;
}

/* ── Nav helpers ── */
.chrome-cta-pair {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.chrome-cta-pair .chrome-button {
  margin: 0;
}

.chrome-button.is-disabled {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.chrome-button.is-disabled .landing-button-pill {
  margin-left: 0.5rem;
}

/* ── Badge ── */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--color-soft-bg);
  color: var(--color-primary-action);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Auth pages ── */
.auth-page {
  min-height: calc(100vh - 7.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1rem, 5vw, 1.5rem) calc(clamp(2rem, 6vw, 3.5rem) + env(safe-area-inset-bottom, 0rem));
  background: #F9F0E1;
}

.auth-card {
  width: 100%;
  max-width: min(26.25rem, 100%);
  background: #FFFFFF;
  border-radius: 1.5rem;
  border: 1px solid rgba(5, 62, 29, 0.12);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: 0 16px 48px rgba(5, 62, 29, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-card h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #1D1D1D;
  margin: 0;
}

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

.auth-card label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: #4A4A4A;
  font-family: 'Roboto', sans-serif;
}

.auth-card input {
  border-radius: 0.75rem;
  border: 1px solid rgba(5, 62, 29, 0.2);
  padding: 0.75rem;
  background: #F9F0E1;
  color: #1D1D1D;
  font-family: 'Roboto', sans-serif;
}

.auth-card input:focus {
  outline: 2px solid #053E1D;
  outline-offset: 1px;
}

.auth-card button {
  margin-top: 0.5rem;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  background: #053E1D;
  color: #F9F0E1;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.auth-card button:hover {
  background: #031f0f;
}

.auth-card button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-subtext {
  color: #4A4A4A;
  font-family: 'Roboto', sans-serif;
}

.auth-error {
  min-height: 1.25rem;
  color: #b91c1c;
  font-size: 0.9rem;
  font-family: 'Roboto', sans-serif;
}

.auth-meta {
  font-size: 0.9rem;
  color: #4A4A4A;
  font-family: 'Roboto', sans-serif;
}

.auth-meta a {
  color: #053E1D;
  font-weight: 600;
}

/* ── Profile ── */
.profile-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
}

.profile-edit-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

@media (min-width: 37.5rem) {
  .profile-container {
    max-width: min(30rem, 100%);
    margin: 0 auto;
  }
}

.profile-message {
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.4;
  font-family: 'Roboto', sans-serif;
}

.trial-progress-container {
  width: 100%;
  height: 0.5rem;
  background: #E6FFDA;
  border-radius: 0.25rem;
  overflow: hidden;
}

.trial-progress-bar {
  height: 100%;
  width: 0%;
  background: #053E1D;
  transition: width 0.3s ease;
}

.cancel-sub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  background: #b91c1c;
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

.cancel-sub-btn:hover {
  background: #991b1b;
}

@media (max-width: 48rem) {
  .site-header .container {
    text-align: center;
  }
  .card {
    border-radius: 1.125rem;
  }
}
