:root {
  --bg: #0f172a;
  --card: rgba(255, 255, 255, 0.08);
  --panel: #10192c;
  --text: #e4e8f2;
  --muted: #9fb2ce;
  --accent: #7cf6f7;
  --accent-2: #ff9ec7;
  --shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  --radius: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 10% 20%, rgba(124, 246, 247, 0.18), transparent 25%),
    radial-gradient(circle at 80% 0%, rgba(255, 158, 199, 0.18), transparent 25%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

.hero {
  padding: 32px clamp(18px, 4vw, 48px) 72px;
  position: relative;
  overflow: visible;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 40% 10%, rgba(124, 246, 247, 0.2), transparent 35%),
    radial-gradient(circle at 80% 30%, rgba(255, 158, 199, 0.16), transparent 32%);
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
}

.brand__logo {
  flex-shrink: 0;
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.nav__links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav__links a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: var(--text);
  padding: 8px 10px;
  font-size: 1rem;
  cursor: pointer;
}

.hero__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
  margin-top: 36px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 8px;
  font-weight: 600;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.lede {
  color: var(--muted);
  max-width: 60ch;
}

.lede.narrow {
  max-width: 48ch;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0a0f1d;
  box-shadow: var(--shadow);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.btn.ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

.hero__meta {
  display: flex;
  gap: 10px;
  color: var(--muted);
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.hero__card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.card__header {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.card__label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--accent);
  margin: 0 0 8px;
  font-weight: 700;
}

.card__meta {
  color: var(--muted);
  margin: 0 0 6px;
}

.card__text {
  color: var(--muted);
  margin: 0 0 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  font-size: 0.9rem;
  width: max-content;
}

.section {
  padding: 72px clamp(18px, 4vw, 48px);
}

.section.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

.section__header {
  max-width: 760px;
  margin-bottom: 32px;
}

.grid.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid.cards.three {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.card--line {
  border-left: 3px solid var(--accent);
}

.grid.resources {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  align-items: start;
}

.resource__panel {
  background: linear-gradient(135deg, rgba(124, 246, 247, 0.12), rgba(255, 158, 199, 0.12));
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.22);
}

.list {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

/* Themed resource links (inline chips) */
.resources .list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin: 6px 0;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(124,246,247,0.06), rgba(255,158,199,0.04));
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  font-weight: 600;
}

.resources .list a:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg, rgba(124,246,247,0.12), rgba(255,158,199,0.08));
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.resources .list a::after {
  content: '↗';
  margin-left: 6px;
  font-size: 0.85rem;
  color: var(--accent);
}

/* Chip list layout for resources */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.chip-list .chip {
  padding: 8px 12px;
  font-size: 0.95rem;
}

.form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.field span {
  font-weight: 600;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 12px 14px;
  font-family: inherit;
}

.field textarea {
  resize: vertical;
}

.field--full {
  grid-column: 1 / -1;
}

.form__note {
  color: var(--muted);
  margin: 12px 0 0;
  font-size: 0.95rem;
}

.form__message {
  margin-top: 10px;
  font-weight: 600;
  color: var(--accent);
  min-height: 22px;
}

.footer {
  padding: 32px clamp(18px, 4vw, 48px) 46px;
  background: #0b1223;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 10px;
  align-items: center;
  justify-items: start;
}

.footer__brand {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer__links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer__links a,
.footer__note {
  color: var(--muted);
  text-decoration: none;
}

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

.admin__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  align-items: start;
}

.admin__list {
  display: grid;
  gap: 10px;
}

.admin__item {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 860px) {
  .nav__links {
    position: absolute;
    right: 0;
    top: 54px;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(12px);
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    display: none;
    min-width: 200px;
    z-index: 9998;
  }

  .nav__links.show {
    display: flex;
  }

  .nav__links a {
    padding: 12px 14px;
    width: 100%;
    border-radius: var(--radius-sm);
  }

  .nav__toggle {
    display: inline-flex;
  }
}

.escape-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(255, 158, 199, 0.9);
  color: #0a0f1d;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 9999;
  font-weight: 700;
  white-space: nowrap;
}

.escape-btn .icon {
  font-size: 1.5rem;
  line-height: 1;
  font-weight: bold;
}

.escape-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  background: rgba(255, 158, 199, 1);
}

.escape-btn:active {
  transform: scale(0.95);
}

/* Tablet adjustments */
@media (max-width: 860px) {
  h1 {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }

  h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  .grid.cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .grid.resources {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

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

/* Mobile adjustments */
@media (max-width: 600px) {
  .hero {
    padding: 22px 18px 32px;
  }

  .hero__content {
    margin-top: 24px;
    gap: 24px;
  }

  .hero__card {
    order: -1;
  }

  .section {
    padding: 48px 18px;
  }

  .section__header {
    margin-bottom: 24px;
  }

  h1 {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
    margin-bottom: 16px;
  }

  h2 {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }

  h3 {
    font-size: 1.1rem;
  }

  .lede {
    font-size: 0.95rem;
  }

  .grid.cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .grid.cards.three {
    grid-template-columns: 1fr;
  }

  .grid.resources {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .card {
    padding: 16px;
  }

  .hero__actions {
    margin: 16px 0;
    gap: 10px;
  }

  .btn {
    padding: 11px 14px;
    font-size: 0.95rem;
  }

  .chip-list {
    gap: 8px;
  }

  .chip {
    font-size: 0.85rem;
    padding: 6px 10px;
  }

  .list {
    padding-left: 16px;
    font-size: 0.95rem;
  }

  .footer {
    padding: 24px 18px 32px;
    gap: 14px;
  }

  .footer__links {
    gap: 10px;
    font-size: 0.9rem;
  }

  .footer__note {
    font-size: 0.9rem;
  }
  
  .escape-btn {
    bottom: 16px;
    right: 16px;
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  
  .escape-btn .icon {
    font-size: 1.3rem;
  }

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

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

/* Crisis page links styling */
a[href*="/crisis"] {
  color: #ff6b6b !important;
}

a[href*="/crisis"]:hover {
  color: #ff5252 !important;
}

/* Crisis button links */
.btn.primary[href*="/crisis"] {
  background: linear-gradient(120deg, #ff6b6b, #ff5252);
  color: #ffffff !important;
}

.chip[href*="/crisis"] {
  background: rgba(255, 107, 107, 0.15);
  border-color: #ff6b6b;
  color: #ff6b6b !important;
}

/* Emergency button */
.btn.emergency {
  background: linear-gradient(120deg, #ff6b6b, #ff5252) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner__content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  min-width: 280px;
}

.cookie-banner__text h3 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.cookie-banner__text p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.cookie-banner__text a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.cookie-banner__text a:hover {
  border-bottom-color: var(--accent);
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-banner__btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid;
  white-space: nowrap;
}

.cookie-banner__btn--accept {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: var(--bg);
  border-color: transparent;
}

.cookie-banner__btn--accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124, 246, 247, 0.3);
}

.cookie-banner__btn--decline {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.cookie-banner__btn--decline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .cookie-banner {
    padding: 16px;
  }

  .cookie-banner__content {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .cookie-banner__text h3 {
    font-size: 1rem;
  }

  .cookie-banner__text p {
    font-size: 0.85rem;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__btn {
    flex: 1;
    font-size: 0.85rem;
    padding: 10px 16px;
  }
}

/* Carousel styles */
.carousel {
  position: relative;
  width: 100%;
}

.carousel__container {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 0;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.carousel__container::-webkit-scrollbar {
  height: 6px;
}

.carousel__container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.carousel__container::-webkit-scrollbar-thumb {
  background: rgba(124, 246, 247, 0.4);
  border-radius: 3px;
}

.carousel__container::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 246, 247, 0.6);
}

.carousel__container .card {
  flex: 0 0 clamp(240px, 100%, 400px);
  scroll-snap-align: start;
}

.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--accent);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  font-weight: 600;
}

.carousel__nav:hover {
  background: rgba(124, 246, 247, 0.15);
  border-color: var(--accent);
}

.carousel__nav:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel__nav--prev {
  left: -20px;
}

.carousel__nav--next {
  right: -20px;
}

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

.carousel__indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(124, 246, 247, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel__indicator.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .carousel__nav {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .carousel__nav--prev {
    left: 0;
  }

  .carousel__nav--next {
    right: 0;
  }

  .carousel__container .card {
    flex: 0 0 clamp(200px, 90vw, 350px);
  }
}

@media (max-width: 480px) {
  .carousel__nav {
    display: none;
  }

  .carousel__container .card {
    flex: 0 0 calc(100vw - 36px);
  }
}

/* Genderbread page styles (migrated from resources/genderbread/index.html) */
.genderbread-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.genderbread-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .genderbread-wrapper {
    grid-template-columns: 1fr;
  }
}

.genderbread-figure {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.genderbread-person {
  width: 100%;
  height: auto;
}

/* Shape colors for the genderbread icons */
.genderbread-person path,
.genderbread-person circle,
.genderbread-person g {
  transition: fill 0.3s ease, opacity 0.3s ease;
}

.sliders-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.slider-group {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-group h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slider-group h3::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.slider-group.identity h3::before { background: linear-gradient(135deg, #7cf6f7, #5ed9da); }
.slider-group.expression h3::before { background: linear-gradient(135deg, #ff9ec7, #ff7eb3); }
.slider-group.sex h3::before { background: linear-gradient(135deg, #a78bfa, #8b5cf6); }
.slider-group.attraction h3::before { background: linear-gradient(135deg, #fbbf24, #f59e0b); }

.slider-group p {
  margin: 0 0 1rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.slider-wrapper {
  margin-bottom: 1rem;
}

.slider-wrapper:last-child {
  margin-bottom: 0;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.slider-input {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.slider-input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.slider-input.identity::-webkit-slider-thumb { background: linear-gradient(135deg, #7cf6f7, #5ed9da); }
.slider-input.expression::-webkit-slider-thumb { background: linear-gradient(135deg, #ff9ec7, #ff7eb3); }
.slider-input.sex::-webkit-slider-thumb { background: linear-gradient(135deg, #a78bfa, #8b5cf6); }
.slider-input.attraction::-webkit-slider-thumb { background: linear-gradient(135deg, #fbbf24, #f59e0b); }

.slider-input.identity::-moz-range-thumb { background: linear-gradient(135deg, #7cf6f7, #5ed9da); }
.slider-input.expression::-moz-range-thumb { background: linear-gradient(135deg, #ff9ec7, #ff7eb3); }
.slider-input.sex::-moz-range-thumb { background: linear-gradient(135deg, #a78bfa, #8b5cf6); }
.slider-input.attraction::-moz-range-thumb { background: linear-gradient(135deg, #fbbf24, #f59e0b); }

.export-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn-export {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-export:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-export:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-reset {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

/* PDF Export Styles */
.pdf-export-area {
  background: #0f172a;
  padding: 2rem;
  border-radius: var(--radius);
}

.pdf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(124, 246, 247, 0.3);
}

.pdf-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pdf-logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #7cf6f7, #ff9ec7);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.pdf-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.pdf-date {
  font-size: 0.85rem;
  color: var(--muted);
}

.pdf-title {
  text-align: center;
  margin-bottom: 2rem;
}

.pdf-title h2 {
  margin: 0;
  font-size: 1.75rem;
  color: var(--text);
}

.pdf-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 500px) {
  .pdf-results {
    grid-template-columns: 1fr;
  }
}

.pdf-result-item {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 1rem;
  border-left: 4px solid;
}

.pdf-result-item.identity { border-left-color: #7cf6f7; }
.pdf-result-item.expression { border-left-color: #ff9ec7; }
.pdf-result-item.sex { border-left-color: #a78bfa; }
.pdf-result-item.attraction { border-left-color: #fbbf24; }

.pdf-result-item h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.pdf-result-item .value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.pdf-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* PDF export area - visible but off-screen for html2pdf to capture */
#pdf-export-content {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 600px;
  background: #0f172a;
  color: #e4e8f2;
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
}

#pdf-export-content * {
  visibility: visible;
}
