/* Custom CSS Reset & Variables */
:root {
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Curated LIGHT Theme HSL Palette (DEFAULT) */
  --bg-color: hsl(220, 25%, 96%);
  --bg-darker: hsl(220, 20%, 92%);
  --glass-bg: hsla(220, 30%, 100%, 0.65);
  --glass-border: hsla(0, 0%, 0%, 0.08);
  --glass-border-hover: hsla(0, 0%, 0%, 0.14);
  
  --primary-color: hsl(247, 83%, 62%);
  --primary-hover: hsl(247, 83%, 68%);
  --primary-glow: hsla(247, 83%, 62%, 0.2);
  
  --success-color: hsl(142, 69%, 40%);
  --success-bg: hsla(142, 69%, 40%, 0.1);
  
  --danger-color: hsl(350, 89%, 55%);
  --danger-bg: hsla(350, 89%, 55%, 0.1);
  --danger-hover: hsl(350, 89%, 60%);
  
  --warning-color: hsl(38, 92%, 45%);
  --warning-bg: hsla(38, 92%, 45%, 0.1);
  
  --info-color: hsl(199, 89%, 44%);
  --info-bg: hsla(199, 89%, 44%, 0.1);
  
  --text-primary: hsl(224, 25%, 15%);
  --text-secondary: hsl(224, 15%, 38%);
  --text-muted: hsl(224, 10%, 55%);
  
  --border-radius-lg: 16px;
  --border-radius-md: 10px;
  --border-radius-sm: 6px;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 15px var(--primary-glow);
}

/* Dark Theme Override Variables */
.dark-theme {
  --bg-color: hsl(224, 25%, 10%);
  --bg-darker: hsl(224, 25%, 7%);
  --glass-bg: hsla(224, 25%, 15%, 0.55);
  --glass-border: hsla(0, 0%, 100%, 0.06);
  --glass-border-hover: hsla(0, 0%, 100%, 0.12);
  
  --primary-color: hsl(247, 83%, 62%);
  --primary-hover: hsl(247, 83%, 68%);
  --primary-glow: hsla(247, 83%, 62%, 0.35);
  
  --success-color: hsl(142, 69%, 45%);
  --success-bg: hsla(142, 69%, 45%, 0.15);
  
  --danger-color: hsl(350, 89%, 60%);
  --danger-bg: hsla(350, 89%, 60%, 0.15);
  --danger-hover: hsl(350, 89%, 65%);
  
  --warning-color: hsl(38, 92%, 50%);
  --warning-bg: hsla(38, 92%, 50%, 0.15);
  
  --info-color: hsl(199, 89%, 48%);
  --info-bg: hsla(199, 89%, 48%, 0.15);
  
  --text-primary: hsl(0, 0%, 96%);
  --text-secondary: hsl(220, 15%, 68%);
  --text-muted: hsl(220, 10%, 48%);
  
  --shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px var(--primary-glow);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-darker);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Floating Decorative Background Blobs */
.bg-blob {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.12;
  pointer-events: none;
  animation: floatBlobs 20s infinite alternate;
}

.dark-theme .bg-blob {
  opacity: 0.15;
}

.blob-1 {
  background-color: var(--primary-color);
  top: -10%;
  left: -10%;
}

.blob-2 {
  background-color: hsl(290, 80%, 60%);
  bottom: -10%;
  right: -10%;
  animation-delay: -5s;
}

@keyframes floatBlobs {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -60px) scale(1.1); }
  100% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Base Layout Containers */
.page-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Glassmorphism Styles */
.card-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.02);
}
.dark-theme ::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 4px;
}
.dark-theme ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.24);
}
.dark-theme ::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Helper Utilities */
.hidden {
  display: none !important;
}

.overflow-x {
  overflow-x: auto;
}

/* Animations */
.animate-fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 550;
  padding: 10px 20px;
  border-radius: var(--border-radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  color: hsl(0, 0%, 98%);
}

.btn-primary {
  background-color: var(--primary-color);
  box-shadow: 0 4px 12px var(--primary-glow);
  color: white;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 20px var(--primary-glow);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}
.dark-theme .btn-secondary {
  background: rgba(255, 255, 255, 0.06);
}
.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: var(--glass-border-hover);
}
.dark-theme .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-danger {
  background-color: var(--danger-color);
  box-shadow: 0 4px 12px var(--danger-bg);
  color: white;
}
.btn-danger:hover {
  background-color: var(--danger-hover);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: var(--border-radius-sm);
}

.btn-block {
  width: 100%;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(0, 0, 0, 0.03);
}
.dark-theme .badge {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.04);
}

.badge-success {
  background: var(--success-bg);
  color: var(--success-color);
  border-color: hsla(142, 69%, 45%, 0.2);
}

.badge-danger {
  background: var(--danger-bg);
  color: var(--danger-color);
  border-color: hsla(350, 89%, 60%, 0.2);
}

.badge-warning {
  background: var(--warning-bg);
  color: var(--warning-color);
  border-color: hsla(38, 92%, 50%, 0.2);
}

.badge-info {
  background: var(--info-bg);
  color: var(--info-color);
  border-color: hsla(199, 89%, 48%, 0.2);
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  margin-bottom: 20px;
  font-size: 0.9rem;
  border: 1px solid transparent;
}
.alert-danger {
  background: var(--danger-bg);
  color: var(--danger-color);
  border-color: hsla(350, 89%, 60%, 0.25);
}
.alert-success {
  background: var(--success-bg);
  color: var(--success-color);
  border-color: hsla(142, 69%, 45%, 0.25);
}
.alert-warning {
  background: var(--warning-bg);
  color: var(--warning-color);
  border-color: hsla(38, 92%, 50%, 0.25);
}
.alert-info {
  background: var(--info-bg);
  color: var(--info-color);
  border-color: hsla(199, 89%, 48%, 0.25);
}

/* 1. LOGIN PAGE STYLING */
#page-login {
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: var(--bg-darker);
}

.login-card {
  width: 100%;
  max-width: 440px;
  padding: 40px 30px;
  position: relative;
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-header .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.login-header .logo-icon {
  font-size: 2.2rem;
}

.login-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.login-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.login-footer {
  text-align: center;
  margin-top: 24px;
}

.version-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 8px;
  border-radius: 12px;
}
.dark-theme .version-badge {
  background: rgba(255, 255, 255, 0.05);
}

.forgot-pwd-link-box {
  text-align: right;
  margin-bottom: 16px;
  margin-top: -8px;
}

.forgot-pwd-link {
  font-size: 0.85rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 550;
  transition: var(--transition-smooth);
}

.forgot-pwd-link:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

/* Tabs */
.tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.05);
  padding: 4px;
  border-radius: var(--border-radius-md);
  margin-bottom: 24px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}
.dark-theme .tabs {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.04);
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 550;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-btn.active {
  background: var(--glass-bg);
  color: var(--text-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.02);
}
.dark-theme .tab-btn.active {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.04);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 550;
  color: var(--text-primary);
}

.form-group input, 
.form-group select, 
.form-group textarea {
  font-family: var(--font-family);
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition-smooth);
  width: 100%;
}
.dark-theme .form-group input,
.dark-theme .form-group select,
.dark-theme .form-group textarea {
  background: rgba(0, 0, 0, 0.2);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group input:focus, 
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-glow);
  background: rgba(255, 255, 255, 0.8);
}
.dark-theme .form-group input:focus,
.dark-theme .form-group select:focus {
  background: rgba(0, 0, 0, 0.3);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-row-2, .form-row-3 {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--text-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 2. DASHBOARD VIEW SHELL */
#page-dashboard {
  background-color: var(--bg-darker);
  display: flex;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 280px;
  min-width: 280px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  border-top: none;
  border-bottom: none;
  border-left: none;
  height: 100vh;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--glass-border);
}

.brand-icon {
  font-size: 1.8rem;
}

.sidebar-brand h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

/* User Profile Badge */
.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  padding: 12px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(0, 0, 0, 0.01);
}
.dark-theme .user-profile {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.02);
}

.user-profile .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px var(--primary-glow);
}

.profile-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.profile-info span {
  font-size: 0.72rem;
  margin-top: 2px;
}

/* Menu items */
.sidebar-menu {
  flex: 1;
  overflow-y: auto;
}

.menu-list {
  list-style: none;
}

.menu-list li {
  margin-bottom: 8px;
}

.menu-item {
  width: 100%;
  background: none;
  border: none;
  font-family: var(--font-family);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 0.95rem;
  text-align: left;
}

.menu-item:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text-primary);
}
.dark-theme .menu-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.menu-item.active {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* Theme Switcher and Version Footer */
.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

.theme-btn {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--glass-border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}
.dark-theme .theme-btn {
  background: rgba(255, 255, 255, 0.06);
}

.theme-btn:hover {
  transform: rotate(15deg) scale(1.05);
  background: rgba(0, 0, 0, 0.1);
}
.dark-theme .theme-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.version-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
}

/* Main Content Styling */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  position: relative;
}

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  border-radius: 0;
  border-top: none;
  border-left: none;
  border-right: none;
  background: rgba(255, 255, 255, 0.3);
  position: sticky;
  top: 0;
  z-index: 10;
}
.dark-theme .content-header {
  background: hsla(224, 25%, 8%, 0.4);
}

.content-header h1 {
  font-size: 1.35rem;
  font-weight: 700;
}

.content-body {
  padding: 30px;
  flex: 1;
  overflow-y: auto;
}

.dashboard-view {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Actions Bar */
.actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 16px;
}

.search-input {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 0 16px;
  flex: 1;
  max-width: 400px;
}
.dark-theme .search-input {
  background: rgba(0, 0, 0, 0.15);
}

.search-input input {
  background: none;
  border: none;
  padding: 10px 0 10px 8px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  color: var(--text-primary);
  width: 100%;
}

.search-input input:focus {
  outline: none;
}

.search-icon {
  color: var(--text-muted);
}

/* Tables */
.table-container {
  overflow: hidden;
}

.table-header {
  padding: 20px;
  border-bottom: 1px solid var(--glass-border);
}

.table-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th, 
.data-table td {
  padding: 16px 20px;
  font-size: 0.92rem;
}

.data-table th {
  background: rgba(0, 0, 0, 0.01);
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom: 1px solid var(--glass-border);
}
.dark-theme .data-table th {
  background: rgba(255, 255, 255, 0.02);
}

.data-table td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}
.dark-theme .data-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.data-table tr:last-child td {
  border-bottom: none;
}

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

.data-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.01);
}
.dark-theme .data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Customer Cards Grid */
.customers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.customer-card {
  padding: 24px;
}

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

.customer-card-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.customer-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.customer-details-row {
  display: flex;
  justify-content: space-between;
}

.customer-details-row .label {
  color: var(--text-secondary);
}

.customer-details-row .value {
  font-weight: 550;
}

.customer-card-actions {
  display: flex;
  gap: 10px;
}

.customer-card-actions button {
  flex: 1;
}

/* Customer Manage Domain (WHOIS/Nameservers Details) */
.back-nav {
  margin-bottom: 10px;
}

.info-card {
  padding: 24px 30px;
}

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

.info-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.info-badges {
  display: flex;
  gap: 10px;
}

.manage-tabs {
  display: flex;
  padding: 6px;
  border-radius: var(--border-radius-md);
  flex-wrap: wrap;
}

.manage-tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.manage-tab-btn.active {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(0, 0, 0, 0.02);
}
.dark-theme .manage-tab-btn.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.02);
}

.manage-panel {
  padding: 30px;
}

.panel-header {
  margin-bottom: 20px;
}

.panel-header h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.no-shadow {
  box-shadow: none;
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.02);
}
.dark-theme .no-shadow {
  background: rgba(0, 0, 0, 0.1);
}

.settings-card-sub {
  padding: 20px;
}

.settings-card-sub h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.settings-card-sub p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.ns-form, .contacts-form {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ns-actions, .contacts-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

/* Switch (iOS Toggle Style) */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.1);
  transition: .4s;
  border: 1px solid var(--glass-border);
}
.dark-theme .slider {
  background-color: rgba(255, 255, 255, 0.1);
}

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

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

input:focus + .slider {
  box-shadow: 0 0 8px var(--primary-glow);
}

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

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.form-group.flex-row {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}
.dark-theme .form-group.flex-row {
  border-color: rgba(255, 255, 255, 0.05);
}

.switch-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.switch-label span {
  font-weight: 600;
  font-size: 0.95rem;
}

.help-text {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.privacy-status-box {
  padding: 16px 20px;
}

/* Settings Views */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

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

.settings-card {
  padding: 30px;
}

.settings-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 12px;
}

/* IP Display Copy Box */
.ip-display {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.dark-theme .ip-display {
  background: rgba(0, 0, 0, 0.2);
}

.ip-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.ip-copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.05);
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.02);
}
.dark-theme .ip-copy-box {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.05);
}

.ip-copy-box code {
  font-family: monospace;
  font-size: 1.1rem;
  color: var(--info-color);
  font-weight: 600;
}

/* Steps list */
.steps-box h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.steps-box ol {
  padding-left: 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.steps-box ol a {
  color: var(--info-color);
  text-decoration: none;
}

.steps-box ol a:hover {
  text-decoration: underline;
}

/* --- MODALS --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.dark-theme .modal {
  background: rgba(0, 0, 0, 0.6);
}

.modal-content {
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  animation: modalScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalScaleUp {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

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

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.03);
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.dark-theme .modal-footer {
  background: rgba(0, 0, 0, 0.1);
}

/* Responsive Rules */
@media (max-width: 768px) {
  #page-dashboard {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
    padding: 16px;
  }
  
  .user-profile {
    margin: 12px 0;
  }
  
  .main-content {
    height: auto;
  }
  
  .content-header {
    padding: 16px 20px;
  }
  
  .content-body {
    padding: 16px;
  }
  
  .actions-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .search-input {
    max-width: 100%;
  }
}
