/**
 * ADFILM BY ORCUS MEDIA — Futuristic Creative Studio Design System
 * Aesthetic: Creative Production Studio × Future Tech × Minimal Precision
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-body);
  
  --sidebar-w: 256px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  
  /* Brand Signature: Creative Studio Crimson / Neon Terracotta */
  --brand: #FF4A26;
  --brand-hover: #E23614;
  --brand-glow: rgba(255, 74, 38, 0.25);
  --brand-soft: rgba(255, 74, 38, 0.10);
  --brand-border: rgba(255, 74, 38, 0.35);

  /* Status Accents */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-info: #06B6D4;
  --color-danger: #EF4444;
  --color-purple: #8B5CF6;
}

/* ================= DARK MODE (Signature Studio Experience) ================= */
[data-bs-theme="dark"] {
  --bg-app: #080A0E;
  --bg-panel: rgba(18, 23, 31, 0.75);
  --bg-panel-solid: #12171F;
  --bg-panel-hover: #19202B;
  --bg-side: #0B0E14;
  --bg-top: rgba(11, 14, 20, 0.85);
  --bg-input: rgba(14, 18, 25, 0.9);
  
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 74, 38, 0.5);
  --border-light: rgba(255, 255, 255, 0.04);
  
  --ink: #FFFFFF;
  --ink-secondary: #94A3B8;
  --muted: #64748B;
  --side-ink: #E2E8F0;
  --side-ink-dim: #64748B;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 0 1px 1px var(--border);
  --shadow-glow: 0 0 25px rgba(255, 74, 38, 0.15);
  
  --glass-blur: blur(16px);
  --bs-body-bg: var(--bg-app);
  --bs-body-color: #F1F5F9;
}

/* ================= LIGHT MODE (Minimalist Alabaster) ================= */
[data-bs-theme="light"] {
  --bg-app: #F8FAFC;
  --bg-panel: rgba(255, 255, 255, 0.85);
  --bg-panel-solid: #FFFFFF;
  --bg-panel-hover: #F1F5F9;
  --bg-side: #0F172A;
  --bg-top: rgba(255, 255, 255, 0.9);
  --bg-input: #FFFFFF;
  
  --border: rgba(15, 23, 42, 0.08);
  --border-focus: rgba(255, 74, 38, 0.4);
  --border-light: rgba(15, 23, 42, 0.04);
  
  --ink: #0F172A;
  --ink-secondary: #475569;
  --muted: #64748B;
  --side-ink: #F8FAFC;
  --side-ink-dim: #94A3B8;
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 10px 25px -8px rgba(15, 23, 42, 0.06), 0 0 1px 1px var(--border);
  --shadow-glow: 0 4px 15px rgba(255, 74, 38, 0.08);
  
  --glass-blur: blur(12px);
  --bs-body-bg: var(--bg-app);
  --bs-body-color: #0F172A;
}

/* ---------- Global Reset & Core Typography ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
  background: var(--bg-app);
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6, .page-head h1, .brand-text, .kpi .n {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  font-weight: 700;
}

a { color: inherit; text-decoration: none; transition: color 0.15s ease, opacity 0.15s ease; }
a:hover { color: var(--brand); }

/* ---------- Auth / Login Screen ---------- */
.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: 
    radial-gradient(circle at 80% 20%, var(--brand-glow), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.08), transparent 40%),
    var(--bg-app);
  position: relative;
  overflow: hidden;
}
.auth-wrap {
  width: 100%;
  max-width: 420px;
  padding: 1.5rem;
  position: relative;
  z-index: 2;
  animation: authFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.auth-card {
  background: var(--bg-panel);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow-card), 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}
.auth-brand .mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #D8310E);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px var(--brand-glow);
}
.auth-brand img.custom-logo {
  max-height: 44px;
  max-width: 180px;
  object-fit: contain;
}
.auth-brand h1 {
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.15;
}
.auth-brand small {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- App Shell & Sidebar ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-side);
  color: var(--side-ink);
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  z-index: 40;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), #D8310E);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 0.95rem;
  box-shadow: 0 2px 10px var(--brand-glow);
  flex-shrink: 0;
}
.sidebar-brand img.custom-logo {
  max-height: 32px;
  max-width: 170px;
  object-fit: contain;
}
.brand-text {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}
.sidebar-nav {
  padding: 0.85rem 0.65rem;
  overflow-y: auto;
  flex: 1;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--side-ink-dim);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 3px;
  position: relative;
  transition: all 0.15s ease;
}
.nav-item i {
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
  transition: transform 0.15s ease;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}
.nav-item:hover i { transform: translateX(2px); }
.nav-item.active {
  background: linear-gradient(135deg, var(--brand), #D8310E);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 4px 14px var(--brand-glow);
}

/* ---------- Topbar & Header ---------- */
.app-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.topbar {
  height: 62px;
  background: var(--bg-top);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 30;
}
.topbar-search {
  position: relative;
  flex: 1;
  max-width: 440px;
}
.topbar-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.95rem;
  pointer-events: none;
}
.topbar-search input {
  padding-left: 36px !important;
  background: var(--bg-input) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  font-size: 0.875rem !important;
  height: 38px;
  transition: all 0.2s ease;
}
.topbar-search input:focus {
  border-color: var(--border-focus) !important;
  box-shadow: 0 0 0 3px var(--brand-glow) !important;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}
.btn-ghost {
  color: var(--ink-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  transition: all 0.15s ease;
}
.btn-ghost:hover {
  background: var(--bg-panel-hover);
  color: var(--ink);
  border-color: var(--border);
}
.notif-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  background: var(--brand);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  box-shadow: 0 0 8px var(--brand-glow);
}
.notif-menu {
  width: 340px;
  padding: 0;
  background: var(--bg-panel-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.notif-head {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
}
.notif-list { max-height: 360px; overflow-y: auto; }
.notif-row {
  position: relative;
  display: block;
  padding: 0.75rem 1rem 0.75rem 1.6rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.notif-row:hover { background: var(--bg-panel-hover); color: inherit; }
.notif-row.unread { background: var(--brand-soft); }
.nr-dot {
  position: absolute;
  left: 0.7rem;
  top: 1rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 6px var(--brand);
}
.nr-title { font-size: 0.83rem; font-weight: 600; line-height: 1.25; }
.nr-msg { font-size: 0.76rem; color: var(--muted); margin-top: 3px; }
.nr-time { font-size: 0.7rem; color: var(--muted); margin-top: 3px; }

/* ---------- Main Content Layout & Footer ---------- */
.content {
  padding: 1.75rem 2rem;
  max-width: 1320px;
  width: 100%;
  flex: 1;
}
.app-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.76rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.app-footer .brand-tag {
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- Page Headings & Visual Hierarchy ---------- */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.page-head h1 {
  font-size: 1.6rem;
  margin: 0;
  line-height: 1.15;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-bs-theme="light"] .page-head h1 {
  background: none;
  -webkit-text-fill-color: initial;
  color: var(--ink);
}
.page-head .sub {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 0.2rem;
}

/* ---------- Futuristic Cards & Glassmorphic Surfaces ---------- */
.card {
  background: var(--bg-panel);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.card-pad { padding: 1.35rem 1.45rem; }
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  border-color: var(--border-focus);
}

/* ---------- Futuristic KPI Stats Grid ---------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}
.kpi {
  background: var(--bg-panel);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}
.kpi::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0.6;
}
.kpi:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 74, 38, 0.3);
  box-shadow: var(--shadow-card), 0 0 20px rgba(255, 74, 38, 0.1);
}
.kpi .n {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.kpi .l {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

/* ---------- Modern Tables & Row States ---------- */
.table-responsive {
  border-radius: var(--radius);
}
.table {
  --bs-table-bg: transparent;
  margin: 0;
  border-color: var(--border);
}
.table thead th {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  padding: 0.85rem 1rem;
}
[data-bs-theme="dark"] .table thead th {
  background: rgba(255, 255, 255, 0.015);
}
.table td, .table th {
  border-color: var(--border);
  vertical-align: middle;
  padding: 0.85rem 1rem;
}
.table tbody tr {
  transition: background 0.15s ease;
}
.table tbody tr:hover {
  background: var(--bg-panel-hover);
}

/* ---------- Distinctive Status Badges & Pills ---------- */
.badge {
  font-weight: 600;
  font-size: 0.74rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid transparent;
}
.badge.text-bg-primary {
  background: rgba(255, 74, 38, 0.15) !important;
  color: #FF5A36 !important;
  border-color: rgba(255, 74, 38, 0.3);
}
.badge.text-bg-success {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #10B981 !important;
  border-color: rgba(16, 185, 129, 0.3);
}
.badge.text-bg-warning {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #F59E0B !important;
  border-color: rgba(245, 158, 11, 0.3);
}
.badge.text-bg-danger {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #EF4444 !important;
  border-color: rgba(239, 68, 68, 0.3);
}
.badge.text-bg-info {
  background: rgba(6, 182, 212, 0.15) !important;
  color: #06B6D4 !important;
  border-color: rgba(6, 182, 212, 0.3);
}
.badge.text-bg-secondary {
  background: rgba(100, 116, 139, 0.15) !important;
  color: #94A3B8 !important;
  border-color: rgba(100, 116, 139, 0.25);
}
.badge.text-bg-light {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--ink-secondary) !important;
  border-color: var(--border);
}

/* ---------- Buttons & Action Triggers ---------- */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.95rem;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.btn-sm {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
}
.btn-brand {
  background: linear-gradient(135deg, var(--brand), #D8310E);
  border: 1px solid var(--brand);
  color: #FFFFFF !important;
  box-shadow: 0 2px 10px var(--brand-glow);
}
.btn-brand:hover {
  background: linear-gradient(135deg, #FF5E3D, var(--brand));
  border-color: var(--brand-hover);
  box-shadow: 0 4px 18px var(--brand-glow);
  transform: translateY(-1px);
}
.btn-brand:active {
  transform: translateY(0);
}
.btn-outline-secondary {
  border-color: var(--border);
  color: var(--ink-secondary);
  background: transparent;
}
.btn-outline-secondary:hover {
  background: var(--bg-panel-hover);
  border-color: var(--ink-secondary);
  color: var(--ink);
}
.btn-outline-primary {
  border-color: var(--brand-border);
  color: var(--brand);
  background: var(--brand-soft);
}
.btn-outline-primary:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px var(--brand-glow);
}
.btn-outline-danger {
  border-color: rgba(239, 68, 68, 0.3);
  color: #EF4444;
  background: rgba(239, 68, 68, 0.05);
}
.btn-outline-danger:hover {
  background: #EF4444;
  border-color: #EF4444;
  color: #FFFFFF;
}

/* ---------- Forms & Inputs ---------- */
.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 0.35rem;
  letter-spacing: 0.01em;
}
.form-control, .form-select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.9rem;
  padding: 0.55rem 0.85rem;
  transition: all 0.15s ease;
}
.form-control-sm, .form-select-sm {
  font-size: 0.82rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
}
.form-control:focus, .form-select:focus {
  background: var(--bg-input);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--brand-glow);
  color: var(--ink);
}
.form-text {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* Nav Pills / Tabs */
.nav-pills .nav-link {
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.15s ease;
  border: 1px solid transparent;
}
.nav-pills .nav-link:hover {
  color: var(--ink);
  background: var(--bg-panel-hover);
}
.nav-pills .nav-link.active {
  background: var(--bg-panel-solid);
  color: var(--brand);
  border-color: var(--brand-border);
  box-shadow: 0 2px 8px var(--shadow-sm);
}

/* Progress bars */
.progress {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
[data-bs-theme="dark"] .progress {
  background: rgba(255, 255, 255, 0.08);
}
.progress-bar {
  border-radius: 999px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Timeline */
.tl { position: relative; padding-left: 16px; }
.tl::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--border);
}
.tl-item { position: relative; padding: 0 0 0.85rem 0; }
.tl-dot {
  position: absolute;
  left: -16px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 2px var(--bg-panel-solid), 0 0 8px var(--brand-glow);
}
.tl-body { line-height: 1.35; }

/* Toast Notifications */
.toast-wrap {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 360px;
}
.toast-note {
  background: var(--bg-panel-solid);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px var(--border);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-note.show { opacity: 1; transform: translateY(0); }
.tn-body { flex: 1; min-width: 0; }
.tn-title { font-size: 0.85rem; font-weight: 700; line-height: 1.25; }
.tn-msg { font-size: 0.78rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.tn-x { background: none; border: 0; color: var(--muted); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.tn-x:hover { color: var(--ink); }

/* Modal Styling */
.modal-content {
  background: var(--bg-panel-solid);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}
.modal-header, .modal-footer {
  border-color: var(--border);
}

/* Calendar Grid */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-head {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 0.5rem 0;
}
.cal-cell {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: 105px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.15s ease;
}
.cal-cell:hover {
  background: var(--bg-panel-hover);
  border-color: rgba(255, 74, 38, 0.25);
}
.cal-cell.today {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 12px var(--brand-glow);
}
.cal-cell.muted {
  opacity: 0.3;
  background: transparent;
  pointer-events: none;
}
.cal-day {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-secondary);
}
.cal-cell.today .cal-day {
  color: var(--brand);
}
.cal-add {
  font-size: 0.85rem;
  line-height: 1;
  color: var(--muted);
  text-decoration: none;
  padding: 0 4px;
  border-radius: 4px;
}
.cal-add:hover {
  color: var(--brand);
  background: var(--brand-soft);
}
.cal-ev {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-left: 3px solid var(--color-info);
  border-radius: 4px;
  padding: 0.3rem 0.4rem;
  font-size: 0.74rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cal-ev:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.cal-ev.posted {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  border-left-color: var(--color-success);
}
.cal-ev-name { font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev-meta { font-size: 0.68rem; color: var(--muted); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend-chip {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--color-info);
  vertical-align: middle;
}
.legend-chip.posted {
  background: var(--color-success);
}

/* Empty state */
.empty {
  text-align: center;
  color: var(--muted);
  padding: 3rem 1.5rem;
}
.empty i {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 0.65rem;
  opacity: 0.4;
  color: var(--brand);
}

/* ==========================================================================
   Premium Futuristic Creative Agency Profile Styling
   ========================================================================== */
.profile-hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(26, 26, 36, 0.95), rgba(15, 15, 22, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 1.75rem;
  overflow: hidden;
}
.profile-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand, #FF4D00), #7928CA, #0070F3);
}
.profile-avatar-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}
.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.profile-avatar-initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--brand, #FF4D00), #7928CA);
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.profile-status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #111116;
}

.profile-card {
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.profile-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-md);
}

.profile-card-leave {
  border-left: 3px solid #FF4D00;
}
.profile-card-wfh {
  border-left: 3px solid #0070F3;
}
.profile-card-perf {
  border-left: 3px solid #7928CA;
}

.profile-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.6rem;
  text-align: center;
  transition: background 0.15s ease;
}
.profile-stat-box:hover {
  background: rgba(255, 255, 255, 0.05);
}
.profile-stat-num {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.1;
  font-family: inherit;
  margin-top: 0.15rem;
}
.profile-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
}

.conversion-hub-banner {
  background: linear-gradient(135deg, rgba(0, 112, 243, 0.12), rgba(121, 40, 202, 0.14));
  border: 1px solid rgba(0, 112, 243, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}
.conversion-hub-banner::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(0, 112, 243, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.pill-metric {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Responsive Mobile Rules */
@media (max-width: 992px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .app-main { margin-left: 0; }
  .content { padding: 1.25rem 1rem; }
  .topbar { padding: 0 1rem; }
}
@media (max-width: 520px) {
  .toast-wrap { left: 12px; right: 12px; max-width: none; }
  .page-head h1 { font-size: 1.35rem; }
  .profile-hero-card { padding: 1.25rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
