/* ============================================================
   M-KINO ADMIN · LIGHT PREMIUM THEME
   Enterprise OTT Dashboard · pastel · glassmorphism · SaaS
   ============================================================ */

:root {
  /* Backgrounds */
  --bg-0:        #F4F7FC;
  --bg-1:        #EEF2F9;
  --bg-2:        #F9FAFD;
  --surface:     #FFFFFF;
  --surface-soft:rgba(255,255,255,0.72);
  --surface-blur:rgba(255,255,255,0.85);

  /* Sidebar */
  --sidebar-bg:        #FFFFFF;
  --sidebar-shadow:    0 4px 32px rgba(15,23,42,0.06);
  --sidebar-item:      #64748B;
  --sidebar-item-hover:#0F172A;
  --sidebar-active-bg: linear-gradient(135deg,#7B61FF 0%,#00AFFF 100%);
  --sidebar-active-tx: #FFFFFF;
  --sidebar-active-glow: 0 8px 20px rgba(123,97,255,0.35);

  /* Accent */
  --c-primary:   #7B61FF;
  --c-blue:      #00AFFF;
  --c-cyan:      #00D1FF;
  --c-purple:    #C100FF;
  --c-pink:      #FF2E63;
  --c-orange:    #FF7A00;
  --c-red:       #FF4D6D;
  --c-success:   #10B981;
  --c-warning:   #F59E0B;
  --c-danger:    #EF4444;

  /* Pastel icon backgrounds */
  --p-blue:   #DBEAFE;
  --p-green:  #D1FAE5;
  --p-purple: #EDE9FE;
  --p-orange: #FED7AA;
  --p-pink:   #FCE7F3;
  --p-cyan:   #CFFAFE;
  --p-red:    #FECACA;
  --p-yellow: #FEF3C7;

  /* Text */
  --t-1: #0F172A;
  --t-2: #334155;
  --t-3: #64748B;
  --t-4: #94A3B8;
  --t-5: #CBD5E1;

  /* Borders */
  --border:        #E5E7EB;
  --border-soft:   #F1F5F9;
  --border-glass:  rgba(15,23,42,0.06);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.04);
  --shadow:    0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 4px 6px rgba(15,23,42,0.05), 0 2px 4px rgba(15,23,42,0.04);
  --shadow-lg: 0 10px 20px rgba(15,23,42,0.07), 0 4px 6px rgba(15,23,42,0.05);
  --shadow-xl: 0 20px 40px rgba(15,23,42,0.08), 0 10px 14px rgba(15,23,42,0.05);
  --shadow-glow: 0 8px 24px rgba(123,97,255,0.20), 0 4px 12px rgba(0,175,255,0.15);

  /* Gradients */
  --g-primary:  linear-gradient(135deg,#7B61FF 0%,#00AFFF 100%);
  --g-cinematic: linear-gradient(135deg,#7B61FF 0%,#C100FF 50%,#00AFFF 100%);
  --g-revenue:  linear-gradient(135deg,#10B981 0%,#00D1FF 100%);
  --g-premium:  linear-gradient(135deg,#FF7A00 0%,#FFB800 100%);
  --g-danger:   linear-gradient(135deg,#FF4D6D 0%,#C100FF 100%);
  --g-page:     linear-gradient(135deg,#F4F7FC 0%,#EEF2F9 50%,#F9FAFD 100%);

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl:24px;
  --r-full:9999px;

  /* Spacing */
  --s-1:4px;--s-2:8px;--s-3:12px;--s-4:16px;--s-5:20px;--s-6:24px;
  --s-8:32px;--s-10:40px;--s-12:48px;

  /* Type */
  --font-sans: "Inter","SF Pro Display","Poppins",system-ui,-apple-system,sans-serif;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --d-fast: 140ms;
  --d-base: 240ms;
  --d-slow: 420ms;

  /* z */
  --z-sticky: 40;
  --z-dropdown: 60;
  --z-modal: 90;
  --z-toast: 110;
}

/* Reset */
*,*::before,*::after { box-sizing: border-box; }
html,body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg-0);
  background-image:
    radial-gradient(circle at 10% 0%, rgba(123,97,255,0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 0%, rgba(0,175,255,0.05) 0%, transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(193,0,255,0.04) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--t-1);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
button, input, select, textarea {
  font: inherit; color: inherit; border: none; outline: none; background: none;
}
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul,ol { list-style: none; margin: 0; padding: 0; }
img,svg,video { display: block; max-width: 100%; }
h1,h2,h3,h4,h5,h6 { margin: 0; font-weight: 700; line-height: 1.2; }
p { margin: 0; }

/* Selection */
::selection { background: rgba(123,97,255,0.20); color: var(--t-1); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--t-5); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--t-4); }

/* ============================================================
   LAYOUT
   ============================================================ */
.admin-shell {
  display: grid;
  grid-template-columns: 264px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  position: sticky; top: 0;
  height: 100vh; overflow-y: auto;
  background: var(--sidebar-bg);
  box-shadow: var(--sidebar-shadow);
  padding: 24px 14px 14px;
  display: flex; flex-direction: column;
  z-index: var(--z-sticky);
}
.admin-main {
  display: flex; flex-direction: column;
  min-width: 0;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sb-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 8px 22px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
  min-height: 64px;
}
.sb-brand img {
  height: 44px; width: auto; max-width: 170px;
  object-fit: contain;
  flex-shrink: 0;
}
.sb-brand .name {
  font-weight: 800; font-size: 16px;
  letter-spacing: -0.01em;
}
.sb-brand .sub {
  font-size: 11px; color: var(--t-3);
  text-transform: uppercase; letter-spacing: .08em;
  margin-top: 2px;
}

.sb-group-title {
  font-size: 11px; color: var(--t-4);
  text-transform: uppercase; letter-spacing: .1em;
  padding: 12px 14px 8px;
  font-weight: 600;
}
.sb-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  color: var(--sidebar-item);
  font-weight: 500; font-size: 14px;
  transition: all var(--d-base) var(--ease);
  position: relative;
  margin: 2px 0;
}
.sb-link:hover {
  background: var(--bg-1);
  color: var(--sidebar-item-hover);
}
.sb-link .ico {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}
.sb-link.is-active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active-tx);
  box-shadow: var(--sidebar-active-glow);
}
.sb-link.is-active .ico { color: #fff; }
.sb-link .badge-mini {
  margin-left: auto;
  background: var(--c-danger);
  color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--r-full);
  min-width: 18px;
  text-align: center;
}
.sb-link.is-live {
  position: relative;
}
.sb-link.is-live::after {
  content: 'LIVE';
  margin-left: auto;
  background: linear-gradient(135deg,#FF2E63,#C100FF);
  color: #fff;
  font-size: 9px; font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--r-full);
  letter-spacing: .05em;
}

.sb-status-card {
  margin-top: auto;
  padding: 16px 14px;
  background: linear-gradient(180deg, #F9FAFD 0%, #EEF2F9 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
}
.sb-status-card .title {
  font-size: 10px; font-weight: 700;
  color: var(--t-4);
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 12px;
}
.sb-status-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0;
  font-size: 12px;
}
.sb-status-row .label { color: var(--t-3); flex: 1; }
.sb-status-row .spark { width: 50px; height: 12px; }
.sb-status-row .val { font-weight: 700; color: var(--t-1); }

/* ============================================================
   TOP HEADER
   ============================================================ */
.topbar {
  position: sticky; top: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border-soft);
  padding: 16px 28px;
  display: flex; align-items: center; gap: 18px;
  z-index: var(--z-sticky);
}
.topbar .burger {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  color: var(--t-2); font-size: 20px;
  transition: background var(--d-base);
}
.topbar .burger:hover { background: var(--bg-1); }

.search-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-full);
  padding: 8px 14px;
  width: 380px;
  transition: all var(--d-base);
}
.search-box:focus-within {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(123,97,255,0.10);
  border-color: var(--c-primary);
}
.search-box .icon { color: var(--t-4); }
.search-box input {
  flex: 1; background: none;
  font-size: 14px;
}
.search-box input::placeholder { color: var(--t-4); }
.search-box .kbd {
  font-size: 11px; color: var(--t-4);
  padding: 2px 8px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  font-family: inherit;
}

.topbar .grow { flex: 1; }
.topbar .status-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--p-green);
  border-radius: var(--r-full);
  font-size: 12px;
  color: #047857;
  font-weight: 600;
}
.topbar .status-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-success);
  box-shadow: 0 0 8px var(--c-success);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.1); }
}

.topbar .lang-switch {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: var(--bg-1);
  border-radius: var(--r-md);
  font-size: 13px;
  cursor: pointer;
  transition: background var(--d-base);
}
.topbar .lang-switch:hover { background: var(--bg-2); }
.topbar .lang-switch .arrow { color: var(--t-4); font-size: 10px; }

.topbar .icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  color: var(--t-2);
  position: relative;
  transition: background var(--d-base);
}
.topbar .icon-btn:hover { background: var(--bg-1); }
.topbar .icon-btn .badge-dot {
  position: absolute;
  top: 8px; right: 8px;
  min-width: 18px; height: 18px;
  background: var(--c-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--r-full);
  display: grid; place-items: center;
  padding: 0 4px;
  border: 2px solid #fff;
}

.topbar .profile {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 6px;
  background: var(--bg-1);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background var(--d-base);
}
.topbar .profile:hover { background: var(--bg-2); }
.topbar .profile .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--g-primary);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
}
.topbar .profile .info { line-height: 1.2; }
.topbar .profile .name { font-weight: 600; font-size: 13px; }
.topbar .profile .role { font-size: 11px; color: var(--t-3); }

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.page-wrap {
  padding: 28px;
  flex: 1;
  min-width: 0;
}
.page-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 26px;
  flex-wrap: wrap; gap: 14px;
}
.page-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--t-1);
  letter-spacing: -0.02em;
}
.page-subtitle {
  margin-top: 4px;
  color: var(--t-3);
  font-size: 14px;
}
.page-actions {
  display: flex; gap: 10px; align-items: center;
}

.date-range {
  display: flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 8px 14px;
  font-size: 13px;
  color: var(--t-2);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.date-range:hover { box-shadow: var(--shadow); }

/* ============================================================
   STAT CARDS (top of dashboard)
   ============================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
@media (max-width: 1400px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

.stat-card {
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  padding: 20px;
  transition: transform var(--d-base) var(--ease), box-shadow var(--d-base);
  position: relative;
  overflow: hidden;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.stat-card .icon-box {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.stat-card .label {
  color: var(--t-3);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}
.stat-card .value {
  font-size: 24px;
  font-weight: 700;
  color: var(--t-1);
  letter-spacing: -0.02em;
}
.stat-card .trend {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-success);
  display: flex; align-items: center; gap: 4px;
}
.stat-card .trend.is-neg { color: var(--c-danger); }
.stat-card .trend .arrow { font-size: 10px; }

/* Icon variants */
.icon-blue   { background: var(--p-blue);   color: #3B82F6; }
.icon-green  { background: var(--p-green);  color: #10B981; }
.icon-purple { background: var(--p-purple); color: #7B61FF; }
.icon-orange { background: var(--p-orange); color: #FF7A00; }
.icon-pink   { background: var(--p-pink);   color: #EC4899; }
.icon-cyan   { background: var(--p-cyan);   color: #06B6D4; }
.icon-red    { background: var(--p-red);    color: #EF4444; }
.icon-yellow { background: var(--p-yellow); color: #D97706; }

/* ============================================================
   CARDS (general containers)
   ============================================================ */
.card {
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  padding: 20px;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
  gap: 10px;
}
.card-title {
  font-size: 15px; font-weight: 700;
  color: var(--t-1);
}
.card-link {
  font-size: 13px;
  color: var(--c-primary);
  font-weight: 500;
}
.card-link:hover { text-decoration: underline; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--d-base) var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--g-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(123,97,255,0.30);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(123,97,255,0.35);
}
.btn-ghost {
  background: #fff;
  color: var(--t-2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  background: var(--bg-1);
  color: var(--t-1);
}
.btn-soft {
  background: var(--bg-1);
  color: var(--t-2);
}
.btn-soft:hover { background: var(--bg-2); color: var(--t-1); }
.btn-danger {
  background: linear-gradient(135deg,#FF4D6D,#C100FF);
  color: #fff;
}
.btn-danger:hover { box-shadow: 0 4px 14px rgba(255,77,109,0.30); }
.btn-success {
  background: linear-gradient(135deg,#10B981,#00D1FF);
  color: #fff;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}
.btn-icon {
  width: 36px; height: 36px;
  padding: 0;
  display: grid; place-items: center;
}
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-1);
  color: var(--t-2);
}
.badge-success { background: var(--p-green);  color: #047857; }
.badge-warn    { background: var(--p-yellow); color: #B45309; }
.badge-danger  { background: var(--p-red);    color: #B91C1C; }
.badge-info    { background: var(--p-blue);   color: #1E40AF; }
.badge-purple  { background: var(--p-purple); color: #6D28D9; }
.badge-pink    { background: var(--p-pink);   color: #BE185D; }
.badge-premium {
  background: linear-gradient(135deg,#FFB800,#FF7A00);
  color: #fff;
}
.badge-live {
  background: linear-gradient(135deg,#FF2E63,#C100FF);
  color: #fff;
  font-weight: 700;
  letter-spacing: .05em;
  font-size: 10px;
  text-transform: uppercase;
  animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,46,99,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(255,46,99,0); }
}

/* ============================================================
   INPUTS / FORMS
   ============================================================ */
.input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--t-1);
  transition: all var(--d-base);
  box-shadow: var(--shadow-sm);
}
.input::placeholder { color: var(--t-4); }
.input:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(123,97,255,0.12);
}
.input:disabled { background: var(--bg-1); opacity: .7; }

.label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--t-2);
  margin-bottom: 6px;
}
.help {
  font-size: 11px;
  color: var(--t-4);
  margin-top: 4px;
}

select.input {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%2364748B' d='M8 11L3 6h10z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  appearance: none;
}

/* Chip filter / toggle */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-full);
  background: var(--bg-1);
  color: var(--t-2);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all var(--d-base);
  cursor: pointer;
}
.chip:hover { background: var(--bg-2); }
.chip.is-active {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.chip input[type="checkbox"] { margin: 0; }

/* ============================================================
   TABLE
   ============================================================ */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.tbl th {
  text-align: left;
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--t-3);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}
.tbl td {
  padding: 14px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--t-1);
  vertical-align: middle;
}
.tbl tr:hover td {
  background: var(--bg-2);
}
.tbl tr:last-child td { border-bottom: none; }
.tbl-card {
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Avatar/circle in tables */
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--g-primary);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 600;
  font-size: 12px;
}
.avatar-sm { width: 24px; height: 24px; font-size: 10px; }
.avatar-lg { width: 56px; height: 56px; font-size: 20px; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.40);
  backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: grid; place-items: center;
  animation: fadeIn .2s var(--ease);
}
.modal {
  background: #fff;
  border-radius: var(--r-2xl);
  padding: 28px;
  width: min(560px, 92vw);
  box-shadow: var(--shadow-xl);
  animation: pop .3s var(--ease);
}
.modal h3 {
  font-size: 18px;
  margin-bottom: 16px;
}
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }
@keyframes pop { from{opacity:0;transform:scale(.96) translateY(8px);} to{opacity:1;transform:none;} }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: var(--z-toast);
  padding: 12px 18px;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  color: var(--t-1);
  animation: slideUp .3s var(--ease);
}
@keyframes slideUp { from{opacity:0;transform:translateY(20px);} to{opacity:1;transform:none;} }

/* ============================================================
   PROGRESS / SPINNER
   ============================================================ */
.progress {
  height: 6px;
  background: var(--bg-1);
  border-radius: var(--r-full);
  overflow: hidden;
}
.progress > div {
  height: 100%;
  background: var(--g-primary);
  border-radius: var(--r-full);
  transition: width .4s var(--ease);
}
.progress.is-green > div  { background: linear-gradient(90deg,#10B981,#00D1FF); }
.progress.is-orange > div { background: linear-gradient(90deg,#FF7A00,#FFB800); }
.progress.is-pink > div   { background: linear-gradient(90deg,#FF2E63,#C100FF); }

.spinner {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #7B61FF, #00AFFF, #C100FF, #7B61FF);
  mask: radial-gradient(circle at center, transparent 56%, #000 58%);
  -webkit-mask: radial-gradient(circle at center, transparent 56%, #000 58%);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   CIRCULAR PROGRESS (donut)
   ============================================================ */
.circ-progress {
  width: 90px; height: 90px;
  position: relative;
}
.circ-progress svg {
  transform: rotate(-90deg);
}
.circ-progress .val {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 20px;
  color: var(--t-1);
}

/* ============================================================
   ACTIVITY ITEMS / Live dots
   ============================================================ */
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-success);
  display: inline-block;
  box-shadow: 0 0 6px var(--c-success);
  animation: pulse 2s ease-in-out infinite;
}

.activity-row {
  display: grid;
  grid-template-columns: 80px 32px 1fr 2fr;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
}
.activity-row:last-child { border-bottom: none; }
.activity-row .time { color: var(--t-3); font-size: 12px; }

/* ============================================================
   ALERT
   ============================================================ */
.alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  margin-bottom: 10px;
}
.alert .icon {
  width: 32px; height: 32px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 16px;
}
.alert .body { flex: 1; }
.alert .body .title { font-weight: 600; }
.alert .body .meta { font-size: 11px; color: var(--t-3); margin-top: 2px; }
.alert.is-danger { background: var(--p-red);    }
.alert.is-danger .icon { background: #FECACA; color: #B91C1C; }
.alert.is-warn   { background: var(--p-yellow); }
.alert.is-warn .icon   { background: #FEF3C7; color: #B45309; }
.alert.is-info   { background: var(--p-blue);   }
.alert.is-info .icon   { background: #DBEAFE; color: #1E40AF; }

/* ============================================================
   UTIL
   ============================================================ */
.flex   { display: flex; }
.grid   { display: grid; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.justify-end     { justify-content: flex-end; }
.gap-1{gap:4px}.gap-2{gap:8px}.gap-3{gap:12px}.gap-4{gap:16px}.gap-6{gap:24px}
.flex-col { flex-direction: column; }
.hidden { display: none !important; }
.t-muted { color: var(--t-3); }
.t-dim   { color: var(--t-2); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.fw-700 { font-weight: 700; }
.fw-600 { font-weight: 600; }
.fs-12 { font-size: 12px; } .fs-13 { font-size: 13px; }
.fs-16 { font-size: 16px; } .fs-18 { font-size: 18px; }
.fs-22 { font-size: 22px; } .fs-26 { font-size: 26px; }
.t-grad {
  background: var(--g-primary);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Responsive */
@media (max-width: 1024px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .search-box { width: 200px; }
}
@media (max-width: 600px) {
  .page-wrap { padding: 16px; }
  .topbar { padding: 12px 16px; }
  .search-box { display: none; }
}
