/* =========================================================
   SPLASH ADMIN — Froyo & Boba Dashboard Theme
   Palette pulled directly from the Splash logo
   ========================================================= */

/* Fonts are loaded locally via assets/vendor/fonts/fonts.css (linked in each page <head>) */

:root {
  /* Brand palette */
  --navy:        #1B2C7C;
  --navy-deep:   #14205c;
  --navy-700:    #243a96;
  --blue:        #1648DD;
  --blue-light:  #4B73F0;
  --pink:        #E5398E;
  --pink-hot:    #CB237B;
  --pink-soft:   #FAA3C6;
  --pink-bg:     #FDE7F1;
  --yellow:      #F5E000;
  --yellow-deep: #EDE901;
  --yellow-soft: #FFF7B0;
  --mint:        #18C5B4;
  --mint-soft:   #D8F6F2;

  /* Neutrals */
  --white:   #FFFFFF;
  --cream:   #F5F7FD;
  --ink:     #1B2C7C;
  --text:    #424a78;
  --muted:   #8C93B8;
  --border:  #E8EBF7;

  /* System */
  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow-sm: 0 4px 14px rgba(27,44,124,.06);
  --shadow:    0 12px 34px rgba(27,44,124,.10);
  --shadow-lg: 0 24px 60px rgba(27,44,124,.18);
  --sidebar-w: 266px;
  --sidebar-mini: 86px;
  --topbar-h: 76px;
  --t: .28s cubic-bezier(.4,0,.2,1);

  --font-display: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle bubble texture on the app background */
.app-bg::before,
.app-bg::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .35;
  z-index: 0;
  pointer-events: none;
}
.app-bg::before {
  width: 420px; height: 420px;
  background: radial-gradient(circle at 30% 30%, var(--yellow-soft), transparent 70%);
  top: -120px; right: -80px;
}
.app-bg::after {
  width: 360px; height: 360px;
  background: radial-gradient(circle at 30% 30%, var(--pink-bg), transparent 70%);
  bottom: -120px; left: 200px;
}

h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); color: var(--ink); font-weight: 600; }
a { text-decoration: none; }

/* =========================================================
   SIDEBAR
   ========================================================= */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: linear-gradient(185deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #cdd4f5;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  transition: transform var(--t), width var(--t);
  overflow: hidden;
}
.sidebar::before {
  content: "";
  position: absolute;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(229,57,142,.35), transparent 68%);
  top: -90px; right: -90px;
  pointer-events: none;
}
.sidebar::after {
  content: "";
  position: absolute;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(245,224,0,.18), transparent 70%);
  bottom: -60px; left: -70px;
  pointer-events: none;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--topbar-h);
  padding: 0 22px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.brand-mark {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-hot) 100%);
  display: grid; place-items: center;
  color: #fff;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(229,57,142,.4);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: #fff;
  letter-spacing: .3px;
}
.brand-text span {
  font-size: 10.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 700;
  margin-top: 3px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px 24px;
  position: relative;
  z-index: 2;
}
.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 6px; }

.nav-label {
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #7e87c4;
  font-weight: 700;
  padding: 18px 14px 8px;
  white-space: nowrap;
}

.nav-link-splash {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 14px;
  border-radius: 14px;
  color: #c2c9ee;
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 4px;
  transition: var(--t);
  white-space: nowrap;
  position: relative;
}
.nav-link-splash i { font-size: 19px; flex-shrink: 0; width: 24px; text-align: center; }
.nav-link-splash:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.nav-link-splash.active {
  background: linear-gradient(100deg, var(--blue) 0%, var(--blue-light) 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(22,72,221,.45);
}
.nav-link-splash.active::after {
  content: "";
  position: absolute;
  right: 12px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(245,224,0,.25);
}
.nav-link-splash .nav-badge {
  margin-left: auto;
  background: var(--pink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  font-family: var(--font-body);
}

.sidebar-foot {
  padding: 16px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.promo-card {
  background: linear-gradient(150deg, rgba(245,224,0,.16), rgba(229,57,142,.16));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}
.promo-card .ico {
  width: 42px; height: 42px; margin: 0 auto 10px;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--navy);
  display: grid; place-items: center; font-size: 22px;
}
.promo-card h6 { color: #fff; font-size: 15px; margin: 0 0 4px; }
.promo-card p { color: #b9c0ea; font-size: 12.5px; margin: 0 0 12px; }

/* =========================================================
   LAYOUT / TOPBAR
   ========================================================= */
.app-wrap {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  transition: margin var(--t);
  position: relative;
  z-index: 1;
}

.topbar {
  height: var(--topbar-h);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 26px;
  position: sticky;
  top: 0;
  z-index: 1030;
}
.icon-btn {
  width: 44px; height: 44px;
  border: none;
  background: var(--cream);
  color: var(--navy);
  border-radius: 13px;
  display: grid; place-items: center;
  font-size: 20px;
  cursor: pointer;
  transition: var(--t);
  position: relative;
}
.icon-btn:hover { background: var(--blue); color: #fff; }
.icon-btn .dot {
  position: absolute; top: 9px; right: 10px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--pink);
  border: 2px solid #fff;
}

.topbar-search {
  flex: 1;
  max-width: 420px;
  position: relative;
}
.topbar-search i {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 18px;
}
.topbar-search input {
  width: 100%;
  height: 46px;
  border: 1.5px solid var(--border);
  background: var(--cream);
  border-radius: 14px;
  padding: 0 16px 0 44px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  transition: var(--t);
}
.topbar-search input:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22,72,221,.1);
}

.topbar-user {
  display: flex; align-items: center; gap: 11px;
  cursor: pointer; padding: 5px 6px 5px 5px;
  border-radius: 40px;
  transition: var(--t);
}
.topbar-user:hover { background: var(--cream); }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--pink-hot));
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  flex-shrink: 0;
}
.avatar.blue { background: linear-gradient(135deg, var(--blue), var(--blue-light)); }
.avatar.mint { background: linear-gradient(135deg, var(--mint), #0fa394); }
.avatar.yellow { background: linear-gradient(135deg, var(--yellow), var(--yellow-deep)); color: var(--navy); }
.topbar-user .u-meta { line-height: 1.15; }
.topbar-user .u-meta strong { display: block; font-family: var(--font-display); font-size: 14.5px; color: var(--ink); font-weight: 600; }
.topbar-user .u-meta small { color: var(--muted); font-size: 12px; }

/* =========================================================
   PAGE CONTENT
   ========================================================= */
.page { padding: 30px 26px 40px; }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 26px;
}
.page-head h1 { font-size: 30px; margin: 0 0 4px; font-weight: 700; }
.page-head p { margin: 0; color: var(--muted); font-size: 14.5px; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.crumbs a { color: var(--blue); font-weight: 600; }
.crumbs i { font-size: 14px; }

/* Cards */
.scard {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.scard-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.scard-head h5 { margin: 0; font-size: 17px; font-weight: 600; }
.scard-head small { color: var(--muted); }
.scard-body { padding: 24px; }

/* Stat cards */
.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  height: 100%;
  transition: transform var(--t), box-shadow var(--t);
}
.stat:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.stat::after {
  content: "";
  position: absolute;
  right: -28px; top: -28px;
  width: 110px; height: 110px;
  border-radius: 50%;
  opacity: .1;
  background: currentColor;
}
.stat .s-ico {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 26px; color: #fff;
  margin-bottom: 16px;
  position: relative; z-index: 1;
}
.stat .s-val { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--ink); line-height: 1; }
.stat .s-label { color: var(--muted); font-size: 14px; margin-top: 6px; font-weight: 600; }
.stat .s-trend { font-size: 12.5px; font-weight: 700; margin-top: 12px; display: inline-flex; align-items: center; gap: 4px; }
.s-trend.up { color: var(--mint); }
.s-trend.down { color: var(--pink); }

.bg-blue  { color: var(--blue); }   .ico-blue  { background: linear-gradient(135deg, var(--blue), var(--blue-light)); }
.bg-pink  { color: var(--pink); }   .ico-pink  { background: linear-gradient(135deg, var(--pink), var(--pink-hot)); }
.bg-yellow{ color: var(--yellow-deep);} .ico-yellow{ background: linear-gradient(135deg, var(--yellow), var(--yellow-deep)); color: var(--navy)!important; }
.bg-mint  { color: var(--mint); }   .ico-mint  { background: linear-gradient(135deg, var(--mint), #0fa394); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: 13px;
  padding: 10px 20px;
  font-size: 14.5px;
  border: none;
  transition: var(--t);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn:focus { box-shadow: none; }
.btn-splash {
  background: linear-gradient(100deg, var(--blue), var(--blue-light));
  color: #fff;
  box-shadow: 0 10px 22px rgba(22,72,221,.3);
}
.btn-splash:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(22,72,221,.42); }
.btn-pink {
  background: linear-gradient(100deg, var(--pink), var(--pink-hot));
  color: #fff;
  box-shadow: 0 10px 22px rgba(229,57,142,.3);
}
.btn-pink:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(229,57,142,.42); }
.btn-yellow {
  background: linear-gradient(100deg, var(--yellow), var(--yellow-deep));
  color: var(--navy);
  box-shadow: 0 10px 22px rgba(237,233,1,.35);
}
.btn-yellow:hover { color: var(--navy); transform: translateY(-2px); }
.btn-soft {
  background: var(--cream);
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-soft:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: rgba(22,72,221,.08); color: var(--blue); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 11px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 15px; }

/* =========================================================
   BADGES / PILLS
   ========================================================= */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 700;
}
.pill-blue   { background: rgba(22,72,221,.12); color: var(--blue); }
.pill-pink   { background: var(--pink-bg); color: var(--pink-hot); }
.pill-yellow { background: var(--yellow-soft); color: #b89a00; }
.pill-mint   { background: var(--mint-soft); color: #0c8a7c; }
.pill-grey   { background: var(--cream); color: var(--muted); }
.pill .dot-i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* =========================================================
   TABLES
   ========================================================= */
.table-splash { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0; }
.table-splash thead th {
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 15px 20px;
  border: none;
  white-space: nowrap;
}
.table-splash thead th:first-child { border-radius: 0; }
.table-splash tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--text);
  vertical-align: middle;
}
.table-splash tbody tr { transition: background var(--t); }
.table-splash tbody tr:hover { background: #fafbff; }
.table-splash tbody tr:last-child td { border-bottom: none; }
.cell-user { display: flex; align-items: center; gap: 12px; }
.cell-user .avatar { width: 38px; height: 38px; font-size: 15px; }
.cell-user strong { display: block; font-family: var(--font-display); font-size: 14.5px; color: var(--ink); font-weight: 600; }
.cell-user small { color: var(--muted); font-size: 12.5px; }
.prod-thumb {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; font-size: 22px; flex-shrink: 0;
}
.t-actions { display: flex; gap: 6px; }
.t-actions a {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; font-size: 16px;
  background: var(--cream); color: var(--muted); transition: var(--t);
}
.t-actions a:hover { background: var(--blue); color: #fff; }
.t-actions a.del:hover { background: var(--pink); }

.table-toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 18px 24px; border-bottom: 1px solid var(--border);
}
.table-toolbar .search-mini { position: relative; flex: 1; max-width: 280px; min-width: 180px; }
.table-toolbar .search-mini i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.table-toolbar .search-mini input {
  width: 100%; height: 42px; border: 1.5px solid var(--border); border-radius: 12px;
  padding: 0 14px 0 40px; font-family: var(--font-body); background: var(--cream);
}
.table-toolbar .search-mini input:focus { outline: none; border-color: var(--blue); background: #fff; }

/* Pagination */
.pager { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px 24px; }
.pager .pinfo { color: var(--muted); font-size: 13.5px; }
.pager ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pager ul a {
  min-width: 38px; height: 38px; padding: 0 8px;
  border-radius: 11px; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; color: var(--navy);
  background: var(--cream); transition: var(--t);
}
.pager ul a:hover { background: var(--blue); color: #fff; }
.pager ul a.active { background: var(--blue); color: #fff; box-shadow: 0 8px 16px rgba(22,72,221,.3); }
.pager ul a.disabled { opacity: .4; pointer-events: none; }

/* =========================================================
   FORMS
   ========================================================= */
.form-label-splash { font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: 14px; margin-bottom: 8px; display: block; }
.form-control-splash, .form-select-splash {
  width: 100%;
  border: 1.5px solid var(--border);
  background: var(--cream);
  border-radius: 13px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text);
  transition: var(--t);
}
textarea.form-control-splash { resize: vertical; min-height: 110px; }
.form-control-splash:focus, .form-select-splash:focus {
  outline: none; border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 4px rgba(22,72,221,.1);
}
.form-control-splash::placeholder { color: var(--muted); }
.input-group-splash { position: relative; }
.input-group-splash .ig-icon {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 18px;
}
.input-group-splash .form-control-splash { padding-left: 44px; }
.form-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.form-control-splash.is-invalid-splash { border-color: var(--pink); background: #fff5f9; }
.invalid-text { color: var(--pink-hot); font-size: 12.5px; font-weight: 600; margin-top: 6px; }

/* Switch */
.switch-splash { position: relative; display: inline-block; width: 52px; height: 28px; }
.switch-splash input { opacity: 0; width: 0; height: 0; }
.switch-splash .slider {
  position: absolute; inset: 0; cursor: pointer;
  background: #d6daec; border-radius: 30px; transition: var(--t);
}
.switch-splash .slider::before {
  content: ""; position: absolute; height: 22px; width: 22px;
  left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: var(--t);
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.switch-splash input:checked + .slider { background: linear-gradient(100deg, var(--blue), var(--blue-light)); }
.switch-splash input:checked + .slider::before { transform: translateX(24px); }

/* Custom checks */
.check-splash { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.check-splash input { width: 20px; height: 20px; accent-color: var(--blue); cursor: pointer; }

/* File upload */
.upload-zone {
  border: 2px dashed var(--pink-soft);
  border-radius: var(--radius);
  background: var(--pink-bg);
  padding: 34px 20px;
  text-align: center;
  transition: var(--t);
  cursor: pointer;
}
.upload-zone:hover { border-color: var(--pink); background: #fce0ee; }
.upload-zone i { font-size: 42px; color: var(--pink); }
.upload-zone p { margin: 10px 0 0; color: var(--text); font-weight: 600; }
.upload-zone small { color: var(--muted); }

/* Progress */
.prog { height: 9px; background: var(--cream); border-radius: 20px; overflow: hidden; }
.prog > span { display: block; height: 100%; border-radius: 20px; }

/* =========================================================
   LOGIN / AUTH
   ========================================================= */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
}
.auth-art {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  color: #fff;
}
.auth-art .blob {
  position: absolute; border-radius: 50%; filter: blur(6px);
}
.auth-art .b1 { width: 320px; height: 320px; background: radial-gradient(circle,rgba(229,57,142,.55),transparent 70%); top: -90px; left: -60px; }
.auth-art .b2 { width: 280px; height: 280px; background: radial-gradient(circle,rgba(245,224,0,.4),transparent 70%); bottom: -70px; right: -40px; }
.auth-art .b3 { width: 180px; height: 180px; background: radial-gradient(circle,rgba(75,115,240,.5),transparent 70%); top: 40%; right: 10%; }
.auth-art .bubble {
  position: absolute; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.18);
}
.auth-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; margin-bottom: auto; }
.auth-brand .brand-mark { width: 52px; height: 52px; font-size: 26px; border-radius: 16px; }
.auth-brand strong { font-family: var(--font-display); font-size: 28px; font-weight: 700; }
.auth-brand span { font-size: 11px; letter-spacing: 3px; color: var(--yellow); text-transform: uppercase; font-weight: 700; }
.auth-headline { position: relative; z-index: 2; margin: 40px 0; }
.auth-headline h2 { color: #fff; font-size: 42px; font-weight: 700; line-height: 1.15; margin: 0 0 18px; }
.auth-headline h2 em { font-style: normal; color: var(--yellow); }
.auth-headline p { color: #c4cbef; font-size: 16px; max-width: 420px; }
.auth-stats { position: relative; z-index: 2; display: flex; gap: 38px; margin-top: auto; }
.auth-stats div strong { font-family: var(--font-display); font-size: 30px; color: #fff; display: block; }
.auth-stats div span { color: var(--pink-soft); font-size: 13px; font-weight: 600; }

.auth-form-side {
  display: flex; align-items: center; justify-content: center;
  padding: 50px; background: var(--cream); position: relative;
}
.auth-card {
  width: 100%; max-width: 420px;
}
.auth-card h1 { font-size: 32px; margin: 0 0 6px; font-weight: 700; }
.auth-card .sub { color: var(--muted); margin-bottom: 32px; }
.auth-card .form-label-splash { margin-top: 18px; }
.auth-card .form-label-splash:first-of-type { margin-top: 0; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 26px 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.social-row { display: flex; gap: 12px; }
.social-btn {
  flex: 1; height: 50px; border: 1.5px solid var(--border); background: #fff;
  border-radius: 13px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; color: var(--navy); transition: var(--t); cursor: pointer; font-size: 14px;
}
.social-btn:hover { border-color: var(--blue); background: var(--cream); }
.social-btn i { font-size: 19px; }
.auth-foot { text-align: center; margin-top: 28px; color: var(--muted); font-size: 14px; }
.auth-foot a { color: var(--blue); font-weight: 700; }
.forgot { float: right; font-size: 13px; color: var(--blue); font-weight: 700; }

/* =========================================================
   404
   ========================================================= */
.err-wrap { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px; position: relative; }
.err-code { font-family: var(--font-display); font-weight: 700; font-size: clamp(110px, 22vw, 220px); line-height: 1; background: linear-gradient(120deg, var(--blue), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.err-wrap h2 { font-size: 32px; margin: 8px 0 12px; }
.err-wrap p { color: var(--muted); max-width: 440px; margin: 0 auto 28px; font-size: 16px; }

/* =========================================================
   MISC HELPERS
   ========================================================= */
.section-title { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--ink); margin: 0 0 4px; }
.divider-line { height: 1px; background: var(--border); margin: 22px 0; }
.activity-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.activity-item:last-child { border-bottom: none; }
.activity-item .a-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; flex-shrink: 0; }
.activity-item .a-body { flex: 1; }
.activity-item .a-body p { margin: 0; font-size: 14px; color: var(--text); }
.activity-item .a-body p b { color: var(--ink); font-family: var(--font-display); font-weight: 600; }
.activity-item .a-body small { color: var(--muted); font-size: 12.5px; }

.legend { display: flex; gap: 18px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text); }
.legend i { width: 11px; height: 11px; border-radius: 4px; display: inline-block; }

.mini-stat { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.mini-stat:last-child { border-bottom: none; }
.mini-stat .ms-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.mini-stat .ms-body { flex: 1; }
.mini-stat .ms-body strong { font-family: var(--font-display); font-size: 14.5px; color: var(--ink); display: block; }
.mini-stat .ms-body small { color: var(--muted); font-size: 12.5px; }
.mini-stat .ms-val { font-family: var(--font-display); font-weight: 600; color: var(--ink); }

/* =========================================================
   SIDEBAR STATES (collapse + mobile)
   ========================================================= */
.sidebar-overlay {
  position: fixed; inset: 0; background: rgba(20,32,92,.5);
  backdrop-filter: blur(2px); z-index: 1035; opacity: 0; visibility: hidden;
  transition: var(--t);
}
body.sidebar-open .sidebar-overlay { opacity: 1; visibility: visible; }

/* Desktop mini-collapse */
@media (min-width: 992px) {
  body.sidebar-mini .sidebar { width: var(--sidebar-mini); }
  body.sidebar-mini .app-wrap { margin-left: var(--sidebar-mini); }
  body.sidebar-mini .brand-text,
  body.sidebar-mini .nav-link-splash span,
  body.sidebar-mini .nav-label,
  body.sidebar-mini .nav-badge,
  body.sidebar-mini .sidebar-foot { display: none; }
  body.sidebar-mini .nav-link-splash { justify-content: center; padding: 12px; }
  body.sidebar-mini .nav-link-splash.active::after { display: none; }
  body.sidebar-mini .sidebar-brand { justify-content: center; padding: 0; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); width: var(--sidebar-w); }
  body.sidebar-open .sidebar { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .app-wrap { margin-left: 0; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .topbar-search { max-width: none; }
}

@media (max-width: 767.98px) {
  .page { padding: 22px 16px 32px; }
  .topbar { padding: 0 16px; gap: 10px; }
  .page-head h1 { font-size: 24px; }
  .topbar-search { display: none; }
  .scard-body { padding: 18px; }
  .auth-form-side { padding: 28px 20px; }
  .hide-sm { display: none !important; }
}

@media (max-width: 575.98px) {
  .topbar-user .u-meta { display: none; }
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.rise { animation: rise .55s cubic-bezier(.2,.7,.2,1) both; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .12s; } .d3 { animation-delay: .19s; }
.d4 { animation-delay: .26s; } .d5 { animation-delay: .33s; } .d6 { animation-delay: .4s; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.floaty { animation: floaty 6s ease-in-out infinite; }
.floaty.slow { animation-duration: 9s; }

@keyframes pop { 0% { transform: scale(.8); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
