/* ═══════════════════════════════════════════════════════════
   HiveCare Web Portal — Shared Styles
   Colour palette matches the HiveCare app exactly.
   Font: Familjen Grotesk (loaded via Google Fonts in HTML).
═══════════════════════════════════════════════════════════ */

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

/* ── HiveCare colour palette ── */
:root {
  --honey:       #C97A1F;
  --honey-dim:   #B66A14;
  --honey-bg:    rgba(255,243,220,0.85);
  --honey-border:#E8C878;
  --green:       #1e7e34;
  --green-bg:    rgba(212,237,218,0.85);
  --amber:       #B66A14;
  --amber-bg:    rgba(255,243,220,0.85);
  --red:         #b02020;
  --red-bg:      rgba(253,232,232,0.85);
  --bg:          #F5F5F5;
  --surface:     rgba(255,255,255,0.78);
  --surface2:    rgba(248,248,248,0.78);
  --border:      rgba(220,220,220,0.70);
  --border2:     rgba(200,200,200,0.70);
  --text:        #1A1A1A;
  --text-dim:    #2E2E2E;
  --text-mute:   #555555;
  --radius:      12px;
  --radius-sm:   8px;
}

body {
  font-family: 'Familjen Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}

/* Dashboard — fixed hero background */
.dashboard-page {
  background:
    linear-gradient(rgba(0,0,0,0.38), rgba(0,0,0,0.38)),
    url('Brood frame.jpg') center 35% / cover fixed;
}

/* ════════════════════════════════════════════════════════════
   LOGIN PAGE
════════════════════════════════════════════════════════════ */

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  position: relative;
  background: url('Brood frame.jpg') center 35% / cover no-repeat;
}

.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.54);
}

.login-wrap {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.login-tagline {
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 32px;
}

.login-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.field-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.field-group input {
  font-family: inherit;
  font-size: 15px;
  background: var(--surface2);
  border: 1.5px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  outline: none;
  width: 100%;
  transition: border-color 0.15s;
}

.field-group input:focus { border-color: var(--honey); }

.login-error {
  background: var(--red-bg);
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  color: var(--red);
  font-size: 14px;
  padding: 10px 14px;
  text-align: left;
}

.btn-primary {
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  background: var(--honey);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s;
  margin-top: 4px;
}

.btn-primary:hover   { background: var(--honey-dim); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.login-footer {
  color: var(--text-mute);
  font-size: 13px;
  margin-top: 24px;
  line-height: 1.6;
}

/* ════════════════════════════════════════════════════════════
   DASHBOARD — HEADER
════════════════════════════════════════════════════════════ */

.portal-header {
  background: rgba(255,255,255,0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 2.5px solid var(--honey);
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
}

.header-brand { display: flex; align-items: center; gap: 10px; }

.header-tabs {
  display: flex;
  align-items: stretch;
}

.header-user { justify-self: end; }

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-dim);
}

.btn-signout {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  background: none;
  border: 1.5px solid var(--border2);
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
  color: var(--text-dim);
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-signout:hover { border-color: var(--honey); color: var(--honey); }

.demo-mode .user-email {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.demo-mode .btn-signout {
  font-size: 14px;
  font-weight: 700;
}
.demo-getapp-pill {
  display: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  background: #C97A1F;
  color: #fff;
  border-radius: 20px;
  padding: 6px 18px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.demo-getapp-pill:hover { background: #B66A14; color: #fff; }

/* ════════════════════════════════════════════════════════════
   DASHBOARD — FILTER BAR
════════════════════════════════════════════════════════════ */

.filter-bar {
  background: rgba(245,243,235,0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1.5px solid var(--border);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 64px;
  z-index: 90;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.btn-apply {
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  background: var(--honey);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 4px 14px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn-apply:hover { background: var(--honey-dim); }

/* ════════════════════════════════════════════════════════════
   PHOTOS NOTICE
════════════════════════════════════════════════════════════ */

.photos-notice-inline {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-mute);
  text-align: right;
  line-height: 1.5;
  white-space: nowrap;
}

/* ════════════════════════════════════════════════════════════
   TAB NAVIGATION
════════════════════════════════════════════════════════════ */

.tab-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.6px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0 20px;
  cursor: pointer;
  color: var(--text-mute);
  transition: all 0.15s;
  margin-bottom: -2.5px;
}

.tab-btn:hover { color: var(--honey); }
.tab-btn.active { color: var(--honey); border-bottom-color: var(--honey); }

/* ════════════════════════════════════════════════════════════
   TAB PANELS
════════════════════════════════════════════════════════════ */

.tab-content {
  padding: 24px 20px;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ════════════════════════════════════════════════════════════
   HIVES TAB — SUMMARY BAR
════════════════════════════════════════════════════════════ */

.summary-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.summary-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 14px;
  color: var(--text-dim);
}

.summary-pill strong {
  color: var(--honey-dim);
  font-size: 15px;
  font-weight: 700;
}

/* ════════════════════════════════════════════════════════════
   HIVES TAB — HIVE CARDS
════════════════════════════════════════════════════════════ */

.hive-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.hive-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: 6px 8px 0 rgba(0,0,0,0.25), 4px 6px 18px rgba(0,0,0,0.18);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
  overflow: hidden;
}

.hive-color-strip {
  height: 4px;
  border-radius: 2px 2px 0 0;
  margin: -16px -18px 14px;
}

.hive-card:hover {
  transform: translate(-5px, -6px);
  box-shadow: 10px 12px 0 rgba(0,0,0,0.22), 8px 10px 28px rgba(0,0,0,0.20);
}

.hive-card.selected {
  border-color: var(--honey);
  box-shadow: 6px 8px 0 rgba(201,122,31,0.35), 4px 6px 20px rgba(201,122,31,0.20);
}

.hive-card.selected:hover {
  box-shadow: 10px 12px 0 rgba(201,122,31,0.30), 8px 10px 28px rgba(201,122,31,0.18);
}

.clear-hive-filter {
  font-size: 14px;
  font-weight: 500;
  color: var(--honey);
  cursor: pointer;
  margin-left: 12px;
  opacity: 0.85;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.clear-hive-filter:hover { opacity: 1; }

.hive-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.hive-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.hive-apiary {
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 2px;
}

.health-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.health-badge.green { background: var(--green-bg); color: var(--green); }
.health-badge.amber { background: var(--amber-bg); color: var(--amber); }
.health-badge.red   { background: var(--red-bg);   color: var(--red);   }

.hive-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
}

.hive-flags {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.hive-flag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.hive-flag.red   { background: var(--red-bg);   color: var(--red);   }
.hive-flag.amber { background: var(--amber-bg); color: var(--amber); }

/* ════════════════════════════════════════════════════════════
   HISTORY TAB
════════════════════════════════════════════════════════════ */

.history-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.15s;
}

.history-item:hover  { border-color: rgba(201,122,31,0.45); transform: translateX(4px); }
.history-item.expanded { border-color: var(--honey); }
.history-item.expanded:hover { transform: none; }

.history-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.history-row:hover { background: rgba(201,122,31,0.07); }

.history-date {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dim);
  white-space: nowrap;
  min-width: 78px;
}

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

.history-hive-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.history-hive-name-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.history-hive-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.history-hive-apiary {
  font-size: 11px;
  color: var(--text-mute);
}

.history-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.mite-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
}

.mite-pill.green { background: var(--green-bg); color: var(--green); }
.mite-pill.amber { background: var(--amber-bg); color: var(--amber); }
.mite-pill.red   { background: var(--red-bg);   color: var(--red);   }

.history-flags {
  font-size: 11px;
  color: var(--text-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.history-chevron {
  color: var(--text-mute);
  font-size: 11px;
  flex-shrink: 0;
  transition: transform 0.2s;
  transform: rotate(0deg);
}

.history-item.expanded .history-chevron { transform: rotate(180deg); }

.history-detail {
  display: none;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface2);
}

.history-item.expanded .history-detail { display: block; }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.detail-item { display: flex; flex-direction: column; gap: 2px; }

.detail-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-mute);
}

.detail-value { font-size: 14px; color: var(--text); }

.detail-pests {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.pest-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--red-bg);
  color: var(--red);
}

.pest-tag.amber { background: var(--amber-bg); color: var(--amber); }

.detail-notes {
  font-size: 13px;
  color: var(--text-dim);
  white-space: pre-wrap;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  line-height: 1.6;
}

.detail-weather {
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 6px;
}

.detail-photos-note {
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 8px;
  font-style: italic;
}

.empty-state {
  text-align: center;
  color: var(--text-mute);
  padding: 56px 16px;
  font-size: 15px;
}

/* ════════════════════════════════════════════════════════════
   GRAPHS TAB
════════════════════════════════════════════════════════════ */

.chart-section {
  background: rgba(255, 255, 255, 0.13);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 28px;
}

.chart-title {
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 6px rgba(0,0,0,0.85), 0 3px 14px rgba(0,0,0,0.5);
  margin-bottom: 12px;
}

.chart-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.chart-title-row .chart-title { margin-bottom: 0; }

.chart-legend-hint {
  font-size: 12px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
  margin-top: -6px;
  margin-bottom: 12px;
}

.feed-unit-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
}

.chart-wrap {
  position: relative;
  height: 420px;
  background: #1A1A1A;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
}

.chart-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
}

/* Rounded corners on dark Plotly plot area */
.js-plotly-plot .bg { rx: 8; ry: 8; }

/* ════════════════════════════════════════════════════════════
   HARVEST TAB
════════════════════════════════════════════════════════════ */

.season-card {
  background: var(--honey-bg);
  border: 1.5px solid var(--honey-border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--honey-dim);
  margin-bottom: 12px;
}

.season-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.season-stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--honey-dim);
  line-height: 1;
}

.season-stat-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 3px;
}

.total-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.total-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--honey);
  margin-top: 4px;
}

.hive-harvest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.hive-harvest-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.hive-harvest-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.hive-harvest-amount {
  font-size: 16px;
  font-weight: 800;
  color: var(--honey);
}

/* ── Harvest filter bar (reuses .graphs-controls from Graphs tab) ── */
.hv-clear-btn {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 9px 18px;
  background: none;
  border: 1.5px solid var(--border2);
  border-radius: 24px;
  color: var(--text-mute);
  cursor: pointer;
  transition: all 0.15s;
}
.hv-clear-btn:hover { border-color: var(--red); color: var(--red); }

.hv-date-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-mute);
}
.hv-date-input {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 9px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border2);
  border-radius: 24px;
  color: var(--text-dim);
  cursor: pointer;
  outline: none;
}
.hv-date-input:focus { border-color: var(--honey); }

/* ── Summary wrap (card container) ──────────────────────── */
.hv-summary-wrap {
  background: rgba(0, 0, 0, 0.28);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
}

/* ── Summary row ─────────────────────────────────────────── */
.hv-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}
.hv-summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  min-width: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hv-summary-card.hv-summary-total {
  background: #ffffff;
  border: 2px solid #1a1a1a;
}
.hv-sc-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-mute);
  margin-bottom: 4px;
}
.hv-sc-hivename {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.hv-sc-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--honey);
  line-height: 1.25;
}

/* ── Harvest chart outer (no card wrapper — chart goes full width) */
.hv-chart-outer {
  /* intentionally no background, border, or padding */
}

/* ── Harvest flows strip (below chart) ───────────────────── */
.hv-flows-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.hv-flow-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 7px;
  border: 1.5px solid;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--surface);
  white-space: nowrap;
}
.hv-flow-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── More hives dropdown ─────────────────────────────────── */
.hv-more-btn {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  cursor: pointer;
  white-space: nowrap;
}
.hv-more-btn:hover { border-color: var(--honey); color: var(--honey-dim); }
.hv-more-dropdown {
  display: none;
  position: absolute;
  bottom: calc(100% + 4px);
  left: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1.5px solid var(--border2);
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
  z-index: 200;
  max-height: 260px;
  overflow-y: auto;
}
.hv-more-dropdown.open { display: block; }

.hv-more-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.hv-more-item:last-child { border-bottom: none; }
.hv-more-name { font-weight: 600; color: var(--text); }
.hv-more-val  { color: var(--honey); font-weight: 700; }

/* ════════════════════════════════════════════════════════════
   OVERVIEW — SEASON STATS
════════════════════════════════════════════════════════════ */

.season-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.28);
}

.season-tile {
  flex: 1 1 110px;
  min-width: 110px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.season-tile.tile-red {
  border-color: var(--red);
  background: var(--red-bg);
}

.season-tile.tile-amber {
  border-color: var(--honey);
  background: var(--honey-bg);
}

.season-tile-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--honey-dim);
  line-height: 1;
}

.tile-harvest-multi {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  display: block;
}

.season-tile.tile-red   .season-tile-value { color: var(--red); }
.season-tile.tile-amber .season-tile-value { color: var(--honey-dim); }

.season-tile-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-mute);
  margin-top: 6px;
}

.season-tile-subtitle {
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Section headings (sit over photo background) */
.section-heading {
  font-size: 36px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 8px rgba(0,0,0,0.65);
  padding: 32px 0 14px;
}

.section-heading-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 28px 0 12px;
}

.section-heading-row .section-heading { padding: 0; }

.section-hint {
  font-size: 22px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 4px rgba(0,0,0,0.55);
}

/* ════════════════════════════════════════════════════════════
   OVERVIEW — HISTORY SECTION
════════════════════════════════════════════════════════════ */

.history-section { margin-top: 8px; }

.history-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--honey-dim);
  padding: 20px 0 12px;
}

/* ════════════════════════════════════════════════════════════
   GRAPHS — CONTROLS
════════════════════════════════════════════════════════════ */

.graphs-controls {
  background: rgba(245,243,235,0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

/* Sticky filter bars — one per tab, direct child of its tall parent */
.tab-panel > .graphs-controls,
#overviewFilters,
#harvestFilters,
#floweringFilters {
  position: sticky;
  top: 64px;
  z-index: 90;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

/* Inner card inside sticky wrapper — no double shadow or margin */
#overviewFilters .graphs-controls,
#harvestFilters .graphs-controls,
#floweringFilters .graphs-controls {
  margin-bottom: 0;
  box-shadow: none;
}

/* Single-row filters: expand control row to full width so margin-left:auto works */
#overviewFilters .graphs-control-row,
#harvestFilters .graphs-control-row,
#floweringFilters .graphs-control-row {
  width: 100%;
}

/* Gap between sticky filter and the content below */
#summaryBar    { margin-top: 16px; }
#harvestContent { margin-top: 16px; }
.cal-wrap      { margin-top: 16px; }

.graphs-control-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.control-row-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-mute);
  margin-right: 4px;
}

.hive-group-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  margin-left: 6px;
  margin-right: 2px;
}

/* Hive filter pill */
.hive-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px 4px 8px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s;
}

.hive-filter-pill:hover { border-color: var(--honey); color: var(--honey); }

.hive-filter-pill.active {
  border-color: var(--hive-color, var(--honey));
  background: color-mix(in srgb, var(--hive-color, var(--honey)) 12%, transparent);
  color: var(--text);
}

.hive-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Apiary select inside graph controls */
.graph-apiary-select {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  background: var(--bg);
  border: 1.5px solid var(--border2);
  border-radius: 24px;
  padding: 9px 16px;
  color: var(--text-dim);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
}

.graph-apiary-select:focus { border-color: var(--honey); }

/* Hive multi-select dropdown */
.hive-ms-wrap {
  position: relative;
  display: inline-block;
}

.hive-ms-btn {
  display: inline-flex;
  align-items: center;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 9px 18px;
  min-width: 180px;
  border-radius: 24px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-dim);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}

.hive-ms-btn:hover { border-color: var(--honey); color: var(--honey); }

.hive-ms-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.14);
  width: 290px;
  z-index: 200;
}

.hive-ms-dropdown.open { display: block; }

.hive-ms-search {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 11px 16px;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 10px 10px 0 0;
  outline: none;
  background: var(--surface2);
  color: var(--text);
}

.hive-ms-list {
  max-height: 280px;
  overflow-y: auto;
}

.hive-ms-option {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-dim);
}

.hive-ms-option:hover { background: var(--honey-bg); }

.hive-ms-apiary {
  font-size: 13px;
  color: var(--text-mute);
  margin-left: auto;
}

/* Event toggle pill */
.event-toggle-pill {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 24px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-mute);
  cursor: pointer;
  transition: all 0.15s;
}

.event-toggle-pill.active {
  border-color: var(--evt-color);
  background: color-mix(in srgb, var(--evt-color) 10%, transparent);
  color: var(--text);
}

.event-toggle-pill:hover { border-color: var(--evt-color); }

/* Chart title row (with feeding sub-toggle) */
.chart-title-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 16px;
}

.chart-title-row .chart-title { margin-bottom: 0; }

.feeding-toggle {
  display: flex;
  gap: 0;
}

.feed-mode-btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 9px 20px;
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text-mute);
  cursor: pointer;
  transition: all 0.15s;
}

.feed-mode-btn:first-child { border-radius: 20px 0 0 20px; border-right: none; }
.feed-mode-btn:last-child  { border-radius: 0 20px 20px 0; border-left: 1.5px solid var(--border); }
.feed-mode-btn.active      { background: var(--honey-bg); border-color: var(--honey); color: var(--honey-dim); }
.feed-mode-btn:hover:not(.active) { border-color: var(--honey); color: var(--honey); }

/* ════════════════════════════════════════════════════════════
   FLOWERING CALENDAR
════════════════════════════════════════════════════════════ */

.cal-wrap {
  padding: 4px 0;
}

.cal-year-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.cal-year-btn {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 19px !important;
  font-weight: 700;
  background: rgba(255,255,255,0.15) !important;
  border: 2px solid rgba(255,255,255,0.6) !important;
  border-radius: 8px;
  padding: 5px 16px;
  cursor: pointer;
  color: #ffffff !important;
  transition: all 0.15s;
}

.cal-year-btn:hover {
  background: var(--honey) !important;
  border-color: var(--honey) !important;
  color: #ffffff !important;
}

.cal-year-label {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Wall-calendar month grid */
.cal-months-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.cal-month {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cal-month-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--honey-dim);
  padding: 12px 14px 8px;
}

.cal-grid-wrap {
  border-top: 1px solid var(--border);
}

.cal-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--surface2);
}

.cal-hdr {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-mute);
  text-align: center;
  padding: 5px 0;
  border-right: 1px solid var(--border);
}

.cal-hdr:last-child { border-right: none; }

.cal-week {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--border);
}

.cal-day {
  border-right: 1px solid var(--border);
  min-height: 22px;
}

.cal-day:last-child { border-right: none; }

.cal-dn {
  font-size: 10px;
  color: var(--text-mute);
  padding: 2px 4px;
  display: block;
}

.cal-band {
  position: absolute;
  height: 20px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.cal-band-lbl {
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  padding: 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
}

.cal-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-dim);
}

.cal-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Flowering event list */
.cal-event-list {
  margin-bottom: 28px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cal-event-list-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--honey-dim);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.cal-event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.cal-event-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  border-right: 2.5px solid rgba(28,24,18,0.35);
}

.cal-event-row:nth-child(3n) { border-right: none; }

.cal-event-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

.cal-event-plant {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  min-width: 140px;
}

.cal-event-dates {
  font-size: 13px;
  color: var(--text-mute);
}

/* ════════════════════════════════════════════════════════════
   LOADING / ERROR STATES
════════════════════════════════════════════════════════════ */

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  gap: 16px;
  color: var(--text-dim);
  font-size: 15px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--honey);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

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

.no-backup-state {
  text-align: center;
  padding: 72px 24px;
  color: var(--text-dim);
  line-height: 2;
}

.no-backup-state p + p { margin-top: 8px; font-size: 13px; color: var(--text-mute); }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Header */
  .header-user .user-email { display: none; }
  .photos-notice-inline { display: none; }

  /* Tabs */
  .tab-btn { padding: 0 10px; font-size: 12px; letter-spacing: 0; }
  .header-tabs { gap: 0; }

  /* Filter bar */
  .filter-bar { gap: 6px; }
  .filter-bar select,
  .filter-bar input[type="date"] { font-size: 13px; }

  /* Hive cards */
  .hive-cards { grid-template-columns: 1fr; }

  /* History */
  .history-flags { display: none; }

  /* Season tiles — 2 per row on mobile */
  .season-tile { flex: 1 1 calc(50% - 12px); min-width: calc(50% - 12px); }

  /* Graphs controls — stack rows */
  .graphs-controls { padding: 12px; }

  /* Flowering calendar — 1 month per row on mobile */
  .cal-months-grid { grid-template-columns: 1fr; }

  /* Chart title row — stack on narrow */
  .chart-title-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .login-wrap { padding: 32px 20px; }
  /* Season tiles — full width on very small */
  .season-tile { flex: 1 1 100%; min-width: 100%; }
}

/* ════════════════════════════════════════════════════════════
   LANDING PAGE
════════════════════════════════════════════════════════════ */

.landing-page {
  background: var(--bg);
}

/* Header */
.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: transparent;
  border-bottom: none;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.landing-logo {
  height: 46px;
  display: block;
}

.landing-brand-name {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  line-height: 1;
}

.landing-signin {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.2px;
}

.landing-signin:hover { color: rgba(255, 255, 255, 0.7); }

/* Hero */
.hero {
  position: relative;
  min-height: 72vh;
  background: url('Brood frame.jpg') center 35% / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.54);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  width: 100%;
  padding: 60px 48px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 64px;
  text-align: left;
}

.hero-logo {
  width: 300px;
  flex-shrink: 0;
  mix-blend-mode: screen;
}

.hero-text {
  flex: 1;
}

.hero-eyebrow {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #f0ac3f;
  margin-bottom: 22px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}

.hero-headline {
  font-size: 68px;
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 22px;
  letter-spacing: -1.5px;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.55);
}

.hero-tag1 {
  font-size: 28px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 12px;
  line-height: 1.4;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.hero-tag2 {
  font-size: 19px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 44px;
  line-height: 1.6;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-downloads {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-demo-pill {
  display: inline-block;
  margin-top: 14px;
  padding: 9px 26px;
  border-radius: 24px;
  border: none;
  background: rgba(255,255,255,0.78);
  color: #C97A1F;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Familjen Grotesk', sans-serif;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.15s;
}
.hero-demo-pill:hover {
  background: rgba(255,255,255,0.92);
  color: #C97A1F;
}

.btn-store {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 13px 32px;
  border: 1.5px solid rgba(220,220,220,0.70);
  border-radius: 12px;
  background: rgba(255,255,255,0.78);
  text-decoration: none;
  min-width: 168px;
  pointer-events: none;
}

.store-name {
  font-size: 16px;
  font-weight: 700;
  color: #555555;
}

.store-note {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #9B9B9B;
}

/* Sign In — web portal button in hero */
.btn-store-portal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 13px 32px;
  min-width: 168px;
  border: 2px solid rgba(201, 122, 31, 0.6);
  border-radius: 12px;
  background: rgba(201, 122, 31, 0.12);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-store-portal:hover {
  background: rgba(201, 122, 31, 0.22);
  border-color: rgba(201, 122, 31, 0.9);
}

.portal-name {
  font-size: 16px;
  font-weight: 700;
  color: #C97A1F;
}

.portal-note {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

/* Features strip */
.features-section {
  background: linear-gradient(180deg, var(--bg) 0%, #1A1A1A 100%);
  padding: 80px 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.feature-card {
  background: #FAFAF8;
  border: 1.5px solid var(--border);
  border-top: 3px solid var(--honey);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.feature-card.card-animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

.feature-card.card-animate.card-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--honey-dim);
  margin-bottom: 14px;
  line-height: 1.3;
}

.feature-body {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* Privacy section */
.privacy-section {
  background: var(--text);
  padding: 48px 48px;
  text-align: center;
}

.privacy-content {
  max-width: 620px;
  margin: 0 auto;
}

.privacy-headline {
  font-size: 30px;
  font-weight: 700;
  color: var(--honey);
  margin-bottom: 20px;
  line-height: 1.3;
}

.privacy-body {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
}

.cta-tagline {
  width: 100%;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 8px;
}

/* Bottom CTA bar */
.cta-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-cta-signin {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  background: var(--honey);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 32px;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn-cta-signin:hover { background: var(--honey-dim); }

.btn-store-light {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 13px 28px;
  border: 2px solid var(--border2);
  border-radius: 12px;
  background: transparent;
  text-decoration: none;
  min-width: 152px;
  pointer-events: none;
}

.btn-store-light .store-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-mute);
}

.btn-store-light .store-note {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--border2);
}

/* ════════════════════════════════════════════════════════════
   PRIVACY PAGE
════════════════════════════════════════════════════════════ */

.privacy-banner {
  background: var(--surface);
  border-bottom: 3px solid var(--honey);
  padding: 120px 0 48px;
}

.privacy-banner-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 64px;
}

.privacy-banner-headline {
  font-size: 48px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  line-height: 1.1;
}

.privacy-banner-sub {
  font-size: 15px;
  color: var(--text-mute);
}

.privacy-body {
  max-width: 1040px;
  margin: 0 auto;
  padding: 56px 64px 96px;
}

.privacy-intro {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.pp-section { margin-bottom: 44px; }

.pp-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--honey-dim);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.pp-section p {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 12px;
}

.pp-section p:last-child { margin-bottom: 0; }

.privacy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.privacy-list li {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.65;
  padding-left: 20px;
  position: relative;
}

.privacy-list li::before {
  content: '·';
  color: var(--honey);
  position: absolute;
  left: 0;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.35;
}

.privacy-highlight {
  background: var(--honey-bg);
  border-left: 3px solid var(--honey);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 16px 0;
}

.privacy-service { margin-bottom: 16px; }
.privacy-service:last-child { margin-bottom: 0; }
.privacy-service strong { color: var(--text); }

.btn-contact {
  display: inline-block;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--honey);
  border: 2px solid var(--honey);
  border-radius: 24px;
  padding: 10px 28px;
  text-decoration: none;
  transition: all 0.15s;
  margin-top: 12px;
}

.btn-contact:hover { background: var(--honey); color: #fff; }

@media (max-width: 640px) {
  .privacy-banner { padding: 100px 0 40px; }
  .privacy-banner-inner { padding: 0 20px; }
  .privacy-banner-headline { font-size: 34px; }
  .privacy-body { padding: 36px 20px 64px; }
}

/* Footer */
.landing-footer {
  background: #1d1810;
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.landing-footer a {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.15s;
}

.landing-footer a:hover { color: var(--honey); }

.landing-footer span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.2);
}

/* ── Hemisphere picker overlay ───────────────────────────── */
.demo-hemi-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28,24,18,0.82);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.demo-hemi-overlay.visible { display: flex; }
.demo-hemi-card {
  background: #F5F3EB;
  border-radius: 16px;
  padding: 40px 48px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.45);
}
.demo-hemi-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #28221A;
  margin: 0 0 10px;
  font-family: 'Familjen Grotesk', sans-serif;
}
.demo-hemi-card-sub {
  font-size: 14px;
  color: #7A6E5E;
  margin: 0 0 28px;
  font-family: 'Familjen Grotesk', sans-serif;
  line-height: 1.5;
}
.demo-hemi-card-btns { display: flex; flex-direction: column; gap: 12px; }
.demo-hemi-card-btn {
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Familjen Grotesk', sans-serif;
  border: 2px solid #C97A1F;
  background: transparent;
  color: #C97A1F;
  transition: background 0.15s, color 0.15s;
}
.demo-hemi-card-btn:hover { background: #C97A1F; color: #fff; }

/* ── Profile page ──────────────────────────────────────────── */
.profile-page { background: var(--bg); }

.profile-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.profile-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.profile-section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--honey);
  margin: 0 0 20px;
}

.profile-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.profile-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mute);
  min-width: 110px;
  flex-shrink: 0;
}
.profile-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.profile-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.profile-form { display: flex; flex-direction: column; gap: 10px; }
.profile-form .field-group { display: flex; flex-direction: column; gap: 5px; }
.profile-form label { font-size: 13px; font-weight: 600; color: var(--text-mute); }
.profile-form input[type="password"] {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: 'Familjen Grotesk', sans-serif;
  background: rgba(255,255,255,0.85);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.profile-form input[type="password"]:focus { border-color: var(--honey); }

.btn-save {
  align-self: flex-start;
  padding: 9px 22px;
  background: var(--honey);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  font-family: 'Familjen Grotesk', sans-serif;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-save:hover { background: var(--honey-dim); }

.profile-field-msg { font-size: 13px; font-weight: 600; min-height: 18px; margin: 0; }
.profile-field-msg--success { color: var(--green); }
.profile-field-msg--error   { color: var(--red); }

.profile-data-note {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0;
}

.profile-delete-explain {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0 0 20px;
}

.btn-delete {
  padding: 10px 22px;
  background: var(--red-bg);
  color: var(--red);
  border: 1.5px solid var(--red);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  font-family: 'Familjen Grotesk', sans-serif;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-delete:hover { background: var(--red); color: #fff; }

/* Delete confirmation modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.visible { display: flex; }

.modal-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
}
.modal-body {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0 0 20px;
}
.modal-error {
  font-size: 13px;
  color: var(--red);
  font-weight: 600;
  min-height: 18px;
  margin: -12px 0 16px;
}
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; }

.btn-modal-cancel {
  padding: 9px 18px;
  background: transparent;
  border: 1.5px solid var(--border2);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Familjen Grotesk', sans-serif;
  cursor: pointer;
  color: var(--text-mute);
  transition: border-color 0.15s, color 0.15s;
}
.btn-modal-cancel:hover { border-color: var(--text-mute); color: var(--text); }

.btn-modal-confirm {
  padding: 9px 18px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  font-family: 'Familjen Grotesk', sans-serif;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-modal-confirm:hover   { opacity: 0.85; }
.btn-modal-confirm:disabled { opacity: 0.5; cursor: default; }

.profile-deleted-msg {
  font-size: 15px;
  color: var(--green);
  font-weight: 600;
  padding: 20px 0 4px;
  margin: 0;
}

/* Hide profile nav link in demo mode (no WebPass account) */
.demo-mode #profileBtn { display: none; }

/* Responsive */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 640px) {
  .landing-header  { padding: 0 20px; height: 64px; }
  .landing-logo    { height: 38px; }
  .hero            { min-height: 82svh; overflow: hidden; }
  .hero-content    { flex-direction: column; text-align: center; padding: 100px 24px 48px; gap: 24px; }
  .hero-logo       { width: 160px; }
  .hero-headline   { font-size: 42px; letter-spacing: -0.5px; }
  .hero-tag1       { font-size: 18px; }
  .hero-downloads  { justify-content: center; }
  .features-grid   { grid-template-columns: 1fr; }
  .features-section { padding: 56px 20px; }
  .privacy-section  { padding: 36px 20px; }
  .privacy-headline { font-size: 22px; }
  .privacy-body    { font-size: 15px; }
  .landing-footer  { gap: 20px; padding: 24px 20px; }
}
