/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Serif SC', 'Inter', -apple-system, sans-serif;
  background: #faf8f5;
  color: #2c2c2c;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Language Toggle ── */
.lang-toggle {
  display: flex;
  gap: 4px;
  background: #f0ebe3;
  border-radius: 30px;
  padding: 3px;
}
.lang-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  border: none;
  background: transparent;
  color: #888;
  cursor: pointer;
  transition: all 0.25s;
}
.lang-btn.active {
  background: #8b1a1a;
  color: #fff;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #8b1a1a;
}
.logo span { color: #c9a05e; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: #8b1a1a;
  transition: width 0.3s;
}
.nav-links a:hover { color: #8b1a1a; }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: #8b1a1a;
  color: #fff !important;
  padding: 10px 28px;
  border-radius: 40px;
  font-weight: 600 !important;
  transition: background 0.25s, transform 0.2s !important;
}
.nav-cta:hover { background: #a52a2a; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  width: 26px; height: 2px;
  background: #2c2c2c;
  border-radius: 2px;
  transition: 0.3s;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  background: linear-gradient(135deg, #faf8f5 0%, #f0ebe3 50%, #e8ddd0 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(201,160,94,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -15%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139,26,26,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-text h1 {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 2px;
}
.hero-text h1 em {
  font-style: normal;
  color: #8b1a1a;
}
.hero-text .sub {
  font-size: 1.15rem;
  color: #777;
  margin: 24px 0 36px;
  font-weight: 300;
  line-height: 1.8;
  font-family: 'Inter', sans-serif;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-block;
  background: #8b1a1a;
  color: #fff;
  padding: 16px 44px;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
  font-family: inherit;
}
.btn-primary:hover { background: #a52a2a; transform: translateY(-2px); }
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #8b1a1a;
  padding: 16px 44px;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid #8b1a1a;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
  font-family: inherit;
}
.btn-secondary:hover { background: #8b1a1a; color: #fff; }

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image .placeholder {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  background: linear-gradient(145deg, #d4c5b0, #c9b9a4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 40px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}
.hero-image .placeholder .big-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}
.hero-image .placeholder p {
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 1px;
  font-family: 'Inter', sans-serif;
}

/* ── Stats ── */
.stats {
  padding: 80px 0;
  background: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item h3 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #8b1a1a;
  letter-spacing: 1px;
}
.stat-item p {
  font-size: 0.95rem;
  color: #888;
  margin-top: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

/* ── Section common ── */
.section-title {
  text-align: center;
  margin-bottom: 56px;
}
.section-title h2 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 2px;
}
.section-title h2 span { color: #8b1a1a; }
.section-title p {
  color: #888;
  margin-top: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}

/* ── Services ── */
.services {
  padding: 100px 0;
  background: #faf8f5;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.service-card {
  background: #fff;
  padding: 48px 36px;
  border-radius: 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.04);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.07);
}
.service-card .icon { font-size: 2.6rem; margin-bottom: 20px; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 12px; font-weight: 600; }
.service-card p {
  font-size: 0.9rem;
  color: #888;
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
}

/* ── How It Works ── */
.how {
  padding: 100px 0;
  background: #fff;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 48px; left: 16%; right: 16%;
  height: 2px;
  background: linear-gradient(90deg, #8b1a1a 0%, #c9a05e 50%, #8b1a1a 100%);
  opacity: 0.2;
}
.step {
  text-align: center;
  position: relative;
}
.step-num {
  width: 60px; height: 60px;
  background: #8b1a1a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}
.step h3 { font-size: 1.15rem; margin-bottom: 10px; font-weight: 600; }
.step p {
  font-size: 0.9rem;
  color: #888;
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
}

/* ── Testimonials ── */
.testimonials {
  padding: 100px 0;
  background: #faf8f5;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.testimonial-card {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.testimonial-card .quote {
  font-size: 1.8rem;
  color: #c9a05e;
  line-height: 1;
  margin-bottom: 8px;
}
.testimonial-card p {
  color: #555;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 20px;
}
.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card .author .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4c5b0, #c9b9a4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}
.testimonial-card .author .name {
  font-weight: 600;
  font-size: 0.95rem;
}
.testimonial-card .author .title {
  font-size: 0.8rem;
  color: #aaa;
  font-family: 'Inter', sans-serif;
}

/* ── CTA ── */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, #8b1a1a 0%, #6b1010 100%);
  color: #fff;
  text-align: center;
}
.cta h2 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 2px;
}
.cta p {
  font-size: 1.05rem;
  opacity: 0.8;
  margin: 16px 0 36px;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
}
.cta .btn-gold {
  display: inline-block;
  background: #c9a05e;
  color: #2c2c2c;
  padding: 16px 44px;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
  font-family: inherit;
}
.cta .btn-gold:hover { background: #d4b070; transform: translateY(-2px); }

/* ── Footer ── */
footer {
  padding: 48px 0;
  background: #1c1c1c;
  color: #999;
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer .logo {
  font-size: 1.1rem;
  color: #e0d6c8;
}
footer .logo span { color: #c9a05e; }
footer p { font-family: 'Inter', sans-serif; font-size: 0.85rem; }
footer .footer-email {
  color: #c9a05e;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: color 0.25s;
}
footer .footer-email:hover { color: #d4b070; }

/* ── Form Styles ── */
.form-page {
  min-height: 100vh;
  padding-top: 90px;
  padding-bottom: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #faf8f5 0%, #f0ebe3 100%);
}
.form-card {
  background: #fff;
  border-radius: 24px;
  padding: 56px 48px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
}
.form-card h1 {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}
.form-card h1 span { color: #8b1a1a; }
.form-card .form-sub {
  text-align: center;
  color: #888;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 32px;
}
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid #e0ddd8;
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  background: #faf8f5;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus {
  border-color: #8b1a1a;
  box-shadow: 0 0 0 3px rgba(139,26,26,0.08);
}
.form-group .radio-group {
  display: flex;
  gap: 20px;
  padding-top: 4px;
}
.form-group .radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  color: #555;
  cursor: pointer;
  font-size: 0.95rem;
}
.form-group .radio-group input[type="radio"] {
  width: auto;
  accent-color: #8b1a1a;
}
.form-card .btn-primary {
  width: 100%;
  text-align: center;
  font-size: 1.05rem;
  padding: 16px;
}
.form-card .form-footer {
  text-align: center;
  margin-top: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #888;
}
.form-card .form-footer a {
  color: #8b1a1a;
  font-weight: 600;
}

/* ── Members Page ── */
.members-page {
  padding-top: 90px;
  padding-bottom: 60px;
  min-height: 100vh;
  background: linear-gradient(135deg, #faf8f5 0%, #f0ebe3 100%);
}
.members-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}
.members-header h1 {
  font-size: 2rem;
  font-weight: 700;
}
.members-header h1 span { color: #8b1a1a; }
.members-header .user-info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #888;
}
.members-header .user-info strong { color: #2c2c2c; }
.members-header .logout-btn {
  background: transparent;
  border: 1.5px solid #ddd;
  padding: 8px 20px;
  border-radius: 30px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #888;
  cursor: pointer;
  transition: all 0.25s;
}
.members-header .logout-btn:hover {
  border-color: #8b1a1a;
  color: #8b1a1a;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.member-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.3s, box-shadow 0.3s;
}
.member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.07);
}
.member-card .photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.member-card .photo-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
}
.member-card .member-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.member-card .info {
  padding: 20px 22px;
}
.member-card .info .name {
  font-size: 1.15rem;
  font-weight: 700;
}
.member-card .info .detail {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #888;
  margin: 6px 0 4px;
  line-height: 1.6;
}
.member-card .info .tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 16px;
}
.member-card .info .tags span {
  background: #f0ebe3;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: 'Inter', sans-serif;
  color: #777;
}
.chat-btn {
  width: 100%;
  background: #8b1a1a;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s;
  font-family: inherit;
}
.chat-btn:hover { background: #a52a2a; }
.chat-btn:disabled {
  background: #ddd;
  color: #aaa;
  cursor: not-allowed;
}

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 30px 80px rgba(0,0,0,0.15);
  position: relative;
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #aaa;
  cursor: pointer;
  line-height: 1;
}
.modal h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.modal h2 span { color: #8b1a1a; }
.modal .modal-sub {
  font-family: 'Inter', sans-serif;
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.modal .form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid #e0ddd8;
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  background: #faf8f5;
  transition: border-color 0.25s;
  outline: none;
  resize: vertical;
  min-height: 100px;
}
.modal .form-group textarea:focus {
  border-color: #8b1a1a;
}
.modal .btn-primary {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
}

/* ── Admin Page ── */
.admin-page {
  padding-top: 90px;
  padding-bottom: 60px;
  min-height: 100vh;
  background: #f5f2ed;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}
.admin-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
}
.admin-header h1 span { color: #8b1a1a; }
.admin-header .back-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #8b1a1a;
  font-weight: 500;
}
.admin-tabs {
  display: flex;
  gap: 4px;
  background: #e8e3dc;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 32px;
  width: fit-content;
}
.admin-tab {
  padding: 10px 24px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  transition: all 0.25s;
}
.admin-tab.active {
  background: #fff;
  color: #2c2c2c;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.admin-table-wrap {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.04);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
}
.admin-table th {
  text-align: left;
  padding: 16px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #eee;
  background: #faf8f5;
}
.admin-table td {
  padding: 14px 20px;
  font-size: 0.9rem;
  border-bottom: 1px solid #f5f2ed;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #f0ebe3;
  color: #777;
}
.admin-table .badge.male { background: #dce8f5; color: #3a6a9e; }
.admin-table .badge.female { background: #f5dce8; color: #9e3a6a; }
.admin-table .badge.new { background: #e0f0e0; color: #2a7a3a; }
.admin-empty {
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
  font-family: 'Inter', sans-serif;
}
.admin-empty .big-icon { font-size: 3rem; margin-bottom: 12px; }
.admin-panel-section {
  display: none;
}
.admin-panel-section.active {
  display: block;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text h1 { font-size: 2.4rem; }
  .hero-actions { justify-content: center; }
  .hero-image .placeholder { max-width: 320px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .members-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: rgba(250,248,245,0.98);
    backdrop-filter: blur(12px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
  }
  .hero-text h1 { font-size: 2rem; }
  .section-title h2 { font-size: 1.8rem; }
  .cta h2 { font-size: 1.8rem; }
  .stat-item h3 { font-size: 2rem; }
  .members-grid { grid-template-columns: 1fr; }
  .form-card { padding: 36px 24px; }
  .admin-table-wrap { overflow-x: auto; }
}
