/* ============================================================
   CASTANG — Design System
   Single source of truth for all pages
   ============================================================ */

/* ── 1. Design Tokens ── */
:root {
  /* Brand */
  --pink:        #FF00A0;
  --pink-dark:   #CC0080;
  --pink-mid:    rgba(255,0,160,0.15);
  --pink-low:    rgba(255,0,160,0.08);
  --purple:      #BCB3F0;
  --purple-dark: #968FC0;
  --purple-mid:  rgba(188,179,240,0.16);
  --purple-low:  rgba(188,179,240,0.08);

  --grad:        linear-gradient(95deg, #FF00A0 0%, #BCB3F0 100%);
  --grad-r:      linear-gradient(95deg, #BCB3F0 0%, #FF00A0 100%);
  --grad-nav:    linear-gradient(90deg, #BCB3F0 0%, #FF00A0 100%);
  --grad-text:   #100014;

  /* Dark palette */
  --dark:        #09090f;
  --dark-2:      #0f0f18;
  --dark-3:      #16161f;
  --dark-4:      #1e1e2a;
  --dark-border: rgba(255,255,255,0.07);

  /* Light palette */
  --white:       #ffffff;
  --off:         #f8f9fb;
  --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;

  /* Text */
  --text:        #1a1a2e;
  --text-body:   #374151;
  --text-muted:  #6b7280;
  --text-hint:   #9ca3af;

  /* Semantic */
  --green:       #16a34a;
  --green-bg:    rgba(22,163,74,0.08);
  --orange:      #ea580c;
  --orange-bg:   rgba(234,88,12,0.08);
  --blue:        #2563eb;
  --blue-bg:     rgba(37,99,235,0.08);
  --red:         #dc2626;
  --red-bg:      rgba(220,38,38,0.08);

  /* Shadows */
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.08);
  --shadow:      0 4px 16px rgba(0,0,0,0.1);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg:   0 20px 64px rgba(0,0,0,0.18);
  --shadow-pink: 0 8px 28px rgba(255,0,160,0.32);

  /* Typography */
  --font-display: 'Orbitron', sans-serif;
  --font-body:    'Noto Sans KR', sans-serif;
  --font-en:      'Inter', sans-serif;

  /* Layout */
  --max:         1200px;
  --nav-h:       64px;

  /* Radius */
  --r-sm:        6px;
  --r:           10px;
  --r-md:        14px;
  --r-lg:        18px;
  --r-xl:        24px;
  --r-pill:      999px;

  /* Transition */
  --ease:        cubic-bezier(0.34,1.56,0.64,1);
  --ease-out:    cubic-bezier(0.16,1,0.3,1);
  --t:           0.2s;
}

/* ── 2. Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; outline: none; }
ul, ol { list-style: none; }

/* ── 3. Navbar ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 900;
  transition: background var(--t), box-shadow var(--t);
}
.navbar.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  height: 100%; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.nav-logo img { height: 48px; width: auto; }
.nav-logo a { display: flex; align-items: center; }

.nav-links {
  display: flex; align-items: center; gap: 28px;
  flex: 1; justify-content: center;
}
.nav-link {
  color: rgba(255,255,255,0.88);
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.01em;
  transition: color var(--t);
  position: relative; padding: 4px 0;
}
.nav-link::after {
  content: ''; position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px; background: white;
  border-radius: 1px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.nav-link:hover { color: white; }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: white; font-weight: 600; }

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

/* Role menus */
.nav-role-menu {
  display: none;
  padding: 6px 14px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 700; color: white;
  cursor: pointer; transition: all var(--t);
}
.nav-role-menu.admin-menu { background: rgba(255,107,107,0.85); }
.nav-role-menu.admin-menu:hover { background: #ff6b6b; }
.nav-role-menu.mentor-menu { background: rgba(107,155,255,0.85); }
.nav-role-menu.mentor-menu:hover { background: #6b9bff; }
.nav-role-menu.agency-menu { background: var(--purple-mid); border: 1px solid var(--purple); }
.nav-role-menu.agency-menu:hover { background: var(--purple-mid); }

/* Dropdowns */
.nav-dropdown, .lang-dropdown { position: relative; }
.nav-dropdown-content {
  display: none; position: absolute;
  right: 0; top: calc(100% + 10px);
  background: var(--dark-2); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--dark-border);
  min-width: 200px; overflow: hidden;
  z-index: 1000;
}
.nav-dropdown-content.open { display: block; }
.nav-dropdown-hover .nav-dropdown-content { top: 100%; right: auto; left: 50%; transform: translateX(-50%); }
.nav-dropdown-hover:hover .nav-dropdown-content { display: block; }
.nav-dropdown-content a, .nav-dropdown-content button {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; width: 100%;
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.82);
  border-bottom: 1px solid var(--dark-border);
  transition: background var(--t), color var(--t);
  text-align: left;
}
.nav-dropdown-content a:last-child,
.nav-dropdown-content button:last-child { border-bottom: none; }
.nav-dropdown-content a:hover,
.nav-dropdown-content button:hover { background: var(--dark-4); color: var(--pink); }
.nav-dropdown-content .danger:hover { background: rgba(220,38,38,0.15); color: #ff6b6b; }

/* User nav item */
.nav-user-btn {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: white; padding: 7px 14px;
  border-radius: var(--r-pill); font-size: 13px; font-weight: 600;
  transition: all var(--t);
}
.nav-user-btn:hover { background: rgba(255,255,255,0.2); }
.nav-user-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: white;
}

/* Lang */
.lang-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: white; padding: 5px 10px;
  border-radius: var(--r-sm); font-size: 12px; font-weight: 700;
  transition: all var(--t);
}
.lang-btn:hover { background: rgba(255,255,255,0.2); }

/* Mobile toggle */
.nav-toggle {
  display: none; flex-direction: column;
  gap: 5px; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: white; border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile nav drawer */
.nav-mobile {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--dark-2);
  padding: 16px 24px 24px;
  border-bottom: 1px solid var(--dark-border);
  z-index: 890;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block; padding: 14px 0;
  color: rgba(255,255,255,0.8); font-size: 15px; font-weight: 500;
  border-bottom: 1px solid var(--dark-border);
  transition: color var(--t);
}
.nav-mobile a:hover { color: white; }
.nav-mobile-actions {
  margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap;
}

/* ── 4. Page wrapper ── */
.page-body { padding-top: var(--nav-h); min-height: 100vh; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ── 5. Footer ── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  padding: 56px 0 32px;
  margin-top: auto;
}
.footer-grid {
  max-width: var(--max); margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: 1fr 1fr 1fr 1.5fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-logo { margin-bottom: 14px; }
.footer-logo img { height: 32px; }
.footer-col-title {
  font-size: 11px; font-weight: 800;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col a {
  display: block; padding: 5px 0;
  font-size: 13px; color: rgba(255,255,255,0.5);
  transition: color var(--t);
}
.footer-col a:hover { color: white; }
.footer-contact { font-size: 13px; line-height: 1.9; }
.footer-bottom {
  max-width: var(--max); margin: 0 auto; padding: 0 28px;
  border-top: 1px solid var(--dark-border);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.footer-legal { font-size: 11px; color: rgba(255,255,255,0.25); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }

/* ── 6. Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  border: none; cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s var(--ease-out), background 0.25s var(--ease-out), color 0.25s var(--ease-out);
  white-space: nowrap; position: relative; isolation: isolate; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0) 55%);
  opacity: 0.9; pointer-events: none; z-index: 1;
}
.btn::after {
  content: ''; position: absolute; top: 0; left: -75%; width: 45%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.65), transparent);
  transform: skewX(-20deg); pointer-events: none; z-index: 3;
  transition: left 0.85s ease;
}
.btn:hover::after { left: 130%; }
.btn > * { position: relative; z-index: 2; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 6px 20px rgba(255,0,160,0.32), 0 1px 0 rgba(255,255,255,0.3) inset;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255,0,160,0.42), 0 1px 0 rgba(255,255,255,0.35) inset;
}

.btn-secondary {
  background: rgba(255,0,160,0.06); color: var(--pink);
  border: 1.5px solid rgba(255,0,160,0.35);
  box-shadow: none;
}
.btn-secondary:hover { background: var(--pink-low); border-color: var(--pink); transform: translateY(-1px); }
.btn-secondary::before { display: none; }

.btn-dark {
  background: var(--dark); color: white;
  box-shadow: 0 6px 18px rgba(0,0,0,0.28), 0 1px 0 rgba(255,255,255,0.08) inset;
}
.btn-dark:hover { background: var(--dark-3); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.34), 0 1px 0 rgba(255,255,255,0.1) inset; }

.btn-ghost {
  background: transparent; color: var(--text-body);
  border: 1.5px solid var(--gray-200);
  box-shadow: none;
}
.btn-ghost:hover { border-color: var(--purple); color: var(--purple-dark); background: var(--purple-low); }
.btn-ghost::before { display: none; }

.btn-white {
  background: white; color: var(--pink); font-weight: 700;
  box-shadow: var(--shadow), 0 1px 0 rgba(255,255,255,0.6) inset;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md), 0 1px 0 rgba(255,255,255,0.6) inset; }

.btn-danger {
  background: var(--red); color: white;
  box-shadow: 0 6px 18px rgba(220,38,38,0.3), 0 1px 0 rgba(255,255,255,0.2) inset;
}
.btn-danger:hover { background: #b91c1c; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(220,38,38,0.4), 0 1px 0 rgba(255,255,255,0.2) inset; }

.btn-sm { padding: 8px 18px; font-size: 12px; }
.btn-lg { padding: 16px 38px; font-size: 15px; }
.btn-full { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--r); }

/* ── 7. Forms ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-label {
  font-size: 13px; font-weight: 700; color: var(--text);
}
.form-label .req { color: var(--pink); margin-left: 2px; }

.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-md);
  font-size: 14px; font-family: var(--font-body);
  color: var(--text); background: white;
  transition: border-color var(--t), box-shadow var(--t);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px var(--pink-low);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-hint); }
.form-select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat; background-size: 16px;
  padding-right: 40px;
}
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.65; }
.form-hint { font-size: 12px; color: var(--text-hint); }
.form-error { font-size: 12px; color: var(--red); }

/* File upload */
.file-upload {
  display: block;
  border: 2px dashed var(--gray-200);
  border-radius: var(--r-md); padding: 32px;
  text-align: center; cursor: pointer;
  transition: border-color var(--t), background var(--t);
}
.file-upload:hover { border-color: var(--pink); background: var(--pink-low); }
.file-upload input { display: none; }
.file-upload-icon { font-size: 32px; margin-bottom: 10px; }
.file-upload-text { font-size: 14px; color: var(--text-muted); }
.file-upload-sub { font-size: 12px; color: var(--text-hint); margin-top: 4px; }

/* ── 8. Cards ── */
.card {
  background: white; border-radius: var(--r-lg);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card-grad-border {
  border: 1.5px solid transparent;
  background: linear-gradient(white, white) padding-box, var(--grad) border-box;
}

.card-dark { background: var(--dark-3); border-color: var(--dark-border); }

.card-head {
  padding: 18px 22px; border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-between;
}
.card-body { padding: 20px 22px; }
.card-foot {
  padding: 14px 22px; border-top: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
}
.card-title { font-size: 15px; font-weight: 700; color: var(--text); }

/* Mentor card */
.mentor-card {
  background: white; border-radius: var(--r-lg);
  border: 1px solid var(--gray-100); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
  cursor: pointer;
}
.mentor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.mentor-card-img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  background: var(--gray-100);
}
.mentor-card-body { padding: 18px 20px; }
.mentor-card-name { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.mentor-card-spec {
  font-size: 12px; font-weight: 700; color: var(--pink);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px;
}
.mentor-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── 9. Badges & Status ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
}
.badge-pink    { background: var(--pink-mid); color: var(--pink); }
.badge-purple  { background: var(--purple-mid); color: var(--purple-dark); }
.badge-green   { background: var(--green-bg); color: var(--green); }
.badge-orange  { background: var(--orange-bg); color: var(--orange); }
.badge-blue    { background: var(--blue-bg); color: var(--blue); }
.badge-red     { background: var(--red-bg); color: var(--red); }
.badge-gray    { background: var(--gray-100); color: var(--gray-600); }
.badge-grad    { background: var(--grad); color: var(--grad-text); }
.badge-dark    { background: var(--dark); color: white; }

/* Status with dot */
.status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 700;
}
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pending   { background: var(--orange-bg); color: var(--orange); }
.status-approved  { background: var(--green-bg); color: var(--green); }
.status-completed { background: var(--blue-bg); color: var(--blue); }
.status-cancelled { background: var(--gray-100); color: var(--gray-500); }
.status-review    { background: var(--purple-mid); color: var(--purple-dark); }

/* Reward badges (the 4 special ones) */
.reward-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 800;
}
.rb-casting  { background: linear-gradient(135deg,#FFD700,#FFA500); color: #5c3a00; }
.rb-growth   { background: linear-gradient(135deg,#a8e063,#56ab2f); color: #1a4a00; }
.rb-passion  { background: linear-gradient(135deg,#FF512F,#F09819); color: #5c1800; }
.rb-steady   { background: linear-gradient(135deg,#4facfe,#00f2fe); color: #00304a; }

/* ── 10. Tables ── */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table thead th {
  padding: 11px 16px; text-align: left;
  font-size: 11px; font-weight: 800; color: var(--text-hint);
  border-bottom: 2px solid var(--gray-100);
  white-space: nowrap; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--gray-50);
}
.table tbody tr { transition: background var(--t); cursor: pointer; }
.table tbody tr:hover { background: var(--pink-low); }
.table tbody td {
  padding: 14px 16px; font-size: 13px; color: var(--text-body);
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }

/* ── 11. Modals ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(9,9,15,0.75); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  z-index: 2000; padding: 20px;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }

.modal-box {
  background: white; border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  width: min(520px, 100%);
  max-height: 90vh; overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s var(--ease-out);
}
.modal-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad); border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.modal-lg { width: min(720px, 100%); }
.modal-sm { width: min(400px, 100%); }

.modal-head {
  padding: 22px 28px 18px; margin-top: 3px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--gray-100);
}
.modal-head h3 { font-size: 17px; font-weight: 800; color: var(--text); }
.modal-close {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  background: none; font-size: 20px; color: var(--text-hint);
  transition: all var(--t); display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--gray-100); color: var(--text); }

.modal-body { padding: 24px 28px; display: flex; flex-direction: column; gap: 18px; }
.modal-foot {
  padding: 18px 28px; border-top: 1px solid var(--gray-100);
  display: flex; justify-content: flex-end; gap: 10px;
}

/* Login modal specific — signup.html의 JOIN CASTANG 카드와 크기·여백을 동일하게 맞춤 */
.modal-box.login-box { width: min(540px, 100%); }
.login-head {
  padding: 32px 36px 24px; margin-top: 3px; position: relative;
  border-bottom: 1px solid var(--gray-100);
}
.login-head .modal-close { position: absolute; top: 18px; right: 18px; }
.login-head h2 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 900; color: var(--text);
  margin-bottom: 6px;
}
.login-head p { font-size: 13px; color: var(--text-muted); }
.login-body { padding: 28px 36px; display: flex; flex-direction: column; gap: 16px; }
.login-foot { padding: 20px 36px 28px; text-align: center; }
.login-foot p { font-size: 13px; color: var(--text-muted); }
.login-foot a { color: var(--pink); font-weight: 700; }

/* ── 12. Tabs ── */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.tab {
  padding: 8px 20px; border-radius: var(--r-pill);
  border: 1.5px solid var(--gray-200);
  background: white; font-size: 13px; font-weight: 600; color: var(--text-muted);
  cursor: pointer; transition: all var(--t);
}
.tab:hover { border-color: var(--pink); color: var(--pink); }
.tab.active {
  border-color: var(--pink); color: var(--pink);
  background: var(--pink-low);
}

/* ── 13. Toast ── */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: rgba(9,9,15,0.9); color: white;
  padding: 13px 24px; border-radius: var(--r-pill); font-size: 14px;
  z-index: 5000; display: none; align-items: center; gap: 8px;
  white-space: nowrap; backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  animation: fadeIn 0.2s ease;
}
.toast.show { display: inline-flex; }
.toast.toast-success { background: rgba(22,163,74,0.92); }
.toast.toast-error { background: rgba(220,38,38,0.92); }

/* ── 14. Page Banner (내부 페이지 헤더) ── */
.page-banner {
  background: linear-gradient(135deg, var(--dark) 0%, #1a1030 50%, #0d1a35 100%);
  padding: 64px 28px 52px;
  text-align: center; position: relative; overflow: hidden;
}
.page-banner::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(255,0,160,0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(188,179,240,0.16) 0%, transparent 50%);
}
.page-banner > * { position: relative; z-index: 1; }

.banner-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7); padding: 5px 14px;
  border-radius: var(--r-pill); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 16px; font-family: var(--font-en);
}
.banner-title {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 900; color: white;
  margin-bottom: 10px; line-height: 1.2;
}
.banner-title .hl {
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.banner-sub { color: rgba(255,255,255,0.5); font-size: 14px; }

.page-banner-sm {
  background: var(--dark); padding: 40px 28px 32px; text-align: center;
}
.page-banner-sm .banner-title { font-size: 22px; }

/* ── 15. Stat Cards ── */
.stat-card {
  background: white; border-radius: var(--r-lg);
  padding: 22px; border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--grad);
}
.stat-icon { font-size: 24px; margin-bottom: 10px; }
.stat-label {
  font-size: 11px; font-weight: 800; color: var(--text-hint);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px;
}
.stat-value {
  font-size: 28px; font-weight: 800; color: var(--text); line-height: 1;
  font-family: var(--font-en);
}
.stat-value.grad {
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-change { font-size: 12px; font-weight: 600; margin-top: 6px; }
.stat-up   { color: var(--green); }
.stat-down { color: var(--red); }

/* ── 16. Dashboard Layout ── */
.dash-layout {
  max-width: var(--max); margin: 0 auto;
  padding: 32px 28px;
  display: grid; grid-template-columns: 230px 1fr;
  gap: 24px; align-items: start;
}

.sidebar {
  background: white; border-radius: var(--r-lg);
  border: 1px solid var(--gray-100); box-shadow: var(--shadow-sm);
  overflow: hidden; position: sticky; top: calc(var(--nav-h) + 20px);
}
.sidebar-head {
  background: var(--grad); padding: 24px 20px; text-align: center;
}
.sidebar-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(16,0,20,0.12);
  border: 3px solid rgba(16,0,20,0.25);
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: var(--grad-text);
}
.sidebar-name { font-size: 14px; font-weight: 700; color: var(--grad-text); }
.sidebar-role { font-size: 11px; color: rgba(16,0,20,0.65); margin-top: 3px; }

.sidebar-nav { padding: 8px 0; }
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  transition: all var(--t); position: relative;
  border: none; background: none; width: 100%; text-align: left; cursor: pointer;
  text-decoration: none;
}
.sidebar-link:hover { background: var(--gray-50); color: var(--text); }
.sidebar-link.active { color: var(--pink); background: var(--pink-low); }
.sidebar-link.active::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--pink); border-radius: 0 2px 2px 0;
}
.sidebar-icon { font-size: 16px; width: 18px; text-align: center; flex-shrink: 0; }

.sidebar-divider {
  height: 1px; background: var(--gray-100); margin: 4px 20px;
}

.dash-content { display: flex; flex-direction: column; gap: 20px; }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

/* Content section card */
.section-card {
  background: white; border-radius: var(--r-lg);
  border: 1px solid var(--gray-100); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.section-card-head {
  padding: 16px 22px; border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-between;
}
.section-card-title { font-size: 14px; font-weight: 800; color: var(--text); }
.section-card-body { padding: 20px 22px; }

/* ── 17. Section patterns ── */
section { padding: 80px 0; }

.section-center { text-align: center; }
.section-tag {
  display: inline-block;
  font-family: var(--font-display); font-size: 10px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--pink); margin-bottom: 12px;
}
.section-title {
  font-size: 32px; font-weight: 800; color: var(--text);
  line-height: 1.25; margin-bottom: 14px;
}
.section-title-sm { font-size: 24px; font-weight: 800; color: var(--text); }
.section-sub { font-size: 15px; color: var(--text-muted); line-height: 1.7; max-width: 560px; margin: 0 auto; }

.section-dark { background: var(--dark); }
.section-dark .section-title { color: white; }
.section-dark .section-sub { color: rgba(255,255,255,0.5); }
.section-dark .section-tag { color: var(--purple); }
.section-off { background: var(--off); }

.section-head { margin-bottom: 48px; }

/* ── 18. Divider ── */
.divider { height: 1px; background: var(--gray-100); margin: 20px 0; }
.divider-grad { height: 1px; background: var(--grad); opacity: 0.3; }

/* ── 19. Empty state ── */
.empty {
  text-align: center; padding: 56px 20px; color: var(--text-muted);
}
.empty-icon { font-size: 48px; margin-bottom: 14px; opacity: 0.4; }
.empty-text { font-size: 15px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.empty-sub { font-size: 13px; }

/* ── 20. Pagination ── */
.pagination {
  display: flex; gap: 6px; align-items: center;
  justify-content: center; margin-top: 24px;
}
.page-btn {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  border: 1.5px solid var(--gray-200);
  background: white; font-size: 13px; font-weight: 600; color: var(--text-muted);
  cursor: pointer; transition: all var(--t);
  display: flex; align-items: center; justify-content: center;
}
.page-btn:hover { border-color: var(--pink); color: var(--pink); }
.page-btn.active { background: var(--pink); border-color: var(--pink); color: white; }
.page-btn:disabled { opacity: 0.4; cursor: default; }

/* ── 21. Animations ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-fade { animation: fadeIn 0.4s ease forwards; }
.animate-up  { animation: slideUp 0.5s var(--ease-out) forwards; }

/* ── 22. Responsive ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-actions > :not(.nav-toggle) { display: none; }
  .nav-actions .nav-toggle { display: flex; }

  .dash-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 56px 0; }
  .section-title { font-size: 24px; }
}

@media (max-width: 640px) {
  :root { --nav-h: 56px; }
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .nav-logo img { height: 38px; }

  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }

  .btn-lg { padding: 13px 28px; font-size: 14px; }
  .banner-title { font-size: 22px; }

  .modal-box { border-radius: var(--r-lg); }
  .modal-head { padding: 18px 20px 14px; }
  .modal-body { padding: 18px 20px; }
  .modal-foot { padding: 14px 20px; }
  .login-body { padding: 20px 24px; }
  .login-foot { padding: 14px 24px 24px; }
}

/* ── 23. Misc utilities ── */
.text-pink  { color: var(--pink); }
.text-purple { color: var(--purple-dark); }
.text-muted { color: var(--text-muted); }
.text-sm    { font-size: 12px; }
.text-center { text-align: center; }
.font-bold  { font-weight: 700; }
.font-display { font-family: var(--font-display); }

.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8      { gap: 8px; }
.gap-12     { gap: 12px; }
.gap-16     { gap: 16px; }
.gap-20     { gap: 20px; }

.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.hidden { display: none !important; }
.w-full { width: 100%; }
