/* BOTZL rental web final skin pass - XVPS inspired dark UI */
:root {
  --xvps-bg: #0a0a0a;
  --xvps-bg-soft: #101010;
  --xvps-surface: #171717;
  --xvps-surface-2: #1f1f1f;
  --xvps-surface-3: #262626;
  --xvps-border: rgba(255,255,255,.10);
  --xvps-border-strong: rgba(255,255,255,.16);
  --xvps-text: #fafafa;
  --xvps-muted: #a1a1a1;
  --xvps-soft: #d4d4d4;
  --xvps-brand: #7c3aed;
  --xvps-brand-2: #9333ea;
  --xvps-brand-soft: rgba(124,58,237,.16);
  --xvps-green: #22c55e;
  --xvps-red: #fb7185;
}

body.rental-shell-page *,
body.botzl-dashboard *,
body.admin-shell-page * {
  text-shadow: none !important;
  letter-spacing: 0 !important;
}

body.rental-shell-page,
body.botzl-dashboard,
body.admin-shell-page {
  background: var(--xvps-bg) !important;
  color: var(--xvps-text) !important;
}

body.rental-shell-page::before,
body.botzl-dashboard::before {
  background:
    radial-gradient(900px 460px at 58% -12%, rgba(124,58,237,.22), transparent 64%),
    linear-gradient(180deg, #0a0a0a 0%, #111 52%, #0a0a0a 100%) !important;
}

body.rental-shell-page .container {
  color: var(--xvps-text) !important;
}

.rental-sidebar,
.rental-topbar,
.dash-sidebar,
.dash-topbar,
body.admin-shell-page nav,
body.admin-shell-page nav .sidebar {
  background: rgba(10,10,10,.94) !important;
  border-color: var(--xvps-border) !important;
  box-shadow: none !important;
}

.shell-brand,
.shell-brand-logo,
.shell-account-logo,
.dash-brand,
.dash-brand-icon,
.dash-user-pill span {
  background: transparent !important;
  border-color: var(--xvps-border) !important;
  box-shadow: none !important;
}

.shell-brand-logo img,
.shell-account-logo img,
.dash-brand-icon img,
.dash-user-pill img {
  object-fit: contain !important;
}

.shell-link,
.shell-submenu a,
.shell-logout,
.dash-link,
.dash-submenu a,
.dash-logout,
body.admin-shell-page nav .nav-link {
  color: var(--xvps-soft) !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}

.shell-link:hover,
.shell-link.active,
.shell-submenu a:hover,
.shell-submenu a.active,
.shell-group-title,
.dash-link:hover,
.dash-link.active,
.dash-submenu a:hover,
.dash-submenu a.active,
.dash-group-title,
body.admin-shell-page nav .nav-link:hover,
body.admin-shell-page nav .nav-link.active {
  background: var(--xvps-brand-soft) !important;
  border-color: rgba(124,58,237,.34) !important;
  color: var(--xvps-text) !important;
}

.shell-section,
.dash-section,
.shell-breadcrumb,
.dash-breadcrumb,
.shell-brand small,
.dash-brand small,
.shell-link i,
.dash-link i,
body.admin-shell-page nav .icon {
  color: var(--xvps-muted) !important;
  opacity: 1 !important;
}

.shell-brand b,
.dash-brand b,
.shell-account,
.dash-wallet-pill,
.dash-user-pill,
.shell-breadcrumb b,
.dash-breadcrumb b,
body.admin-shell-page nav .logo-name {
  color: var(--xvps-text) !important;
}

/* Dark every old white card/table/form surface on shell pages */
body.rental-shell-page [style*="background:#fff;"],
body.rental-shell-page [style*="background: #fff;"],
body.rental-shell-page [style*="background:#ffffff"],
body.rental-shell-page [style*="background: #ffffff"],
body.rental-shell-page [style*="background:#f8fafc"],
body.rental-shell-page [style*="background: #f8fafc"],
body.rental-shell-page [style*="background:#eef2ff"],
body.rental-shell-page [style*="background: #eef2ff"],
body.rental-shell-page .deposit-card,
body.rental-shell-page .pay-card,
body.rental-shell-page .history-panel,
body.rental-shell-page .history-panel-head,
body.rental-shell-page .bot-list-panel,
body.rental-shell-page .bot-empty,
body.rental-shell-page .bot-status-card,
body.rental-shell-page .profile-card,
body.rental-shell-page .profile-avatar,
body.rental-shell-page .profile-balance,
body.rental-shell-page .profile-status-box,
body.rental-shell-page .ref-card,
body.rental-shell-page .ref-copy-box,
body.rental-shell-page .ref-empty-icon,
body.rental-shell-page .settings-card,
body.rental-shell-page .toggle-group,
body.rental-shell-page .manage-header,
body.rental-shell-page .panel,
body.rental-shell-page .panel-section,
body.rental-shell-page .card,
body.rental-shell-page .section-card,
body.rental-shell-page .theme-card,
body.rental-shell-page .console,
body.rental-shell-page .page-hero,
body.rental-shell-page .bot-section,
body.rental-shell-page .bots-section,
body.rental-shell-page .uptime-card,
body.rental-shell-page .plan-card,
body.rental-shell-page .copy-row,
body.rental-shell-page .info-row,
body.rental-shell-page .qr-placeholder,
body.rental-shell-page .deposit-tabs,
body.rental-shell-page .history-tabs,
body.rental-shell-page .amount-option,
body.rental-shell-page input,
body.rental-shell-page select,
body.rental-shell-page textarea,
body.rental-shell-page table,
body.rental-shell-page th,
body.rental-shell-page td {
  background: var(--xvps-surface) !important;
  border-color: var(--xvps-border) !important;
  color: var(--xvps-text) !important;
  box-shadow: none !important;
}

body.rental-shell-page th,
body.rental-shell-page .history-table th,
body.rental-shell-page .bot-table th,
body.rental-shell-page .ref-table th {
  background: var(--xvps-surface-2) !important;
  color: var(--xvps-muted) !important;
}

body.rental-shell-page td,
body.rental-shell-page .history-table td,
body.rental-shell-page .bot-table td,
body.rental-shell-page .ref-table td {
  border-color: rgba(255,255,255,.08) !important;
}

body.rental-shell-page tr:hover td {
  background: var(--xvps-surface-2) !important;
}

body.rental-shell-page h1,
body.rental-shell-page h2,
body.rental-shell-page h3,
body.rental-shell-page h4,
body.rental-shell-page b,
body.rental-shell-page strong,
body.rental-shell-page label,
body.rental-shell-page .history-head h1,
body.rental-shell-page .history-panel-head h2,
body.rental-shell-page .history-empty b,
body.rental-shell-page .bot-title h1,
body.rental-shell-page .bot-empty b,
body.rental-shell-page .bot-status-card b,
body.rental-shell-page .profile-name-row h1,
body.rental-shell-page .profile-balance b,
body.rental-shell-page .profile-info b,
body.rental-shell-page .profile-status h2,
body.rental-shell-page .profile-status-box b,
body.rental-shell-page .security-panel h2,
body.rental-shell-page .ref-head h1,
body.rental-shell-page .ref-card h1,
body.rental-shell-page .ref-card h2,
body.rental-shell-page .ref-empty b {
  color: var(--xvps-text) !important;
}

body.rental-shell-page p,
body.rental-shell-page small,
body.rental-shell-page span,
body.rental-shell-page .history-head p,
body.rental-shell-page .history-refresh,
body.rental-shell-page .history-empty,
body.rental-shell-page .bot-title p,
body.rental-shell-page .bot-empty p,
body.rental-shell-page .bot-status-card span,
body.rental-shell-page .bot-name small,
body.rental-shell-page .profile-email,
body.rental-shell-page .profile-balance span,
body.rental-shell-page .profile-info span,
body.rental-shell-page .profile-status-box span,
body.rental-shell-page .profile-status-box small,
body.rental-shell-page .security-panel p,
body.rental-shell-page .ref-head p,
body.rental-shell-page .ref-link-card p,
body.rental-shell-page .ref-empty span,
body.rental-shell-page .status-text,
body.rental-shell-page .status-text code {
  color: var(--xvps-muted) !important;
}

body.rental-shell-page a,
body.rental-shell-page .history-icon,
body.rental-shell-page .ref-head-icon,
body.rental-shell-page .ref-copy-box i,
body.rental-shell-page .bot-title i,
body.rental-shell-page .bot-name i {
  color: #a78bfa !important;
}

body.rental-shell-page button,
body.rental-shell-page .btn,
body.rental-shell-page .add-bot-btn,
body.rental-shell-page .bot-mini-btn,
body.rental-shell-page .ref-copy-btn,
body.rental-shell-page .deposit-submit,
body.rental-shell-page .copy-btn,
body.rental-shell-page .ghost-btn,
body.rental-shell-page .profile-tabs button,
body.rental-shell-page .history-tabs a,
body.rental-shell-page .btn-theme {
  border-radius: 10px !important;
  border-color: var(--xvps-border-strong) !important;
  box-shadow: none !important;
}

body.rental-shell-page .add-bot-btn,
body.rental-shell-page .bot-mini-btn.primary,
body.rental-shell-page .ref-copy-btn,
body.rental-shell-page .deposit-submit,
body.rental-shell-page .profile-tabs button.active,
body.rental-shell-page .history-tabs a.active,
body.rental-shell-page .deposit-tabs a.active,
body.rental-shell-page .btn.primary,
body.rental-shell-page .btn-theme.primary,
body.rental-shell-page .security-form button {
  background: linear-gradient(135deg, var(--xvps-brand), var(--xvps-brand-2)) !important;
  border-color: transparent !important;
  color: #fff !important;
}

body.rental-shell-page .profile-badge,
body.rental-shell-page .balance-status,
body.rental-shell-page .qr-state,
body.rental-shell-page .bot-pill.running,
body.rental-shell-page .security-message.success {
  background: rgba(34,197,94,.13) !important;
  border-color: rgba(34,197,94,.28) !important;
  color: #86efac !important;
}

body.rental-shell-page .bot-pill.stopped,
body.rental-shell-page .security-message.error {
  background: rgba(251,113,133,.13) !important;
  border-color: rgba(251,113,133,.28) !important;
  color: #fda4af !important;
}

body.rental-shell-page .toggle-slider {
  background: #3f3f46 !important;
}

body.rental-shell-page input:checked + .toggle-slider {
  background: var(--xvps-brand) !important;
}

body.rental-shell-page .ref-total {
  background: linear-gradient(135deg, #6d28d9, #9333ea) !important;
  color: #fff !important;
}

body.rental-shell-page .ref-total span,
body.rental-shell-page .ref-total b,
body.rental-shell-page .ref-total small {
  color: #fff !important;
}

/* Dashboard home */
body.botzl-dashboard .dash-card,
body.botzl-dashboard .dash-stat-card,
body.botzl-dashboard .dash-panel,
body.botzl-dashboard .dash-quick-card,
body.botzl-dashboard .dash-bot-row,
body.botzl-dashboard .activity-item,
body.botzl-dashboard .dash-wallet-pill,
body.botzl-dashboard .dash-user-pill,
body.botzl-dashboard .dash-btn.secondary,
body.botzl-dashboard [class*="card"],
body.botzl-dashboard [class*="panel"] {
  background: var(--xvps-surface) !important;
  border-color: var(--xvps-border) !important;
  color: var(--xvps-text) !important;
  box-shadow: none !important;
}

body.botzl-dashboard h1,
body.botzl-dashboard h2,
body.botzl-dashboard h3,
body.botzl-dashboard h4,
body.botzl-dashboard b,
body.botzl-dashboard strong,
body.botzl-dashboard .stat-number {
  color: var(--xvps-text) !important;
}

body.botzl-dashboard p,
body.botzl-dashboard small,
body.botzl-dashboard span,
body.botzl-dashboard .stat-label,
body.botzl-dashboard .dash-eyebrow {
  color: var(--xvps-muted) !important;
}

body.botzl-dashboard .dash-btn.primary,
body.botzl-dashboard .dash-primary,
body.botzl-dashboard a[href="/bot/create"] {
  background: linear-gradient(135deg, var(--xvps-brand), var(--xvps-brand-2)) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* Admin pages */
body.admin-shell-page .dashboard-container,
body.admin-shell-page .main-layout,
body.admin-shell-page .admin-section,
body.admin-shell-page .admin-card,
body.admin-shell-page .user-info-card,
body.admin-shell-page .stat-card,
body.admin-shell-page .quick-actions,
body.admin-shell-page .action-card,
body.admin-shell-page .admin-table-wrapper,
body.admin-shell-page .admin-table,
body.admin-shell-page .toolbar,
body.admin-shell-page .admin-toolbar,
body.admin-shell-page .panel,
body.admin-shell-page .card {
  background: var(--xvps-surface) !important;
  border-color: var(--xvps-border) !important;
  color: var(--xvps-text) !important;
  box-shadow: none !important;
}

body.admin-shell-page .admin-table th,
body.admin-shell-page .admin-table td,
body.admin-shell-page .table th,
body.admin-shell-page .table td {
  background: var(--xvps-surface) !important;
  border-color: rgba(255,255,255,.08) !important;
  color: var(--xvps-text) !important;
}

body.admin-shell-page .admin-table th,
body.admin-shell-page .table th {
  background: var(--xvps-surface-2) !important;
  color: var(--xvps-muted) !important;
}

body.admin-shell-page .dashboard-container h1,
body.admin-shell-page .dashboard-container h2,
body.admin-shell-page .dashboard-container h3,
body.admin-shell-page .dashboard-container h4,
body.admin-shell-page .dashboard-container b {
  color: var(--xvps-text) !important;
}

body.admin-shell-page .dashboard-container p,
body.admin-shell-page .dashboard-container span,
body.admin-shell-page .dashboard-container small,
body.admin-shell-page .dashboard-container .stat-label,
body.admin-shell-page .dashboard-container .user-role {
  color: var(--xvps-muted) !important;
}

body.admin-shell-page .dashboard-container input,
body.admin-shell-page .dashboard-container select,
body.admin-shell-page .dashboard-container textarea,
body.admin-shell-page input#vndMin,
body.admin-shell-page input#vndMax {
  background: var(--xvps-surface-2) !important;
  border-color: var(--xvps-border) !important;
  color: var(--xvps-text) !important;
  box-shadow: none !important;
}

body.admin-shell-page .action-card:hover,
body.admin-shell-page .stat-card:hover,
body.admin-shell-page .admin-table tr:hover td {
  background: var(--xvps-surface-2) !important;
}

body.admin-shell-page .dashboard-container button,
body.admin-shell-page .dashboard-container .btn {
  border-radius: 10px !important;
  box-shadow: none !important;
}

body.admin-shell-page .dashboard-container .btn-primary,
body.admin-shell-page .dashboard-container .primary {
  background: linear-gradient(135deg, var(--xvps-brand), var(--xvps-brand-2)) !important;
  color: #fff !important;
  border-color: transparent !important;
}

@media (max-width: 900px) {
  body.rental-shell-page .container,
  body.botzl-dashboard .dash-content {
    padding-inline: 14px !important;
  }

  body.rental-shell-page .history-panel-head,
  body.rental-shell-page .profile-hero,
  body.rental-shell-page .ref-link-card,
  body.rental-shell-page .profile-status,
  body.rental-shell-page .security-panel {
    padding: 20px !important;
  }
}

/* Final polish for remaining rough pages */
body.rental-shell-page .btn:disabled,
body.rental-shell-page button:disabled,
body.rental-shell-page .btn.secondary:disabled {
  background: rgba(124,58,237,.28) !important;
  border-color: rgba(124,58,237,.34) !important;
  color: rgba(255,255,255,.72) !important;
  cursor: not-allowed !important;
}

body.rental-shell-page .btn.secondary,
body.rental-shell-page .ghost-btn,
body.rental-shell-page .copy-btn,
body.rental-shell-page .bot-mini-btn:not(.primary) {
  background: var(--xvps-surface-2) !important;
  color: var(--xvps-text) !important;
}

body.admin-shell-page.page-admin-users {
  zoom: 1 !important;
}

body.admin-shell-page.page-admin-users .dashboard-container {
  max-width: 1180px !important;
  padding-top: 5.5rem !important;
  padding-inline: 1.25rem !important;
}

body.admin-shell-page.page-admin-users .main-layout {
  display: block !important;
  margin: 0 !important;
}

body.admin-shell-page.page-admin-users .left-column,
body.admin-shell-page.page-admin-users .right-column {
  width: 100% !important;
  max-width: none !important;
}

body.admin-shell-page.page-admin-users .user-info-card {
  padding: 30px !important;
  border-radius: 10px !important;
}

body.admin-shell-page.page-admin-users .admin-toolbar {
  display: grid !important;
  gap: 12px !important;
}

body.admin-shell-page.page-admin-users .toolbar-row,
body.admin-shell-page.page-admin-users .toolbar-row-primary,
body.admin-shell-page.page-admin-users .toolbar-row-secondary {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
}

body.admin-shell-page.page-admin-users .search-input {
  min-width: 280px !important;
  flex: 1 1 360px !important;
}

body.admin-shell-page.page-admin-users .filter-select {
  min-width: 160px !important;
}

body.admin-shell-page.page-admin-users .admin-table-wrapper.users {
  width: 100% !important;
  overflow-x: auto !important;
  border-radius: 10px !important;
}

body.admin-shell-page.page-admin-users .admin-table {
  width: 100% !important;
  min-width: 880px !important;
}

body.admin-shell-page.page-admin-users .pagination-controls {
  justify-content: center !important;
  gap: 16px !important;
  margin-top: 18px !important;
}

body.admin-shell-page .notification-popup,
body.admin-shell-page .edit-user-modal {
  background: var(--xvps-surface) !important;
  border: 1px solid var(--xvps-border) !important;
  color: var(--xvps-text) !important;
  box-shadow: 0 24px 80px rgba(0,0,0,.42) !important;
}
