/* Component styles - Hero, About, Cards */

/* Hero Section */
.hero {
  max-width: 1500px;
  margin: 0 auto;
  display: block;
  padding: 3rem 1.25rem 2.5rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.6rem 0.2rem 0.2rem;
  border-radius: 999px;
  background: rgba(192, 133, 82, 0.08);
  color: #32501f;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.hero-tag-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #e7f5df, var(--beanthentic-green));
  border: 1px solid rgba(37, 103, 30, 0.45);
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 3.6rem);
  line-height: 1.07;
  color: #2b140a;
  margin-bottom: 1rem;
}

.hero-title span {
  color: var(--beanthentic-green);
}

.hero-subtitle {
  font-size: 1rem;
  color: #5b4b42;
  max-width: 60rem;
  margin-bottom: 1.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.hero-note {
  font-size: 0.85rem;
  color: #7b6a5f;
}

.hero-note strong {
  color: #4a3227;
}

/* Hero Slider */
.hero-slider {
  margin-top: 2rem;
}

.hero-slider-viewport {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #ffffff;
  background: #ffffff;
  box-shadow: none;
}

.hero-slider-track {
  display: flex;
  transition: transform 400ms ease;
  will-change: transform;
}

.hero-slide {
  min-width: 100%;
  padding: 1.25rem 1.25rem 1rem;
  display: grid;
  place-items: center;
  gap: 0.75rem;
  text-align: center;
}

.hero-slide[data-theme="one"] {
  background: #ffffff;
}

.hero-slide[data-theme="two"] {
  background: #ffffff;
}

.hero-slide[data-theme="three"] {
  background: #ffffff;
}

.hero-slide-img {
  width: 100%;
  height: clamp(300px, 38vw, 440px);
  object-fit: cover;
  border-radius: 14px;
  box-shadow: none;
}

.hero-slide-caption {
  display: grid;
  gap: 0.2rem;
}

.hero-slide-caption strong {
  color: #2b140a;
  font-size: 1.05rem;
}

.hero-slide-caption span {
  color: #5b4b42;
  font-size: 0.9rem;
}

.hero-slider-controls {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.hero-slider-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.hero-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(11, 61, 46, 0.28);
  background: rgba(11, 61, 46, 0.18);
  cursor: pointer;
}

.hero-slider-dot[aria-selected="true"] {
  width: 22px;
  background: linear-gradient(135deg, rgba(11, 61, 46, 0.95), rgba(37, 103, 30, 0.95));
  border-color: transparent;
}

/* Harvest photo + “The Story Behind Beanthentic” — row on desktop */
.home-hero-story {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-areas: "text media";
  gap: clamp(1rem, 4vw, 2.5rem);
  align-items: center;
}

.home-hero-story-text {
  grid-area: text;
}

.home-hero-media {
  grid-area: media;
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 2.2vw, 1.05rem);
  min-width: 0;
}

.home-hero-harvest-stack {
  grid-area: media;
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 2.4vw, 1.15rem);
}

.home-hero-harvest {
  margin: 0;
  padding: 0;
  border: none;
  width: 100%;
}

.home-story-inline-media {
  margin: clamp(0.9rem, 2.4vw, 1.15rem) 0 0;
  max-width: 520px;
}

.home-hero-media-text p {
  margin: 0 0 0.75em;
  font-size: clamp(0.74rem, 1.65vw, 0.86rem);
  line-height: 1.62;
  color: #5a4a40;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.home-hero-media-text p:last-child {
  margin-bottom: 0;
}

.home-hero-harvest-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: 1px solid rgba(37, 103, 30, 0.18);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}

.home-hero-story-text {
  min-width: 0;
  position: relative;
  padding: 0.2rem clamp(1.1rem, 4.2vw, 2.1rem);
  overflow: visible;
}

/* Faint leaf / organic watermarks — AgroVerse-style margins (image 2) */
.home-hero-story-text::before,
.home-hero-story-text::after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(36px, 12vw, 52px);
  height: clamp(36px, 12vw, 52px);
  transform: translateY(-50%);
  opacity: 0.09;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.home-hero-story-text::before {
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%234a3326' d='M38 10c-6 10-14 18-26 22 2-8 8-16 18-22-4-2-8-2-12 0 8-4 16-2 20 0z'/%3E%3C/svg%3E");
}

.home-hero-story-text::after {
  right: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%234a3326' d='M10 12c8 8 18 14 30 16-10-6-14-14-14-24-4 4-10 6-16 8z'/%3E%3C/svg%3E");
  transform: translateY(-50%) scaleX(-1);
}

.home-story-title {
  margin: 0;
  font-size: clamp(1.55rem, 3.8vw, 2.45rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-family: system-ui, -apple-system, "Segoe UI", "Nunito", "Varela Round", sans-serif;
}

.home-story-brown {
  color: #3d2618;
}

.home-story-green {
  color: #1a5a24;
  font-weight: 700;
  display: inline-block;
  margin-top: 0.42em;
}

.home-story-r-wrap {
  position: relative;
  display: inline-block;
  color: #3d2618;
}

/* Two-tone leaf above “r” in Story */
.home-story-accent-icon {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.04em);
  transform: translateX(-50%);
  width: 0.76em;
  height: 1.02em;
  pointer-events: none;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12));
}

.home-story-intro {
  margin-top: clamp(0.9rem, 2.4vw, 1.35rem);
  max-width: 38em;
}

.home-story-intro p {
  margin: 0 0 0.75em;
  font-size: clamp(0.74rem, 1.65vw, 0.86rem);
  line-height: 1.62;
  color: #5a4a40;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.home-story-intro p:last-child {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .home-hero-story {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "text";
    gap: 1.1rem;
  }

  .home-hero-story-text {
    text-align: left;
    padding: 0.15rem 1.65rem;
  }

  .home-hero-story-text::before,
  .home-hero-story-text::after {
    width: 32px;
    height: 32px;
    opacity: 0.07;
  }
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  font-size: 0.82rem;
  color: #735b4d;
}

.hero-badges span {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px dashed rgba(171, 132, 100, 0.7);
  background: rgba(255, 255, 255, 0.7);
}

/* Hero Media/Card */
.hero-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(circle at top, #f5e4d8 0, #d1a07a 45%, #3b2417 100%);
  box-shadow: 0 22px 50px rgba(61, 33, 16, 0.65);
  color: #fdf7f2;
}

.hero-card-inner {
  padding: 1.4rem 1.4rem 1.7rem;
}

.hero-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.2rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.9;
}

.hero-card-main {
  text-align: center;
  margin-bottom: 1.8rem;
}

.hero-cup {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.1rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 15%, #fffaf6, #e7c5a6 55%, #5b311c 100%);
  box-shadow: 0 14px 30px rgba(30, 10, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.hero-cup::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 60px;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.55), transparent 55%),
    radial-gradient(circle at 50% 100%, #3a1606, #1e0802);
}

.hero-cup::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 38px;
  border-radius: 999px;
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-left-color: transparent;
  border-bottom-color: transparent;
  right: -6px;
  top: 22px;
  transform: rotate(18deg);
  box-shadow: 0 0 0 1px rgba(98, 59, 32, 0.4);
}

.hero-steam {
  position: absolute;
  top: -6px;
  left: 25px;
  width: 30px;
  height: 18px;
  display: flex;
  justify-content: space-between;
  opacity: 0.92;
}

.hero-steam span {
  width: 6px;
  background: linear-gradient(to top, transparent, rgba(255, 255, 255, 0.9));
  border-radius: 999px;
  animation: steam 3s ease-in-out infinite;
}

.hero-steam span:nth-child(2) {
  animation-delay: 0.6s;
}

.hero-steam span:nth-child(3) {
  animation-delay: 1.2s;
}

@keyframes steam {
  0% {
    transform: translateY(6px);
    opacity: 0;
  }

  35% {
    opacity: 0.9;
  }

  70% {
    transform: translateY(-10px);
    opacity: 0.2;
  }

  100% {
    transform: translateY(-16px);
    opacity: 0;
  }
}

.hero-card-main h2 {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

.hero-card-main p {
  font-size: 0.9rem;
  color: #f7e9dd;
  opacity: 0.9;
}

.hero-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.hero-card-pill {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(10, 5, 2, 0.45);
  border: 1px solid rgba(252, 233, 214, 0.35);
}

.hero-card-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.9;
}

.hero-card-shadow {
  position: absolute;
  inset: auto 16% -28px 16%;
  height: 32px;
  background: radial-gradient(circle at 50% 0, rgba(0, 0, 0, 0.5), transparent 65%);
  filter: blur(2px);
  opacity: 0.9;
}

.hero-float-tag {
  position: absolute;
  right: -8px;
  top: 10%;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 35px rgba(29, 12, 3, 0.6);
  font-size: 0.8rem;
  color: #4a3227;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 150px;
}

.hero-float-tag strong {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #81522b;
}

.hero-float-tag span {
  font-size: 0.9rem;
}

.hero-float-tag small {
  font-size: 0.76rem;
  color: #7b6a5f;
}

.hero-float-tag::before {
  content: "";
  position: absolute;
  inset: -18px -18px auto auto;
  border-radius: 999px;
  border: 1px solid rgba(221, 167, 118, 0.6);
  opacity: 0.4;
}

.hero-float-badge {
  position: absolute;
  left: -8px;
  bottom: 6%;
  padding: 0.6rem 0.8rem;
  border-radius: 16px;
  background: rgba(24, 13, 6, 0.9);
  color: #fbeee2;
  font-size: 0.78rem;
  max-width: 140px;
  box-shadow: 0 10px 26px rgba(10, 0, 0, 0.7);
}

.hero-float-badge span {
  color: #f3c795;
}

/* About Section */
.about-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: block;
  padding: 0 1.5rem 3rem;
}

.about-card {
  padding: 1.3rem 1.4rem;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: none;
  border: 1px solid #ffffff;
}

.about-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.22rem 0.85rem 0.26rem 0.55rem;
  border-radius: 999px;
  background: rgba(44, 26, 15, 0.9);
  color: #fbeee2;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 auto 1rem;
  width: fit-content;
  max-width: 100%;
}

.about-pill-dot {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffe7c2, #f3a456);
}

.about-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #2e1910;
}

.about-card p {
  font-size: 0.9rem;
  color: #6b574b;
  margin-bottom: 0.8rem;
}

.mission-vision-image {
  width: 100%;
  display: block;
  margin-top: 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(37, 103, 30, 0.22);
  box-shadow: 0 10px 24px rgba(13, 77, 43, 0.15);
}

.liberica-types-image {
  width: 100%;
  max-width: 980px;
  display: block;
  margin: 1rem auto 0;
  border-radius: 14px;
  border: 1px solid rgba(37, 103, 30, 0.22);
  box-shadow: 0 10px 24px rgba(13, 77, 43, 0.15);
}

.history-bottom-image {
  width: 100%;
  /* Make History infographic images wider (fill the card). */
  max-width: 980px;
  display: block;
  margin: 1.1rem auto 0;
  border-radius: 10px;
  border: 1px solid rgba(37, 103, 30, 0.18);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.about-topic[data-about-panel="about-history"] .history-bottom-image {
  /* Keeps the bottom image separated from the text above. */
  margin-top: 1.25rem;
}

.barako-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 310px);
  gap: 1rem;
  align-items: start;
  margin-top: 0.35rem;
}

.barako-split-text p {
  margin-bottom: 0.7rem;
}

.barako-image {
  width: 100%;
  display: block;
  border-radius: 8px;
  border: 1px solid rgba(37, 103, 30, 0.22);
  box-shadow: 0 10px 24px rgba(13, 77, 43, 0.15);
}

/* TYPES OF LIBERICA — Johor (float wrap, same idea as Kapeng Barako) */
.types-liberica-section {
  margin-top: 1.75rem;
  padding-top: 0.75rem;
}

.borneo-liberica-section {
  margin-top: 1.5rem;
  padding-top: 0.25rem;
}

/* Nigerian / West African Liberica — same float-wrap as Johor / Borneo */
.west-african-liberica-section {
  margin-top: 1.5rem;
  padding-top: 0.25rem;
}

.types-liberica-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 1.15rem;
  color: #24422d;
  margin: 0 0 0.85rem;
}

.types-liberica-subtitle {
  text-align: left;
  font-size: 1.18rem;
  font-weight: 700;
  color: #24422d;
  margin: 0 0 0.35rem;
}

.about-topic h4+h5.types-liberica-subtitle {
  margin-top: 0.65rem;
}

.types-liberica-wrap {
  display: block;
}

.types-liberica-wrap::after {
  content: "";
  display: table;
  clear: both;
}

.types-liberica-wrap .types-liberica-photo {
  float: none;
  width: 100%;
  max-width: none;
  display: block;
  margin: 0 0 0.75rem 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  border: 1px solid rgba(37, 103, 30, 0.18);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.types-liberica-wrap p {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.types-liberica-wrap p:last-child {
  margin-bottom: 0;
}

.about-card .types-liberica-wrap p {
  margin-bottom: 0.7rem;
}

/* Text column left, photo right (e.g. Robusta Beans) — matches Borneo-style reference */
.types-liberica-wrap.types-liberica-wrap--side-by-side {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
}

.types-liberica-wrap.types-liberica-wrap--side-by-side::after {
  display: none;
}

.types-liberica-wrap.types-liberica-wrap--side-by-side .types-liberica-photo {
  float: none;
  flex: 0 0 min(100%, 280px);
  width: min(100%, 280px);
  max-width: 280px;
  margin: 0;
}

.types-liberica-wrap.types-liberica-wrap--side-by-side p {
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 860px) {
  .barako-split {
    grid-template-columns: 1fr;
  }

  .barako-image {
    max-width: 420px;
    margin: 0 auto;
  }

  .types-liberica-wrap .types-liberica-photo {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0 0 0.75rem;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .types-liberica-wrap.types-liberica-wrap--side-by-side {
    flex-direction: column;
  }

  .types-liberica-wrap.types-liberica-wrap--side-by-side .types-liberica-photo {
    align-self: center;
  }

  .history-bottom-image {
    max-width: 100%;
    margin: 0.85rem auto 0;
  }
}

.about-split {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0.95rem;
  align-items: start;
}

.about-menu {
  border-radius: 14px;
  background: rgba(216, 242, 232, 0.65);
  border: 1px solid rgba(37, 103, 30, 0.18);
  padding: 0.85rem 0.75rem;
  position: sticky;
  top: calc(var(--beanthentic-fixed-topbar-h, 56px) + 0.75rem);
}

.about-menu-title {
  font-weight: 700;
  color: #1f3b2a;
  font-size: 1.05rem;
  margin: 0 0 0.55rem;
}

.about-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.65rem 0.65rem;
  border-radius: 10px;
  color: #274433;
  font-size: 0.95rem;
  background: transparent;
  border: 1px solid transparent;
}

.about-menu-item:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(37, 103, 30, 0.15);
}

.about-menu-item.is-active {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(37, 103, 30, 0.22);
  font-weight: 700;
}

.about-menu-item.is-active::after {
  content: "›";
  color: rgba(37, 103, 30, 0.85);
  font-size: 1.2rem;
  line-height: 1;
}

.sidebar-submenu .about-menu-item.is-active::after {
  /* For homepage sidebar submenu: remove active arrow indicator. */
  content: none !important;
}

.sidebar-submenu {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.25rem 0.1rem 0.1rem 0.1rem;
  margin-top: 0.15rem;
}

.sidebar-submenu .about-menu-item {
  justify-content: flex-start;
  padding: 0.55rem 0.65rem;
  font-size: 0.92rem;
  border: 1px solid rgba(37, 103, 30, 0.12);
  background: rgba(255, 255, 255, 0.8);
}

.sidebar-submenu .about-menu-item.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, rgba(11, 61, 46, 0.95), rgba(37, 103, 30, 0.95));
  color: #fdfaf6;
}

.about-topic {
  margin-bottom: 0;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #ffffff;
  box-shadow: none;
  display: none;
}

.about-topic.is-active {
  display: block;
}

.about-topic h4 {
  color: #24422d;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

/* Main title per tab (History, Liberica, Robusta, etc.) — gitna at mas malaki */
.about-topic>h4:first-of-type {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.about-topic p:last-child {
  margin-bottom: 0;
}

.about-list {
  list-style: none;
  font-size: 0.9rem;
  color: #5c4a3f;
  margin-top: 0.4rem;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.about-list span {
  font-size: 1rem;
  line-height: 1.2;
  color: #c08552;
}

.about-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.9rem;
  font-size: 0.83rem;
  color: #7a6558;
}

.about-meta div strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #4b3227;
  margin-bottom: 0.15rem;
}

.about-note {
  font-size: 0.78rem;
  color: #8a7667;
  margin-top: 0.75rem;
}

.about-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-highlight {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(233, 206, 177, 0.9), rgba(184, 136, 98, 0.95));
  color: #24150d;
  font-size: 0.9rem;
  box-shadow: 0 14px 32px rgba(109, 60, 28, 0.3);
}

.about-highlight strong {
  display: block;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  margin-bottom: 0.2rem;
  color: #20100a;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  font-size: 0.85rem;
}

.about-stat {
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(210, 170, 138, 0.6);
  color: #4a3227;
}

.about-stat strong {
  display: block;
  font-size: 1.05rem;
}

.about-stat span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #8a7667;
}

/* Auth (login / sign up) */
.auth-main {
  min-height: calc(100vh - 8rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 3rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  box-shadow: 0 14px 40px rgba(46, 111, 28, 0.12);
}

.auth-card h1 {
  font-size: 1.45rem;
  color: #281711;
  margin-bottom: 0.35rem;
}

.auth-card .auth-lead {
  font-size: 0.92rem;
  color: #6b574c;
  margin-bottom: 1.5rem;
}

/* Login page — full-width forest green + centered card */
body.login-page {
  background: #143d22;
  min-height: 100vh;
}

body.login-page>main {
  max-width: none;
  margin: 0;
}

body.login-page .login-page-header {
  display: none !important;
}

.login-main.auth-main {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2.25rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
  padding-top: calc(2.15rem + env(safe-area-inset-top, 0px));
  box-sizing: border-box;
}

.login-card.auth-card {
  max-width: 460px;
  border-radius: 22px;
  border: none;
  padding: 2.55rem 1.65rem 2.1rem;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.login-brand {
  text-align: center;
  margin-top: 0.85rem;
  margin-bottom: 0.35rem;
}

/* Full mark: pin + cup + “Beanthentic” (not the text-only wordmark) */
.login-brand-full-img {
  display: block;
  margin: 0 auto;
  width: min(100%, 19.5rem);
  height: auto;
  max-height: 17.5rem;
  object-fit: contain;
}

.login-greeting {
  font-size: 1.32rem;
  font-weight: 800;
  color: #2c1810;
  text-align: center;
  margin: 0 0 0.45rem;
}

.login-lead.auth-lead {
  text-align: center;
  margin-bottom: 1.35rem;
  font-size: 0.9rem;
  color: #6b574c;
}

.login-phone-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.login-phone-cc {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.4rem;
  padding: 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 650;
  color: #3d2a1f;
  background: #fafafa;
  border: 1px solid #d1d5db;
  border-radius: 12px;
}

.login-form .login-phone-input {
  flex: 1;
  min-width: 0;
  margin-bottom: 0 !important;
  border-radius: 12px !important;
}

.login-form .login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.1rem 0 1.1rem;
}

/* Remember me: icon left, vertically centered with label text (not floating high) */
.login-remember {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
}

.login-remember__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 0;
  min-height: 1.2em;
}

.login-remember__text {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1em;
  font-weight: 500;
  color: #3d2a1f;
  line-height: 1.2;
  white-space: nowrap;
}

.login-remember__input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 1.5em;
  height: 1.5em;
  min-width: 1.5em;
  min-height: 1.5em;
  margin: 0;
  padding: 0;
  border: 1.5px solid rgba(27, 67, 50, 0.45);
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
  vertical-align: middle;
}

/* Checked: PNG may have extra transparent pixels on top — bias art downward in the box */
.login-remember__input[type="checkbox"]:checked {
  border: none;
  background-color: transparent;
  background-image: url("../remember_me_checked.png");
  background-repeat: no-repeat;
  background-position: 50% 62%;
  background-size: 108% auto;
}

.login-remember__input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(27, 67, 50, 0.45);
  outline-offset: 2px;
}

.login-forgot {
  font-size: 0.78rem;
  font-style: italic;
  color: #2563eb !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.login-forgot:hover,
.login-forgot:focus-visible {
  text-decoration: underline !important;
  outline: none;
}

.login-submit-btn.btn-primary {
  border-radius: 14px !important;
  padding: 0.88rem 1.2rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  font-size: 0.8rem !important;
  text-transform: uppercase;
  background: #1b4332 !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22) !important;
}

.login-submit-btn.btn-primary:hover {
  filter: brightness(1.07);
}

.login-submit-btn.btn-primary:disabled,
body.login-pending .login-submit-btn.btn-primary {
  opacity: 0.82;
  cursor: wait;
  filter: none;
}

body.login-pending .login-card {
  pointer-events: none;
}

body.login-pending .login-success-loader.tutorial-loader,
body.signup-pending .login-success-loader.tutorial-loader {
  display: flex !important;
}

body.signup-pending .login-submit-btn.btn-primary {
  opacity: 0.82;
  cursor: wait;
  filter: none;
}

body.signup-pending .auth-card.login-card {
  pointer-events: none;
}

.login-switch.auth-switch {
  margin-top: 1.35rem;
  font-size: 0.88rem;
}

.login-switch a {
  color: #1b7a3d !important;
  font-weight: 700 !important;
}

/* Sign up — same full-screen treatment as login */
body.signup-page {
  background: #143d22;
  min-height: 100vh;
}

body.signup-page>main {
  max-width: none;
  margin: 0;
}

body.signup-page .signup-page-header {
  display: none !important;
}

.signup-form .signup-password-field,
.login-form .signup-password-field {
  position: relative;
  margin-bottom: 1rem;
}

.signup-form .signup-password-input,
.login-form .signup-password-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 2.65rem 0.65rem 0.8rem !important;
  margin-bottom: 0 !important;
  border-radius: 12px !important;
}

.signup-form .signup-password-input[type="password"],
.login-form .signup-password-input[type="password"] {
  -webkit-text-security: disc;
}

.signup-form .signup-password-input[type="text"],
.login-form .signup-password-input[type="text"] {
  -webkit-text-security: none !important;
  text-security: none !important;
}

/* Hide browser-native reveal/clear icons so only one eye toggle shows */
.signup-form .signup-password-input::-ms-reveal,
.signup-form .signup-password-input::-ms-clear,
.login-form .signup-password-input::-ms-reveal,
.login-form .signup-password-input::-ms-clear {
  display: none;
  width: 0;
  height: 0;
}

.signup-form .signup-password-toggle,
.login-form .signup-password-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.signup-form .signup-password-toggle:hover,
.signup-form .signup-password-toggle:focus-visible,
.login-form .signup-password-toggle:hover,
.login-form .signup-password-toggle:focus-visible {
  color: #374151;
  background: rgba(0, 0, 0, 0.05);
  outline: none;
}

.signup-form .signup-password-toggle-icon,
.login-form .signup-password-toggle-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.signup-form .signup-password-toggle-icon[hidden],
.login-form .signup-password-toggle-icon[hidden] {
  display: none !important;
}

@media (max-width: 380px) {
  .login-card.auth-card {
    padding: 2.15rem 1.3rem 1.85rem;
  }

  .login-brand-full-img {
    width: min(100%, 17rem);
    max-height: 15.5rem;
  }
}

/* Pre-auth: choose language (before login / sign up) */
body.choose-lang-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #143d22;
}

.choose-lang-main {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  padding-top: calc(1.25rem + env(safe-area-inset-top, 0px));
  box-sizing: border-box;
}

.choose-lang-card {
  width: 100%;
  max-width: 400px;
  min-height: min(58vh, 30rem);
  background: rgba(255, 255, 255, 0.98);
  border-radius: 18px;
  padding: 2.65rem 1.5rem 3rem;
  box-sizing: border-box;
  text-align: center;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.choose-lang-logo {
  width: min(62vw, 11.25rem);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto 1.25rem;
}

.choose-lang-title {
  margin: 0 0 0.2rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #143d22;
  letter-spacing: 0.02em;
}

.choose-lang-subtitle {
  margin: 0 0 1.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #4a6350;
}

.choose-lang-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.choose-lang-option {
  width: 100%;
  padding: 0.88rem 1rem;
  border: none;
  border-radius: 999px;
  background: #143d22;
  color: #ffffff;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  -webkit-tap-highlight-color: transparent;
}

.choose-lang-option:hover {
  filter: brightness(1.06);
}

.choose-lang-option:active {
  transform: scale(0.99);
}

/* Login / signup: inline Choose Language before sign-in form */
html.auth-lang-pending body.login-page,
html.auth-lang-pending body.signup-page,
body.auth-lang-pending.login-page,
body.auth-lang-pending.signup-page {
  background: #143d22;
}

html.auth-lang-pending .login-page-header,
body.auth-lang-pending .login-page-header {
  display: none;
}

html.auth-lang-pending .login-main.auth-main,
body.auth-lang-pending .login-main.auth-main {
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  padding-top: calc(2rem + env(safe-area-inset-top, 0px));
}

html.auth-lang-pending .login-card.auth-card,
body.auth-lang-pending .login-card.auth-card {
  background: #ffffff;
  border: none;
  border-radius: 22px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
  max-width: 26rem;
  width: 100%;
  padding: 2.35rem 1.65rem 2.1rem;
}

.auth-lang-step {
  text-align: center;
  padding: 0.25rem 0 0;
}

/* Inline choose-language on login/signup — original standalone page look */
.choose-lang-inline .choose-lang-logo {
  width: min(62vw, 11.25rem);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto 1.25rem;
  display: block;
}

.choose-lang-inline .choose-lang-title {
  margin: 0.5rem 0 0.2rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #143d22;
  letter-spacing: 0.02em;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.choose-lang-inline .choose-lang-subtitle {
  margin: 0 0 1.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #4a6350;
}

.choose-lang-inline .choose-lang-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.choose-lang-inline .choose-lang-option {
  width: 100%;
  padding: 0.88rem 1rem;
  border: none;
  border-radius: 999px;
  background: #143d22;
  color: #ffffff;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  -webkit-tap-highlight-color: transparent;
}

.choose-lang-inline .choose-lang-option:hover {
  filter: brightness(1.06);
}

.choose-lang-inline .choose-lang-option:active {
  transform: scale(0.99);
}

.auth-lang-step__hero {
  margin-bottom: 1.85rem;
}

.auth-lang-step__icon-badge {
  width: 4.85rem;
  height: 4.85rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: #eceeed;
  display: grid;
  place-items: center;
  color: #1a3d2e;
  box-shadow: inset 0 0 0 1px rgba(26, 61, 46, 0.05);
}

.auth-lang-step__book-icon {
  width: 2.55rem;
  height: 2.55rem;
  display: block;
}

.auth-lang-step__title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: #2c1810;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-family: Georgia, "Times New Roman", serif;
}

.auth-lang-step__subtitle {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: #6b7280;
}

.auth-lang-step__actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.auth-lang-step__option {
  width: 100%;
  min-height: 3.35rem;
  padding: 0.75rem 1.1rem 0.75rem 1rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #2d5f42 0%, #1b3d2f 48%, #153222 100%);
  color: #ffffff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(21, 50, 34, 0.28);
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.auth-lang-step__option:hover {
  filter: brightness(1.05);
  box-shadow: 0 12px 26px rgba(21, 50, 34, 0.32);
}

.auth-lang-step__option:active {
  transform: scale(0.985);
  box-shadow: 0 6px 14px rgba(21, 50, 34, 0.22);
}

.auth-lang-step__option-icon {
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
}

.auth-lang-step__option-icon svg {
  width: 1.65rem;
  height: 1.65rem;
  display: block;
}

.auth-lang-step__option-icon--map svg {
  width: 1.75rem;
  height: 1.75rem;
}

.auth-lang-step__option-label {
  flex: 1 1 auto;
  text-align: center;
  font-size: 1.02rem;
  font-weight: 700;
}

.auth-lang-step__option-chevron {
  flex: 0 0 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  display: grid;
  place-items: center;
  opacity: 0.92;
}

.auth-lang-step__option-chevron svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

#login-lang-step,
#signup-lang-step {
  display: none;
}

html.auth-lang-pending #login-lang-step,
html.auth-lang-pending #signup-lang-step,
body.auth-lang-pending #login-lang-step,
body.auth-lang-pending #signup-lang-step {
  display: block;
}

html.auth-lang-pending #login-auth-step,
html.auth-lang-pending #signup-auth-step,
body.auth-lang-pending #login-auth-step,
body.auth-lang-pending #signup-auth-step {
  display: none !important;
}

#login-lang-step[aria-hidden="true"],
#signup-lang-step[aria-hidden="true"] {
  display: none !important;
}

/* Post-login: loading → tutorial */
body.tutorial-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #ffffff;
  border: none;
  outline: none;
}

.login-success-loader.tutorial-loader {
  z-index: 99999;
}

.bt-modal {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.bt-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
}

.bt-modal-card {
  position: relative;
  width: min(92vw, 420px);
  background: #ffffff;
  border-radius: 18px;
  padding: 1.15rem 1.05rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.bt-modal-title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 900;
  color: #143d22;
  letter-spacing: -0.01em;
}

.bt-modal-text {
  margin: 0 0 0.95rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #374151;
  font-weight: 600;
}

.bt-modal-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.bt-modal-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.05rem;
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;
  background: rgba(20, 61, 34, 0.12);
  color: #143d22;
}

.bt-modal-btn.primary {
  background: #143d22;
  color: #ffffff;
}

.tutorial-loader {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: #ffffff;
  box-sizing: border-box;
}

.login-success-loader.tutorial-loader[hidden],
.tutorial-loader[hidden] {
  display: none !important;
}

@keyframes tutorial-loader-bean {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.tutorial-loader-bean {
  width: 96px;
  height: 96px;
  object-fit: contain;
  animation: tutorial-loader-bean 1.1s ease-in-out infinite;
}

.tutorial-loader-text {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.95rem;
  color: #4a3728;
}

.tutorial-main {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: none;
  outline: none;
  box-sizing: border-box;
}

.tutorial-sheet {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: #ffffff;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0.85rem 1.1rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
  padding-top: calc(0.85rem + env(safe-area-inset-top, 0px));
  box-sizing: border-box;
  gap: 0;
}

.tutorial-step {
  flex: 1 1 auto;
  display: none;
  flex-direction: column;
  min-height: 0;
}

.tutorial-step--active {
  display: flex;
}

.tutorial-sheet-body {
  flex: 0 1 auto;
  min-height: 0;
}

/* Post-login welcome (image 1 content in image 2 shell) */
.tutorial-welcome {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  padding-top: 0;
  padding-bottom: 0;
  width: 100%;
  min-height: 0;
}

.tutorial-sheet-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  padding-top: 0.35rem;
}

.tutorial-welcome-art {
  width: min(100%, 18rem);
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  border: none;
  border-radius: 0;
  background: transparent;
}

.tutorial-welcome-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 14.25rem;
  object-fit: contain;
}

.tutorial-welcome-img--dashboard {
  max-height: 15.5rem;
}

.tutorial-welcome-img--register {
  max-height: 15.5rem;
}

.tutorial-welcome-img--qr {
  max-height: 15.5rem;
}

.tutorial-welcome-img--reports {
  max-height: 15.5rem;
}

.tutorial-welcome-img--devices {
  max-height: 15.5rem;
}

.tutorial-welcome-copy {
  margin: 0;
  max-width: 22rem;
  font-size: 0.92rem;
  line-height: 1.34;
  color: #2a2118;
  font-weight: 500;
}

.tutorial-welcome-copy strong {
  font-weight: 800;
  color: #1a140f;
}

.tutorial-next-btn {
  align-self: center;
  margin-top: 0;
  padding: 0.82rem 2.15rem;
  border: none;
  border-radius: 999px;
  background: #143d22;
  color: #ffffff;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  -webkit-tap-highlight-color: transparent;
}

.tutorial-next-btn:hover {
  filter: brightness(1.06);
}

.tutorial-next-btn:active {
  transform: scale(0.98);
}

.tutorial-next-arrow {
  font-weight: 600;
  letter-spacing: 0;
}

/* Tutorial pagination dots (step-by-step indicator) */
.tutorial-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.3rem 0 0.55rem;
}

.tutorial-page-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(11, 61, 46, 0.28);
  background: rgba(11, 61, 46, 0.18);
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.tutorial-page-dot[aria-selected="true"] {
  width: 24px;
  background: linear-gradient(135deg, rgba(11, 61, 46, 0.95), rgba(37, 103, 30, 0.95));
  border-color: transparent;
}

.tutorial-page-dot:focus {
  outline: none;
}

.tutorial-page-dot:focus-visible {
  outline: 2px solid rgba(20, 117, 57, 0.35);
  outline-offset: 3px;
}

/* -------------------------------------------------------------------------- */
/* Register Farm: centered date picker modal (Birthday)                        */
/* Dark forest green palette — matches app navbar (#082F15 / #0B3D1B)          */
/* -------------------------------------------------------------------------- */
.fr-date-modal[hidden] {
  display: none !important;
}

body.fr-date-modal-open {
  overflow: hidden;
}

.fr-date-modal {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(8, 47, 21, 0.78);
  backdrop-filter: blur(3px);
}

.fr-date-modal-card {
  width: min(92vw, 360px);
  border-radius: 18px;
  background: linear-gradient(165deg, #082f15 0%, #0b3d1b 52%, #0f4a15 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
  padding: 0.9rem 0.9rem 0.85rem;
  box-sizing: border-box;
  outline: none;
}

.fr-date-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.fr-date-modal-title {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.fr-date-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.24);
  color: #ffffff;
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.fr-date-icon-btn:active {
  transform: scale(0.98);
  background: rgba(0, 0, 0, 0.34);
}

.fr-date-modal-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.fr-date-selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-width: 0;
}

.fr-date-selects select {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #ffffff;
  color: #111827;
  padding: 0.55rem 0.75rem;
  font-weight: 800;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  text-align: center;
}

.fr-date-selects select option {
  /* Android WebView dropdown text can inherit select color; force readable options. */
  color: #111827;
  background: #ffffff;
}

.fr-date-grid {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.65rem 0.55rem;
}

.fr-date-dow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 900;
  color: #ffffff;
  opacity: 0.95;
  text-align: center;
}

.fr-date-cells {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.fr-date-cell {
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 850;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.fr-date-cell--blank {
  border: none;
  background: transparent;
}

.fr-date-cell[aria-selected="true"] {
  background: #ffffff;
  color: #111827;
  border: 2px solid #84cc16;
  box-shadow: 0 0 0 1px rgba(132, 204, 22, 0.35);
}

.fr-date-cell:focus {
  outline: none;
}

.fr-date-cell:focus-visible {
  outline: 2px solid rgba(132, 204, 22, 0.75);
  outline-offset: 2px;
}

.fr-date-modal-actions {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.fr-date-action {
  flex: 1 1 0;
  max-width: 12rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.2);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.7rem 0.85rem;
  font-weight: 900;
  cursor: pointer;
}

.fr-date-action.primary {
  background: #ffffff;
  color: #0b3d1b;
  border-color: transparent;
  max-width: none;
  width: 100%;
}

/* Social page (menu → list of official links) */
body.social-page .social-page-card {
  max-width: 26rem;
}

.social-page-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-page-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1.05rem;
  border-radius: 14px;
  background: #fdfcfa;
  border: 1px solid rgba(46, 111, 28, 0.14);
  text-decoration: none !important;
  color: #24422d !important;
  transition: background 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.social-page-link:hover,
.social-page-link:focus-visible {
  background: rgba(46, 111, 28, 0.06);
  border-color: rgba(46, 111, 28, 0.22);
  outline: none;
}

.social-page-link-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 119, 242, 0.12);
  color: #1877f2;
}

.social-page-link-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
}

.social-page-link-title {
  font-weight: 750;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.social-page-link-sub {
  font-size: 0.8rem;
  font-weight: 550;
  color: #6b5c52;
}

.social-page-note {
  margin: 1.15rem 0 0;
  font-size: 0.82rem;
  color: #8a7a6e;
}

.social-page-back {
  margin: 1.25rem 0 0;
}

/* Account page — portfolio-style profile */
body.account-portfolio-page {
  background: linear-gradient(180deg, #f4f7f4 0%, #faf8f5 38%, #ffffff 100%);
}

/* Profile scrolls under this bar + drawer; stops card/avatar painting over logo & burger */
body.account-portfolio-page header {
  z-index: 120;
}

body.account-portfolio-page .account-portfolio-main {
  position: relative;
  z-index: 0;
}

.account-portfolio-main {
  /* Extra space: bottom tab bar + Register Farm tab used to stick up (-16px) — avoid overlap / “lumulusot” */
  min-height: calc(100vh - 7rem);
  padding: 1.25rem max(1rem, env(safe-area-inset-left)) calc(4.5rem + env(safe-area-inset-bottom, 0px) + 20px) max(1rem, env(safe-area-inset-right));
  box-sizing: border-box;
}

.account-portfolio {
  max-width: 520px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(46, 111, 28, 0.12);
  box-shadow:
    0 4px 24px rgba(22, 38, 28, 0.06),
    0 18px 48px rgba(46, 111, 28, 0.1);
}

.account-portfolio-hero {
  text-align: center;
  padding: 2rem 1.5rem 1.75rem;
  background: linear-gradient(145deg, #1a5c34 0%, #2e8f4a 42%, #3d7a32 100%);
  color: #fdfaf6;
  position: relative;
  overflow: hidden;
}

.account-portfolio-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.12));
  pointer-events: none;
}

.account-portfolio-avatar {
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(253, 250, 246, 0.95), rgba(227, 245, 232, 0.92));
  border: 3px solid rgba(255, 255, 255, 0.45);
  /* Shadow mostly below — avoids a “white arc” reading as leakage above the hero */
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.account-portfolio-avatar-initials {
  font-size: 1.65rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  color: #1f4d2e;
}

.account-portfolio-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.88;
  position: relative;
  z-index: 1;
}

.account-portfolio-name {
  margin: 0 0 0.4rem;
  font-size: 1.65rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 1;
}

.account-portfolio-tagline {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.92;
  word-break: break-word;
  position: relative;
  z-index: 1;
}

.account-portfolio-body {
  padding: 1.5rem 1.35rem 1.75rem;
}

.account-portfolio-section {
  margin-bottom: 1.35rem;
}

.account-portfolio-section:last-of-type {
  margin-bottom: 0;
}

.account-portfolio-section-title {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #6b7a66;
}

.account-portfolio-bio {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #4a433c;
}

.account-portfolio-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.account-portfolio-stat {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(80, 128, 50, 0.07), rgba(46, 111, 28, 0.04));
  border: 1px solid rgba(46, 111, 28, 0.1);
}

.account-portfolio-stat-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7568;
  margin-bottom: 0.35rem;
}

.account-portfolio-stat-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: #24422d;
}

.account-portfolio-stat-value--accent {
  color: #2a7a3d;
}

.account-portfolio-dl {
  margin: 0;
}

.account-portfolio-dl>div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(253, 250, 246, 0.95);
  border: 1px solid rgba(198, 157, 125, 0.28);
}

.account-portfolio-dl dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a7667;
}

.account-portfolio-dl dd {
  margin: 0;
  font-size: 0.95rem;
  color: #2c241c;
  word-break: break-all;
}

.account-portfolio-quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.account-portfolio-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.95rem 0.6rem;
  border-radius: 14px;
  text-decoration: none !important;
  color: #24422d !important;
  background: #fdfcfa;
  border: 1px solid rgba(46, 111, 28, 0.14);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.account-portfolio-tile:hover,
.account-portfolio-tile:focus-visible {
  background: rgba(46, 111, 28, 0.06);
  border-color: rgba(46, 111, 28, 0.22);
  outline: none;
}

.account-portfolio-tile:active {
  transform: scale(0.98);
}

.account-portfolio-tile-icon {
  width: 1.65rem;
  height: 1.65rem;
  color: #3a7d35;
}

.account-portfolio-tile-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.account-portfolio-tile-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
}

.account-portfolio-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding-top: 0.25rem;
}

.account-portfolio-signout {
  width: 100%;
  max-width: 280px;
  padding: 0.75rem 1.25rem;
  font-weight: 650;
}

/* Account: Sign out button should be green-only (no brown gradient). */
.account-portfolio-signout.btn-primary {
  background: linear-gradient(135deg, #2e6f1c, #147539) !important;
  box-shadow: 0 10px 22px rgba(20, 117, 57, 0.28) !important;
}

.account-portfolio-signout.btn-primary:hover {
  box-shadow: 0 14px 28px rgba(20, 117, 57, 0.34) !important;
  filter: brightness(1.05);
}

.account-portfolio-back-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: #2d6b38 !important;
  text-decoration: none !important;
}

.account-portfolio-back-link:hover,
.account-portfolio-back-link:focus-visible {
  text-decoration: underline !important;
  outline: none;
}

@media (min-width: 480px) {
  .account-portfolio-quick {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .account-portfolio-name {
    font-size: 1.85rem;
  }
}

/* Account: shortcuts stay 2×2 so they don’t read as a second bottom nav */
body.account-portfolio-page .account-portfolio-quick {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 480px) {
  body.account-portfolio-page .account-portfolio-quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Account: Register Farm “raised” tab uses negative margin globally — here it looked like UI leaking into the profile */
body.account-portfolio-page .app-bottom-nav {
  background: #faf8f5;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 -4px 20px rgba(22, 38, 28, 0.07);
}

body.account-portfolio-page .app-bottom-nav-link--featured {
  margin-top: 0;
}

@media (min-width: 901px) {
  .account-portfolio-main {
    padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px) + 12px);
  }
}

/* Account: Profile QR */
.profile-qr-card {
  margin-top: 0.2rem;
  padding: 0.95rem 0.95rem 0.85rem;
  border-radius: 16px;
  background: #fdfcfa;
  border: 1px solid rgba(46, 111, 28, 0.14);
  display: grid;
  gap: 0.65rem;
}

.profile-qr-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(37, 103, 30, 0.14);
}

.profile-qr-img {
  width: min(230px, 100%);
  height: auto;
  display: block;
  border-radius: 12px;
}

.profile-qr-caption {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  color: #6b574b;
}

.profile-qr-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.profile-qr-btn {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-weight: 650;
  background: linear-gradient(135deg, #2e6f1c, #147539) !important;
  box-shadow: 0 10px 22px rgba(20, 117, 57, 0.28) !important;
}

.profile-qr-btn--secondary {
  background: linear-gradient(135deg, #6b7280, #4b5563) !important;
  box-shadow: 0 10px 22px rgba(75, 85, 99, 0.22) !important;
}

.profile-qr-link {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #2d6b38 !important;
  text-decoration: none !important;
  margin: 0;
}

.profile-qr-link:hover,
.profile-qr-link:focus-visible {
  text-decoration: underline !important;
  outline: none;
}

.profile-qr-url {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #6b5c52;
  text-align: center;
  word-break: break-all;
}

/* -------------------------------------------------------------------------- */
/* Notification Settings (cards + toggles)                                     */
/* -------------------------------------------------------------------------- */

body.notification-settings-page {
  background: #f3f4f6;
}

body.notification-settings-page .auth-main {
  /* The screenshot layout sits higher (not vertically centered). */
  align-items: flex-start;
  padding-top: 1.25rem;
}

body.notification-settings-page .notif-settings-shell.auth-card {
  max-width: 62rem !important;
  border-radius: 18px;
  padding: 1.35rem 1.35rem 1.55rem;
  box-shadow: 0 14px 40px rgba(17, 24, 39, 0.08);
}

.settings-back-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  color: #6b574b;
  background: rgba(245, 235, 225, 0.95);
  border: 1px solid rgba(155, 99, 67, 0.22);
  box-shadow: 0 8px 18px rgba(60, 34, 18, 0.08);
  margin-bottom: 0.85rem;
}

.settings-back-pill:hover {
  background: rgba(235, 217, 200, 0.98);
  color: #4a3224;
}

.notif-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
  overflow: hidden;
  margin-top: 1.1rem;
}

.notif-card__head {
  padding: 1rem 1.1rem 0.35rem;
  color: #111827;
  font-size: 0.92rem;
}

.notif-card__head strong {
  display: block;
  font-size: 0.93rem;
  letter-spacing: -0.01em;
}

.notif-card__subhead {
  margin: 0;
  padding: 0 1.1rem 0.6rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(17, 24, 39, 0.55);
}

.notif-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.notif-row__text {
  min-width: 0;
}

.notif-row__text strong {
  display: block;
  font-size: 0.88rem;
  color: #111827;
}

.notif-row__text span {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.78rem;
  color: rgba(17, 24, 39, 0.55);
  line-height: 1.35;
}

.notif-row--compact .notif-row__text strong {
  font-size: 0.9rem;
  font-weight: 700;
}

/* Toggle switch */
.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.switch__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.18);
  transition: transform 0.2s ease;
}

.switch input:checked+.switch__track {
  background: #147539;
}

.switch input:checked+.switch__track::after {
  transform: translateX(20px);
}

.switch input:focus-visible+.switch__track {
  box-shadow: 0 0 0 3px rgba(20, 117, 57, 0.22);
}

.notif-save-btn.btn-primary {
  margin-top: 0.95rem;
  width: auto;
  min-width: 12rem;
  border-radius: 10px;
  padding: 0.65rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 700;
  background: linear-gradient(180deg, #a86d4a 0%, #9b6343 45%, #7a4a33 100%) !important;
  box-shadow: 0 10px 22px rgba(60, 34, 18, 0.22) !important;
}

@media (max-width: 520px) {
  body.notification-settings-page .notif-settings-shell.auth-card {
    padding: 1.1rem 1.05rem 1.35rem;
  }

  .notif-card__head,
  .notif-row {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }
}

/* -------------------------------------------------------------------------- */
/* Activity Log (settings page)                                               */
/* -------------------------------------------------------------------------- */

body.activity-log-page {
  background: #f3f4f6;
}

body.activity-log-page .auth-main {
  align-items: flex-start;
  padding-top: 1.25rem;
}

body.activity-log-page .activity-log-shell.auth-card {
  max-width: 62rem !important;
  border-radius: 18px;
  padding: 1.35rem 1.35rem 1.55rem;
  box-shadow: 0 14px 40px rgba(17, 24, 39, 0.08);
}

.activity-card {
  margin-top: 1rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
  overflow: hidden;
}

.activity-controls {
  padding: 0.85rem 0.95rem 0.7rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.55rem;
}

.activity-control label {
  display: block;
  margin-bottom: 0.32rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #374151;
}

.activity-control select,
.activity-control input {
  width: 100%;
  max-width: 18rem;
  padding: 0.48rem 0.56rem;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #ffffff;
  font-size: 0.78rem;
  color: #111827;
}

.activity-control input::placeholder {
  color: #9ca3af;
}

.activity-table-wrap {
  overflow: auto;
}

.activity-table {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
}

.activity-table thead th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: #374151;
  background: #f9fafb;
  padding: 0.58rem 0.95rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.activity-table tbody td {
  font-size: 0.76rem;
  color: #111827;
  padding: 0.52rem 0.95rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  vertical-align: middle;
}

.activity-pill {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: #1f2937;
}

.activity-pill--login {
  color: #166534;
}

.activity-pill--logout {
  color: #475569;
}

.activity-pill--security {
  color: #7c2d12;
}

.activity-pill--data {
  color: #1d4ed8;
}

.activity-ip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: #4b5563;
  background: transparent;
}

.activity-empty {
  text-align: center;
  color: #6b7280;
}

@media (max-width: 720px) {
  body.activity-log-page .activity-log-shell.auth-card {
    padding: 1.1rem 1.05rem 1.35rem;
  }

  .activity-controls,
  .activity-table thead th,
  .activity-table tbody td {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* -------------------------------------------------------------------------- */
/* FAQ (settings page)                                                        */
/* -------------------------------------------------------------------------- */

body.faq-page {
  background: #f3f4f6;
}

body.faq-page .auth-main {
  align-items: flex-start;
  padding-top: 1.25rem;
}

body.faq-page .faq-shell.auth-card {
  max-width: 62rem !important;
  border-radius: 18px;
  padding: 1.35rem 1.35rem 1.55rem;
  box-shadow: 0 14px 40px rgba(17, 24, 39, 0.08);
}

.faq-card {
  margin-top: 0.95rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
  padding: 0.8rem 0.75rem;
}

.faq-title {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
  font-weight: 800;
  color: #111827;
  padding: 0 0.25rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  margin-bottom: 0;
  overflow: hidden;
}

.faq-q {
  padding: 0.9rem 1.05rem;
  box-sizing: border-box;
}

.faq-a {
  padding: 0 1.05rem 1rem;
  box-sizing: border-box;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
  color: #111827;
  padding: 0.55rem 2rem 0.55rem 0.65rem;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: "▾";
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.78rem;
  color: #6b7280;
}

.faq-item[open] .faq-summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
  padding: 0.1rem 0.65rem 0.65rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.72rem;
  line-height: 1.45;
  color: #4b5563;
}

.faq-answer strong {
  color: #1f2937;
}

.faq-steps {
  margin: 0.35rem 0 0;
  padding-left: 1rem;
}

.faq-steps li {
  margin: 0.15rem 0;
}

@media (max-width: 720px) {
  body.faq-page .faq-shell.auth-card {
    padding: 1.1rem 1.05rem 1.35rem;
  }
}

/* -------------------------------------------------------------------------- */
/* Account Security (settings page)                                           */
/* -------------------------------------------------------------------------- */

body.account-security-page {
  background: #f3f4f6;
}

body.account-security-page .auth-main {
  align-items: flex-start;
  padding-top: 1.25rem;
}

body.account-security-page .account-security-shell.auth-card {
  max-width: 62rem !important;
  border-radius: 18px;
  padding: 1.35rem 1.35rem 1.55rem;
  box-shadow: 0 14px 40px rgba(17, 24, 39, 0.08);
}

.account-security-card {
  margin-top: 0.95rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
  padding: 0.9rem 0.95rem 1rem;
}

.account-security-title {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 800;
  color: #111827;
}

.account-security-lead {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.74rem;
  line-height: 1.45;
  color: #4b5563;
}

.account-security-form label {
  display: block;
  margin: 0 0 0.28rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #374151;
}

.account-security-form input {
  width: 100%;
  margin: 0 0 0.65rem;
  padding: 0.52rem 0.68rem;
  border-radius: 8px;
  border: 1px solid rgba(155, 99, 67, 0.22);
  background: #ffffff;
  color: #111827;
  font-size: 0.8rem;
}

.account-security-form input:focus {
  outline: none;
  border-color: rgba(155, 99, 67, 0.55);
  box-shadow: 0 0 0 3px rgba(155, 99, 67, 0.12);
}

.account-security-btn.btn-primary {
  width: auto;
  min-width: 8.4rem;
  margin-top: 0.15rem;
  border-radius: 8px;
  padding: 0.56rem 0.82rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: linear-gradient(180deg, #2f9f3a 0%, #23872e 45%, #1a6a24 100%) !important;
  box-shadow: 0 9px 20px rgba(18, 78, 25, 0.22) !important;
}

@media (max-width: 720px) {
  body.account-security-page .account-security-shell.auth-card {
    padding: 1.1rem 1.05rem 1.35rem;
  }

  .account-security-card {
    padding: 0.8rem 0.75rem 0.9rem;
  }
}

/* News page — Register Farm Portal–style shell + static certificate preview (no PDF iframe / no inner scroll) */
body.news-portal-page {
  background: #f3f4f6;
}

.news-portal-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(18px, env(safe-area-inset-left));
  padding-right: max(18px, env(safe-area-inset-right));
}

.news-portal-hero {
  background: linear-gradient(135deg, var(--beanthentic-green-accent) 0%, var(--beanthentic-green-dark) 100%);
  color: #fff;
  padding: 1rem 0.9rem 1.1rem;
  position: relative;
  overflow: hidden;
  /* Mas malawak na inset — hindi dikit sa header at gilid */
  margin-top: 0.9rem;
  margin-bottom: 0.4rem;
  margin-left: max(1.125rem, calc(env(safe-area-inset-left, 0px) + 12px));
  margin-right: max(1.125rem, calc(env(safe-area-inset-right, 0px) + 12px));
  border-radius: 20px;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.06) inset,
    0 8px 24px rgba(15, 42, 20, 0.16);
}

.news-portal-hero .news-portal-container {
  padding-left: max(12px, calc(env(safe-area-inset-left, 0px) + 4px));
  padding-right: max(12px, calc(env(safe-area-inset-right, 0px) + 4px));
}

.news-portal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="g" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.04)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.04)"/></pattern></defs><rect width="100" height="100" fill="url(%23g)"/></svg>');
  opacity: 0.12;
  pointer-events: none;
}

.news-portal-hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.news-portal-hero-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 0.3rem;
  color: #b8e8c4;
}

.news-portal-hero-icon svg {
  width: 30px;
  height: 30px;
}

.news-portal-hero-title {
  font-size: clamp(1.08rem, 2.9vw, 1.32rem);
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.news-portal-main {
  padding: 1rem 0 2.5rem;
  flex: 1;
}

.news-portal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--beanthentic-green-accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.news-portal-back:hover {
  color: var(--beanthentic-green-dark);
  transform: translateX(-3px);
}

.news-portal-lead {
  font-size: 0.9375rem;
  color: #4b5563;
  line-height: 1.55;
  max-width: 52rem;
  margin: 0 0 1.5rem;
}

.news-cert-figure {
  margin: 0;
  padding: 0;
}

.news-cert-figure--static {
  margin-top: 0.25rem;
}

/* Single visible preview: scales to viewport height — no iframe scrollbars */
.news-cert-img-viewport {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  /* Portrait preview tends to look like a thumbnail if the max-height is too low. */
  max-height: min(86vh, 1100px);
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(37, 103, 30, 0.14);
  box-shadow: 0 10px 32px rgba(17, 24, 39, 0.08);
}

.news-cert-img-viewport img {
  display: block;
  /* Fill available width and scale height automatically. */
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: min(86vh, 1100px);
  object-fit: contain;
}

.news-cert-img {
  display: block;
  width: 100%;
  max-width: min(22rem, 100%);
  margin: 0 auto;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(37, 103, 30, 0.18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.news-cert-caption {
  margin: 0.85rem auto 0;
  max-width: 40rem;
  font-size: 0.82rem;
  color: #6b574b;
  line-height: 1.55;
  text-align: center;
}

.auth-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #3d2a1f;
  margin-bottom: 0.35rem;
}

.auth-form input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-size: 1rem;
  margin-bottom: 1rem;
  background: #fafafa;
}

.auth-form input:focus {
  outline: none;
  border-color: rgba(37, 103, 30, 0.65);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 103, 30, 0.15);
}

/* Remember me: must follow generic .auth-form label/input — row layout, checkbox left of text */
.auth-form label.login-remember {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 0.5rem;
  width: auto !important;
  max-width: 100%;
  margin-bottom: 0 !important;
  font-weight: 500;
}

.auth-form .login-remember__input[type="checkbox"] {
  width: 1.5em !important;
  height: 1.5em !important;
  min-width: 1.5em !important;
  max-width: 3rem !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  border-radius: 4px;
  background-color: #fff;
  font-size: inherit;
}

.auth-form .login-remember__input[type="checkbox"]:focus:not(:checked) {
  background-color: #fff;
}

.auth-form .login-remember__input[type="checkbox"]:checked:focus {
  background-color: transparent;
}

.auth-form .btn-primary {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.7rem 1.2rem;
  background: linear-gradient(135deg, #2e6f1c, #147539) !important;
  box-shadow: 0 10px 22px rgba(20, 117, 57, 0.28) !important;
}

.auth-form .btn-primary:hover {
  box-shadow: 0 14px 28px rgba(20, 117, 57, 0.34) !important;
  filter: brightness(1.05);
}

.auth-form .btn-primary:active {
  transform: scale(0.98);
  filter: brightness(0.98);
}

.auth-switch {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: #6b574c;
}

.auth-switch a {
  color: var(--beanthentic-green-accent, #25671E);
  font-weight: 600;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* Home page mobile format (match compact app-style layout) */
body.home-page {
  background: #f4f6f4;
  /* Clear fixed header + breathing room before location row */
  padding-top: calc(env(safe-area-inset-top, 0px) + 4.25rem);
}

body.home-page .home-top-meta {
  margin-top: 0.65rem;
  margin-bottom: 0.8rem;
}

body.home-page>main.home-mobile-layout {
  width: min(100%, var(--bt-app-content-max, 100%));
  max-width: var(--bt-app-content-max, min(100%, 560px));
  margin: 0 auto;
  padding-top: 0.35rem;
  padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  padding-bottom: calc(5.2rem + env(safe-area-inset-bottom, 0px));
}

.home-mobile-shell {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.home-mobile-search-wrap {
  margin-top: 0.05rem;
}

.home-mobile-search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(27, 67, 50, 0.16);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(18, 40, 26, 0.08);
  padding: 0.5rem 0.75rem;
}

.home-mobile-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #1f2937;
  font-size: 0.95rem;
}

.home-mobile-search input::placeholder {
  color: #8a8f97;
}

.home-mobile-search-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #8a8f97;
  flex-shrink: 0;
}

.home-mobile-hero-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.75;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  background: #1a2e1c;
  overflow: hidden;
  isolation: isolate;
}

.home-mobile-hero-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform-origin: center center;
  display: block;
  border-radius: inherit;
}

.home-mobile-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem 0.2rem;
  margin-top: 0.2rem;
  width: 96%;
  margin-left: auto;
  margin-right: auto;
}

.home-mobile-shortcut {
  text-decoration: none;
  color: #1f2937;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
}

.home-mobile-shortcut-icon {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1b5e20;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(27, 94, 32, 0.35);
}

.beanthentic-msg-badge {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.05rem;
  text-align: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.45);
  z-index: 2;
  pointer-events: none;
}

.beanthentic-msg-badge[hidden] {
  display: none !important;
}

.beanthentic-notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.05rem;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.45);
  z-index: 2;
  pointer-events: none;
}

.beanthentic-notif-badge[hidden] {
  display: none !important;
}

.home-mobile-shortcut-icon--light {
  background: #ffffff;
  color: #1b5e20;
  border: 1px solid #d8dadd;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.home-mobile-shortcut-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

/* Updates: custom history arc + arrow + clock hands — explicit forest green on white pill */
.home-mobile-shortcut-icon--light .home-mobile-shortcut-updates-svg {
  width: 1.85rem;
  height: 1.85rem;
  color: #1b5e20;
}

/* Messages: slightly smaller than max fit; tail makes glyph feel low/left — nudge for optical center */
.home-mobile-shortcut-icon .home-mobile-shortcut-msg-svg {
  display: block;
  width: 2.1rem;
  height: 2.1rem;
  flex-shrink: 0;
  transform: translate(0.06rem, -0.05rem);
}

.home-mobile-story {
  margin-top: 0.35rem;
}

.home-mobile-story-title {
  margin: 0;
  font-size: clamp(2.05rem, 6.6vw, 2.95rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #1f120b;
}

.home-mobile-story-title span {
  color: #1f7a31;
  display: inline-block;
}

.home-mobile-story-lead {
  margin-top: 1.05rem;
  margin-bottom: 0.65rem;
  font-size: 0.98rem;
  line-height: 1.28;
  color: #2f2f2f;
}

.home-mobile-story-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.home-mobile-story-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: clamp(0.5rem, 2vw, 0.85rem);
  row-gap: clamp(0.55rem, 1.5vw, 0.85rem);
  align-items: stretch;
}

/* If the story thumbnail image fails to load, collapse the grid so text
   doesn't keep the left “blank column” alignment. */
.home-mobile-story-row.home-story-thumb-missing {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto auto;
}

.home-mobile-story-row.home-story-thumb-missing .home-mobile-story-thumb {
  display: none !important;
}

.home-mobile-story-row.home-story-thumb-missing .home-mobile-story-title {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
}

.home-mobile-story-row.home-story-thumb-missing .home-mobile-story-copy {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  margin-top: 0 !important;
  width: 100%;
  max-width: 100%;
}

.home-mobile-story-row.home-story-thumb-missing .home-mobile-story-footer-text {
  grid-column: 1 / -1 !important;
  grid-row: 3 !important;
  width: 100%;
  max-width: 100%;
}

.home-mobile-story-row .home-mobile-story-title {
  grid-column: 1 / -1;
  grid-row: 1;
  text-align: left;
  margin: 0 0 0.25rem;
}

.home-mobile-story-row .home-mobile-story-thumb {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  max-width: 100%;
  margin: 0;
  justify-self: stretch;
  align-self: stretch;
  height: 100%;
  min-height: 100%;
}

.home-mobile-story-copy {
  grid-column: 2;
  grid-row: 2;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-self: stretch;
  margin-top: 0;
  box-sizing: border-box;
}

.home-mobile-story-copy .home-mobile-story-row-text {
  margin: 0;
}

.home-mobile-story-row-text--follow {
  margin: 0;
}

.home-mobile-story-footer-text {
  grid-column: 1 / -1;
  grid-row: 3;
  margin: 0.35rem 0 0;
  width: 100%;
  max-width: 100%;
}

.home-mobile-story-thumb {
  width: 100%;
  max-width: 100%;
  flex: none;
  align-self: stretch;
  aspect-ratio: unset;
  height: 100%;
  min-height: 100%;
  max-height: none;
  border-radius: 10px;
  background: #d8d8d8;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.home-mobile-story-row-text {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  align-self: flex-start;
  color: #1f1f1f;
  font-size: 1.08rem;
  line-height: 1.44;
  max-width: 100%;
}

/* Phones: same side-by-side story layout as website (image left, text right) */
@media (max-width: 479px) {
  .home-mobile-story {
    margin-top: 0.25rem;
  }

  .home-mobile-story-list {
    margin-top: 0.55rem;
    gap: 0.4rem;
  }

  .home-mobile-story-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 0.45rem;
    row-gap: 0.45rem;
    align-items: stretch;
  }

  .home-mobile-story-row .home-mobile-story-title {
    font-size: clamp(1.62rem, 7vw, 2rem);
    line-height: 1.1;
    margin: 0 0 0.12rem;
  }

  .home-mobile-story-row .home-mobile-story-thumb {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    margin: 0;
  }

  .home-mobile-story-row .home-mobile-story-copy {
    gap: 0.32rem;
    padding: 0;
  }

  .home-mobile-story-row .home-mobile-story-footer-text {
    grid-column: 1 / -1;
    grid-row: 3;
    margin: 0.2rem 0 0;
  }

  .home-mobile-story-row-text {
    font-size: 0.82rem;
    line-height: 1.34;
  }

  .home-mobile-story-row.home-story-thumb-missing {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto;
  }

  .home-mobile-story-row.home-story-thumb-missing .home-mobile-story-footer-text {
    grid-row: 3 !important;
  }
}

/* Tablet / narrow: same side-by-side as desktop (image 2), smaller image column */
@media (min-width: 480px) and (max-width: 699px) {
  .home-mobile-story-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    row-gap: 0.6rem;
    column-gap: 0.55rem;
  }

  .home-mobile-story-row-text {
    font-size: 0.95rem;
    line-height: 1.4;
  }
}

@media (min-width: 700px) {
  .home-mobile-story-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    row-gap: 0.7rem;
    column-gap: 0.75rem;
  }

  .home-mobile-story-row .home-mobile-story-title {
    font-size: clamp(2.45rem, 4.8vw, 3.35rem);
    line-height: 1.06;
  }

  .home-mobile-story-row-text {
    font-size: 1.18rem;
    line-height: 1.45;
  }

  .home-mobile-story-lead {
    font-size: 1.05rem;
  }

  .home-mobile-story-row .home-mobile-story-thumb {
    aspect-ratio: unset;
    max-height: none;
  }

  .home-mobile-story-copy {
    gap: 0.55rem;
  }
}

/* Home: registration gate modal (shown until farmer registration exists) */
body.home-register-gate-open {
  overflow: hidden;
}

.home-register-gate {
  position: fixed;
  inset: 0;
  /* Above #page-loader (99999) so the modal is actually visible */
  z-index: 100010;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
}

.home-register-gate[hidden] {
  display: none !important;
}

.home-register-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.home-register-gate-modal {
  position: relative;
  z-index: 1;
  max-width: 22rem;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem 1.35rem 1.35rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.home-register-gate-text {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.35;
}

.home-register-gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8.75rem;
  padding: 0.65rem 1.85rem;
  border: none;
  border-radius: 999px;
  background: var(--beanthentic-green-dark, #1c5216);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.home-register-gate-btn:active {
  opacity: 0.92;
}

/* Global top bar: fixed with layout.css header; reinforce hero variants */
header.about-hero,
header.hist-hero,
header.mv-hero,
header.msg-top,
header.reg-hero,
header:has(a.updates-topbar),
header.fr-reg-hero {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  inset-inline: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  z-index: 1200 !important;
  transform: translateZ(0);
  backface-visibility: hidden;
}

header.about-hero,
header.hist-hero,
header.mv-hero,
header.msg-top,
header.reg-hero,
header:has(a.updates-topbar),
header.fr-reg-hero,
.records-page header,
.social-page header,
.account-portfolio-page header,
.txn-history-page header,
body.settings-page header,
body.account-security-page header,
.updates-page header,
.contact-page header,
.faq-page header,
.pi-page header,
.help-page header,
.account-settings-topbar,
.login-page-header,
.signup-page-header,
.msg-top {
  background: linear-gradient(180deg, var(--navbar-bg) 0%, var(--navbar-bg-shade) 100%) !important;
}

.home-register-gate-btn:disabled {
  opacity: 0.75;
  cursor: default;
}