/* ==========================================================================
   AXIOS Studio — Administrative Fleet Control Console
   Strictly Light Theme • Zero AI-Slop Aesthetics • Ultra-Clean Architecture
   ========================================================================== */

:root {
  --bg-app: #f8fafc;
  --bg-card: #ffffff;
  --bg-muted: #f1f5f9;
  --bg-input: #ffffff;
  
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-focus: #0f172a;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-soft: #64748b;
  --text-inverse: #ffffff;

  --brand-red: #c62828;
  --brand-red-hover: #b71c1c;
  --brand-red-light: #fef2f2;
  --brand-red-border: #fecaca;

  --color-success: #059669;
  --color-success-hover: #047857;
  --color-success-light: #ecfdf5;
  --color-success-border: #a7f3d0;

  --color-warning: #d97706;
  --color-warning-hover: #b45309;
  --color-warning-light: #fffbeb;
  --color-warning-border: #fde68a;

  --color-info: #0284c7;
  --color-info-hover: #0369a1;
  --color-info-light: #f0f9ff;
  --color-info-border: #bae6fd;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-app);
  -webkit-font-smoothing: antialiased;
}

.admin-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-app);
}

/* ==========================================================================
   Header / Topbar (Clean Pure Light)
   ========================================================================== */

.admin-topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}

.admin-topbar .brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-topbar .brand-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.admin-topbar .brand-divider {
  width: 1px;
  height: 22px;
  background-color: var(--border-subtle);
}

.admin-topbar .brand-lockup strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.admin-badge-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-red);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cloud-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
}

.pulse-dot.error {
  background: var(--brand-red);
}

.pulse-dot.warning {
  background: var(--color-warning);
}

.auth-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--text-main);
  font-weight: 600;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: all 0.15s ease;
}

.auth-btn:hover {
  background: var(--bg-muted);
  border-color: var(--text-main);
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-muted);
  padding: 4px 8px 4px 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
}

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-red);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.logout-link {
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 13px;
  padding: 2px 6px;
  cursor: pointer;
  border-radius: 4px;
}

.logout-link:hover {
  color: var(--brand-red);
  background: var(--brand-red-light);
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */

.admin-container {
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px 72px;
}

.control-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.eyebrow-tag {
  color: var(--brand-red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.admin-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  line-height: 1.2;
}

.admin-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 650px;
  margin: 0;
  line-height: 1.5;
}

.org-selector-card {
  background: #ffffff;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.input-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.org-input-wrap {
  display: flex;
  gap: 8px;
}

.org-input-wrap .text-input {
  width: 140px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 10px;
}

/* Grid Layout */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

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

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

/* Base Card */
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.card-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}

.section-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.card-kicker {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  margin-bottom: 6px;
  text-transform: uppercase;
}

/* ==========================================================================
   Master Live Status Card (Clean Light Architecture)
   ========================================================================== */

.status-master-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-left: 5px solid var(--color-success);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px 28px;
  transition: border-left-color 0.2s ease;
}

.status-master-card.stopped {
  border-left-color: var(--brand-red);
}

.status-master-card.suspended {
  border-left-color: var(--color-warning);
}

.status-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.status-heading {
  margin: 0;
}

.status-indicator-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--color-success-light);
  color: var(--color-success);
  border: 1px solid var(--color-success-border);
  transition: all 0.2s ease;
}

.status-indicator-badge.stopped {
  background: var(--brand-red-light);
  color: var(--brand-red);
  border-color: var(--brand-red-border);
}

.status-indicator-badge.suspended {
  background: var(--color-warning-light);
  color: var(--color-warning);
  border-color: var(--color-warning-border);
}

.sync-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.status-description {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 20px;
  line-height: 1.5;
}

.status-meta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 600px) {
  .status-meta-row {
    grid-template-columns: 1fr;
  }
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.06em;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.meta-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.meta-value.highlight {
  color: var(--color-success);
  font-weight: 700;
}

/* ==========================================================================
   Action Cards (Kill Switch, Active, Maintenance)
   ========================================================================== */

.action-buttons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .action-buttons-grid {
    grid-template-columns: 1fr;
  }
}

.action-card {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.action-card.stop-card {
  border-color: var(--brand-red-border);
  background: #fffafa;
}

.action-card.active-card {
  border-color: var(--color-success-border);
  background: #fbfefc;
}

.action-card.maintenance-card {
  border-color: var(--color-warning-border);
  background: #fffdf7;
}

.action-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.action-card-header strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.action-card-header small {
  color: var(--text-soft);
  font-size: 11px;
}

.action-icon {
  font-size: 20px;
  line-height: 1;
}

.action-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 16px;
  line-height: 1.45;
  flex: 1;
}

/* ==========================================================================
   Buttons (Clean, Solid, High Contrast)
   ========================================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.button:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.btn-block {
  width: 100%;
}

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

.button.primary {
  background: var(--brand-red);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--brand-red-hover);
}

.button.secondary {
  background: #ffffff;
  color: var(--text-main);
  border-color: var(--border-strong);
}

.button.secondary:hover {
  background: var(--bg-muted);
}

.button.danger {
  background: var(--brand-red);
  color: #ffffff;
}

.button.danger:hover {
  background: var(--brand-red-hover);
}

.button.success {
  background: var(--color-success);
  color: #ffffff;
}

.button.success:hover {
  background: var(--color-success-hover);
}

.button.warning {
  background: var(--color-warning);
  color: #ffffff;
}

.button.warning:hover {
  background: var(--color-warning-hover);
}

/* ==========================================================================
   Form Controls
   ========================================================================== */

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 14px;
}

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

@media (max-width: 600px) {
  .form-row.two-col {
    grid-template-columns: 1fr;
  }
}

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

.field-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.field-help {
  font-size: 11px;
  color: var(--text-soft);
  line-height: 1.3;
}

.text-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-main);
  font-size: 13px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.text-input:focus {
  border-color: var(--border-focus);
  outline: none;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.1);
}

.text-input.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

.textarea {
  resize: vertical;
  min-height: 64px;
  line-height: 1.45;
}

.form-toggle-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
  flex-shrink: 0;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-strong);
  transition: 0.2s ease;
  border-radius: 22px;
}

.toggle-slider:before {
  position: absolute;
  content: '';
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: 0.2s ease;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

input:checked + .toggle-slider {
  background-color: var(--brand-red);
}

input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.toggle-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.toggle-copy span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
}

.form-actions-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge.info {
  background: var(--color-info-light);
  color: var(--color-info);
  border: 1px solid var(--color-info-border);
}

.badge.notice {
  background: var(--bg-muted);
  color: var(--text-soft);
  border: 1px solid var(--border-subtle);
}

.badge.notice.active {
  background: var(--color-info-light);
  color: var(--color-info);
  border-color: var(--color-info-border);
}

/* ==========================================================================
   Live Mobile Simulator (Clean Light Silver Chassis)
   ========================================================================== */

.preview-sticky-wrap {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preview-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.preview-intro {
  width: 100%;
  font-size: 12px;
  color: var(--text-soft);
  margin: 0 0 16px;
  line-height: 1.4;
}

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-success-light);
  color: var(--color-success);
  border: 1px solid var(--color-success-border);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
}

/* Phone Mockup Frame (Light Matte Aluminum Style) */
.phone-frame {
  width: 320px;
  height: 620px;
  background: #f1f5f9;
  border-radius: 38px;
  padding: 10px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-speaker {
  width: 44px;
  height: 4px;
  background: var(--border-strong);
  border-radius: 2px;
  margin: 6px auto 8px;
}

.phone-camera {
  position: absolute;
  top: 14px;
  right: 90px;
  width: 6px;
  height: 6px;
  background: var(--border-strong);
  border-radius: 50%;
}

.phone-screen {
  flex: 1;
  background: #ffffff;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--border-subtle);
}

.sim-app-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.sim-brand-title {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.sim-brand-sub {
  display: block;
  font-size: 9px;
  color: var(--text-soft);
}

.sim-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.sim-body {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-app);
}

/* Simulated Banners */
.sim-banner {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  line-height: 1.3;
  animation: slideDown 0.25s ease;
}

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

.announcement-banner {
  background: var(--color-info-light);
  border: 1px solid var(--color-info-border);
  color: var(--color-info);
}

.announcement-banner strong {
  display: block;
  font-size: 8px;
  color: var(--color-info);
  letter-spacing: 0.05em;
  font-weight: 800;
}

.announcement-banner p {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  color: #0369a1;
}

.update-banner {
  background: var(--color-success-light);
  border: 1px solid var(--color-success-border);
  color: var(--color-success);
  align-items: center;
}

.update-banner p {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
}

.sim-chip-btn {
  padding: 3px 8px;
  background: var(--color-success);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
  margin-left: auto;
}

.maintenance-banner {
  background: var(--color-warning-light);
  border: 1px solid var(--color-warning-border);
  color: var(--color-warning);
}

.maintenance-banner p {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
}

/* Simulated Cards */
.sim-hero {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.sim-hero-badge {
  font-size: 8px;
  font-weight: 800;
  color: var(--brand-red);
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.sim-hero h3 {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 2px;
  color: var(--text-main);
}

.sim-hero p {
  font-size: 10px;
  color: var(--text-soft);
  margin: 0 0 10px;
}

.sim-cta-btn {
  width: 100%;
  background: var(--brand-red);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
}

.sim-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sim-stat {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.sim-stat small {
  display: block;
  font-size: 9px;
  color: var(--text-soft);
}

.sim-stat strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.sim-quote-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sim-quote-item strong {
  display: block;
  font-size: 11px;
  color: var(--text-main);
}

.sim-quote-item small {
  display: block;
  font-size: 9px;
  color: var(--text-soft);
}

.sim-status-chip {
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  background: var(--bg-muted);
  color: var(--text-muted);
  border-radius: 4px;
}

/* Simulated Dialog Overlays */
.sim-dialog-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 50;
  animation: fadeIn 0.2s ease;
}

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

.sim-dialog {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  width: 100%;
  border: 1px solid var(--border-subtle);
}

.sim-dialog-icon {
  font-size: 26px;
  margin-bottom: 8px;
}

.sim-dialog h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text-main);
}

.sim-dialog p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0 0 10px;
}

.sim-notice {
  display: block;
  font-size: 9px;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.sim-ver-chip {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.sim-dialog-btn {
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.sim-dialog-btn.danger {
  background: var(--brand-red);
  color: #fff;
}

.sim-dialog-btn.primary {
  background: var(--text-main);
  color: #fff;
}

.phone-home-bar {
  width: 90px;
  height: 4px;
  background: var(--border-strong);
  border-radius: 2px;
  margin: 8px auto 2px;
}

.simulator-status-card {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  background: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.sim-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
}

/* ==========================================================================
   Modals (Clean Light Dialogs)
   ========================================================================== */

.modal-dialog {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 480px;
  width: 90%;
}

.modal-dialog::backdrop {
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(3px);
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-subtle);
}

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

.modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 16px;
  color: var(--text-soft);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}

.modal-close-btn:hover {
  color: var(--text-main);
  background: var(--bg-muted);
}

.modal-body {
  padding: 20px;
}

.modal-warning {
  margin: 0 0 16px;
  font-size: 13px;
  color: #991b1b;
  background: var(--brand-red-light);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand-red-border);
  line-height: 1.45;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  background: var(--bg-muted);
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Toast Notifications & Helpers
   ========================================================================== */

.hidden {
  display: none !important;
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.25s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.success { background: var(--color-success); }
.toast.error { background: var(--brand-red); }
.toast.info { background: var(--color-info); }
