:root {
  --bg: #fff8f0;
  --card: #ffffff;
  --text: #2a1810;
  --muted: #8a6f5f;
  --blue: #dc2626;          /* red (kept var name for compatibility) */
  --blue-light: #f87171;
  --purple: #f59e0b;        /* gold/orange */
  --purple-light: #fcd34d;
  --grad: linear-gradient(135deg, #dc2626, #f59e0b);
  --grad-purple: linear-gradient(135deg, #f59e0b, #fcd34d);
  --radius: 16px;
  --shadow: 0 10px 40px rgba(220,38,38,0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
nav {
  background: var(--card);
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hamburger — shown by default (mobile-first), hidden on desktop */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 44px;
  height: 44px;
  padding: 12px 10px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* Nav links — collapsed on mobile, open via .open class */
.nav-links {
  display: none;
  width: 100%;
  flex-direction: column;
  border-top: 1px solid #e2e8f0;
  padding: 8px 0 4px;
  margin-top: 12px;
}
.nav-links.open { display: flex; }

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 12px 4px;
  border-bottom: 1px solid #f1f5f9;
  transition: color 0.2s;
}
.nav-links a:last-child { border-bottom: none; }
.nav-links a:hover { color: var(--blue); }

/* Desktop — hide hamburger, always show links inline */
@media (min-width: 769px) {
  .nav-toggle { display: none; }
  .nav-inner  { flex-wrap: nowrap; }
  .nav-links  {
    display: flex;
    flex-direction: row;
    width: auto;
    border-top: none;
    padding: 0;
    margin-top: 0;
  }
  .nav-links a {
    margin-left: 28px;
    padding: 0;
    border-bottom: none;
    font-size: 0.95rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}

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

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37,99,235,0.3);
}

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

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #f87171);
  color: #fff;
}

/* Hero */
.hero {
  padding: 80px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.hero-text h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-text h1 span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 32px;
}

/* Register card */
.register-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.register-card h2 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  text-align: center;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

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

.gender-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  flex: 1;
  justify-content: center;
}

.gender-group input { display: none; }

.gender-group input:checked + label {
  border-color: var(--blue);
  background: rgba(37,99,235,0.06);
  color: var(--blue);
}

.gender-group label:hover { border-color: var(--blue-light); }

.gender-symbol {
  font-size: 1.3rem;
  line-height: 1;
}

/* Page header */
.page-header {
  text-align: center;
  padding: 60px 0 30px;
}

.page-header h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--muted);
}

/* Cards */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  max-width: 520px;
  margin: 0 auto 40px;
}

/* Swipe */
.swipe-area {
  max-width: 380px;
  margin: 0 auto 40px;
  position: relative;
  height: 480px;
}

.profile-card {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: grab;
  transition: transform 0.1s;
}

.profile-card:active { cursor: grabbing; }

.profile-img {
  width: 100%;
  height: 75%;
  object-fit: cover;
}

.profile-info {
  padding: 16px 20px;
}

.profile-info h3 {
  font-size: 1.25rem;
}

.profile-info p {
  color: var(--muted);
  font-size: 0.9rem;
}

.swipe-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.swipe-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swipe-btn:hover { transform: scale(1.1); }

.nope-btn { background: #fee2e2; color: #ef4444; }
.like-btn { background: #dcfce7; color: #22c55e; }

/* Chat */
.chat-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto 40px;
  min-height: 500px;
}

.matches-list {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.matches-list h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.match-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.match-item:hover { background: #f1f5f9; }

.match-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.chat-window {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 600;
}

.chat-messages {
  flex: 1;
  padding: 16px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.95rem;
}

.msg-in {
  align-self: flex-start;
  background: #f1f5f9;
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.msg-out {
  align-self: flex-end;
  background: var(--grad);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-input {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid #e2e8f0;
}

.chat-input input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 1rem;
}

.chat-input input:focus {
  outline: none;
  border-color: var(--blue);
}

.credits-bar {
  text-align: center;
  padding: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

/* Credits */
.credit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 40px;
}

.credit-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  text-align: center;
  transition: transform 0.2s;
}

.credit-card:hover { transform: translateY(-4px); }

.credit-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.credit-amount {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.credit-price {
  color: var(--muted);
  margin: 8px 0 20px;
}


/* Mobile layout overrides */
@media (max-width: 768px) {
  .hero-grid   { grid-template-columns: 1fr; }
  .chat-layout { grid-template-columns: 1fr; }
  .swipe-area  { height: 420px; }
}


/* Purple accents */
.badge-purple {
  display: inline-block;
  background: var(--grad-purple);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(139,92,246,0.25);
}

.features {
  padding: 40px 0 80px;
}

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

.feature {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--purple);
  transition: transform 0.2s;
}
.feature:hover { transform: translateY(-4px); }

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: #fff;
}

.feature h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--purple); }
.feature p { font-size: 0.9rem; color: var(--muted); }

/* About rows (alternating image/text) */
.about-rows { padding: 40px 0 80px; }
.about-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}
.about-row.reverse .about-img { order: 2; }
.about-row.reverse .about-text { order: 1; }
.about-img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(220,38,38,0.2);
}
.about-text h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-text p { color: var(--muted); font-size: 1.05rem; }
@media (max-width: 768px) {
  .about-row, .about-row.reverse { grid-template-columns: 1fr; }
  .about-row.reverse .about-img,
  .about-row.reverse .about-text { order: initial; }
}

/* Credits euro */
.credit-card.popular {
  background: linear-gradient(180deg, #faf5ff, #fff);
  border: 2px solid var(--purple);
  position: relative;
}
.credit-card.popular::before {
  content: "★ Most Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-purple);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.credit-card .euro {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--purple);
}

/* Profile page */
.profile-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto 60px;
}

.profile-side {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  text-align: center;
  height: fit-content;
}

.profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 14px;
  object-fit: cover;
  border: 4px solid var(--purple-light);
}

.profile-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-tag {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.profile-main {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.profile-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 18px 0 14px;
  color: var(--purple);
  border-left: 4px solid var(--purple);
  padding-left: 10px;
}
.profile-section-title:first-child { margin-top: 0; }

.range-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.range-row input[type=range] {
  flex: 1;
  accent-color: var(--purple);
}
.range-row .val {
  min-width: 70px;
  font-weight: 700;
  color: var(--blue);
}

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

/* ── Site Footer ──────────────────────────────────────────────────────── */
.site-footer {
  background: #1a0e07;
  color: #a1887a;
  margin-top: 60px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding: 48px 24px 40px;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: #6b4f3f;
  margin: 0;
  line-height: 1.5;
}

.footer-heading {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #5c3d2e;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links a {
  color: #a1887a;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--blue); }

.footer-address {
  font-style: normal;
  font-size: 0.87rem;
  line-height: 1.8;
  color: #a1887a;
}

.footer-address strong {
  color: #d4b8ae;
  font-size: 0.92rem;
}

.footer-bottom {
  border-top: 1px solid #2d1a10;
  padding: 16px 0;
  font-size: 0.8rem;
  color: #4a2e20;
  text-align: center;
}

.footer-bottom strong { color: #7a5040; }

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 24px 28px;
  }
}
