/* ==============================================================================
   CloudLink Pro - Global Style Guide & Design Tokens (Excel Mode & Layout Fixed)
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette Tokens */
  --bg-primary: #0A0E1A;
  --bg-card: rgba(21, 27, 46, 0.85);
  --bg-card-solid: #151B2E;
  --border-color: #1F2940;
  --border-excel: #232D42;
  --border-light: rgba(255, 255, 255, 0.08);

  --accent-primary: #8B5CF6;
  --accent-hover: #7C3AED;
  --accent-gradient: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
  --accent-glow: 0 0 20px rgba(139, 92, 246, 0.35);

  --excel-green: #10B981;
  --excel-gradient: linear-gradient(135deg, #10B981 0%, #059669 100%);
  --pdf-gradient: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);

  --success: #10B981;
  --success-bg: rgba(16, 185, 129, 0.14);
  --warning: #F59E0B;
  --warning-bg: rgba(245, 158, 11, 0.14);
  --danger: #EF4444;
  --danger-bg: rgba(239, 68, 68, 0.14);
  --info: #3B82F6;
  --info-bg: rgba(59, 130, 246, 0.14);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  /* Fonts */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radii & Shadows */
  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-badge: 6px;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.45);

  --sidebar-width: 240px;
  --sidebar-collapsed: 72px;
  --topbar-height: 64px;
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
}

/* Layout App Container */
#app {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* -----------------------------------------------------------------------------
   SIDEBAR NAVIGATION (Fixed Layout)
   ----------------------------------------------------------------------------- */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-card-solid);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: width 200ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed);
}

.sidebar-logo {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.sidebar-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  box-shadow: var(--accent-glow);
  flex-shrink: 0;
}

.sidebar-logo-text {
  font-weight: 700;
  font-size: 17px;
  background: linear-gradient(135deg, #fff 0%, #CBD5E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  transition: opacity 150ms ease;
}

.sidebar.collapsed .sidebar-logo-text {
  opacity: 0;
  pointer-events: none;
}

.sidebar-menu {
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-btn);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 150ms ease;
  position: relative;
  white-space: nowrap;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.menu-item.active {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-primary);
  font-weight: 600;
}

.menu-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--accent-primary);
  border-radius: 0 4px 4px 0;
}

.menu-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.menu-title {
  transition: opacity 150ms ease;
}
.sidebar.collapsed .menu-title {
  display: none;
}

.menu-badge {
  margin-left: auto;
  background: var(--accent-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
}
.sidebar.collapsed .menu-badge {
  display: none;
}

/* -----------------------------------------------------------------------------
   MAIN CONTENT AREA & TOPBAR
   ----------------------------------------------------------------------------- */
.main-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: margin-left 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.main-wrapper.expanded {
  margin-left: var(--sidebar-collapsed);
}

.topbar {
  height: var(--topbar-height);
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sidebar-toggle {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  transition: all 150ms ease;
}
.sidebar-toggle:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

/* Cmd+K Search trigger */
.search-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #151B2E;
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  width: 260px;
  transition: border-color 150ms ease;
}
.search-trigger:hover {
  border-color: var(--accent-primary);
  color: var(--text-secondary);
}
.kbd-shortcut {
  margin-left: auto;
  background: #1F2940;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.notif-bell {
  position: relative;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
}
.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  background: var(--danger);
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-primary);
}
.user-name {
  font-size: 14px;
  font-weight: 600;
}

.content-container {
  padding: 28px;
  flex: 1;
}

.page-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

/* -----------------------------------------------------------------------------
   COMPONENTS: BENTO GRID & CARDS
   ----------------------------------------------------------------------------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-value {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 8px;
}

.card-footer {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }

/* Progress bar */
.progress-track {
  width: 100%;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  margin: 12px 0;
}
.progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 4px;
  transition: width 500ms ease;
}

/* Circular SVG Progress */
.circle-progress-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto;
}
.circle-progress-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}
.circle-bg {
  stroke: var(--border-color);
  stroke-width: 8;
  fill: none;
}
.circle-fill {
  stroke: var(--success);
  stroke-width: 8;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 283;
  stroke-dashoffset: 16;
  transition: stroke-dashoffset 800ms ease;
}
.circle-value {
  position: absolute;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Terminal Monitor Box */
.terminal-box {
  background: #070A12;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.log-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
  animation: fadeIn 200ms ease-out;
}
.log-time { color: var(--text-muted); flex-shrink: 0; }
.log-icon { flex-shrink: 0; }
.log-msg { color: var(--text-secondary); word-break: break-all; }

/* Status Dot Pulse */
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}
.status-dot.connected {
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
}
.status-dot.connected::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--success);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* -----------------------------------------------------------------------------
   BUTTONS & BADGES
   ----------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 150ms ease;
  border: none;
  outline: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}
.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  background: #151B2E;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: var(--border-color);
}

.btn-excel {
  background: var(--excel-gradient);
  color: #fff;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.3);
}
.btn-excel:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.btn-pdf {
  background: var(--pdf-gradient);
  color: #fff;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.3);
}
.btn-pdf:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
  background: var(--danger);
  color: #fff;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-badge);
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}
.badge-active, .badge-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.badge-pending, .badge-processing {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.badge-processing {
  animation: pulseBadge 2s infinite;
}
.badge-failed, .badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

@keyframes pulseBadge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* -----------------------------------------------------------------------------
   EXCEL SPREADSHEET MODE DATA TABLES (Clean Crisp Gridlines & High Legibility)
   ----------------------------------------------------------------------------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--border-excel);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
  background: #0E1422;
}

/* Excel Grid Header */
.data-table th {
  padding: 12px 14px;
  background: linear-gradient(180deg, #1C253B 0%, #151D2F 100%);
  border-bottom: 2px solid #3B4D72;
  border-right: 1px solid var(--border-excel);
  color: #CBD5E1;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
  user-select: none;
}
.data-table th:last-child {
  border-right: none;
}

/* Excel Grid Cells & Zebra Striping */
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-excel);
  border-right: 1px solid var(--border-excel);
  color: var(--text-primary);
  vertical-align: middle;
  white-space: nowrap;
}
.data-table td:last-child {
  border-right: none;
}

.data-table tbody tr:nth-child(odd) {
  background: #151D2F;
}
.data-table tbody tr:nth-child(even) {
  background: #111726;
}

.data-table tbody tr:hover {
  background: #1E2840 !important;
  border-left: 3px solid var(--accent-primary);
}

.data-table tr.selected {
  background: rgba(139, 92, 246, 0.18) !important;
  border-left: 3px solid var(--accent-primary);
}

/* Custom Styled Checkboxes */
.excel-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #3B4D72;
  border-radius: 4px;
  background: #0B0F19;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  vertical-align: middle;
  transition: all 150ms ease;
}

.excel-checkbox:checked {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.excel-checkbox:checked::after {
  content: '✓';
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* Monospace Cell Styles */
.cell-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #CBD5E1;
}

/* Bulk Action Bar */
.bulk-bar {
  position: sticky;
  top: var(--topbar-height);
  z-index: 80;
  background: #1F2940;
  border-bottom: 2px solid var(--accent-primary);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  margin-bottom: 16px;
  animation: slideDown 250ms ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Filter controls */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.input-text, .select-input {
  background: #151B2E;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 9px 14px;
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 150ms ease;
}
.input-text:focus, .select-input:focus {
  border-color: var(--accent-primary);
}

/* -----------------------------------------------------------------------------
   SLIDE-OVER DRAWER (Job Log Details)
   ----------------------------------------------------------------------------- */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  opacity: 0;
  transition: opacity 300ms ease;
}

.drawer-overlay.active {
  display: block;
  opacity: 1;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 480px;
  max-width: 90vw;
  background: #0A0E1A;
  border-left: 1px solid var(--border-color);
  z-index: 210;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -8px 0 32px rgba(0,0,0,0.5);
}

.drawer.active {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-body {
  padding: 24px;
  flex: 1;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* -----------------------------------------------------------------------------
   MODALS (Cmd+K Search & Add Domain)
   ----------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  width: 560px;
  max-width: 100%;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  animation: modalScale 200ms ease-out;
}

@keyframes modalScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 24px;
}

/* -----------------------------------------------------------------------------
   TOAST NOTIFICATIONS
   ----------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #151B2E;
  border: 1px solid var(--border-color);
  padding: 14px 20px;
  border-radius: var(--radius-btn);
  color: var(--text-primary);
  font-size: 13px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastSlide 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }

@keyframes toastSlide {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Tab Navigation */
.tabs-nav {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.tab-btn {
  padding: 12px 4px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  transition: color 150ms ease;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--accent-primary);
  font-weight: 600;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-primary);
  border-radius: 3px 3px 0 0;
}

/* -----------------------------------------------------------------------------
   RESPONSIVE BREAKPOINTS
   ----------------------------------------------------------------------------- */
@media (max-width: 1400px) {
  .kpi-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 1280px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .span-3 {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .search-trigger {
    width: 180px;
  }
  .search-trigger span {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: var(--sidebar-collapsed);
  }
  .main-wrapper {
    margin-left: var(--sidebar-collapsed);
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .span-2, .span-3 {
    grid-column: span 1;
  }
  .kpi-grid {
    grid-template-columns: 1fr !important;
  }
}

/* -----------------------------------------------------------------------------
   SETTINGS REDESIGN STYLES
   ----------------------------------------------------------------------------- */
.tabs-segmented {
  display: flex;
  gap: 8px;
  background: var(--bg-card);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.stab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.stab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}
.stab-btn.active {
  background: var(--accent-gradient);
  color: #ffffff;
  font-weight: 600;
  box-shadow: var(--accent-glow);
}

.settings-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

@media (max-width: 1024px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon-wrapper i {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.input-icon-wrapper input {
  padding-left: 42px !important;
}

/* Custom Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .3s;
  border-radius: 24px;
  border: 1px solid var(--border-color);
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: .3s;
  border-radius: 50%;
}

/* -----------------------------------------------------------------------------
   BULLETPROOF GLASSMORPHISM LOGIN / LANDING SYSTEM
   ----------------------------------------------------------------------------- */
.landing-container {
  min-height: 100vh;
  width: 100%;
  background: radial-gradient(circle at 50% 30%, #1e1b4b 0%, #0f172a 65%, #070a12 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  overflow-x: hidden;
  color: var(--text-primary);
  z-index: 9999;
}

.landing-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
}
.glow-1 {
  width: 600px;
  height: 600px;
  background: rgba(99, 102, 241, 0.22);
  top: -150px;
  left: calc(50% - 500px);
}
.glow-2 {
  width: 600px;
  height: 600px;
  background: rgba(168, 85, 247, 0.18);
  bottom: -150px;
  right: calc(50% - 500px);
}

.landing-auth-wrapper {
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 10;
}

.landing-brand-header {
  text-align: center;
  margin-bottom: 24px;
}
.landing-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.landing-logo-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-gradient);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}
.landing-logo-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.landing-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 36px 32px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.landing-card-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}
.landing-card-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 24px;
}

.landing-features-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.pill-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: var(--text-secondary);
}

input:checked + .toggle-slider {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}
input:checked + .toggle-slider:before {
  transform: translateX(20px);
}
