@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Nunito:wght@600;700;800;900&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --green-dark: #2e6b3f;
  --green-deep: #174b36;
  --green-leaf: #7fbc7a;
  --green-soft: #eaf7e9;
  --pink-helixa: #f06292;
  --pink-soft: #ffe4ee;
  --coral-soft: #ff8a80;
  --yellow-nectar: #ffd45a;
  --yellow-soft: #fff4c7;
  --cream: #fff6e9;
  --sand: #f2e9da;
  --white: #ffffff;
  --text-main: #263238;
  --text-muted: #6b7280;
  --line: #eadfce;
  --line-green: #d3e8d3;
  --danger: #b3261e;
  --danger-soft: #ffe8e6;
  --success: #1f7a46;
  --success-soft: #e7f6ed;
  --radius-sm: 8px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --shadow-soft: 0 10px 30px rgba(46, 107, 63, 0.1);
  --shadow-card: 0 8px 20px rgba(46, 107, 63, 0.08);
  --shadow-button: 0 12px 22px rgba(46, 107, 63, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text-main);
  background:
    linear-gradient(135deg, rgba(255, 246, 233, 0.98) 0%, rgba(242, 255, 232, 0.92) 48%, rgba(255, 246, 233, 0.98) 100%),
    var(--cream);
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(120deg, rgba(127, 188, 122, 0.1), transparent 34%),
    linear-gradient(300deg, rgba(240, 98, 146, 0.08), transparent 38%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 246, 233, 0.94);
  border-bottom: 1px solid rgba(234, 223, 206, 0.9);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 14px 22px;
  gap: 18px;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding-right: 18px;
  color: var(--green-dark);
  font-family: 'Nunito', 'Poppins', sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
}

.brand::after {
  content: '';
  position: absolute;
  right: 2px;
  top: 8px;
  width: 13px;
  height: 8px;
  background: var(--green-leaf);
  border-radius: 100% 0 100% 0;
  transform: rotate(-24deg);
  box-shadow: 0 2px 8px rgba(127, 188, 122, 0.32);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a:not(.button) {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  color: var(--green-deep);
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-links a:not(.button):hover {
  color: var(--green-dark);
  background: rgba(127, 188, 122, 0.18);
  transform: translateY(-1px);
}

.nav-link {
  gap: 0.42rem;
}

.nav-link.active {
  color: var(--cream) !important;
  background: linear-gradient(135deg, var(--green-dark), var(--green-leaf)) !important;
  box-shadow: 0 8px 20px rgba(46, 107, 63, 0.18);
}

.nav-link.active::before {
  content: '';
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  background: var(--yellow-nectar);
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(255, 212, 90, 0.24);
}

.nav-link.active:hover {
  color: var(--cream) !important;
  transform: translateY(-1px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-dark), var(--green-leaf));
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: var(--shadow-button);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.button:hover {
  filter: saturate(1.05) brightness(0.98);
  box-shadow: 0 14px 26px rgba(46, 107, 63, 0.24);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  color: #7b897f;
  background: #e8eee9;
  border-color: #d6dfd8;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.button.ghost {
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(46, 107, 63, 0.24);
  box-shadow: none;
}

.button.ghost:hover {
  background: var(--green-soft);
}

.button.small {
  min-height: 40px;
  padding: 9px 15px;
  font-size: 0.92rem;
}

.button.tiny {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 0.82rem;
}

.button.danger {
  color: #b3261e;
  background: rgba(255, 138, 128, 0.18);
  border: 1px solid rgba(255, 138, 128, 0.35);
  box-shadow: 0 10px 18px rgba(255, 138, 128, 0.12);
}

.button.danger:hover {
  color: #fff;
  background: #ff8a80;
  border-color: #ff8a80;
}

.button.full {
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: 56px;
  min-height: calc(100vh - 70px);
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 70px 22px 42px;
}

.hero-copy {
  position: relative;
}

.hero-copy h1,
.auth-panel h1,
.dashboard-head h1 {
  margin: 0;
  color: var(--green-dark);
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-copy h1 {
  position: relative;
  display: inline-flex;
  padding-right: 28px;
  font-size: clamp(3.1rem, 8vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
}

.hero-copy h1::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10px;
  width: 22px;
  height: 14px;
  background: var(--green-leaf);
  border-radius: 100% 0 100% 0;
  transform: rotate(-24deg);
}

.hero-copy p {
  max-width: 560px;
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-lead {
  color: var(--text-main) !important;
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.45rem, 3vw, 1.9rem) !important;
  font-weight: 900;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--pink-helixa);
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 9px;
  height: 9px;
  background: var(--yellow-nectar);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(255, 212, 90, 0.26);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 430px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(234, 247, 233, 0.64)),
    linear-gradient(180deg, rgba(255, 212, 90, 0.12), rgba(240, 98, 146, 0.08));
  border: 1px solid rgba(234, 223, 206, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.sun-disc {
  display: none;
}

.hero-visual .plant-illustration {
  transform: scale(1.06);
}

.info-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(100%, 1180px);
  margin: 0 auto 64px;
  padding: 0 22px;
}

.info-band > div {
  min-height: 170px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(234, 223, 206, 0.86);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.info-band h2,
.plant-content h2,
.table-panel h2,
.reward-card h2 {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-family: 'Nunito', sans-serif;
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: 0;
}

.info-band p,
.reward-card p,
.plant-content p {
  margin: 0;
  color: var(--text-muted);
}

.auth-layout,
.app-layout {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 46px 22px 72px;
}

.auth-layout {
  display: grid;
  min-height: calc(100vh - 70px);
  place-items: start center;
}

.auth-panel {
  width: min(100%, 540px);
  padding: 32px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(234, 223, 206, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.auth-panel.narrow {
  margin: 0;
}

.auth-panel h1 {
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 5vw, 3rem);
}

.auth-copy {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.form-card {
  display: grid;
  gap: 16px;
}

.form-note {
  margin: 0;
  color: var(--green-dark);
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.auth-footnote {
  margin: 18px 0 0;
  color: var(--pink-helixa);
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.02em;
}

.form-card.compact {
  gap: 13px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--green-deep);
  font-family: 'Poppins', sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  color: var(--text-main);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input:focus,
textarea:focus,
select:focus {
  background: #fffefb;
  border-color: var(--green-leaf);
  box-shadow: 0 0 0 4px rgba(127, 188, 122, 0.2);
}

.field-hint {
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
}

.alert {
  margin: 0 0 20px;
  padding: 14px 16px;
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid rgba(31, 122, 70, 0.2);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px rgba(46, 107, 63, 0.06);
  transition: opacity 250ms ease;
}

.alert p {
  margin: 0;
}

.alert.error {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: rgba(179, 38, 30, 0.22);
}

.alert.success {
  color: var(--success);
}

.alert.is-soft {
  opacity: 0.84;
}

.dashboard-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.dashboard-head h1 {
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  line-height: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.stat-card,
.reward-card,
.table-panel,
.plant-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(234, 223, 206, 0.88);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.stat-card {
  position: relative;
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 20px;
  row-gap: 8px;
  min-height: 160px;
  padding: 24px 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at 94% 12%, rgba(255, 212, 90, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 233, 0.78));
}

.stat-card::before {
  content: '';
  width: 42px;
  height: 42px;
  margin-bottom: 4px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(255, 212, 90, 0.95), rgba(240, 98, 146, 0.72));
  box-shadow: 0 10px 20px rgba(255, 212, 90, 0.22);
}

.stat-card:nth-child(2)::before {
  background: linear-gradient(135deg, var(--green-leaf), var(--green-dark));
}

.stat-card:nth-child(3)::before {
  background: linear-gradient(135deg, var(--pink-helixa), var(--coral-soft));
}

.stat-card span {
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
}

.stat-card strong {
  color: var(--green-deep);
  font-family: 'Nunito', sans-serif;
  font-size: clamp(2.8rem, 5vw, 3.9rem);
  font-weight: 900;
  line-height: 0.92;
}

.plant-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: 28px;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(234, 247, 233, 0.76)),
    var(--white);
}

.plant-content h2 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.progress-track {
  width: 100%;
  height: 16px;
  margin: 22px 0 14px;
  overflow: hidden;
  background: rgba(127, 188, 122, 0.2);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(46, 107, 63, 0.08);
}

.progress-fill {
  position: relative;
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--green-dark), var(--green-leaf) 72%, var(--yellow-nectar));
  border-radius: inherit;
  transition: width 700ms ease;
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 14px;
  height: 100%;
  background: var(--pink-helixa);
  opacity: 0.82;
}

.plant-stage {
  display: grid;
  min-height: 330px;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(255, 246, 233, 0.74), rgba(234, 247, 233, 0.86));
  border: 1px dashed rgba(127, 188, 122, 0.62);
  border-radius: var(--radius-lg);
}

.plant-stage img {
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(46, 107, 63, 0.12));
}

.impact-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: 18px;
  padding: 24px;
  background:
    radial-gradient(circle at 96% 18%, rgba(255, 212, 90, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 246, 233, 0.82));
  border: 1px solid rgba(234, 223, 206, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.impact-icon {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  color: var(--green-deep);
  background: linear-gradient(135deg, var(--yellow-nectar), var(--green-leaf));
  border-radius: 24px;
  box-shadow: 0 16px 28px rgba(46, 107, 63, 0.14);
  font-family: 'Nunito', sans-serif;
  font-size: 2rem;
  font-weight: 900;
}

.impact-card h2,
.achievement-summary h2 {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 900;
  line-height: 1;
}

.impact-card p,
.achievement-summary p,
.achievement-card p {
  margin: 0;
  color: var(--text-muted);
}

.impact-extra {
  margin-top: 10px !important;
  padding: 10px 12px;
  color: var(--green-deep) !important;
  background: rgba(234, 247, 233, 0.76);
  border: 1px solid rgba(127, 188, 122, 0.32);
  border-radius: var(--radius-md);
  font-weight: 700;
}

.plant-illustration {
  position: relative;
  width: 260px;
  height: 320px;
  isolation: isolate;
}

.plant-illustration span {
  position: absolute;
  display: block;
  transition: opacity 250ms ease, transform 250ms ease, height 250ms ease;
}

.stem {
  left: 121px;
  bottom: 32px;
  width: 16px;
  height: 168px;
  background: linear-gradient(180deg, #4ba665, var(--green-dark));
  border-radius: 999px;
}

.leaf {
  bottom: 52px;
  width: 105px;
  height: 48px;
  background: linear-gradient(120deg, var(--green-leaf), var(--green-dark));
  border-radius: 100% 0 100% 0;
  transform-origin: 100% 50%;
}

.leaf-left {
  left: 28px;
  transform: rotate(-28deg);
}

.leaf-right {
  right: 28px;
  transform: scaleX(-1) rotate(-28deg);
}

.bract {
  left: 126px;
  width: 92px;
  height: 36px;
  background: linear-gradient(90deg, var(--pink-helixa), #ffd0df 58%, var(--yellow-nectar));
  border-radius: 90% 10% 90% 10%;
  transform-origin: 0 50%;
  box-shadow: 0 8px 16px rgba(240, 98, 146, 0.22);
}

.bract-1 {
  top: 74px;
  transform: rotate(-42deg);
}

.bract-2 {
  top: 108px;
  transform: rotate(-24deg);
}

.bract-3 {
  top: 142px;
  transform: rotate(-8deg);
}

.bract-4 {
  top: 176px;
  transform: rotate(12deg);
}

.stage-0 .stem {
  height: 74px;
}

.stage-0 .leaf-right,
.stage-0 .bract,
.stage-1 .bract-2,
.stage-1 .bract-3,
.stage-1 .bract-4,
.stage-2 .bract-3,
.stage-2 .bract-4,
.stage-3 .bract-4 {
  opacity: 0;
}

.stage-0 .leaf-left {
  transform: rotate(-18deg) scale(0.58);
}

.stage-1 .stem {
  height: 92px;
}

.stage-2 .stem {
  height: 116px;
}

.stage-3 .stem {
  height: 136px;
}

.stage-4 .bract,
.stage-5 .bract,
.stage-6 .bract,
.stage-7 .bract,
.stage-8 .bract {
  opacity: 1;
}

.stage-4 .bract-4 {
  opacity: 0.35;
}

.stage-5 .plant-illustration,
.stage-6 .plant-illustration,
.stage-7 .plant-illustration,
.stage-8 .plant-illustration {
  transform: scale(1);
}

.reward-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.reward-card {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 20px;
  min-height: 270px;
  padding: 22px;
  overflow: hidden;
}

.reward-card::before {
  content: '';
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, var(--yellow-nectar), var(--coral-soft));
  box-shadow: 0 12px 22px rgba(255, 212, 90, 0.24);
}

.reward-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--green-deep);
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
}

.reward-meta span:first-child,
.wallet-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  color: var(--green-deep);
  background: var(--yellow-soft);
  border: 1px solid rgba(255, 212, 90, 0.75);
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
}

.wallet-pill {
  min-height: 42px;
  padding: 9px 16px;
}

.reward-card .button:not(:disabled) {
  color: var(--green-deep);
  background: linear-gradient(135deg, var(--yellow-nectar), #ffe796);
  box-shadow: 0 12px 20px rgba(255, 212, 90, 0.24);
}

.history-grid,
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.admin-grid {
  align-items: start;
}

.table-panel {
  padding: 22px;
  overflow: hidden;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  min-width: 420px;
  border-collapse: separate;
  border-spacing: 0;
}

th,
td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(234, 223, 206, 0.9);
}

th {
  color: var(--green-deep);
  background: rgba(234, 247, 233, 0.78);
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

th:first-child {
  border-top-left-radius: var(--radius-md);
}

th:last-child {
  border-top-right-radius: var(--radius-md);
}

td {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.58);
}

tr:last-child td {
  border-bottom: 0;
}

.achievement-summary {
  margin-bottom: 18px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(234, 247, 233, 0.72));
  border: 1px solid rgba(234, 223, 206, 0.86);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.achievement-card {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 16px;
  min-height: 172px;
  padding: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(234, 223, 206, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.achievement-card::after {
  content: '';
  position: absolute;
  right: -34px;
  bottom: -38px;
  width: 112px;
  height: 112px;
  background: rgba(255, 212, 90, 0.16);
  border-radius: 50%;
}

.achievement-card.is-unlocked {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(234, 247, 233, 0.78));
  border-color: rgba(127, 188, 122, 0.44);
}

.achievement-card.is-locked {
  opacity: 0.64;
  filter: grayscale(0.24);
}

.achievement-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  background: linear-gradient(135deg, var(--yellow-nectar), var(--pink-helixa));
  border-radius: 20px;
  box-shadow: 0 14px 24px rgba(46, 107, 63, 0.1);
  font-size: 1.65rem;
}

.achievement-card.is-locked .achievement-icon {
  background: linear-gradient(135deg, #e6eadf, #d7dfd7);
}

.achievement-icon img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  border-radius: inherit;
  object-fit: cover !important;
}

.achievement-icon-admin {
  width: 70px;
  height: 70px;
  font-size: 1.85rem;
}

.achievement-card > div:last-child {
  position: relative;
  z-index: 1;
}

.achievement-card h2 {
  margin: 8px 0;
  color: var(--green-dark);
  font-family: 'Nunito', sans-serif;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.1;
}

.achievement-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: var(--green-deep);
  background: var(--yellow-soft);
  border: 1px solid rgba(255, 212, 90, 0.74);
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.achievement-card.is-locked .achievement-status {
  color: var(--text-muted);
  background: #eef1ec;
  border-color: #d8ded8;
}

pre {
  max-width: 100%;
  overflow-x: auto;
  color: var(--green-deep);
  white-space: pre-wrap;
}

/* HELIXA visual upgrade */
.brand {
  gap: 10px;
  padding-right: 0;
}

.brand::after {
  right: -13px;
  top: 6px;
}

.brand-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(46, 107, 63, 0.14));
}

.hero {
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 46px;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(127, 188, 122, 0.32);
  border-radius: 50%;
  opacity: 0.75;
}

.hero-copy {
  padding: 32px 0;
}

.hero-copy::before {
  content: 'Sistema inteligente de reciclaje';
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 16px;
  padding: 7px 13px;
  color: var(--green-deep);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(127, 188, 122, 0.38);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(46, 107, 63, 0.08);
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-visual {
  min-height: 520px;
  overflow: visible;
}

.hero-visual::before,
.hero-visual::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-visual::before {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(255, 212, 90, 0.5), rgba(240, 98, 146, 0.26) 62%, transparent 64%);
}

.hero-visual::after {
  right: 26px;
  bottom: 28px;
  width: 130px;
  height: 130px;
  background: rgba(127, 188, 122, 0.18);
}

.hero-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 246, 233, 0.9), rgba(255, 228, 238, 0.58) 54%, transparent 72%);
  border-radius: 50%;
  filter: blur(2px);
}

.hero-mascot {
  position: relative;
  z-index: 2;
  width: min(74vw, 360px);
  max-height: 390px;
  object-fit: contain;
  filter: drop-shadow(0 24px 24px rgba(46, 107, 63, 0.18));
  transform: translateY(-4px);
}

.floating-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 14px;
  color: var(--green-deep);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(234, 223, 206, 0.9);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(46, 107, 63, 0.14);
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
}

.chip-points {
  top: 76px;
  right: -8px;
}

.chip-recycle {
  left: -12px;
  bottom: 92px;
}

.chip-icon {
  display: inline-grid;
  place-items: center;
  color: var(--green-deep);
  background: linear-gradient(135deg, var(--yellow-nectar), rgba(240, 98, 146, 0.7));
}

.chip-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
}

.chip-icon svg {
  width: 60%;
  height: 60%;
  fill: currentColor;
}

.info-band > div {
  position: relative;
  overflow: hidden;
}

.info-band > div::after {
  content: '';
  position: absolute;
  right: -26px;
  bottom: -32px;
  width: 98px;
  height: 98px;
  background: linear-gradient(135deg, rgba(127, 188, 122, 0.22), rgba(255, 212, 90, 0.22));
  border-radius: 50%;
}

.dashboard-head {
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(234, 247, 233, 0.72));
  border: 1px solid rgba(234, 223, 206, 0.82);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.stat-card::before {
  content: none;
}

.metric-image,
.reward-image,
.section-image,
.daily-message-icon {
  display: block;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 14px 24px rgba(46, 107, 63, 0.12);
}

.metric-image {
  display: grid;
  place-items: center;
  grid-row: 1 / span 2;
  width: 92px;
  height: 92px;
  border-radius: 27px;
  background-size: 82%, cover;
  box-shadow:
    0 20px 36px rgba(46, 107, 63, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.metric-image.has-uploaded-icon {
  background-size: cover !important;
}

.metric-points {
  background-image:
    url('assets/img/icon-puntos.png'),
    linear-gradient(135deg, var(--yellow-nectar), var(--pink-helixa));
}

.metric-bottles {
  background-image:
    url('assets/img/icon-botellas.png'),
    linear-gradient(135deg, var(--green-leaf), var(--green-dark));
}

.metric-cycles {
  background-image:
    url('assets/img/icon-ciclos.png'),
    linear-gradient(135deg, var(--pink-helixa), var(--coral-soft));
}

.metric-points.has-uploaded-icon {
  background-image: linear-gradient(135deg, var(--yellow-nectar), var(--pink-helixa));
}

.metric-bottles.has-uploaded-icon {
  background-image: linear-gradient(135deg, var(--green-leaf), var(--green-dark));
}

.metric-cycles.has-uploaded-icon {
  background-image: linear-gradient(135deg, var(--pink-helixa), var(--coral-soft));
}

.stat-card {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.stat-card > span:not(.metric-image) {
  align-self: end;
}

.stat-card > strong {
  align-self: start;
}

.stat-card:hover,
.reward-card:hover,
.table-panel:hover {
  box-shadow: 0 16px 34px rgba(46, 107, 63, 0.12);
  transform: translateY(-2px);
}

.plant-content h3 {
  margin: 0 0 8px;
  color: var(--green-deep);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.plant-note {
  max-width: 560px;
  padding: 12px 14px;
  background: rgba(255, 244, 199, 0.72);
  border: 1px solid rgba(255, 212, 90, 0.5);
  border-radius: var(--radius-md);
}

.plant-stage {
  position: relative;
  overflow: hidden;
}

.plant-stage::before {
  content: '';
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(240, 98, 146, 0.16);
  border-radius: var(--radius-lg);
}

.reward-card::before {
  content: none;
}

.reward-image {
  width: 100%;
  height: 150px;
  border-radius: 22px;
  background-image:
    url('assets/img/icon-recompensa.png'),
    linear-gradient(135deg, rgba(255, 212, 90, 0.88), rgba(240, 98, 146, 0.72));
  background-size: 96px, cover;
  border: 1px solid rgba(255, 212, 90, 0.42);
}

.reward-photo {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border: 1px solid rgba(234, 223, 206, 0.9);
  border-radius: 22px;
  background: var(--cream);
  box-shadow: 0 14px 26px rgba(46, 107, 63, 0.1);
}

.reward-photo-placeholder {
  padding: 24px;
  object-fit: contain;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 212, 90, 0.25), transparent 30%),
    linear-gradient(135deg, rgba(255, 246, 233, 0.98), rgba(234, 247, 233, 0.92));
  box-sizing: border-box;
}

.reward-card {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.reward-card h2 {
  min-height: 2.5em;
}

.section-image {
  width: 76px;
  height: 76px;
  margin-right: 10px;
  border-radius: 24px;
  background-size: 76%, cover;
  box-shadow: 0 18px 34px rgba(46, 107, 63, 0.16);
}

.section-recycle {
  background-image:
    url('assets/img/icon-reciclaje.png'),
    linear-gradient(135deg, var(--green-leaf), var(--green-dark));
}

.section-reward {
  background-image:
    url('assets/img/icon-canje.png'),
    linear-gradient(135deg, var(--yellow-nectar), var(--pink-helixa));
}

.table-panel h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 74px;
  margin-bottom: 18px;
  font-size: 1.55rem;
}

.panel-title-with-icon {
  gap: 18px !important;
  min-height: 112px !important;
  padding: 16px;
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 212, 90, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(234, 247, 233, 0.96), rgba(255, 246, 233, 0.9));
  border: 1px solid rgba(234, 223, 206, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 26px rgba(46, 107, 63, 0.08);
}

.panel-title-with-icon .section-image {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  margin-right: 0;
  border-radius: 28px;
  background-size: 82%, cover;
  box-shadow:
    0 18px 34px rgba(46, 107, 63, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.auth-panel {
  position: relative;
  overflow: hidden;
}

.auth-panel::after {
  content: '';
  position: absolute;
  right: -44px;
  top: -44px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 212, 90, 0.35), rgba(240, 98, 146, 0.16), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.daily-message {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(46, 107, 63, 0.95), rgba(127, 188, 122, 0.9)),
    var(--green-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  color: var(--white);
}

.daily-message-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background-image:
    url('assets/img/icon-mensaje.png'),
    linear-gradient(135deg, var(--yellow-nectar), var(--pink-helixa));
  background-size: 68%, cover;
}

.daily-message-icon.has-uploaded-icon {
  background-image: linear-gradient(135deg, var(--yellow-nectar), var(--pink-helixa));
}

.daily-message span {
  display: inline-flex;
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.78);
  font-family: 'Poppins', sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.daily-message h2 {
  margin: 0 0 4px;
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
}

.daily-message p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.brand-story {
  width: min(100%, 1180px);
  margin: 0 auto 76px;
  padding: 0 22px;
}

.story-intro {
  display: grid;
  max-width: 760px;
  margin-bottom: 20px;
}

.story-intro h2 {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-family: 'Nunito', sans-serif;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
}

.story-intro p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.04rem;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.story-card {
  position: relative;
  min-height: 270px;
  padding: 24px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 246, 233, 0.76));
  border: 1px solid rgba(234, 223, 206, 0.92);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.story-card::after {
  content: '';
  position: absolute;
  right: -36px;
  bottom: -36px;
  width: 128px;
  height: 128px;
  background: rgba(127, 188, 122, 0.16);
  border-radius: 50%;
}

.story-icon {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 18px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 62%, cover;
  box-shadow: 0 14px 24px rgba(46, 107, 63, 0.1);
}

.story-mission {
  background-image:
    url('assets/img/icon-quienes.png'),
    linear-gradient(135deg, var(--green-leaf), var(--green-dark));
}

.story-action {
  background-image:
    url('assets/img/icon-hacemos.png'),
    linear-gradient(135deg, var(--yellow-nectar), var(--coral-soft));
}

.story-future {
  background-image:
    url('assets/img/icon-queremos.png'),
    linear-gradient(135deg, var(--pink-helixa), var(--coral-soft));
}

.story-kicker {
  margin: 0 0 7px;
  color: var(--pink-helixa);
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.story-card h3 {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-family: 'Nunito', sans-serif;
  font-size: 1.34rem;
  font-weight: 900;
}

.story-card p:last-child {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--text-muted);
}

input[type='file'] {
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 1020px) {
  .reward-grid,
  .achievement-grid,
  .admin-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero,
  .plant-panel,
  .history-grid,
  .admin-grid,
  .admin-section-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 360px;
  }

  .info-band,
  .stats-grid,
  .story-grid,
  .achievement-grid {
    grid-template-columns: 1fr;
  }

  .plant-stage {
    min-height: 290px;
  }
}

@media (max-width: 680px) {
  .nav,
  .dashboard-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    padding: 13px 16px;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 4px;
  }

  .nav-links a:not(.button) {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 0.88rem;
  }

  .hero,
  .auth-layout,
  .app-layout,
  .brand-story {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding-top: 42px;
    gap: 30px;
  }

  .hero-visual {
    min-height: 320px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    flex: 1 1 190px;
  }

  .reward-grid {
    grid-template-columns: 1fr;
  }

  .auth-panel,
  .plant-panel,
  .table-panel,
  .info-band > div,
  .reward-card {
    padding: 20px;
  }

  .plant-illustration {
    width: 220px;
    height: 280px;
  }

  .stem {
    left: 102px;
  }

  .bract {
    left: 107px;
  }

  .wallet-pill {
    align-self: flex-start;
  }

  .daily-message {
    grid-template-columns: 1fr;
  }

  .impact-card {
    grid-template-columns: 1fr;
  }

  .daily-message-icon {
    width: 64px;
    height: 64px;
  }

  .stat-card {
    grid-template-columns: 78px minmax(0, 1fr);
    min-height: 136px;
    padding: 20px;
  }

  .metric-image {
    width: 74px;
    height: 74px;
    border-radius: 22px;
  }

  .panel-title-with-icon {
    min-height: 92px !important;
    padding: 12px;
  }

  .panel-title-with-icon .section-image {
    flex-basis: 68px;
    width: 68px;
    height: 68px;
    border-radius: 22px;
  }
}

/* Safety overrides: uploaded PNGs must never explode the layout. */
.brand img.brand-icon,
img.brand-icon {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  object-fit: contain !important;
}

.hero-visual {
  overflow: hidden !important;
}

.hero-visual img.hero-mascot,
img.hero-mascot {
  width: clamp(220px, 34vw, 360px) !important;
  height: auto !important;
  max-width: 78% !important;
  max-height: 390px !important;
  object-fit: contain !important;
}

.metric-image,
.reward-image,
.section-image,
.daily-message-icon {
  overflow: hidden !important;
  background-size: 68%, cover !important;
  background-position: center, center !important;
  background-repeat: no-repeat, no-repeat !important;
}

.panel-title-with-icon .section-image {
  background-size: 82%, cover !important;
}

.stat-card .metric-image:not(.has-uploaded-icon) {
  background-size: 82%, cover !important;
}

.stat-card .metric-image.has-uploaded-icon,
.daily-message-icon.has-uploaded-icon {
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

.reward-card img.reward-photo.reward-photo-placeholder {
  width: 100% !important;
  height: 150px !important;
  max-width: 100% !important;
  max-height: 150px !important;
  object-fit: contain !important;
  padding: 24px !important;
}

.stat-card img,
.reward-card img,
.table-panel img,
.daily-message img {
  max-width: 72px !important;
  max-height: 72px !important;
  object-fit: contain !important;
}

.reward-card img.reward-photo {
  width: 100% !important;
  height: 150px !important;
  max-width: 100% !important;
  max-height: 150px !important;
  object-fit: cover !important;
}

.metric-image.has-uploaded-icon img,
.daily-message-icon.has-uploaded-icon img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  border-radius: inherit !important;
  object-fit: cover !important;
  filter: drop-shadow(0 8px 10px rgba(46, 107, 63, 0.16));
}

.metric-image:not(.has-uploaded-icon) img,
.daily-message-icon:not(.has-uploaded-icon) img {
  width: 72% !important;
  height: 72% !important;
  max-width: 72% !important;
  max-height: 72% !important;
  object-fit: contain !important;
  filter: drop-shadow(0 8px 10px rgba(46, 107, 63, 0.16));
}

.reward-admin-list {
  display: grid;
  gap: 12px;
}

.reward-admin-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 246, 233, 0.7);
  border: 1px solid rgba(234, 223, 206, 0.9);
  border-radius: var(--radius-md);
}

.reward-admin-preview {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--yellow-nectar), var(--pink-helixa));
  border-radius: 18px;
}

.reward-admin-preview img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
}

.reward-admin-preview img.reward-admin-fallback {
  width: 74% !important;
  height: 74% !important;
  object-fit: contain !important;
}

.reward-admin-item strong,
.reward-admin-item span {
  display: block;
}

.reward-admin-item strong {
  color: var(--green-dark);
  font-family: 'Nunito', sans-serif;
  font-size: 1.02rem;
  font-weight: 900;
}

.reward-admin-item span {
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.admin-row-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

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

.admin-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 1px solid rgba(127, 188, 122, 0.36);
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
}

.page-subtitle {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
}

.admin-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.admin-shortcut-card,
.admin-edit-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 96% 10%, rgba(255, 212, 90, 0.18), transparent 26%),
    rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(234, 223, 206, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.admin-shortcut-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 260px;
  padding: 22px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.admin-shortcut-card:hover,
.admin-edit-card:hover {
  box-shadow: 0 16px 34px rgba(46, 107, 63, 0.12);
  transform: translateY(-2px);
}

.admin-shortcut-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: var(--green-deep);
  background: linear-gradient(135deg, var(--yellow-nectar), var(--pink-helixa));
  border-radius: 22px;
  box-shadow: 0 14px 24px rgba(46, 107, 63, 0.12);
  font-family: 'Nunito', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
}

.admin-shortcut-card:nth-child(2) .admin-shortcut-icon {
  background: linear-gradient(135deg, var(--green-leaf), var(--green-dark));
  color: var(--white);
}

.admin-shortcut-card:nth-child(3) .admin-shortcut-icon {
  background: linear-gradient(135deg, var(--yellow-nectar), #ffe796);
}

.admin-shortcut-card:nth-child(4) .admin-shortcut-icon {
  background: linear-gradient(135deg, var(--pink-helixa), var(--coral-soft));
  color: var(--white);
}

.admin-shortcut-card h2,
.admin-edit-card h2 {
  margin: 0;
  color: var(--green-dark);
  font-family: 'Nunito', sans-serif;
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1.1;
}

.admin-shortcut-card p,
.admin-help {
  margin: 0;
  color: var(--text-muted);
}

.admin-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-edit-list {
  display: grid;
  gap: 14px;
}

.admin-edit-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) minmax(130px, auto);
  gap: 16px;
  align-items: start;
  padding: 16px;
}

.admin-edit-form {
  display: grid;
  gap: 12px;
}

.admin-card-actions {
  display: grid;
  justify-items: end;
  gap: 9px;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-status.is-active {
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid rgba(31, 122, 70, 0.2);
}

.admin-status.is-inactive {
  color: var(--text-muted);
  background: #eef1ec;
  border: 1px solid #d8ded8;
}

@media (max-width: 680px) {
  .reward-admin-item {
    grid-template-columns: 1fr;
  }

  .admin-row-actions {
    justify-content: flex-start;
  }

  .admin-shortcuts,
  .admin-section-grid,
  .admin-form-grid,
  .admin-edit-card {
    grid-template-columns: 1fr;
  }

  .admin-card-actions {
    justify-items: start;
  }
}

@media (max-width: 1020px) {
  .admin-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .admin-section-grid,
  .admin-edit-card {
    grid-template-columns: 1fr;
  }

  .admin-card-actions {
    justify-items: start;
  }
}

@media (max-width: 680px) {
  .admin-shortcuts,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.profile-card,
.ranking-user-summary,
.ranking-top-card,
.profile-data-card,
.ranking-row {
  border: 1px solid rgba(234, 223, 206, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.profile-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 94% 14%, rgba(255, 212, 90, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(234, 247, 233, 0.78));
}

.profile-card h2,
.ranking-user-summary h2,
.ranking-top-card h2,
.profile-data-card strong,
.ranking-row h3 {
  margin: 0;
  color: var(--green-dark);
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  line-height: 1.05;
}

.profile-card p:last-child,
.ranking-user-summary p,
.ranking-top-card p,
.ranking-row p {
  margin: 8px 0 0;
  color: var(--text-muted);
}

.profile-photo {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  overflow: hidden;
  color: var(--green-deep);
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 212, 90, 0.52), transparent 26%),
    linear-gradient(135deg, var(--green-leaf), var(--yellow-nectar), var(--pink-helixa));
  border: 4px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  box-shadow: 0 16px 28px rgba(46, 107, 63, 0.16);
  font-family: 'Nunito', sans-serif;
  font-size: 1.65rem;
  font-weight: 900;
}

.profile-photo img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
}

.profile-photo-large {
  width: 118px;
  height: 118px;
  font-size: 2rem;
}

.profile-photo-small {
  width: 54px;
  height: 54px;
  border-width: 3px;
  font-size: 1rem;
}

.profile-data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.profile-data-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.profile-data-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
}

.profile-data-card strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(1.22rem, 2vw, 1.55rem);
}

.ranking-user-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(46, 107, 63, 0.95), rgba(127, 188, 122, 0.92));
  color: var(--white);
}

.ranking-user-summary .eyebrow,
.ranking-user-summary h2,
.ranking-user-summary p {
  color: var(--white);
}

.ranking-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.ranking-top-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 270px;
  padding: 24px 18px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 212, 90, 0.38), transparent 34%),
    rgba(255, 255, 255, 0.94);
}

.ranking-top-card::after {
  content: '';
  position: absolute;
  right: -46px;
  bottom: -48px;
  width: 140px;
  height: 140px;
  background: rgba(127, 188, 122, 0.18);
  border-radius: 50%;
}

.ranking-top-1 {
  border-color: rgba(255, 212, 90, 0.95);
  transform: translateY(-8px);
}

.ranking-top-2 {
  border-color: rgba(127, 188, 122, 0.62);
}

.ranking-top-3 {
  border-color: rgba(240, 98, 146, 0.48);
}

.ranking-position {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px;
  color: var(--green-deep);
  background: var(--yellow-soft);
  border: 1px solid rgba(255, 212, 90, 0.85);
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
}

.ranking-list {
  display: grid;
  gap: 10px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 54px 54px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 246, 233, 0.72));
}

.ranking-row > strong {
  color: var(--green-dark);
  font-family: 'Nunito', sans-serif;
  font-size: 1.18rem;
  font-weight: 900;
}

@media (max-width: 900px) {
  .profile-grid,
  .profile-data-grid,
  .ranking-podium {
    grid-template-columns: 1fr;
  }

  .ranking-top-1 {
    transform: none;
  }
}

@media (max-width: 680px) {
  .profile-card,
  .ranking-user-summary,
  .ranking-row {
    grid-template-columns: 1fr;
  }

  .profile-card,
  .ranking-user-summary {
    align-items: flex-start;
  }

  .ranking-user-summary {
    display: grid;
  }

  .ranking-row {
    justify-items: start;
  }
}

.helixa-chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9998;
  font-family: 'Inter', sans-serif;
}

.chat-floating-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 13px 18px;
  color: var(--cream);
  background: linear-gradient(135deg, var(--green-dark), var(--green-leaf));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(46, 107, 63, 0.28);
  font-family: 'Poppins', sans-serif;
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
}

.chat-floating-dot {
  width: 10px;
  height: 10px;
  background: var(--yellow-nectar);
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(255, 212, 90, 0.24);
}

.chat-window {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 9999;
  display: none;
  flex-direction: column;
  width: min(360px, calc(100vw - 32px));
  height: 480px;
  max-height: min(560px, calc(100vh - 120px));
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(234, 223, 206, 0.95);
  border-radius: 24px;
  box-shadow: 0 24px 55px rgba(46, 107, 63, 0.2);
}

.chat-window.is-open,
.helixa-chat.is-open .chat-window {
  display: flex;
}

.chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  color: var(--cream);
  background: linear-gradient(135deg, var(--green-dark), #5ca967);
}

.chat-header strong,
.chat-header span {
  display: block;
}

.chat-header strong {
  margin-bottom: 3px;
  font-family: 'Nunito', sans-serif;
  font-size: 1.12rem;
  font-weight: 900;
}

.chat-header span {
  color: rgba(255, 246, 233, 0.82);
  font-size: 0.82rem;
}

.chat-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.chat-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 220px;
  max-height: 360px;
  padding: 16px;
  overflow-y: auto;
  background: linear-gradient(135deg, rgba(255, 246, 233, 0.68), rgba(242, 255, 232, 0.78));
}

.chat-empty {
  margin: auto;
  padding: 18px;
  color: var(--text-muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px dashed rgba(127, 188, 122, 0.38);
  border-radius: 18px;
}

.chat-message {
  max-width: 82%;
  padding: 11px 13px;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(46, 107, 63, 0.08);
}

.chat-message p {
  margin: 0;
  color: var(--text-main);
  line-height: 1.45;
}

.chat-message small {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.chat-message.user {
  align-self: flex-end;
  color: var(--cream);
  background: linear-gradient(135deg, var(--green-dark), var(--green-leaf));
  border-bottom-right-radius: 6px;
}

.chat-message.user p,
.chat-message.user small {
  color: var(--cream);
}

.chat-message.admin {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid rgba(242, 233, 218, 0.96);
  border-bottom-left-radius: 6px;
}

.chat-input-area {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 14px;
  background: var(--white);
  border-top: 1px solid rgba(242, 233, 218, 0.9);
}

.chat-input-area input {
  flex: 1 1 170px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(46, 107, 63, 0.18);
  border-radius: 999px;
}

.chat-input-area button {
  min-height: 42px;
  padding: 9px 15px;
  color: var(--green-deep);
  background: linear-gradient(135deg, var(--yellow-nectar), #ffe796);
  border: 0;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  cursor: pointer;
}

.chat-input-area button:disabled,
.chat-input-area input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.chat-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.chat-attachment-button {
  border: 1px solid rgba(46, 107, 63, 0.18);
  background: var(--cream);
  color: var(--green-dark);
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
}

.chat-file-name {
  flex: 1 0 100%;
  min-height: 1rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.chat-image {
  display: block;
  max-width: 180px;
  max-height: 180px;
  margin-top: 0.5rem;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(46, 107, 63, 0.14);
}

.chat-load-more {
  display: block;
  align-self: center;
  margin: 0 auto 0.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(127, 188, 122, 0.16);
  color: var(--green-dark);
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}

.admin-chat-list {
  display: grid;
  gap: 16px;
}

.admin-chat-card,
.admin-chat-thread {
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(234, 223, 206, 0.92);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.admin-chat-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.admin-chat-card.is-closed {
  opacity: 0.72;
}

.admin-chat-card-head,
.admin-chat-thread-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.admin-chat-card h2,
.admin-chat-thread h2 {
  margin: 0;
  color: var(--green-dark);
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
}

.admin-chat-card p,
.admin-chat-card small {
  color: var(--text-muted);
}

.chat-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  color: var(--green-deep);
  background: var(--yellow-soft);
  border: 1px solid rgba(255, 212, 90, 0.78);
  border-radius: 999px;
  font-weight: 800;
}

.chat-status-badge.muted {
  color: var(--text-muted);
  background: rgba(242, 233, 218, 0.72);
  border-color: rgba(234, 223, 206, 0.95);
}

.admin-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 520px;
  margin: 18px 0;
  padding: 18px;
  overflow-y: auto;
  background: linear-gradient(135deg, rgba(255, 246, 233, 0.7), rgba(242, 255, 232, 0.7));
  border-radius: 20px;
}

.admin-chat-messages .chat-message.usuario {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid rgba(242, 233, 218, 0.96);
  border-bottom-left-radius: 6px;
}

.admin-chat-messages .chat-message.admin {
  align-self: flex-end;
  color: var(--cream);
  background: linear-gradient(135deg, var(--green-dark), var(--green-leaf));
  border-bottom-right-radius: 6px;
}

.admin-chat-messages .chat-message.admin p,
.admin-chat-messages .chat-message.admin small {
  color: var(--cream);
}

.admin-chat-reply {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-chat-reply label {
  color: var(--green-deep);
  font-weight: 800;
}

.admin-chat-reply textarea {
  resize: vertical;
  min-height: 120px;
}

.chat-admin-attach-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.password-meter {
  display: grid;
  gap: 8px;
  margin-top: -4px;
}

.password-meter-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  background: rgba(242, 233, 218, 0.95);
  border-radius: 999px;
}

.password-meter-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--coral-soft);
  transition: width 0.2s ease, background 0.2s ease;
}

.password-meter-fill[data-level="medium"] {
  background: var(--yellow-nectar);
}

.password-meter-fill[data-level="strong"] {
  background: var(--green-leaf);
}

.password-meter strong {
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
}

.password-visuals {
  display: flex;
  align-items: center;
  min-height: 76px;
}

.password-visual {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 246, 233, 0.72);
}

.verify-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(255, 246, 233, 0.96), rgba(242, 255, 232, 0.96));
  border: 1px solid rgba(255, 212, 90, 0.62);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.verify-notice h2 {
  margin: 0 0 6px;
  color: var(--green-dark);
}

.verify-notice p {
  margin: 0;
  color: var(--text-muted);
}

.verify-notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.verify-panel .page-subtitle {
  margin-bottom: 18px;
}

.verify-form .code-input {
  text-align: center;
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.verify-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.status-badge.success {
  color: var(--green-dark);
  background: rgba(127, 188, 122, 0.18);
}

.status-badge.warning {
  color: #8a5a00;
  background: rgba(255, 212, 90, 0.24);
}

.status-badge.danger {
  color: #b3261e;
  background: rgba(255, 138, 128, 0.18);
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrap input {
  width: 100%;
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: rgba(127, 188, 122, 0.16);
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.password-toggle:hover {
  background: rgba(127, 188, 122, 0.26);
}

.password-toggle:active {
  transform: translateY(-50%) scale(0.96);
}

.password-toggle.is-visible {
  color: var(--pink-helixa);
  background: rgba(240, 98, 146, 0.14);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle .icon-eye-open {
  display: none;
}

.password-toggle .icon-eye-closed {
  display: block;
}

.password-toggle.is-visible .icon-eye-open {
  display: block;
}

.password-toggle.is-visible .icon-eye-closed {
  display: none;
}

.profile-phone-card {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: 24px;
  background: rgba(255, 246, 233, 0.94);
  border: 1px solid rgba(46, 107, 63, 0.14);
  box-shadow: 0 14px 34px rgba(46, 107, 63, 0.10);
}

.profile-phone-card h2 {
  margin: 0 0 0.35rem;
  color: var(--green-dark);
  font-family: 'Nunito', sans-serif;
}

.profile-phone-card p {
  margin: 0;
  color: var(--text-muted);
}

.profile-phone-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.profile-phone-form input {
  width: 100%;
}

@media (max-width: 720px) {
  .helixa-chat {
    right: 16px;
    bottom: 16px;
  }

  .chat-floating-button {
    right: 16px;
    bottom: 16px;
    min-height: 48px;
    padding: 12px 15px;
  }

  .chat-window {
    right: 16px;
    bottom: 78px;
    width: calc(100vw - 32px);
    height: min(480px, calc(100vh - 110px));
  }

  .verify-notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .verify-notice-actions {
    justify-content: flex-start;
  }

  .admin-chat-card {
    grid-template-columns: 1fr;
  }
}

/* Ajustes visuales finales: login, contrasenas, perfil y chats admin */
.auth-layout {
  align-items: start;
  padding: 46px 18px;
}

.auth-panel {
  width: min(100%, 560px);
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 212, 90, 0.22), transparent 22%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 233, 0.92));
  border: 1px solid rgba(46, 107, 63, 0.12);
  box-shadow: 0 18px 44px rgba(46, 107, 63, 0.12);
}

.auth-panel::after {
  content: none;
}

.auth-panel .form-card {
  position: relative;
  z-index: 1;
}

.password-helper-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(46, 107, 63, 0.13);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 246, 233, 0.86));
  box-shadow: 0 14px 30px rgba(46, 107, 63, 0.09);
}

.password-helper-copy,
.password-meter,
.password-checklist {
  min-width: 0;
}

.password-helper-copy h2 {
  margin: 0 0 6px;
  color: var(--green-dark);
  font-family: 'Nunito', sans-serif;
  font-size: 1.18rem;
}

.password-helper-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.password-helper-card .password-meter {
  grid-column: 1 / -1;
  margin-top: 0;
}

.password-checklist {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.password-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.password-checklist li::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 138, 128, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 138, 128, 0.12);
}

.password-checklist li.is-complete {
  color: var(--green-dark);
}

.password-checklist li.is-complete::before {
  background: var(--green-leaf);
  box-shadow: 0 0 0 4px rgba(127, 188, 122, 0.16);
}

.password-helper-card .password-visuals {
  justify-self: end;
  align-self: stretch;
  display: grid;
  place-items: center;
  width: 96px;
  min-height: 96px;
  border-radius: 24px;
  background: rgba(255, 246, 233, 0.72);
  border: 1px solid rgba(255, 212, 90, 0.3);
}

.password-helper-card .password-visual {
  width: 82px;
  height: 82px;
  background: transparent;
}

.profile-email-card strong {
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.22;
}

.profile-phone-card {
  margin-top: 28px;
  padding: 24px;
}

.profile-phone-form {
  gap: 1rem;
  margin-top: 1.25rem;
}

.profile-phone-form .button,
.profile-phone-form button {
  width: fit-content;
  margin-top: 0.85rem;
}

.admin-chat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.admin-chat-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1rem;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(46, 107, 63, 0.14);
  border-radius: 999px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
}

.admin-chat-tabs a.active {
  color: var(--cream);
  background: linear-gradient(135deg, var(--green-dark), var(--green-leaf));
  box-shadow: 0 12px 24px rgba(46, 107, 63, 0.18);
}

.admin-chat-tabs span {
  min-width: 28px;
  padding: 3px 8px;
  color: var(--green-dark);
  background: var(--yellow-nectar);
  border-radius: 999px;
  text-align: center;
}

.admin-chat-card.is-closed {
  opacity: 1;
  background: rgba(255, 246, 233, 0.9);
}

.admin-chat-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.admin-chat-actions form {
  margin: 0;
}

@media (max-width: 760px) {
  .password-helper-card {
    grid-template-columns: 1fr;
  }

  .password-helper-card .password-visuals {
    justify-self: start;
    width: 88px;
    min-height: 88px;
  }

  .profile-phone-form .button,
  .profile-phone-form button {
    width: 100%;
  }

  .admin-chat-actions {
    justify-items: stretch;
  }
}

/* Pulido final: tarjetas suaves, helper de contrasena y centro de chats */
.auth-panel {
  padding: clamp(24px, 4vw, 38px);
}

.auth-panel > .eyebrow,
.auth-panel > h1,
.auth-panel > .auth-copy,
.auth-panel > .auth-footnote {
  position: relative;
  z-index: 1;
}

.auth-panel .form-card {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.auth-panel input {
  min-height: 52px;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(46, 107, 63, 0.16);
}

.password-input-wrap input {
  padding-right: 3.25rem;
}

.password-toggle {
  box-shadow: 0 8px 18px rgba(46, 107, 63, 0.08);
}

.password-helper-card {
  margin: 2px 0 4px;
}

.password-helper-card .eyebrow {
  margin-bottom: 4px;
  font-size: 0.72rem;
}

.password-helper-card .password-meter strong {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  color: var(--green-dark);
  background: rgba(255, 212, 90, 0.25);
  border-radius: 999px;
}

.password-helper-card .password-visual[hidden],
.password-helper-card .password-visual[data-missing="1"] {
  display: none !important;
}

.password-helper-card .password-visuals:has(.password-visual:not([hidden])) {
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 212, 90, 0.28), transparent 38%),
    rgba(255, 246, 233, 0.72);
}

.profile-data-card {
  min-width: 0;
}

.profile-email-card {
  display: grid;
  gap: 8px;
}

.profile-email-card strong,
.profile-phone-card input {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.profile-phone-card {
  background:
    radial-gradient(circle at 94% 16%, rgba(255, 212, 90, 0.18), transparent 26%),
    rgba(255, 246, 233, 0.94);
}

.profile-phone-form label {
  max-width: 620px;
}

.profile-phone-form .button,
.profile-phone-form button {
  min-width: 190px;
}

.admin-chat-tabs {
  padding: 8px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(46, 107, 63, 0.1);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
}

.admin-chat-tabs a {
  border: 0;
}

.admin-chat-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 233, 0.82));
}

.admin-chat-card.is-closed {
  border-color: rgba(107, 114, 128, 0.18);
}

.admin-chat-card-head {
  align-items: flex-start;
}

.chat-status-badge.muted {
  color: var(--text-muted);
  background: rgba(242, 233, 218, 0.82);
}

.admin-chat-actions .button {
  width: 100%;
  justify-content: center;
}

@media (max-width: 720px) {
  .auth-panel {
    padding: 24px 18px;
  }

  .auth-panel h1 {
    font-size: clamp(2rem, 11vw, 2.7rem);
  }

  .admin-chat-tabs {
    width: 100%;
    border-radius: 24px;
  }

  .admin-chat-tabs a {
    flex: 1 1 140px;
    justify-content: center;
  }
}

/* Recuperacion de contrasena, perfil con mas aire y canjes admin */
.auth-help-link {
  display: inline-flex;
  justify-content: center;
  width: fit-content;
  margin: 0.25rem auto 0;
  color: var(--green-dark);
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.auth-help-link:hover {
  color: var(--green-leaf);
  text-decoration: underline;
  transform: translateY(-1px);
}

.profile-grid {
  gap: 22px;
  margin-bottom: 24px;
}

.profile-card,
.profile-phone-card,
.profile-data-card {
  border-color: rgba(46, 107, 63, 0.14);
}

.profile-phone-card {
  margin: 0 0 24px;
  padding: clamp(22px, 3vw, 30px);
  box-shadow: 0 14px 34px rgba(46, 107, 63, 0.1);
}

.profile-phone-form {
  gap: 1.15rem;
  margin-top: 1.35rem;
}

.profile-phone-form label {
  gap: 0.65rem;
}

.profile-phone-form .button,
.profile-phone-form button {
  margin-top: 0.95rem;
}

.profile-data-grid {
  gap: 18px;
}

.profile-data-card {
  padding: clamp(18px, 2.4vw, 24px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 233, 0.78));
}

.profile-email-card strong,
.admin-table-email {
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
}

.panel-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.panel-heading-row h2 {
  margin-bottom: 6px;
}

.admin-redemptions-panel {
  overflow: hidden;
}

.admin-redemptions-table th,
.admin-redemptions-table td {
  vertical-align: top;
}

.points-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 7px 12px;
  color: var(--green-deep);
  background: var(--yellow-soft);
  border: 1px solid rgba(255, 212, 90, 0.9);
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .panel-heading-row {
    display: grid;
  }

  .panel-heading-row .wallet-pill {
    width: fit-content;
  }

  .profile-phone-form .button,
  .profile-phone-form button {
    width: 100%;
  }
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  width: 100%;
  min-width: 1060px;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-table-compact {
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  vertical-align: middle;
  padding: 0.95rem 0.85rem;
  border-bottom: 1px solid rgba(46, 107, 63, 0.12);
}

.admin-table td {
  line-height: 1.35;
}

.admin-table .cell-name {
  min-width: 140px;
  color: var(--green-deep);
  font-weight: 800;
}

.admin-table .cell-email {
  max-width: 260px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-table .cell-phone {
  min-width: 150px;
  white-space: nowrap;
}

.admin-table .inline-form {
  margin: 0;
}

.admin-table .button,
.admin-table button {
  white-space: nowrap;
}

/* Cambio de correo y navbar administrativo limpio */
.admin-nav {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.admin-nav a {
  white-space: nowrap;
}

.admin-shortcut-card.is-secondary {
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 212, 90, 0.14), transparent 28%),
    rgba(255, 246, 233, 0.86);
}

.profile-account-card,
.profile-data-section {
  margin-bottom: 24px;
  padding: clamp(22px, 3vw, 30px);
  background:
    radial-gradient(circle at 94% 16%, rgba(255, 212, 90, 0.16), transparent 28%),
    rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(46, 107, 63, 0.14);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(46, 107, 63, 0.1);
}

.profile-account-card h2,
.profile-data-section h2 {
  margin: 0 0 0.45rem;
  color: var(--green-dark);
  font-family: 'Nunito', sans-serif;
  font-size: 1.45rem;
}

.profile-account-card p:not(.eyebrow),
.profile-data-section p:not(.eyebrow) {
  color: var(--text-muted);
}

.profile-current-email {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 16px;
  background: rgba(255, 246, 233, 0.7);
  border: 1px solid rgba(255, 212, 90, 0.32);
  border-radius: 18px;
}

.profile-current-email span {
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
}

.profile-current-email strong,
.profile-email,
.user-email,
.account-email {
  color: var(--green-dark);
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 900;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.profile-email-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.85fr);
  gap: 1rem;
  align-items: end;
  margin-top: 1.1rem;
}

.profile-email-form .button {
  grid-column: 1 / -1;
  width: fit-content;
  min-width: 190px;
  margin-top: 0.35rem;
}

.profile-section-heading {
  margin-bottom: 16px;
}

.admin-protected-card {
  background:
    radial-gradient(circle at 92% 14%, rgba(255, 212, 90, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255, 246, 233, 0.96), rgba(247, 252, 235, 0.96));
  border: 1px solid rgba(46, 107, 63, 0.14);
}

.protected-email-box {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 212, 90, 0.14);
  border: 1px solid rgba(255, 212, 90, 0.45);
  border-radius: 18px;
}

.protected-email-box span {
  color: var(--text-muted);
  font-family: 'Poppins', sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
}

.protected-email-box strong {
  color: var(--green-dark);
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 900;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.protected-email-box p {
  margin: 0.15rem 0 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.verified-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.2rem;
  padding: 0.4rem 0.75rem;
  color: var(--green-dark);
  background: rgba(127, 188, 122, 0.18);
  border: 1px solid rgba(127, 188, 122, 0.28);
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 800;
}

@media (max-width: 900px) {
  .profile-email-form {
    grid-template-columns: 1fr;
  }

  .profile-email-form .button {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .admin-nav {
    gap: 0.35rem;
  }

  .admin-nav a:not(.button) {
    padding: 0.45rem 0.62rem;
    font-size: 0.88rem;
  }
}

/* Inicio: video promocional y galeria de producto */
.home-video-section,
.home-gallery-section {
  padding: clamp(52px, 7vw, 88px) 1.5rem;
}

.home-video-section {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 212, 90, 0.16), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(240, 98, 146, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(255, 246, 233, 0.55), rgba(242, 255, 232, 0.72));
}

.home-gallery-section {
  padding-top: clamp(36px, 5vw, 68px);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(127, 188, 122, 0.14), transparent 26%),
    radial-gradient(circle at 92% 8%, rgba(255, 212, 90, 0.14), transparent 24%);
}

.home-gallery-section::before {
  position: absolute;
  right: min(4vw, 48px);
  top: 34px;
  width: 148px;
  height: 148px;
  content: "";
  background: radial-gradient(circle, rgba(240, 98, 146, 0.12), transparent 68%);
  border-radius: 999px;
  pointer-events: none;
}

.home-section-header {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.home-section-kicker {
  margin: 0;
  color: var(--pink-helixa);
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-section-title {
  margin: 0.4rem 0 0.65rem;
  color: var(--green-dark);
  font-family: 'Nunito', sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.05;
}

.home-section-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.home-gallery-header {
  margin-bottom: clamp(2.4rem, 5vw, 3.7rem);
}

.home-video-card {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 1rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 212, 90, 0.18), transparent 26%),
    rgba(255, 246, 233, 0.96);
  border: 1px solid rgba(46, 107, 63, 0.14);
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(46, 107, 63, 0.14);
}

.home-video-card::before,
.home-video-card::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  pointer-events: none;
}

.home-video-card::before {
  width: 96px;
  height: 96px;
  right: -28px;
  top: -28px;
  background: rgba(127, 188, 122, 0.18);
}

.home-video-card::after {
  width: 64px;
  height: 64px;
  left: -18px;
  bottom: -18px;
  background: rgba(240, 98, 146, 0.12);
}

.promo-video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--sand);
  border-radius: 24px;
}

.video-placeholder {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
  color: var(--green-dark);
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 212, 90, 0.35), transparent 28%),
    linear-gradient(135deg, rgba(127, 188, 122, 0.18), rgba(255, 212, 90, 0.22), rgba(240, 98, 146, 0.16));
  border: 1px dashed rgba(46, 107, 63, 0.24);
  border-radius: 24px;
}

.video-placeholder div,
.gallery-placeholder div {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
}

.video-placeholder strong,
.gallery-placeholder strong {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 900;
}

.video-placeholder small,
.gallery-placeholder small {
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.placeholder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 0.5rem 0.8rem;
  color: var(--green-dark);
  background: rgba(255, 246, 233, 0.82);
  border: 1px solid rgba(255, 212, 90, 0.38);
  border-radius: 999px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.home-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2vw, 1.65rem);
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.home-gallery-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  padding: clamp(1rem, 1.6vw, 1.25rem);
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 212, 90, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 246, 233, 0.94));
  border: 1px solid rgba(46, 107, 63, 0.14);
  border-radius: 32px;
  box-shadow: 0 18px 44px rgba(46, 107, 63, 0.10);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.home-gallery-card:hover {
  transform: translateY(-7px);
  border-color: rgba(127, 188, 122, 0.38);
  box-shadow: 0 26px 62px rgba(46, 107, 63, 0.16);
}

.home-gallery-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: clamp(12px, 1.5vw, 18px);
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 212, 90, 0.22), transparent 32%),
    radial-gradient(circle at 10% 90%, rgba(127, 188, 122, 0.13), transparent 34%),
    linear-gradient(180deg, #fffaf1, #f7fceb);
  border: 1px solid rgba(46, 107, 63, 0.10);
  border-radius: 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.home-gallery-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border-radius: 20px;
  filter: saturate(1.02) contrast(1.01);
  transition: transform 0.32s ease;
}

.home-gallery-card:hover .home-gallery-image {
  transform: scale(1.035);
}

.home-gallery-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.05rem, 2vw, 1.35rem) 0.25rem 0.2rem;
}

.home-gallery-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  margin-bottom: 0.85rem;
  padding: 0.38rem 0.72rem;
  color: var(--green-dark);
  background: rgba(255, 212, 90, 0.22);
  border: 1px solid rgba(255, 212, 90, 0.42);
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-gallery-badge::before {
  width: 7px;
  height: 7px;
  content: "";
  background: var(--pink-helixa);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(240, 98, 146, 0.12);
}

.home-gallery-card h3 {
  margin: 0 0 0.55rem;
  color: var(--green-dark);
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 900;
  line-height: 1.12;
}

.home-gallery-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.72;
}

.gallery-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 1rem;
  text-align: center;
  color: var(--green-dark);
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 212, 90, 0.26), transparent 32%),
    linear-gradient(135deg, rgba(46, 107, 63, 0.12), rgba(255, 212, 90, 0.20), rgba(240, 98, 146, 0.14));
  border: 1px dashed rgba(46, 107, 63, 0.2);
  border-radius: 22px;
}

@media (max-width: 900px) {
  .home-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-video-section,
  .home-gallery-section {
    padding: 3rem 1rem;
  }

  .home-gallery-grid {
    grid-template-columns: 1fr;
  }

  .home-video-card {
    padding: 0.75rem;
    border-radius: 24px;
  }

  .promo-video,
  .video-placeholder {
    border-radius: 18px;
  }

  .home-gallery-card,
  .home-gallery-media {
    border-radius: 24px;
  }

  .gallery-placeholder,
  .home-gallery-image {
    border-radius: 18px;
  }
}

/* Correcciones responsive: ojo de contrasena, video y tarjetas del inicio */
body {
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.password-input-wrap input {
  width: 100%;
  min-width: 0;
  padding-right: 3.35rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  color: var(--green-dark);
  line-height: 1;
  cursor: pointer;
  background: rgba(127, 188, 122, 0.18);
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  transform: translateY(-50%);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.password-toggle:hover {
  color: var(--green-dark);
  background: rgba(127, 188, 122, 0.28);
}

.password-toggle:active {
  transform: translateY(-50%) scale(0.96);
}

.password-toggle:focus-visible {
  outline: 3px solid rgba(255, 212, 90, 0.6);
  outline-offset: 3px;
}

.password-toggle svg {
  display: block;
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle .icon-eye-open {
  display: none;
}

.password-toggle .icon-eye-closed {
  display: block;
}

.password-toggle.is-visible {
  color: var(--pink-helixa);
  background: rgba(240, 98, 146, 0.14);
}

.password-toggle.is-visible .icon-eye-open {
  display: block;
}

.password-toggle.is-visible .icon-eye-closed {
  display: none;
}

.home-video-section,
.home-gallery-section {
  max-width: 100%;
  overflow-x: clip;
}

.home-video-card {
  width: min(100%, 980px);
  max-width: 100%;
  padding: clamp(0.65rem, 2vw, 1rem);
  border-radius: clamp(20px, 3vw, 32px);
}

.promo-video,
.video-placeholder {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: clamp(16px, 2vw, 24px);
}

.promo-video {
  object-fit: cover;
}

.story-grid,
.info-band,
.home-gallery-grid {
  width: min(100%, 1180px);
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.story-grid,
.info-band {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.story-card,
.info-band > div,
.home-gallery-card {
  min-width: 0;
  height: 100%;
}

.story-card h3,
.info-band h2,
.home-gallery-card h3,
.story-card p,
.info-band p,
.home-gallery-card p {
  overflow-wrap: anywhere;
}

.story-card p,
.info-band p,
.home-gallery-card p {
  line-height: 1.65;
}

.home-gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.home-gallery-card {
  display: flex;
  flex-direction: column;
}

.home-gallery-media {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.home-gallery-image,
.gallery-placeholder {
  width: 100%;
  height: 100%;
}

.home-gallery-image {
  object-fit: contain;
  object-position: center;
}

@media (max-width: 900px) {
  .story-grid,
  .info-band,
  .home-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-video-section,
  .home-gallery-section {
    padding-inline: 1rem;
  }

  .home-video-card {
    padding: 0.55rem;
    border-radius: 22px;
  }

  .promo-video,
  .video-placeholder {
    border-radius: 16px;
  }

  .story-grid,
  .info-band,
  .home-gallery-grid {
    grid-template-columns: 1fr;
  }

  .story-card,
  .info-band > div,
  .home-gallery-card {
    border-radius: 22px;
  }

  .password-toggle {
    right: 0.65rem;
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
  }

  .password-toggle svg {
    width: 18px;
    height: 18px;
  }
}
