/* ==========================================================================
   Girlies admin — design system
   Sits on top of the Argon/Bootstrap 4 base (admin_template/css/dashboard.css)
   and restyles it. Everything is scoped to body.ga so specificity wins
   without !important, except where old inline JS styles must be beaten.
   ========================================================================== */

:root {
  /* Neutrals: one warm family, a hint of rose */
  --ga-bg: #f8f6f5;
  --ga-surface: #ffffff;
  --ga-surface-2: #fbfaf9;
  --ga-sunken: #f2eeec;
  --ga-border: #ebe5e2;
  --ga-border-strong: #d9d0cc;
  --ga-text: #1f1a1b;
  --ga-text-2: #4a4244;
  --ga-muted: #766c6e;
  --ga-subtle: #a89fa1;

  /* Brand: Girlies pinks. Rose-600 carries text/buttons (AA on white). */
  --ga-pink-100: #fdeef3;
  --ga-pink-200: #fbdbe6;
  --ga-pink-300: #feb9d1;
  --ga-pink-400: #f491b4;
  --ga-rose-500: #ce6c77;
  --ga-rose-600: #b04f5c;
  --ga-rose-700: #8f3c48;

  --ga-success: #2f7d5b;
  --ga-success-bg: #e8f4ee;
  --ga-danger: #b8323f;
  --ga-danger-bg: #fbecee;
  --ga-warning: #9a6512;
  --ga-warning-bg: #fbf2e2;
  --ga-info: #3b5f8f;
  --ga-info-bg: #edf2f9;

  --ga-radius-xs: 6px;
  --ga-radius-sm: 8px;
  --ga-radius: 12px;
  --ga-radius-lg: 16px;

  --ga-shadow-sm: 0 1px 2px rgba(63, 32, 40, .06);
  --ga-shadow: 0 1px 2px rgba(63, 32, 40, .05), 0 4px 16px -6px rgba(63, 32, 40, .10);
  --ga-shadow-lg: 0 2px 4px rgba(63, 32, 40, .06), 0 18px 48px -12px rgba(63, 32, 40, .22);
  --ga-ring: 0 0 0 3px rgba(206, 108, 119, .28);

  --ga-font: "Geologica", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ga-ease: cubic-bezier(.2, .8, .2, 1);

  --ga-sidebar-w: 264px;
  --ga-rail-w: 72px;
  --ga-topbar-h: 64px;

  --z-sticky: 20;
  --z-sidebar: 40;
  --z-overlay: 50;
  --z-dialog: 60;
  --z-toast: 70;
}

/* ---------- Base ------------------------------------------------------- */
body.ga {
  background: var(--ga-bg);
  color: var(--ga-text);
  font-family: var(--ga-font);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html { scroll-behavior: smooth; }
.ga h1, .ga h2, .ga h3, .ga h4, .ga h5, .ga h6,
.ga .h1, .ga .h2, .ga .h3, .ga .h4, .ga .h5, .ga .h6 {
  font-family: var(--ga-font);
  color: var(--ga-text);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.ga a { color: var(--ga-rose-600); transition: color .15s var(--ga-ease); }
.ga a:hover { color: var(--ga-rose-700); text-decoration: none; }
.ga ::selection { background: var(--ga-pink-200); }
.ga :focus { outline: none; }
.ga :focus-visible { outline: 2px solid var(--ga-rose-500); outline-offset: 2px; border-radius: 4px; }
.ga .text-muted { color: var(--ga-muted) !important; }
.ga .text-danger, .ga .text-red { color: var(--ga-danger) !important; }
.ga .text-primary { color: var(--ga-rose-600) !important; }
.ga .tabular, .ga .table td, .ga .ga-stat__value { font-variant-numeric: tabular-nums; }

.ga-skip {
  position: absolute; left: 12px; top: -48px; z-index: var(--z-toast);
  background: var(--ga-text); color: #fff !important; padding: 8px 14px; border-radius: var(--ga-radius-sm);
  transition: top .2s var(--ga-ease);
}
.ga-skip:focus { top: 12px; }

/* ---------- Shell ------------------------------------------------------ */
.ga-shell { min-height: 100dvh; }

.ga-sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--ga-sidebar-w);
  background: var(--ga-surface);
  border-right: 1px solid var(--ga-border);
  display: flex; flex-direction: column;
  z-index: var(--z-sidebar);
  transition: width .25s var(--ga-ease), transform .25s var(--ga-ease);
}
.ga-sidebar__brand {
  display: flex; align-items: center; gap: 10px;
  height: var(--ga-topbar-h); padding: 0 18px;
  color: var(--ga-text) !important; flex-shrink: 0;
}
.ga-logo-mark { width: 26px; height: 34px; flex-shrink: 0; color: var(--ga-rose-500); }
.ga-logo-word {
  font-weight: 600; font-size: 17px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ga-text);
}
.ga-logo-word small {
  display: block; font-size: 10.5px; letter-spacing: .04em; text-transform: none;
  color: var(--ga-muted); font-weight: 400; margin-top: -2px;
}
.ga-sidebar__scroll { flex: 1; overflow-y: auto; padding: 6px 12px 16px; scrollbar-width: thin; }
.ga-nav__group { margin-top: 18px; }
.ga-nav__group:first-child { margin-top: 4px; }
.ga-nav__label {
  font-size: 11.5px; font-weight: 500; color: var(--ga-subtle);
  padding: 0 10px 6px; letter-spacing: .02em;
}
.ga-nav__list { list-style: none; margin: 0; padding: 0; }
.ga-nav__link {
  position: relative; display: flex; align-items: center; gap: 11px;
  min-height: 38px; padding: 7px 10px; border-radius: var(--ga-radius-sm);
  color: var(--ga-text-2) !important; font-weight: 450; font-size: 14px;
  transition: background .15s var(--ga-ease), color .15s var(--ga-ease);
}
.ga-nav__link i { font-size: 19px; color: var(--ga-muted); transition: color .15s var(--ga-ease); flex-shrink: 0; }
.ga-nav__link:hover { background: var(--ga-sunken); color: var(--ga-text) !important; }
.ga-nav__link:hover i { color: var(--ga-text-2); }
.ga-nav__link.is-active { background: var(--ga-pink-100); color: var(--ga-rose-700) !important; font-weight: 550; }
.ga-nav__link.is-active i { color: var(--ga-rose-600); }
.ga-nav__link.is-active::before {
  content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--ga-rose-500);
}
.ga-nav__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ga-sidebar__foot { border-top: 1px solid var(--ga-border); padding: 10px 12px; }
.ga-collapse-btn {
  display: flex; align-items: center; gap: 11px; width: 100%;
  min-height: 40px; padding: 7px 10px; border: 0; background: transparent;
  border-radius: var(--ga-radius-sm); color: var(--ga-muted); font: inherit; font-size: 13.5px; cursor: pointer;
}
.ga-collapse-btn:hover { background: var(--ga-sunken); color: var(--ga-text); }
.ga-collapse-btn i { font-size: 19px; transition: transform .25s var(--ga-ease); }

.ga-main { margin-left: var(--ga-sidebar-w); min-width: 0; transition: margin-left .25s var(--ga-ease); }

.ga-topbar {
  position: sticky; top: 0; z-index: var(--z-sticky);
  height: var(--ga-topbar-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 32px;
  background: rgba(248, 246, 245, .82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ga-ease);
}
.ga-topbar.is-scrolled { border-bottom-color: var(--ga-border); }
.ga-menu-btn {
  display: none; width: 40px; height: 40px; border: 1px solid var(--ga-border); border-radius: var(--ga-radius-sm);
  background: var(--ga-surface); color: var(--ga-text); align-items: center; justify-content: center; font-size: 20px;
}
.ga-crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; color: var(--ga-muted); }
.ga-crumbs a { color: var(--ga-muted); }
.ga-crumbs a:hover { color: var(--ga-text); }
.ga-crumbs i { font-size: 12px; color: var(--ga-subtle); }
.ga-crumbs strong { color: var(--ga-text); font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ga-topbar__spacer { flex: 1; }

.ga-account { position: relative; }
.ga-account__btn {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px 0 4px;
  border: 1px solid var(--ga-border); border-radius: 999px; background: var(--ga-surface);
  color: var(--ga-text); font: inherit; font-size: 13.5px; cursor: pointer;
  transition: border-color .15s var(--ga-ease), box-shadow .15s var(--ga-ease);
}
.ga-account__btn:hover { border-color: var(--ga-border-strong); box-shadow: var(--ga-shadow-sm); }
.ga-avatar {
  width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--ga-pink-300), var(--ga-rose-500));
  color: #fff; font-weight: 600; font-size: 13px; flex-shrink: 0;
}
.ga-account__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px;
  background: var(--ga-surface); border: 1px solid var(--ga-border); border-radius: var(--ga-radius);
  box-shadow: var(--ga-shadow-lg); padding: 6px; display: none;
}
.ga-account__menu.is-open { display: block; animation: ga-pop .16s var(--ga-ease); }
.ga-account__who { padding: 10px 12px 12px; border-bottom: 1px solid var(--ga-border); margin-bottom: 6px; }
.ga-account__who strong { display: block; font-weight: 550; }
.ga-account__who span { color: var(--ga-muted); font-size: 13px; word-break: break-all; }
.ga-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0;
  background: transparent; border-radius: var(--ga-radius-sm); color: var(--ga-text-2) !important; font: inherit; font-size: 14px; text-align: left; cursor: pointer;
}
.ga-menu-item:hover { background: var(--ga-sunken); color: var(--ga-text) !important; }
.ga-menu-item i { font-size: 18px; color: var(--ga-muted); }

.ga-content { padding: 8px 32px 40px; max-width: 1360px; }
.ga-footer {
  padding: 18px 32px 28px; color: var(--ga-subtle); font-size: 12.5px; max-width: 1360px;
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between;
}

/* Collapsed rail (desktop, opt-in) */
.ga.is-rail .ga-sidebar { width: var(--ga-rail-w); }
.ga.is-rail .ga-main { margin-left: var(--ga-rail-w); }
.ga.is-rail .ga-logo-word,
.ga.is-rail .ga-nav__text,
.ga.is-rail .ga-collapse-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ga.is-rail .ga-nav__label { height: 1px; padding: 0; margin: 10px 8px; background: var(--ga-border); font-size: 0; }
.ga.is-rail .ga-nav__link, .ga.is-rail .ga-collapse-btn { justify-content: center; min-height: 44px; padding: 0; }
.ga.is-rail .ga-sidebar__brand { justify-content: center; padding: 0; }
.ga.is-rail .ga-collapse-btn i { transform: rotate(180deg); }
.ga.is-rail .ga-nav__link[data-tip]:hover::after,
.ga.is-rail .ga-nav__link[data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  background: var(--ga-text); color: #fff; font-size: 12.5px; padding: 5px 9px; border-radius: 6px; white-space: nowrap; pointer-events: none;
}

.ga-scrim { display: none; }

/* ---------- Page header (cards' first header acts as the page title) ---- */
.ga-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 18px 0 20px; flex-wrap: wrap; }
.ga-page-head h1 { font-size: 26px; font-weight: 600; margin: 0; letter-spacing: -0.02em; }
.ga-page-head p { margin: 4px 0 0; color: var(--ga-muted); max-width: 62ch; }

/* ---------- Cards ------------------------------------------------------ */
.ga .card {
  background: var(--ga-surface);
  border: 1px solid var(--ga-border);
  border-radius: var(--ga-radius-lg);
  box-shadow: var(--ga-shadow);
  margin-bottom: 24px;
}
.ga .card-header, .ga .card-header.border-0 {
  background: transparent;
  border-bottom: 1px solid var(--ga-border) !important;
  padding: 20px 24px;
  border-radius: var(--ga-radius-lg) var(--ga-radius-lg) 0 0;
}
.ga .card-header h3, .ga .card-header .h3 {
  font-size: 18px !important; font-weight: 600; color: var(--ga-text) !important; margin: 0; letter-spacing: -0.015em;
}
.ga .card-header .row { align-items: center; }
.ga .card-header .text-right br { display: none; }
.ga .card-body { padding: 20px 24px 24px; }
.ga .card-body.pt-0 { padding-top: 14px !important; }
.ga .card-body.mt-3 { margin-top: 0 !important; }
.ga .card-footer { background: var(--ga-surface-2); border-top: 1px solid var(--ga-border); border-radius: 0 0 var(--ga-radius-lg) var(--ga-radius-lg); }
.ga .container-fluid.mt--6 { margin-top: 0 !important; }

/* ---------- Buttons ---------------------------------------------------- */
.ga .btn {
  font-family: var(--ga-font); font-weight: 550; font-size: 14px; letter-spacing: 0; text-transform: none;
  border-radius: var(--ga-radius-sm); padding: 9px 16px; line-height: 1.3;
  box-shadow: none; border-width: 1px;
  transition: background-color .15s var(--ga-ease), border-color .15s var(--ga-ease), box-shadow .15s var(--ga-ease), transform .1s var(--ga-ease);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.ga .btn:not(:disabled):active { transform: translateY(1px) scale(.99); }
.ga .btn:hover { transform: none; box-shadow: none; }
.ga .btn:focus, .ga .btn.focus { box-shadow: var(--ga-ring) !important; }
.ga .btn-sm { padding: 7px 13px; font-size: 13.5px; }
.ga .btn-lg { padding: 12px 22px; font-size: 15px; }
.ga .btn-primary, .ga .btn-default-app, .ga .btn-success, .ga .btn-info {
  background: var(--ga-rose-600) !important; border-color: var(--ga-rose-600) !important; color: #fff !important;
}
.ga .btn-primary:hover, .ga .btn-default-app:hover, .ga .btn-success:hover, .ga .btn-info:hover {
  background: var(--ga-rose-700) !important; border-color: var(--ga-rose-700) !important;
}
.ga .btn-secondary, .ga .btn-default, .ga .btn-light, .ga .btn-outline-primary, .ga .btn-neutral {
  background: var(--ga-surface) !important; border-color: var(--ga-border-strong) !important; color: var(--ga-text) !important;
}
.ga .btn-secondary:hover, .ga .btn-default:hover, .ga .btn-light:hover, .ga .btn-outline-primary:hover, .ga .btn-neutral:hover {
  background: var(--ga-sunken) !important;
}
.ga .btn-danger { background: var(--ga-danger) !important; border-color: var(--ga-danger) !important; color: #fff !important; }
.ga .btn-danger:hover { background: #962632 !important; }
.ga .btn-ghost { background: transparent; border-color: transparent; color: var(--ga-text-2); }
.ga .btn-ghost:hover { background: var(--ga-sunken); }

/* ---------- Forms ------------------------------------------------------ */
.ga label, .ga .control-label, .ga .form-control-label {
  font-family: var(--ga-font); font-weight: 500; font-size: 13.5px; color: var(--ga-text-2) !important;
  display: block !important; margin-bottom: 6px;
}
.ga .form-group { margin-bottom: 18px !important; }
.ga .form-group.row > .control-label, .ga .form-group.row > label { padding-top: 9px; margin-bottom: 0; }
.ga .form-control, .ga select.form-control, .ga input[type="text"], .ga input[type="email"], .ga input[type="number"],
.ga input[type="password"], .ga input[type="date"], .ga input[type="time"], .ga input[type="url"], .ga textarea {
  font-family: var(--ga-font); font-size: 14.5px; color: var(--ga-text);
  background: var(--ga-surface); border: 1px solid var(--ga-border-strong); border-radius: var(--ga-radius-sm);
  height: auto; min-height: 40px; padding: 8px 12px; box-shadow: none;
  transition: border-color .15s var(--ga-ease), box-shadow .15s var(--ga-ease);
}
.ga textarea.form-control { min-height: 110px; line-height: 1.55; }
.ga .form-control::placeholder { color: var(--ga-subtle); }
.ga .form-control:hover { border-color: #c9bfbb; }
.ga .form-control:focus, .ga input:focus, .ga textarea:focus, .ga select:focus {
  border-color: var(--ga-rose-500); box-shadow: var(--ga-ring); outline: none;
}
.ga .form-control:disabled, .ga .form-control[readonly] { background: var(--ga-sunken); color: var(--ga-muted); }
.ga select.form-control {
  appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 256 256'%3E%3Cpath fill='%23766c6e' d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.ga input[type="file"].form-control { padding: 6px; }
.ga input[type="file"]::file-selector-button {
  font: inherit; font-size: 13px; font-weight: 550; border: 1px solid var(--ga-border-strong); background: var(--ga-surface-2);
  border-radius: 6px; padding: 5px 12px; margin-right: 10px; cursor: pointer;
}
.ga .is-invalid, .ga .form-control.is-invalid { border-color: var(--ga-danger) !important; }
.ga .is-invalid:focus { box-shadow: 0 0 0 3px rgba(184, 50, 63, .2) !important; }
.ga span.text-danger, .ga .invalid-feedback, .ga label.error, .ga .help-block {
  display: block; font-size: 12.5px; margin-top: 5px; color: var(--ga-danger) !important; font-weight: 450;
}
.ga fieldset {
  border: 1px solid var(--ga-border); border-radius: var(--ga-radius); padding: 18px 20px 6px; margin: 0 0 20px; width: 100%;
  background: var(--ga-surface-2);
}
.ga legend {
  width: auto; font-size: 13px; font-weight: 600; color: var(--ga-text-2); padding: 0 8px; margin: 0 0 6px -8px;
  text-transform: none; letter-spacing: 0;
}
.ga .restaurant_payout_create, .ga .restaurant_payout_create-inner { width: 100%; margin: 0; }
.ga .width-100 { width: 100%; }
.ga form .text-center .btn, .ga form .btn[type="submit"] { min-width: 120px; }
.ga .custom-control-input:checked ~ .custom-control-label::before { background: var(--ga-rose-600); border-color: var(--ga-rose-600); }
.ga .input-group-text { background: var(--ga-surface-2); border-color: var(--ga-border-strong); color: var(--ga-muted); }

/* Status switch (used by every list) */
.ga .switch { position: relative; display: inline-flex !important; width: 38px; height: 22px; margin: 0 !important; vertical-align: middle; cursor: pointer; }
.ga .switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.ga .switch .slider {
  position: absolute; inset: 0; border-radius: 999px; cursor: pointer;
  background-color: #d8cfcc !important; transition: background-color .2s var(--ga-ease); z-index: 2;
}
.ga .switch .slider::before {
  content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s var(--ga-ease);
}
.ga .switch input:checked + .slider { background-color: var(--ga-success) !important; }
.ga .switch input:checked + .slider::before { transform: translateX(16px); }
.ga .switch input:focus-visible + .slider { box-shadow: var(--ga-ring); }
.ga a.deactive.action { display: none; }

/* ---------- Tables / DataTables --------------------------------------- */
.ga .table-responsive { overflow-x: auto; padding: 1px; }
.ga .table {
  margin: 0 !important; color: var(--ga-text); border-collapse: separate; border-spacing: 0; width: 100% !important;
  border: 1px solid var(--ga-border); border-radius: var(--ga-radius); background: var(--ga-surface);
}
.ga .table thead tr:first-child th:first-child { border-top-left-radius: var(--ga-radius); }
.ga .table thead tr:first-child th:last-child { border-top-right-radius: var(--ga-radius); }
.ga .table tbody tr:last-child td:first-child { border-bottom-left-radius: var(--ga-radius); }
.ga .table tbody tr:last-child td:last-child { border-bottom-right-radius: var(--ga-radius); }
.ga .table thead th, .ga .table .thead-light th {
  background: var(--ga-surface-2) !important; color: var(--ga-muted) !important;
  font-family: var(--ga-font); font-size: 12.5px !important; font-weight: 500 !important; letter-spacing: .01em; text-transform: none;
  border-top: 0; border-bottom: 1px solid var(--ga-border) !important; padding: 11px 16px !important; white-space: nowrap; text-align: left !important;
}
.ga .table td {
  font-size: 14px !important; padding: 12px 16px !important; vertical-align: middle; border-top: 1px solid var(--ga-border);
  color: var(--ga-text); white-space: normal; max-width: 420px;
}
.ga .table tbody tr:first-child td { border-top: 0; }
.ga .table-striped tbody tr:nth-of-type(odd) { background: transparent; }
.ga .table tbody tr { transition: background-color .12s var(--ga-ease); }
.ga .table tbody tr:hover { background: #fcf7f8; }
.ga .table td.budget:first-child, .ga .table th:first-child { color: var(--ga-subtle); width: 56px; }
.ga .table td img { border-radius: var(--ga-radius-xs); object-fit: cover; }

/* Row actions: the old markup is icon labels and links; turn them into icon buttons */
.ga td.actions { white-space: nowrap; width: 1%; text-align: right; }
.ga td.actions, .ga td.actions > * { vertical-align: middle; }
.ga td.actions form, .ga td.actions .delete-action { display: inline-flex !important; padding: 0 !important; margin: 0 !important; }
.ga td.actions label, .ga td.actions > a, .ga td.actions form a {
  display: inline-flex !important; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin: 0 0 0 4px !important; padding: 0 !important;
  border-radius: var(--ga-radius-sm); border: 1px solid transparent; cursor: pointer; color: var(--ga-muted);
  transition: background-color .15s var(--ga-ease), border-color .15s var(--ga-ease), color .15s var(--ga-ease);
}
.ga td.actions label:hover, .ga td.actions > a:hover { background: var(--ga-surface); border-color: var(--ga-border-strong); }
.ga td.actions i { font-size: 15px; padding: 0 !important; color: var(--ga-muted) !important; }
.ga td.actions a:hover i { color: var(--ga-text) !important; }
.ga td.actions label:hover i { color: var(--ga-danger) !important; }
.ga td.actions label:focus-within { box-shadow: var(--ga-ring); }

.ga .dataTables_wrapper { padding: 0 !important; font-size: 13.5px; color: var(--ga-muted); }
.ga .dataTables_wrapper .dataTables_length,
.ga .dataTables_wrapper .dataTables_filter { margin: 0 0 14px; padding: 0 !important; float: none; }
.ga .dataTables_wrapper .ga-dt-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ga .dataTables_wrapper .ga-dt-toolbar > div { margin: 0 !important; }
.ga .dataTables_wrapper .dataTables_filter label,
.ga .dataTables_wrapper .dataTables_length label {
  display: flex !important; align-items: center; gap: 8px; margin: 0; font-size: 13.5px !important; color: var(--ga-muted) !important; font-weight: 450; padding: 0 !important;
}
.ga .dataTables_wrapper .dataTables_filter label { font-size: 0 !important; position: relative; }
.ga .dataTables_wrapper .dataTables_filter label::before {
  content: "\e30c"; font-family: "Phosphor"; font-size: 16px; color: var(--ga-subtle);
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%); pointer-events: none;
}
.ga .dataTables_wrapper .dataTables_filter input {
  width: min(320px, 70vw); margin: 0 !important; padding: 8px 12px 8px 36px !important; min-height: 38px;
  border: 1px solid var(--ga-border-strong) !important; border-radius: var(--ga-radius-sm) !important; font-size: 14px; background: var(--ga-surface);
}
.ga .dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--ga-border-strong); border-radius: var(--ga-radius-sm); padding: 6px 28px 6px 10px; min-height: 36px; font-size: 13.5px;
  appearance: none; -webkit-appearance: none; background: var(--ga-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 256 256'%3E%3Cpath fill='%23766c6e' d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E") no-repeat right 10px center;
}
.ga table.dataTable { border-bottom: 0 !important; }
.ga table.dataTable.no-footer { border-bottom: 0 !important; padding: 0 !important; }
.ga table.dataTable thead th { position: relative; background-image: none !important; cursor: pointer; }
.ga table.dataTable thead th.sorting_asc::after { content: "\e13c"; font-family: "Phosphor"; margin-left: 6px; font-size: 11px; color: var(--ga-rose-600); }
.ga table.dataTable thead th.sorting_desc::after { content: "\e136"; font-family: "Phosphor"; margin-left: 6px; font-size: 11px; color: var(--ga-rose-600); }
.ga .dataTables_wrapper .ga-dt-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.ga .dataTables_wrapper .dataTables_info { padding: 0 !important; color: var(--ga-muted) !important; font-size: 13px; float: none; }
.ga .dataTables_wrapper .dataTables_paginate { padding: 0 !important; float: none; display: flex; gap: 4px; }
.ga .dataTables_wrapper .dataTables_paginate .paginate_button {
  min-width: 34px; height: 34px; padding: 0 10px !important; margin: 0 !important; display: inline-flex !important; align-items: center; justify-content: center;
  border: 1px solid transparent !important; border-radius: var(--ga-radius-sm) !important; color: var(--ga-text-2) !important; background: transparent !important; font-size: 13.5px;
}
.ga .dataTables_wrapper .dataTables_paginate .paginate_button:hover { background: var(--ga-sunken) !important; color: var(--ga-text) !important; }
.ga .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.ga .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--ga-surface) !important; border-color: var(--ga-border-strong) !important; color: var(--ga-text) !important; font-weight: 600; box-shadow: var(--ga-shadow-sm);
}
.ga .dataTables_wrapper .dataTables_paginate .paginate_button.disabled { opacity: .4; pointer-events: none; }
.ga .dataTables_empty { padding: 36px 16px !important; color: var(--ga-muted) !important; text-align: center; }

/* Laravel paginator (bootstrap) */
.ga .pagination { gap: 4px; margin: 14px 0 0 !important; flex-wrap: wrap; }
.ga .page-link {
  border: 1px solid transparent; border-radius: var(--ga-radius-sm) !important; color: var(--ga-text-2); min-width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center; margin: 0; background: transparent; font-size: 13.5px;
}
.ga .page-link:hover { background: var(--ga-sunken); color: var(--ga-text); border-color: transparent; }
.ga .page-item.active .page-link { background: var(--ga-surface) !important; border-color: var(--ga-border-strong) !important; color: var(--ga-text) !important; font-weight: 600; box-shadow: var(--ga-shadow-sm); }

/* ---------- Loading, skeleton, empty ----------------------------------- */
.ga .card-body { position: relative; }
.ga .loading-overlay {
  position: absolute; inset: 0; z-index: 5; display: flex; align-items: flex-start; justify-content: center; padding-top: 80px;
  background: rgba(255,255,255,.6); backdrop-filter: blur(1px); border-radius: 0 0 var(--ga-radius-lg) var(--ga-radius-lg);
  transition: opacity .2s var(--ga-ease);
}
.ga .loading-overlay.hide-loading-overlay { opacity: 0; pointer-events: none; }
.ga .loading-overlay img { display: none; }
.ga .loading-overlay .loading-content::before {
  content: ""; display: block; width: 26px; height: 26px; border-radius: 50%;
  border: 2.5px solid var(--ga-pink-200); border-top-color: var(--ga-rose-500); animation: ga-spin .7s linear infinite;
}
.ga .ajax-content:empty {
  min-height: 280px; border-radius: var(--ga-radius);
  background:
    linear-gradient(90deg, transparent 0, rgba(255,255,255,.75) 50%, transparent 100%) 0 0 / 40% 100% no-repeat,
    repeating-linear-gradient(180deg, var(--ga-surface-2) 0 44px, var(--ga-surface) 44px 46px, var(--ga-sunken) 46px 56px, var(--ga-surface) 56px 62px);
  animation: ga-shimmer 1.3s ease-in-out infinite;
  border: 1px solid var(--ga-border);
}
.ga-empty, .ga .ajax-content > .col-md-12.text-center {
  text-align: center; padding: 48px 16px 40px !important; margin: 0 !important; border: 1px dashed var(--ga-border-strong); border-radius: var(--ga-radius);
  background: var(--ga-surface-2);
}
.ga .ajax-content > .col-md-12.text-center::before, .ga-empty__icon {
  content: "\e4aa"; font-family: "Phosphor"; display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 14px;
  border-radius: 14px; background: var(--ga-pink-100); color: var(--ga-rose-600); font-size: 24px;
}
.ga .ajax-content > .col-md-12.text-center h3, .ga-empty h3 { font-size: 16px !important; font-weight: 600; color: var(--ga-text) !important; margin: 0; }
.ga .ajax-content > .col-md-12.text-center h3::after {
  content: "Use the button above to add the first one."; display: block; font-size: 13.5px; font-weight: 400; color: var(--ga-muted); margin-top: 4px;
}

/* ---------- Alerts (validation errors stay inline) --------------------- */
.ga .alert, .ga .new-alert.alert {
  width: auto !important; margin: 0 0 16px !important; border-radius: var(--ga-radius); border: 1px solid; font-size: 14px;
  padding: 12px 44px 12px 16px; box-shadow: none; display: block;
}
.ga .alert-danger { background: var(--ga-danger-bg); border-color: #f1cdd2; color: #7f1f2a; }
.ga .alert-success { background: var(--ga-success-bg); border-color: #c7e3d4; color: #1f5a40; }
.ga .alert-warning { background: var(--ga-warning-bg); border-color: #f0dcb5; color: #6d470b; }
.ga .alert-info { background: var(--ga-info-bg); border-color: #cfdbec; color: #2b4568; }
.ga .alert .close { top: 50%; transform: translateY(-50%); padding: 6px 12px; opacity: .55; text-shadow: none; color: inherit; }

/* ---------- Tabs ------------------------------------------------------- */
.ga .nav-tabs { border-bottom: 1px solid var(--ga-border); gap: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.ga .nav-tabs .nav-link {
  border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--ga-muted) !important; font-weight: 500; font-size: 14px;
  padding: 10px 12px; margin-bottom: -1px; white-space: nowrap; background: transparent;
}
.ga .nav-tabs .nav-link:hover { color: var(--ga-text) !important; }
.ga .nav-tabs .nav-link.active, .ga .nav-tabs .nav-item.active .nav-link { color: var(--ga-rose-700) !important; border-bottom-color: var(--ga-rose-500); background: transparent; }
.ga .nav-pills .nav-link { border-radius: var(--ga-radius-sm); color: var(--ga-text-2); box-shadow: none; }
.ga .nav-pills .nav-link.active { background: var(--ga-pink-100); color: var(--ga-rose-700); }

/* ---------- Badges ----------------------------------------------------- */
.ga .badge { font-family: var(--ga-font); font-weight: 550; font-size: 12px; text-transform: none; letter-spacing: 0; border-radius: 6px; padding: 3px 8px; }
.ga-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 550; padding: 2px 8px; border-radius: 6px; }
.ga-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ga-badge--success { background: var(--ga-success-bg); color: var(--ga-success); }
.ga-badge--muted { background: var(--ga-sunken); color: var(--ga-muted); }
.ga-badge--rose { background: var(--ga-pink-100); color: var(--ga-rose-700); }

/* ---------- Dashboard -------------------------------------------------- */
.ga-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 24px; }
.ga-stat {
  position: relative; display: block; background: var(--ga-surface); border: 1px solid var(--ga-border); border-radius: var(--ga-radius-lg);
  padding: 18px 20px 20px; box-shadow: var(--ga-shadow); color: var(--ga-text) !important;
  transition: transform .2s var(--ga-ease), box-shadow .2s var(--ga-ease), border-color .2s var(--ga-ease);
}
a.ga-stat:hover { transform: translateY(-2px); box-shadow: var(--ga-shadow-lg); border-color: var(--ga-border-strong); }
.ga-stat__label { display: flex; align-items: center; gap: 8px; color: var(--ga-muted); font-size: 13.5px; }
.ga-stat__label i { font-size: 17px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--ga-pink-100); color: var(--ga-rose-600); }
.ga-stat__value { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; margin-top: 12px; line-height: 1; }
.ga-stat__meta { margin-top: 8px; font-size: 12.5px; color: var(--ga-muted); }
.ga-stat__meta b { color: var(--ga-success); font-weight: 550; }
.ga-stat--hero { background: linear-gradient(155deg, #fff 30%, var(--ga-pink-100)); }

.ga-grid-2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; }
.ga-panel { background: var(--ga-surface); border: 1px solid var(--ga-border); border-radius: var(--ga-radius-lg); box-shadow: var(--ga-shadow); }
.ga-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--ga-border); }
.ga-panel__head h2 { font-size: 15.5px; font-weight: 600; margin: 0; }
.ga-panel__head a { font-size: 13.5px; }
.ga-panel__body { padding: 16px 20px 20px; }
.ga-panel__note { color: var(--ga-muted); font-size: 12.5px; }
.ga-mt { margin-top: 20px; }
.ga a.ga-link-plain { color: inherit; }
.ga a.ga-link-plain:hover { color: var(--ga-rose-700); }
.ga-subline { color: var(--ga-muted); font-size: 13px; margin-top: 2px; }
.ga-bars { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 8px; }
.ga-bars__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; min-width: 0; }
.ga-bars__bar {
  width: 100%; max-width: 38px; border-radius: 6px 6px 3px 3px; min-height: 3px;
  background: linear-gradient(180deg, var(--ga-pink-400), var(--ga-rose-500)); position: relative;
  transform-origin: bottom; animation: ga-grow .6s var(--ga-ease) both;
}
.ga-bars__bar span {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 11.5px; color: var(--ga-text-2); font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.ga-bars__x { font-size: 11px; color: var(--ga-subtle); white-space: nowrap; }

.ga-list { list-style: none; margin: 0; padding: 0; }
.ga-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ga-border); }
.ga-list li:first-child { border-top: 0; padding-top: 0; }
.ga-list__main { min-width: 0; flex: 1; }
.ga-list__main strong { display: block; font-weight: 550; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ga-list__main span { color: var(--ga-muted); font-size: 12.5px; }
.ga-list__aside { color: var(--ga-subtle); font-size: 12.5px; white-space: nowrap; }

.ga-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.ga-quick a {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--ga-border); border-radius: var(--ga-radius);
  color: var(--ga-text) !important; font-weight: 500; font-size: 14px; background: var(--ga-surface);
  transition: border-color .15s var(--ga-ease), background-color .15s var(--ga-ease);
}
.ga-quick a:hover { border-color: var(--ga-pink-300); background: var(--ga-pink-100); }
.ga-quick a i { font-size: 18px; color: var(--ga-rose-600); }

/* ---------- Toasts (toastr) -------------------------------------------- */
#toast-container { z-index: var(--z-toast); }
#toast-container.toast-bottom-center, #toast-container.toast-bottom-right { bottom: 20px; right: 20px; left: auto; width: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
#toast-container > div.toast {
  width: min(380px, calc(100vw - 40px)) !important; margin: 0 !important; opacity: 1 !important;
  background: var(--ga-text) none !important; color: #fff; border-radius: var(--ga-radius) !important;
  box-shadow: var(--ga-shadow-lg) !important; padding: 14px 16px 14px 46px !important;
  font-family: var(--ga-font); font-size: 14px; position: relative;
}
#toast-container > div::before {
  font-family: "Phosphor-Fill"; position: absolute; left: 16px; top: 13px; font-size: 19px;
}
#toast-container > .toast-success::before { content: "\e184"; color: #7fd3a8; }
#toast-container > .toast-error::before { content: "\e4f8"; color: #ff9aa6; }
#toast-container > .toast-warning::before { content: "\e4e2"; color: #f5c66b; }
#toast-container > .toast-info::before { content: "\e2ce"; color: #9cc1f2; }
#toast-container .toast-progress { background: var(--ga-pink-300); opacity: .7; height: 3px; bottom: 0; border-radius: 0 0 0 var(--ga-radius); }

/* ---------- Confirm dialog -------------------------------------------- */
.ga-dialog {
  border: 0; padding: 0; border-radius: var(--ga-radius-lg); width: min(420px, calc(100vw - 32px));
  box-shadow: var(--ga-shadow-lg); color: var(--ga-text); font-family: var(--ga-font);
}
.ga-dialog::backdrop { background: rgba(31, 26, 27, .38); backdrop-filter: blur(2px); }
.ga-dialog[open] { animation: ga-pop .18s var(--ga-ease); }
.ga-dialog__body { padding: 22px 22px 8px; display: flex; gap: 14px; }
.ga-dialog__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--ga-danger-bg); color: var(--ga-danger); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.ga-dialog h2 { font-size: 16.5px; font-weight: 600; margin: 2px 0 4px; }
.ga-dialog p { margin: 0; color: var(--ga-muted); font-size: 14px; }
.ga-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; padding: 18px 22px 20px; }

/* ---------- Detail page bits ------------------------------------------ */
.ga dl.ga-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px 24px; margin: 0; }
.ga dl.ga-facts dt { font-weight: 450; color: var(--ga-muted); font-size: 12.5px; }
.ga dl.ga-facts dd { margin: 2px 0 0; font-weight: 500; }

/* ---------- Login ------------------------------------------------------ */
.ga-auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--ga-surface); }
.ga-auth__art {
  position: relative; overflow: hidden; padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(60% 55% at 18% 22%, rgba(254, 185, 209, .95) 0%, rgba(254, 185, 209, 0) 70%),
    radial-gradient(55% 60% at 85% 80%, rgba(244, 145, 180, .75) 0%, rgba(244, 145, 180, 0) 70%),
    radial-gradient(45% 45% at 75% 18%, rgba(255, 230, 238, .9) 0%, rgba(255, 230, 238, 0) 70%),
    #fbe3ea;
}
.ga-auth__art::after {
  content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .3 0 0 0 0 .35 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ga-auth__brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.ga-auth__brand .ga-logo-mark { width: 34px; height: 44px; color: var(--ga-rose-700); }
.ga-auth__brand .ga-logo-word { font-size: 20px; color: var(--ga-rose-700); }
.ga-auth__quote { position: relative; z-index: 1; max-width: 30ch; }
.ga-auth__quote p { font-size: clamp(26px, 3vw, 40px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 500; color: #4a1f29; margin: 0 0 14px; }
.ga-auth__quote span { color: #7a3d4a; font-size: 14px; }
.ga-auth__form { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.ga-auth__card { width: 100%; max-width: 380px; }
.ga-auth__card h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; }
.ga-auth__card > p { color: var(--ga-muted); margin: 0 0 28px; }
.ga-field { margin-bottom: 16px; }
.ga-field__control { position: relative; }
.ga-field__control > i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ga-subtle); font-size: 18px; pointer-events: none; }
.ga .ga-field__control .form-control { padding-left: 40px; padding-right: 44px; min-height: 46px; font-size: 15px; }
.ga-pass-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: transparent;
  color: var(--ga-muted); border-radius: var(--ga-radius-sm); display: grid; place-items: center; font-size: 18px; cursor: pointer;
}
.ga-pass-toggle:hover { background: var(--ga-sunken); color: var(--ga-text); }
.ga-auth .btn-primary { width: 100%; min-height: 46px; font-size: 15px; margin-top: 8px; }
.ga-auth__fine { margin-top: 28px; font-size: 12.5px; color: var(--ga-subtle); }

/* ---------- Motion ----------------------------------------------------- */
@keyframes ga-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ga-spin { to { transform: rotate(360deg); } }
@keyframes ga-shimmer { from { background-position: -40% 0, 0 0; } to { background-position: 140% 0, 0 0; } }
@keyframes ga-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ------------------------------------------------- */
@media (max-width: 1100px) {
  .ga-grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .ga-bars { gap: 6px; }
  .ga-bars__col:nth-child(even) .ga-bars__x { visibility: hidden; }
}
@media (max-width: 991.98px) {
  .ga-sidebar { transform: translateX(-100%); width: min(var(--ga-sidebar-w), 86vw); box-shadow: var(--ga-shadow-lg); }
  .ga.is-rail .ga-sidebar { width: min(var(--ga-sidebar-w), 86vw); }
  .ga.nav-open .ga-sidebar { transform: none; }
  .ga-main, .ga.is-rail .ga-main { margin-left: 0; }
  .ga-menu-btn { display: inline-flex; }
  .ga-sidebar__foot { display: none; }
  .ga-scrim { display: block; position: fixed; inset: 0; background: rgba(31, 26, 27, .35); z-index: var(--z-overlay); opacity: 0; pointer-events: none; transition: opacity .2s var(--ga-ease); }
  .ga.nav-open .ga-scrim { opacity: 1; pointer-events: auto; }
  .ga.nav-open .ga-sidebar { z-index: calc(var(--z-overlay) + 1); }
  /* rail styles never apply on small screens */
  .ga.is-rail .ga-logo-word, .ga.is-rail .ga-nav__text { position: static; width: auto; height: auto; clip: auto; }
  .ga.is-rail .ga-nav__label { height: auto; padding: 0 10px 6px; margin: 0; background: none; font-size: 11.5px; }
  .ga.is-rail .ga-nav__link { justify-content: flex-start; padding: 7px 10px; min-height: 40px; }
  .ga.is-rail .ga-sidebar__brand { justify-content: flex-start; padding: 0 18px; }
}
@media (max-width: 767.98px) {
  body.ga { font-size: 14px; }
  .ga-topbar { padding: 0 16px; }
  .ga-content { padding: 4px 16px 32px; }
  .ga-footer { padding: 16px; }
  .ga .card-header, .ga .card-header.border-0 { padding: 16px; }
  .ga .card-header .row { flex-direction: row; }
  .ga .card-header .col.text-right { flex: 0 0 auto; }
  .ga .card-body { padding: 16px; }
  /* Tables inside forms (e.g. unit conversions) scroll instead of widening the page. */
  .ga form table.table, .ga fieldset table.table { display: block; overflow-x: auto; max-width: 100%; }
  .ga .form-group.row { margin-left: 0; margin-right: 0; }
  .ga .form-group.row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; padding-left: 0; padding-right: 0; }
  .ga .card-header .row { flex-wrap: nowrap; margin: 0; gap: 12px; }
  .ga .card-header .row > .col { padding: 0; min-width: 0; }
  .ga .card-header .row > .col.text-right { flex: 0 0 auto; }
  .ga-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ga-stat { padding: 14px; }
  .ga-stat__label { font-size: 12.5px; }
  .ga-stat__label i { width: 26px; height: 26px; font-size: 15px; }
  .ga-page-head h1 { font-size: 23px; }
  .ga .form-group.row > .control-label, .ga .form-group.row > label { padding-top: 0; margin-bottom: 6px; }
  .ga fieldset { padding: 14px 14px 2px; }
  .ga-account__btn .ga-account__name { display: none; }
  .ga-auth { grid-template-columns: 1fr; }
  .ga-auth__art { min-height: 220px; padding: 28px 24px; }
  .ga-auth__quote p { font-size: 26px; }
  .ga .dataTables_wrapper .dataTables_filter input { width: 100%; }
  .ga .dataTables_wrapper .dataTables_filter, .ga .dataTables_wrapper .dataTables_filter label { width: 100%; }
  .ga .table td, .ga .table th { padding: 10px 12px !important; }
  .ga-stat__value { font-size: 24px; margin-top: 10px; }
}

/* ==========================================================================
   Sponsorship (banners, sponsors)
   ========================================================================== */
.ga .ga-thumb { width: 132px; aspect-ratio: 3 / 1; border-radius: var(--ga-radius-xs); object-fit: cover; background: var(--ga-sunken); border: 1px solid var(--ga-border); display: block; }
.ga .ga-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.ga .ga-chip { font-size: 12px; font-weight: 550; padding: 2px 8px; border-radius: 999px; background: var(--ga-pink-100); color: var(--ga-rose-700); white-space: nowrap; }
.ga .ga-num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.ga .ga-muted { color: var(--ga-muted); }
.ga .ga-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 20px; }
.ga .ga-slot { display: block; padding: 12px 14px; border: 1px solid var(--ga-border); border-radius: var(--ga-radius); background: var(--ga-surface); color: var(--ga-text); text-decoration: none; transition: border-color .15s var(--ga-ease), box-shadow .15s var(--ga-ease); }
.ga .ga-slot:hover, .ga .ga-slot.is-active { border-color: var(--ga-rose-500); box-shadow: var(--ga-ring); text-decoration: none; }
.ga .ga-slot__label { font-size: 13px; font-weight: 600; }
.ga .ga-slot__count { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-top: 2px; }
.ga .ga-slot__count small { font-size: 12.5px; font-weight: 450; color: var(--ga-muted); margin-left: 4px; }
.ga .ga-slot--empty .ga-slot__count { color: var(--ga-warning); }
.ga .ga-actions { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.ga .ga-actions form { margin: 0; }
.ga .ga-icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--ga-radius-sm); border: 1px solid var(--ga-border); background: var(--ga-surface); color: var(--ga-text-2); cursor: pointer; }
.ga .ga-icon-btn:hover { border-color: var(--ga-border-strong); color: var(--ga-text); text-decoration: none; }
.ga .ga-icon-btn--danger:hover { color: var(--ga-danger); border-color: var(--ga-danger); }
.ga .ga-icon-btn:focus-visible { outline: none; box-shadow: var(--ga-ring); }

.ga .ga-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .ga .ga-form-grid { grid-template-columns: 1fr; } }
.ga .ga-section-title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ga-muted); margin: 4px 0 10px; }
.ga .ga-hint { font-size: 12.5px; color: var(--ga-muted); margin-top: 6px; }
.ga .ga-picks { display: grid; gap: 8px; }
.ga .ga-pick { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--ga-border); border-radius: var(--ga-radius); cursor: pointer; margin: 0; background: var(--ga-surface); }
.ga .ga-pick:hover { border-color: var(--ga-border-strong); }
.ga .ga-pick input { margin-top: 3px; accent-color: var(--ga-rose-600); width: 16px; height: 16px; flex: none; }
.ga .ga-pick:has(input:checked) { border-color: var(--ga-rose-500); background: var(--ga-pink-100); }
.ga .ga-pick:has(input:focus-visible) { box-shadow: var(--ga-ring); }
.ga .ga-pick__label { font-weight: 600; font-size: 14px; display: block; }
.ga .ga-pick__where { font-size: 12.5px; color: var(--ga-muted); display: block; margin-top: 2px; }

.ga .ga-drop { position: relative; border: 1.5px dashed var(--ga-border-strong); border-radius: var(--ga-radius); padding: 18px; text-align: center; background: var(--ga-surface-2); color: var(--ga-muted); }
.ga .ga-drop:focus-within { border-color: var(--ga-rose-500); box-shadow: var(--ga-ring); }
.ga .ga-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ga .ga-drop strong { color: var(--ga-rose-600); }

.ga .ga-phone { position: sticky; top: calc(var(--ga-topbar-h) + 16px); border-radius: 28px; padding: 14px; background: #1f1a1b; box-shadow: var(--ga-shadow-lg); }
.ga .ga-phone__screen { border-radius: 18px; background: #fff; padding: 18px 14px 22px; min-height: 380px; }
.ga .ga-phone__line { height: 10px; border-radius: 5px; background: var(--ga-sunken); margin: 8px 0; }
.ga .ga-phone__line--short { width: 55%; }
.ga .ga-ad { margin: 14px 0; }
.ga .ga-ad__label { font-size: 10.5px; font-weight: 600; color: var(--ga-muted); letter-spacing: .03em; margin-bottom: 4px; }
.ga .ga-ad__img { width: 100%; aspect-ratio: 3 / 1; border-radius: 12px; object-fit: cover; background: linear-gradient(135deg, var(--ga-pink-200), var(--ga-pink-100)); display: grid; place-items: center; color: var(--ga-rose-600); font-size: 12px; overflow: hidden; }
.ga .ga-ad__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ga .ga-ad__cta { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--ga-rose-600); }
.ga .ga-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
@media (max-width: 640px) { .ga .ga-kpis { grid-template-columns: 1fr; } .ga .ga-thumb { width: 96px; } }

/* AI assistant pages */
.ga .ga-progress { height: 6px; border-radius: 3px; background: var(--ga-sunken); overflow: hidden; }
.ga .ga-progress span { display: block; height: 100%; background: var(--ga-rose-500); border-radius: 3px; }
.ga .ga-progress span.is-warning { background: var(--ga-warning); }
.ga .ga-progress span.is-danger { background: var(--ga-danger); }
.ga .ga-bars--dense .ga-bars__x { font-size: 9.5px; }
.ga .ga-bars--dense .ga-bars__col:nth-child(odd) .ga-bars__x { visibility: hidden; }
.ga .ga-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; position: sticky; top: calc(var(--ga-topbar-h) + 4px); z-index: 5; background: var(--ga-bg); padding: 6px 0; }
.ga .ga-tabs a { font-size: 13px; font-weight: 550; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ga-border); background: var(--ga-surface); color: var(--ga-text-2); text-decoration: none; }
.ga .ga-tabs a:hover, .ga .ga-tabs a:focus-visible { border-color: var(--ga-rose-500); color: var(--ga-text); outline: none; }
.ga .ga-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.5; }
.ga [id^="ai-"] { scroll-margin-top: calc(var(--ga-topbar-h) + 60px); }
.ga .ga-sticky-actions { position: sticky; bottom: 0; background: var(--ga-bg); padding: 12px 0; border-top: 1px solid var(--ga-border); z-index: 5; }

/* Switch (AI settings): native checkbox, stays inside its container */
.ga .ga-switch-row { margin-bottom: 16px; }
.ga .ga-switch-row:last-child { margin-bottom: 0; }
/* .ga label is display:block !important globally; the switch needs flex. */
.ga label.ga-switch { display: inline-flex !important; align-items: center; gap: 12px; margin: 0; cursor: pointer; font-size: 14px; font-weight: 550; color: var(--ga-text) !important; position: relative; }
.ga .ga-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ga .ga-switch__track { display: block; position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px; background: var(--ga-border-strong); transition: background-color .15s var(--ga-ease); }
.ga .ga-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--ga-shadow-sm); transition: transform .15s var(--ga-ease); }
.ga .ga-switch input:checked + .ga-switch__track { background: var(--ga-rose-600); }
.ga .ga-switch input:checked + .ga-switch__track::after { transform: translateX(16px); }
.ga .ga-switch input:focus-visible + .ga-switch__track { box-shadow: var(--ga-ring); }
.ga .ga-switch__help { margin: 4px 0 0 52px; }
@media (prefers-reduced-motion: reduce) { .ga .ga-switch__track, .ga .ga-switch__track::after { transition: none; } }

/* Conversations inbox (owner only) */
.ga .ga-inbox { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 16px; align-items: start; }
.ga .ga-inbox__list { position: sticky; top: calc(var(--ga-topbar-h) + 12px); max-height: calc(100vh - var(--ga-topbar-h) - 32px); display: flex; flex-direction: column; overflow: hidden; }
.ga .ga-inbox__filters { padding: 12px; border-bottom: 1px solid var(--ga-border); display: grid; gap: 10px; }
.ga .ga-inbox__search { position: relative; }
.ga .ga-inbox__search i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ga-muted); }
.ga .ga-inbox__search input { width: 100%; height: 38px; padding: 0 12px 0 34px; border: 1px solid var(--ga-border); border-radius: var(--ga-radius-sm); background: var(--ga-surface); font: inherit; font-size: 14px; color: var(--ga-text); }
.ga .ga-inbox__search input:focus { outline: none; border-color: var(--ga-rose-500); box-shadow: var(--ga-ring); }
.ga .ga-seg { display: inline-flex; background: var(--ga-sunken); border-radius: var(--ga-radius-sm); padding: 3px; gap: 2px; justify-self: start; }
.ga .ga-seg button { border: 0; background: transparent; font: inherit; font-size: 12.5px; font-weight: 550; color: var(--ga-text-2); padding: 5px 10px; border-radius: 6px; cursor: pointer; }
.ga .ga-seg button.is-on { background: var(--ga-surface); color: var(--ga-text); box-shadow: var(--ga-shadow-sm); }
.ga .ga-seg button:focus-visible { outline: none; box-shadow: var(--ga-ring); }
.ga .ga-inbox__scope { padding: 8px 14px; font-size: 12.5px; background: var(--ga-pink-100); color: var(--ga-rose-700); }
.ga .ga-inbox__rows { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.ga .ga-row { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--ga-border); color: var(--ga-text); text-decoration: none; }
.ga .ga-row:hover { background: var(--ga-surface-2); text-decoration: none; color: var(--ga-text); }
.ga .ga-row.is-open { background: var(--ga-pink-100); box-shadow: inset 3px 0 0 var(--ga-rose-600); }
.ga .ga-row:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--ga-rose-500); }
.ga .ga-row__avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 650; color: var(--ga-rose-700); background: var(--ga-pink-200); }
.ga .ga-row__main { min-width: 0; flex: 1; display: grid; gap: 2px; }
.ga .ga-row__top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.ga .ga-row__name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ga .ga-row__time { flex: none; font-size: 12px; color: var(--ga-muted); font-variant-numeric: tabular-nums; }
.ga .ga-row__preview { font-size: 13px; color: var(--ga-text-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.4; }
.ga .ga-row__preview b { font-weight: 600; color: var(--ga-text); }
.ga .ga-row__meta { font-size: 11.5px; color: var(--ga-subtle); }
.ga .ga-inbox__pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--ga-border); }
.ga .ga-inbox__thread { min-height: 60vh; }
.ga .ga-inbox__placeholder { min-height: 50vh; display: grid; place-content: center; text-align: center; }
.ga .ga-thread__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--ga-border); position: sticky; top: var(--ga-topbar-h); background: var(--ga-surface); z-index: 2; border-radius: var(--ga-radius) var(--ga-radius) 0 0; }
.ga .ga-thread__who { display: flex; align-items: center; gap: 10px; }
.ga .ga-thread__actions { display: flex; gap: 6px; }
.ga .ga-thread__back { display: none; font-size: 13px; width: 100%; }
.ga .ga-thread { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.ga .ga-thread__day { text-align: center; margin: 6px 0; }
.ga .ga-thread__day span { font-size: 11.5px; font-weight: 600; color: var(--ga-muted); background: var(--ga-sunken); padding: 3px 10px; border-radius: 999px; }
.ga .ga-msg { max-width: min(680px, 86%); display: flex; flex-direction: column; align-items: flex-start; }
.ga .ga-msg--user { align-self: flex-end; align-items: flex-end; }
.ga .ga-msg__bubble { padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--ga-sunken); color: var(--ga-text); line-height: 1.5; font-size: 14px; overflow-wrap: anywhere; }
.ga .ga-msg--user .ga-msg__bubble { background: var(--ga-rose-600); color: #fff; border-radius: 16px 16px 4px 16px; }
.ga .ga-msg__meta { font-size: 11.5px; color: var(--ga-muted); margin-top: 4px; }
.ga .ga-msg__file { display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; font-size: 13px; }
@media (max-width: 900px) {
  .ga .ga-inbox { grid-template-columns: 1fr; }
  .ga .ga-inbox__list { position: static; max-height: none; }
  .ga .ga-inbox.has-selection .ga-inbox__list { display: none; }
  .ga .ga-inbox:not(.has-selection) .ga-inbox__thread { display: none; }
  .ga .ga-thread__back { display: inline-flex; gap: 6px; align-items: center; }
  .ga .ga-msg { max-width: 92%; }
}
.ga .ga-picks--grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* Community moderation */
.ga .ga-seg a { font-size: 12.5px; font-weight: 550; color: var(--ga-text-2); padding: 5px 12px; border-radius: 6px; text-decoration: none; }
.ga .ga-seg a.is-on { background: var(--ga-surface); color: var(--ga-text); box-shadow: var(--ga-shadow-sm); }
.ga .ga-badge--warning { background: #fff4d6; color: #7a5200; }
.ga .ga-badge--danger { background: #fde2e2; color: #9b1c1c; }

/* Community moderation */
.ga .gm-head { align-items: flex-start; max-width: 1040px; }
.ga .gm-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--ga-danger); color: #fff; font-size: 11px; font-weight: 600; }
.ga .gm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; }
.ga .gm-stats > div { background: var(--ga-surface); border: 1px solid var(--ga-border); border-radius: var(--ga-radius); padding: 12px 16px; }
.ga .gm-stats dt { font-size: 12.5px; font-weight: 500; color: var(--ga-muted); }
.ga .gm-stats dd { margin: 2px 0 0; font-size: 22px; font-weight: 600; color: var(--ga-text); font-variant-numeric: tabular-nums; }
.ga .gm-toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 0 0 16px; }
.ga .gm-search { position: relative; flex: 1 1 320px; max-width: 460px; margin: 0; }
.ga .gm-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ga-muted); }
.ga .gm-search input { width: 100%; height: 40px; padding: 0 12px 0 36px; border: 1px solid var(--ga-border-strong); border-radius: var(--ga-radius-sm); background: var(--ga-surface); font: inherit; font-size: 14px; color: var(--ga-text); }
.ga .gm-search input:focus { outline: none; border-color: var(--ga-rose-500); box-shadow: var(--ga-ring); }
.ga .gm-feed { display: grid; gap: 16px; }
.ga .gm-stats, .ga .gm-toolbar, .ga .gm-feed { max-width: 1040px; }
.ga .gm-card { padding: 20px 22px; }
.ga .gm-card.is-hidden { background: var(--ga-surface-2); }
.ga .gm-card.is-hidden .gm-body { opacity: .7; }
.ga .gm-report { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; font-size: 13.5px; color: var(--ga-text-2); padding: 0 0 14px; margin: 0 0 14px; border-bottom: 1px solid var(--ga-border); }
.ga .gm-report__n { font-weight: 600; color: var(--ga-danger); }
.ga .gm-dot { color: var(--ga-subtle); }
.ga .gm-context { font-size: 13.5px; color: var(--ga-muted); margin: 0 0 12px; }
.ga .gm-author { display: flex; gap: 12px; align-items: flex-start; }
.ga .gm-author > div:not(.gm-status) { flex: 1; min-width: 0; }
.ga .gm-author strong { font-weight: 600; color: var(--ga-text); margin-right: 6px; }
.ga .gm-author .ga-badge { vertical-align: 1px; }
.ga .gm-status { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ga .gm-meta { font-size: 13px; color: var(--ga-muted); }
.ga .gm-avatar { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ga-pink-100); color: var(--ga-rose-700); font-weight: 600; font-size: 15px; }
.ga .gm-avatar--sm { width: 30px; height: 30px; font-size: 13px; }
.ga .gm-body { margin: 14px 0 0 50px; }
.ga .gm-title { font-size: 17px; font-weight: 600; margin: 0 0 4px; color: var(--ga-text); letter-spacing: -0.01em; }
.ga .gm-text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ga-text); white-space: pre-line; overflow-wrap: anywhere; }
.ga .gm-counts { display: flex; gap: 16px; margin: 12px 0 0; font-size: 13px; color: var(--ga-muted); }
.ga .gm-counts span { display: inline-flex; align-items: center; gap: 5px; }
.ga .gm-foot { margin: 16px 0 0 50px; }
.ga .gm-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ga .gm-actions form { display: contents; margin: 0; }
.ga .gm-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; min-width: 0 !important; padding: 0 12px; border: 1px solid var(--ga-border-strong); border-radius: var(--ga-radius-sm); background: var(--ga-surface); color: var(--ga-text-2); font: inherit; font-size: 13px; font-weight: 550; cursor: pointer; white-space: nowrap; }
.ga .gm-btn i { font-size: 15px; }
.ga .gm-btn:hover { border-color: var(--ga-text-2); color: var(--ga-text); }
.ga .gm-btn:focus-visible { outline: none; box-shadow: var(--ga-ring); }
.ga .gm-btn--danger { color: var(--ga-danger); }
.ga .gm-btn--danger:hover { border-color: var(--ga-danger); color: var(--ga-danger); background: var(--ga-danger-bg); }
.ga .gm-comments { margin: 18px 0 0 50px; border-top: 1px solid var(--ga-border); padding-top: 12px; }
.ga .gm-comments summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ga-text-2); padding: 4px 0; }
.ga .gm-comments ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.ga .gm-comment { display: flex; gap: 10px; padding: 12px; border-radius: var(--ga-radius); background: var(--ga-surface-2); }
.ga .gm-comment.is-hidden { background: var(--ga-warning-bg); }
.ga .gm-comment__main { flex: 1; min-width: 0; }
.ga .gm-comment__head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 2px; }
.ga .gm-comment__head strong { font-size: 14px; font-weight: 600; }
.ga .gm-comment__head .gm-meta { margin-left: auto; }
.ga .gm-comment .gm-actions { margin-top: 10px; }
.ga .gm-comment .gm-btn { height: 28px; padding: 0 10px; font-size: 12.5px; }
@media (max-width: 760px) {
  .ga .gm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ga .gm-card { padding: 16px; }
  .ga .gm-body, .ga .gm-foot, .ga .gm-comments { margin-left: 0; }
  .ga .gm-status { width: 100%; justify-content: flex-start; margin-left: 50px; }
  .ga .gm-status:empty { display: none; }
  .ga .gm-author { flex-wrap: wrap; }
}
