/* =========================================================
   MixFav LMS — Core Stylesheet
   ========================================================= */

:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #DBEAFE;
  --secondary: #0EA5E9;
  --accent: #F59E0B;
  --success: #22C55E;
  --danger: #EF4444;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text: #1E293B;
  --text-muted: #64748B;
  --border: #E2E8F0;

  --gradient-primary: linear-gradient(135deg, #2563EB 0%, #0EA5E9 100%);
  --gradient-warm: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
  --gradient-hero: linear-gradient(120deg, #EFF6FF 0%, #F0F9FF 55%, #FFFBEB 100%);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(30, 41, 59, 0.06);
  --shadow-md: 0 8px 24px rgba(30, 41, 59, 0.08);
  --shadow-lg: 0 20px 48px rgba(37, 99, 235, 0.14);

  --font-display: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --sidebar-width: 264px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background-color: var(--bg); font-size: 15.5px; line-height: 1.65; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
p { color: var(--text-muted); }
a { text-decoration: none; color: inherit; transition: all .2s ease; }
.text-primary-brand { color: var(--primary) !important; }
.bg-brand-light { background-color: var(--primary-light) !important; }
.section-padding { padding: 88px 0; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); background: var(--primary-light); padding: 6px 16px; border-radius: var(--radius-pill); margin-bottom: 16px; }
.section-title { font-size: clamp(26px, 3.2vw, 40px); margin-bottom: 12px; }
.section-subtitle { color: var(--text-muted); font-size: 16.5px; max-width: 620px; }

/* Buttons */
.btn { font-weight: 600; border-radius: var(--radius-pill); padding: 11px 26px; transition: all .25s ease; }
.btn-brand { background: var(--gradient-primary); color: #fff; border: none; box-shadow: 0 8px 20px rgba(37, 99, 235, .25); }
.btn-brand:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37, 99, 235, .35); }
.btn-outline-brand { border: 1.5px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline-brand:hover { background: var(--primary); color: #fff; }
.btn-sm-pill { padding: 7px 18px; font-size: 13.5px; border-radius: var(--radius-pill); }

/* Extra-small button for dense table actions (e.g. report View Details). */
.btn-xs { padding: 3px 10px; font-size: 12px; border-radius: 8px; line-height: 1.5; }
.btn-icon-circle { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg); color: var(--text); border: 1px solid var(--border); flex: none; padding: 0; aspect-ratio: 1 / 1; }
.btn-icon-circle:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-icon-circle-sm { width: 34px; height: 34px; font-size: 15px; }
/* Overlay for the heart on a card thumbnail: the top corners already belong to
   the category and discount badges. */
.card-thumb-wishlist { position: absolute; right: 10px; bottom: 10px; }
.btn-saved, .btn-saved:hover { color: #E11D48; border-color: #E11D48; background: #FFF1F2; }
.btn-saved:hover { background: #FFE4E6; }

/* Cards */
.card-brand { background: #fff; border-radius: var(--radius-md); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.stat-card { background: #fff; border-radius: var(--radius-md); padding: 22px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; margin-bottom: 14px; }
.feature-card { background: #fff; border-radius: var(--radius-md); padding: 30px 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); height: 100%; }
.feature-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }

/* Gradient headline text, e.g. "Browse <span>top categories</span>". */
.text-gradient { background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Home category tiles: a gradient art block in the category's own colour,
   the name, and a two-tone count pill — the site's answer to the
   reference's glossy tiles, without borrowing its red-on-black look. */
.cat-tile { display: flex; flex-direction: column; align-items: center; height: 100%; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 10px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
a.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--cat, var(--primary)); }
.cat-tile__art { width: 100%; border-radius: 14px; padding: 20px 8px; display: flex; align-items: center; justify-content: center; font-size: 32px; color: #fff; margin-bottom: 10px; background: var(--cat, var(--primary)); background: linear-gradient(135deg, var(--cat, var(--primary)) 0%, color-mix(in srgb, var(--cat, var(--primary)) 55%, #0EA5E9) 100%); box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); text-shadow: 0 2px 8px rgba(0,0,0,.25); }
.cat-tile__name { font-weight: 600; font-size: 14px; text-align: center; line-height: 1.35; }
.cat-tile__pill { margin-top: 8px; font-size: 11.5px; font-weight: 700; color: #fff; padding: 4px 14px; border-radius: var(--radius-pill); white-space: nowrap; background: var(--cat, var(--primary)); background: linear-gradient(135deg, color-mix(in srgb, var(--cat, var(--primary)) 70%, #F59E0B) 0%, var(--cat, var(--primary)) 100%); }

/* Course / Book cards */
.course-card, .book-card { background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); height: 100%; display: flex; flex-direction: column; transition: all .3s ease; }
.course-card:hover, .book-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-thumb-wrap { position: relative; overflow: hidden; }
.card-thumb-wrap img { width: 100%; height: 180px; object-fit: cover; }
.badge-category { position: absolute; top: 12px; left: 12px; background: rgba(37,99,235,.92); color: #fff; font-size: 11.5px; font-weight: 600; padding: 5px 12px; border-radius: var(--radius-pill); }
.badge-discount { position: absolute; top: 12px; right: 12px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: var(--radius-pill); }
.card-body-custom { padding: 18px; display: flex; flex-direction: column; flex: 1; }
/* Item titles. Deliberately one rule for the dashboard rows, the library pages
   and the storefront cards: a title must not change size depending on which
   page it happens to be listed on. .book-title used to have no rule at all and
   inherited the h3 default, which is why the library pages read bigger than
   the dashboard. overflow-wrap keeps a long title wrapping instead of
   overflowing its card. */
.dash-item__title, .course-title, .book-title { display: block; font-size: 15px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.course-title { margin-bottom: 8px; }
.price-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; border-top: 1px dashed var(--border); padding-top: 12px; }
.price-current { font-size: 18px; font-weight: 700; color: var(--primary); }
.price-old { font-size: 12.5px; color: var(--text-muted); text-decoration: line-through; margin-right: 6px; }

/* Auth */
.auth-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.auth-side { background: var(--gradient-primary); color: #fff; padding: 60px 40px; display: flex; flex-direction: column; justify-content: center; height: 100%; }
.form-control-custom { border-radius: var(--radius-sm); padding: 11px 15px; border: 1.5px solid var(--border); font-size: 14.5px; }
.form-control-custom:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); }

/* Listing sort dropdown: shrink-to-fit on desktop, full-width row on phones. */
.sort-form select { width: auto; }
/* A locked field should read as settled, not as an input awaiting attention:
   muted surface, no focus ring, and the browser's default text selection. */
.form-control-custom[readonly] { background: var(--bg, #F8FAFC); color: #64748B; border-style: dashed; cursor: default; }
.form-control-custom[readonly]:focus { border-color: var(--border); box-shadow: none; }
.form-label-custom { font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }

/* ============ Dashboard shell ============ */
.dash-wrapper { display: flex; min-height: 100vh; }
.dash-sidebar {
  width: var(--sidebar-width); flex-shrink: 0; background: #0F172A; color: #cbd5e1;
  position: fixed; top: 0; bottom: 0; left: 0; overflow-y: auto; z-index: 1030; transition: transform .25s ease;
}
.dash-sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 22px 20px; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 19px; border-bottom: 1px solid #1E293B; }
.dash-sidebar .brand .logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--gradient-primary); display: inline-flex; align-items: center; justify-content: center; }
.dash-sidebar .nav-section-title { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #64748B; padding: 18px 20px 6px; }
.dash-sidebar .nav-link { color: #cbd5e1; padding: 10px 20px; font-size: 14px; display: flex; align-items: center; gap: 12px; border-left: 3px solid transparent; }
.dash-sidebar .nav-link i { font-size: 16px; width: 18px; }
.dash-sidebar .nav-link:hover { background: #1E293B; color: #fff; }
.dash-sidebar .nav-link.active { background: #1E293B; color: #fff; border-left-color: var(--secondary); font-weight: 600; }

/* Sidebar group menus (collapsible) */
.dash-sidebar .nav-parent {
  cursor: pointer; width: 100%; border: 0; background: none; text-align: left;
  color: #cbd5e1; padding: 10px 20px; font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 12px;
  border-left: 3px solid transparent; transition: background .15s, color .15s;
}
.dash-sidebar .nav-parent i:first-child { font-size: 16px; width: 18px; flex-shrink: 0; }
.dash-sidebar .nav-parent .nav-parent-caret { margin-left: auto; font-size: 13px; color: #64748B; transition: transform .2s; }
.dash-sidebar .nav-parent:hover, .dash-sidebar .nav-parent.active { background: #1E293B; color: #fff; }
.dash-sidebar .nav-parent.active { border-left-color: var(--secondary); font-weight: 600; }
.dash-sidebar .nav-parent.active .nav-parent-caret { color: #fff; }
.dash-sidebar .nav-parent[aria-expanded="true"] .nav-parent-caret { transform: rotate(180deg); }
.dash-sidebar .nav-collapse { background: #131C30; }
.dash-sidebar .nav-collapse .nav-link { padding: 8px 20px 8px 50px; font-size: 13.5px; border-left: 3px solid transparent; }
.dash-sidebar .nav-collapse .nav-link i { font-size: 14px; width: 16px; }
.dash-main { flex: 1; margin-left: var(--sidebar-width); min-width: 0; }
.dash-topbar { background: #fff; border-bottom: 1px solid var(--border); padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1020; }
.dash-content { padding: 28px; }
.sidebar-toggle-btn { display: none; }


.table-brand { background: #fff; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.table-brand table { margin-bottom: 0; }
.table-brand thead th { background: var(--bg); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); border-bottom: 1px solid var(--border); font-weight: 600; padding: 14px 16px; }
.table-brand tbody td { padding: 14px 16px; vertical-align: middle; font-size: 14px; border-bottom: 1px solid var(--border); }
.table-brand tbody tr:last-child td { border-bottom: none; }
.badge-status { padding: 5px 12px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; }
.badge-status.status-published, .badge-status.status-completed, .badge-status.status-paid, .badge-status.status-approved, .badge-status.status-active { background: #DCFCE7; color: #15803D; }
.badge-status.status-draft, .badge-status.status-pending { background: #FEF3C7; color: #B45309; }
.badge-status.status-rejected, .badge-status.status-cancelled, .badge-status.status-failed, .badge-status.status-inactive { background: #FEE2E2; color: #B91C1C; }
.badge-status.status-processing, .badge-status.status-refunded { background: #DBEAFE; color: #1D4ED8; }

.filter-card { background: #fff; border-radius: var(--radius-md); padding: 22px; border: 1px solid var(--border); margin-bottom: 22px; }
.progress-thin { height: 7px; border-radius: var(--radius-pill); background: var(--border); }
.progress-thin .progress-bar { background: var(--gradient-primary); border-radius: var(--radius-pill); }
.avatar-sm { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.avatar-md { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.avatar-upload { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 4px solid var(--primary-light); }

.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 56px; color: var(--border); margin-bottom: 16px; display: block; }

.site-footer { background: #0F172A; color: #94A3B8; padding-top: 64px; }
.site-footer h6 { color: #fff; font-weight: 600; margin-bottom: 18px; }
.site-footer a { color: #94A3B8; font-size: 14px; line-height: 2.2; }
.site-footer a:hover { color: var(--secondary); }
.footer-bottom { border-top: 1px solid #1E293B; margin-top: 40px; padding: 20px 0; font-size: 13px; }

/* Compact footer shown on phones only (the desktop columns are hidden there
   with d-none d-md-block). Centred contact, store badges, socials, copyright. */
.footer-mobile { text-align: center; padding: 32px 20px 16px; }
.footer-mobile__brand { color: #fff !important; font-size: 20px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px; line-height: 1.4; }
h6.footer-mobile__heading { color: #adb5bd; font-weight: 700; font-size: 12px; margin: 18px 0 8px; }
.footer-mobile p { font-size: 14px; line-height: 2; }
.footer-mobile p a { font-size: 14px; line-height: 2; }
.footer-mobile__badges { display: flex; gap: 8px; justify-content: center; flex-wrap: nowrap; margin: 12px 0 20px; }
.store-badge { display: inline-flex; align-items: center; gap: 8px; background: #000; border: 1px solid #475569; border-radius: 8px; padding: 6px 12px 6px 10px; line-height: 1.25; }
.store-badge:hover { border-color: var(--secondary); }
.store-badge i { font-size: 20px; color: #fff; }
.store-badge small { display: block; font-size: 9px; letter-spacing: .5px; text-transform: uppercase; color: #CBD5E1; white-space: nowrap; }
.store-badge strong { display: block; font-size: 10px; font-weight: 600; color: #fff; white-space: nowrap; }
.store-download-heading { font-size: 12px; color: #adb5bd; }
.footer-mobile__social { display: flex; gap: 24px; justify-content: center; margin: 6px 0 16px; }
.footer-mobile__social a { color: #fff !important; font-size: 20px; line-height: 1; }
.footer-mobile__copy { font-size: 13px; line-height: 1.8; }

.main-nav { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.main-nav .nav-link { font-weight: 500; color: var(--text); margin: 0 4px; padding: 10px 14px !important; border-radius: var(--radius-pill); font-size: 14.5px; }
.main-nav .nav-link.active, .main-nav .nav-link:hover { color: var(--primary); background: var(--primary-light); }
.navbar-brand-custom { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--text) !important; display: flex; align-items: center; gap: 8px; }
.navbar-brand-custom .logo-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--gradient-primary); display: inline-flex; align-items: center; justify-content: center; color: #fff; }

.rating-stars { color: var(--accent); }
.back-to-top { position: fixed; bottom: 26px; right: 26px; width: 44px; height: 44px; border-radius: 50%; background: var(--gradient-primary); color: #fff; display: none; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); z-index: 999; border: none; }
.back-to-top.show { display: flex; }

.option-pill { border: 1.5px solid var(--border); border-radius: var(--radius-pill); background: #fff; color: var(--text); padding: 6px 16px; font-size: 14px; }
.option-pill:hover { border-color: var(--primary); color: var(--primary); }
.option-pill.active { border-color: var(--primary); background: var(--primary); color: #fff; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: var(--radius-pill); }

/* Click-to-play video: custom thumbnail + play button that lazy-loads the iframe */
.video-click-to-play { position: absolute; inset: 0; cursor: pointer; }
.video-click-to-play img { width: 100%; height: 100%; object-fit: cover; }
.video-play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 64px; height: 64px; border-radius: 50%; border: none;
    background: var(--gradient-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; padding-left: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
    transition: transform .2s ease, box-shadow .2s ease;
}
.video-click-to-play:hover .video-play-btn { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 12px 30px rgba(0,0,0,.45); }

/* Wishlist heart pinned to an image corner. The left/width/height resets are
   load-bearing: inside a Bootstrap .ratio box, ".ratio > *" forces every
   direct child to left:0 + 100% + 100%, which once stretched this wrapper
   over the whole thumbnail and swallowed every click meant for the video. */
.wishlist-corner { position: absolute; top: 10px; right: 10px; left: auto; width: auto; height: auto; z-index: 10; }

/* =========================================================
   Dashboard shortcut rows (Continue Learning, My Books)
   =========================================================
   One row primitive shared by every panel that shows a "pick up where you left
   off" list, so the panels read identically and only have to be made
   responsive once. min-width:0 on the flex body matters: without it a long
   course title refuses to shrink and pushes the row wider than a phone. */
.dash-item {
  display: flex; align-items: center; gap: 14px; height: 100%; padding: 14px 16px;
  background: #fff; border: 1px solid var(--border); border-radius: 1rem;
  color: inherit; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.dash-item:hover { border-color: var(--primary); box-shadow: 0 10px 24px rgba(37, 99, 235, .15); transform: translateY(-2px); }
.dash-item__body { flex: 1 1 auto; min-width: 0; }
.dash-item__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; }
.dash-item__chevron { flex-shrink: 0; font-size: 14px; color: var(--text-muted); }
.dash-item:hover .dash-item__chevron { color: var(--primary); }
.card-thumb-wrap a.btn.btn-icon-circle.btn-icon-circle-sm { padding: 20px 10px 15px 10px; }

/* Action tiles: circular soft-background icon with the label underneath, like
   a service grid. The whole tile (circle + label) is one link/button, so a
   card with 4-5 actions stays compact instead of stacking full-width pills. */
.action-tiles { display: flex; flex-wrap: wrap; gap: 16px 14px; }
.action-tile { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; width: 74px; padding: 0; border: 0; background: transparent; text-decoration: none; cursor: pointer; }
.action-tile__circle { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; background: #F1F5F9; color: var(--primary); transition: transform .2s ease, box-shadow .2s ease; }
.action-tile:hover .action-tile__circle { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15, 23, 42, .12); }
.action-tile__label { font-size: 11.5px; line-height: 1.35; font-weight: 500; color: var(--text); text-align: center; max-width: 74px; }
a.action-tile:hover .action-tile__label { color: var(--primary); }
.action-tile--blue .action-tile__circle { background: #EFF6FF; color: #2563EB; }
.action-tile--amber .action-tile__circle { background: #FFFBEB; color: #D97706; }
.action-tile--green .action-tile__circle { background: #F0FDF4; color: #16A34A; }
.action-tile--red .action-tile__circle { background: #FEF2F2; color: #DC2626; }
.action-tile--violet .action-tile__circle { background: #F5F3FF; color: #7C3AED; }
.action-tile--pink .action-tile__circle { background: #FDF2F8; color: #DB2777; }
.action-tile.is-disabled { opacity: .45; cursor: not-allowed; }
.action-tile.is-disabled:hover .action-tile__circle { transform: none; box-shadow: none; }

@media (max-width: 991px) {
  .dash-sidebar { transform: translateX(-100%); }
  .dash-sidebar.show { transform: translateX(0); }
  .dash-main { margin-left: 0; }
  .sidebar-toggle-btn { display: inline-flex; }
}
@media (max-width: 768px) { .section-padding { padding: 56px 0; } }
@media (max-width: 767.98px) {
  /* Give back the space the fixed desktop gutters take, and the height the
     desktop pill throws away -- these are the numbers being tapped. */
  .dash-content { padding: 18px 14px; }
  .dash-topbar { padding: 12px 14px; }
  .filter-card { padding: 16px 14px; margin-bottom: 16px; }
  .stat-card { padding: 14px; }
  .stat-icon { width: 40px; height: 40px; font-size: 17px; border-radius: 10px; margin-bottom: 10px; }
  .btn-sm-pill { padding: 10px 16px; }
  .dash-item { padding: 12px 14px; }
  /* A pointer affordance, not information -- and the whole row is already a
     link, so it is the first thing worth losing when space is scarce. */
  .dash-item__chevron { display: none; }
  /* Logged-in header on phones: the title shrinks and truncates, and the
     bell sits tight against the avatar, so a long page title never pushes
     the controls off-screen. */
  /* The desktop footer columns are hidden on phones, so the 64px desktop
     top padding would just be empty space above the mobile footer. */
  .site-footer { padding-top: 8px; }
  /* The sort dropdown drops to its own row and stretches full-width. */
  .sort-form { width: 100%; }
  .sort-form select { width: 100%; }
  /* Section headers (categories) stay on one row: compact title, small button. */
  .section-head { flex-wrap: nowrap; }
  .section-head .eyebrow { font-size: 11px; padding: 4px 12px; margin-bottom: 8px; }
  .section-head .section-title { font-size: 20px; }
  /* Home hero compacts: less top air (inline padding overridden), smaller
     headline and lede, CTAs sharing the row or wrapping gracefully. */
  .hero-section { padding: 64px 0 44px !important; }
  .hero-section h1 { font-size: 29px !important; line-height: 1.2 !important; }
  .hero-section .fs-5 { font-size: 1rem !important; }
  .hero-cta .btn { flex: 1 1 150px; }
  /* Manager/admin order lists: filters stack full-width, bulk dispatch
     controls go full-width (inline max-widths overridden). */
  .orders-filter select { flex: 1 1 100%; }
  #order-bulk-bar .form-select,
  #order-bulk-bar .form-control { flex: 1 1 100%; max-width: none !important; }
  #order-bulk-bar .btn-primary { flex: 1 1 100%; }
  /* Admin reports filter: From/To share a row, Apply and exports go full-width. */
  .reports-filter .report-date { flex: 1 1 40%; min-width: 0; }
  .reports-filter > .btn-brand { flex: 1 1 100%; }
  .reports-filter .reports-exports { flex: 1 1 100%; margin-left: 0 !important; }
  .reports-filter .reports-exports .btn { flex: 1 1 0; padding: 11px 5px; }
  /* Home category tiles stay compact at 3 per row. */
  .section-head { flex-wrap: nowrap; }
  .section-head .eyebrow { font-size: 11px; padding: 4px 12px; margin-bottom: 8px; }
  .section-head .section-title { font-size: 20px; }
  .cat-tile { padding: 10px 6px 12px; border-radius: 18px; }
  .cat-tile__art { font-size: 24px; padding: 14px 6px; border-radius: 12px; }
  .cat-tile__name { font-size: 12.5px; }
  .cat-tile__pill { font-size: 10.5px; padding: 3px 10px; }
  /* Bundles filter stacks like the course/book/product filters: search on
     its own row, the two selects side by side, button full-width. The
     inline 240px search width is overridden here so nothing overflows. */
  .bundle-filter { width: 100%; flex-wrap: wrap; }
  .bundle-filter input[name="search"] { flex: 1 1 100%; width: 100% !important; }
  .bundle-filter select { flex: 1 1 0; min-width: 0; }
  .bundle-filter .btn { flex: 1 1 100%; }
  .dash-topbar { gap: 8px; }
  .dash-topbar > .d-flex { gap: 6px !important; min-width: 0; }
  .dash-topbar__title { font-size: 14px; flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* At 320px wide the row squeezes every flex item below its fixed size,
     which turns the 40px circles into ovals -- pin them and slim the
     profile button (its desktop padding is what steals the title's room). */
  .dash-topbar .btn-icon-circle { flex-shrink: 0; width: 36px; height: 36px; }
  .dash-topbar__profile { flex-shrink: 0; padding: 2px !important; gap: 4px !important; }
  .dash-topbar__profile .bi-chevron-down { display: none; }
}
