/* ============================================================
   L1L.xyz — Linear-Inspired Dark Design System
   Minimal. Precise. Dark-mode-native.

   Font: Inter (Google Fonts) with cv01 + ss03 OpenType features
   === CDN link required in every page <head> ===
   <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap" rel="stylesheet">
   ============================================================ */

/* ── 1. Design Tokens ─────────────────────────────────── */
:root {
  /* ── Background Surfaces (dark luminance stack) ── */
  --color-bg:          #08090a;   /* Marketing Black — deepest canvas */
  --color-bg-panel:    #0f1011;   /* Panel Dark — sidebar, nav bars */
  --color-bg-elevated: #191a1b;   /* Level 3 — cards, containers */
  --color-bg-hover:    #28282c;   /* Secondary — hover states */

  --color-surface:       rgba(255,255,255,0.02);
  --color-surface-hover: rgba(255,255,255,0.05);

  /* ── Text (cool grayscale) ── */
  --color-text:           #f7f8f8;   /* Primary — near-white (not pure) */
  --color-text-secondary: #d0d6e0;   /* Silver — body, descriptions */
  --color-text-muted:     #8a8f98;   /* Tertiary — metadata, placeholders */
  --color-text-disabled:  #62666d;   /* Quaternary — disabled */

  /* ── Brand (indigo-violet accent) ── */
  --color-primary:        #5e6ad2;   /* Brand Indigo — CTA, active */
  --color-primary-hover:  #828fff;   /* Light Violet — hover */
  --color-primary-light:  rgba(94,106,210,0.12);
  --color-primary-gradient:    linear-gradient(135deg, #5e6ad2 0%, #7170ff 100%);
  --color-primary-gradient-h:  linear-gradient(to right, #5e6ad2, #7170ff);

  /* ── Borders (whisper-thin translucent white) ── */
  --color-border:       rgba(255,255,255,0.08);
  --color-border-light: rgba(255,255,255,0.05);
  --color-border-solid: #23252a;

  /* ── Status ── */
  --color-danger:    #e5484d;
  --color-success:   #27a644;
  --color-warning:   #f5a623;
  --color-star:      #f5a623;

  /* ── Typography ── */
  --font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs:   0.69rem;   /* 11px */
  --font-size-sm:   0.81rem;   /* 13px */
  --font-size-base: 0.88rem;   /* 14px */
  --font-size-md:   1.00rem;   /* 16px */
  --font-size-lg:   1.25rem;   /* 20px */
  --font-size-xl:   1.50rem;   /* 24px */
  --font-size-2xl:  1.75rem;   /* 28px */
  --font-weight-light:    300;
  --font-weight-normal:   400;
  --font-weight-medium:   500;   /* Linear's 510 mapped to 500 */
  --font-weight-semibold: 600;   /* Linear's 590 mapped to 600 */
  --font-weight-bold:     600;   /* No 700 — Linear caps at 590 */
  --line-height: 1.5;

  /* ── Spacing ── */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  0.75rem;
  --space-lg:  1rem;
  --space-xl:  1.25rem;
  --space-2xl: 1.5rem;
  --space-3xl: 2rem;

  /* ── Border Radius ── */
  --radius-sm:   4px;
  --radius-md:   6px;
  --radius-lg:   8px;
  --radius-xl:   12px;
  --radius-full: 9999px;

  /* ── Shadows (dark-surface adapted) ── */
  --shadow-xs:   rgba(0,0,0,0.2) 0px 0px 0px 1px;
  --shadow-sm:   rgba(0,0,0,0.4) 0px 2px 4px;
  --shadow-md:   rgba(0,0,0,0.01) 0px 5px 2px, rgba(0,0,0,0.04) 0px 3px 2px, rgba(0,0,0,0.08) 0px 0px 1px;
  --shadow-lg:   rgba(0,0,0,0.4) 0px 8px 24px;
  --shadow-xl:   rgba(0,0,0,0.5) 0px 12px 32px;
  --shadow-primary: 0 4px 12px rgba(94,106,210,0.25);
  --shadow-primary-lg: 0 8px 24px rgba(94,106,210,0.3);

  /* ── Layout ── */
  --topbar-height: 56px;
  --bottombar-height: 56px;
  --sidebar-width: 250px;

  /* ── Transitions ── */
  --transition-fast: 0.12s ease;
  --transition-normal: 0.18s ease;
  --transition-slow: 0.25s ease;

  /* ── Z-Index Scale ── */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-toast: 1060;
}

/* ── 2. Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  background-color: var(--color-bg);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: 'cv01', 'ss03';
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-normal);
}
a:hover { color: var(--color-primary-hover); }

img { max-width: 100%; height: auto; }

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

/* ── 3. Focus & Accessibility ─────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
button, .nav-item, .clickable {
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}

/* ── 4. Typography Utilities ──────────────────────────── */
.text-xs   { font-size: var(--font-size-xs); }
.text-sm   { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-md   { font-size: var(--font-size-md); }
.text-lg   { font-size: var(--font-size-lg); }
.text-xl   { font-size: var(--font-size-xl); }
.text-2xl  { font-size: var(--font-size-2xl); }

.text-primary    { color: var(--color-text); }
.text-secondary  { color: var(--color-text-secondary); }
.text-muted      { color: var(--color-text-muted); }
.text-brand      { color: var(--color-primary); }
.text-danger     { color: var(--color-danger); }
.text-success    { color: var(--color-success); }

.font-medium    { font-weight: var(--font-weight-medium); }
.font-semibold  { font-weight: var(--font-weight-semibold); }
.font-bold      { font-weight: var(--font-weight-bold); }

.text-truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.text-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── 5. Layout Containers ─────────────────────────────── */
.page-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
@media (min-width: 768px) {
  .page-container { max-width: 720px; padding-left: 0; padding-right: 0; }
}
@media (min-width: 1024px) {
  .page-container { max-width: 960px; }
}

.page-container-wide {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
@media (min-width: 768px) {
  .page-container-wide { padding-left: var(--space-lg); padding-right: var(--space-lg); }
}

.safe-bottom {
  padding-bottom: calc(var(--bottombar-height) + env(safe-area-inset-bottom, 0px));
}
.safe-bottom-only {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── 6. Header / Top Bar ──────────────────────────────── */
.page-header {
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-panel);
  border-bottom: 1px solid var(--color-border-light);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}
.page-header-gradient {
  background: var(--color-primary-gradient-h);
  border-bottom: none;
}

/* ── 7. Cards (Linear-style: translucent bg + subtle border) ── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-body {
  padding: var(--space-2xl);
}

.card-hover {
  transition: border-color var(--transition-normal), background var(--transition-normal);
}
.card-hover:hover {
  border-color: var(--color-primary);
  background: var(--color-surface-hover);
}

/* Teacher card */
.card-teacher {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.card-teacher:hover {
  border-color: var(--color-primary);
  background: var(--color-surface-hover);
}

/* Course card (horizontal, image + body) */
.card-course {
  display: flex;
  margin-bottom: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-course-cover {
  width: 120px;
  height: 120px;
  object-fit: cover;
  flex-shrink: 0;
}
.card-course-body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
@media (min-width: 768px) {
  .card-course-cover { width: 200px; height: 160px; }
  .card-course-body { max-width: 500px; }
}
@media (min-width: 1024px) {
  .card-course-cover { width: 240px; height: 180px; }
  .card-course-body { max-width: 520px; padding: var(--space-xl) var(--space-lg); }
}

/* Section card */
.card-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

/* ── 8. Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.5rem 1rem;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  min-height: 36px;
  line-height: 1.4;
  background: var(--color-surface);
  color: var(--color-text-secondary);
}
.btn:hover {
  border-color: var(--color-primary);
  background: var(--color-surface-hover);
  color: var(--color-text);
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: var(--shadow-primary);
  color: #ffffff;
}

.btn-gradient {
  background: var(--color-primary-gradient-h);
  color: #ffffff;
  border-color: transparent;
}
.btn-gradient:hover {
  box-shadow: var(--shadow-primary-lg);
  color: #ffffff;
}

.btn-block { width: 100%; }

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: var(--font-size-xs);
  min-height: 32px;
}
.btn-lg {
  padding: 0.7rem 1.5rem;
  font-size: var(--font-size-md);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
  background: var(--color-surface-hover);
}

/* ── 9. Forms ─────────────────────────────────────────── */
.form-group {
  margin-bottom: var(--space-xl);
  position: relative;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: var(--font-size-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-light);
  outline: none;
  color: var(--color-text);
}
.form-control::placeholder { color: var(--color-text-muted); }

.form-control.has-icon { padding-left: 40px; }

.form-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
  z-index: 1;
}

/* Search box */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.search-box .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  z-index: 1;
  font-size: var(--font-size-base);
}
.search-box .form-control {
  padding-left: 2.25rem;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  border-right: none;
}
.search-btn {
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: background var(--transition-normal);
  min-height: 44px;
}
.search-btn:hover { background: var(--color-primary-hover); }

.search-pill {
  border-radius: var(--radius-full) !important;
  border: 1px solid var(--color-border) !important;
  background: var(--color-surface);
  padding: 0.5rem 1rem 0.5rem 2.5rem;
}

/* ── 10. Bottom Navigation ────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg-panel);
  border-top: 1px solid var(--color-border-light);
  padding: var(--space-sm);
  padding-bottom: calc(var(--space-sm) + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-fixed);
}
.nav-item {
  text-align: center;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--font-size-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-xs);
  transition: color var(--transition-normal);
}
.nav-item i {
  font-size: 1.25rem;
  display: block;
  margin-bottom: 4px;
}
.nav-item.active { color: var(--color-primary); }

/* ── 11. Avatars ──────────────────────────────────────── */
.avatar {
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
}
.avatar-sm  { width: 36px; height: 36px; }
.avatar-md  { width: 50px; height: 50px; }
.avatar-lg  { width: 60px; height: 60px; }
.avatar-xl  { width: 100px; height: 100px; }

/* ── 12. Tags & Badges ────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  font-size: var(--font-size-xs);
  border-radius: var(--radius-full);
  background: var(--color-surface-hover);
  color: var(--color-text-secondary);
  text-decoration: none;
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-normal);
}
.tag:hover { border-color: var(--color-primary); color: var(--color-text); }

.tag-brand {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-color: rgba(94,106,210,0.2);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0.15rem 0.45rem;
  font-size: var(--font-size-xs);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  background: var(--color-surface-hover);
  color: var(--color-text-muted);
}

/* ── 13. Star Rating ──────────────────────────────────── */
.stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--color-star);
  font-size: var(--font-size-sm);
}
.stars .value {
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
  margin-left: 4px;
}

/* ── 14. Time Slots ───────────────────────────────────── */
.time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.time-slot {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.time-slot:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-primary);
  color: var(--color-text);
}
.time-slot.selected {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

/* ── 15. Empty States ─────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.empty-state-icon {
  font-size: 2.5rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}
.empty-state-text {
  color: var(--color-text-muted);
  font-size: var(--font-size-md);
}
.empty-state-text .keyword {
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
}

/* ── 16. Auth Pages (dark-adapted) ────────────────────── */
.auth-page {
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 16px;
}
.auth-container {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  width: 100%;
  padding: var(--space-3xl);
  border-radius: var(--radius-xl);
}
.auth-container.sm { max-width: 400px; }
.auth-container.md { max-width: 480px; }
.auth-container.lg { max-width: 560px; }

.auth-title {
  text-align: center;
  margin-bottom: var(--space-2xl);
  color: var(--color-text);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
}
.auth-icon {
  font-size: 40px;
  color: var(--color-primary);
  margin-bottom: 12px;
}

/* ── 17. Modals ───────────────────────────────────────── */
.modal-content {
  background: var(--color-bg-elevated) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-xl) !important;
}
.modal-header {
  border-bottom: 1px solid var(--color-border-light) !important;
}
.modal-footer {
  border-top: 1px solid var(--color-border-light) !important;
}
.modal-header-gradient {
  border-bottom: none !important;
  padding: 1.25rem 1.5rem;
  background: var(--color-primary-gradient-h);
  color: #ffffff;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.modal-header-gradient .btn-close {
  filter: brightness(0) invert(1);
}

/* ── 18. Dashboard Stats ──────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}
.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.stat-card.primary::before  { background: var(--color-primary-gradient-h); }
.stat-card.warning::before  { background: linear-gradient(90deg, #f6d365, #fda085); }
.stat-card.success::before  { background: linear-gradient(90deg, #27a644, #10b981); }
.stat-value {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}
.stat-label {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  margin-top: var(--space-xs);
}

/* ── 19. Teacher Content Layout ───────────────────────── */
.teacher-content {
  margin-top: var(--topbar-height);
  padding: var(--space-2xl);
  min-height: calc(100vh - var(--topbar-height));
}
@media (min-width: 992px) {
  .teacher-content { margin-left: var(--sidebar-width); }
}

/* ── 20. Profile Section ──────────────────────────────── */
.profile-header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.profile-header-body { flex: 1; }
.profile-name {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}
.profile-meta {
  color: var(--color-text-muted);
  font-size: var(--font-size-base);
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
  padding: var(--space-lg);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
}
.profile-stat-value {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}
.profile-stat-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* ── 21. Toast Notifications ──────────────────────────── */
.toast-container {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
}
.toast {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  pointer-events: auto;
  animation: toast-in var(--transition-slow) ease forwards;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  max-width: 360px;
}
.toast.success { border-left: 3px solid var(--color-success); }
.toast.error   { border-left: 3px solid var(--color-danger); }
.toast.info    { border-left: 3px solid var(--color-primary); }
.toast.fade-out { animation: toast-out var(--transition-normal) ease forwards; }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(16px); }
}

/* ── 22. Skeleton Loader ──────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: skeleton-wave 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
.skeleton-text { height: 14px; margin-bottom: var(--space-sm); }
.skeleton-text.short { width: 60%; }
.skeleton-avatar {
  width: 50px; height: 50px;
  border-radius: var(--radius-full);
}
.skeleton-card { height: 80px; margin-bottom: var(--space-md); }

@keyframes skeleton-wave {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── 23. Page Transition ──────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: 0.15s ease both fade-out; }
  ::view-transition-new(root) { animation: 0.2s ease both fade-in-up; }
}
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 24. Utility Classes ──────────────────────────────── */
.gap-xs  { gap: var(--space-xs); }
.gap-sm  { gap: var(--space-sm); }
.gap-md  { gap: var(--space-md); }
.gap-lg  { gap: var(--space-lg); }

.d-flex       { display: flex; }
.flex-col     { flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.flex-1       { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.min-w-0      { min-width: 0; }

.mt-0  { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.text-center { text-align: center; }
.text-left   { text-align: left; }

.w-full  { width: 100%; }
.h-full  { height: 100%; }

.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

.cursor-pointer { cursor: pointer; }

/* ── 25. Responsive Utilities ─────────────────────────── */
.hide-mobile  { display: none; }
@media (min-width: 768px) {
  .hide-mobile  { display: initial; }
  .hide-desktop { display: none; }
}

/* ── 26. Image Utilities ──────────────────────────────── */
.img-thumb {
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.img-cover {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ── 27. Swiper Overrides ─────────────────────────────── */
.swiper { width: 100%; }
.banner-slide { height: 180px; }
.banner-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.swiper-pagination-bullet { background: var(--color-text-muted); opacity: 0.5; }
.swiper-pagination-bullet-active { background: var(--color-primary); opacity: 1; }
@media (min-width: 768px) {
  .banner-slide { height: 300px; }
}

/* ── 28. Block Link Cards (profile menu, etc.) ────────── */
.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all var(--transition-normal);
  margin-bottom: var(--space-sm);
}
.link-card:hover {
  border-color: var(--color-primary);
  background: var(--color-surface-hover);
  color: var(--color-text);
}
.link-card i.bi-chevron-right { color: var(--color-text-muted); }
