/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #7c3aed;
  --primary-light: #a78bfa;
  --primary-dark: #5b21b6;
  --accent: #8b5cf6;
  --accent-light: #c4b5fd;
  --gradient: linear-gradient(135deg, #a78bfa 0%, #e9d5ff 50%, #c4b5fd 100%);
  --gradient-strong: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  --gradient-soft: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  --bg: #faf5ff;
  --surface: #ffffff;
  --text: #2d1f3d;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e0f0;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  --shadow: 0 4px 24px rgba(124, 58, 237, 0.08);
  --shadow-lg: 0 8px 40px rgba(124, 58, 237, 0.15);
  --max-width: 480px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

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

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Header / Nav ===== */
.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--gradient-strong);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-strong);
  color: white;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border: 2px solid var(--primary-light);
}

.btn-secondary:hover {
  background: #f5f3ff;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 16px;
}

.btn-ghost:hover {
  color: var(--primary);
  background: #f5f3ff;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
}

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

/* ===== Landing Page - Hero ===== */
.spring-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 40%, #ddd6fe 100%);
  padding: 48px 20px 40px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.event-badge {
  background: var(--danger);
  color: white;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.hero-title {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text);
}

.hero-title .gradient-text {
  background: var(--gradient-strong);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-brand {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 320px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 300px;
}

.deadline-badge {
  margin-top: 20px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
  border: 1px solid var(--primary-light);
}

/* ===== Target Section ===== */
.target-section {
  background: var(--surface);
  padding: 48px 20px;
}

.target-list {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.target-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--gradient-soft);
  border-radius: var(--radius);
  font-size: 0.95rem;
  line-height: 1.5;
}

.target-check {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== Safety Section ===== */
.safety-section {
  background: var(--bg);
}

.safety-section {
  text-align: center;
}

.safety-badge {
  display: inline-block;
  background: var(--gradient-strong);
  color: white;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Features */
.features {
  padding: 48px 20px;
  background: var(--surface);
}

.features-title {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 32px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-card {
  background: var(--gradient-soft);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

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

.feature-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ===== Pricing Section ===== */
.pricing-section {
  background: var(--bg);
  text-align: center;
}

.pricing-event {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: -20px;
  margin-bottom: 24px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 320px;
  margin: 0 auto 24px;
}

.pricing-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 16px;
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
}

.pricing-card.male {
  border-color: #93c5fd;
}

.pricing-card.female {
  border-color: var(--primary-light);
}

.pricing-gender {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
}

.pricing-original {
  color: var(--text-light);
  text-decoration: line-through;
  font-size: 0.9rem;
}

.pricing-sale {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 4px;
}
.pricing-note {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 8px;
}
.pricing-warn {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--danger);
  margin-top: 4px;
}
.pricing-notice {
  margin-top: 16px;
  padding: 14px 16px;
  background: #faf5ff;
  border: 1.5px solid var(--primary-light);
  border-radius: var(--radius-sm);
  text-align: center;
}
.pricing-notice p {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.8;
}

.bank-info {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 20px;
  max-width: 320px;
  margin: 0 auto;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
}

.bank-info span {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.bank-info strong {
  color: var(--text);
}

/* ===== Steps Section ===== */
.steps-section {
  background: var(--surface);
}

.step-list {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--gradient-soft);
  border-radius: var(--radius);
}

.step-number {
  width: 32px;
  height: 32px;
  background: var(--gradient-strong);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.step-text {
  font-size: 0.95rem;
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(180deg, var(--surface) 0%, #f5f3ff 100%);
  text-align: center;
}

.cta-desc {
  color: var(--text-secondary);
  margin-top: -20px;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.cta-buttons {
  max-width: 300px;
  margin: 0 auto;
}

.notice-box {
  max-width: 320px;
  margin: 24px auto 0;
  padding: 16px;
  background: #f9fafb;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Footer */
.footer {
  text-align: center;
  padding: 24px 20px;
  font-size: 0.8rem;
  color: var(--text-light);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* ===== Forms ===== */
.form-section {
  padding: 24px 0;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}

.form-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.form-divider {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin: 32px 0 20px;
  padding: 12px;
  background: var(--gradient-soft);
  border-radius: var(--radius-sm);
}

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

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

.form-label .required {
  color: var(--accent);
  margin-left: 2px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-input::placeholder {
  color: var(--text-light);
}

textarea.form-input {
  resize: vertical;
  min-height: 80px;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* Gender Select */
.gender-select {
  display: flex;
  gap: 12px;
}

.gender-option {
  flex: 1;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--surface);
}

.gender-option:hover {
  border-color: var(--primary-light);
}

.gender-option.active {
  border-color: var(--primary);
  background: #f5f3ff;
  color: var(--primary);
  font-weight: 600;
}

.gender-option input {
  display: none;
}

/* MBTI Selector */
.mbti-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mbti-axis {
  display: flex;
  gap: 4px;
}

.mbti-axis-btn {
  flex: 1;
  padding: 10px 8px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.mbti-axis-btn:hover {
  border-color: var(--primary-light);
}

.mbti-axis-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.mbti-result {
  text-align: center;
  margin-top: 12px;
  padding: 12px;
  background: var(--gradient-soft);
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 4px;
}

/* Interest Tags */
.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interest-tag {
  padding: 8px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--surface);
  user-select: none;
}

.interest-tag:hover {
  border-color: var(--primary-light);
}

.interest-tag.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

/* Photo Upload */
.photo-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.photo-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition);
  background: var(--gradient-soft);
}

.photo-preview:hover {
  border-color: var(--primary-light);
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview .placeholder {
  font-size: 2.5rem;
  color: var(--text-light);
}

.photo-upload input[type="file"] {
  display: none;
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  background: var(--gradient-soft);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.auth-tab.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow);
}

/* ===== Dashboard ===== */
.dashboard {
  padding-bottom: 24px;
}

/* Tabs */
.tab-bar {
  display: flex;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 49px;
  z-index: 99;
}

.tab-item {
  flex: 1;
  padding: 14px 8px;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-bottom: 3px solid transparent;
  background: none;
  transition: all var(--transition);
}

.tab-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Profile Card */
.profile-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  margin: 16px 0;
  box-shadow: var(--shadow);
  text-align: center;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 12px;
  overflow: hidden;
  border: 3px solid var(--primary-light);
}

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

.profile-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.profile-info {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* MBTI Badge */
.mbti-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 8px;
}

.mbti-badge.analyst { background: #dbeafe; color: #1d4ed8; }
.mbti-badge.diplomat { background: #dcfce7; color: #15803d; }
.mbti-badge.sentinel { background: #fef3c7; color: #b45309; }
.mbti-badge.explorer { background: #ede9fe; color: #7c3aed; }

/* Match Cards */
.match-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 0;
}

.match-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.match-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.match-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
}

.match-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--primary-light);
}

.match-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.match-info {
  flex: 1;
  min-width: 0;
}

.match-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.match-meta {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-top: 2px;
}

.match-bio {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Compatibility Score */
.compat-score {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.compat-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.compat-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--gradient-strong);
  transition: width 0.6s ease;
}

.compat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

/* Interest chips in card */
.match-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 20px 12px;
}

.interest-chip {
  padding: 4px 10px;
  background: var(--gradient-soft);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
}

/* Card Actions */
.match-actions {
  display: flex;
  border-top: 1px solid var(--border);
}

.match-actions button {
  flex: 1;
  padding: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  background: none;
  transition: background var(--transition);
}

.match-actions .btn-pass {
  color: var(--text-secondary);
}

.match-actions .btn-pass:hover {
  background: #f3f4f6;
}

.match-actions .btn-like {
  color: var(--accent);
  border-left: 1px solid var(--border);
}

.match-actions .btn-like:hover {
  background: #f5f3ff;
}

/* Matched List */
.matched-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
}

.matched-badge {
  background: var(--gradient-strong);
  color: white;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
}

.kakao-id {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 12px;
  background: #fee500;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: #3c1e1e;
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-secondary);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.empty-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 4px;
}

.empty-desc {
  font-size: 0.9rem;
}

/* ===== Loading ===== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 12px 24px;
  background: var(--text);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 1000;
  transition: transform 0.3s ease;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--danger);
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 24px;
  width: 100%;
  max-width: 360px;
  text-align: center;
  transform: scale(0.9);
  transition: transform var(--transition);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 8px;
}

.modal-actions .btn {
  flex: 1;
}

/* ===== Section ===== */
.section-title {
  font-size: 1rem;
  font-weight: 700;
  padding: 16px 0 8px;
  color: var(--text);
}

.section-count {
  font-weight: 400;
  color: var(--text-light);
  font-size: 0.85rem;
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-sm { font-size: 0.85rem; }
.text-muted { color: var(--text-secondary); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.hidden { display: none !important; }

/* ===== Responsive ===== */
@media (min-width: 640px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .container {
    padding: 0 32px;
  }
}

@media (min-width: 768px) {
  :root {
    --max-width: 520px;
  }
}

/* ===== Compat desc ===== */
.compat-desc {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 2px;
}

/* ===== Logout ===== */
.btn-logout {
  background: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 6px 12px;
}

.btn-logout:hover {
  color: var(--danger);
}

/* ===== Profile edit ===== */
.profile-edit {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--primary);
  cursor: pointer;
}

.profile-edit:hover {
  text-decoration: underline;
}

/* ===== Swipe animation ===== */
.match-card.swiping-left {
  animation: swipeLeft 0.4s ease forwards;
}

.match-card.swiping-right {
  animation: swipeRight 0.4s ease forwards;
}

@keyframes swipeLeft {
  to {
    transform: translateX(-120%) rotate(-10deg);
    opacity: 0;
  }
}

@keyframes swipeRight {
  to {
    transform: translateX(120%) rotate(10deg);
    opacity: 0;
  }
}

/* ===== Default avatar ===== */
.default-avatar {
  width: 100%;
  height: 100%;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
}

.match-avatar .default-avatar {
  font-size: 1.3rem;
}

.profile-avatar .default-avatar {
  font-size: 2rem;
}

/* ===== Age Range Slider ===== */
.range-display {
  text-align: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.range-inputs {
  display: flex;
  gap: 12px;
  align-items: center;
}

.range-inputs input {
  flex: 1;
}

.range-inputs span {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* ===== Payment Confirmation ===== */
.payment-info-box {
  background: var(--gradient-soft);
  border: 2px solid var(--primary-light);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.payment-info-box .price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  margin: 8px 0;
}

.payment-info-box .account {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 600;
}

.depositor-input {
  margin-top: 12px;
}

/* ===== Status Check Section (index.html) ===== */
.status-section {
  background: var(--bg);
}

.status-desc {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: -20px;
  margin-bottom: 24px;
}

.status-form-card {
  max-width: 380px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
}

.status-field {
  margin-bottom: 16px;
}

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

.status-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
}

.status-input:focus {
  border-color: var(--primary);
}

.status-input::placeholder {
  color: var(--text-light);
}

.status-result-card {
  max-width: 380px;
  margin: 20px auto 0;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.status-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #f3f4f6;
}

.status-result-item:last-child {
  border-bottom: none;
}

.status-result-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.status-result-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.badge-paid { background: #dcfce7; color: #16a34a; }
.badge-unpaid { background: #fef2f2; color: #ef4444; }
.badge-matched { background: #f0e7ff; color: #7c3aed; }
.badge-waiting { background: #fef3c7; color: #d97706; }

.status-match-card {
  max-width: 380px;
  margin: 20px auto 0;
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 2px solid #e5e0f0;
}

.status-no-result {
  text-align: center;
  padding: 24px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 380px;
  margin: 20px auto 0;
}

.status-no-emoji {
  font-size: 2.5rem;
  margin-bottom: 8px;
}
