:root {
  --bg: #0f1115;
  --card-bg: #171a21;
  --border: #2a2e38;
  --text: #e8eaed;
  --muted: #9aa0ac;
  --accent: #4fd1a5;
  --accent-dark: #2fae85;
}

* { box-sizing: border-box; }

/* Sitewide default for plain text links (e.g. "Forgot password?", the
   Log in/Sign up toggle). Without this, browsers fall back to their own
   default blue/purple, and — critically — the default *visited* purple
   has much weaker contrast on this dark background than intended. Any
   link with its own class (.logout-link, .lang-switch, a.button, etc.)
   already overrides this via higher specificity, so this only fills the
   gap for genuinely unstyled links. */
a {
  color: var(--accent);
}

a:visited {
  color: var(--accent);
}

a:hover {
  color: var(--accent-dark);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
}

.brand {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  width: 24px;
  height: 24px;
  display: block;
}

.logout-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.logout-link:hover {
  color: var(--accent-dark);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.auth-card {
  max-width: 380px;
  margin: 40px auto;
}

label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 12px 0 4px;
}

input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
}

textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
}

button {
  margin-top: 18px;
  width: 100%;
  padding: 12px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: #06231a;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

button:hover { background: var(--accent-dark); }

a.button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 18px;
  padding: 12px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: #06231a;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
}

a.button:hover {
  background: var(--accent-dark);
}

.muted { color: var(--muted); font-size: 0.9rem; }

.flash {
  max-width: 380px;
  margin: 0 auto 16px;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  background: #3a2020;
  border: 1px solid #5a2e2e;
}

.flash::before {
  content: "!";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e08080;
  color: #3a2020;
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.flash.success {
  background: #17382d;
  border-color: #28614d;
}

.flash.success::before {
  content: "✓";
  background: var(--accent);
  color: #06231a;
}

.flash.warning {
  background: #3a321f;
  border-color: #66582b;
}

.flash.warning::before {
  content: "!";
  background: #d6b85a;
  color: #2b2410;
}

.flash p {
  margin: 0;
}

.flash p + p {
  margin-top: 4px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label { color: var(--muted); font-size: 0.85rem; }
.stat-value { font-size: 1.6rem; font-weight: 700; color: var(--accent); }

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  text-align: left;
  padding: 6px 4px;
  border-bottom: 1px solid var(--border);
}

th { color: var(--muted); font-weight: 500; }

.home-switcher {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.home-switcher a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.85rem;
}

.home-switcher a.active {
  color: var(--accent);
  border-color: var(--accent);
}

.add-home { color: var(--accent) !important; }

.edit-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
}

.hint {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 2px;
}

button.danger {
  background: transparent;
  border: 1px solid #a24444;
  color: #e08080;
  margin-top: 10px;
}

button.danger:hover { background: #2a1616; }

.member-remove-btn {
  width: auto;
  margin-top: 0;
  padding: 6px 12px;
  font-size: 0.8rem;
}

.profile-home-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* Native date/time picker icons render dark-on-dark on this theme by
   default — invert them so they're visible. */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.85);
  cursor: pointer;
}

.recommendation-card .stat-value {
  font-size: 2rem;
  color: var(--accent);
  margin: 4px 0;
}

.inline-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.inline-input-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.inline-input-row input {
  flex: 1;
}

.inline-input-row button {
  width: auto;
  margin-top: 0;
  padding: 10px 18px;
  white-space: nowrap;
}

.kwh-preview {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--accent);
}

.onboarding-card { max-width: 480px; }

.onboarding-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.onboarding-table th, .onboarding-table td {
  text-align: left;
  padding: 6px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.onboarding-skip {
  text-align: center;
  margin-top: 16px;
}

.onboarding-skip a {
  color: var(--accent);
  text-decoration: none;
}

.field-hint {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--accent);
  min-height: 1em;
}

.field-hint-error {
  color: #e08080;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.profile-identifier {
  font-size: 1.2rem;
  color: var(--accent);
  margin: 4px 0 0;
}

.profile-home-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.profile-home-row:last-of-type {
  border-bottom: none;
}

.profile-home-name {
  font-weight: 600;
  margin: 0 0 4px;
}

.add-home-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.address-heading {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 1rem;
}

.scope-note {
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 12px 0;
}

.invite-banner {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(79, 209, 165, 0.08);
}

.verified-badge {
  color: var(--accent);
}

.verify-warning {
  color: #e0b880;
  border-color: #a2843f;
}

.inline-verify-form {
  display: inline;
  margin: 0;
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  width: auto;
  font-weight: 600;
}

.category-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 1px 8px;
  margin-left: 6px;
  vertical-align: middle;
}

.landing-hero {
  text-align: center;
  max-width: 560px;
  margin: 40px auto 32px;
}

.landing-hero h1 {
  font-size: 1.8rem;
  line-height: 1.3;
  margin-bottom: 12px;
}

.landing-subtitle {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.landing-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--accent);
  color: #06231a;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--card-bg);
}

.landing-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 24px;
}

.landing-features h2 {
  font-size: 1rem;
  margin: 0 0 8px;
}

.landing-feature {
  text-align: left;
}

.feature-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 12px;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.landing-scope-note {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 60px;
}

.toggle-password {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  margin-top: 0;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
}

.toggle-password:hover {
  background: var(--bg);
  color: var(--text);
}

.optional-tag {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
}

select {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
}

.profile-name-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.profile-name-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.profile-name-heading h3 {
  margin: 0 0 4px;
}

.profile-name-display {
  margin: 0;
}

.profile-name-edit-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  margin: 4px 0 0;
  width: auto;
  color: var(--accent);
  font-size: 0.9rem;
}

.profile-name-edit-btn:hover {
  background: none;
  color: var(--accent-dark);
}

.profile-name-form {
  margin-top: 12px;
}

.profile-name-form-actions {
  display: flex;
  gap: 10px;
}

.profile-name-form-actions button {
  flex: 1;
}

.profile-name-form-actions .secondary-button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.profile-name-form-actions .secondary-button:hover {
  background: var(--card-bg);
}

.landing-hero-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 1672px;
  margin: 0 auto;
  border-radius: 16px;
}

.landing-hero {
  max-width: 1100px;
  margin: 24px auto 32px;
}

.header-cta-primary,
.header-cta-secondary {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 7px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.header-cta-primary {
  background: var(--accent);
  color: #06231a;
}

.header-cta-primary:hover {
  background: var(--accent-dark);
}

.header-cta-secondary {
  color: var(--text);
  border: 1px solid var(--border);
}

.header-cta-secondary:hover {
  background: var(--card-bg);
}

.site-footer {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.legal-page {
  max-width: 760px;
  margin: 24px auto;
}

.legal-page h1 {
  margin-bottom: 6px;
}

.legal-page h2 {
  margin-top: 28px;
  font-size: 1.15rem;
}

.legal-page p,
.legal-page li {
  line-height: 1.6;
}

.legal-page ul {
  padding-left: 22px;
}

.legal-page a {
  color: var(--accent);
}

.site-footer-scope {
  max-width: 700px;
  margin: 0 auto 10px !important;
  line-height: 1.5;
}

.account-danger-zone {
  border-color: #7a4545;
}

.danger-button {
  background: #8f4a4a;
  color: #fff;
}

.danger-button:hover {
  background: #a45757;
}

.member-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.member-actions form {
  margin: 0;
}

.member-transfer-btn {
  display: inline-block;
  width: auto;
  margin: 0;
  padding: 7px 12px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 600;
}

.member-transfer-btn:hover {
  background: var(--card-bg);
}

.member-actions .member-remove-btn {
  width: auto;
  margin: 0;
  padding: 7px 12px;
}

.landing-container {
  max-width: none;
  width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}

.landing-container .landing-hero {
  max-width: none;
  width: 100%;
}

.dashboard-heading {
  text-align: center;
  margin: 8px 0 24px;
}

.dashboard-heading h1 {
  margin: 0;
}

.dashboard-meter {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.dashboard-heading .category-badge {
  vertical-align: middle;
}

.profile-account-actions {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.profile-account-actions h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.profile-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.profile-action-row strong,
.profile-danger-section strong {
  display: block;
  margin-bottom: 4px;
}

.profile-action-row .muted,
.profile-danger-section .muted {
  margin: 0;
}

.profile-danger-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.profile-danger-content {
  min-width: 0;
}

.profile-danger-section .danger-button {
  width: auto;
  flex-shrink: 0;
  margin: 0;
}

@media (max-width: 600px) {
  .profile-danger-section {
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .profile-action-row {
    align-items: flex-start;
  }
}

.account-delete-modal[hidden] {
  display: none;
}

.account-delete-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.account-delete-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.account-delete-dialog {
  position: relative;
  width: min(460px, calc(100% - 32px));
  margin: 12vh auto 0;
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.account-delete-dialog h2 {
  margin-top: 0;
}

.account-delete-dialog p {
  color: var(--muted);
  line-height: 1.6;
}

.account-delete-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.account-delete-modal-actions form {
  margin: 0;
}

.account-delete-modal-actions .danger-button,
.account-delete-modal-actions .secondary-button {
  width: auto;
  margin: 0;
}

.account-delete-homes {
  margin: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.account-delete-home {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.account-delete-home:last-child {
  border-bottom: none;
}

.account-delete-home .edit-link {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .account-delete-home {
    align-items: flex-start;
  }
}

.manage-access-card {
  max-width: none;
  width: 100%;
}

.manage-access-card h1 {
  text-align: center;
  margin-top: 0;
}

.manage-access-card > .muted {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.manage-access-card .member-list {
  width: 100%;
}

.manage-access-card .profile-home-row {
  width: 100%;
}

@media (min-width: 900px) {
  .manage-access-card {
    padding: 28px 32px;
  }
}

.manage-access-back {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.manage-access-back .secondary-button {
  display: inline-block;
  width: auto;
  margin: 0;
  text-decoration: none;
}

.dashboard-home-heading {
  text-align: center;
}

.dashboard-home-separator {
  color: var(--muted);
  margin: 0 0.25em;
}

.dashboard-meter-number {
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-decoration: none;
}



/* Hero image with text overlay */
.landing-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  line-height: 0;
}

.landing-hero-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.landing-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 55%;
  z-index: 2;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

  padding: clamp(2rem, 5vw, 5rem);
  box-sizing: border-box;
  line-height: normal;

  background: linear-gradient(
    90deg,
    rgba(8, 12, 16, 0.88) 0%,
    rgba(8, 12, 16, 0.62) 48%,
    rgba(8, 12, 16, 0) 100%
  );
}

.landing-hero-overlay h1 {
  margin: 0 0 1.25rem;
  color: #f1f3f5;
  font-size: clamp(2.2rem, 4vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 600px;
}

.landing-hero-overlay h1 span {
  color: var(--accent);
}

.landing-hero-overlay p {
  margin: 0;
  max-width: 500px;
  color: #e8eaed;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  line-height: 1.6;
}


/* Mobile */
@media (max-width: 700px) {
  .landing-hero {
    border-radius: 18px;
  }

  .landing-hero-overlay {
    width: 100%;
    top: 0;
    left: 0;
    bottom: 0;

    justify-content: flex-end;
    align-items: flex-start;

    padding: 1.5rem;
    padding-top: 5rem;

    background: linear-gradient(
      180deg,
      rgba(8, 12, 16, 0) 25%,
      rgba(8, 12, 16, 0.18) 40%,
      rgba(8, 12, 16, 0.88) 100%
    );
  }

  .landing-hero-overlay h1 {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.05;
    margin-bottom: 0.75rem;
  }

  .landing-hero-overlay p {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 100%;
  }
}

/* Hero sits directly below the landing header */
.landing-container {
  margin-top: 0;
  padding-top: 0;
}

.landing-container .landing-hero {
  margin-top: 0;
}


/* Full-bleed landing hero */
.landing-container {
  padding-left: 0;
  padding-right: 0;
}

.landing-container .landing-hero {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
}

.landing-container .landing-hero-image {
  width: 100%;
  max-width: none;
  border-radius: 0;
}

/* Keep the feature cards narrower than the hero */
.landing-container .landing-features {
  width: min(100% - 2rem, 1100px);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 700px) {
  .landing-container .landing-hero {
    margin-left: -0px;
    margin-right: -0px;
    width: 100vw;
  }

  .landing-container .landing-features {
    width: calc(100% - 2rem);
  }
}



/* Keep the mobile header uncluttered */
@media (max-width: 700px) {
  .topbar .brand {
    font-size: 0;
  }

  .topbar .brand-logo {
    margin-right: 0;
  }
}

/* Sticky footer layout:
   Keep the footer at the bottom of the viewport on short pages,
   while allowing it to flow normally below long pages. */
html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}


/* Landing hero — desktop height */
@media (min-width: 769px) {
  .landing-container .landing-hero {
    height: 500px;
    min-height: 500px;
    max-height: 500px;
  }

  .landing-container .landing-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

/* Landing hero — mobile */
@media (max-width: 768px) {
  .landing-container .landing-hero {
    height: 550px;
    min-height: 550px;
    max-height: 550px;
  }

  .landing-container .landing-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}


/* =========================================================
   LANDING PAGE — WIDE DESKTOP LAYOUT
   ========================================================= */

/* Give the landing page more horizontal room */
.landing-container {
  max-width: 1400px;
  padding-left: 24px;
  padding-right: 24px;
}

/* Full-width hero */
.landing-container .landing-hero {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  background-position: center center;
  background-size: cover;
}

/* Wider 3-column feature grid */
.landing-container .feature-grid {
  width: 100%;
  max-width: 1260px;
  margin-left: auto;
  margin-right: auto;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* Feature cards */
.landing-container .feature-card {
  min-height: 220px;
  padding: 26px 24px;
}

/* Rwanda availability notice:
   deliberately narrower than the feature grid */
.landing-container .landing-availability,
.landing-container .availability-notice,
.landing-container .residential-notice {
  width: min(960px, 100%);
  margin-left: auto;
  margin-right: auto;
}

/* Keep the notice visually lighter than the feature cards */
.landing-container .landing-availability {
  margin-top: 34px;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 800px) {

  .landing-container {
    max-width: none;
    padding-left: 16px;
    padding-right: 16px;
  }

  .landing-container .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .landing-container .feature-card {
    min-height: 0;
    padding: 22px 20px;
  }

  .landing-container .landing-availability,
  .landing-container .availability-notice,
  .landing-container .residential-notice {
    width: 100%;
  }
}

/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {

  .landing-container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .landing-container .feature-card {
    padding: 20px 18px;
  }
}


/* =========================================================
   LANDING PAGE — FINAL DESKTOP LAYOUT
   ========================================================= */

/* Wider content area on desktop */
.landing-container {
  max-width: 1400px;
  padding-left: 24px;
  padding-right: 24px;
}

/* Full-bleed hero */
.landing-container .landing-hero {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Wide 3 × 2 feature layout */
.landing-features {
  width: 100%;
  max-width: 1260px;
  margin: 34px auto 0;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* Make the feature cards feel substantial */
.landing-feature {
  min-height: 220px;
  padding: 26px 24px;
}

/* =========================================================
   RESIDENTIAL AVAILABILITY NOTICE
   ========================================================= */

.landing-availability {
  width: min(960px, calc(100% - 80px));
  margin: 34px auto 0;

  display: flex;
  align-items: center;
  gap: 22px;

  padding: 20px 28px;

  border: 1px solid rgba(72, 211, 166, 0.45);
  border-radius: 12px;
  background: rgba(25, 29, 37, 0.65);
}

.landing-availability-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #48d3a6;
}

.landing-availability-icon svg {
  width: 38px;
  height: 38px;
}

.landing-availability h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.landing-availability p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 800px) {

  .landing-container {
    max-width: none;
    padding-left: 16px;
    padding-right: 16px;
  }

  .landing-features {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
  }

  .landing-feature {
    min-height: 0;
    padding: 22px 20px;
  }

  .landing-availability {
    width: 100%;
    margin-top: 24px;
    padding: 18px 20px;
  }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {

  .landing-container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .landing-feature {
    padding: 20px 18px;
  }

  .landing-availability {
    gap: 14px;
    padding: 16px;
  }

  .landing-availability-icon {
    width: 40px;
    height: 40px;
  }

  .landing-availability-icon svg {
    width: 32px;
    height: 32px;
  }

  .landing-availability h2 {
    font-size: 0.98rem;
  }

  .landing-availability p {
    font-size: 0.9rem;
  }
}


/* =========================================================
   LANDING HERO — SPLIT LAYOUT WITH PHONE MOCKUP
   ========================================================= */

.landing-container .landing-hero {
  display: flex;
  align-items: center;
  gap: 48px;
  width: 100%;
  max-width: 1260px;
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 40px auto 0;
  padding: 0 24px;
  border-radius: 0;
  background: none;
  overflow: visible;
}

.landing-hero-text {
  flex: 1 1 420px;
  min-width: 280px;
}

.landing-hero-text h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.landing-hero-text h1 span {
  color: var(--accent);
}

.landing-hero-text p {
  margin: 0;
  max-width: 460px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.landing-hero-text .landing-cta {
  justify-content: flex-start;
  margin-top: 1.75rem;
}

.landing-hero-visual {
  flex: 1 1 320px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 260px;
}

.landing-hero-phone {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
}

/* =========================================================
   HERO CAROUSEL — crossfading language-preview slides
   ========================================================= */

.landing-hero-carousel {
  position: relative;
  width: 100%;
}

.landing-hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.landing-hero-slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.landing-hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.landing-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.landing-hero-dot.is-active {
  background: var(--accent);
  transform: scale(1.25);
}

.landing-hero-dot:hover {
  background: var(--muted);
}

/* the old hero used a background image with a gradient text overlay —
   no longer used, but kept harmless in case anything else references it */
.landing-hero-overlay {
  display: none;
}

@media (max-width: 900px) {
  .landing-container .landing-hero {
    flex-direction: column-reverse;
    text-align: center;
    gap: 28px;
    padding: 0 16px;
    margin-top: 24px;
  }

  .landing-hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .landing-hero-text .landing-cta {
    justify-content: center;
  }

  .landing-hero-phone {
    max-width: 240px;
  }
}

/* =========================================================
   FEATURED CARD — "Track your balance"
   ========================================================= */

.landing-feature-featured {
  grid-column: 1 / -1;
  position: relative;
  border-color: var(--accent);
  min-height: 0;
}

.feature-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #06231a;
  background: var(--accent);
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 14px;
}

.landing-feature-featured-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.landing-feature-featured-copy {
  flex: 1 1 320px;
  min-width: 260px;
}

.landing-balance-preview {
  flex: 0 1 260px;
  min-width: 220px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}

.landing-balance-preview-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.landing-balance-preview-value {
  margin: 4px 0 10px;
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 700;
}

.landing-balance-preview-chart {
  width: 100%;
  height: 32px;
  color: var(--accent);
}

.landing-balance-preview-chart svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 800px) {
  .landing-feature-featured-inner {
    flex-direction: column;
    align-items: stretch;
  }
}

/* =========================================================
   FINAL CTA
   ========================================================= */

.landing-final-cta {
  width: min(960px, calc(100% - 80px));
  margin: 40px auto 0;
  text-align: center;
}

.landing-final-cta h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.landing-final-cta p {
  margin: 0 0 18px;
}

.landing-final-cta .btn-primary {
  padding: 12px 28px;
}

@media (max-width: 800px) {
  .landing-final-cta {
    width: 100%;
    margin-top: 28px;
  }
}

/* =========================================================
   DEMOTE AVAILABILITY NOTE — quiet footnote, not a 7th card
   ========================================================= */

.landing-availability {
  border: none;
  background: none;
  padding: 0;
  gap: 10px;
  margin-top: 28px;
}

.landing-availability-icon {
  width: 20px;
  height: 20px;
  color: var(--muted);
}

.landing-availability-icon svg {
  width: 16px;
  height: 16px;
}

.landing-availability h2 {
  margin: 0 0 2px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.landing-availability p {
  font-size: 0.8rem;
}

/* =========================================================
   SECONDARY FEATURE CARDS — mini widget previews
   ========================================================= */

.landing-feature-mini {
  margin-top: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

.landing-feature-mini-label {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.landing-feature-mini-value {
  margin: 4px 0 0;
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 700;
}

.landing-feature-mini-sub {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
}

/* Cost lookup */
.landing-feature-mini-lookup .landing-feature-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.landing-feature-mini-input {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  color: var(--text);
  font-size: 0.85rem;
}

.landing-feature-mini-result {
  margin: 8px 0 0;
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 700;
}

/* Alerts list */
.landing-feature-mini-alerts {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.landing-feature-mini-alerts li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.85rem;
}

.landing-feature-mini-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Household avatars */
.landing-feature-mini-household {
  display: flex;
  align-items: center;
  gap: 6px;
}

.landing-feature-mini-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-feature-mini-avatar + .landing-feature-mini-avatar {
  margin-left: -10px;
}

.landing-feature-mini-household .landing-feature-mini-sub {
  margin: 0 0 0 8px;
}

/* =========================================================
   FIX — CTA button text wrapping/overlapping on narrow screens
   ========================================================= */

.btn-primary,
.btn-secondary {
  line-height: 1.4;
  white-space: nowrap;
}

@media (max-width: 500px) {
  .landing-hero-text .landing-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .landing-hero-text .landing-cta .btn-primary,
  .landing-hero-text .landing-cta .btn-secondary {
    width: 100%;
    text-align: center;
    white-space: normal;
  }
}

/* =========================================================
   SECTION DIVIDERS — subtle rule between plain-background sections
   ========================================================= */

.landing-divider {
  width: min(960px, calc(100% - 80px));
  margin: 40px auto;
  border: none;
  border-top: 1px solid var(--border);
}

@media (max-width: 800px) {
  .landing-divider {
    width: 100%;
    margin: 28px auto;
  }
}

/* =========================================================
   BOTTOM NAV — app-style tab bar, mobile only, authenticated pages
   ========================================================= */

.bottom-nav {
  display: none;
}

@media (max-width: 700px) {
  .topbar-links-auth {
    display: none;
  }

  .bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .bottom-nav-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 4px 10px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.68rem;
  }

  .bottom-nav-item svg {
    width: 22px;
    height: 22px;
  }

  .bottom-nav-item.active {
    color: var(--accent);
  }

  /* leave room so page content and the footer aren't hidden behind the
     fixed bar */
  body > main,
  .site-footer {
    padding-bottom: 0;
  }

  body::after {
    content: "";
    display: block;
    height: 64px;
  }
}

/* =========================================================
   DASHBOARD — wider desktop layout with a sidebar
   ========================================================= */

.dashboard-page {
  max-width: 1200px;
}

@media (min-width: 1000px) {
  .dashboard-page .dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
  }

  .dashboard-sidebar {
    position: sticky;
    top: 88px;
  }
}

.dashboard-sidebar-card h2 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.ussd-step {
  margin-top: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ussd-provider {
  color: var(--muted);
  font-size: 0.85rem;
}

.ussd-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
}

/* =========================================================
   PREVIEW BADGE — marks illustrative (non-live) sample widgets
   ========================================================= */

.preview-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1px 8px;
  margin-bottom: 10px;
}

/* =========================================================
   LANGUAGE SWITCHER + topbar-links-auth flex fix
   ========================================================= */

/* .topbar-links-auth is now an inner wrapper (not the outer flex
   container), so it needs its own flex/gap to keep Home/Dashboard/
   Profile/Log out spaced the same as before. Scoped to desktop only —
   on mobile this nav is hidden in favor of the bottom-nav bar, and an
   unscoped rule here was overriding that hide (identical specificity,
   later in the file always wins ties regardless of media query). */
@media (min-width: 701px) {
  .topbar-links-auth {
    display: flex;
    align-items: center;
    gap: 16px;
  }
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.lang-switch svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.lang-switch:hover {
  color: var(--text);
  border-color: var(--muted);
}

/* =========================================================
   OUTAGE ALERT BANNER — warning-colored, distinct from the
   mint accent used for normal UI, since this needs to read as
   "pay attention" rather than blend in as a routine stat card.
   ========================================================= */

.outage-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 10px;
  padding: 16px 18px;
  margin-top: 16px;
}

.outage-banner svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #f59e0b;
  margin-top: 2px;
}

.outage-banner strong {
  color: #f59e0b;
  display: block;
  margin-bottom: 4px;
}

.outage-banner p {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.outage-banner-time {
  margin-top: 6px !important;
  color: var(--muted) !important;
  font-size: 0.85rem;
}

/* =========================================================
   OUTAGE ALERT FORM — wider than the narrow auth-card shape,
   since this holds a full announcement paste-box and several
   dropdown rows, not a short login-style form.
   ========================================================= */

.outage-alert-page {
  max-width: 720px;
}

.outage-alert-description {
  min-height: 160px;
  resize: vertical;
}

.outage-area-row {
  align-items: center;
}

.outage-area-row select {
  flex: 1;
}

/* =========================================================
   CUSTOM DATE/TIME PICKER WIDGET — replaces the browser's
   native <input type="date">/<input type="time"> UI, which
   we have no real control over sizing-wise.
   ========================================================= */

.dt-widget {
  position: relative;
  width: 100%;
}

.dt-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  text-align: left;
}

.dt-trigger:hover {
  border-color: var(--muted);
}

.dt-trigger svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--muted);
}

.dt-trigger-label {
  flex: 1;
}

.dt-popup {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 50;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  padding: 14px;
}

.dt-popup.is-open {
  display: block;
}

/* Calendar */

.dt-popup-calendar {
  width: 300px;
}

.dt-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--text);
}

.dt-cal-nav {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.dt-cal-nav:hover {
  background: var(--bg);
  color: var(--text);
}

.dt-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.dt-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.dt-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
}

.dt-cal-day:hover {
  background: var(--bg);
}

.dt-cal-day.is-today {
  border: 1px solid var(--accent);
}

.dt-cal-day.is-selected {
  background: var(--accent);
  color: #06231a;
  font-weight: 600;
}

.dt-cal-day-blank {
  cursor: default;
}

/* Time */

.dt-popup-time {
  display: flex;
  gap: 8px;
  width: 160px;
}

.dt-popup-time.is-open {
  display: flex;
}

.dt-time-col {
  flex: 1;
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dt-time-option {
  background: none;
  border: none;
  border-radius: 6px;
  color: var(--text);
  font-size: 0.95rem;
  padding: 8px 0;
  text-align: center;
  cursor: pointer;
  flex-shrink: 0;
}

.dt-time-option:hover {
  background: var(--bg);
}

.dt-time-option.is-selected {
  background: var(--accent);
  color: #06231a;
  font-weight: 600;
}

/* =========================================================
   DASHBOARD NAV TICKER — scrolling balance/days-remaining
   strip below the header, dashboard page only.
   ========================================================= */

.nav-ticker {
  overflow: hidden;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}

.nav-ticker-track {
  display: inline-flex;
  animation: nav-ticker-scroll 18s linear infinite; /* 18s fallback before JS measures the real width */
}

.nav-ticker-unit {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding-right: 24px;
}

.nav-ticker-item {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-ticker-sep {
  color: var(--muted);
  white-space: nowrap;
}

@keyframes nav-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * var(--ticker-unit-width, 50%))); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-ticker-track {
    animation: none;
  }
}

/* =========================================================
   CROWDSOURCED OUTAGE BANNER — deliberately a different color
   (blue) from the amber official-alert banner, so the two never
   look interchangeable: one is admin-verified, the other is an
   unverified community signal.
   ========================================================= */

.crowdsourced-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.4);
  border-radius: 10px;
  padding: 16px 18px;
  margin-top: 16px;
}

.crowdsourced-banner svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #60a5fa;
  margin-top: 2px;
}

.crowdsourced-banner strong {
  color: #60a5fa;
  display: block;
  margin-bottom: 4px;
}

.crowdsourced-banner p {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

/* =========================================================
   REPORT-OUTAGE NAV BADGE — a gently pulsing red dot to draw
   the eye to the report-outage pill. Uses a smooth opacity/
   scale pulse rather than a hard blink, and is disabled for
   anyone with prefers-reduced-motion set.
   ========================================================= */

.nav-report-pill {
  position: relative;
}

.nav-report-pill::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid var(--bg);
  animation: nav-report-badge-pulse 1.6s ease-in-out infinite;
}

@keyframes nav-report-badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-report-pill::after {
    animation: none;
  }
}

/* =========================================================
   LANDING HERO REPORT-OUTAGE LINK — moved here from the nav
   bar (which got too crowded on mobile with 4 guest items).
   Reuses the same pulsing badge animation as .nav-report-pill.
   ========================================================= */

.landing-report-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 16px;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 20px;
  color: #ef4444;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
  width: fit-content;
}

.landing-report-pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.landing-report-pill:hover {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

.landing-report-pill::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid var(--bg);
  animation: nav-report-badge-pulse 1.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .landing-report-pill::after {
    animation: none;
  }
}

/* Responsive split for the guest report-outage entry point: on desktop
   it lives in the nav (persistent, no crowding issue there); on mobile
   it lives in the landing hero instead, since the nav gets too tight
   with Sign up + Log in + Report outage + Language all competing for
   space on a narrow screen. Logged-in users always see the nav pill
   at any width — no crowding problem for them either way. */
@media (max-width: 700px) {
  .nav-report-pill-guest {
    display: none;
  }
}

@media (min-width: 701px) {
  .landing-report-pill {
    display: none;
  }
}
