/* ==========================================
   JuriADV — Premium Cinematographic Design
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg: #070810;
  --bg-2: #0B0D1A;
  --bg-card: #0D1226;
  --bg-card-2: #111830;
  --bg-glass: rgba(13, 18, 38, 0.7);
  --bg-input: rgba(255, 255, 255, 0.05);
  --bg-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.12);
  --border-focus: #1B18FF;
  --text: #F0F1F8;
  --text-muted: #8892A4;
  --text-dim: #3E4660;
  --primary: #1B18FF;
  --primary-2: #1210AA;
  --primary-lgt: #504DFF;
  --primary-glow: rgba(27, 24, 255, 0.3);
  --primary-xl: rgba(27, 24, 255, 0.1);
  --accent: #66A3FF;
  --success: #10B981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --warning: #F59E0B;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --error: #EF4444;
  --error-bg: rgba(239, 68, 68, 0.1);
  --info: #38BDF8;
  --gold: #F59E0B;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(27, 24, 255, 0.2);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --t: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-w: 248px;
  --topbar-h: 62px;
}

[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-2: #F4F6F9;
  --bg-card: #FFFFFF;
  --bg-card-2: #F8FAFD;
  --bg-glass: rgba(255, 255, 255, 0.9);
  --bg-input: rgba(0, 0, 0, 0.03);
  --bg-hover: rgba(0, 0, 0, 0.05);
  --border: rgba(0, 0, 0, 0.08);
  --border-2: rgba(0, 0, 0, 0.12);
  --text: #0F1020;
  --text-muted: #5E6B80;
  --text-dim: #A0ABBD;
  --primary: #1B18FF;
  --primary-2: #1210AA;
  --primary-lgt: #504DFF;
  --primary-glow: rgba(27, 24, 255, 0.18);
  --primary-xl: rgba(27, 24, 255, 0.07);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.14);
  --shadow-glow: 0 0 40px rgba(27, 24, 255, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  font-size: 15px;
  scroll-behavior: smooth
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--t-slow), color var(--t);
  overflow-x: hidden;
}

/* ── UTILS ── */
.hidden {
  display: none !important
}

.highlight {
  background: linear-gradient(135deg, var(--primary-lgt), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.optional {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 400
}

.text-sm {
  font-size: .8rem
}

/* ── SCREENS ── */
.screen {
  display: none;
  min-height: 100vh
}

.screen.active {
  display: flex
}

/* ==========================================
   LOGIN
   ========================================== */
#screen-login {
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* Animated mesh background */
#screen-login::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(27, 24, 255, .2) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(56, 189, 248, .12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 60% 30%, rgba(102, 163, 255, .06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Grid lines */
#screen-login::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}

.login-floating-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: float 8s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(27, 24, 255, .25);
  top: -180px;
  left: -120px;
  animation-delay: 0s
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: rgba(56, 189, 248, .15);
  bottom: -100px;
  right: -80px;
  animation-delay: -3s
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: rgba(102, 163, 255, .1);
  top: 40%;
  left: 50%;
  animation-delay: -5s
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1)
  }

  33% {
    transform: translate(20px, -30px) scale(1.04)
  }

  66% {
    transform: translate(-15px, 20px) scale(.97)
  }
}

.login-card {
  position: relative;
  z-index: 1;
  background: var(--bg-glass);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.25rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  animation: cardIn .5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(32px) scale(.97)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 2rem;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #1B18FF, #504DFF);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(27, 24, 255, .45);
  position: relative;
}

.logo-icon::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .25), transparent);
  pointer-events: none;
}

.logo-icon-sm {
  width: 34px;
  height: 34px;
  border-radius: 10px
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--text)
}

.login-title {
  font-size: 1.65rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: .3rem;
  letter-spacing: -.5px;
}

.login-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: .875rem;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* Demo banner */
.demo-banner {
  background: linear-gradient(135deg, rgba(27, 24, 255, .15), rgba(102, 163, 255, .1));
  border: 1px solid rgba(27, 24, 255, .3);
  border-radius: var(--radius-sm);
  padding: .7rem 1rem;
  margin-bottom: 1.25rem;
  font-size: .8rem;
  color: var(--primary-lgt);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.demo-banner strong {
  color: var(--accent)
}

/* ── FIELDS ── */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1rem
}

.field-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .2px
}

.field-input,
.field-select,
.field-textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  padding: .7rem .9rem;
  width: 100%;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}

.field-input::placeholder,
.field-textarea::placeholder {
  color: var(--text-dim)
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: rgba(27, 24, 255, .06);
}

.field-input.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-bg)
}

.field-error {
  color: var(--error);
  font-size: .78rem;
  min-height: 1rem;
  display: flex;
  align-items: center;
  gap: 4px
}

.field-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238892A4' stroke-width='2'%3E%3Cpolyline points='2 4 6 8 10 4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2.2rem;
  cursor: pointer;
}

.field-select option {
  background: var(--bg-card);
  color: var(--text)
}

.field-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6
}

.input-wrapper {
  position: relative
}

.input-wrapper .field-input {
  padding-right: 2.75rem
}

.btn-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 4px;
  transition: color var(--t);
  border-radius: 4px;
}

.btn-eye:hover {
  color: var(--text)
}

/* ── BUTTONS ── */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-lgt));
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .2px;
  padding: .8rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), opacity var(--t);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .15), transparent 60%);
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(27, 24, 255, .5), 0 0 0 1px rgba(80, 77, 255, .3);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none
}

.btn-primary:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none
}

.btn-full {
  width: 100%;
  margin-top: .25rem
}

.btn-secondary {
  background: var(--bg-input);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  padding: .65rem 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all var(--t);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  color: var(--text);
  border-color: var(--border-2)
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.login-links {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: .83rem;
}

.link-secondary {
  color: var(--primary-lgt);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--t)
}

.link-secondary:hover {
  color: var(--accent)
}

.link-disabled {
  color: var(--text-dim) !important;
  cursor: not-allowed;
  position: relative
}

.link-tooltip-wrap {
  position: relative
}

.link-tooltip-wrap [data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: var(--bg-card-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: .72rem;
  padding: 6px 10px;
  white-space: nowrap;
  z-index: 100;
  box-shadow: var(--shadow);
}

.alert {
  border-radius: var(--radius-sm);
  font-size: .83rem;
  margin-top: 1rem;
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: 8px
}

.alert.error {
  background: var(--error-bg);
  border: 1px solid rgba(239, 68, 68, .25);
  color: var(--error)
}

.alert.success {
  background: var(--success-bg);
  border: 1px solid rgba(16, 185, 129, .25);
  color: var(--success)
}

/* ==========================================
   APP LAYOUT
   ========================================== */
#screen-app {
  flex-direction: row;
  width: 100%
}

/* ── SIDEBAR ── */
.sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-w);
  overflow: hidden;
  transition: width var(--t-slow);
  z-index: 50;
}

[data-theme="dark"] .sidebar {
  background: linear-gradient(180deg, #0D1226 0%, #080B18 100%);
}

.sidebar.collapsed {
  width: 64px
}

.sidebar.collapsed .nav-label,
.sidebar.collapsed .sidebar-logo-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none
}

.sidebar.collapsed .sidebar-header {
  padding: 0;
  justify-content: center
}

.sidebar.collapsed .sidebar-logo {
  gap: 0
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: .7rem
}

.sidebar-header {
  align-items: center;
  display: flex;
  gap: 10px;
  padding: 1.1rem 1rem 1rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px
}

.sidebar-logo-text {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -.5px;
  color: var(--text);
  transition: opacity var(--t), width var(--t);
  white-space: nowrap;
}

.sidebar-nav {
  padding: .6rem .5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.sidebar-nav::-webkit-scrollbar {
  display: none
}

.nav-item {
  align-items: center;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  font-family: 'Inter', sans-serif;
  font-size: .875rem;
  font-weight: 500;
  gap: 11px;
  padding: .65rem .85rem;
  text-align: left;
  transition: background var(--t), color var(--t), transform var(--t);
  width: 100%;
  position: relative;
}

.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--primary);
  opacity: 0;
  transition: opacity var(--t);
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text)
}

.nav-item.active {
  background: var(--primary-xl);
  color: var(--primary-lgt);
}

.nav-item.active::before {
  opacity: 1
}

.nav-item.active .nav-icon {
  color: var(--primary-lgt)
}

.nav-icon {
  flex-shrink: 0;
  transition: color var(--t)
}

.nav-label {
  transition: opacity var(--t), width var(--t);
  white-space: nowrap;
  overflow: hidden
}

.sidebar-collapse {
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .85rem;
  transition: color var(--t);
  width: 100%;
}

.sidebar-collapse:hover {
  color: var(--text)
}

.sidebar.collapsed .sidebar-collapse svg {
  transform: rotate(180deg)
}

.sidebar.collapsed .sidebar-collapse svg {
  transition: transform var(--t-slow)
}

/* ── TOPBAR ── */
.topbar {
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 40;
  transition: left var(--t-slow);
}

.sidebar.collapsed~.topbar {
  left: 64px
}

.topbar-title {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.2px
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 6px
}

.topbar-btn {
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  position: relative;
  transition: background var(--t), color var(--t);
}

.topbar-btn:hover {
  background: var(--bg-hover);
  color: var(--text)
}

.notif-badge {
  background: var(--error);
  border-radius: 50%;
  color: #fff;
  font-size: .6rem;
  font-weight: 800;
  height: 16px;
  line-height: 16px;
  min-width: 16px;
  padding: 0 3px;
  position: absolute;
  right: 4px;
  top: 4px;
  text-align: center;
  border: 2px solid var(--bg-card);
}

.user-menu {
  position: relative
}

.user-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-lgt));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: .85rem;
  font-weight: 800;
  user-select: none;
  box-shadow: 0 4px 12px rgba(27, 24, 255, .4);
  transition: transform var(--t), box-shadow var(--t);
}

.user-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(27, 24, 255, .55)
}

.user-dropdown {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 210px;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(.97);
  transition: opacity var(--t), transform var(--t);
  z-index: 100;
}

.user-dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: none
}

.user-info {
  padding: .9rem 1rem
}

.user-name {
  display: block;
  font-weight: 700;
  font-size: .875rem
}

.user-email {
  display: block;
  color: var(--text-muted);
  font-size: .75rem;
  margin-top: 2px
}

.dropdown-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0
}

.dropdown-item {
  align-items: center;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  font-family: 'Inter', sans-serif;
  font-size: .875rem;
  gap: 8px;
  padding: .75rem 1rem;
  transition: background var(--t), color var(--t);
  width: 100%;
}

.dropdown-item:hover {
  background: var(--error-bg);
  color: var(--error)
}

/* ── MAIN CONTENT ── */
.main-content {
  left: var(--sidebar-w);
  min-height: 100vh;
  padding-top: var(--topbar-h);
  position: relative;
  width: calc(100% - var(--sidebar-w));
  transition: width var(--t-slow), left var(--t-slow);
}

.sidebar.collapsed~.main-content {
  width: calc(100% - 64px);
  left: 64px
}

.view {
  display: none;
  min-height: calc(100vh - var(--topbar-h));
  animation: viewIn .25s ease
}

.view.active {
  display: block
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(8px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

/* ==========================================
   DASHBOARD
   ========================================== */
.dashboard-hero {
  padding: 2.25rem 2rem 1.25rem;
  position: relative;
}

.dashboard-greeting {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: .3rem;
  letter-spacing: -.5px;
}

.dashboard-sub {
  color: var(--text-muted);
  font-size: .9rem
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding: 0 2rem 1.5rem;
}

.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  padding: 1.6rem;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  position: relative;
  overflow: hidden;
}

.dash-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--t);
  background: linear-gradient(135deg, var(--primary-xl), transparent);
  pointer-events: none;
}

.dash-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .4), 0 0 0 1px var(--primary);
}

.dash-card:hover::before {
  opacity: 1
}

.dash-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  position: relative;
}

.dash-card-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .2), transparent);
  pointer-events: none;
}

.dash-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .4rem;
  letter-spacing: -.2px
}

.dash-card-desc {
  color: var(--text-muted);
  font-size: .838rem;
  line-height: 1.55;
  margin-bottom: 1rem
}

.dash-card-link {
  color: var(--primary-lgt);
  font-size: .83rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--t), color var(--t);
}

.dash-card:hover .dash-card-link {
  gap: 8px;
  color: var(--accent)
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  padding: 0 2rem 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color var(--t), box-shadow var(--t);
}

.stat-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-xl)
}

.stat-value {
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--primary-lgt), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 500
}

.disclaimer-box {
  margin: 0 2rem 2rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, .07), rgba(245, 158, 11, .03));
  border: 1px solid rgba(245, 158, 11, .2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: .8rem;
  line-height: 1.6;
}

.disclaimer-box svg {
  color: var(--warning);
  flex-shrink: 0;
  margin-top: 2px
}

/* ==========================================
   CHAT
   ========================================== */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--topbar-h))
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
  width: 4px
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px
}

.msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: msgIn .3s cubic-bezier(.22, 1, .36, 1)
}

@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(12px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.msg-system {
  justify-content: flex-start
}

.msg-user {
  justify-content: flex-end;
  flex-direction: row-reverse
}

.msg-avatar {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--primary-lgt));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(27, 24, 255, .35);
}

.msg-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 75%;
  padding: .9rem 1.1rem;
  font-size: .875rem;
  line-height: 1.65;
  box-shadow: var(--shadow-sm);
}

.msg-user .msg-bubble {
  background: linear-gradient(135deg, rgba(27, 24, 255, .2), rgba(80, 77, 255, .1));
  border-color: rgba(27, 24, 255, .25);
}

.msg-bubble p+p {
  margin-top: .5rem
}

.msg-bubble strong {
  color: var(--text)
}

/* ── FORM CARD ── */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-left: 44px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  max-width: 720px;
  box-shadow: var(--shadow-sm);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem
}

@media(max-width:600px) {
  .form-grid-2 {
    grid-template-columns: 1fr
  }
}

.btn-generate {
  margin-top: .25rem
}

/* ── CHAT INPUT ── */
.chat-input-bar {
  align-items: flex-end;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  padding: 1rem 1.5rem;
}

.chat-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 46px;
  width: 46px;
  transition: background var(--t), color var(--t), border-color var(--t);
}

.chat-btn:hover {
  background: var(--bg-hover);
  color: var(--text);
  border-color: var(--border-2)
}

.chat-textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: .875rem;
  flex: 1;
  line-height: 1.55;
  max-height: 120px;
  outline: none;
  padding: .75rem 1rem;
  resize: none;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}

.chat-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: rgba(27, 24, 255, .04);
}

.chat-textarea::placeholder {
  color: var(--text-dim)
}

.btn-send {
  background: linear-gradient(135deg, var(--primary), var(--primary-lgt));
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 46px;
  width: 46px;
  transition: transform var(--t), box-shadow var(--t);
  box-shadow: 0 4px 14px rgba(27, 24, 255, .4);
}

.btn-send:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(27, 24, 255, .6)
}

.btn-send:active {
  transform: scale(.97)
}

/* ==========================================
   UPLOAD
   ========================================== */
.upload-area {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.upload-drop-zone {
  border: 2px dashed var(--border-2);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  transition: border-color var(--t), background var(--t), transform var(--t);
}

.upload-drop-zone:hover,
.upload-drop-zone.drag-over {
  border-color: var(--primary-lgt);
  background: var(--primary-xl);
  transform: scale(1.01);
}

.upload-text {
  font-size: .85rem
}

.upload-link {
  background: none;
  border: none;
  color: var(--primary-lgt);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: underline;
  padding: 0;
  transition: color var(--t);
}

.upload-link:hover {
  color: var(--accent)
}

.upload-hint {
  font-size: .72rem;
  color: var(--text-dim)
}

.file-input-hidden {
  display: none
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.file-item {
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  gap: 10px;
  padding: .6rem .85rem;
  transition: border-color var(--t);
}

.file-item:hover {
  border-color: var(--border-2)
}

.file-icon {
  font-size: 1.1rem;
  flex-shrink: 0
}

.file-info {
  flex: 1;
  min-width: 0
}

.file-name {
  font-size: .82rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.file-meta {
  font-size: .72rem;
  color: var(--text-muted)
}

.file-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  padding: 4px;
  border-radius: 4px;
  transition: color var(--t), background var(--t);
}

.file-remove:hover {
  color: var(--error);
  background: var(--error-bg)
}

/* ==========================================
   CONSULTA PROCESSO
   ========================================== */
.consulta-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 1.5rem
}

.view-title {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: .3rem;
  letter-spacing: -.4px
}

.view-sub {
  color: var(--text-muted);
  font-size: .875rem;
  margin-bottom: 1.5rem
}

.consulta-header {
  margin-bottom: 1.5rem
}

.consulta-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  box-shadow: var(--shadow-sm);
}

.btn-consultar {
  align-self: flex-start
}

.consulta-result {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem
}

.processo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
  box-shadow: var(--shadow-sm);
}

.processo-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .4), 0 0 0 1px rgba(27, 24, 255, .2);
  transform: translateY(-2px);
}

.processo-header {
  background: var(--bg-card-2);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.processo-numero {
  font-size: .95rem;
  font-weight: 800;
  font-family: 'Courier New', monospace;
  color: var(--primary-lgt)
}

.processo-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center
}

.badge {
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  letter-spacing: .3px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-info {
  background: rgba(56, 189, 248, .12);
  color: var(--info)
}

.badge-success {
  background: var(--success-bg);
  color: var(--success)
}

.badge-warning {
  background: var(--warning-bg);
  color: var(--warning)
}

.badge-purple {
  background: var(--primary-xl);
  color: var(--primary-lgt)
}

.badge-error {
  background: var(--error-bg);
  color: var(--error)
}

.processo-body {
  padding: 1.25rem
}

.processo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}

.processo-field-label {
  font-size: .7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  font-weight: 600;
  margin-bottom: 3px;
}

.processo-field-value {
  font-size: .875rem;
  font-weight: 600
}

.movimentacoes-title {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin: 1rem 0 .75rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0
}

.timeline-item {
  display: flex;
  gap: 12px;
  padding: .45rem 0;
  position: relative
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 22px;
  bottom: -4px;
  width: 2px;
  background: var(--border);
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 4px;
  border: 2px solid var(--bg-card);
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-content {
  flex: 1
}

.timeline-date {
  font-size: .7rem;
  color: var(--text-muted)
}

.timeline-desc {
  font-size: .838rem;
  font-weight: 500
}

.resumo-ia {
  background: linear-gradient(135deg, rgba(27, 24, 255, .1), rgba(80, 77, 255, .05));
  border: 1px solid rgba(27, 24, 255, .2);
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  padding: 1rem 1.1rem;
}

.resumo-ia-title {
  font-size: .72rem;
  color: var(--primary-lgt);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: .5rem;
}

.resumo-ia p {
  font-size: .86rem;
  line-height: 1.65;
  color: var(--text)
}

/* ── LOADING ── */
.loading-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: .875rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  max-width: 420px;
  margin-left: 44px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .7
  }
}

.spinner-sm {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}

/* ── PROB CARD ── */
.prob-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  margin-left: 44px;
  max-width: 640px;
  box-shadow: var(--shadow-sm);
}

.prob-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1rem
}

.prob-badge {
  font-size: 1.6rem;
  font-weight: 900;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  letter-spacing: -1px;
}

.prob-high {
  background: var(--success-bg);
  color: var(--success);
  box-shadow: 0 0 20px rgba(16, 185, 129, .2)
}

.prob-medium {
  background: var(--warning-bg);
  color: var(--warning);
  box-shadow: 0 0 20px rgba(245, 158, 11, .2)
}

.prob-low {
  background: var(--error-bg);
  color: var(--error);
  box-shadow: 0 0 20px rgba(239, 68, 68, .2)
}

.prob-section-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
  margin: .9rem 0 .4rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.prob-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px
}

.prob-list li {
  font-size: .86rem;
  display: flex;
  gap: 7px;
  line-height: 1.5
}

.prob-list li::before {
  content: '›';
  color: var(--primary-lgt);
  flex-shrink: 0;
  font-weight: 700
}

/* ── PETIÇÃO ── */
.peticao-result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  margin-left: 44px;
  max-width: 780px;
  box-shadow: var(--shadow-sm);
}

.peticao-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}

.peticao-result-title {
  font-size: .95rem;
  font-weight: 700
}

.btn-copy {
  background: var(--bg-input);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--t);
}

.btn-copy:hover {
  background: var(--success-bg);
  color: var(--success);
  border-color: rgba(16, 185, 129, .3)
}

.peticao-textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Courier New', monospace;
  font-size: .8rem;
  height: 380px;
  line-height: 1.8;
  outline: none;
  padding: 1rem;
  resize: vertical;
  width: 100%;
  transition: border-color var(--t);
}

.peticao-textarea:focus {
  border-color: var(--primary-lgt)
}

.peticao-disclaimer {
  margin-top: .75rem;
  font-size: .73rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

/* ==========================================
   HISTÓRICO
   ========================================== */
.historico-container {
  padding: 2rem
}

.historico-header {
  margin-bottom: 1.5rem
}

.historico-list {
  display: flex;
  flex-direction: column;
  gap: .6rem
}

.historico-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 4rem 2rem;
  color: var(--text-muted);
  text-align: center;
}

.historico-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}

.historico-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateX(2px);
}

.historico-info {
  flex: 1;
  min-width: 0
}

.historico-tipo {
  font-size: .7rem;
  font-weight: 700;
  color: var(--primary-lgt);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 3px;
}

.historico-detalhe {
  font-size: .875rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.historico-meta {
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: 2px
}

.historico-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-items: center
}

.btn-sm {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-size: .78rem;
  font-family: 'Inter', sans-serif;
  padding: 5px 10px;
  transition: all var(--t);
  white-space: nowrap;
}

.btn-sm:hover {
  background: var(--primary-xl);
  color: var(--primary-lgt);
  border-color: rgba(27, 24, 255, .3)
}

/* ==========================================
   CONFIGURAÇÕES
   ========================================== */
.config-container {
  max-width: 600px;
  padding: 2rem
}

.config-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.config-section-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
  padding: .85rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.config-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.25rem;
  font-size: .875rem;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}

.config-item:last-child {
  border-bottom: none
}

.config-value {
  color: var(--text-muted);
  font-size: .75rem;
  font-family: monospace
}

.config-token {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.theme-toggle-wrap {
  display: flex;
  gap: 4px
}

.theme-pill {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: .8rem;
  font-family: 'Inter', sans-serif;
  padding: 5px 14px;
  transition: all var(--t);
}

.theme-pill.active {
  background: var(--primary-xl);
  border-color: rgba(27, 24, 255, .35);
  color: var(--primary-lgt)
}

/* ==========================================
   TOAST
   ========================================== */
.toast-container {
  bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: fixed;
  right: 1.5rem;
  z-index: 9999;
}

.toast {
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-left-width: 4px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 10px;
  max-width: 340px;
  min-width: 240px;
  padding: .85rem 1rem;
  font-size: .875rem;
  font-weight: 500;
  animation: toastIn .35s cubic-bezier(.22, 1, .36, 1);
  backdrop-filter: blur(10px);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(24px) scale(.95)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.toast.success {
  border-left-color: var(--success)
}

.toast.error {
  border-left-color: var(--error)
}

.toast.info {
  border-left-color: var(--info)
}

.toast.warning {
  border-left-color: var(--warning)
}

.toast-out {
  animation: toastOut .3s ease forwards
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateX(24px)
  }
}

/* ==========================================
   EMPTY / CONSULTA VAZIA
   ========================================== */
.consulta-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 3rem 2rem;
  color: var(--text-muted);
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* ==========================================
   RESPONSIVO
   ========================================== */
@media(max-width:768px) {
  :root {
    --sidebar-w: 100%
  }

  .sidebar {
    bottom: 0;
    height: auto;
    left: 0;
    right: 0;
    top: auto;
    width: 100% !important;
    flex-direction: row;
    border-right: none;
    border-top: 1px solid var(--border);
    z-index: 90;
  }

  .sidebar-header {
    display: none
  }

  .sidebar-nav {
    flex-direction: row;
    padding: .35rem;
    overflow-x: auto;
    gap: 2px
  }

  .nav-item {
    flex-direction: column;
    font-size: .62rem;
    gap: 3px;
    padding: .5rem .35rem;
    min-width: 54px;
    justify-content: center;
  }

  .nav-item::before {
    display: none
  }

  .nav-label {
    opacity: 1;
    width: auto;
    font-size: .62rem
  }

  .nav-icon {
    width: 18px;
    height: 18px
  }

  .sidebar-collapse {
    display: none
  }

  .topbar {
    left: 0
  }

  .main-content {
    left: 0 !important;
    width: 100% !important;
    padding-bottom: 80px
  }

  .chat-messages,
  .consulta-container,
  .historico-container,
  .config-container,
  .dashboard-hero {
    padding: 1rem
  }

  .dashboard-cards,
  .stats-row {
    padding: 0 1rem 1rem
  }

  .disclaimer-box {
    margin: 0 1rem 1.5rem
  }

  .form-card,
  .loading-msg,
  .prob-card,
  .peticao-result-card {
    margin-left: 0
  }
}

/* ==========================================
   NOTIFICAÇÕES DROPDOWN
   ========================================== */
.notif-menu {
  position: relative
}

.notif-dropdown {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(.97);
  transition: opacity var(--t), transform var(--t);
  z-index: 100;
}

.notif-dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: none
}

.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .85rem;
  font-weight: 600;
}

.notif-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: .75rem;
  font-family: 'Inter', sans-serif;
  transition: color var(--t);
  padding: 2px 6px;
  border-radius: 4px;
}

.notif-clear:hover {
  color: var(--primary-lgt);
  background: var(--primary-xl)
}

.notif-item {
  display: flex;
  gap: 10px;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--t);
  cursor: default;
}

.notif-item:last-child {
  border-bottom: none
}

.notif-item:hover {
  background: var(--bg-hover)
}

.notif-unread {
  position: relative
}

.notif-unread::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.notif-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 28px;
  text-align: center
}

.notif-content {
  flex: 1;
  min-width: 0
}

.notif-title {
  font-size: .83rem;
  font-weight: 600;
  margin-bottom: 2px
}

.notif-desc {
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.4
}