/* ============================================================
   上财家教平台 - 样式表
   白底、简约、清新、大气、现代平面风格
   ============================================================ */

:root {
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-light: #dbeafe;
  --primary-ultra: #eff6ff;
  --accent: #14b8a6;
  --accent-hover: #0d9488;
  --accent-light: #ccfbf1;
  --warn: #f59e0b;
  --warn-light: #fef3c7;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --star: #f59e0b;

  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --white: #ffffff;
  --bg: #f8fafc;
  --bg-gray: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --border-focus: #3b82f6;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.07), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);

  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-xl: 14px;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px;
  --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px;

  --fast: 150ms ease;
  --base: 250ms ease;
  --smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; min-height: 100vh; }
a { color: var(--primary); text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

#app { min-height: 100vh; display: flex; flex-direction: column; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--s6); }

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: var(--s4) 0;
  position: sticky; top: 0; z-index: 100;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.navbar-brand { display: flex; align-items: center; gap: var(--s3); }
.navbar-logo {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: white; font-weight: 700;
}
.navbar-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.navbar-subtitle { font-size: 0.75rem; color: var(--text-3); font-weight: 500; }
.navbar-actions { display: flex; align-items: center; gap: var(--s4); }
.navbar-user { display: flex; align-items: center; gap: var(--s3); font-size: 0.875rem; color: var(--text-2); }
.user-badge {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: 2px var(--s3); background: var(--primary-light); color: var(--primary);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em;
}
.admin-badge { background: var(--warn-light); color: var(--warn); }

/* ============================================================
   Buttons — 扁平、无圆角边框、现代风格
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: var(--s3) var(--s6); font-weight: 600; font-size: 0.875rem;
  transition: all var(--fast); white-space: nowrap; line-height: 1.5;
  border: none; position: relative;
}
.btn::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: currentColor; opacity: 0;
  transition: opacity var(--fast);
}
.btn:hover::after { opacity: 0.3; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

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

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

.btn-outline {
  background: var(--white); color: var(--text-2);
  box-shadow: inset 0 -1px 0 var(--border);
}
.btn-outline:hover { color: var(--primary); box-shadow: inset 0 -2px 0 var(--primary); }
.btn-outline::after { display: none; }

.btn-ghost { background: transparent; color: var(--text-2); padding: var(--s2) var(--s4); }
.btn-ghost:hover { background: var(--bg-gray); color: var(--text); transform: none; }
.btn-ghost::after { display: none; }

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

.btn-sm { padding: var(--s2) var(--s4); font-size: 0.8125rem; }
.btn-lg { padding: var(--s4) var(--s8); font-size: 1rem; }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ============================================================
   Landing
   ============================================================ */
.landing { flex: 1; display: flex; flex-direction: column; height: calc(100vh - 65px); overflow: hidden; }

.hero { flex: 0 0 auto; padding: var(--s12) 0 var(--s8); text-align: center; }
.hero-content { max-width: 680px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: var(--s2) var(--s4); background: var(--primary-light); color: var(--primary);
  font-size: 0.8125rem; font-weight: 600; margin-bottom: var(--s6);
  animation: fadeUp 0.6s ease;
}
.hero-title {
  font-size: 2.75rem; font-weight: 800; line-height: 1.15;
  letter-spacing: -0.03em; margin-bottom: var(--s5);
  animation: fadeUp 0.6s ease 0.1s both;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-description {
  font-size: 1.0625rem; color: var(--text-2); line-height: 1.7;
  max-width: 560px; margin: 0 auto; animation: fadeUp 0.6s ease 0.2s both;
}

.features {
  flex: 1; display: flex; align-items: flex-start; justify-content: center;
  padding: var(--s4) 0 var(--s8); animation: fadeUp 0.6s ease 0.3s both;
}
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); max-width: 780px; width: 100%; margin: 0 auto; }

.feature-card {
  background: var(--white); border: 1px solid var(--border);
  padding: var(--s10) var(--s8); text-align: center;
  transition: all var(--base); cursor: pointer; position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0; transition: opacity var(--base);
}
.feature-card:hover {
  border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-4px);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 56px; height: 56px; margin: 0 auto var(--s5);
  background: var(--primary-ultra); border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; transition: all var(--base);
}
.feature-card:hover .feature-icon { background: var(--primary-light); transform: scale(1.05); }
.feature-card:nth-child(2) .feature-icon { background: var(--accent-light); }
.feature-title { font-size: 1.125rem; font-weight: 700; margin-bottom: var(--s2); }
.feature-desc { font-size: 0.875rem; color: var(--text-3); line-height: 1.5; }

.landing-footer {
  padding: var(--s4) 0; text-align: center;
  font-size: 0.8125rem; color: var(--text-3); border-top: 1px solid var(--border-light);
}

/* ============================================================
   Auth
   ============================================================ */
.auth-view { flex: 1; display: flex; align-items: center; justify-content: center; padding: var(--s8); }
.auth-card {
  background: var(--white); border: 1px solid var(--border);
  padding: var(--s10); width: 100%; max-width: 440px;
  box-shadow: var(--shadow-lg); animation: fadeUp 0.4s ease;
}
.auth-header { text-align: center; margin-bottom: var(--s8); }
.auth-header h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: var(--s2); }
.auth-header p { font-size: 0.875rem; color: var(--text-3); }
.gate-icon {
  width: 64px; height: 64px; margin: 0 auto var(--s5);
  background: var(--primary-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.75rem;
}

.role-tabs { display: flex; gap: var(--s3); margin-bottom: var(--s6); }
.role-tab {
  flex: 1; padding: var(--s3) var(--s4);
  font-weight: 600; font-size: 0.875rem; color: var(--text-3);
  transition: all var(--fast); text-align: center; background: var(--bg-gray);
  border: none;
}
.role-tab:hover { color: var(--primary); background: var(--primary-ultra); }
.role-tab.active { background: var(--primary); color: var(--white); }

.auth-footer { text-align: center; margin-top: var(--s6); font-size: 0.8125rem; color: var(--text-3); }
.auth-footer a { font-weight: 600; }

.remember-me {
  display: flex; align-items: center; gap: var(--s2);
  margin-bottom: var(--s5); cursor: pointer;
  font-size: 0.8125rem; color: var(--text-2); user-select: none;
}
.remember-me input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0;
}

/* ============================================================
   Forms
   ============================================================ */
.form-group { margin-bottom: var(--s5); }
.form-label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--text-2); margin-bottom: var(--s2); }
.form-label .req { color: var(--danger); }

.form-input, .form-select {
  width: 100%; padding: var(--s3) var(--s4);
  border: none; border-bottom: 2px solid var(--border);
  background: var(--bg-gray); font-size: 0.9375rem; color: var(--text);
  transition: all var(--fast); outline: none;
}
.form-input:focus, .form-select:focus {
  border-bottom-color: var(--border-focus);
  background: var(--white); box-shadow: 0 2px 0 0 var(--border-focus);
}
.form-input::placeholder { color: var(--text-3); }
textarea.form-input { resize: vertical; min-height: 80px; }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}

.checkbox-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.checkbox-item {
  display: flex !important; align-items: center !important; gap: var(--s2);
  padding: var(--s2) var(--s3) !important; background: var(--bg-gray) !important;
  border: none !important; border-radius: 0 !important;
  cursor: pointer; transition: all var(--fast);
  font-size: 0.8125rem; font-weight: 500;
}
.checkbox-item:hover { background: var(--primary-ultra) !important; color: var(--primary); }
.checkbox-item.checked { background: var(--primary-light) !important; color: var(--primary); }
.checkbox-item input[type="checkbox"] { display: none !important; }
.checkbox-mark {
  width: 16px !important; height: 16px !important; border: 2px solid var(--border) !important;
  border-radius: 0 !important; background: transparent !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  transition: all var(--fast); flex-shrink: 0; position: relative;
}
.checkbox-item.checked .checkbox-mark {
  background: var(--primary) !important; border-color: var(--primary) !important;
}
.checkbox-item.checked .checkbox-mark::after {
  content: '✓' !important; color: white !important; font-size: 11px !important; font-weight: 700 !important;
  display: block !important; line-height: 1 !important;
}

.score-row { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) 0; flex-wrap: wrap; }
.score-subject { flex: 0 0 50px; font-size: 0.8125rem; font-weight: 600; color: var(--text-2); }
.score-options { display: flex; gap: var(--s2); }
.score-option {
  padding: 2px var(--s3); background: var(--bg-gray);
  font-size: 0.75rem; color: var(--text-3); cursor: pointer; transition: all var(--fast);
}
.score-option:hover { background: var(--primary-ultra); color: var(--primary); }
.score-option.selected { background: var(--primary); color: white; }

.form-divider { height: 1px; background: var(--border); margin: var(--s6) 0; }
.form-actions { display: flex; gap: var(--s3); margin-top: var(--s6); }
.form-actions .btn { flex: 1; }

.profile-form { max-width: 600px; margin: 0 auto; padding: var(--s6); }

/* Inline score inputs for teacher profile */
.gaokao-section { margin-bottom: var(--s5); }
.gaokao-section h4 { font-size: 0.8125rem; font-weight: 700; color: var(--text-2); margin-bottom: var(--s4); }
.gaokao-row { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s3); flex-wrap: wrap; }
.gaokao-row .subject-name { flex: 0 0 44px; font-size: 0.8125rem; font-weight: 600; color: var(--text-2); }
.grade-selector { display: flex; flex-wrap: wrap; gap: var(--s1); }
.grade-option {
  padding: 2px var(--s2); background: var(--bg-gray);
  font-size: 0.6875rem; color: var(--text-3); cursor: pointer;
  transition: all var(--fast); font-weight: 500;
}
.grade-option:hover { background: var(--primary-ultra); color: var(--primary); }
.grade-option.selected { background: var(--primary); color: white; }
.score-inline {
  width: 70px; padding: 2px var(--s2);
  border: none; border-bottom: 1.5px solid var(--border);
  background: transparent; font-size: 0.8125rem; text-align: center;
}
.score-inline:focus { border-bottom-color: var(--primary); outline: none; }
.score-max { font-size: 0.75rem; color: var(--text-3); }

/* ============================================================
   Dashboard
   ============================================================ */
.dashboard { flex: 1; display: flex; flex-direction: column; overflow: hidden; height: calc(100vh - 65px); }
.dashboard-header { padding: var(--s6) 0 var(--s4); border-bottom: 1px solid var(--border-light); }
.dashboard-header h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.dashboard-header p { font-size: 0.875rem; color: var(--text-3); margin-top: var(--s1); }
.dashboard-content { flex: 1; overflow-y: auto; padding: var(--s6) 0; }

.dashboard-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); max-width: 720px; margin: var(--s8) auto 0; }
.dashboard-card {
  background: var(--white); border: 1px solid var(--border);
  padding: var(--s8); text-align: center; transition: all var(--base); cursor: pointer;
}
.dashboard-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-icon {
  width: 64px; height: 64px; margin: 0 auto var(--s5);
  border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; font-size: 1.75rem;
}
.ci-blue { background: var(--primary-light); }
.ci-green { background: var(--accent-light); }
.card-title { font-size: 1.125rem; font-weight: 700; margin-bottom: var(--s2); }
.card-desc { font-size: 0.8125rem; color: var(--text-3); line-height: 1.5; }

/* Admin Section */
.admin-section {
  margin-top: var(--s6); padding: var(--s5) var(--s6);
  background: var(--warn-light); max-width: 720px; margin-left: auto; margin-right: auto;
}
.admin-section h3 { font-size: 0.875rem; font-weight: 700; color: var(--warn); margin-bottom: var(--s3); }
.admin-actions { display: flex; gap: var(--s3); margin-top: var(--s4); }

.invite-code-display { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s4); }
.invite-code-text {
  font-family: 'SF Mono', 'Fira Code', monospace; font-size: 1.25rem; font-weight: 700;
  letter-spacing: 0.1em; padding: var(--s3) var(--s5); background: var(--white); flex: 1;
}
.invite-code-timer { font-size: 0.75rem; color: var(--warn); font-weight: 600; }

/* ============================================================
   Browse / List
   ============================================================ */
.browse-view { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.browse-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s5); }
.browse-header h2 { font-size: 1.25rem; font-weight: 700; }
.browse-header-actions { display: flex; gap: var(--s2); }
.browse-list { flex: 1; overflow-y: auto; padding-right: var(--s2); }
.browse-list::-webkit-scrollbar { width: 5px; }
.browse-list::-webkit-scrollbar-track { background: transparent; }
.browse-list::-webkit-scrollbar-thumb { background: var(--border); }

/* Filter Panel */
.filter-panel { margin-bottom: var(--s5); padding: var(--s4); background: var(--bg-gray); animation: fadeIn 0.2s ease; }
.filter-row { display: flex; gap: var(--s4); flex-wrap: wrap; }
.filter-group { flex: 1; min-width: 120px; }
.filter-label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--text-3); margin-bottom: var(--s1); }
.filter-select {
  width: 100%; padding: var(--s2) var(--s3); border: none;
  border-bottom: 1.5px solid var(--border); background: var(--white);
  font-size: 0.8125rem; outline: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; padding-right: 28px;
}
.filter-select:focus { border-bottom-color: var(--primary); }

/* Cards */
.list-card {
  background: var(--white); border: 1px solid var(--border);
  padding: var(--s5) var(--s6); margin-bottom: var(--s4);
  transition: all var(--fast);
}
.list-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.list-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s3); }
.list-card-title { font-weight: 700; font-size: 0.9375rem; }
.list-card-meta { font-size: 0.75rem; color: var(--text-3); }
.list-card-body { display: flex; flex-wrap: wrap; gap: var(--s2); }

.tag {
  display: inline-flex; align-items: center;
  padding: 2px var(--s3); background: var(--bg-gray);
  font-size: 0.75rem; font-weight: 500; color: var(--text-2);
}
.tag-primary { background: var(--primary-light); color: var(--primary); }
.tag-accent { background: var(--accent-light); color: var(--accent-hover); }
.tag-warn { background: var(--warn-light); color: var(--warn); }
.tag-star { color: var(--star); font-weight: 700; }

.list-card-detail { margin-top: var(--s3); font-size: 0.8125rem; color: var(--text-2); line-height: 1.6; }
.list-card-contact {
  margin-top: var(--s3); padding-top: var(--s3);
  border-top: 1px solid var(--border-light);
  font-size: 0.8125rem; color: var(--text-3); display: flex; gap: var(--s5);
}
.list-card-actions { margin-top: var(--s3); display: flex; gap: var(--s2); }

/* Rating Stars */
.stars { display: inline-flex; gap: 1px; font-size: 0.875rem; }
.stars .star { color: var(--border); }
.stars .star.filled { color: var(--star); }
.rating-text { font-size: 0.75rem; color: var(--text-3); margin-left: var(--s2); }

/* Reviews */
.reviews-section { margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--border-light); }
.reviews-section h4 { font-size: 0.8125rem; font-weight: 700; margin-bottom: var(--s3); color: var(--text-2); }
.review-item {
  padding: var(--s3); background: var(--bg-gray);
  margin-bottom: var(--s2); font-size: 0.8125rem;
}
.review-item .review-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s1); }
.review-item .review-author { font-weight: 600; color: var(--text-2); }
.review-item .review-date { font-size: 0.7rem; color: var(--text-3); }
.review-item .review-text { color: var(--text-2); line-height: 1.5; }

.empty-state { text-align: center; padding: var(--s16) var(--s6); color: var(--text-3); }
.empty-state p { font-size: 0.9375rem; }

/* ============================================================
   Admin Dashboard
   ============================================================ */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); margin-bottom: var(--s6); }
.stat-card { background: var(--white); border: 1px solid var(--border); padding: var(--s5); }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
.stat-card .stat-label { font-size: 0.75rem; color: var(--text-3); font-weight: 500; margin-top: var(--s1); }
.stat-card .stat-value.blue { color: var(--primary); }
.stat-card .stat-value.green { color: var(--accent); }
.stat-card .stat-value.amber { color: var(--warn); }
.stat-card .stat-value.red { color: var(--danger); }

.admin-panel {
  background: var(--white); border: 1px solid var(--border);
  padding: var(--s5); margin-bottom: var(--s4);
}
.admin-panel h3 { font-size: 0.9375rem; font-weight: 700; margin-bottom: var(--s4); }

.review-admin-item {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: var(--s3); background: var(--bg-gray); margin-bottom: var(--s2);
  gap: var(--s3);
}
.review-admin-item .review-info { flex: 1; font-size: 0.8125rem; }
.review-admin-item .review-info strong { color: var(--text); }
.review-admin-item .review-actions { display: flex; gap: var(--s2); flex-shrink: 0; }

/* ============================================================
   Modal
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.5);
  backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center;
  z-index: 200; animation: fadeIn 0.2s ease; padding: var(--s4);
}
.modal {
  background: var(--white); width: 100%; max-width: 580px;
  max-height: 85vh; overflow-y: auto; box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s6) var(--s6) var(--s4);
  border-bottom: 1px solid var(--border-light);
  position: sticky; top: 0; background: var(--white); z-index: 1;
}
.modal-header h2 { font-size: 1.125rem; font-weight: 700; }
.modal-body { padding: var(--s5) var(--s6); }
.modal-footer {
  padding: var(--s4) var(--s6) var(--s6);
  display: flex; gap: var(--s3); justify-content: flex-end;
  position: sticky; bottom: 0; background: var(--white);
  border-top: 1px solid var(--border-light);
}

/* Star Rating Input */
.star-rating-input { display: flex; gap: var(--s1); font-size: 1.5rem; cursor: pointer; }
.star-rating-input .star-btn { color: var(--border); transition: color var(--fast); background: none; border: none; cursor: pointer; padding: 0; }
.star-rating-input .star-btn.active { color: var(--star); }
.star-rating-input .star-btn:hover { color: var(--star); }

/* Alert */
.alert { padding: var(--s3) var(--s4); font-size: 0.8125rem; font-weight: 500; margin-bottom: var(--s4); animation: fadeIn 0.3s ease; }
.alert-error { background: #fef2f2; color: var(--danger); border-left: 3px solid var(--danger); }
.alert-success { background: #f0fdf4; color: var(--accent); border-left: 3px solid var(--accent); }

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.6s linear infinite; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .container { padding: 0 var(--s4); }
  .navbar-subtitle { display: none; }
  .navbar-title { font-size: 1.0625rem; }
  .hero { padding: var(--s8) 0 var(--s6); }
  .hero-title { font-size: 1.75rem; }
  .hero-description { font-size: 0.9375rem; }
  .features-grid, .dashboard-cards { grid-template-columns: 1fr; gap: var(--s4); }
  .auth-card { padding: var(--s6); }
  .checkbox-grid { grid-template-columns: repeat(2, 1fr); }
  .modal { max-height: 90vh; }
  .dashboard-header h1 { font-size: 1.25rem; }
  .browse-header { flex-direction: column; align-items: flex-start; gap: var(--s3); }
  .list-card-contact { flex-direction: column; gap: var(--s2); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-row { flex-direction: column; gap: var(--s3); }
  .admin-section { margin-left: var(--s4); margin-right: var(--s4); }
  .invite-code-display { flex-direction: column; }
  .invite-code-text { text-align: center; width: 100%; }
  .review-admin-item { flex-direction: column; }
}

/* Utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-muted { color: var(--text-3); }
.text-sm { font-size: 0.8125rem; }
.mt-2 { margin-top: var(--s2); }
.mt-4 { margin-top: var(--s4); }
.mb-2 { margin-bottom: var(--s2); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--s2); }
.gap-3 { gap: var(--s3); }
