/* ============================================================
   OmniTradingOwl - Neumorphic SaaS Theme
   Dark / Light mode with CSS custom properties
   ============================================================ */

:root {
  --oto-primary: #6c5ce7;
  --oto-primary-rgb: 108, 92, 231;
  --oto-primary-hover: #5a4bd1;
  --oto-success: #00cec9;
  --oto-success-rgb: 0, 206, 201;
  --oto-danger: #ff6b6b;
  --oto-danger-rgb: 255, 107, 107;
  --oto-warning: #ffd93d;
  --oto-warning-rgb: 255, 217, 61;
  --oto-info: #74b9ff;
  --oto-info-rgb: 116, 185, 255;

  --oto-sidebar-w: 240px;
  --oto-sidebar-collapsed-w: 68px;
  --oto-navbar-h: 60px;
  --oto-footer-h: 40px;
  --oto-bottom-nav-h: 56px;
  --oto-radius: 16px;
  --oto-radius-sm: 10px;
  --oto-transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ---- Dark theme (default) ---- */
[data-theme="dark"] {
  --bg: #1a1a2e;
  --bg-surface: #22223a;
  --bg-card: #2a2a45;
  --bg-input: #1e1e35;
  --text: #e2e2f0;
  --text-muted: #8888a8;
  --text-heading: #ffffff;
  --border: rgba(255,255,255,.06);
  --shadow-neu-out: 6px 6px 14px rgba(0,0,0,.45), -6px -6px 14px rgba(60,60,100,.12);
  --shadow-neu-in: inset 4px 4px 8px rgba(0,0,0,.35), inset -4px -4px 8px rgba(60,60,100,.08);
  --shadow-neu-sm: 3px 3px 8px rgba(0,0,0,.4), -3px -3px 8px rgba(60,60,100,.1);
  --scrollbar-track: #1a1a2e;
  --scrollbar-thumb: #3a3a5c;
  --sidebar-bg: #16162a;
  --sidebar-hover: rgba(108,92,231,.15);
  --sidebar-active: rgba(108,92,231,.25);
  --navbar-bg: rgba(22,22,42,.85);
  --badge-bg: rgba(108,92,231,.2);
  --table-stripe: rgba(255,255,255,.02);
}

/* ---- Light theme ---- */
[data-theme="light"] {
  --bg: #e8e8f0;
  --bg-surface: #f0f0f8;
  --bg-card: #ffffff;
  --bg-input: #e4e4ee;
  --text: #2d2d44;
  --text-muted: #7878a0;
  --text-heading: #1a1a2e;
  --border: rgba(0,0,0,.06);
  --shadow-neu-out: 6px 6px 14px rgba(166,166,190,.35), -6px -6px 14px rgba(255,255,255,.8);
  --shadow-neu-in: inset 4px 4px 8px rgba(166,166,190,.25), inset -4px -4px 8px rgba(255,255,255,.7);
  --shadow-neu-sm: 3px 3px 8px rgba(166,166,190,.3), -3px -3px 8px rgba(255,255,255,.75);
  --scrollbar-track: #e8e8f0;
  --scrollbar-thumb: #c0c0d8;
  --sidebar-bg: #dcdce8;
  --sidebar-hover: rgba(108,92,231,.1);
  --sidebar-active: rgba(108,92,231,.18);
  --navbar-bg: rgba(240,240,248,.85);
  --badge-bg: rgba(108,92,231,.12);
  --table-stripe: rgba(0,0,0,.02);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: .875rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background var(--oto-transition), color var(--oto-transition);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 { color: var(--text-heading); font-weight: 600; }

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

::selection { background: rgba(var(--oto-primary-rgb), .3); }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }

/* ============================================================
   LAYOUT
   ============================================================ */
.oto-layout {
  display: flex;
  min-height: 100vh;
}

.oto-sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--oto-sidebar-w);
  height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 1040;
  transition: width var(--oto-transition), transform var(--oto-transition);
  overflow-x: hidden;
  overflow-y: auto;
}

.oto-sidebar.collapsed {
  width: var(--oto-sidebar-collapsed-w);
}

.oto-sidebar.collapsed .nav-text,
.oto-sidebar.collapsed .sidebar-brand-text,
.oto-sidebar.collapsed .sidebar-section-title { display: none; }

.oto-main {
  flex: 1;
  margin-left: var(--oto-sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left var(--oto-transition);
}

.oto-sidebar.collapsed ~ .oto-main {
  margin-left: var(--oto-sidebar-collapsed-w);
}

.oto-content {
  flex: 1;
  padding: 1.5rem;
  padding-top: calc(var(--oto-navbar-h) + 1.5rem);
}

/* ---- Sidebar internals ---- */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
  white-space: nowrap;
}

.sidebar-brand .brand-icon {
  width: 32px; height: 32px;
  flex-shrink: 0;
  fill: var(--oto-primary);
}

.sidebar-section-title {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  padding: 1.25rem 1.25rem .5rem;
  white-space: nowrap;
}

.sidebar-nav { list-style: none; padding: 0; margin: 0; }

.sidebar-nav .nav-item { margin: 2px 8px; }

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 1rem;
  border-radius: var(--oto-radius-sm);
  color: var(--text-muted);
  font-weight: 500;
  font-size: .8rem;
  white-space: nowrap;
  transition: all var(--oto-transition);
}

.sidebar-nav .nav-link:hover {
  background: var(--sidebar-hover);
  color: var(--text);
}

.sidebar-nav .nav-link.active {
  background: var(--sidebar-active);
  color: var(--oto-primary);
  box-shadow: var(--shadow-neu-sm);
}

.sidebar-nav .nav-link i {
  font-size: 1.15rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-toggle-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: .75rem;
  cursor: pointer;
  margin-top: auto;
  text-align: center;
  transition: color var(--oto-transition);
}

.sidebar-toggle-btn:hover { color: var(--oto-primary); }

/* ============================================================
   NAVBAR
   ============================================================ */
.oto-navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: var(--oto-sidebar-w);
  height: var(--oto-navbar-h);
  background: var(--navbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 1030;
  transition: left var(--oto-transition);
}

.oto-sidebar.collapsed ~ .oto-main .oto-navbar {
  left: var(--oto-sidebar-collapsed-w);
}

.navbar-left { display: flex; align-items: center; gap: 1rem; }
.navbar-right { display: flex; align-items: center; gap: 1rem; }

.navbar-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-heading);
}

/* Theme toggle */
.theme-toggle {
  position: relative;
  width: 48px; height: 26px;
  border-radius: 13px;
  background: var(--bg-card);
  box-shadow: var(--shadow-neu-in);
  border: none;
  cursor: pointer;
  padding: 0;
}

.theme-toggle .toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--oto-primary);
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
  transition: transform var(--oto-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  color: #fff;
}

[data-theme="light"] .theme-toggle .toggle-knob {
  transform: translateX(22px);
}

/* Notification bell */
.navbar-bell {
  position: relative;
  background: none; border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: .25rem;
  transition: color var(--oto-transition);
}

.navbar-bell:hover { color: var(--oto-primary); }

.navbar-bell .badge-dot {
  position: absolute;
  top: 0; right: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--oto-danger);
  border: 2px solid var(--navbar-bg);
}

/* User dropdown */
.navbar-user {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .75rem;
  border-radius: var(--oto-radius-sm);
  background: var(--bg-card);
  box-shadow: var(--shadow-neu-sm);
  cursor: pointer;
  transition: box-shadow var(--oto-transition);
}

.navbar-user:hover { box-shadow: var(--shadow-neu-out); }

.navbar-user .user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--oto-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: .75rem;
}

.navbar-user .user-name {
  font-size: .8rem;
  font-weight: 500;
  color: var(--text);
}

/* ============================================================
   NEUMORPHIC CARDS
   ============================================================ */
.card-neu {
  background: var(--bg-card);
  border-radius: var(--oto-radius);
  box-shadow: var(--shadow-neu-out);
  border: 1px solid var(--border);
  padding: 1.25rem;
  transition: box-shadow var(--oto-transition), background var(--oto-transition);
}

.card-neu:hover {
  box-shadow: var(--shadow-neu-out), 0 0 0 1px rgba(var(--oto-primary-rgb), .15);
}

.card-neu-sm {
  background: var(--bg-card);
  border-radius: var(--oto-radius-sm);
  box-shadow: var(--shadow-neu-sm);
  border: 1px solid var(--border);
  padding: 1rem;
  transition: box-shadow var(--oto-transition), background var(--oto-transition);
}

.card-neu-flat {
  background: var(--bg-card);
  border-radius: var(--oto-radius);
  border: 1px solid var(--border);
  padding: 1.25rem;
}

.card-neu-inset {
  background: var(--bg-surface);
  border-radius: var(--oto-radius-sm);
  box-shadow: var(--shadow-neu-in);
  padding: 1rem;
}

/* Stat cards (dashboard summary) */
.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-card .stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  flex-shrink: 0;
}

.stat-card .stat-icon.bg-primary { background: var(--oto-primary); }
.stat-card .stat-icon.bg-success { background: var(--oto-success); }
.stat-card .stat-icon.bg-danger  { background: var(--oto-danger); }
.stat-card .stat-icon.bg-warning { background: var(--oto-warning); color: #1a1a2e; }
.stat-card .stat-icon.bg-info    { background: var(--oto-info); }

.stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.2;
}

.stat-card .stat-label {
  font-size: .75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-neu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .5rem 1.25rem;
  border-radius: var(--oto-radius-sm);
  font-weight: 600;
  font-size: .8rem;
  border: none;
  cursor: pointer;
  transition: all var(--oto-transition);
  box-shadow: var(--shadow-neu-sm);
  background: var(--bg-card);
  color: var(--text);
}

.btn-neu:hover {
  box-shadow: var(--shadow-neu-out);
  transform: translateY(-1px);
}

.btn-neu:active {
  box-shadow: var(--shadow-neu-in);
  transform: translateY(0);
}

.btn-neu-primary {
  background: var(--oto-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(var(--oto-primary-rgb), .3);
}

.btn-neu-primary:hover {
  background: var(--oto-primary-hover);
  box-shadow: 0 6px 16px rgba(var(--oto-primary-rgb), .4);
  color: #fff;
}

.btn-neu-success {
  background: var(--oto-success);
  color: #fff;
  box-shadow: 0 4px 12px rgba(var(--oto-success-rgb), .3);
}

.btn-neu-danger {
  background: var(--oto-danger);
  color: #fff;
  box-shadow: 0 4px 12px rgba(var(--oto-danger-rgb), .3);
}

.btn-neu-sm { padding: .35rem .85rem; font-size: .75rem; }

.btn-neu-icon {
  width: 36px; height: 36px;
  padding: 0;
  border-radius: 10px;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-neu {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--oto-radius-sm);
  padding: .55rem 1rem;
  color: var(--text);
  font-size: .85rem;
  width: 100%;
  transition: all var(--oto-transition);
  box-shadow: var(--shadow-neu-in);
}

.form-neu:focus {
  outline: none;
  border-color: var(--oto-primary);
  box-shadow: var(--shadow-neu-in), 0 0 0 3px rgba(var(--oto-primary-rgb), .15);
}

.form-neu::placeholder { color: var(--text-muted); }

select.form-neu {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238888a8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  padding-right: 2.25rem;
}

label.form-label-neu {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: .35rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ============================================================
   TABLES
   ============================================================ */
.table-neu {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .82rem;
}

.table-neu thead th {
  background: var(--bg-surface);
  color: var(--text-muted);
  font-weight: 600;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1;
}

.table-neu tbody td {
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.table-neu tbody tr:nth-child(even) {
  background: var(--table-stripe);
}

.table-neu tbody tr:hover {
  background: var(--sidebar-hover);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge-neu {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .65rem;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 600;
}

.badge-success { background: rgba(var(--oto-success-rgb), .15); color: var(--oto-success); }
.badge-danger  { background: rgba(var(--oto-danger-rgb), .15);  color: var(--oto-danger); }
.badge-warning { background: rgba(var(--oto-warning-rgb), .15); color: var(--oto-warning); }
.badge-primary { background: rgba(var(--oto-primary-rgb), .15); color: var(--oto-primary); }
.badge-info    { background: rgba(var(--oto-info-rgb), .15);    color: var(--oto-info); }

/* Small dot indicator */
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.running  { background: var(--oto-success); box-shadow: 0 0 6px var(--oto-success); }
.status-dot.idle     { background: var(--text-muted); }
.status-dot.paused   { background: var(--oto-warning); }
.status-dot.error    { background: var(--oto-danger); box-shadow: 0 0 6px var(--oto-danger); }

/* ============================================================
   TOASTS / ALERTS
   ============================================================ */
.oto-alert {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1.25rem;
  border-radius: var(--oto-radius-sm);
  font-size: .82rem;
  font-weight: 500;
  margin-bottom: .75rem;
  animation: slideIn .3s ease;
}

.oto-alert-success { background: rgba(var(--oto-success-rgb), .12); color: var(--oto-success); border-left: 3px solid var(--oto-success); }
.oto-alert-danger  { background: rgba(var(--oto-danger-rgb), .12);  color: var(--oto-danger);  border-left: 3px solid var(--oto-danger); }
.oto-alert-warning { background: rgba(var(--oto-warning-rgb), .12); color: var(--oto-warning); border-left: 3px solid var(--oto-warning); }
.oto-alert-info    { background: rgba(var(--oto-info-rgb), .12);    color: var(--oto-info);    border-left: 3px solid var(--oto-info); }

.oto-alert .alert-close {
  margin-left: auto;
  background: none; border: none;
  color: inherit;
  cursor: pointer;
  opacity: .6;
  font-size: 1.1rem;
}

.oto-alert .alert-close:hover { opacity: 1; }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.oto-footer {
  height: var(--oto-footer-h);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding: 0 1.5rem;
}

/* ============================================================
   BOTTOM NAV (Mobile)
   ============================================================ */
.oto-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--oto-bottom-nav-h);
  background: var(--sidebar-bg);
  border-top: 1px solid var(--border);
  z-index: 1040;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.oto-bottom-nav .bottom-nav-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.oto-bottom-nav .bottom-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
  font-size: .62rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--oto-transition);
}

.oto-bottom-nav .bottom-nav-link i { font-size: 1.2rem; }

.oto-bottom-nav .bottom-nav-link.active {
  color: var(--oto-primary);
}

/* ============================================================
   PNL COLORS
   ============================================================ */
.pnl-positive { color: var(--oto-success); }
.pnl-negative { color: var(--oto-danger); }
.pnl-zero     { color: var(--text-muted); }

/* ============================================================
   APEXCHARTS OVERRIDES
   ============================================================ */
.apexcharts-tooltip,
.apexcharts-xaxistooltip {
  background: var(--bg-card) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
  border-radius: var(--oto-radius-sm) !important;
  box-shadow: var(--shadow-neu-sm) !important;
}

.apexcharts-gridline { stroke: var(--border); }

/* ============================================================
   UTILITIES
   ============================================================ */
.gap-grid  { display: grid; gap: 1.25rem; }
.cols-2    { grid-template-columns: repeat(2, 1fr); }
.cols-3    { grid-template-columns: repeat(3, 1fr); }
.cols-4    { grid-template-columns: repeat(4, 1fr); }

.text-primary { color: var(--oto-primary) !important; }
.text-success { color: var(--oto-success) !important; }
.text-danger  { color: var(--oto-danger) !important; }
.text-warning { color: var(--oto-warning) !important; }
.text-muted   { color: var(--text-muted) !important; }

.ws-live-value { transition: color .3s ease; }
.ws-flash { animation: wsFlash .6s ease; }

@keyframes wsFlash {
  0%, 100% { opacity: 1; }
  50%      { opacity: .5; }
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  text-align: center;
}

.empty-state i { font-size: 2.5rem; margin-bottom: .75rem; opacity: .5; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
  .oto-sidebar {
    transform: translateX(-100%);
    width: var(--oto-sidebar-w);
  }

  .oto-sidebar.mobile-open {
    transform: translateX(0);
  }

  .oto-main {
    margin-left: 0 !important;
  }

  .oto-navbar {
    left: 0 !important;
  }

  .oto-content {
    padding-bottom: calc(var(--oto-bottom-nav-h) + 1rem);
  }

  .oto-bottom-nav { display: block; }

  .cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .oto-content { padding: 1rem; padding-top: calc(var(--oto-navbar-h) + 1rem); }
}

/* Sidebar backdrop on mobile */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1035;
}

.sidebar-backdrop.show { display: block; }

/* ============================================================
   LOADING SKELETON
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-card) 50%, var(--bg-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--oto-radius-sm);
}

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

/* ============================================================
   TABS
   ============================================================ */
.tabs-neu {
  display: flex;
  gap: .25rem;
  background: var(--bg-surface);
  border-radius: var(--oto-radius-sm);
  padding: 4px;
  box-shadow: var(--shadow-neu-in);
}

.tabs-neu .tab-btn {
  flex: 1;
  padding: .5rem 1rem;
  border: none;
  background: transparent;
  border-radius: calc(var(--oto-radius-sm) - 2px);
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--oto-transition);
}

.tabs-neu .tab-btn.active {
  background: var(--bg-card);
  color: var(--oto-primary);
  box-shadow: var(--shadow-neu-sm);
}

.tabs-neu .tab-btn:hover:not(.active) { color: var(--text); }

/* ==============================================================
   ADMIN UTILITIES
   ============================================================== */

.card-neu-sm {
  background: var(--bg-card);
  box-shadow: var(--shadow-neu-sm);
  border-radius: var(--oto-radius-sm);
  padding: 1rem 1.25rem;
}

.card-neu-inset {
  background: var(--bg-inset, var(--bg));
  border-radius: var(--oto-radius-sm);
  padding: 1rem;
}

.btn-neu-icon {
  padding: .35rem .5rem !important;
  min-width: unset !important;
}

.btn-neu-danger {
  background: var(--oto-danger) !important;
  color: #fff !important;
}

.btn-neu-success {
  background: var(--oto-success) !important;
  color: #fff !important;
}

.gap-grid {
  display: grid;
  gap: 1.25rem;
}

.cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 991.98px) { .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .cols-4 { grid-template-columns: 1fr; } }
