/* Global CSS Variables for Curated Slate & Electrical Blue Palette */
:root {
  --font-title: 'Outfit', 'Segoe UI', sans-serif;
  --font-ui: 'Inter', system-ui, -apple-system, sans-serif;

  /* Theme colors - Dark Theme Default */
  --bg-app: #0b0f19;
  --bg-card: rgba(18, 25, 41, 0.7);
  --bg-input: rgba(10, 14, 23, 0.9);
  --border-glass: rgba(255, 255, 255, 0.06);
  --border-focus: #00e5ff;
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --neon-blue: #00d2ff;
  --neon-green: #00ff88;
  --neon-red: #ff3366;
  --neon-yellow: #ffd000;

  --badge-std-bg: rgba(0, 210, 255, 0.15);
  --badge-std-txt: #38bdf8;
  --badge-csdm-bg: rgba(0, 255, 136, 0.15);
  --badge-csdm-txt: #34d399;

  --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-neon: 0 0 15px rgba(0, 210, 255, 0.35);

  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-ui);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Mesh Gradient Background */
.mesh-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background-image: 
    radial-gradient(at 10% 10%, rgba(0, 210, 255, 0.1) 0px, transparent 50%),
    radial-gradient(at 90% 10%, rgba(0, 255, 136, 0.05) 0px, transparent 50%),
    radial-gradient(at 50% 80%, rgba(11, 15, 25, 1) 0px, transparent 100%);
  background-size: cover;
  pointer-events: none;
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-app);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-blue);
}

/* App Container */
.app-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Main Header */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-premium);
  overflow: visible;
  position: relative;
  z-index: 100;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-icon {
  background: linear-gradient(135deg, var(--neon-blue), #0066ff);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  color: #fff;
  box-shadow: var(--shadow-neon);
  animation: pulse 2s infinite alternate;
}

.logo-text h1 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #fff, #9ca3af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vault-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--neon-blue);
  letter-spacing: 2px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 25px;
}

/* Bilingual Switch Toggle */
.lang-switch-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 12px;
  border-radius: 30px;
  border: 1px solid var(--border-glass);
}

.lang-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.active-lang {
  color: var(--neon-blue);
  text-shadow: 0 0 8px rgba(0, 210, 255, 0.4);
}

.switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #374151;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--neon-blue);
}

input:checked + .slider:before {
  transform: translateX(14px);
}

/* User Badge */
.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
}

.user-badge i {
  color: var(--neon-blue);
}

/* Viewport structure */
.view-viewport {
  position: relative;
  min-height: 700px;
}

.view-section {
  display: none;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.4s ease-out forwards;
}

.view-section.active-view {
  display: flex;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-lg {
  padding: 14px 26px;
  font-size: 14px;
  border-radius: 12px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 11px;
  border-radius: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-blue), #0066ff);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-accent {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: white;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.btn-success {
  background: linear-gradient(135deg, var(--neon-green), #059669);
  color: #0c1913;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: #ef4444;
  color: #fff;
}

/* Welcome Banner */
.welcome-banner {
  background: radial-gradient(circle at top right, rgba(0, 210, 255, 0.08) 0%, rgba(18, 25, 41, 0.7) 100%);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-premium);
  position: relative;
  z-index: 10;
}

.welcome-text h2 {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 5px;
}

.welcome-text p {
  color: var(--text-secondary);
  font-size: 13px;
}

/* Dropdown Menu styling */
.btn-group {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #111827;
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  min-width: 250px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
  z-index: 100;
  overflow: hidden;
}

.dropdown-menu.active {
  display: flex;
  flex-direction: column;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--neon-blue);
}

.dropdown-menu a i {
  font-size: 16px;
}

/* Statistics widgets grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.12);
}

.stat-icon {
  background: rgba(255, 255, 255, 0.05);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  color: var(--neon-blue);
}

.stat-details {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
}

.stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Specific card highlights */
.border-draft { border-left: 4px solid var(--neon-blue); }
.border-submitted { border-left: 4px solid var(--neon-yellow); }
.border-billed { border-left: 4px solid var(--neon-green); }

.icon-draft { color: var(--neon-blue); }
.icon-submitted { color: var(--neon-yellow); }
.icon-billed { color: var(--neon-green); }

.text-draft { color: var(--neon-blue); }
.text-submitted { color: var(--neon-yellow); }
.text-billed { color: var(--neon-green); }

/* Table Dashboard Card */
.table-container-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 25px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-premium);
}

.table-header-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 20px;
}

.search-bar {
  position: relative;
  flex: 1;
}

.search-bar i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

.search-bar input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 12px 15px 12px 45px;
  font-size: 13px;
  color: var(--text-primary);
  font-family: var(--font-ui);
  transition: var(--transition-smooth);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
}

.filter-selectors {
  display: flex;
  gap: 15px;
}

.filter-selectors select {
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 13px;
  color: var(--text-primary);
  font-family: var(--font-ui);
  outline: none;
  cursor: pointer;
  min-width: 180px;
  transition: var(--transition-smooth);
}

.filter-selectors select:focus {
  border-color: var(--border-focus);
}

/* Premium Table design */
.premium-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.premium-table th {
  padding: 15px 20px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.1);
  letter-spacing: 1px;
}

.premium-table td {
  padding: 18px 20px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-glass);
  vertical-align: middle;
}

.premium-table tbody tr {
  transition: var(--transition-smooth);
}

.premium-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Row elements */
.empty-table-row {
  text-align: center;
  padding: 40px !important;
  color: var(--text-muted);
  font-style: italic;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.badge-draft { background: rgba(0, 210, 255, 0.1); color: var(--neon-blue); }
.badge-submitted { background: rgba(255, 208, 0, 0.1); color: var(--neon-yellow); }
.badge-approved { background: rgba(0, 255, 136, 0.1); color: var(--neon-green); }
.badge-billed { background: rgba(0, 255, 136, 0.2); color: var(--neon-green); border: 1px solid rgba(0, 255, 136, 0.3); }

.badge-standard { background: var(--badge-std-bg); color: var(--badge-std-txt); }
.badge-csdm { background: var(--badge-csdm-bg); color: var(--badge-csdm-txt); }

.form-item-title {
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
}

.form-item-type {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

.owner-cell {
  font-weight: 500;
}

.txt-center { text-align: center; }

/* Dashboard Actions */
.btn-table-action {
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition-smooth);
}

.btn-table-action:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--neon-blue);
}

.btn-table-delete:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

/* ================== FORM EDITORS LAYOUT ================== */
.editor-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.editor-title-area {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  margin-left: 20px;
}

.editor-inline-title {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid transparent;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
  width: 60%;
  padding: 4px 8px;
  transition: var(--transition-smooth);
}

.editor-inline-title:focus {
  outline: none;
  border-color: var(--neon-blue);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

.editor-action-buttons {
  display: flex;
  gap: 10px;
}

/* Form Editor 2-column Grid */
.form-editor-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
}

.form-card-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.shrink-column {
  width: 340px;
}

/* Premium Card */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 25px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-premium);
}

.card-title {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}

.card-title i {
  color: var(--neon-blue);
  font-size: 16px;
}

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

.card-header-with-btn .card-title {
  margin-bottom: 0;
}

/* Input Fields Grid layout */
.input-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 15px 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }

.form-group label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.12);
}

.status-select-highlight {
  font-weight: 700 !important;
}

.status-select-highlight option {
  font-weight: 600;
}

/* Form Tables */
.form-data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.form-data-table th {
  padding: 12px 15px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1.5px solid var(--border-glass);
}

.form-data-table td {
  padding: 10px 8px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-glass);
}

/* Form inputs in tables */
.form-data-table td input[type="text"],
.form-data-table td input[type="number"],
.form-data-table td input[type="date"],
.form-data-table td input[type="time"] {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: #fff;
  outline: none;
  transition: var(--transition-smooth);
}

.form-data-table td input:focus {
  border-color: var(--border-focus);
  background: rgba(0, 0, 0, 0.5);
}

/* Custom Table Row Totals */
.table-total-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 20px 10px 0;
  border-top: 1px solid var(--border-glass);
  margin-top: 15px;
}

.total-lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.total-val {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  color: var(--neon-green);
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.25);
}

/* Clean Canvas Draw Pad */
.signature-canvas-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
}

.sig-canvas {
  background: #ffffff;
  border-radius: 8px;
  cursor: crosshair;
  width: 100%;
  max-width: 300px;
  height: 150px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.clear-sig-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.clear-sig-btn:hover {
  color: var(--neon-red);
}

/* Photo Gallery Preview Uploader */
.photo-uploader-box {
  border: 2px dashed rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: var(--transition-smooth);
}

.photo-uploader-box:hover {
  border-color: var(--neon-blue);
  background: rgba(0, 210, 255, 0.02);
}

.photo-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.photo-upload-label i {
  font-size: 32px;
  color: var(--neon-blue);
  margin-bottom: 5px;
}

.photo-upload-label span {
  font-size: 13px;
  font-weight: 600;
}

.photo-upload-sub {
  font-size: 10px !important;
  color: var(--text-muted);
}

.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.photo-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-remove-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  cursor: pointer;
  font-size: 10px;
  transition: var(--transition-smooth);
}

.photo-remove-btn:hover {
  background: #ff3366;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 10px rgba(0, 210, 255, 0.2); }
  100% { box-shadow: 0 0 20px rgba(0, 210, 255, 0.5); }
}

/* ========================================================================= */
/* ==================== HIGH FIDELITY PDF PRINTING STYLES ================= */
/* ========================================================================= */
.print-page-layout {
  background: #ffffff;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  padding: 20px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  box-sizing: border-box;
}

.print-border-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

.print-border-table td, 
.print-border-table th {
  border: 1px solid #000000;
  padding: 8px 10px;
  font-size: 11px;
  vertical-align: top;
  color: #000000;
}

.print-cell-grey {
  background-color: #f2f2f2 !important;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.print-logo-bolt {
  font-size: 24px;
  color: #000000;
  margin-bottom: 5px;
}

.print-section-title {
  font-size: 11px;
  font-weight: bold;
  margin: 15px 0 5px;
  text-transform: uppercase;
  color: #000000;
  border-bottom: 1.5px solid #000;
  padding-bottom: 3px;
}

.print-data-table {
  margin-top: 5px;
}

.print-data-table th {
  font-weight: bold;
  text-align: left;
  padding: 6px 8px;
}

.print-data-table td {
  padding: 6px 8px;
}

.print-grand-total {
  text-align: right;
  font-weight: bold;
  font-size: 13px;
  margin-top: 8px;
  padding-right: 10px;
}

.print-total-split-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: bold;
  border: 1px solid #000;
  padding: 8px 12px;
  background-color: #f2f2f2;
  margin-top: 5px;
}

.print-sig-container {
  height: 90px;
  border: 1px dashed #777;
  margin-top: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.print-site-security-block {
  min-height: 70px;
  font-size: 10px;
  font-style: italic;
  padding: 5px;
}

/* Navigation Tabs Styling */
.main-nav {
  display: flex;
  gap: 15px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 10px 15px;
  border-radius: 16px;
  box-shadow: var(--shadow-premium);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: visible;
  position: relative;
  z-index: 90;
  flex-wrap: wrap;
}

.nav-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
}

.nav-tab:hover {
  color: var(--neon-blue);
  background: rgba(0, 210, 255, 0.05);
}

.nav-tab.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.2), rgba(0, 102, 255, 0.2));
  border-color: rgba(0, 210, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.15);
}

/* Password Toggle Wrapper */
.password-input-wrapper input {
  font-family: var(--font-ui);
}

.btn-toggle-password {
  transition: var(--transition-smooth);
}
.btn-toggle-password:hover {
  color: var(--neon-blue) !important;
}

/* Live claim overlay spinner */
.claim-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.claim-overlay-spinner {
  width: 70px;
  height: 70px;
  border: 4px solid rgba(0, 210, 255, 0.1);
  border-left-color: var(--neon-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: var(--shadow-neon);
}

.claim-overlay-text {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  letter-spacing: 0.5px;
}

.claim-overlay-sub {
  font-size: 14px;
  color: var(--text-secondary);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* ==========================================
   AUTHENTICATION OVERLAY STYLING
   ========================================== */
.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 10, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.auth-card {
  background: rgba(18, 25, 41, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--shadow-neon);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: scaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleUp {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.auth-error-msg {
  background: rgba(255, 51, 102, 0.1);
  border: 1px solid rgba(255, 51, 102, 0.2);
  border-radius: 8px;
  padding: 10px 15px;
  margin-top: 15px;
}

/* ==========================================
   CHAT SALOON & ACTIVE ROSTER STYLING
   ========================================== */
.chat-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
}

@media (max-width: 992px) {
  .chat-layout {
    grid-template-columns: 1fr;
  }
  .chat-sidebar-card {
    width: 100% !important;
  }
}

.chat-main-card {
  display: flex;
  flex-direction: column;
}

.chat-card-body {
  display: flex;
  flex-direction: column;
  height: 600px;
  padding: 20px !important;
}

.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  margin-bottom: 15px;
}

.chat-loading-placeholder, .chat-empty-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
  gap: 8px;
}

/* Chat bubble aesthetics */
.chat-bubble {
  display: flex;
  flex-direction: column;
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 16px;
  position: relative;
  font-size: 13.5px;
  line-height: 1.5;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  animation: slideInBubble 0.25s ease-out forwards;
}

@keyframes slideInBubble {
  0% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Incoming messages (left-aligned) */
.chat-bubble.incoming {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-top-left-radius: 4px;
}

.chat-bubble.incoming .bubble-sender {
  color: var(--neon-blue);
}

/* Outgoing messages (right-aligned, client user) */
.chat-bubble.outgoing {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.15), rgba(0, 102, 255, 0.15));
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-top-right-radius: 4px;
}

.chat-bubble.outgoing .bubble-sender {
  color: #fff;
}

.bubble-sender {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.bubble-text {
  color: var(--text-primary);
  word-break: break-word;
}

.bubble-time {
  align-self: flex-end;
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 5px;
}

/* Chat Send form panel */
.chat-input-panel {
  display: flex;
  gap: 15px;
  align-items: center;
}

.chat-input-panel input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 14px 18px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  color: #fff;
  outline: none;
  transition: var(--transition-smooth);
}

.chat-input-panel input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
}

.chat-input-panel .btn-send {
  padding: 14px 22px;
  font-size: 13px;
  border-radius: 12px;
}

/* Active Roster sidebar */
.roster-card-body {
  height: 600px;
  display: flex;
  flex-direction: column;
}

.roster-sub-lbl {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: -15px;
  margin-bottom: 20px;
  font-weight: 500;
}

.chat-roster {
  list-style: none;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 5px;
}

.chat-roster li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  transition: var(--transition-smooth);
}

.chat-roster li:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.roster-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--neon-blue);
  border: 1px solid var(--border-glass);
}

.roster-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.roster-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.roster-card-details {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.roster-status-indicator {
  position: relative;
  width: 10px;
  height: 10px;
}

/* Neon pulsing online status dot */
.status-dot-online {
  width: 10px;
  height: 10px;
  background-color: var(--neon-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon-green);
}

.status-dot-online::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--neon-green);
  border-radius: 50%;
  opacity: 0;
  animation: pulseNeonGreen 2s infinite;
}

@keyframes pulseNeonGreen {
  0% { transform: scale(0.5); opacity: 0; }
  50% { opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}

.status-dot-offline {
  width: 10px;
  height: 10px;
  background-color: #4b5563;
  border-radius: 50%;
}

.empty-roster-item {
  color: var(--text-muted);
  font-size: 12px;
  font-style: italic;
  justify-content: center;
  border: none !important;
  background: none !important;
}


/* ==========================================================================
   ONE-CLICK PROFILE LOGIN & PIN KEYPAD STYLING
   ========================================================================== */

.profile-login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-height: 250px;
  overflow-y: auto;
  padding: 8px 4px;
  margin-top: 15px;
  margin-bottom: 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.profile-grid::-webkit-scrollbar {
  width: 4px;
}
.profile-grid::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

.profile-card-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 14px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.profile-card-btn:hover {
  background: rgba(0, 242, 254, 0.05);
  border-color: var(--neon-blue);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
  transform: translateY(-2px);
}

.profile-avatar-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(79, 172, 254, 0.05));
  border: 2px solid rgba(0, 242, 254, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  transition: all 0.25s ease;
  text-shadow: 0 0 4px rgba(0,242,254,0.5);
}

.profile-card-btn:hover .profile-avatar-circle {
  border-color: var(--neon-blue);
  box-shadow: 0 0 8px var(--neon-blue);
}

.profile-card-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.profile-card-role {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 1px;
  text-transform: uppercase;
}

/* Slide-up glassmorphic PIN sheet */
.pin-sheet-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 25, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.pin-sheet-overlay.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pin-sheet-card {
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}

.pin-header {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
}

.pin-header span {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.pin-dots-container {
  display: flex;
  gap: 16px;
  margin-bottom: 25px;
}

.pin-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  transition: all 0.15s ease;
}

.pin-dot.active {
  background-color: var(--neon-blue);
  border-color: var(--neon-blue);
  box-shadow: 0 0 8px var(--neon-blue);
  transform: scale(1.2);
}

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  margin-bottom: 20px;
}

.pin-key {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  user-select: none;
  transition: all 0.1s ease;
  margin: 0 auto;
}

.pin-key:active {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--neon-blue);
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.3);
  transform: scale(0.92);
}

.pin-key.key-clear {
  font-size: 12px;
  color: var(--neon-red);
}

.pin-key.key-back {
  font-size: 15px;
  color: var(--neon-yellow);
}

.pin-cancel-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.pin-cancel-btn:hover {
  color: var(--neon-red);
}

.auth-switch-link {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 15px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.auth-switch-link:hover {
  color: var(--neon-blue);
}

@media print {
  body {
    background-color: #fff !important;
    color: #000 !important;
  }
  .app-container {
    display: none !important;
  }
  .print-page-layout {
    display: block !important;
  }
}

/* ==========================================================================
   SOCIAL MEDIA POSTING HUB COMPOSER STYLING
   ========================================================================== */
.social-image-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.social-image-dropzone:hover,
.social-image-dropzone.dragover {
  border-color: var(--neon-blue);
  background: rgba(0, 210, 255, 0.04);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.15);
}

.social-image-dropzone span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.platform-selection-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.platform-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.platform-btn i {
  color: var(--text-secondary);
  transition: color 0.25s ease;
}

.platform-btn span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.25s ease;
}

.platform-btn .active-check {
  position: absolute;
  right: 20px;
  font-size: 16px;
  color: var(--text-muted);
  opacity: 0.3;
  transition: all 0.25s ease;
}

/* Glowing active states for each social network */
.platform-btn.active .active-check {
  color: var(--neon-green);
  opacity: 1;
}

/* Facebook - Blue border & glow */
.platform-btn.fb-btn:hover,
.platform-btn.fb-btn.active {
  background: rgba(24, 119, 242, 0.05);
  border-color: #1877f2;
  box-shadow: 0 0 12px rgba(24, 119, 242, 0.25);
}
.platform-btn.fb-btn.active i {
  color: #1877f2;
}
.platform-btn.fb-btn.active span {
  color: #fff;
}

/* Instagram - Sunset Gradient border & glow */
.platform-btn.ig-btn:hover,
.platform-btn.ig-btn.active {
  background: rgba(225, 48, 108, 0.05);
  border-color: #e1306c;
  box-shadow: 0 0 12px rgba(225, 48, 108, 0.25);
}
.platform-btn.ig-btn.active i {
  color: #e1306c;
}
.platform-btn.ig-btn.active span {
  color: #fff;
}

/* LinkedIn - Blue-Slate border & glow */
.platform-btn.ln-btn:hover,
.platform-btn.ln-btn.active {
  background: rgba(10, 102, 194, 0.05);
  border-color: #0a66c2;
  box-shadow: 0 0 12px rgba(10, 102, 194, 0.25);
}
.platform-btn.ln-btn.active i {
  color: #0a66c2;
}
.platform-btn.ln-btn.active span {
  color: #fff;
}

/* Google Business - Red border & glow */
.platform-btn.g-btn:hover,
.platform-btn.g-btn.active {
  background: rgba(219, 68, 85, 0.05);
  border-color: #db4437;
  box-shadow: 0 0 12px rgba(219, 68, 85, 0.25);
}
.platform-btn.g-btn.active i {
  color: #db4437;
}
.platform-btn.g-btn.active span {
  color: #fff;
}

/* Live claim overlay styles */
.claim-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 15, 25, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.claim-overlay-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(0, 242, 254, 0.1);
  border-left-color: var(--neon-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 25px;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.claim-overlay-text {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.claim-overlay-sub {
  font-size: 13px;
  color: var(--text-secondary);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Premium Admin Profile Card Glowing Hover Effects */
.profile-card-btn.admin-profile-card:hover {
  background: rgba(255, 184, 0, 0.05) !important;
  border-color: var(--neon-yellow) !important;
  box-shadow: 0 0 12px rgba(255, 184, 0, 0.3) !important;
}
.profile-card-btn.admin-profile-card:hover .admin-avatar-circle {
  border-color: var(--neon-yellow) !important;
  box-shadow: 0 0 10px var(--neon-yellow) !important;
}


/* ======================================================================
   SUB NAVIGATION TABS FOR GENERAC HUB
   ====================================================================== */
.sub-nav {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0;
}

.sub-tab {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  padding: 10px 15px;
  position: relative;
  transition: var(--transition-smooth);
  border-bottom: 2px solid transparent;
}

.sub-tab:hover {
  color: var(--text-primary);
}

.sub-tab.active {
  color: var(--neon-blue);
  border-bottom: 2px solid var(--neon-blue);
  text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}


/* ======================================================================
   SUB NAVIGATION TABS FOR GENERAC HUB
   ====================================================================== */
.sub-nav {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0;
}

.sub-tab {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  padding: 10px 15px;
  position: relative;
  transition: var(--transition-smooth);
  border-bottom: 2px solid transparent;
}

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

.sub-tab.active {
  color: var(--neon-blue);
  border-bottom: 2px solid var(--neon-blue);
  text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.generac-hub-section {
  display: none;
}

.generac-hub-section.active-section {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

.low-stock-row {
  background: rgba(255, 51, 102, 0.03) !important;
  border-left: 3px solid #ff3366 !important;
}

/* ======================================================================
   MONTHLY BILLING & INVOICES VIEW STYLES
   ====================================================================== */
.billing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  margin-top: 25px;
}

.billing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 25px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.billing-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.billing-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.billing-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px;
  border: 1px solid var(--border-glass);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.billing-info {
  display: flex;
  flex-direction: column;
}

.billing-info h4 {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.billing-info span {
  font-size: 11px;
  color: var(--text-secondary);
}

.billing-credentials {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 12px;
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.credential-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.credential-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.credential-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-glass);
  max-width: 70%;
  overflow: hidden;
}

.credential-value {
  font-family: monospace;
  font-size: 12px;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-mini-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.copy-mini-btn:hover {
  color: var(--neon-blue);
}

.billing-checklist-card {
  margin-bottom: 30px;
}

.progress-container {
  margin: 15px 0 25px 0;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.progress-bar-bg {
  background: rgba(0, 0, 0, 0.4);
  height: 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.progress-bar-fill {
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-green));
  height: 100%;
  width: 0%;
  border-radius: 10px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.35);
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 15px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
}

.checklist-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.checklist-item input[type="checkbox"] {
  appearance: none;
  background-color: rgba(0, 0, 0, 0.4);
  margin: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-glass);
  border-radius: 5px;
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.checklist-item input[type="checkbox"]::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 10px;
  transform: scale(0);
  transition: 0.12s transform ease-in-out;
  color: #fff;
}

.checklist-item input[type="checkbox"]:checked {
  background-color: var(--neon-blue);
  border-color: var(--neon-blue);
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.4);
}

.checklist-item input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.checklist-item.checked-item {
  border-color: rgba(0, 255, 136, 0.15);
  background: rgba(0, 255, 136, 0.02);
}

.checklist-item.checked-item span {
  color: var(--text-muted);
  text-decoration: line-through;
}

/* ======================================================================
   ACCESS CONTROL SWITCHES STYLES
   ====================================================================== */
.switch-container {
  display: inline-block;
  position: relative;
  width: 44px;
  height: 24px;
}

.switch-container input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  transition: .3s;
  border-radius: 24px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-secondary);
  transition: .3s;
  border-radius: 50%;
}

input:checked + .switch-slider {
  background-color: rgba(0, 210, 255, 0.2);
  border-color: var(--neon-blue);
}

input:checked + .switch-slider:before {
  transform: translateX(20px);
  background-color: var(--neon-blue);
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.6);
}

/* ======================================================================
   GENERAC EMAIL PROXY FEED STYLES
   ====================================================================== */
.update-feed-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.update-feed-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.update-header {
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.update-header:hover {
  background: rgba(255, 255, 255, 0.04);
}

.update-title-area {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.update-subject {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.update-meta {
  font-size: 11px;
  color: var(--text-secondary);
}

.update-body-container {
  display: none;
  border-top: 1px solid var(--border-glass);
  background: #ffffff; /* White background for email newsletters rendering */
  padding: 20px;
}

.update-body-container.active-body {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

/* Premium Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: auto;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast-success {
  border-left: 4px solid var(--neon-green, #00ff66) !important;
}
.toast-error {
  border-left: 4px solid var(--neon-red, #ff3366) !important;
}
.toast-info {
  border-left: 4px solid var(--neon-blue, #00ccff) !important;
}

/* ======================================================================
   QUICK ACTIONS DASHBOARD REDESIGN
   ====================================================================== */

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 10px;
  margin-bottom: 5px;
}

.action-card {
  background: rgba(18, 25, 41, 0.45);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.action-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-focus);
  background: rgba(18, 25, 41, 0.7);
  box-shadow: 0 8px 20px rgba(0, 229, 255, 0.12);
}

.action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  transition: var(--transition-smooth);
}

.action-card:hover::before {
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-green));
}

.action-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.action-card:hover .action-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Accent icon colors with soft glows */
.icon-blue {
  background: rgba(0, 210, 255, 0.08);
  color: var(--neon-blue);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.08) inset;
}
.icon-purple {
  background: rgba(168, 85, 247, 0.08);
  color: #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.08) inset;
}
.icon-green {
  background: rgba(0, 255, 136, 0.08);
  color: var(--neon-green);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.08) inset;
}
.icon-amber {
  background: rgba(255, 208, 0, 0.08);
  color: var(--neon-yellow);
  box-shadow: 0 0 10px rgba(255, 208, 0, 0.08) inset;
}
.icon-pink {
  background: rgba(236, 72, 153, 0.08);
  color: #ec4899;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.08) inset;
}
.icon-teal {
  background: rgba(20, 184, 166, 0.08);
  color: #14b8a6;
  box-shadow: 0 0 10px rgba(20, 184, 166, 0.08) inset;
}
.icon-orange {
  background: rgba(249, 115, 22, 0.08);
  color: #f97316;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.08) inset;
}
.icon-red {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.08) inset;
}
.icon-chrome {
  background: rgba(66, 133, 244, 0.08);
  color: #4285F4;
  box-shadow: 0 0 10px rgba(66, 133, 244, 0.08) inset;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.action-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.action-content h4 {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.action-content p {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.action-badge {
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  align-self: flex-start;
  margin-top: -4px;
}

/* Floating Live Support Request Notification (Admin Only Toast) */
.support-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 320px;
  background: rgba(18, 25, 41, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(239, 68, 68, 0.45); /* Soft neon red border */
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(239, 68, 68, 0.15);
  color: var(--text-primary, #ffffff);
  z-index: 10001;
  padding: 16px;
  box-sizing: border-box;
  animation: slideInRightToast 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.support-toast .toast-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title, 'Outfit', sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--neon-red, #ff3366);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.support-toast .toast-body {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary, #e2e8f0);
}

.support-toast .toast-body p {
  margin: 6px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.support-toast .toast-body code {
  background: rgba(255, 255, 255, 0.1);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
  color: var(--neon-blue, #00e5ff);
  transition: all 0.2s ease;
}

.support-toast .toast-body code:hover {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--neon-blue, #00e5ff);
}

.support-toast .toast-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
}

.support-toast .toast-actions .btn {
  padding: 6px 12px;
  font-size: 11px;
}

/* ======================================================================
   MEDIA VIEWER OVERLAY & MODAL STYLING
   ====================================================================== */
.media-viewer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.media-viewer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.media-viewer-container {
  width: 90%;
  max-width: 1000px;
  height: 85%;
  background: rgba(18, 25, 41, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 242, 254, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.media-viewer-overlay.active .media-viewer-container {
  transform: scale(1);
}

.media-viewer-header {
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.media-viewer-title-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.media-viewer-title-area i {
  font-size: 20px;
  color: var(--neon-blue);
}

.media-viewer-title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 600px;
}

.media-viewer-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
}

.media-viewer-close-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--neon-red);
}

.media-viewer-body {
  flex: 1;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: auto;
  position: relative;
  padding: 20px;
}

.media-viewer-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  background: #fff;
}

.media-viewer-body img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.media-viewer-body video {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  outline: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.media-viewer-text-container {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 20px;
  overflow: auto;
  font-family: 'Inter', monospace;
  font-size: 14px;
  color: #e2e8f0;
  line-height: 1.6;
  white-space: pre-wrap;
  text-align: left;
}

.media-viewer-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding: 40px;
}

.media-viewer-fallback-icon {
  font-size: 64px;
  color: var(--text-secondary);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.media-viewer-fallback-text {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.media-viewer-fallback-sub {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 400px;
  margin-top: -10px;
}

/* ======================================================================
   ADMIN COCKPIT STYLING
   ====================================================================== */
.resource-card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 242, 254, 0.3) !important;
}

.resource-title {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.resource-title i {
  color: var(--neon-blue);
}

.resource-value {
  font-family: monospace;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

/* Docker container state badges with glassmorphic glows */
.state-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.state-running {
  background: rgba(0, 255, 136, 0.08);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.25);
  text-shadow: 0 0 4px rgba(0, 255, 136, 0.3);
}

.state-exited, .state-stopped {
  background: rgba(255, 51, 102, 0.08);
  color: var(--neon-red);
  border: 1px solid rgba(255, 51, 102, 0.25);
  text-shadow: 0 0 4px rgba(255, 51, 102, 0.3);
}

.state-restarting {
  background: rgba(255, 170, 0, 0.08);
  color: #ffaa00;
  border: 1px solid rgba(255, 170, 0, 0.25);
  text-shadow: 0 0 4px rgba(255, 170, 0, 0.3);
}

.btn-restart-action {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 5px 8px;
  font-size: 12px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.btn-restart-action:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.2);
}

.btn-restart-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ======================================================================
   UNIFIED SERVICE LAUNCHPAD STYLING
   ====================================================================== */
.launchpad-group-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.launchpad-group-title {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.launchpad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
}

.launchpad-card {
  background: rgba(18, 25, 41, 0.45);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.launchpad-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 242, 254, 0.3);
  background: rgba(0, 242, 254, 0.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 242, 254, 0.1);
}

.launchpad-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.launchpad-card:hover .launchpad-icon {
  transform: scale(1.08) rotate(3deg);
}

.launchpad-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.launchpad-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.launchpad-info h5 {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.launchpad-info p {
  font-size: 11px;
  color: var(--text-secondary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.launchpad-arrow {
  font-size: 11px;
  color: var(--text-muted);
  transition: all 0.2s ease;
  margin-left: auto;
  opacity: 0.5;
}

.launchpad-card:hover .launchpad-arrow {
  color: var(--neon-blue);
  opacity: 1;
  transform: translate(2px, -2px);
}

/* Custom icon colors */
.bg-lumen      { background: rgba(220, 53, 69, 0.08) !important; color: #dc3545; border-color: rgba(220, 53, 69, 0.2); }
.bg-guillevin  { background: rgba(0, 86, 179, 0.08) !important; color: #0056b3; border-color: rgba(0, 86, 179, 0.2); }
.bg-generac-shop { background: rgba(255, 120, 0, 0.08) !important; color: #ff7800; border-color: rgba(255, 120, 0, 0.2); }
.bg-genservice { background: rgba(255, 120, 0, 0.08) !important; color: #ff7800; border-color: rgba(255, 120, 0, 0.2); }
.bg-mobilelink { background: rgba(0, 186, 255, 0.08) !important; color: #00baff; border-color: rgba(0, 186, 255, 0.2); }
.bg-powerplay  { background: rgba(230, 161, 0, 0.08) !important; color: #e6a100; border-color: rgba(230, 161, 0, 0.2); }
.bg-dealer360  { background: rgba(76, 175, 80, 0.08) !important; color: #4caf50; border-color: rgba(76, 175, 80, 0.2); }
.bg-squarespace { background: rgba(255, 255, 255, 0.05) !important; color: #ffffff; border-color: rgba(255, 255, 255, 0.15); }
.bg-godaddy    { background: rgba(0, 166, 153, 0.08) !important; color: #00a699; border-color: rgba(0, 166, 153, 0.2); }
.bg-digitalocean { background: rgba(0, 139, 255, 0.08) !important; color: #008bff; border-color: rgba(0, 139, 255, 0.2); }
.bg-twilio     { background: rgba(242, 47, 70, 0.08) !important; color: #f22f46; border-color: rgba(242, 47, 70, 0.2); }

.bg-nextcloud  { background: rgba(0, 130, 201, 0.08) !important; color: #0082c9; border-color: rgba(0, 130, 201, 0.2); }
.bg-cockpit    { background: rgba(0, 242, 254, 0.08) !important; color: #00f2fe; border-color: rgba(0, 242, 254, 0.2); }

/* ======================================================================
   SMS HUB VIEW STYLES
   ====================================================================== */
.sms-status-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.sms-status-sent {
  background: rgba(0, 255, 136, 0.08);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.25);
  text-shadow: 0 0 4px rgba(0, 255, 136, 0.3);
}

.sms-status-failed {
  background: rgba(255, 51, 102, 0.08);
  color: var(--neon-red);
  border: 1px solid rgba(255, 51, 102, 0.25);
  text-shadow: 0 0 4px rgba(255, 51, 102, 0.3);
}

.sms-char-counter-warn {
  color: var(--neon-yellow) !important;
  font-weight: 600;
}

/* ======================================================================
   USER PROFILE DROPDOWN & ADMIN NAVIGATION GROUPING
   ====================================================================== */
.user-badge-container {
  position: relative;
  display: inline-block;
}

.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #111827;
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  min-width: 180px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
  z-index: 1000;
  overflow: hidden;
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.user-dropdown a:hover {
  background: rgba(0, 242, 254, 0.08);
  color: var(--neon-blue);
}

.nav-dropdown-container {
  position: relative;
  display: inline-block;
}

.nav-dropdown {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  background: #111827;
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  min-width: 220px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
  z-index: 1000;
  overflow: hidden;
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.nav-dropdown a:last-child {
  border-bottom: none;
}

.nav-dropdown a:hover {
  background: rgba(0, 242, 254, 0.08);
  color: var(--neon-blue);
}

/* Make parent dropdown toggle button look consistent with nav tabs */
.nav-tab.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Dashboard view as switcher styles */
.dashboard-switcher-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 15px;
}

.dashboard-switcher-select {
  background: rgba(18, 25, 41, 0.65);
  border: 1px solid var(--border-glass);
  color: #fff;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dashboard-switcher-select:focus {
  border-color: var(--neon-blue);
}

/* ======================================================================
   VAULT RENDERED CONTENT STYLES
   ====================================================================== */
.vault-rendered-content h1 {
  font-size: 22px; font-weight: 800; color: #fff;
  border-bottom: 2px solid rgba(0, 229, 255, 0.25); padding-bottom: 10px; margin: 20px 0 15px 0;
}
.vault-rendered-content h2 {
  font-size: 18px; font-weight: 700; color: var(--neon-blue);
  border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 8px; margin: 25px 0 12px 0;
}
.vault-rendered-content h3 {
  font-size: 15px; font-weight: 700; color: #a78bfa; margin: 18px 0 8px 0;
}
.vault-rendered-content h1:first-child { margin-top: 0; }
.vault-rendered-content p { margin: 4px 0; }
.vault-rendered-content ul {
  list-style: none; padding-left: 5px; margin: 4px 0;
}
.vault-rendered-content ul li {
  padding: 4px 0; padding-left: 15px; position: relative;
}
.vault-rendered-content ul li::before {
  content: '›'; position: absolute; left: 0; color: var(--neon-blue); font-weight: 700;
}
.vault-rendered-content ul ul { padding-left: 20px; }
.vault-rendered-content ul ul li::before { content: '–'; color: var(--text-muted); }
.vault-rendered-content code {
  background: rgba(0, 229, 255, 0.08); color: #00e5ff; padding: 2px 8px;
  border-radius: 5px; font-family: 'Courier New', monospace; font-size: 13px;
  border: 1px solid rgba(0, 229, 255, 0.12); user-select: all; cursor: pointer;
}
.vault-rendered-content strong { color: #fff; }
.vault-rendered-content a {
  color: var(--neon-blue); text-decoration: none; border-bottom: 1px dashed rgba(0,229,255,0.3);
}
.vault-rendered-content a:hover { color: #fff; border-bottom-color: #fff; }
.vault-rendered-content hr {
  border: none; height: 1px; background: linear-gradient(90deg, transparent, rgba(0,229,255,0.3), transparent);
  margin: 20px 0;
}
.vault-rendered-content blockquote {
  border-left: 3px solid var(--neon-red); background: rgba(255, 51, 102, 0.06);
  padding: 10px 15px; margin: 10px 0; border-radius: 0 8px 8px 0; font-size: 13px;
}
.vault-rendered-content em { color: var(--text-muted); font-style: italic; font-size: 12px; }
.vault-search-highlight { background: rgba(255, 208, 0, 0.35); color: #fff; border-radius: 3px; padding: 0 2px; }
