/* =====================================================================
   MSDSU Student Portal – Custom Theme
   Layered on top of AdminLTE 3 (load AFTER adminlte.min2167.css)
   Brand: Navy + Maroon + Gold (from the university logo)
   ===================================================================== */

:root {
  --navy: #1b2a4e;
  --navy-2: #26396b;
  --navy-3: #0f1b3a;
  --maroon: #8a2b25;
  --gold: #c9972b;
  --gold-soft: #fbf3e0;
  --bg: #f3f5fa;
  --surface: #ffffff;
  --text: #1f2a44;
  --muted: #6b7694;
  --line: #e6e9f2;
  --line-strong: #d3d9e8;
  --ok: #1f8a5b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(27, 42, 78, .06), 0 1px 3px rgba(27, 42, 78, .05);
  --shadow: 0 6px 24px rgba(27, 42, 78, .08);
  --shadow-lg: 0 18px 50px rgba(27, 42, 78, .16);
  --font: 'Inter', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font); color: var(--text); letter-spacing: -.01em; }
a { color: var(--navy-2); }
a:hover { color: var(--maroon); }
.content-wrapper { background: var(--bg) !important; min-height: calc(100vh - 64px) !important; }
.content-wrapper > .content { padding-bottom: 28px; }
::selection { background: var(--navy); color: #fff; }

/* ---------- Top navbar ---------- */
.main-header.navbar {
  min-height: 64px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line) !important;
  box-shadow: 0 1px 0 rgba(27, 42, 78, .03);
  padding: 0 14px;
}
.main-header .nav-link { color: var(--text) !important; border-radius: 10px; }
.main-header .nav-link:hover { background: var(--bg); color: var(--navy) !important; }
.main-header .nav-link i { font-size: 1.05rem; }
.nav-visit i { font-size: .8rem !important; margin-left: 4px; color: var(--muted); }

.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px 6px 6px !important; border-radius: 999px !important;
  border: 1px solid var(--line); background: #fff;
}
.user-chip:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.avatar-initial {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, var(--navy-2), var(--maroon));
}
.user-chip .uc-name { font-weight: 600; font-size: 13.5px; line-height: 1.1; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .uc-sub { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.user-menu {
  border: 1px solid var(--line) !important; border-radius: var(--radius) !important;
  box-shadow: var(--shadow-lg) !important; padding: 8px !important; min-width: 230px; margin-top: 10px !important;
}
.user-menu .um-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-menu .um-head strong { display: block; font-size: 14px; }
.user-menu .um-head small { color: var(--muted); }
.user-menu .dropdown-item { border-radius: 8px; padding: 9px 12px; font-size: 14px; color: var(--text); }
.user-menu .dropdown-item i { width: 22px; color: var(--muted); }
.user-menu .dropdown-item:hover { background: var(--bg); color: var(--navy); }
.user-menu .dropdown-item.logout { color: var(--maroon); }
.user-menu .dropdown-item.logout i { color: var(--maroon); }

/* ---------- Sidebar ---------- */
.main-sidebar.sidebar-dark-primary {
  background: linear-gradient(180deg, var(--navy-3) 0%, var(--navy) 55%, #223566 100%);
  box-shadow: 4px 0 30px rgba(15, 27, 58, .18) !important;
}
.main-sidebar .brand-link {
  display: flex; align-items: center; justify-content: center;
  height: auto; min-height: 76px; padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
  background: transparent;
}
.main-sidebar .brand-link .brand-image {
  float: none !important; margin: 0 !important; max-height: none !important;
  width: 100% !important; max-width: 210px; height: auto;
  background: #fff; padding: 8px 12px; border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.main-sidebar .brand-link .brand-text { display: none; }
.sidebar-collapse .main-sidebar:not(.sidebar-focused):not(:hover) .brand-link .brand-image { max-width: 40px; padding: 4px; }

.main-sidebar .sidebar { padding: 0 12px 20px; }
.sidebar-user {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0 14px; padding: 12px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px; text-decoration: none !important;
}
.sidebar-user:hover { background: rgba(255, 255, 255, .11); }
.sidebar-user .avatar-initial { width: 40px; height: 40px; flex-basis: 40px; background: linear-gradient(135deg, var(--gold), var(--maroon)); }
.sidebar-user .su-text { min-width: 0; line-height: 1.25; }
.sidebar-user .su-name { display: block; color: #fff; font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: capitalize; }
.sidebar-user .su-reg { display: block; color: rgba(255, 255, 255, .6); font-size: 11.5px; margin-top: 2px; word-break: break-all; }
.nav-caption { color: rgba(255, 255, 255, .38); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 10px 12px 6px; }

.main-sidebar .nav-sidebar > .nav-item { margin-bottom: 3px; }
.main-sidebar.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link,
.main-sidebar.sidebar-dark-primary .nav-treeview > .nav-item > .nav-link {
  color: rgba(255, 255, 255, .74); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 500;
  transition: background .2s, color .2s;
}
.main-sidebar.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link .nav-icon { color: rgba(255, 255, 255, .55); width: 1.5rem; margin-right: 6px; transition: color .2s; }
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.main-sidebar.sidebar-dark-primary .nav-sidebar .nav-link:hover .nav-icon { color: var(--gold); }
.main-sidebar.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active,
.main-sidebar.sidebar-dark-primary .nav-treeview > .nav-item > .nav-link.active {
  background: linear-gradient(90deg, rgba(201, 151, 43, .95), rgba(201, 151, 43, .78)) !important;
  color: #1b2a4e !important; font-weight: 700; box-shadow: 0 6px 16px rgba(201, 151, 43, .28) !important;
}
.main-sidebar.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active .nav-icon { color: var(--navy) !important; }
.main-sidebar.sidebar-dark-primary .nav-sidebar > .nav-item.menu-open > .nav-link:not(.active) { background: rgba(255, 255, 255, .07); color: #fff; }
.main-sidebar .nav-treeview { padding: 4px 0 4px 10px; }
.main-sidebar .nav-treeview > .nav-item > .nav-link { font-size: 13.5px; padding: 8px 12px; }
.main-sidebar .nav-treeview > .nav-item > .nav-link .nav-icon { font-size: .45rem; opacity: .7; position: relative; top: -1px; }
.main-sidebar .nav-sidebar .badge { background: var(--gold); color: var(--navy); font-weight: 700; border-radius: 999px; padding: 3px 8px; font-size: 10px; }
.main-sidebar .nav-link.active .badge { background: var(--navy); color: #fff; }
.main-sidebar .os-scrollbar-handle { background: rgba(255, 255, 255, .25) !important; }

/* ---------- Page header & breadcrumb ---------- */
.content-header { padding: 22px .5rem 10px; }
.content-header h1 { font-size: 1.6rem; font-weight: 700; margin: 0; }
.content-header .breadcrumb { background: transparent; padding: 0; margin: 0; font-size: 13px; flex-wrap: nowrap; white-space: nowrap; overflow-x: auto; }
.content-header .breadcrumb-item a { color: var(--muted); }
.content-header .breadcrumb-item a:hover { color: var(--navy); }
.content-header .breadcrumb-item.active { color: var(--navy); font-weight: 600; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--line-strong); }

/* ---------- Cards ---------- */
.card {
  border: 0; border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.card-header { background: transparent; border-bottom: 1px solid var(--line); padding: 16px 20px; }
.card-title { font-weight: 700; font-size: 1.05rem; }
.card-body { padding: 22px; }
.card-footer { background: #fafbfe; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); padding: 14px 22px; }
.card-outline.card-primary { border-top: 0 !important; position: relative; overflow: hidden; }
.card-outline.card-primary::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--gold), var(--maroon));
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1.15rem; }
label { font-weight: 600; font-size: 13.5px; color: var(--text); margin-bottom: 6px; }
.form-control {
  height: 46px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  font-size: 15px; color: var(--text); padding: .5rem .9rem; box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-control::placeholder { color: #a3abc2; }
.form-control:focus { border-color: var(--navy-2); box-shadow: 0 0 0 4px rgba(38, 57, 107, .12); }
select.form-control { padding-right: 2rem; }
.select2-container { width: 100% !important; }
.select2-container--default .select2-selection--single {
  height: 46px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 44px; padding-left: 14px; padding-right: 34px; color: var(--text); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; right: 8px; }
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single { border-color: var(--navy-2); box-shadow: 0 0 0 4px rgba(38, 57, 107, .12); }
.select2-dropdown { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); overflow: hidden; }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: var(--navy) !important; color: #fff; }
.select2-search--dropdown .select2-search__field { border-radius: 8px; border: 1px solid var(--line-strong); height: 38px; }
.input-group-text { background: var(--bg); border-color: var(--line-strong); color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { border-radius: var(--radius-sm) !important; font-weight: 600; padding: .62rem 1.25rem; font-size: 14.5px; letter-spacing: .005em; transition: transform .15s, box-shadow .15s, filter .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-success, .btn-primary {
  background: linear-gradient(135deg, var(--navy-2), var(--navy)) !important; border: 0 !important; color: #fff !important;
  box-shadow: 0 6px 16px rgba(27, 42, 78, .25);
}
.btn-success:hover, .btn-primary:hover { filter: brightness(1.12); box-shadow: 0 10px 22px rgba(27, 42, 78, .3); }
.btn-danger { background: linear-gradient(135deg, #a8372f, var(--maroon)) !important; border: 0 !important; box-shadow: 0 6px 16px rgba(138, 43, 37, .28); }
.btn-danger:hover { filter: brightness(1.1); }
.btn-flat { border-width: 0; }

/* ---------- Tables ---------- */
.table { color: var(--text); margin-bottom: 0; }
.table thead th, .table > thead > tr > th {
  border-top: 0; border-bottom: 1px solid var(--line-strong) !important;
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); background: #fafbfe; padding: 12px 14px; white-space: nowrap;
}
.table td { padding: 14px; vertical-align: middle; border-top: 1px solid var(--line); }
.table-bordered, .table-bordered td, .table-bordered th { border: 0; }
.table-bordered td { border-top: 1px solid var(--line); }
.table-bordered thead th:first-child { border-top-left-radius: 10px; }
.table-bordered thead th:last-child { border-top-right-radius: 10px; }
.table-hover tbody tr:hover { background: #f7f9fe; }
.table .table-success, .table .table-success > th, .table .table-success > td { background: #eef2fb; }
.table a { font-weight: 600; }
.table .fa, .table .fas { font-size: 1.05rem; color: var(--navy-2); padding: 8px; border-radius: 8px; background: #eef2fb; }
.table .fa:hover, .table .fas:hover { background: var(--navy); color: #fff; }
.table .info-box { margin: 0; min-height: 0; box-shadow: none; background: transparent; width: auto; padding: 0; }
.table .info-box-icon { width: 46px; height: 46px; border-radius: 12px; font-size: 1.2rem; background: #fdecea !important; color: var(--maroon); }
.table-responsive { border-radius: var(--radius-sm); -webkit-overflow-scrolling: touch; }
.dataTables_wrapper .dataTables_info { color: var(--muted); font-size: 13px; padding-top: 14px; }
.page-link { border: 0; border-radius: 8px !important; margin: 0 2px; color: var(--navy); }
.page-item.active .page-link { background: var(--navy); color: #fff; }

/* ---------- Badges / alerts ---------- */
.badge { font-weight: 600; letter-spacing: .02em; }
.badge-danger { background: #fdecea; color: var(--maroon); border-radius: 999px; padding: 4px 10px; }
.alert {
  border: 0; border-left: 4px solid var(--maroon); border-radius: var(--radius-sm);
  background: #fdf3f2; color: #5a1a16; padding: 16px 20px; box-shadow: var(--shadow-sm);
}
.alert .closebtn { color: var(--maroon); float: right; font-size: 22px; line-height: 20px; cursor: pointer; margin-left: 15px; font-weight: 700; }
.alert .closebtn:hover { color: var(--navy); }
.msg-banner {
  display: flex; align-items: flex-start; gap: 10px; width: 100%;
  background: #fdf3f2; border: 1px solid #f3cdc9; border-left: 4px solid var(--maroon);
  color: #7a1f19; border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 0 18px;
  font-size: 13.5px; font-weight: 500;
}
.msg-banner i { margin-top: 3px; }
.callout { border-radius: var(--radius-sm); }

/* ---------- Footer ---------- */
.main-footer {
  background: transparent; border-top: 1px solid var(--line); color: var(--muted);
  font-size: 13px; padding: 16px 22px;
}
.main-footer a { color: var(--navy-2); font-weight: 600; }

/* ---------- Profile page ---------- */
.profile-user-img { width: 120px; height: 120px; object-fit: cover; border: 4px solid #fff !important; box-shadow: 0 0 0 3px var(--gold), var(--shadow); }
.profile-username { font-size: 1.15rem; font-weight: 700; margin-top: 16px; }
.list-group-unbordered > .list-group-item {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 18px;
  border: 0; border-bottom: 1px dashed var(--line-strong); padding: 12px 0; font-size: 14.5px;
}
.list-group-unbordered > .list-group-item:last-child { border-bottom: 0; }
.list-group-unbordered > .list-group-item b { color: var(--muted); font-weight: 600; font-size: 13px; flex: 0 0 auto; }
.list-group-unbordered > .list-group-item a.float-right { float: none !important; text-align: right; color: var(--text); font-weight: 600; word-break: break-word; cursor: default; }
.box-profile .text-muted { font-size: 13.5px; }

/* ---------- Dashboard ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 20px; color: #fff;
  background: radial-gradient(900px 300px at 100% 0%, rgba(201, 151, 43, .35), transparent 60%),
              linear-gradient(135deg, var(--navy-3), var(--navy) 55%, var(--maroon) 140%);
  padding: 30px 32px; margin-bottom: 22px; box-shadow: var(--shadow);
}
.hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .06); }
.hero .hero-eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .65); font-weight: 600; }
.hero h2 { color: #fff; font-size: 1.9rem; font-weight: 800; margin: 6px 0 10px; text-transform: capitalize; word-break: break-word; }
.hero .hero-meta { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
.hero .chip { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .16); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.hero .chip i { color: var(--gold); margin-right: 6px; }

.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; margin: 8px 2px 12px; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-bottom: 24px; }
.qa-tile {
  display: flex; align-items: center; gap: 14px; padding: 16px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid transparent; color: var(--text) !important; text-decoration: none !important;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.qa-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.qa-icon { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; color: #fff; }
.qa-icon.c1 { background: linear-gradient(135deg, #3a56a8, var(--navy)); }
.qa-icon.c2 { background: linear-gradient(135deg, #b0392f, var(--maroon)); }
.qa-icon.c3 { background: linear-gradient(135deg, #e0b04a, #b9831a); }
.qa-icon.c4 { background: linear-gradient(135deg, #7a4a96, #5b2d6e); }
.qa-icon.c5 { background: linear-gradient(135deg, #2fa578, var(--ok)); }
.qa-text strong { display: block; font-size: 14.5px; line-height: 1.2; }
.qa-text small { color: var(--muted); font-size: 12.5px; }

.help-card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--gold-soft); border: 1px solid #f0dcae; margin-bottom: 22px;
}
.help-card .hc-icon { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; background: var(--gold); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.help-card strong { display: block; font-size: 13px; color: #7a5a12; text-transform: uppercase; letter-spacing: .06em; }
.help-card a { font-size: 1.35rem; font-weight: 800; color: var(--navy); text-decoration: none; }
.banner-card { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); padding: 10px; }
.banner-card img { width: 100%; height: auto; display: block; border-radius: 10px; }

/* ---------- Auth pages (login / reset password) ---------- */
body.login-page.auth {
  display: block; height: auto; min-height: 100vh; background: var(--navy-3); padding: 0;
}
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-brand {
  position: relative; overflow: hidden; color: #fff; padding: 56px 64px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(700px 420px at 0% 0%, rgba(201, 151, 43, .28), transparent 60%),
              radial-gradient(600px 400px at 100% 100%, rgba(138, 43, 37, .55), transparent 60%),
              linear-gradient(160deg, var(--navy-3), var(--navy) 60%, #2a3d73);
}
.auth-brand::before { content: ""; position: absolute; width: 520px; height: 520px; right: -200px; top: -160px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .045); }
.auth-brand .logo-card { display: inline-block; background: #fff; padding: 10px 16px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); align-self: flex-start; position: relative; z-index: 1; }
.auth-brand .logo-card img { height: 52px; width: auto; display: block; }
.auth-hero { position: relative; z-index: 1; max-width: 460px; }
.auth-hero .eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: 12px; }
.auth-hero h1 { color: #fff; font-size: 2.6rem; line-height: 1.12; font-weight: 800; margin: 12px 0 16px; }
.auth-hero p { color: rgba(255, 255, 255, .75); font-size: 16px; line-height: 1.6; }
.auth-feats { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.auth-feats li { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .88); font-size: 14.5px; }
.auth-feats i { width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .1); display: inline-flex; align-items: center; justify-content: center; color: var(--gold); }
.auth-brand .auth-foot { position: relative; z-index: 1; color: rgba(255, 255, 255, .5); font-size: 12.5px; }

.auth-panel { background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 20px; padding: 36px 34px 30px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.auth-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--navy), var(--gold), var(--maroon)); }
.auth-card .mobile-logo { display: none; text-align: center; margin-bottom: 18px; }
.auth-card .mobile-logo img { max-width: 220px; width: 100%; height: auto; }
.auth-card h2 { font-size: 1.55rem; font-weight: 800; margin: 0 0 6px; }
.auth-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.auth-card .field { position: relative; margin-bottom: 16px; }
.auth-card .field > i.lead-ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #9aa3bd; pointer-events: none; font-size: 15px; z-index: 2; }
.auth-card .field .form-control { padding-left: 44px; height: 50px; background: #fafbfe; }
.auth-card .field .form-control:focus { background: #fff; }
.auth-card .pass-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: transparent; color: #9aa3bd; border-radius: 8px; cursor: pointer; z-index: 2; }
.auth-card .pass-toggle:hover { color: var(--navy); background: var(--bg); }
.auth-card .field .has-toggle { padding-right: 46px; }
.auth-card .btn-block { height: 50px; font-size: 15.5px; margin-top: 6px; }
.auth-card .auth-links { margin-top: 20px; text-align: center; font-size: 14px; }
.auth-card .auth-links a { font-weight: 600; }
.auth-card .field-label { display: block; margin-bottom: 8px; }
.auth-card .field-label .req { color: var(--maroon); }
.auth-copy { margin-top: 22px; text-align: center; color: var(--muted); font-size: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-panel { background: linear-gradient(180deg, var(--navy-3), var(--navy) 38%, var(--bg) 38.1%); align-items: flex-start; padding-top: 7vh; }
  .auth-card .mobile-logo { display: block; }
}
@media (max-width: 767.98px) {
  body { font-size: 14.5px; }
  .content-header { padding: 16px .25rem 6px; }
  .content-header h1 { font-size: 1.3rem; }
  .content-header .breadcrumb { margin-top: 6px; float: none !important; }
  .container-fluid { padding-left: 12px; padding-right: 12px; }
  .card-body { padding: 16px; }
  .card-footer { padding: 12px 16px; }
  .card-body .row > .col-6 { flex: 0 0 100%; max-width: 100%; }
  .hero { padding: 22px 20px; border-radius: 16px; }
  .hero h2 { font-size: 1.45rem; }
  .quick-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .qa-tile { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .help-card { padding: 14px 16px; }
  .help-card a { font-size: 1.15rem; }
  .main-footer { text-align: center; padding: 14px; }
  .list-group-unbordered > .list-group-item { flex-direction: column; gap: 2px; }
  .list-group-unbordered > .list-group-item a.float-right { text-align: left; }

  /* stacked "card" tables on phones */
  table.table-stack, table.table-stack tbody, table.table-stack tr, table.table-stack td { display: block; width: 100% !important; }
  table.table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.table-stack tr { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; padding: 4px 0; box-shadow: var(--shadow-sm); }
  table.table-stack td { display: flex; justify-content: space-between; align-items: center; gap: 14px; text-align: right; padding: 10px 14px; border: 0 !important; border-bottom: 1px dashed var(--line) !important; word-break: break-word; }
  table.table-stack td:last-child { border-bottom: 0 !important; }
  table.table-stack td[data-label]::before { content: attr(data-label); flex: 0 0 40%; text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
  table.table-stack td .form-control { max-width: 150px; text-align: right; }
  table.table-stack.table-hover tbody tr:hover { background: #fff; }
  .table-responsive:has(> table.table-stack) { overflow: visible; }
}
@media (max-width: 575.98px) {
  .main-header.navbar { padding: 0 8px; }
  .user-chip .uc-text { display: none; }
  .user-chip { padding: 4px !important; }
  .card-footer .btn { width: 100%; }
  .auth-card { padding: 28px 22px 24px; border-radius: 18px; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 359.98px) { .quick-grid { grid-template-columns: 1fr; } }

/* ---------- Polish fixes ---------- */
.profile-username { text-transform: capitalize; }
.card.card-flush { background: transparent; box-shadow: none; }
.card.card-flush > .card-body { padding: 0; }
@media (max-width: 991.98px) {
  body:not(.sidebar-open) .main-sidebar { box-shadow: none !important; }
}
@media (max-width: 767.98px) {
  .card:has(> .card-body > .table-responsive > table.table-stack) { background: transparent; box-shadow: none; }
  .card:has(> .card-body > .table-responsive > table.table-stack) > .card-body { padding: 0; }
}

/* ---------- Print ---------- */
@media print {
  .main-header, .main-sidebar, .main-footer, .content-header .breadcrumb { display: none !important; }
  .content-wrapper { margin-left: 0 !important; background: #fff !important; }
  .card { box-shadow: none; }
}
