/* ==========================================================================
   QLNQ SaaS Design Guidelines for qlnq
   Theme: Clean B2B SaaS (Vercel/Linear Inspired)
   Colors: Page Background slate, Pure White Cards, Indigo Accents, Dark Sidebar
   ========================================================================== */

:root {
  /* Colors */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --secondary: #64748b;
  --secondary-hover: #475569;
  
  --indigo-light: #eef2ff;
  --indigo-subtle: #e0e7ff;
  
  --text-primary: #0f172a;
  --text-body: #1e293b;
  --text-muted: #64748b;
  --text-placeholder: #94a3b8;
  
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --error: #ef4444;
  --error-light: #fee2e2;
  
  /* Borders & Shadows */
  --border-color: #e2e8f0;
  --border-focus: #6366f1;
  --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  
  /* Dark Sidebar (Admin Panel Specific) */
  --sidebar-bg: #0f172a;
  --sidebar-text: #f8fafc;
  --sidebar-muted: #94a3b8;
  --sidebar-hover: #1e293b;
  
  /* Layout Scales */
  --sidebar-width: 280px;
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-full: 9999px;
  
  /* Typography */
  --font-family-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-family-mono: 'JetBrains Mono', monospace;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-body);
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.01em;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary-hover);
}

.highlight {
  color: var(--primary);
}

.hidden {
  display: none !important;
}

/* Card Definition */
.glass {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.glass:hover {
  border-color: #cbd5e1;
}

/* Loader Styles */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--bg-tertiary);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Notifications */
.notification {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 14px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-sm);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  animation: slideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideIn {
  from { transform: translateX(120%); }
  to { transform: translateX(0); }
}

.close-notification-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
}

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

/* Buttons */
.btn {
  font-family: var(--font-family-body);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 16px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

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

.btn-secondary {
  background-color: var(--bg-secondary);
  color: var(--text-body);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-tertiary);
  border-color: #cbd5e1;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  height: 30px;
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input, 
.form-group select, 
.form-group textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 12px;
  height: 36px;
  border-radius: var(--radius-sm);
  font-family: var(--font-family-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

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

/* ================= AUTH MODULE ================= */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  background-color: var(--bg-primary);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-header .logo {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  color: var(--primary);
}

.auth-header h2 {
  font-size: 20px;
  margin-bottom: 4px;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 13px;
}

.auth-submit-btn {
  width: 100%;
  margin-top: 8px;
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ================= APP MODULE ================= */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Dark Sidebar layout */
.app-sidebar {
  width: var(--sidebar-width);
  background-color: var(--sidebar-bg);
  border-right: none;
  display: flex;
  flex-direction: column;
  padding: 24px;
  flex-shrink: 0;
  color: var(--sidebar-text);
}

.sidebar-header {
  margin-bottom: 24px;
}

.sidebar-header .logo {
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-header .logo-icon {
  color: var(--primary);
}

.workspace-selector-container {
  margin-bottom: 24px;
  position: relative;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sidebar-muted);
  margin-bottom: 6px;
  display: block;
}

.workspace-dropdown-trigger {
  background: var(--sidebar-hover);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: var(--sidebar-text);
  transition: all 0.15s ease;
}

.workspace-dropdown-trigger:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.workspace-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--sidebar-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  z-index: 100;
  margin-top: 6px;
  max-height: 180px;
  overflow-y: auto;
}

.workspace-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  color: var(--sidebar-muted);
  transition: all 0.15s ease;
}

.workspace-item:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text);
}

.dropdown-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.workspace-action {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  transition: background 0.15s ease;
}

.workspace-action:hover {
  background: var(--sidebar-hover);
}

/* Sidebar Nav Links */
.sidebar-nav {
  flex-grow: 1;
}

.sidebar-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--sidebar-muted);
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.15s ease;
}

.nav-item i {
  font-size: 15px;
  width: 18px;
}

.nav-item:hover {
  color: var(--sidebar-text);
  background-color: var(--sidebar-hover);
}

.nav-item.active {
  color: #ffffff;
  background-color: var(--primary);
}

/* Sidebar Profile */
.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  color: white;
}

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

.user-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--sidebar-text);
}

.user-role-badge {
  font-size: 11px;
  color: var(--sidebar-muted);
}

.logout-btn {
  background: none;
  border: none;
  color: var(--sidebar-muted);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  transition: color 0.15s ease;
}

.logout-btn:hover {
  color: var(--error);
}

/* Main Dashboard Panel */
.app-content {
  flex-grow: 1;
  padding: 40px;
  height: 100vh;
  overflow-y: auto;
}

.content-header {
  margin-bottom: 32px;
}

.header-titles h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.header-titles p {
  color: var(--text-muted);
  font-size: 14px;
}

.content-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadePanel 0.2s ease-out;
}

@keyframes fadePanel {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ================= 1. DASHBOARD MODULE ================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.stats-card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stats-icon {
  width: 44px;
  height: 44px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 18px;
}

.stats-info h3 {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.stats-info p {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 2px;
}

.stats-trend {
  font-size: 11px;
  color: var(--text-muted);
}

.stats-trend.positive {
  color: var(--success);
}

.dashboard-section {
  padding: 24px;
}

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

.section-header h2 {
  font-size: 16px;
  font-weight: 600;
}

/* Table */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
  background-color: #ffffff;
}

th, td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: var(--bg-primary);
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover td {
  background-color: var(--bg-primary);
}

.table-empty {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

.qr-title-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.qr-dest-link {
  color: var(--text-muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
  display: block;
}

.qr-short-cell {
  font-family: var(--font-family-mono);
  font-size: 12px;
  color: var(--primary);
  background: var(--indigo-light);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--indigo-subtle);
  display: inline-block;
}

.mini-qr-visual {
  width: 38px;
  height: 38px;
  background: white;
  border-radius: 4px;
  padding: 2px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-qr-visual img {
  width: 100%;
  height: 100%;
}

.table-action-btns {
  display: flex;
  gap: 6px;
}

.btn-icon {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-icon:hover {
  color: var(--text-primary);
  background-color: var(--bg-tertiary);
  border-color: #cbd5e1;
}

.btn-icon.edit-action:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-icon.delete-action:hover {
  border-color: var(--error);
  color: var(--error);
}

/* ================= 2. CREATOR MODULE ================= */
.creator-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

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

.creator-form-card {
  padding: 24px;
}

.creator-form-card h2 {
  font-size: 16px;
  margin-bottom: 20px;
}

.accordion-section {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  overflow: hidden;
}

.accordion-header {
  background: var(--bg-primary);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.accordion-header:hover {
  background: var(--bg-tertiary);
}

.accordion-header h3 {
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.accordion-arrow {
  color: var(--text-muted);
  transition: transform 0.2s ease;
  font-size: 12px;
}

.accordion-arrow.rotated {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 16px;
  border-top: 1px solid var(--border-color);
  background: #ffffff;
}

.utm-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.field-explanation {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Customizer styles */
.design-customizer {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  margin-bottom: 24px;
}

.design-customizer h3 {
  font-size: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.design-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.color-picker-wrapper {
  display: flex;
  gap: 6px;
}

.color-picker-wrapper input[type="color"] {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border-color);
  cursor: pointer;
  border-radius: var(--radius-sm);
  background: none;
}

.color-picker-wrapper input[type="text"] {
  flex-grow: 1;
  text-transform: uppercase;
  font-family: var(--font-family-mono);
}

/* Preview Column */
.creator-preview-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.creator-preview-card h2 {
  font-size: 16px;
  margin-bottom: 20px;
  align-self: flex-start;
}

.qr-preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  width: 100%;
}

.qr-svg-wrapper {
  width: 200px;
  height: 200px;
  background: white;
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  margin-bottom: 16px;
}

.qr-svg-wrapper svg {
  width: 100%;
  height: 100%;
}

.placeholder-qr-icon {
  font-size: 60px;
  color: var(--text-placeholder);
}

.scan-instruction {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.generated-url-box {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-primary);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-family-mono);
  font-size: 12px;
  color: var(--primary);
  word-break: break-all;
  max-height: 70px;
  overflow-y: auto;
}

.preview-actions {
  display: flex;
  gap: 8px;
  width: 100%;
}

.preview-actions .btn {
  flex: 1;
}

/* ================= 3. ANALYTICS MODULE ================= */
.analytics-filter-header {
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.analytics-filter-header .form-group {
  margin-bottom: 0;
  flex-grow: 1;
  max-width: 380px;
}

.analytics-total-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.badge-title {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

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

@media (max-width: 1024px) {
  .span-2 {
    grid-column: span 1;
  }
}

.chart-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.chart-card h2 {
  font-size: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  color: var(--text-primary);
}

.chart-container {
  position: relative;
  height: 240px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================= 4. DOMAINS MODULE ================= */
.domains-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

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

.domains-form-card {
  padding: 24px;
}

.section-subtext {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.dns-instructions {
  margin-top: 24px;
  padding: 16px;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.dns-instructions h3 {
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dns-table {
  margin: 12px 0;
  font-size: 12px;
}

.dns-table th, .dns-table td {
  padding: 6px 10px;
}

.dns-table code {
  background: var(--bg-tertiary);
  padding: 2px 4px;
  border-radius: 4px;
  color: var(--primary);
  font-family: var(--font-family-mono);
}

.dns-warning {
  font-size: 11px;
  color: var(--warning);
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.domains-list-card {
  padding: 24px;
}

.domain-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
}

.domain-status-badge.verified {
  background: var(--success-light);
  color: var(--success);
}

.domain-status-badge.pending {
  background: var(--warning-light);
  color: var(--warning);
  cursor: pointer;
  transition: all 0.15s ease;
}

.domain-status-badge.pending:hover {
  background-color: #fee8b0;
}

/* ================= 5. TEAM MODULE ================= */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
}

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

.team-invite-card {
  padding: 24px;
}

.role-matrix-box {
  margin-top: 24px;
  padding: 16px;
  background-color: var(--bg-primary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.role-matrix-box h3 {
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.role-matrix-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.role-matrix-box li {
  font-size: 12px;
  color: var(--text-body);
}

.team-list-card {
  padding: 24px;
}

.member-avatar-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.member-initials {
  width: 28px;
  height: 28px;
  background: var(--bg-tertiary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid var(--border-color);
}

.member-name {
  font-weight: 500;
  font-size: 13px;
}

.member-role-select {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 4px 8px;
  height: 28px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.member-role-select:focus {
  border-color: var(--primary);
}

/* ================= MODAL WINDOWS ================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.modal-card {
  width: 100%;
  max-width: 440px;
  padding: 24px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  animation: modalScale 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.modal-header h2 {
  font-size: 16px;
  font-weight: 600;
}

.close-modal-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

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

.modal-info-text {
  padding: 8px 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

/* Custom Domain Cell Indicator */
.custom-short-cell {
  background: var(--indigo-light);
  color: var(--primary);
  border-color: var(--indigo-subtle);
}
