/* UniMate Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&display=swap');
:root {
  --primary: #3b82f6;
  --primary-contrast: #ffffff;
  --primary-hover: #2563eb;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --sidebar-bg: #0f172a;
  --sidebar-text: #cbd5e1;
  --sidebar-active-bg: #1e293b;
  --sidebar-offset: 20px;
  --sidebar-width: 240px;
  --sidebar-collapsed-width: 72px;
  --sidebar-vertical-offset: 1.2vh;
  --content-max: 1120px;
  --sidebar-width-base: 240px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }

/* Доступность: видимый фокус для клавиатурной навигации */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
button:focus-visible,
.icon-button:focus-visible,
.filter-btn:focus-visible,
.sidebar-nav-item:focus-visible,
.mobile-nav-item:focus-visible,
.tab-btn:focus-visible,
a:focus-visible {
  box-shadow: 0 0 0 3px rgba(59,130,246,0.35);
  border-color: rgba(59,130,246,0.50);
}

.container { max-width: var(--content-max); margin: 0 auto; padding: 0 16px; }
/* Расширяем контейнер, когда сайдбар уже (коллапс/ресайз) */
.layout-with-sidebar .container {
  /* Ширина контейнера как у хедера: без ограничения, края по margin */
  max-width: none;
  transition: max-width 0.28s ease;
}
.sidebar-collapsed.layout-with-sidebar .container {
  /* При сжатом сайдбаре ширина контейнера как у хедера (без ограничения) */
  max-width: none;
  width: auto;
}

/* Единые внешние отступы контента под шапкой */
.layout-with-sidebar .main .container {
  margin: 0 20px; /* совпадает с отступами header */
  padding: 16px 0 8px;     /* чуть больше верхний отступ, небольшой нижний для воздуха */
}

/* Layout with sidebar */
.layout-with-sidebar .main-wrapper {
  margin-left: calc(var(--sidebar-offset) + var(--sidebar-width));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.28s ease;
}
.main { flex: 1; }
/* Страховка: страницы, где используется .content вместо .main */
.layout-with-sidebar .main-wrapper .content { flex: 1; }

/* Sidebar */
.sidebar {
  position: fixed;
  top: var(--sidebar-vertical-offset); left: var(--sidebar-offset);
  transform: none;
  width: var(--sidebar-width); height: calc(100vh - (2 * var(--sidebar-vertical-offset))); max-height: calc(100vh - (2 * var(--sidebar-vertical-offset)));
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.25));
  color: #1f2937;
  padding: 18px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.18);
  z-index: 1000;
  overflow: hidden;
  transition: width 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
}
.sidebar.collapsed { width: var(--sidebar-collapsed-width); }
.sidebar-collapsed.layout-with-sidebar .main-wrapper { margin-left: calc(var(--sidebar-offset) + var(--sidebar-collapsed-width)); }
.sidebar-inner { height: 100%; display: flex; flex-direction: column; }
.sidebar-header { padding: 6px 44px 12px 8px; border-bottom: 1px solid rgba(17,24,39,0.08); display: flex; align-items: center; justify-content: flex-start; gap: 8px; flex-wrap: nowrap; }
.sidebar-logo { color: var(--primary); font-weight: 800; font-size: 22px; letter-spacing: 0.4px; display: inline-flex; align-items: center; gap: 8px; }
.sidebar-logo .logo-icon { color: var(--primary); font-size: 18px; }
.sidebar-logo .logo-img { height: 50px; width: auto; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.sidebar-logo .logo-text { white-space: nowrap; }
.sidebar-toggle { position: absolute; right: 0; top: 50%; transform: translateY(-50%); border: 1px solid rgba(255,255,255,0.9); background: rgba(255,255,255,0.9); color: #0f172a; border-radius: 12px; padding: 6px 8px; cursor: pointer; box-shadow: 0 6px 14px rgba(15,23,42,0.14); z-index: 1101; }
.sidebar-toggle:hover { background: #fff; color: #0f172a; }
.sidebar-resizer { position: absolute; right: 0; top: 0; width: 8px; height: 100%; cursor: col-resize; z-index: 1100; }
.sidebar-nav { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; padding-right: 4px; overflow-y: auto; overflow-x: hidden; flex: 1; -ms-overflow-style: none; scrollbar-width: none; }
.sidebar-nav::-webkit-scrollbar { width: 0; height: 0; }
.sidebar-nav::-webkit-scrollbar-thumb { background: transparent; }
.sidebar-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #334155;
  background: rgba(255,255,255,0.45);
  transition: background 0.2s ease, color 0.2s ease, transform 0.12s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255,255,255,0.6);
}
.sidebar-nav-item i { width: 20px; text-align: center; color: #64748b; transition: color 0.2s ease; }
.sidebar-nav-item:hover { background: rgba(255,255,255,0.85); color: #0f172a; border-color: rgba(255,255,255,0.9); box-shadow: 0 8px 18px rgba(15,23,42,0.08); }
.sidebar-nav-item:hover i { color: #0f172a; }
.sidebar-nav-item.active {
  color: #0f172a;
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(59,130,246,0.35);
  box-shadow: inset 0 0 0 1px rgba(59,130,246,0.45), 0 8px 24px rgba(59,130,246,0.18);
}
.sidebar-nav-item.active i { color: #0f172a; }
.sidebar-nav-item.active::before {
  content: "";
  position: absolute;
  left: -6px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 4px;
  background: var(--primary);
}

/* Свернутый режим — иконки без текста */
.sidebar.collapsed .sidebar-nav-item { justify-content: center; padding: 10px; }
.sidebar.collapsed .sidebar-nav-item span { display: none; }
.sidebar.collapsed .submenu, .sidebar.collapsed .submenu-toggle { display: none !important; }
/* Свернутый режим — лого без текста */
.sidebar.collapsed .logo-text { display: none; }
.sidebar.collapsed .sidebar-header { padding: 6px 20px 12px 20px; justify-content: center; }

/* Плавная анимация размеров хедера при сворачивании сайдбара */
.header { transition: margin 0.28s ease, border-radius 0.28s ease, box-shadow 0.28s ease; }
.header .header-content { transition: padding 0.28s ease; }
.sidebar-collapsed .header .header-content { padding: 8px 12px; }
.sidebar-collapsed .header { border-radius: 14px; box-shadow: 0 8px 22px rgba(2,6,23,0.06); }

/* Submenu styles */
.sidebar-item.has-submenu > .sidebar-nav-item { position: relative; }
.submenu-toggle { margin-left: auto; background: transparent; border: none; color: #64748b; cursor: pointer; }
.submenu {
  display: flex; flex-direction: column; gap: 6px;
  padding: 6px 0 0 28px;
  max-height: 0; overflow: hidden; opacity: 0; transform: translateY(-4px);
  transition: all 0.25s ease;
}
.sidebar-item.has-submenu.open .submenu { max-height: 500px; opacity: 1; transform: translateY(0); }
.sidebar-subitem { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; color: #334155; background: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.7); }
.sidebar-subitem:hover { background: rgba(255,255,255,0.85); color: #0f172a; }
.sidebar-subitem.active { color: #0f172a; background: rgba(59, 130, 246, 0.18); border-color: rgba(59,130,246,0.35); box-shadow: inset 0 0 0 1px rgba(59,130,246,0.35), 0 6px 16px rgba(59,130,246,0.12); }

/* Header — современный стеклянный вариант */
.header {
  position: sticky;
  top: 12px;
  margin: 0 20px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.35));
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 16px;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.08);
  z-index: 1102;
}
.header .header-content { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; }
/* Fix: keep header actions in one row with avatar */
.header .header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }

.user-dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(2,6,23,0.10); width: 320px; display: none; overflow: hidden; animation: dropdownEnter .18s cubic-bezier(0.22, 1, 0.36, 1); transform-origin: top right; }
.user-dropdown-menu::before { content: ''; position: absolute; right: 16px; top: -8px; border: 8px solid transparent; border-bottom-color: var(--border); opacity: .7; }
.user-dropdown-menu::after { content: ''; position: absolute; right: 16px; top: -7px; border: 8px solid transparent; border-bottom-color: var(--surface); }
.footer-extra { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px dashed rgba(226,232,240,0.6); margin-top: 8px; }
.footer-note { color: #64748b; font-size: 13px; }
.footer-cta { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sidebar-nav-item:hover i.fa-duotone, .sidebar-nav-item.active i.fa-duotone,
.sidebar-subitem:hover i.fa-duotone, .sidebar-subitem.active i.fa-duotone {
  --fa-primary-color: #0f172a;
  --fa-secondary-color: #334155;
}

/* Dark theme: page-specific containers and controls */
/* Убрано: тяжёлые стили для .page-header в тёмной теме по запросу пользователя */

/* Dark theme: generic form controls */
.theme-dark input,
.theme-dark input[type="text"],
.theme-dark input[type="email"],
.theme-dark input[type="password"],
.theme-dark input[type="number"],
.theme-dark input[type="date"],
.theme-dark input[type="datetime-local"],
.theme-dark input[type="month"],
.theme-dark input[type="time"],
.theme-dark input[type="week"],
.theme-dark input[type="search"],
.theme-dark input[type="tel"],
.theme-dark input[type="url"],
.theme-dark select,
.theme-dark textarea,
.theme-dark .form-select,
.theme-dark .form-control {
  background-color: var(--surface) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
  color-scheme: dark;
}

/* Fix for iOS date inputs in dark mode */
.theme-dark input[type="date"],
.theme-dark input[type="datetime-local"],
.theme-dark input[type="time"] {
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px; /* Ensure touch target size */
}
.theme-dark input::placeholder,
.theme-dark textarea::placeholder { color: var(--muted); }

/* Subjects page */
.theme-dark .subjects-page h3 { color: var(--text); }
.theme-dark .subjects-toolbar .group-hint { color: var(--muted); }
.theme-dark .subjects-toolbar .search-wrap { background: rgba(2,6,23,0.35); border-color: var(--border); }
.theme-dark .subjects-toolbar .search-wrap:focus-within { border-color: rgba(59,130,246,0.45); box-shadow: 0 0 0 4px rgba(59,130,246,0.12); background: rgba(2,6,23,0.45); }
.theme-dark .subjects-toolbar .search-input { color: var(--text); }
.theme-dark .subjects-toolbar .input-select { background-color: var(--surface); color: var(--text); border-color: var(--border); }
.theme-dark .chip i.fa-duotone { --fa-primary-color: #93c5fd; --fa-secondary-color: #2563eb; --fa-primary-opacity: 1; --fa-secondary-opacity: 0.9; }
.theme-dark .subject-card { background: linear-gradient(180deg, rgba(2,6,23,0.70), rgba(2,6,23,0.45)); border: 1px solid rgba(147,197,253,0.25); box-shadow: 0 2px 8px rgba(2,6,23,0.45); }
.theme-dark .subject-card:hover { border-color: rgba(59,130,246,0.35); box-shadow: 0 8px 24px rgba(2,6,23,0.55); }
.theme-dark .subject-card .subject-icon { background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(147,197,253,0.14) 100%); color: var(--primary); border: 1px solid rgba(147,197,253,0.28); box-shadow: inset 0 1px 2px rgba(255,255,255,0.08); }
.theme-dark .subject-card .subject-title { color: var(--text); }
.theme-dark .subject-card .subject-meta { color: var(--muted); }

/* Materials page */
.theme-dark .materials-page .page-subtitle { color: var(--muted); }
.theme-dark .materials-toolbar .form-select,
.theme-dark .materials-toolbar .search-wrap { background: var(--surface); border-color: var(--border); color: var(--text); }
.theme-dark .materials-toolbar .search-wrap .count { color: var(--muted); }
.theme-dark .upload-section { background: #0b1220; border-color: rgba(148,163,184,0.40); }
.theme-dark .upload-section label.file-input { background: var(--surface); border-color: var(--border); color: var(--text); }
.theme-dark .upload-section .status { color: var(--muted); }
.theme-dark .materials-tree .folder { background: var(--surface); border-color: var(--border); }
.theme-dark .materials-tree .folder-header { background: rgba(2,6,23,0.35); }
.theme-dark .materials-tree .file-item { background: var(--surface); border-color: var(--border); }
.theme-dark .materials-tree .file-open { color: var(--text); }
.theme-dark .materials-tree .file-meta { color: var(--muted); }
.theme-dark .modal .modal-dialog { background: var(--surface); border: 1px solid var(--border); }
.theme-dark .preview-download { background: var(--surface); border-color: var(--border); color: var(--text); }

/* Global dark override for page titles */
.theme-dark .page-title { color: var(--text); }

/* Subject page */
.theme-dark .subject-hero { background: linear-gradient(90deg, #0b1220 0%, #0f172a 100%); border: 1px solid #1f2937; }
.theme-dark .subject-hero .subject-icon { background: rgba(59,130,246,0.12); color: var(--primary); }
.theme-dark .subject-hero .subject-info .subtitle { color: var(--muted); }
.theme-dark .syllabus-item { background: var(--surface); border-color: var(--border); }
.theme-dark .file-name { color: var(--text); }
.theme-dark .file-badge { background: #0b1220; color: #cbd5e1; }
.theme-dark .file-badge.badge-pdf { background:#1f2937; color:#fca5a5; }
.theme-dark .file-badge.badge-docx, .theme-dark .file-badge.badge-doc { background:#1f2937; color:#93c5fd; }
.theme-dark .file-badge.badge-xlsx { background:#1f2937; color:#86efac; }
.theme-dark .file-badge.badge-pptx { background:#1f2937; color:#fdba74; }

/* Static pages */
.theme-dark .static-page { background: linear-gradient(135deg, #0b1220 0%, #0f172a 100%); }
.theme-dark .static-content { background: rgba(2,6,23,0.92); border: 1px solid rgba(2,6,23,0.6); color: var(--text); }
.theme-dark .static-title { color: var(--text); }
.theme-dark .static-subtitle { color: var(--muted); }
.theme-dark .back-link { background: rgba(2,6,23,0.65); border: 2px solid var(--border); color: #94a3b8; }

/* GPA page */
.theme-dark .gpa-page .whatif-header h4 { color: var(--text); }
.theme-dark .weak-subject-item { background: rgba(2,6,23,0.70); border-color: var(--border); }
.theme-dark .weak-subject-item .weak-meta { color: #9aa9bb; }

/* === Global Theme Toggle (light/dark) === */
/* Compact icon button used in header */
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease, color 0.18s ease;
}
.icon-button:hover { background: var(--bg); box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.icon-button:active { transform: translateY(1px); }
.icon-button i { font-size: 18px; }

.theme-toggle { display: inline-flex; align-items: center; margin-right: 8px; }

/* Dark theme variables and key component overrides */
.theme-dark {
  color-scheme: dark;
  --primary: #3b82f6;
  --primary-contrast: #ffffff;
  --primary-hover: #2563eb;
  --bg: #0b1220;              /* page background */
  --surface: #0f172a;          /* cards, menus */
  --text: #e5e7eb;             /* default text */
  --muted: #94a3b8;            /* muted text */
  --border: #1f2937;           /* borders */
  --sidebar-bg: #0b1220;
  --sidebar-text: #cbd5e1;
  --sidebar-active-bg: #1e293b;
}

.theme-dark body { background: var(--bg); color: var(--text); }

/* Header and footer glass panels */
.theme-dark .header {
  background: linear-gradient(180deg, rgba(2,6,23,0.78), rgba(2,6,23,0.58));
  border-color: rgba(148,163,184,0.25);
  box-shadow: 0 12px 28px rgba(2,6,23,0.40);
}
.theme-dark .header .btn.btn-premium { box-shadow: 0 6px 16px rgba(37,99,235,0.24); }
.theme-dark .compact-footer {
  background: linear-gradient(180deg, rgba(2,6,23,0.78), rgba(2,6,23,0.58));
  border-color: rgba(148,163,184,0.25);
  box-shadow: 0 10px 28px rgba(2,6,23,0.40);
  color: var(--text);
}
.theme-dark .footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #1f2937;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(2,6,23,0.35);
}
.theme-dark .footer-links a:hover {
  background: #223046;
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(59,130,246,0.35);
}
.theme-dark .social-link { background: #1f2937; color: #cbd5e1; border-color: rgba(148,163,184,0.25); }
.theme-dark .social-link:hover { background: #334155; }

/* Sidebar */
.theme-dark .sidebar {
  background: linear-gradient(180deg, rgba(17,24,39,0.75), rgba(17,24,39,0.55));
  color: var(--sidebar-text);
  border-color: rgba(148,163,184,0.30);
  box-shadow: 0 12px 30px rgba(2,6,23,0.50);
}
.theme-dark .sidebar-nav-item {
  color: #cbd5e1;
  background: rgba(17,24,39,0.50);
  border-color: rgba(148,163,184,0.30);
}
.theme-dark .sidebar-nav-item:hover {
  background: rgba(17,24,39,0.85);
  color: #ffffff;
  border-color: rgba(148,163,184,0.45);
  box-shadow: 0 8px 18px rgba(2,6,23,0.50);
}
.theme-dark .sidebar-nav-item.active {
  color: #ffffff;
  background: rgba(59,130,246,0.22);
  border-color: rgba(59,130,246,0.35);
  box-shadow: inset 0 0 0 1px rgba(59,130,246,0.45), 0 8px 24px rgba(59,130,246,0.18);
}
.theme-dark .sidebar-subitem { color: #cbd5e1; background: rgba(17,24,39,0.55); border-color: rgba(148,163,184,0.30); }
.theme-dark .sidebar-subitem:hover { background: rgba(17,24,39,0.85); color: #ffffff; }

/* Cards & dropdowns */
.theme-dark .card { background: var(--surface); border-color: var(--border); box-shadow: 0 6px 18px rgba(0,0,0,0.28); }
.theme-dark .card-header { background: none; border-color: var(--border); }
.theme-dark .user-dropdown-menu { background: var(--surface); border-color: var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.theme-dark .dropdown-row { color: #cbd5e1; }
.theme-dark .status-pill { background: #1f2937; color: #e5e7eb; }

/* Buttons & filters */
.theme-dark .btn-outline { color: var(--text); border-color: var(--border); }
.theme-dark .filter-btn { background: #1f2937; border-color: var(--border); color: #cbd5e1; }
.theme-dark .filter-btn.active, .theme-dark .filter-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Small elements: badges, chips, pills, tags, lightweight buttons */
.theme-dark .badge { background: rgba(17,24,39,0.55); color: var(--text); border: 1px solid var(--border); }
.theme-dark .badge-light { background: rgba(17,24,39,0.40); color: #cbd5e1; border-color: var(--border); }
.theme-dark .tag, .theme-dark .pill { background: rgba(2,6,23,0.45); color: var(--text); border: 1px solid var(--border); }
.theme-dark .btn-light { background: #1f2937; color: var(--text); border: 1px solid var(--border); }
.theme-dark .btn-light:hover { background: #223046; }
.theme-dark .chip { background: rgba(2,6,23,0.35); color: #cbd5e1; border: 1px solid rgba(147,197,253,0.25); }
.theme-dark .chip .chip-close { color: #9aa9bb; }
.theme-dark .chip .chip-close:hover { color: #ffffff; background: rgba(148,163,184,0.18); }

/* Dropdowns */
.theme-dark .dropdown-menu, .theme-dark .user-dropdown-menu { background: var(--surface); border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.35); color: var(--text); }
.theme-dark .dropdown-item { color: var(--text); }
.theme-dark .dropdown-item:hover { background: rgba(2,6,23,0.65); }
.theme-dark .dropdown-header { background: #0b1220; border-bottom: 1px solid var(--border); }

/* Tables (admin, etc.) */
.theme-dark .users-table, .theme-dark .premium-table, .theme-dark .deadlines-table { background: var(--surface); border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(2,6,23,.35); }
.theme-dark .users-table th, .theme-dark .premium-table th, .theme-dark .deadlines-table th { background: #0b1220; color: var(--text); }
.theme-dark .users-table td, .theme-dark .premium-table td, .theme-dark .deadlines-table td { color: var(--text); border-bottom-color: var(--border); }
.theme-dark .users-table tbody tr:nth-child(odd), .theme-dark .premium-table tbody tr:nth-child(odd), .theme-dark .deadlines-table tbody tr:nth-child(odd) { background: rgba(17,24,39,0.40); }

/* Modals */
.theme-dark .modal-content, .theme-dark .modal .modal-dialog { background: var(--surface); border: 1px solid var(--border); color: var(--text); box-shadow: 0 10px 30px rgba(2,6,23,.45); }
.theme-dark .modal .modal-header { border-bottom: 1px solid var(--border); }
.theme-dark .modal .modal-body { color: var(--text); }

/* Alerts/Notices/Toasts (light theme base) */
.alert { padding:12px 14px; border:1px solid var(--border); border-radius:12px; background: rgba(248,250,252,0.75); color:#0f172a; box-shadow:0 8px 24px rgba(2,6,23,0.08); backdrop-filter: blur(10px); display:flex; align-items:center; gap:10px; }
.alert i { font-size:18px; }
.alert a.alert-link { font-weight:600; color: var(--primary); }
.alert-success { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.35); color:#065f46; }
.alert-info { background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.35); color:#1d4ed8; }
.alert-warning { background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.35); color:#92400e; }
.alert-danger { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.35); color:#7f1d1d; }

/* Alerts/Notices/Toasts */
.theme-dark .alert { background: rgba(2,6,23,0.55); color: var(--text); border: 1px solid var(--border); backdrop-filter: blur(10px); }
.theme-dark .alert-danger { background: rgba(239,68,68,0.16); border-color: rgba(239,68,68,0.35); color: #fecaca; }
.theme-dark .alert-success { background: rgba(22,163,74,0.16); border-color: rgba(34,197,94,0.35); color: #d1fae5; }
.theme-dark .alert-info { background: rgba(59,130,246,0.16); border-color: rgba(59,130,246,0.35); color: #c7d2fe; }
.theme-dark .notice { background: rgba(17,24,39,0.55); border: 1px solid var(--border); color: var(--text); }
.theme-dark .toast { background: #111827; color: #fff; box-shadow: 0 16px 32px rgba(0,0,0,0.28); }

/* Focus page targeted badge-light override to beat page specificity */
.theme-dark .focus-page .page-header .badge-light { background: rgba(17,24,39,0.40); color: #cbd5e1; border-color: var(--border); }

/* Premium badge: remove heavy blur in dark theme */
.theme-dark .badge-premium {
  background: rgba(17,24,39,0.55);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Tooltips */
.theme-dark [data-tooltip]::after { background: #111827; color: #ffffff; }
.theme-dark [data-tooltip]::before { border-top-color: #111827; }
.theme-dark [data-tooltip][data-tooltip-pos="bottom"]::before { border-bottom-color: #111827; }

/* Mobile nav */

/* Blue/Sky retheme for mobile island nav and panel */

/* Duotone icon palette for mobile */
.mobile-nav-item i.fa-duotone,
.mobile-group-item i.fa-duotone,
.mobile-group-title i.fa-duotone {
  --fa-primary-color: #2563eb; /* blue-600 */
  --fa-secondary-color: #93c5fd; /* sky-300 */
  --fa-primary-opacity: 1;
  --fa-secondary-opacity: 0.85;
}
.mobile-nav-item.active i.fa-duotone,
.mobile-group-item.active i.fa-duotone {
  --fa-primary-color: #0f172a;
  --fa-secondary-color: #3b82f6;
}
.mobile-nav-item:hover i.fa-duotone, .mobile-nav-item.active i.fa-duotone,
.mobile-subitem:hover i.fa-duotone, .mobile-subitem.active i.fa-duotone {
  --fa-primary-color: #0f172a;
  --fa-secondary-color: #334155;
}
/* Premium badge & button refinements */
.header .badge-premium {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(240,249,255,0.85), rgba(224,242,254,0.70));
  border: 1px solid rgba(147,197,253,0.75);
  color: #0f172a; font-weight: 600;
  box-shadow: 0 6px 16px rgba(37,99,235,0.10);
}
.header .badge-premium i.fa-duotone {
  --fa-primary-color: #2563eb; /* blue-600 */
  --fa-secondary-color: #60a5fa; /* sky-400 */
  --fa-primary-opacity: 1; --fa-secondary-opacity: .95;
}
.header .btn.btn-premium {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 999px;
  background: linear-gradient(180deg, #2563eb, #60a5fa);
  color: #fff; border: 1px solid rgba(147,197,253,0.75);
  box-shadow: 0 6px 16px rgba(37,99,235,0.18);
}
.header .btn.btn-premium i.fa-duotone {
  --fa-primary-color: #ffffff; --fa-secondary-color: #e2e8f0;
  --fa-primary-opacity: 1; --fa-secondary-opacity: .9;
}
/* Ensure header layout spacing stays tidy */
.header .header-content { display:flex; align-items:center; justify-content: space-between; gap: 10px; }
.header .header-title { display:flex; align-items:center; gap: 10px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; font-weight: 600; }
.badge-premium { background: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.5); backdrop-filter: blur(8px); color: #111827; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; border: none; cursor: pointer; background: var(--primary); color: var(--primary-contrast); font-weight: 600; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-sm { padding: 6px 10px; font-size: 14px; }
.btn-premium { background: linear-gradient(135deg, var(--primary), var(--primary-hover)); color: var(--primary-contrast); }

.user-dropdown { position: relative; }
.user-avatar-wrapper { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; position: relative; }
.user-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.user-avatar-initials { width: 34px; height: 34px; border-radius: 50%; background: #e2e8f0; color: #334155; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.premium-badge { position: absolute; right: -6px; bottom: -6px; background: #f59e0b; color: #111; border-radius: 50%; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; border: 2px solid #fff; }
.dropdown-arrow { color: #94a3b8; font-size: 14px; }

/* Inline вариант бейджа премиум для хедера рядом с аватаром */
.premium-badge-inline { position: static; background: transparent; border: none; width: auto; height: auto; color: #f59e0b; display: inline-flex; align-items: center; justify-content: center; }
.premium-badge-inline i { font-size: 16px; }

.user-dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); width: 280px; display: none; overflow: hidden; }
.user-dropdown.open .user-dropdown-menu, .user-avatar-wrapper.active + .user-dropdown-menu { display: block; }
.dropdown-header { display: flex; gap: 10px; padding: 12px; background: #f8fafc; border-bottom: 1px solid var(--border); }
.dropdown-avatar .avatar-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.avatar-initials { width: 44px; height: 44px; border-radius: 50%; background: #e2e8f0; color: #334155; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.dropdown-user-info { display: flex; flex-direction: column; }
.dropdown-user-name { font-weight: 700; }
.dropdown-user-status { color: var(--muted); font-size: 13px; }
.dropdown-body { padding: 12px; border-bottom: 1px solid var(--border); }
.dropdown-row { display: flex; justify-content: space-between; margin: 6px 0; color: #334155; }
.dropdown-actions { display: flex; gap: 8px; padding: 12px; }

/* Refined user dropdown styling */
.user-dropdown-menu {
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(2,6,23,0.10);
  animation: dropdownEnter .18s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: top right;
}
.dropdown-header {
  background: linear-gradient(180deg, #f8fafc, #ffffff);
}
.dropdown-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dropdown-row {
  display: grid;
  grid-template-columns: 20px auto 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
}
.dropdown-row:hover {
  background: rgba(2,6,23,0.03);
}
.dropdown-row-icon { color: #94a3b8; }
.dropdown-label { color: #64748b; font-weight: 600; }
.dropdown-value { color: #0f172a; font-weight: 700; }
.dropdown-actions { display: flex; justify-content: flex-end; gap: 8px; }

.icon-btn {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: #64748b;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .18s ease;
}
.icon-btn.btn-xs { width: 26px; height: 26px; }
.icon-btn:hover { background: #eef2ff; color: #0f172a; border-color: #c7d2fe; box-shadow: 0 2px 8px rgba(2,6,23,0.08); }

@keyframes dropdownEnter {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Dark theme adjustments */
.theme-dark .dropdown-row:hover { background: rgba(255,255,255,0.04); }
.theme-dark .dropdown-header { background: #0b1220; }
.theme-dark .icon-btn { background: #1f2937; border-color: var(--border); color: #9aa9bb; }
.theme-dark .icon-btn:hover { background: rgba(148,163,184,0.12); color: #ffffff; border-color: rgba(148,163,184,0.35); }
.theme-dark .user-dropdown-menu::before { border-bottom-color: rgba(148,163,184,0.22); }
.theme-dark .user-dropdown-menu::after { border-bottom-color: #0b1220; }

/* Compact dark dropdown refinements */
.user-dropdown-menu { font-size: 12.5px; line-height: 1.35; width: 320px; border-radius: 12px; }
.dropdown-header { padding: 8px; }
.dropdown-user-name { font-size: 13.5px; }
.dropdown-user-status { font-size: 12px; }

.dropdown-row { grid-template-columns: 16px minmax(78px, auto) 1fr auto auto; gap: 6px; padding: 5px 8px; border-radius: 8px; border: 1px solid transparent; }
.dropdown-row:hover { border-color: rgba(2,6,23,0.12); }
.dropdown-row-icon { font-size: 14px; --fa-primary-color:#9aa9bb; --fa-secondary-color:#cbd5e1; --fa-secondary-opacity:.65; }
.dropdown-label { font-size: 12px; white-space: nowrap; }
.dropdown-value { font-size: 12.75px; letter-spacing: .1px; }
.icon-btn { width: 22px; height: 22px; font-size: 13.5px; }
.icon-btn.btn-xs { width: 20px; height: 20px; }

.theme-dark .user-dropdown-menu { background: #0b1220; border-color: rgba(148,163,184,0.22); box-shadow: 0 8px 24px rgba(0,0,0,0.28); }
.theme-dark .dropdown-label { color: #94a3b8; }
.theme-dark .dropdown-value { color: #e5e7eb; }
.theme-dark .dropdown-row-icon { color: #9aa9bb; --fa-primary-color:#9aa9bb; --fa-secondary-color:#6b7280; --fa-secondary-opacity:.55; }
.theme-dark .dropdown-row:hover { background: rgba(255,255,255,0.04); border-color: rgba(148,163,184,0.25); }
.theme-dark .dropdown-user-name { color: #e5e7eb; }
.theme-dark .dropdown-user-status { color: #94a3b8; }
.theme-dark .status-pill { background: rgba(148,163,184,0.14); color: #e5e7eb; border: 1px solid rgba(148,163,184,0.25); }
/* Soften section divider in dark theme */
.theme-dark .user-dropdown-menu .dropdown-body { border-bottom-color: rgba(148,163,184,0.14); }

/* Compact actions buttons inside dropdown */
.user-dropdown-menu .dropdown-actions .btn { font-size: 11.5px; padding: 5px 9px; border-radius: 8px; }
.user-dropdown-menu { width: 320px; }

.compact-footer {
  margin: 12px 20px 6px;
  background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.35));
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 16px;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.08);
  color: #334155;
  transition: box-shadow 0.28s ease, border-radius 0.28s ease, background 0.28s ease;
}
.compact-footer .footer-container { max-width: 1120px; margin: 0 auto; padding: 16px; }
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 800; }
.footer-links { display: inline-flex; gap: 12px; }
.footer-links a { color: #334155; }
.footer-links a:hover { color: #111; }
.footer-social { display: inline-flex; gap: 10px; }
.social-link { width: 32px; height: 32px; border-radius: 50%; background: #f1f5f9; color: #334155; display: inline-flex; align-items: center; justify-content: center; }
.social-link:hover { background: #e2e8f0; }
.footer-bottom { margin-top: 8px; font-size: 13px; color: #94a3b8; }
/* Mobile bottom nav (hidden by default) */
.mobile-nav { display: none; }
.mobile-nav .mobile-nav-item { text-align: center; }

/* Cards and common components */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,0.04); overflow: hidden; }
.card-header { padding: 12px 16px; border-bottom: 1px solid var(--border); background: #f8fafc; }
.card-title { margin: 0; font-size: 18px; }
.card-body { padding: 16px; }

.page-title { margin: 0 0 12px 0; font-size: 24px; font-weight: 800; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin: 16px 0; }

/* Filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn { padding: 8px 12px; background: #f1f5f9; border: 1px solid var(--border); border-radius: 10px; color: #334155; cursor: pointer; }
.filter-btn.active, .filter-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.detail-badge { display: inline-flex; align-items: center; gap: 8px; background: #eef2ff; color: #3730a3; padding: 6px 10px; border-radius: 10px; font-weight: 600; }

/* CSS-only tooltips via [data-tooltip] to avoid freezing */
@media (hover: hover) {
  [data-tooltip] { position: relative; }
  [data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 100%;
    margin-bottom: 8px;
    background: #111827;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    z-index: 1102;
    transition: opacity .15s ease;
    box-shadow: 0 6px 16px rgba(2,6,23,.18);
  }
  [data-tooltip]::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(100% - 2px);
    width: 0; height: 0;
    border: 6px solid transparent;
    border-top-color: #111827;
    opacity: 0;
    pointer-events: none;
    z-index: 1102;
    transition: opacity .15s ease;
  }
  [data-tooltip]:hover::after,
  [data-tooltip]:hover::before { opacity: 1; }

  /* Bottom-positioned tooltip variant to avoid clipping by .card overflow */
  [data-tooltip][data-tooltip-pos="bottom"]::after {
    bottom: auto;
    top: 100%;
    margin-top: 8px;
    margin-bottom: 0;
  }
  [data-tooltip][data-tooltip-pos="bottom"]::before {
    bottom: auto;
    top: calc(100% - 2px);
    border-top-color: transparent;
    border-bottom-color: #111827;
  }
}

/* Responsive */

/* Custom Cursor disabled: revert to native cursor */

/* Duotone icon colors for sidebar */
.sidebar-nav-item i.fa-duotone, .sidebar-subitem i.fa-duotone {
  --fa-primary-color: #64748b;
  --fa-secondary-color: #94a3b8;
  --fa-primary-opacity: 1;
  --fa-secondary-opacity: 0.70;
}
.sidebar-nav-item:hover i.fa-duotone, .sidebar-nav-item.active i.fa-duotone,
.sidebar-subitem:hover i.fa-duotone, .sidebar-subitem.active i.fa-duotone {
  --fa-primary-color: #3b4763;
  --fa-secondary-color: #334155;
}

/* Mobile footer refinements */


/* Respect safe-area for bottom island nav */
@supports (padding: max(0px)) {
  
}
/* Lumes page styles and animations */
.lumes-page { padding-bottom: 28px; }
.lumes-hero { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 12px; background: linear-gradient(135deg, #f0f6ff, #e9f0ff); border: 1px solid #e4ecff; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06); margin-bottom: 18px; }
.lumes-logo { width: 56px; height: 56px; }
.lumes-hero-text h1 { margin: 0; font-size: 28px; line-height: 1.2; }
.lumes-subtitle { margin-top: 4px; color: #5b6b87; }

.lumes-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 18px; }
.lumes-card { background: #fff; border: 1px solid #e5eaf5; border-radius: 12px; padding: 16px; box-shadow: 0 1px 2px rgba(16,24,40,0.06); }
.balance-card .balance-amount { font-size: 32px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.balance-card .balance-desc { color: #667085; }
.info-title { font-weight: 600; margin-bottom: 6px; }
.info-text { color: #475467; }

.lumes-history { margin-top: 8px; }
.lumes-history h2 { margin: 0 0 12px; }
.lumes-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.lumes-table thead th { font-weight: 600; color: #344054; background: #f8fafc; border-bottom: 1px solid #e5eaf5; }
.lumes-table th, .lumes-table td { border-bottom: 1px solid #eef2f7; padding: 12px 10px; text-align: left; }
.lumes-kind { font-weight: 600; color: #475467; }
.amount-pos { color: #0a7b0a; font-weight: 600; }
.amount-neg { color: #b00020; font-weight: 600; }



/* Balance pulse animation */
@keyframes balancePulse {
  0% { transform: scale(1); background-color: transparent; }
  20% { transform: scale(1.05); background-color: rgba(226, 247, 255, 0.8); }
  100% { transform: scale(1); background-color: transparent; }
}
.balance-amount.pulse { animation: balancePulse 800ms ease; border-radius: 8px; }

/* Filters UI */
.lumes-filters { display: flex; gap: 12px; align-items: end; margin: 12px 0 14px; flex-wrap: wrap; }
/* Lumes — dark theme overrides */
.theme-dark .lumes-hero {
  background: linear-gradient(135deg, rgba(17,24,39,0.85), rgba(2,6,23,0.65));
  border-color: var(--border);
}
.theme-dark .lumes-subtitle { color: var(--muted); }
.theme-dark .lumes-card { background: var(--surface); border-color: var(--border); }
.theme-dark .info-text { color: var(--muted); }
.theme-dark .lumes-table thead th { background: #0b1220; color: var(--text); border-bottom-color: var(--border); }
.theme-dark .lumes-table th, .theme-dark .lumes-table td { border-bottom-color: var(--border); color: var(--text); }
.theme-dark .amount-pos { color: #86efac; }
.theme-dark .amount-neg { color: #fca5a5; }
.filter-item { display: flex; flex-direction: column; gap: 6px; }
.filter-item label { font-size: 12px; color: #667085; }
.filter-item select, .filter-item input[type="date"] { height: 36px; padding: 6px 8px; border: 1px solid #e5eaf5; border-radius: 8px; background: #fff; color: #344054; }
.user-dropdown-menu.open { display: block; }
.user-dropdown-menu { z-index: 1105; }

/* =========================================
   Styles moved from header.php
   ========================================= */
/* Глобально отключаем горизонтальную прокрутку */
html, body { overflow-x: hidden; }

/* Переключатель (switch) для уведомлений */
.notif-switch { position: relative; display: inline-block; width: 38px; height: 20px; }
.notif-switch input { opacity: 0; width: 0; height: 0; }
.notif-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #d1d5db; transition: .18s; border-radius: 20px; }
.notif-slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 2px; bottom: 2px; background-color: #fff; transition: .18s; border-radius: 50%; box-shadow: 0 1px 2px rgba(0,0,0,0.15); }
.notif-switch input:checked + .notif-slider { background-color: #2563eb; }
.notif-switch input:checked + .notif-slider:before { transform: translateX(18px); }
.notif-switch.disabled .notif-slider { opacity: .6; pointer-events: none; }
.status-pill { padding: 2px 8px; border-radius: 12px; background: #f3f4f6; font-size: 11px; color: #111827; }

/* Премиум бэйдж — светлая/тёмная тема (Overrides) */
.badge-premium { display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border-radius:999px; background:#fff7ed; color:#9a3412; border:1px solid #f59e0b; box-shadow: 0 2px 8px rgba(245,158,11,0.18); }
.badge-premium i.fa-duotone { --fa-primary-color:#f59e0b; --fa-secondary-color:#fef3c7; --fa-secondary-opacity:.85; }
.theme-dark .badge-premium { background: rgba(245,158,11,0.12); color:#fbbf24; border-color:#f59e0b; box-shadow: none; }
.theme-dark .badge-premium i.fa-duotone { --fa-primary-color:#fbbf24; --fa-secondary-color:#78350f; --fa-secondary-opacity:.65; }

.btn-premium { display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border-radius:999px; border:1px solid #f59e0b; color:#9a3412; background:#fff7ed; }
.btn-premium:hover { background:#fffbeb; }
.theme-dark .btn-premium { color:#fbbf24; border-color:#f59e0b; background: rgba(245,158,11,0.12); }
.theme-dark .btn-premium:hover { background: rgba(245,158,11,0.18); }

/* =========================================
   Styles moved from footer.php (Confirm Modal)
   ========================================= */
.um-confirm-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 1000; }
.um-confirm-modal[hidden] { display: none; }
.um-confirm-modal.active { display: flex; }
.um-confirm-backdrop { position: absolute; inset: 0; background: rgba(17,24,39,0.45); backdrop-filter: blur(2px); }
.theme-dark .um-confirm-backdrop { background: rgba(2,6,23,0.65); }

.um-confirm-dialog {
  position: relative; z-index: 1001;
  width: 92%; max-width: 420px;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
  border: 1px solid var(--border);
  color: var(--text);
  transform: translateY(6px) scale(0.98);
  opacity: 0;
  transition: transform .18s cubic-bezier(0.22, 1, 0.36, 1), opacity .18s cubic-bezier(0.22, 1, 0.36, 1);
}
.um-confirm-modal.active .um-confirm-dialog { transform: none; opacity: 1; }
.theme-dark .um-confirm-dialog { box-shadow: 0 16px 40px rgba(2,6,23,0.45); }

.um-confirm-title { font-weight: 600; font-size: 18px; padding: 16px 18px 8px; color: var(--text); }
.um-confirm-body { padding: 0 18px 14px; color: var(--muted); }
.um-confirm-actions { display: flex; gap: 10px; justify-content: flex-end; padding: 12px 18px 16px; border-top: 1px solid var(--border); }
.um-confirm-actions .btn { min-width: 92px; }
.um-confirm-actions .btn-secondary, .um-confirm-actions .btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.um-confirm-actions .btn-secondary:hover, .um-confirm-actions .btn-outline:hover { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,246,0.12); }
.um-confirm-actions .btn-danger { background: #ef4444; border-color: #ef4444; color: #fff; }

.um-confirm-close {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--border); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, box-shadow .15s ease, color .15s ease;
}
.um-confirm-close:hover { background: var(--bg); color: var(--text); box-shadow: 0 2px 8px rgba(2,6,23,0.12); }
.theme-dark .um-confirm-close:hover { background: rgba(148,163,184,0.12); }
