/* Appily Sixteen — Bloom Greenhouse account */

.page-bloom-greenhouse .page-main { background: var(--cream, #FFF8F0); }

/* Hero — glasshouse canopy */
.gh-hero {
  position: relative;
  padding: 44px 0 36px;
  overflow: hidden;
  background: linear-gradient(165deg, #e8f5e9 0%, #fff8f0 42%, #ffe8e8 100%);
}
.gh-glass {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.gh-pane {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.08) 100%);
  backdrop-filter: blur(2px);
}
.gh-pane-1 {
  top: -10%;
  left: -5%;
  width: 55%;
  height: 70%;
  transform: skewX(-8deg);
  border-radius: 0 0 40% 0;
}
.gh-pane-2 {
  top: 5%;
  right: -8%;
  width: 48%;
  height: 85%;
  transform: skewX(6deg);
  border-radius: 0 0 0 35%;
}
.gh-pane-3 {
  bottom: -20%;
  left: 25%;
  width: 50%;
  height: 50%;
  opacity: 0.5;
  border-radius: 50%;
}
.gh-condense {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background:
    radial-gradient(circle at 20% 35%, rgba(255, 255, 255, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 45% 18%, rgba(255, 255, 255, 0.7) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 72% 42%, rgba(255, 255, 255, 0.8) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 28%, rgba(255, 255, 255, 0.6) 0 1px, transparent 2px),
    radial-gradient(circle at 35% 68%, rgba(255, 255, 255, 0.5) 0 1.5px, transparent 2.5px);
}
.gh-hero-inner { position: relative; max-width: 720px; }
.gh-kicker {
  font-family: var(--script, 'Marck Script', cursive);
  color: var(--green, #689F38);
  font-size: 1.35rem;
  margin: 0 0 6px;
}
.gh-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.12;
  color: var(--ink);
}
.gh-hero h1 em { font-style: normal; color: var(--red, #D32F2F); }
.gh-lede {
  margin: 0;
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Floor */
.gh-floor { padding: 8px 0 72px; }
.gh-wrap { max-width: 980px; }
.gh-loading, .gh-notice { margin-bottom: 20px; }

/* Terrarium member card */
.gh-terrarium {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px 22px;
  padding: 22px 26px;
  margin-bottom: 24px;
  border-radius: 22px;
  background: linear-gradient(145deg, #1b5e20 0%, #2e7d32 45%, #388e3c 100%);
  color: #fff;
  box-shadow: 0 18px 48px rgba(27, 94, 32, 0.28);
  overflow: hidden;
}
.gh-terrarium-glass {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 55%);
  pointer-events: none;
}
.gh-terrarium-soil {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(62, 39, 35, 0.35));
  pointer-events: none;
}
.gh-terrarium-sprout {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.25);
}
.gh-terrarium-body { position: relative; z-index: 1; min-width: 0; }
.gh-terrarium-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.gh-terrarium-label {
  margin: 0;
  font-size: 0.78rem;
  opacity: 0.85;
}
.gh-terrarium h2 {
  margin: 2px 0 0;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 700;
  line-height: 1.2;
}
.gh-terrarium-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

/* Bench layout */
.gh-bench {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 20px;
  align-items: start;
}

/* Plant stake nav */
.gh-stakes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gh-stake {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 14px 14px 22px;
  border: 0;
  border-radius: 0 12px 12px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid #c8e6c9;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.gh-stake-link { cursor: pointer; }
.gh-stake-pin {
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
}
.gh-stake-tag {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}
.gh-stake-note {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.gh-stake:hover,
.gh-stake.is-active {
  border-left-color: var(--red);
  box-shadow: 0 8px 22px rgba(211, 47, 47, 0.12);
  transform: translateX(3px);
}
.gh-stake.is-active .gh-stake-pin { background: var(--red); }
.gh-stake.is-active .gh-stake-tag { color: var(--red); }

/* Potting tray panels */
.gh-tray {
  position: relative;
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.07);
  padding: 28px 30px 32px;
  min-height: 420px;
}
.gh-tray-rim {
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 6px;
  border-radius: 0 0 8px 8px;
  background: repeating-linear-gradient(
    90deg,
    #8d6e63 0 8px,
    #a1887f 8px 16px
  );
  opacity: 0.55;
}
.gh-panel { display: none; }
.gh-panel.is-active { display: block; }
.gh-panel-kicker {
  margin: 8px 0 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}
.gh-panel-title {
  margin: 0 0 18px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
}
.gh-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}
.gh-panel-head .gh-panel-title { margin-bottom: 0; }

/* Profile grid */
.gh-profile-grid,
.page-bloom-greenhouse .profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.page-bloom-greenhouse .profile-item {
  padding: 14px 16px;
  background: linear-gradient(180deg, #fff 0%, #f1f8e9 100%);
  border-radius: 12px;
  border: 1px solid rgba(104, 159, 56, 0.2);
}
.page-bloom-greenhouse .profile-item .k {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.page-bloom-greenhouse .profile-item .v {
  color: var(--ink);
  font-weight: 600;
}
.page-bloom-greenhouse .profile-item .v.mono {
  font-size: 0.8rem;
  color: var(--green);
}

/* Orders */
.gh-order-list .order-row,
.page-bloom-greenhouse .order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: var(--cream, #FFF8F0);
  border: 1px solid var(--line);
}
.page-bloom-greenhouse .order-row strong { color: var(--red); }
.page-bloom-greenhouse .mini-copy {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}
.page-bloom-greenhouse .order-row .btn,
.page-bloom-greenhouse .order-row .gh-btn {
  flex-shrink: 0;
}

/* Forms & buttons */
.gh-form { display: grid; gap: 14px; max-width: 420px; }
.gh-form-inline { max-width: none; }
.gh-form-reset { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.gh-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-soft);
}
.gh-field input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font: inherit;
  background: #fff;
}
.gh-field input:focus {
  outline: 2px solid rgba(104, 159, 56, 0.35);
  border-color: var(--green);
}
.gh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.gh-btn-primary {
  background: var(--red, #D32F2F);
  color: #fff;
  box-shadow: 0 6px 18px rgba(211, 47, 47, 0.25);
}
.gh-btn-primary:hover { transform: translateY(-1px); }
.gh-btn-soft {
  background: rgba(104, 159, 56, 0.12);
  color: var(--green);
  border: 1px solid rgba(104, 159, 56, 0.25);
}
.gh-btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.gh-terrarium-actions .gh-btn-ghost {
  color: #fff;
}
.gh-terrarium-actions .gh-btn-soft {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.gh-terrarium-actions .gh-btn-soft:hover {
  background: rgba(255, 255, 255, 0.28);
}
.gh-btn-sm { padding: 7px 14px; font-size: 0.78rem; }

/* Verify notice */
.page-bloom-greenhouse #profileVerifyNotice:not(:empty) {
  margin-bottom: 18px;
}

/* Guest layout */
.gh-guest {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: stretch;
}
.gh-perks {
  position: relative;
  padding: 28px 26px;
  border-radius: 20px;
  background: linear-gradient(160deg, #fff 0%, #f1f8e9 100%);
  border: 1px solid rgba(104, 159, 56, 0.25);
  box-shadow: 0 12px 36px rgba(104, 159, 56, 0.1);
  overflow: hidden;
}
.gh-perks-pot {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 2.4rem;
  opacity: 0.35;
}
.gh-perks-kicker {
  margin: 0 0 6px;
  font-family: var(--script, 'Marck Script', cursive);
  font-size: 1.2rem;
  color: var(--green);
}
.gh-perks h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink);
}
.gh-perks-lede {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 36ch;
}
.gh-perks-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.gh-perks-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}
.gh-perk-leaf {
  color: var(--red);
  font-size: 0.9rem;
}

/* Trellis gate */
.gh-trellis {
  position: relative;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.gh-trellis-vines {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background:
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(104, 159, 56, 0.5) 38px 40px),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(104, 159, 56, 0.4) 38px 40px);
  pointer-events: none;
}
.gh-trellis-tabs {
  position: relative;
  display: flex;
  gap: 0;
  padding: 0 20px;
  background: linear-gradient(180deg, #e8f5e9 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}
.gh-trellis-tab {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 16px 12px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.gh-trellis-tab.is-active { color: var(--red); }
.gh-trellis-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--red);
  border-radius: 3px 3px 0 0;
  transition: transform 0.25s ease, width 0.25s ease;
}
.gh-trellis-panels { position: relative; }
.gh-trellis-panel {
  display: none;
  padding: 28px 26px 32px;
}
.gh-trellis-panel.is-active { display: block; }
.gh-gate-kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}
.gh-trellis-panel h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink);
}
.gh-gate-lede {
  margin: 0 0 20px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 42ch;
}
.gh-forgot {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
}
.gh-forgot h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

/* Toast override */
.page-bloom-greenhouse .toast.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Responsive */
@media (max-width: 820px) {
  .gh-bench { grid-template-columns: 1fr; }
  .gh-stakes {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .gh-stake {
    flex: 1 1 calc(50% - 4px);
    min-width: 140px;
    border-radius: 12px;
    border-left: 1px solid var(--line);
    padding: 12px 14px;
  }
  .gh-stake-pin { display: none; }
  .gh-stake:hover,
  .gh-stake.is-active { transform: none; }
  .gh-terrarium {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .gh-terrarium-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .gh-guest { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .gh-tray { padding: 22px 18px 26px; }
  .gh-terrarium { padding: 18px; gap: 12px; }
  .gh-terrarium-actions { flex-direction: column; align-items: stretch; }
  .gh-terrarium-actions .gh-btn { width: 100%; }
  .gh-stake { flex: 1 1 100%; }
  .gh-profile-grid,
  .page-bloom-greenhouse .profile-grid { grid-template-columns: 1fr; }
  .page-bloom-greenhouse .order-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
