/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
dd { margin: 0; }
ol, ul { list-style: none; padding: 0; }

:root {
  /* Blues */
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;

  /* Cyans */
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;

  /* Grays */
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Semantic */
  --white: #ffffff;
  --footer-bg: #111827;

  /* Status colors */
  --red-500: #ef4444;
  --red-badge: #ff4757;
  --green-badge: #2ed573;
  --green-badge-text: #003d14;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.14);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.18);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-sans: 'Inter', 'Noto Sans JP', system-ui, sans-serif;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
img { max-width: 100%; }

/* ===========================
   ACCESSIBILITY
=========================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-600);
  color: #fff;
  padding: 10px 24px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  z-index: 9999;
  transition: top 0.2s;
  white-space: nowrap;
}
.skip-link:focus { top: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===========================
   HEADER
=========================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--blue-700);
  letter-spacing: -0.5px;
}
.logo-icon { font-size: 1.4rem; }
.logo-accent { color: var(--cyan-500); }
.logo-white { color: var(--white); }
.logo-white .logo-accent { color: var(--cyan-400); }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover { background: var(--blue-50); color: var(--blue-600); }

.btn-nav {
  margin-left: 8px;
  padding: 8px 20px;
  background: var(--blue-600);
  color: var(--white);
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-nav:hover {
  background: var(--blue-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.35);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--gray-100);
  background: var(--white);
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
  padding: 12px 4px;
  font-size: 0.95rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
.mobile-nav-link:last-child { border-bottom: none; }

/* ===========================
   HERO
=========================== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 45%, var(--cyan-500) 100%);
  padding-top: 64px;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.25;
  will-change: transform;
}
.blob1 { width: 500px; height: 500px; background: var(--cyan-400); top: -100px; right: -80px; }
.blob2 { width: 400px; height: 400px; background: var(--blue-400); bottom: -80px; left: -60px; }
.blob3 { width: 300px; height: 300px; background: #7c3aed; top: 40%; left: 40%; }

.hero-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px 64px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 18px;
}
.hero-accent {
  background: linear-gradient(90deg, #fff 0%, var(--cyan-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* SEARCH BOX */
.search-box {
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-xl);
  text-align: left;
}

.search-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: end;
}

.search-field { display: flex; flex-direction: column; gap: 6px; }

.search-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.search-select, .search-input {
  height: 48px;
  padding: 0 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.search-input {
  background-image: none;
  padding-right: 16px;
}
.search-select:focus, .search-input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

/* SEARCH BOTTOM ROW */
.search-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}

/* RECRUIT CHECKBOX */
.recruit-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-600);
  user-select: none;
}
.recruit-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue-600);
  cursor: pointer;
  flex-shrink: 0;
}

.search-btn {
  height: 48px;
  padding: 0 28px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 14px rgba(37,99,235,0.4);
}
.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.5);
}
.search-btn:active { transform: translateY(0); }

.search-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
}
.tag-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-500);
}
.quick-tag {
  padding: 5px 14px;
  background: var(--blue-50);
  color: var(--blue-700);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--blue-100);
  transition: background var(--transition), transform var(--transition);
}
.quick-tag:hover {
  background: var(--blue-100);
  transform: translateY(-1px);
}

/* STATS BAR */
.stats-bar {
  position: relative;
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-item { flex: 1; text-align: center; }
.stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.7); font-weight: 500; }
.stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.2); }

/* ===========================
   SECTION COMMON
=========================== */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
}
.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.5px;
}
.section-sub {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* ===========================
   CATEGORIES
=========================== */
.categories-section {
  padding: 72px 0;
  background: var(--white);
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 12px 20px;
  background: var(--gray-50);
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), background var(--transition),
              transform var(--transition), box-shadow var(--transition);
}
.cat-card:hover {
  border-color: var(--blue-300);
  background: var(--blue-50);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.cat-icon { font-size: 2rem; }
.cat-name { font-size: 0.88rem; font-weight: 700; color: var(--gray-700); }
.cat-count {
  font-size: 0.73rem;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 700;
}

/* ===========================
   CIRCLES SECTION
=========================== */
.circles-section {
  padding: 72px 0 96px;
  background: var(--gray-50);
}

.sort-area { flex-shrink: 0; }
.sort-select {
  height: 40px;
  padding: 0 36px 0 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--gray-700);
  background: var(--white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  font-weight: 600;
}
.sort-select:focus { outline: none; border-color: var(--blue-400); }

/* ACTIVE FILTERS */
.active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  padding: 14px 18px;
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-md);
}
.filter-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-700);
}
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px 4px 12px;
  background: var(--blue-600);
  color: var(--white);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}
.filter-tag-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  font-size: 0.6rem;
  color: white;
  cursor: pointer;
  transition: background var(--transition);
  line-height: 1;
  flex-shrink: 0;
}
.filter-tag-remove:hover { background: rgba(255,255,255,0.45); }

.clear-filters {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--gray-500);
  padding: 4px 10px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.clear-filters:hover { background: var(--gray-200); color: var(--gray-700); }

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* CIRCLE CARD */
.circle-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.circle-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  position: relative;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
}
.card-image-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  transition: transform 0.4s ease;
}
.circle-card:hover .card-image-bg { transform: scale(1.08); }

.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.badge {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.badge-sport { background: rgba(255,255,255,0.92); color: var(--blue-700); }
.badge-new { background: var(--red-badge); color: var(--white); }
.badge-recruit { background: var(--green-badge); color: var(--green-badge-text); }

.card-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  backdrop-filter: blur(8px);
  transition: transform var(--transition), background var(--transition);
}
.card-fav:hover { transform: scale(1.2); }
.card-fav.active { background: var(--red-badge); }

.card-body { padding: 16px; flex: 1; }

.card-sport-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--blue-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.card-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.3;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}
.card-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--gray-500);
  font-weight: 500;
}
.meta-icon { font-size: 0.85rem; }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  flex-shrink: 0;
}
.card-members { display: flex; align-items: center; gap: 6px; }
.members-avatars { display: flex; }
.member-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: -7px;
  color: white;
}
.member-avatar:first-child { margin-left: 0; }
.members-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-600);
}
.card-btn {
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: var(--white);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}
.card-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.45);
}

/* NO RESULTS */
.no-results { text-align: center; padding: 80px 24px; }
.no-results-icon { font-size: 4rem; margin-bottom: 16px; }
.no-results h3 { font-size: 1.3rem; color: var(--gray-700); margin-bottom: 8px; }
.no-results p { color: var(--gray-400); margin-bottom: 24px; }

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: var(--white);
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37,99,235,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,0.5); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 12px 36px;
  background: var(--white);
  color: var(--blue-600);
  border: 2px solid var(--blue-500);
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition);
}
.btn-outline:hover { background: var(--blue-50); transform: translateY(-2px); }

.load-more-area { text-align: center; margin-top: 48px; }

/* ===========================
   HOW IT WORKS
=========================== */
.how-section {
  padding: 80px 0;
  background: var(--white);
}
.steps-grid {
  display: flex;
  align-items: center;
}
.step-card {
  flex: 1;
  text-align: center;
  padding: 36px 28px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 2px solid var(--gray-100);
}
.step-arrow { font-size: 1.5rem; color: var(--blue-300); padding: 0 16px; flex-shrink: 0; }
.step-num { font-size: 0.7rem; font-weight: 800; color: var(--blue-500); letter-spacing: 1px; margin-bottom: 12px; }
.step-icon { font-size: 2.5rem; margin-bottom: 14px; }
.step-title { font-size: 1rem; font-weight: 800; color: var(--gray-800); margin-bottom: 8px; }
.step-desc { font-size: 0.85rem; color: var(--gray-500); line-height: 1.6; }

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--footer-bg);
  padding: 56px 0 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 64px;
}
.footer-brand .logo { margin-bottom: 16px; display: inline-flex; }
.footer-desc { font-size: 0.85rem; color: var(--gray-400); line-height: 1.7; max-width: 300px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}
.footer-link { display: block; font-size: 0.88rem; color: var(--gray-400); padding: 5px 0; transition: color var(--transition); }
.footer-link:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding: 20px 24px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-bottom p { font-size: 0.8rem; color: var(--gray-500); }

/* ===========================
   MODAL
=========================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(30px) scale(0.97);
  transition: transform var(--transition);
  box-shadow: var(--shadow-xl);
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
}
.modal::-webkit-scrollbar { width: 6px; }
.modal::-webkit-scrollbar-track { background: transparent; }
.modal::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: sticky;
  top: 16px;
  float: right;
  margin: 16px 16px -32px;
  width: 32px;
  height: 32px;
  background: var(--gray-100);
  border-radius: 50%;
  font-size: 0.85rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
  z-index: 10;
}
.modal-close:hover { background: var(--gray-200); color: var(--gray-800); }

.modal-content { padding: 24px; }

.modal-hero {
  height: 200px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  margin-bottom: 24px;
}
.modal-badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.modal-badge { padding: 4px 12px; border-radius: 100px; font-size: 0.78rem; font-weight: 700; }
.modal-sport-badge { background: var(--blue-100); color: var(--blue-700); }
.modal-region-badge { background: var(--gray-100); color: var(--gray-600); }
.modal-level-badge { background: #fef3c7; color: #92400e; }

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.modal-desc {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 24px;
}
.modal-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.modal-info-item {
  padding: 14px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
}
.modal-info-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: block;
}
.modal-info-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-800);
  display: block;
}
.modal-cta { display: flex; gap: 12px; }
.modal-btn-primary {
  flex: 1;
  padding: 14px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 4px 14px rgba(37,99,235,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.modal-btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,0.5); }
.modal-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.modal-btn-secondary {
  padding: 14px 20px;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--transition);
}
.modal-btn-secondary:hover { background: var(--gray-200); }

/* ===========================
   TOAST
=========================== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1f2937;
  color: #f9fafb;
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.toast.toast-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .search-row { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .steps-grid { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); padding: 8px 0; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .search-row { grid-template-columns: 1fr; }
  .search-bottom-row { flex-direction: column; align-items: stretch; }
  .search-btn { height: 48px; width: 100%; }
  .recruit-check { justify-content: center; }
  .cards-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { flex-wrap: wrap; gap: 20px; }
  .stat-divider { display: none; }
  .stat-item { min-width: 45%; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .modal-info-grid { grid-template-columns: 1fr; }
  .modal-cta { flex-direction: column; }
  .hero-inner { padding: 60px 20px 48px; }
}

/* ===========================
   ANIMATIONS
=========================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.circle-card { animation: fadeInUp 0.4s ease both; }

/* ===========================
   REDUCED MOTION
=========================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===========================
   AUTH PAGES (login / register)
=========================== */
.auth-bg {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 45%, var(--cyan-500) 100%);
  position: relative;
  overflow: hidden;
}
.auth-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.2;
  pointer-events: none;
}
.auth-blob-1 { width: 420px; height: 420px; background: var(--cyan-400); top: -80px; right: -60px; }
.auth-blob-2 { width: 320px; height: 320px; background: #7c3aed; bottom: 5%; left: -60px; }

.auth-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  position: relative;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-xl);
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--blue-700);
  letter-spacing: -0.5px;
  margin-bottom: 28px;
}

.auth-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.auth-sub {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 32px;
}

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

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-600);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.form-input::placeholder { color: var(--gray-400); }

.form-input.error { border-color: var(--red-500); }
.form-error {
  font-size: 0.78rem;
  color: var(--red-500);
  margin-top: 4px;
  display: none;
}
.form-error.visible { display: block; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-select {
  width: 100%;
  height: 48px;
  padding: 0 40px 0 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--gray-800);
  background: var(--white);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--gray-600);
  user-select: none;
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue-600);
  flex-shrink: 0;
  cursor: pointer;
}

.form-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.form-link {
  font-size: 0.85rem;
  color: var(--blue-600);
  font-weight: 600;
  transition: color var(--transition);
}
.form-link:hover { color: var(--blue-700); text-decoration: underline; }

.form-submit {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37,99,235,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  margin-bottom: 24px;
}
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.5);
}
.form-submit:active { transform: translateY(0); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.auth-divider::before,
.auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }
.auth-divider span { font-size: 0.8rem; color: var(--gray-400); font-weight: 600; white-space: nowrap; }

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  background: var(--white);
  margin-bottom: 12px;
  transition: border-color var(--transition), background var(--transition);
}
.social-btn:hover { border-color: var(--gray-300); background: var(--gray-50); }
.social-icon { font-size: 1.1rem; }

.auth-footer-text {
  text-align: center;
  font-size: 0.88rem;
  color: var(--gray-500);
  margin-top: 24px;
}

/* PASSWORD TOGGLE */
.password-wrapper { position: relative; }
.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--gray-400);
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  line-height: 1;
  transition: color var(--transition);
}
.password-toggle:hover { color: var(--gray-600); }

/* SPORT INTEREST CHECKBOXES */
.sport-tags-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.sport-tag-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  user-select: none;
}
.sport-tag-label:hover { border-color: var(--blue-300); background: var(--blue-50); }
.sport-tag-label input[type="checkbox"] { display: none; }
.sport-tag-label.checked {
  border-color: var(--blue-500);
  background: var(--blue-50);
  color: var(--blue-700);
}

/* PROGRESS STEPS (register) */
.auth-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
}
.auth-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-400);
}
.auth-step.active { color: var(--blue-600); }
.auth-step.done { color: var(--green-badge); }
.auth-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}
.auth-step.active .auth-step-num { background: var(--blue-600); color: var(--white); }
.auth-step.done .auth-step-num { background: var(--green-badge); color: var(--green-badge-text); }
.auth-step-line { width: 40px; height: 2px; background: var(--gray-200); margin: 0 4px; }
.auth-step-line.done { background: var(--green-badge); }

/* ===========================
   DASHBOARD
=========================== */
.dash-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--gray-50);
  padding-top: 64px;
}

.dash-hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 60%, var(--cyan-500) 100%);
  padding: 36px 24px;
}
.dash-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.dash-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-400), var(--blue-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,0.3);
}
.dash-hero-info h1 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}
.dash-hero-info p { font-size: 0.88rem; color: rgba(255,255,255,0.7); }
.dash-hero-stats {
  display: flex;
  gap: 40px;
  margin-left: auto;
}
.dash-stat { text-align: center; }
.dash-stat-num {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}
.dash-stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.65); font-weight: 500; }

.dash-layout {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 36px 24px 60px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
}

.dash-sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 12px;
  border: 1px solid var(--gray-200);
  position: sticky;
  top: 88px;
  box-shadow: var(--shadow-sm);
}
.dash-nav { display: flex; flex-direction: column; gap: 2px; }
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.dash-nav-item:hover { background: var(--blue-50); color: var(--blue-700); }
.dash-nav-item.active { background: var(--blue-600); color: var(--white); }
.dash-nav-icon { font-size: 1rem; flex-shrink: 0; }
.dash-nav-divider { height: 1px; background: var(--gray-100); margin: 8px 4px; }
.dash-nav-badge {
  margin-left: auto;
  background: var(--red-badge);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 100px;
}
.dash-nav-item.active .dash-nav-badge { background: rgba(255,255,255,0.3); }

.dash-main { display: flex; flex-direction: column; gap: 24px; }

.dash-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: none;
}
.dash-panel.active { display: block; }

.dash-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
}
.dash-panel-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-panel-body { padding: 24px; }

/* PROFILE */
.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-400), var(--blue-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
}
.profile-avatar-info h3 { font-size: 1.1rem; font-weight: 800; color: var(--gray-900); margin-bottom: 4px; }
.profile-avatar-info p { font-size: 0.85rem; color: var(--gray-500); }
.profile-avatar-btn {
  margin-left: auto;
  padding: 8px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--white);
  transition: border-color var(--transition), background var(--transition);
}
.profile-avatar-btn:hover { border-color: var(--blue-400); background: var(--blue-50); color: var(--blue-700); }

.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.profile-full { grid-column: 1 / -1; }
.profile-save-row { display: flex; justify-content: flex-end; padding-top: 8px; }

/* FAVORITES */
.fav-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.fav-empty { text-align: center; padding: 56px 24px; color: var(--gray-400); }
.fav-empty-icon { font-size: 3rem; margin-bottom: 12px; }
.fav-empty p { font-size: 0.9rem; margin-bottom: 20px; line-height: 1.6; }

.fav-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
  background: var(--white);
}
.fav-card:hover { border-color: var(--blue-300); box-shadow: var(--shadow-md); }
.fav-card-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.fav-card-body { flex: 1; min-width: 0; }
.fav-card-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fav-card-meta { font-size: 0.76rem; color: var(--gray-500); line-height: 1.5; }
.fav-card-status {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 4px;
}
.fav-status-open { background: #dcfce7; color: #16a34a; }
.fav-status-closed { background: var(--gray-100); color: var(--gray-500); }
.fav-remove {
  color: var(--gray-300);
  font-size: 1rem;
  flex-shrink: 0;
  padding: 2px;
  align-self: flex-start;
  transition: color var(--transition);
  line-height: 1;
}
.fav-remove:hover { color: var(--red-500); }

/* HISTORY */
.history-list { display: flex; flex-direction: column; gap: 12px; }
.history-empty { text-align: center; padding: 56px 24px; color: var(--gray-400); }
.history-empty-icon { font-size: 3rem; margin-bottom: 12px; }
.history-empty p { font-size: 0.9rem; }

.history-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  background: var(--gray-50);
}
.history-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.history-body { flex: 1; min-width: 0; }
.history-name { font-size: 0.9rem; font-weight: 700; color: var(--gray-900); margin-bottom: 3px; }
.history-meta { font-size: 0.78rem; color: var(--gray-400); }
.history-status {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.status-pending  { background: #fef3c7; color: #92400e; }
.status-approved { background: #dcfce7; color: #16a34a; }
.status-declined { background: #fee2e2; color: #dc2626; }

/* DASHBOARD BUTTONS */
.dash-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(37,99,235,0.35);
  transition: transform var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
}
.dash-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 5px 15px rgba(37,99,235,0.45); }

.dash-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--white);
  transition: border-color var(--transition), background var(--transition);
  cursor: pointer;
}
.dash-btn-ghost:hover { border-color: var(--blue-400); background: var(--blue-50); color: var(--blue-700); }

/* RESPONSIVE — dashboard */
@media (max-width: 860px) {
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; }
  .dash-nav { flex-direction: row; flex-wrap: wrap; }
  .dash-nav-item { flex: 1; justify-content: center; min-width: 0; }
  .dash-nav-icon { display: none; }
  .profile-grid { grid-template-columns: 1fr; }
  .fav-grid { grid-template-columns: 1fr; }
  .dash-hero-stats { gap: 24px; }
}
@media (max-width: 640px) {
  .auth-card { padding: 32px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .sport-tags-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-hero-inner { flex-wrap: wrap; }
  .dash-hero-stats { margin-left: 0; width: 100%; justify-content: space-around; }
}

/* DARK MODE — auth & dashboard */
@media (prefers-color-scheme: dark) {
  .auth-card { background: #1e293b; }
  .form-input  { background: #0f172a; border-color: #334155; color: #e2e8f0; }
  .form-input:focus { border-color: var(--blue-400); }
  .form-input::placeholder { color: #475569; }
  .form-select { background: #0f172a; border-color: #334155; color: #e2e8f0; color-scheme: dark; }
  .form-select:focus { border-color: var(--blue-400); }
  .social-btn { background: #1e293b; border-color: #334155; color: #cbd5e1; }
  .social-btn:hover { background: #334155; }
  .auth-divider::before, .auth-divider::after { background: #334155; }
  .sport-tag-label { border-color: #334155; color: #cbd5e1; }
  .sport-tag-label:hover { background: #172554; border-color: var(--blue-400); }
  .sport-tag-label.checked { background: #172554; border-color: var(--blue-500); color: var(--blue-300); }
  .auth-step-num { background: #334155; color: #94a3b8; }
  .auth-step-line { background: #334155; }

  .dash-panel { background: #1e293b; border-color: #334155; }
  .dash-panel-header { border-bottom-color: #334155; }
  .dash-sidebar { background: #1e293b; border-color: #334155; }
  .dash-nav-divider { background: #334155; }
  .profile-avatar-row { background: #0f172a; border-bottom-color: #334155; }
  .profile-avatar-btn { background: #1e293b; border-color: #334155; color: #cbd5e1; }
  .history-item { background: #0f172a; border-color: #334155; }
  .fav-card { background: #1e293b; border-color: #334155; }
  .fav-card:hover { border-color: var(--blue-500); }
  .dash-btn-ghost { background: #1e293b; border-color: #334155; color: #cbd5e1; }
}

/* ===========================
   DARK MODE
=========================== */
@media (prefers-color-scheme: dark) {
  :root {
    --gray-50:  #0f172a;
    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-300: #475569;
    --gray-400: #64748b;
    --gray-500: #94a3b8;
    --gray-600: #cbd5e1;
    --gray-700: #e2e8f0;
    --gray-800: #f1f5f9;
    --gray-900: #f8fafc;
    --white:    #1e293b;
    --blue-50:  #172554;
    --blue-100: #1e3a8a;
  }

  /* Footer always dark */
  .footer { background: #0f172a; }
  .footer-bottom { border-top-color: #1e293b; }

  /* Header */
  .header {
    background: rgba(15, 23, 42, 0.92);
    border-bottom-color: #334155;
  }

  /* Search box */
  .search-box { background: rgba(15, 23, 42, 0.97); }
  .search-bottom-row { border-top-color: #334155; }
  .search-tags { border-top-color: #334155; }

  .search-select,
  .search-input {
    background: #0f172a;
    color: #e2e8f0;
    border-color: #334155;
    color-scheme: dark;
  }
  .search-select:focus,
  .search-input:focus { border-color: var(--blue-400); }

  .sort-select {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #334155;
    color-scheme: dark;
  }

  .quick-tag {
    background: #172554;
    border-color: #1e3a8a;
    color: var(--blue-300);
  }
  .quick-tag:hover { background: #1e3a8a; }

  /* Cards */
  .card-sport-tag { color: var(--blue-400); }
  .card-fav { background: rgba(30, 41, 59, 0.9); }

  /* Modal */
  .modal { background: #1e293b; }
  .modal-close { background: #334155; color: #cbd5e1; }
  .modal-close:hover { background: #475569; }
  .modal-info-item { background: #0f172a; }
  .modal-btn-secondary { background: #334155; color: #e2e8f0; }
  .modal-btn-secondary:hover { background: #475569; }
  .modal-level-badge { background: #451a03; color: #fcd34d; }

  /* Active filters */
  .active-filters { background: #172554; border-color: #1e3a8a; }

  /* Recruit checkbox */
  .recruit-check { color: #cbd5e1; }
}

/* ===========================
   INNER PAGE HERO (shared)
=========================== */
.inner-page { padding-top: 64px; }

.inner-hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 60%, var(--cyan-500) 100%);
  padding: 48px 24px;
  position: relative;
  overflow: hidden;
}
.inner-hero::before,
.inner-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
  pointer-events: none;
}
.inner-hero::before { width: 400px; height: 400px; background: var(--cyan-400); top: -80px; right: -60px; }
.inner-hero::after  { width: 300px; height: 300px; background: #7c3aed; bottom: -60px; left: -60px; }
.inner-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; }

.inner-hero-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.inner-hero-sub { font-size: 0.9rem; color: rgba(255,255,255,0.75); }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
}
.breadcrumb a { color: rgba(255,255,255,0.7); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { opacity: 0.4; }
.breadcrumb-current { color: rgba(255,255,255,0.9); font-weight: 600; }

.page-body { max-width: 1200px; margin: 0 auto; padding: 48px 24px 80px; }

/* ===========================
   CIRCLE DETAIL
=========================== */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}
.detail-main { display: flex; flex-direction: column; gap: 24px; }

.detail-main-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.detail-hero-img {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7rem;
}
.detail-body { padding: 28px; }

.detail-badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.detail-badge { padding: 4px 14px; border-radius: 100px; font-size: 0.78rem; font-weight: 700; }
.detail-badge-sport  { background: var(--blue-100); color: var(--blue-700); }
.detail-badge-region { background: var(--gray-100); color: var(--gray-600); }
.detail-badge-level  { background: #fef3c7; color: #92400e; }
.detail-badge-new    { background: var(--red-badge); color: var(--white); }
.detail-badge-open   { background: #dcfce7; color: #16a34a; }
.detail-badge-closed { background: var(--gray-100); color: var(--gray-500); }

.detail-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  line-height: 1.2;
}
.detail-desc {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.85;
  margin-bottom: 28px;
}

.detail-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.detail-info-item {
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
}
.detail-info-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: block;
}
.detail-info-value { font-size: 1rem; font-weight: 700; color: var(--gray-800); display: block; }

.detail-members-section { margin-bottom: 24px; }
.detail-members-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.detail-members-label { font-size: 0.82rem; font-weight: 700; color: var(--gray-600); }
.detail-members-count { font-size: 0.82rem; font-weight: 700; color: var(--gray-700); }
.members-bar { height: 8px; background: var(--gray-200); border-radius: 100px; overflow: hidden; }
.members-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-500), var(--cyan-500));
  border-radius: 100px;
  transition: width 0.6s ease;
}
.members-bar-fill.full { background: linear-gradient(90deg, #ef4444, #f97316); }

.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-tag {
  padding: 5px 14px;
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid var(--blue-100);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* DETAIL SIDEBAR */
.detail-sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 88px; }

.detail-cta-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.detail-cta-title { font-size: 0.82rem; font-weight: 700; color: var(--gray-500); margin-bottom: 14px; text-align: center; }
.detail-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-family: inherit;
}
.detail-cta-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37,99,235,0.4);
}
.detail-cta-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,0.5); }
.detail-cta-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.detail-cta-secondary { background: var(--gray-100); color: var(--gray-700); }
.detail-cta-secondary:hover { background: var(--gray-200); }

.detail-cta-info { margin-top: 16px; border-top: 1px solid var(--gray-100); padding-top: 16px; }
.detail-cta-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.82rem;
}
.detail-cta-info-item:last-child { border-bottom: none; }
.detail-cta-info-icon { font-size: 0.9rem; flex-shrink: 0; }
.detail-cta-info-label { color: var(--gray-500); }
.detail-cta-info-value { margin-left: auto; font-weight: 700; color: var(--gray-700); }

/* RELATED CIRCLES */
.related-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.related-title { font-size: 1rem; font-weight: 800; color: var(--gray-900); margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.related-card:hover { border-color: var(--blue-300); box-shadow: var(--shadow-sm); }
.related-card-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.related-card-name { font-size: 0.82rem; font-weight: 700; color: var(--gray-900); margin-bottom: 2px; line-height: 1.3; }
.related-card-meta { font-size: 0.73rem; color: var(--gray-500); }

/* Detail responsive */
@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .detail-info-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .detail-hero-img { height: 200px; font-size: 5rem; }
  .detail-name { font-size: 1.4rem; }
}

/* ===========================
   CIRCLE REGISTER
=========================== */
.creg-preview {
  background: var(--gray-50);
  border: 2px solid var(--blue-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.creg-preview-hero {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
}
.creg-preview-body { padding: 16px; }
.creg-preview-name { font-size: 1rem; font-weight: 800; color: var(--gray-900); margin-bottom: 6px; }
.creg-preview-row { font-size: 0.8rem; color: var(--gray-500); margin-bottom: 3px; }
.creg-preview-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.creg-preview-tag { padding: 2px 10px; background: var(--blue-100); color: var(--blue-700); border-radius: 100px; font-size: 0.72rem; font-weight: 700; }

/* ===========================
   FAQ PAGE
=========================== */
.faq-page-body { max-width: 800px; margin: 0 auto; padding: 48px 24px 80px; }

.faq-search-bar {
  display: flex;
  gap: 0;
  margin-bottom: 36px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  transition: border-color var(--transition);
  box-shadow: var(--shadow-sm);
}
.faq-search-bar:focus-within { border-color: var(--blue-500); }
.faq-search-icon { padding: 0 16px; font-size: 1.1rem; display: flex; align-items: center; color: var(--gray-400); }
.faq-search-input {
  flex: 1;
  height: 52px;
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--gray-800);
  background: transparent;
}
.faq-search-input::placeholder { color: var(--gray-400); }

.faq-category-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-600);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 36px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.faq-category-title:first-child { margin-top: 0; }
.faq-category-title::after { content: ''; flex: 1; height: 1px; background: var(--blue-100); }

.faq-list {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.faq-item { border-bottom: 1px solid var(--gray-100); }
.faq-item:last-child { border-bottom: none; }

.faq-question {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 18px 24px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gray-800);
  font-family: inherit;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--gray-50); }
.faq-question[aria-expanded="true"] { background: var(--blue-50); color: var(--blue-700); }
.faq-q-icon { font-size: 1rem; color: var(--blue-500); flex-shrink: 0; }
.faq-q-text { flex: 1; }
.faq-chevron { font-size: 0.7rem; color: var(--gray-400); flex-shrink: 0; transition: transform var(--transition); }
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); color: var(--blue-500); }

.faq-answer {
  display: none;
  padding: 0 24px 20px 52px;
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.85;
  background: var(--blue-50);
  border-top: 1px solid rgba(59,130,246,0.1);
}
.faq-answer.open { display: block; }
.faq-answer a { color: var(--blue-600); text-decoration: underline; }
.faq-no-results { text-align: center; padding: 48px 24px; color: var(--gray-400); font-size: 0.9rem; }

/* ===========================
   CONTACT PAGE
=========================== */
.contact-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 88px;
}
.contact-info-title { font-size: 1rem; font-weight: 800; color: var(--gray-900); margin-bottom: 20px; }
.contact-info-item { display: flex; gap: 12px; margin-bottom: 18px; }
.contact-info-item:last-of-type { margin-bottom: 0; }
.contact-info-icon { font-size: 1.3rem; flex-shrink: 0; }
.contact-info-label { font-size: 0.72rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.contact-info-value { font-size: 0.88rem; color: var(--gray-700); font-weight: 500; line-height: 1.5; }
.contact-notice {
  margin-top: 20px;
  padding: 14px;
  background: var(--blue-50);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: var(--blue-700);
  line-height: 1.6;
  border-left: 3px solid var(--blue-400);
}
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.contact-form-title { font-size: 1.1rem; font-weight: 800; color: var(--gray-900); margin-bottom: 24px; }
.contact-success { display: none; text-align: center; padding: 48px 24px; }
.contact-success.show { display: block; }
.contact-success-icon { font-size: 3.5rem; margin-bottom: 16px; }
.contact-success h3 { font-size: 1.2rem; font-weight: 800; color: var(--gray-900); margin-bottom: 8px; }
.contact-success p { font-size: 0.9rem; color: var(--gray-500); line-height: 1.7; }

/* Contact + FAQ responsive */
@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info-card { position: static; }
  .faq-answer { padding-left: 24px; }
}

/* DARK MODE — detail / faq / contact */
@media (prefers-color-scheme: dark) {
  .detail-main-card { background: #1e293b; border-color: #334155; }
  .detail-info-item { background: #0f172a; border-color: #334155; }
  .detail-tag { background: #172554; border-color: #1e3a8a; color: var(--blue-300); }
  .detail-cta-card { background: #1e293b; border-color: #334155; }
  .detail-cta-secondary { background: #334155; color: #e2e8f0; }
  .detail-cta-secondary:hover { background: #475569; }
  .detail-cta-info { border-top-color: #334155; }
  .detail-cta-info-item { border-bottom-color: #334155; }
  .related-section { background: #1e293b; border-color: #334155; }
  .related-card { background: #0f172a; border-color: #334155; }
  .related-card:hover { border-color: var(--blue-500); }
  .members-bar { background: #334155; }
  .creg-preview { background: #0f172a; border-color: #1e3a8a; }
  .faq-list { background: #1e293b; border-color: #334155; }
  .faq-item { border-bottom-color: #334155; }
  .faq-question { color: #e2e8f0; }
  .faq-question:hover { background: #0f172a; }
  .faq-question[aria-expanded="true"] { background: #172554; color: var(--blue-300); }
  .faq-answer { background: #172554; border-top-color: #1e3a8a; color: #cbd5e1; }
  .faq-search-bar { background: #1e293b; border-color: #334155; }
  .faq-search-input { color: #e2e8f0; }
  .contact-info-card { background: #1e293b; border-color: #334155; }
  .contact-form-card { background: #1e293b; border-color: #334155; }
  .contact-notice { background: #172554; color: var(--blue-300); border-left-color: var(--blue-500); }
}

/* ===========================
   FAV CARD LINK
   =========================== */
.fav-card { position: relative; }
.fav-card-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 0;
}
.fav-card-link:hover .fav-card-name { color: var(--blue-600); }
.fav-card-link:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; border-radius: 12px; }

/* ===========================
   POLICY / COMPANY PAGES
   =========================== */
.policy-body { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.policy-body h2 { font-size: 1.15rem; font-weight: 700; color: var(--gray-800); margin: 36px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--gray-100); }
.policy-body h2:first-child { margin-top: 0; }
.policy-body p, .policy-body li { font-size: 0.93rem; color: var(--gray-600); line-height: 1.85; }
.policy-body ul { padding-left: 1.4em; margin: 8px 0 16px; }
.policy-body li { margin-bottom: 6px; }
.policy-body .policy-updated { font-size: 0.82rem; color: var(--gray-400); margin-bottom: 32px; }
.policy-body table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 16px 0; }
.policy-body th, .policy-body td { padding: 10px 14px; border: 1px solid var(--gray-200); text-align: left; }
.policy-body th { background: var(--gray-50); font-weight: 600; color: var(--gray-700); }

@media (prefers-color-scheme: dark) {
  .fav-card-link:hover .fav-card-name { color: var(--blue-300); }
  .policy-body h2 { color: #e2e8f0; border-bottom-color: #334155; }
  .policy-body p, .policy-body li { color: #cbd5e1; }
  .policy-body th { background: #1e293b; color: #e2e8f0; }
  .policy-body th, .policy-body td { border-color: #334155; }
}

/* ===========================
   APPLY MODAL
   =========================== */
.apply-circle-preview {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--gray-50);
  border-radius: 10px; margin-bottom: 20px;
}
.apply-circle-icon {
  width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.apply-circle-name { font-weight: 700; font-size: 0.95rem; color: var(--gray-800); }
.apply-circle-sport { font-size: 0.8rem; color: var(--gray-500); margin-top: 2px; }
.form-input.apply-readonly { background: var(--gray-50); color: var(--gray-500); cursor: not-allowed; }
.detail-cta-primary.applied {
  background: var(--gray-200) !important; color: var(--gray-500) !important; cursor: default;
}

/* ===========================
   HISTORY UPDATES
   =========================== */
.history-icon-link { text-decoration: none; flex-shrink: 0; }
.history-name-link {
  font-weight: 700; color: var(--gray-800); text-decoration: none; display: block;
}
.history-name-link:hover { color: var(--blue-600); text-decoration: underline; }
.history-cancel {
  font-size: 0.75rem; color: var(--gray-400); background: none;
  border: 1px solid var(--gray-200); border-radius: 6px;
  padding: 3px 10px; cursor: pointer; margin-top: 6px;
  transition: all 0.15s; display: inline-block;
}
.history-cancel:hover { border-color: #f87171; color: #ef4444; }
.history-empty { text-align: center; padding: 56px 24px; color: var(--gray-400); }
.history-empty-icon { font-size: 3rem; margin-bottom: 12px; }

/* ===========================
   FAV CARD EXTRA INFO
   =========================== */
.fav-card-extra {
  font-size: 0.73rem; color: var(--gray-400);
  margin-top: 5px; line-height: 1.5;
}

/* ===========================
   DANGER ZONE (ACCOUNT DELETE)
   =========================== */
.danger-zone {
  margin-top: 36px; padding: 20px 24px;
  border: 1px solid #fecaca; border-radius: 12px; background: #fff5f5;
}
.danger-zone-title { font-size: 0.9rem; font-weight: 700; color: #dc2626; margin-bottom: 8px; }
.danger-zone-desc { font-size: 0.83rem; color: var(--gray-600); margin-bottom: 16px; line-height: 1.65; }
.dash-btn-danger {
  background: transparent; color: #ef4444;
  border: 1.5px solid #f87171; border-radius: 8px;
  padding: 8px 20px; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.dash-btn-danger:hover { background: #ef4444; color: white; border-color: #ef4444; }

/* ===========================
   BACK TO TOP BUTTON
   =========================== */
.back-to-top {
  position: fixed; bottom: 28px; right: 24px;
  width: 46px; height: 46px;
  background: var(--blue-600); color: white;
  border: none; border-radius: 50%; font-size: 1.3rem;
  cursor: pointer; opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, background 0.2s;
  z-index: 90; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: #1d4ed8; }

@media (prefers-color-scheme: dark) {
  .apply-circle-preview { background: #1e293b; }
  .apply-circle-name { color: #e2e8f0; }
  .form-input.apply-readonly { background: #1e293b; color: #64748b; }
  .history-name-link { color: #e2e8f0; }
  .history-name-link:hover { color: var(--blue-300); }
  .history-cancel { border-color: #334155; }
  .danger-zone { background: #1f0808; border-color: #7f1d1d; }
  .danger-zone-desc { color: #cbd5e1; }
}

/* ===========================
   PASSWORD STRENGTH METER
=========================== */
.pw-strength-bar {
  height: 4px; border-radius: 2px; margin-top: 8px;
  background: var(--gray-200);
  overflow: hidden;
}
.pw-strength-fill {
  height: 100%; width: 0; border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
}
.pw-strength-fill.weak   { width: 33%; background: var(--red-500); }
.pw-strength-fill.medium { width: 66%; background: #f59e0b; }
.pw-strength-fill.strong { width: 100%; background: #22c55e; }
.pw-strength-label {
  font-size: 0.72rem; margin-top: 4px; font-weight: 600;
  transition: color 0.3s;
}
.pw-strength-label.weak   { color: var(--red-500); }
.pw-strength-label.medium { color: #f59e0b; }
.pw-strength-label.strong { color: #22c55e; }

/* ===========================
   RECENTLY VIEWED (dashboard)
=========================== */
.recent-section {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-100);
}
.recent-section-title {
  font-size: 0.85rem; font-weight: 700;
  color: var(--gray-600); margin-bottom: 12px;
}
.recent-list {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.recent-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 6px; border-radius: 10px;
  background: var(--gray-50); border: 1px solid var(--gray-100);
  text-decoration: none; color: var(--gray-700);
  font-size: 0.82rem; font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
  max-width: 200px;
}
.recent-item:hover { background: var(--blue-50); border-color: var(--blue-200); }
.recent-item-icon {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.recent-item-name {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ===========================
   MY-CIRCLES CARDS (dashboard)
=========================== */
.my-circles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.my-circle-card {
  border: 1px solid var(--gray-100);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.my-circle-card-img {
  height: 72px; display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.my-circle-card-body {
  padding: 12px 14px;
}
.my-circle-card-name {
  font-size: 0.9rem; font-weight: 700; color: var(--gray-800);
  margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.my-circle-card-meta {
  font-size: 0.78rem; color: var(--gray-500); margin-bottom: 10px;
}
.my-circle-card-actions {
  display: flex; gap: 8px;
}
.my-circle-card-btn {
  font-size: 0.78rem; padding: 4px 10px; border-radius: 6px;
  border: 1px solid var(--gray-200); background: var(--gray-50);
  color: var(--gray-600); cursor: pointer; font-weight: 600;
  transition: background 0.15s;
}
.my-circle-card-btn:hover { background: var(--gray-100); }

/* ===========================
   SOCIAL PROOF (circle-detail)
=========================== */
.social-proof {
  font-size: 0.8rem; color: var(--gray-500);
  margin-top: 8px; display: flex; align-items: center; gap: 5px;
}
.social-proof-count {
  font-weight: 700; color: var(--blue-600);
}

@media (prefers-color-scheme: dark) {
  .pw-strength-bar { background: #334155; }
  .recent-item { background: #1e293b; border-color: #334155; color: #e2e8f0; }
  .recent-item:hover { background: #1e3a5f; border-color: var(--blue-700); }
  .my-circle-card { background: #1e293b; border-color: #334155; }
  .my-circle-card-name { color: #e2e8f0; }
  .my-circle-card-btn { background: #263347; border-color: #334155; color: #94a3b8; }
  .my-circle-card-btn:hover { background: #334155; }
  .recent-section { border-bottom-color: #334155; }
}

/* ===========================
   SKELETON LOADING
=========================== */
.skeleton-card {
  border-radius: 16px; overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}
.skeleton-img { height: 160px; background: var(--gray-200); }
.skeleton-body { padding: 16px; }
.skeleton-line {
  height: 12px; border-radius: 6px;
  background: var(--gray-200); margin-bottom: 10px;
}
.skeleton-line.short { width: 60%; }
.skeleton-line.med   { width: 80%; }
@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}
@media (prefers-color-scheme: dark) {
  .skeleton-card { background: #1e293b; }
  .skeleton-img, .skeleton-line { background: #334155; }
}

/* ===========================
   MOBILE FILTER DRAWER
=========================== */
.filter-toggle-btn {
  display: none;
  width: 100%;
  padding: 10px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  text-align: left;
  margin-bottom: 12px;
  align-items: center;
  gap: 8px;
}
.filter-toggle-btn .filter-toggle-arrow {
  margin-left: auto;
  transition: transform 0.25s;
}
.filter-toggle-btn.open .filter-toggle-arrow { transform: rotate(180deg); }
.search-fields-wrap {
  /* No changes on desktop */
}
@media (max-width: 640px) {
  .filter-toggle-btn { display: flex; }
  .search-fields-wrap {
    display: none;
    flex-direction: column;
  }
  .search-fields-wrap.open { display: flex; }
}

/* ===========================
   BOTTOM NAV (Mobile)
=========================== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  z-index: 100;
  align-items: stretch;
  box-shadow: 0 -4px 16px rgba(0,0,0,.06);
}
.bottom-nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px; text-decoration: none;
  color: var(--gray-400); font-size: 0.65rem; font-weight: 600;
  border: none; background: none; cursor: pointer;
  transition: color 0.15s;
}
.bottom-nav-item.active { color: var(--blue-600); }
.bottom-nav-item:hover  { color: var(--blue-500); }
.bottom-nav-icon { font-size: 1.2rem; line-height: 1; }
@media (max-width: 640px) {
  .bottom-nav { display: flex; }
  body { padding-bottom: 60px; }
}
@media (prefers-color-scheme: dark) {
  .bottom-nav { background: #111827; border-top-color: #1f2937; }
}

/* ===========================
   PRINT STYLES
=========================== */
@media print {
  .header, .footer, .back-to-top, .bottom-nav,
  .hamburger, .mobile-nav, .toast,
  .detail-cta-card, .related-section,
  #applyModal, .modal-overlay,
  .card-fav, .card-btn { display: none !important; }

  body { background: #fff !important; color: #000 !important; font-size: 12pt; }
  a { color: #000 !important; text-decoration: underline; }
  .circle-card { box-shadow: none !important; border: 1px solid #ccc; break-inside: avoid; }
  .detail-hero { background: #f0f0f0 !important; color: #000 !important; }
  .cards-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ===========================
   TOAST VARIANTS
=========================== */
.toast.toast-success { background: #166534; }
.toast.toast-error   { background: #991b1b; }
.toast.toast-info    { background: #1e40af; }

/* ===========================
   AUTOCOMPLETE DROPDOWN
=========================== */
.autocomplete-wrap { position: relative; }
.autocomplete-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 10px; box-shadow: var(--shadow-md);
  z-index: 200; max-height: 240px; overflow-y: auto;
  display: none;
}
.autocomplete-list.open { display: block; }
.autocomplete-item {
  padding: 10px 14px; font-size: 0.88rem; cursor: pointer;
  color: var(--gray-700); display: flex; align-items: center; gap: 8px;
  transition: background 0.12s;
}
.autocomplete-item:hover, .autocomplete-item.active {
  background: var(--blue-50); color: var(--blue-700);
}
.autocomplete-icon { font-size: 1rem; width: 22px; text-align: center; }

/* ===========================
   DARK MODE TOGGLE
=========================== */
.dark-toggle {
  background: none; border: 1px solid var(--gray-200);
  border-radius: 8px; padding: 6px 10px;
  font-size: 0.85rem; cursor: pointer; color: var(--gray-600);
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.dark-toggle:hover { background: var(--gray-100); }
[data-theme="dark"] .dark-toggle { border-color: #334155; color: #94a3b8; }
[data-theme="dark"] .dark-toggle:hover { background: #1e293b; }

/* Force dark theme */
[data-theme="dark"] {
  color-scheme: dark;
}
[data-theme="dark"] body {
  background: #0f172a;
  color: #e2e8f0;
}

/* ===========================
   SCROLL FADE-IN ANIMATION
=========================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   COMPARE FEATURE
=========================== */
.compare-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #1e40af; color: #fff;
  padding: 12px 24px; z-index: 150;
  display: none; align-items: center; gap: 12px;
  flex-wrap: wrap; box-shadow: 0 -4px 16px rgba(30,64,175,.4);
}
.compare-bar.visible { display: flex; }
.compare-bar-items { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }
.compare-bar-chip {
  background: rgba(255,255,255,.15); border-radius: 20px;
  padding: 4px 12px; font-size: 0.82rem; display: flex; align-items: center; gap: 6px;
}
.compare-bar-chip button {
  background: none; border: none; color: #fff; cursor: pointer;
  font-size: 0.9rem; line-height: 1; padding: 0;
}
.compare-bar-actions { display: flex; gap: 8px; }
.compare-btn-go {
  background: #fff; color: #1e40af; border: none; border-radius: 8px;
  padding: 8px 18px; font-weight: 700; font-size: 0.88rem; cursor: pointer;
  transition: background 0.15s;
}
.compare-btn-go:hover { background: #dbeafe; }
.compare-btn-clear {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  color: #fff; border-radius: 8px; padding: 8px 14px;
  font-size: 0.82rem; cursor: pointer;
}
.card-compare-check {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  width: 22px; height: 22px; border-radius: 6px;
  border: 2px solid rgba(255,255,255,.7);
  background: rgba(0,0,0,.25); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: #fff; transition: background 0.15s;
}
.card-compare-check.checked { background: #1d4ed8; border-color: #1d4ed8; }

/* Compare modal */
.compare-modal-table {
  width: 100%; border-collapse: collapse; font-size: 0.88rem;
}
.compare-modal-table th {
  background: var(--gray-50); padding: 10px 12px;
  font-weight: 700; color: var(--gray-500); font-size: 0.78rem;
  text-align: left; border-bottom: 1px solid var(--gray-100);
}
.compare-modal-table td {
  padding: 10px 12px; border-bottom: 1px solid var(--gray-100);
  vertical-align: top;
}
.compare-modal-table tr:last-child td { border-bottom: none; }
.compare-circle-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px; border-radius: 10px;
  margin-bottom: 8px;
}

/* ===========================
   NOTIFY ME BUTTON
=========================== */
.notify-btn {
  width: 100%; padding: 10px; border-radius: 10px;
  border: 1px dashed var(--gray-300); background: transparent;
  color: var(--gray-500); font-size: 0.85rem; font-weight: 600;
  cursor: pointer; margin-top: 8px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.notify-btn:hover { border-color: var(--blue-400); color: var(--blue-600); background: var(--blue-50); }
.notify-btn.notified { border-color: #22c55e; color: #16a34a; background: #f0fdf4; }

/* ===========================
   AUTOSAVE INDICATOR
=========================== */
.autosave-indicator {
  font-size: 0.75rem; color: #22c55e; font-weight: 600;
  opacity: 0; transition: opacity 0.4s;
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: 8px;
}
.autosave-indicator.show { opacity: 1; }

/* ===========================
   STATS MINI GRAPH (dashboard)
=========================== */
.dash-stat-graph {
  margin-top: 24px; padding: 20px;
  background: var(--gray-50); border-radius: 12px;
  border: 1px solid var(--gray-100);
}
.dash-stat-graph-title {
  font-size: 0.82rem; font-weight: 700; color: var(--gray-500);
  margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.04em;
}
.mini-bar-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.mini-bar-label { font-size: 0.78rem; color: var(--gray-600); width: 60px; flex-shrink: 0; }
.mini-bar-track {
  flex: 1; height: 8px; background: var(--gray-200); border-radius: 4px; overflow: hidden;
}
.mini-bar-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--blue-500), var(--cyan-500));
  transition: width 0.6s ease;
}
.mini-bar-val { font-size: 0.78rem; font-weight: 700; color: var(--gray-700); width: 24px; text-align: right; }

/* ===========================
   ONBOARDING TOUR
=========================== */
.tour-overlay {
  position: fixed; inset: 0; z-index: 400;
  pointer-events: none;
}
.tour-highlight {
  position: absolute; border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.55);
  transition: all 0.3s ease;
  pointer-events: none;
}
.tour-tooltip {
  position: absolute; background: #fff; color: var(--gray-800);
  border-radius: 12px; padding: 16px 20px; width: 260px;
  box-shadow: 0 8px 32px rgba(0,0,0,.2); z-index: 401;
  pointer-events: auto;
}
.tour-tooltip-title { font-weight: 800; font-size: 0.95rem; margin-bottom: 6px; }
.tour-tooltip-text  { font-size: 0.83rem; color: var(--gray-500); line-height: 1.55; margin-bottom: 14px; }
.tour-tooltip-actions { display: flex; justify-content: space-between; align-items: center; }
.tour-tooltip-step { font-size: 0.75rem; color: var(--gray-400); }
.tour-btn-next {
  background: var(--blue-600); color: #fff; border: none;
  border-radius: 8px; padding: 7px 16px; font-size: 0.82rem;
  font-weight: 700; cursor: pointer;
}
.tour-btn-skip {
  background: none; border: none; color: var(--gray-400);
  font-size: 0.78rem; cursor: pointer; text-decoration: underline;
}

@media (prefers-color-scheme: dark) {
  .autocomplete-list { background: #1e293b; border-color: #334155; }
  .autocomplete-item { color: #e2e8f0; }
  .autocomplete-item:hover, .autocomplete-item.active { background: #1e3a5f; }
  .compare-modal-table th { background: #1e293b; color: #94a3b8; border-color: #334155; }
  .compare-modal-table td { border-color: #334155; }
  .notify-btn { border-color: #334155; color: #94a3b8; }
  .notify-btn:hover { background: #1e3a5f; border-color: var(--blue-500); color: var(--blue-400); }
  .notify-btn.notified { background: #052e16; border-color: #22c55e; color: #4ade80; }
  .dash-stat-graph { background: #1e293b; border-color: #334155; }
  .mini-bar-track { background: #334155; }
  .mini-bar-label, .mini-bar-val { color: #94a3b8; }
  .tour-tooltip { background: #1e293b; color: #e2e8f0; box-shadow: 0 8px 32px rgba(0,0,0,.5); }
  .tour-tooltip-text { color: #94a3b8; }
}

/* ===========================
   ACCESSIBILITY: COLOR CONTRAST
   WCAG AA 準拠 (4.5:1 以上)
   gray-400 (#9ca3af) on white = 2.8:1 → 不合格
   gray-500 (#6b7280) on white = 4.6:1 → 合格
   本番ではすべての small text を gray-500 以上にする
=========================== */
.card-desc,
.footer-desc,
.footer-link,
.search-label,
.form-label,
.auth-sub,
.detail-info-label,
.history-meta,
.recent-section-title {
  color: var(--gray-600);
}
.footer-link:hover { color: var(--white); }

/* Focus visible enhancement */
:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}
button:focus-visible, a:focus-visible { outline: 3px solid var(--blue-500); }

/* ===========================
   COMPARE BAR — MOBILE FIX
   bottom-nav が表示されるとき compare-bar を上にオフセット
=========================== */
@media (max-width: 640px) {
  .compare-bar {
    bottom: 64px; /* bottom-nav の高さ分 */
  }
}

/* ===========================
   COMPARE MODAL TABLE — SCROLL
=========================== */
#compareTableWrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.compare-modal-table {
  min-width: 480px; /* テーブルが崩れない最小幅 */
}

/* ===========================
   MODAL BTN — APPLIED STATE
=========================== */
.modal-btn-primary.applied {
  background: var(--gray-100);
  color: var(--gray-500);
  border-color: var(--gray-200);
}
.modal-btn-primary.applied:disabled {
  cursor: default;
  opacity: 1;
}


/* ===========================
   MOBILE RESPONSIVE FIXES
=========================== */
@media (max-width: 480px) {
  .auth-card { padding: 24px 16px; }
  .auth-title { font-size: clamp(1.2rem, 5vw, 1.7rem); }
  .section-title { font-size: clamp(1.1rem, 4.5vw, 1.6rem); }
  .auth-blob-1, .auth-blob-2 { opacity: 0.3; }
  .inner-hero-title { font-size: clamp(1.4rem, 5vw, 2.2rem); }
  .hero-title { font-size: clamp(1.6rem, 7vw, 3.2rem); }
  .modal-content { padding: 20px 16px; }
  .detail-cta-card { padding: 20px 16px; }
  .dash-hero { padding: 24px 16px; }
  .policy-body { padding: 0 4px; }
  .breadcrumb { font-size: 0.78rem; }
}

@media (max-width: 360px) {
  .auth-card { padding: 20px 12px; }
  .form-submit { font-size: 0.9rem; }
  .btn-primary { font-size: 0.88rem; padding: 12px 20px; }
}

/* ===========================
   REVIEW SYSTEM
=========================== */
.review-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.review-avg {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  padding: 8px 14px;
}
.review-avg-score {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}
.review-avg-stars { color: #f59e0b; font-size: 0.85rem; }
.review-avg-count { font-size: 0.75rem; color: var(--gray-500); }
.review-card {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 16px 20px;
  border: 1px solid var(--gray-100);
}
.review-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.review-card-name { font-weight: 700; font-size: 0.88rem; color: var(--gray-700); }
.review-card-stars { color: #f59e0b; font-size: 0.8rem; }
.review-card-date { font-size: 0.75rem; color: var(--gray-400); margin-left: auto; }
.review-card-text { font-size: 0.85rem; color: var(--gray-600); line-height: 1.65; }
.review-form-wrap {
  margin-top: 24px;
  background: var(--white);
  border: 2px solid var(--blue-200);
  border-radius: 14px;
  padding: 20px;
}
.review-form-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 14px;
}
.star-picker {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.star-picker button {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--gray-200);
  transition: color 0.15s, transform 0.1s;
  padding: 0;
  line-height: 1;
}
.star-picker button.active,
.star-picker button:hover { color: #f59e0b; transform: scale(1.15); }
.review-textarea {
  width: 100%;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.88rem;
  line-height: 1.6;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  box-sizing: border-box;
  background: var(--white);
  color: var(--gray-800);
}
.review-textarea:focus { outline: none; border-color: var(--blue-400); }
.review-submit-btn {
  margin-top: 12px;
  background: var(--blue-600);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.review-submit-btn:hover { background: var(--blue-700); }
.review-submit-btn:disabled { background: var(--gray-300); cursor: default; }
.review-login-prompt {
  text-align: center;
  padding: 16px;
  font-size: 0.85rem;
  color: var(--gray-500);
  background: var(--gray-50);
  border-radius: 10px;
  margin-top: 16px;
}
.safety-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: #dcfce7;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}
[data-theme="dark"] .review-card { background: var(--gray-800); border-color: var(--gray-700); }
[data-theme="dark"] .review-form-wrap { background: var(--gray-800); border-color: var(--blue-800); }
[data-theme="dark"] .review-textarea { background: var(--gray-900); color: var(--gray-100); border-color: var(--gray-600); }
[data-theme="dark"] .review-avg { background: var(--gray-800); border-color: var(--gray-700); }
[data-theme="dark"] .review-avg-score { color: var(--gray-100); }
