/* =====================================================================
   AI MINDMAP — PRODUCTION DESIGN SYSTEM & STYLESHEET
   AInovation PH — Premium Dark Glassmorphic Canvas
   ===================================================================== */

:root {
  --bg-main: #07090e;
  --bg-surface: rgba(13, 17, 27, 0.85);
  --bg-surface-elevated: rgba(22, 28, 44, 0.95);
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-glass: rgba(15, 23, 42, 0.65);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.35);
  --border-accent: rgba(6, 182, 212, 0.4);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #818cf8;

  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-purple: #a855f7;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', monospace;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 24px rgba(99, 102, 241, 0.25);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* =====================================================================
   APP HEADER
   ===================================================================== */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 58px;
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-left, .header-center, .header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.2));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-accent);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  color: #ffffff;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
}

.divider {
  width: 1px;
  height: 24px;
  background: var(--border-subtle);
  margin: 0 4px;
}

.map-title-wrapper {
  display: flex;
  align-items: center;
}

.map-title-input {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  outline: none;
  transition: var(--transition-fast);
  width: 240px;
}

.map-title-input:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-subtle);
}

.map-title-input:focus {
  background: rgba(15, 23, 42, 0.8);
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.node-count-badge {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

/* =====================================================================
   BUTTONS & CONTROLS
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.5);
  background: linear-gradient(135deg, #7175f7 0%, #5850ec 100%);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-icon:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-icon:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-sm {
  width: 26px;
  height: 26px;
}

.btn-group {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.02);
  padding: 2px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.btn-group .btn-icon {
  border: none;
  background: transparent;
}

.btn-group .btn-icon:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
}

.glow-pulse {
  animation: glow-pulse-anim 3s infinite alternate;
}

@keyframes glow-pulse-anim {
  0% { box-shadow: 0 0 10px rgba(99, 102, 241, 0.3); }
  100% { box-shadow: 0 0 20px rgba(6, 182, 212, 0.5); }
}

/* Zoom Toolbar */
.zoom-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  padding: 3px 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.zoom-display {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  padding: 0 6px;
  cursor: pointer;
  min-width: 44px;
  text-align: center;
}

.zoom-display:hover {
  color: var(--text-primary);
}

/* Dropdowns */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 260px;
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  display: none;
  animation: dropdown-fade-in 0.15s ease-out;
}

.dropdown-menu.active {
  display: block;
}

.dropdown-menu-right {
  left: auto;
  right: 0;
}

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

.dropdown-header {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  padding: 6px 10px;
}

.dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.dropdown-item strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
}

.dropdown-item small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.dropdown-separator {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 0;
}

.tpl-icon {
  font-size: 18px;
  line-height: 1;
}

/* =====================================================================
   CANVAS VIEWPORT & WORLD
   ===================================================================== */
.canvas-viewport {
  position: absolute;
  top: 58px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  cursor: grab;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.03) 0%, transparent 60%),
    radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px;
}

.canvas-viewport:active {
  cursor: grabbing;
}

.canvas-world {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  transform-origin: 0 0;
}

.connections-layer {
  position: absolute;
  top: -10000px;
  left: -10000px;
  width: 20000px;
  height: 20000px;
  pointer-events: none;
  overflow: visible;
}

.connection-path {
  fill: none;
  stroke: var(--accent-primary);
  stroke-width: 2.5px;
  stroke-linecap: round;
  transition: stroke 0.2s, stroke-width 0.2s;
  opacity: 0.8;
}

.connection-path.active {
  stroke: #ffffff;
  stroke-width: 3.5px;
  opacity: 1;
  filter: drop-shadow(0 0 6px var(--accent-primary));
}

/* =====================================================================
   NODE STYLES & HIERARCHY
   ===================================================================== */
.nodes-container {
  position: absolute;
  top: 0;
  left: 0;
}

.node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  user-select: none;
}

.node:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(99, 102, 241, 0.2);
}

.node.selected {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-primary), 0 0 24px rgba(99, 102, 241, 0.45);
  transform: scale(1.03);
  z-index: 10;
}

/* Root Topic Node */
.node.node-root {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.95), rgba(15, 23, 42, 0.95));
  border: 2px solid var(--accent-primary);
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.4), var(--shadow-lg);
}

.node.node-root .node-icon {
  color: var(--accent-cyan);
}

/* Branch Category Node */
.node.node-branch {
  border-left-width: 4px;
  font-weight: 600;
  font-size: 14px;
  background: rgba(17, 24, 39, 0.9);
}

/* Action Task Node */
.node.node-action {
  border-style: dashed;
}

.node.node-action.completed {
  opacity: 0.6;
  text-decoration: line-through;
  border-style: solid;
  border-color: var(--accent-emerald);
}

.node-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-emerald);
  cursor: pointer;
}

.node-label {
  display: inline-block;
  outline: none;
}

.node-label[contenteditable="true"] {
  cursor: text;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px dashed var(--accent-primary);
}

.node-meta-badge {
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.node-collapse-btn {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  margin-left: 2px;
  transition: var(--transition-fast);
}

.node-collapse-btn:hover {
  background: var(--accent-primary);
  color: #fff;
}

/* =====================================================================
   FLOATING CONTEXT TOOLBAR
   ===================================================================== */
.floating-toolbar {
  position: absolute;
  display: none;
  align-items: center;
  gap: 4px;
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-pill);
  padding: 4px 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 102, 241, 0.25);
  z-index: 50;
  transform: translate(-50%, -100%) translateY(-14px);
  animation: ft-pop-in 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes ft-pop-in {
  from { opacity: 0; transform: translate(-50%, -90%) translateY(-6px) scale(0.95); }
  to { opacity: 1; transform: translate(-50%, -100%) translateY(-14px) scale(1); }
}

.floating-toolbar.active {
  display: flex;
}

.ft-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 5px 9px;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.ft-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.ft-btn-ai {
  color: #a5b4fc;
}

.ft-btn-ai:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #ffffff;
}

.ft-btn-danger:hover {
  background: rgba(244, 63, 94, 0.2);
  color: var(--accent-rose);
}

.ft-sep {
  width: 1px;
  height: 16px;
  background: var(--border-subtle);
  margin: 0 2px;
}

.ft-color-picker {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.color-dot:hover {
  transform: scale(1.3);
}

.color-dot.active {
  box-shadow: 0 0 0 2px #fff;
  transform: scale(1.15);
}

/* =====================================================================
   RADAR MINIMAP
   ===================================================================== */
.minimap-container {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 190px;
  height: 140px;
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 40;
}

.minimap-header {
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

#minimap-canvas {
  flex: 1;
  background: rgba(0, 0, 0, 0.2);
  width: 100%;
}

.minimap-viewport-box {
  position: absolute;
  border: 1.5px solid var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  pointer-events: none;
  border-radius: 2px;
}

/* Keyboard Legend */
.keyboard-legend {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  z-index: 40;
}

.key-pill {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =====================================================================
   SIDE INSPECTOR DRAWER
   ===================================================================== */
.side-drawer {
  position: fixed;
  top: 58px;
  right: -380px;
  width: 380px;
  bottom: 0;
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid var(--border-subtle);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5);
  z-index: 90;
  display: flex;
  flex-direction: column;
  transition: right 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-drawer.open {
  right: 0;
}

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

.drawer-title-group h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  margin-top: 2px;
}

.drawer-badge {
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent-primary);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.label-with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-text-action {
  font-size: 11px;
  color: var(--text-accent);
  background: none;
  border: none;
  cursor: pointer;
}

.btn-text-action:hover {
  text-decoration: underline;
}

.drawer-input, .drawer-textarea, .modal-textarea, .modal-select {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-fast);
}

.drawer-input:focus, .drawer-textarea:focus, .modal-textarea:focus, .modal-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.node-type-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  padding: 3px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.type-opt {
  flex: 1;
  padding: 6px;
  background: transparent;
  border: none;
  font-size: 12px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.type-opt.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.ai-ideas-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-idea-item {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ai-idea-item:hover {
  background: rgba(99, 102, 241, 0.15);
}

.btn-add-idea {
  font-size: 11px;
  background: var(--accent-primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
}

.drawer-footer {
  padding: 16px;
  border-top: 1px solid var(--border-subtle);
}

.w-full {
  width: 100%;
}

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

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

.modal-card {
  width: 100%;
  max-width: 580px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(99, 102, 241, 0.25);
  overflow: hidden;
  animation: modal-scale-up 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-scale-up {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

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

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-icon-badge {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(6, 182, 212, 0.25));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.modal-title-group h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
}

.modal-title-group p {
  font-size: 12px;
  color: var(--text-muted);
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sample-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

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

.sample-pill {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-fast);
}

.sample-pill:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent-primary);
  color: #fff;
}

.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* Radio Cards (Provider Selection) */
.radio-card-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}

.radio-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.2);
}

.radio-card.active {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--accent-primary);
}

.radio-card input {
  margin-top: 3px;
  accent-color: var(--accent-primary);
}

.rc-content strong {
  display: block;
  font-size: 13px;
  color: var(--text-primary);
}

.rc-content small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* =====================================================================
   NOTIFICATION TOASTS
   ===================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 400;
  pointer-events: none;
}

.toast {
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  color: var(--text-primary);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  animation: toast-in 0.25s ease-out;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.empty-hint {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  padding: 8px 0;
}
