/* ==========================================================================
   TRUE STUDIO — UNIFIED TRUE DEVELOPMENT LUXURY SYSTEM (#CAEBEA MINT BRAND)
   Typography: Plus Jakarta Sans + Outfit + Alexandria
   ========================================================================== */

:root {
  /* Surface & Base */
  --bg-main: #F7F8F5;
  --bg-card: #FFFFFF;
  --bg-inner: #F1F4F1;
  --bg-inner-soft: rgba(241, 244, 241, 0.6);
  
  /* TRUE Development Brand Palette (#CAEBEA) */
  --color-mint-brand: #CAEBEA;
  --color-mint-brand-dim: rgba(202, 235, 234, 0.45);
  --color-mint-brand-glow: rgba(202, 235, 234, 0.7);

  --color-coral: #169383;               /* Vibrant Primary Teal/Mint */
  --color-coral-light: #CAEBEA;         /* True Brand Mint Color #caebea */
  --color-coral-dim: rgba(202, 235, 234, 0.45);
  --color-coral-glow: rgba(22, 147, 131, 0.35);
  
  --color-mint: #2BBDA8;
  --color-mint-dim: rgba(43, 189, 168, 0.12);
  --color-pink: #EC407A;
  --color-pink-dim: rgba(236, 64, 122, 0.10);
  --color-indigo: #6366F1;
  --color-indigo-dim: rgba(99, 102, 241, 0.10);

  /* Typography Colors */
  --text-dark: #1A2121;
  --text-muted: #6B7C7C;
  --text-light: #9DAEAE;

  /* Fonts - Fully Unified */
  --font-unified: 'Plus Jakarta Sans', 'Outfit', 'Alexandria', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Smooth Radii */
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 30px;
  --radius-full: 9999px;

  /* Luxury Shadows */
  --shadow-card: 0 16px 45px -12px rgba(28, 40, 36, 0.05), 0 2px 8px rgba(0, 0, 0, 0.02);
  --shadow-card-hover: 0 24px 60px -15px rgba(22, 147, 131, 0.18), 0 6px 20px rgba(0, 0, 0, 0.03);
  --shadow-coral-glow: 0 8px 24px -4px rgba(22, 147, 131, 0.35);
}

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

body.ron-body {
  background-color: var(--bg-main);
  color: var(--text-dark);
  font-family: var(--font-unified);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 110px;
}

/* Ambient Radial Glow */
.ron-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
}

.orb-coral {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(202, 235, 234, 0.55) 0%, rgba(202, 235, 234, 0.15) 70%, transparent 100%);
  top: -100px;
  right: -50px;
}

.orb-warm {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(43, 189, 168, 0.10) 0%, transparent 70%);
  bottom: 0;
  left: -100px;
}

/* ==========================================================================
   RON LUXURY CARD
   ========================================================================== */
.ron-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(26, 33, 33, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
}

.ron-card:hover {
  box-shadow: var(--shadow-card-hover);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.ron-header {
  height: 76px;
  background: rgba(247, 248, 245, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(26, 33, 33, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.brand-link:hover {
  transform: scale(1.03);
}

.brand-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.live-dot-glow {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-coral);
  box-shadow: 0 0 0 0 rgba(202, 235, 234, 0.8);
  animation: coralPulse 2s infinite;
}

@keyframes coralPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(202, 235, 234, 0.8); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(202, 235, 234, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(202, 235, 234, 0); }
}

.header-right-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.host-badge, .uptime-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: #FFFFFF;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(26, 33, 33, 0.06);
  display: flex;
  align-items: center;
  gap: 6px;
}

.logout-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid rgba(26, 33, 33, 0.06);
  color: var(--color-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background: var(--color-pink);
  color: #fff;
  transform: translateY(-2px);
}

/* ==========================================================================
   MAIN DASHBOARD
   ========================================================================== */
.ron-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  z-index: 1;
}

/* Section Number Header Tags (01 Impact & Metrics) */
.section-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-number-tag {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.num-idx {
  font-size: 26px;
  font-weight: 300;
  font-family: var(--font-unified);
  color: var(--text-muted);
  letter-spacing: -1px;
}

.num-title {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-unified);
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.live-status-spinner {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-ring {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(202, 235, 234, 0.5);
  border-top-color: var(--color-coral);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

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

.health-pill {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  background: var(--color-coral-dim);
  color: var(--color-coral);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.ron-counter-pill {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  background: var(--bg-inner);
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   HERO GRID: METRICS & SUNBURST DIAL
   ========================================================================== */
.ron-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
}

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

.hero-metrics-card {
  padding: 32px;
}

.hero-sunburst-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ==========================================================================
   SEGMENTED EQUALIZER METRICS (Image 1 Style)
   ========================================================================== */
.segmented-metrics-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.segment-metric-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metric-scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-light);
  padding: 0 2px;
}

.segmented-bar-track {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 38px;
  width: 100%;
}

.segment-tick {
  flex: 1;
  height: 100%;
  background: #E8ECE8;
  border-radius: 4px;
  transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.segment-tick.filled,
.segment-tick.filled.level-normal {
  background: linear-gradient(180deg, var(--color-coral-light), var(--color-coral));
  box-shadow: 0 2px 8px rgba(22, 147, 131, 0.35);
}

.segment-tick.filled.level-warning {
  background: linear-gradient(180deg, #FFF176, #FF9800);
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.45);
}

.segment-tick.filled.level-danger {
  background: linear-gradient(180deg, #FF8A80, #E53935);
  box-shadow: 0 2px 8px rgba(229, 57, 53, 0.5);
}

.metric-num-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.metric-huge-val {
  font-size: 42px;
  font-weight: 900;
  font-family: var(--font-unified);
  line-height: 1;
  letter-spacing: -2px;
  color: var(--text-dark);
  min-width: 100px;
}

.metric-huge-val small {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-muted);
}

.metric-desc-wrap {
  display: flex;
  flex-direction: column;
}

.metric-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-dark);
}

.metric-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ==========================================================================
   TANGERINE SUNBURST DIAL & SIDE PILLS (Image 2 & 3 Style)
   ========================================================================== */
.sunburst-visual-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 10px 0;
}

@media (max-width: 600px) {
  .sunburst-visual-wrapper {
    flex-direction: column;
  }
}

.sunburst-dial {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.sunburst-glow-halo {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(202, 235, 234, 0.6) 0%, rgba(202, 235, 234, 0.15) 60%, transparent 100%);
  filter: blur(14px);
  transition: background 0.4s ease;
}

.sunburst-radial-rays {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 8px dashed rgba(22, 147, 131, 0.35);
  animation: sunburstRotate 45s linear infinite;
  transition: border-color 0.4s ease;
}

/* Sunburst Dial Dynamic Levels (Warning & Danger) */
.sunburst-dial.dial-warning .sunburst-glow-halo {
  background: radial-gradient(circle, rgba(255, 193, 7, 0.55) 0%, rgba(255, 152, 0, 0.15) 60%, transparent 100%);
}
.sunburst-dial.dial-warning .sunburst-radial-rays {
  border-color: rgba(255, 152, 0, 0.45);
}

.sunburst-dial.dial-danger .sunburst-glow-halo {
  background: radial-gradient(circle, rgba(244, 67, 54, 0.6) 0%, rgba(229, 57, 53, 0.2) 60%, transparent 100%);
}
.sunburst-dial.dial-danger .sunburst-radial-rays {
  border-color: rgba(229, 57, 53, 0.55);
}

@keyframes sunburstRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.sunburst-inner-core {
  position: relative;
  z-index: 2;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 14px 35px -8px rgba(202, 235, 234, 0.65), inset 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

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

.core-huge-val {
  font-size: 38px;
  font-weight: 900;
  font-family: var(--font-unified);
  line-height: 1;
  color: var(--text-dark);
  letter-spacing: -1.5px;
  margin: 2px 0;
}

.core-huge-val small {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-muted);
}

.core-sub-badge {
  font-size: 10px;
  font-weight: 700;
  background: var(--color-coral-dim);
  color: var(--color-coral);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Side Pills (Ron Design Stack) */
.sunburst-side-pills {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  width: 100%;
}

.bot-side-pill {
  background: #FFFFFF;
  border: 1px solid rgba(26, 33, 33, 0.07);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 15px -4px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bot-side-pill:hover, .bot-side-pill.active {
  border-color: var(--color-coral);
  box-shadow: 0 8px 24px -6px rgba(202, 235, 234, 0.7);
  transform: translateX(-4px);
}

.bsp-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-coral);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(22, 147, 131, 0.35);
}

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

.bsp-info strong {
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-unified);
}

.bsp-info span {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.sunburst-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-inner);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  margin-top: 18px;
}

.sfb-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.sfb-stat span { color: var(--text-muted); }
.sfb-stat strong { font-family: var(--font-mono); font-weight: 700; }
.sfb-divider { width: 1px; height: 20px; background: rgba(26, 33, 33, 0.08); }

/* ==========================================================================
   SECTION 3: ACTIVE SERVICES & BOT CONTROLLER (LUXURY BENTO TILES)
   ========================================================================== */
.projects-section-card {
  padding: 32px;
}

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

.projects-ron-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

/* Luxury Bento Service Tile */
.ron-service-tile {
  background: #FFFFFF;
  border: 1px solid rgba(26, 33, 33, 0.06);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.ron-service-tile:hover {
  border-color: rgba(22, 147, 131, 0.35);
  box-shadow: 0 18px 45px -12px rgba(22, 147, 131, 0.18);
  transform: translateY(-3px);
}

.rst-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rst-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rst-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.rst-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.rst-title {
  font-size: 18px;
  font-weight: 800;
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  color: var(--text-dark);
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.rst-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 2px;
}

.rst-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.rst-uptime-pill {
  padding: 4px 9px;
  background: rgba(26, 33, 33, 0.05);
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(26, 33, 33, 0.07);
}

.rst-uptime-pill i {
  font-size: 10px;
  color: var(--color-primary);
}

.rst-status-tag {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 800;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
}

.rst-status-tag.online {
  background: rgba(43, 189, 168, 0.10);
  color: #1E8E7E;
}

.rst-status-tag.idle {
  background: rgba(108, 125, 125, 0.12);
  color: #6C7D7D;
}

.rst-status-tag.offline {
  background: var(--color-pink-dim);
  color: var(--color-pink);
}

/* Idle & Inactive Tiles (Subtle Gray Tint) */
.ron-service-tile.is-idle,
.ron-service-tile.is-offline {
  background: #F4F6F6;
  border-color: rgba(26, 33, 33, 0.08);
  opacity: 0.76;
}

.ron-service-tile.is-idle:hover,
.ron-service-tile.is-offline:hover {
  opacity: 1;
  background: #FFFFFF;
  border-color: rgba(26, 33, 33, 0.16);
  box-shadow: 0 14px 35px -10px rgba(0, 0, 0, 0.08);
}

.ron-service-tile.is-idle .rst-icon-box,
.ron-service-tile.is-offline .rst-icon-box {
  background: rgba(26, 33, 33, 0.06);
  color: #78909C;
}

.ron-service-tile.is-idle .fill-coral,
.ron-service-tile.is-idle .fill-mint,
.ron-service-tile.is-offline .fill-coral,
.ron-service-tile.is-offline .fill-mint {
  background: #B0BEC5 !important;
}

.rst-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Middle Progress Bars */
.rst-bars-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #F8FAF8;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(26, 33, 33, 0.04);
}

.rst-bar-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rst-bar-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.rst-bar-label {
  font-weight: 800;
  color: #8C9E9E;
  letter-spacing: 0.5px;
}

.rst-bar-val {
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-dark);
}

.rst-bar-bg {
  height: 6px;
  background: #E8ECE8;
  border-radius: var(--radius-full);
  overflow: hidden;
  width: 100%;
}

.rst-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.fill-coral,
.fill-mint {
  background: linear-gradient(90deg, #CAEBEA, #169383);
  box-shadow: 0 0 10px rgba(202, 235, 234, 0.6);
}

.fill-warning {
  background: linear-gradient(90deg, #FFF176, #FF9800) !important;
  box-shadow: 0 0 10px rgba(255, 152, 0, 0.45) !important;
}

.fill-danger {
  background: linear-gradient(90deg, #FF8A80, #E53935) !important;
  box-shadow: 0 0 10px rgba(229, 57, 53, 0.5) !important;
}

/* Footer Action Buttons */
.rst-action-footer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rst-act-btn {
  flex: 1;
  height: 38px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  user-select: none;
}

.rst-btn-restart {
  background: linear-gradient(135deg, var(--color-coral), #1EAD9B);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(22, 147, 131, 0.32);
}

.rst-btn-restart:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 147, 131, 0.45);
}

.rst-btn-logs {
  background: #F4F6F4;
  color: var(--text-dark);
  border-color: rgba(26, 33, 33, 0.06);
}

.rst-btn-logs:hover {
  background: #E8ECE8;
  transform: translateY(-2px);
}

.rst-btn-stop {
  background: var(--color-pink-dim);
  color: var(--color-pink);
}

.rst-btn-stop:hover {
  background: var(--color-pink);
  color: #fff;
  transform: translateY(-2px);
}

/* ==========================================================================
   GENERAL BUTTONS
   ========================================================================== */
.ron-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.ron-btn-primary {
  background: linear-gradient(135deg, #169383, #22B29F);
  color: #fff;
  box-shadow: var(--shadow-coral-glow);
}

.ron-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(22, 147, 131, 0.5);
}

.ron-btn-coral-ghost {
  background: var(--color-coral-dim);
  color: var(--color-coral);
}

.ron-btn-coral-ghost:hover {
  background: var(--color-coral);
  color: #fff;
}

.ron-btn-ghost {
  background: #FFFFFF;
  border-color: rgba(26, 33, 33, 0.08);
  color: var(--text-dark);
}

.ron-btn-ghost:hover {
  border-color: var(--color-coral);
  transform: translateY(-2px);
}

.ron-btn-danger-ghost {
  background: var(--color-pink-dim);
  color: var(--color-pink);
}

.ron-btn-danger-ghost:hover {
  background: var(--color-pink);
  color: #fff;
}

.ron-btn-danger {
  background: linear-gradient(135deg, var(--color-pink), #D81B60);
  color: #fff;
}

.ron-btn-sm {
  padding: 7px 16px;
  font-size: 12px;
}

.ron-btn-xs {
  padding: 5px 12px;
  font-size: 11px;
  border-radius: var(--radius-full);
}

.ron-circle-btn, .ron-circle-btn-xs {
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid rgba(26, 33, 33, 0.08);
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ron-circle-btn {
  width: 38px;
  height: 38px;
  font-size: 14px;
}

.ron-circle-btn-xs {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.ron-circle-btn:hover {
  background: #CAEBEA;
  border-color: #169383;
  color: #0E5E55;
  transform: scale(1.1);
}

/* ==========================================================================
   FLOATING GLASS DOCK (Mobile & Desktop)
   ========================================================================== */
.ron-dock-wrapper {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 500;
  pointer-events: none;
  padding: 0 12px;
  box-sizing: border-box;
}

.ron-dock {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 50px -12px rgba(25, 40, 35, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.04);
  max-width: 100%;
  box-sizing: border-box;
}

.dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  color: var(--text-muted);
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.dock-btn i { font-size: 15px; }
.dock-btn span { font-size: 10px; font-weight: 700; white-space: nowrap; }

.dock-btn:hover {
  color: var(--text-dark);
  background: var(--color-coral-dim);
  transform: translateY(-2px);
}

.dock-btn.active {
  background: #CAEBEA !important;
  color: #0E5E55 !important;
  box-shadow: 0 4px 14px rgba(202, 235, 234, 0.9), 0 0 0 1px rgba(22, 147, 131, 0.25) !important;
}

/* Quick Tools Floating Popover */
.dock-tools-popover {
  display: none;
  position: absolute;
  bottom: calc(100% + 14px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
  box-shadow: 0 25px 60px -15px rgba(25, 40, 35, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  pointer-events: auto;
  transform-origin: bottom center;
  z-index: 501;
}

.dock-tools-popover.active {
  display: flex !important;
  animation: popoverSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.dock-tools-popover.hidden {
  display: none !important;
}

@keyframes popoverSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dock-popover-header {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px 6px 10px;
  border-bottom: 1px solid rgba(26, 33, 33, 0.05);
  margin-bottom: 2px;
}

.dock-popover-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  border-radius: 14px;
  padding: 8px 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
}

.dock-popover-item:hover {
  background: var(--bg-inner);
  transform: translateX(3px);
}

.dpi-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.dpi-text {
  display: flex;
  flex-direction: column;
}

.dpi-text strong {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-dark);
}

.dpi-text small {
  font-size: 10px;
  color: var(--text-muted);
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(247, 248, 245, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.hidden { display: none !important; }

.modal-card-lg {
  width: 96vw;
  max-width: 1300px;
  padding: 28px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 35px 90px -20px rgba(0, 0, 0, 0.3);
}

.modal-card-md {
  width: 100%;
  max-width: 500px;
  padding: 28px;
}

.modal-header-ron {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(26, 33, 33, 0.06);
  gap: 12px;
  flex-wrap: wrap;
}

.modal-title-ron {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-title-ron h3 {
  font-size: 17px;
  font-weight: 800;
}

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

.ron-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.ron-search-box i {
  position: absolute;
  right: 12px;
  color: var(--text-muted);
}

.ron-search-box input {
  background: var(--bg-inner);
  border: 1px solid rgba(26, 33, 33, 0.08);
  border-radius: var(--radius-full);
  padding: 8px 36px 8px 14px;
  font-size: 13px;
  width: 250px;
}

/* ==========================================================================
   PROCESSES TABLE
   ========================================================================== */
.ron-table-wrap {
  overflow-x: auto;
  max-height: 60vh;
}

.ron-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  direction: ltr;
  font-size: 13px;
}

.ron-table th {
  background: var(--bg-inner);
  padding: 12px 16px;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid rgba(26, 33, 33, 0.06);
  position: sticky;
  top: 0;
  z-index: 5;
  text-align: left;
  font-family: var(--font-unified);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ron-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(26, 33, 33, 0.05);
  font-family: var(--font-mono);
  vertical-align: middle;
  text-align: left;
}

.proc-main-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.proc-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.proc-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-dark);
}

.proc-mobile-pid {
  display: none;
}

.proc-mobile-metrics {
  display: none;
  align-items: center;
  gap: 6px;
}

.proc-metric-chip {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  background: var(--bg-inner);
  border: 1px solid rgba(26, 33, 33, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
}

.proc-metric-chip.chip-coral {
  background: var(--color-coral-dim);
  border-color: rgba(255, 107, 74, 0.3);
  color: var(--color-coral);
}

.proc-cmd-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  word-break: break-all;
  line-height: 1.4;
}

.ron-table tbody tr:hover {
  background: var(--color-coral-dim);
}

/* ==========================================================================
   TERMINAL (CMD)
   ========================================================================== */
.ron-terminal-modal {
  padding: 0 !important;
  background: #0D1117 !important;
  border: 1px solid rgba(202, 235, 234, 0.35);
  overflow: hidden;
}

.terminal-head-bar {
  background: #161B22;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 12px;
  flex-shrink: 0;
}

.t-head-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.t-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.t-title-bar {
  color: #E6EDF3;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.t-name-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.live-stream-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(39, 201, 63, 0.15);
  color: #27C93F;
  border: 1px solid rgba(39, 201, 63, 0.35);
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  user-select: none;
  flex-shrink: 0;
}

.live-stream-badge .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #27C93F;
  box-shadow: 0 0 8px #27C93F;
  animation: liveDotPulse 1.4s infinite ease-in-out;
}

@keyframes liveDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.t-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.terminal-screen-area {
  padding: 22px 26px;
  background: #0D1117;
  color: #E6EDF3;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  height: 540px;
  max-height: 65vh;
  overflow-y: auto;
  white-space: pre-wrap;
}

.t-line { margin-bottom: 4px; }

/* Smart Terminal Output Widgets */
.smart-term-card {
  background: #161B22;
  border: 1px solid rgba(202, 235, 234, 0.35);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 12px 0 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  max-width: 720px;
  width: 100%;
}

.stc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #E6EDF3;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stc-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0D1117;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  gap: 12px;
}

.stc-lead {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.stc-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #CAEBEA;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.stc-pid {
  font-size: 11px;
  color: #8B949E;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.stc-status-pill {
  font-size: 10px;
  font-weight: 800;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stc-status-pill.online {
  background: rgba(39, 201, 63, 0.15);
  color: #27C93F;
}

.stc-status-pill.offline {
  background: rgba(255, 95, 86, 0.15);
  color: #FF5F56;
}

.stc-meta-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stc-metric-chip {
  font-size: 10px;
  font-family: var(--font-mono);
  color: #8B949E;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

.stc-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.stc-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.stc-btn-logs {
  background: rgba(255, 255, 255, 0.08);
  color: #E6EDF3;
}
.stc-btn-logs:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.stc-btn-restart {
  background: linear-gradient(135deg, var(--color-coral), #1EAD9B);
  color: #FFFFFF;
}
.stc-btn-restart:hover {
  box-shadow: 0 0 8px rgba(202, 235, 234, 0.6);
  transform: translateY(-1px);
}

.stc-btn-kill {
  background: rgba(236, 64, 122, 0.15);
  color: #EC407A;
  border-color: rgba(236, 64, 122, 0.2);
}
.stc-btn-kill:hover {
  background: #EC407A;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.stc-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stc-chip-group {
  background: #0D1117;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 5px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.stc-mini-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #E6EDF3;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.stc-mini-btn:hover {
  background: var(--color-coral);
  color: #000;
}

.terminal-chips-bar {
  background: #13171E;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.term-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: #B0C0C0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.term-chip:hover {
  background: var(--color-coral);
  border-color: var(--color-coral);
  color: #0D1117;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 74, 0.35);
}

.terminal-footer-form {
  background: #161B22;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.t-prompt-symbol {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-coral);
  font-weight: 700;
}

.terminal-footer-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 14px;
}

.terminal-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-coral);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.terminal-send-btn:hover {
  transform: scale(1.08);
}

/* ==========================================================================
   FORMS & SETTINGS
   ========================================================================== */
/* ==========================================================================
   COMPACT SLEEK SETTINGS MODAL (TABS & MULTI-SERVER PROFILES)
   ========================================================================== */
.ron-settings-compact {
  max-width: 520px;
  width: 92%;
  padding: 20px 22px;
  border-radius: 22px;
  background: var(--bg-card);
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.2);
  margin: auto;
}

.ron-settings-compact .modal-header-ron {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  flex-direction: row !important;
}

.settings-compact-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--color-coral-dim);
  color: var(--color-coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.settings-tab-nav {
  display: flex;
  background: var(--bg-inner);
  padding: 4px;
  border-radius: var(--radius-full);
  gap: 4px;
  margin-bottom: 14px;
}

.settings-tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 7px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.settings-tab-btn:hover {
  color: var(--text-dark);
}

.settings-tab-btn.active {
  background: #FFFFFF;
  color: var(--text-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.settings-tab-pane {
  display: none;
  animation: fadeInPane 0.2s ease;
}

.settings-tab-pane.active {
  display: block;
}

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

/* Saved Servers Section */
.saved-servers-section {
  background: var(--bg-inner);
  border: 1px solid rgba(26, 33, 33, 0.06);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 12px;
}

.sss-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.sss-head span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-new-server {
  background: var(--color-coral);
  color: #FFFFFF;
  border: none;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px var(--color-coral-dim);
  transition: all 0.2s ease;
}

.btn-new-server:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--color-coral-dim);
  filter: brightness(1.06);
}

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

.saved-servers-list {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.server-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #FFFFFF;
  border: 1px solid rgba(26, 33, 33, 0.1);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.server-pill:hover {
  border-color: var(--color-coral);
}

.server-pill.active {
  background: var(--color-coral);
  color: #FFFFFF;
  border-color: var(--color-coral);
  box-shadow: 0 4px 12px var(--color-coral-dim);
}

.server-pill.active .server-pill-del {
  color: rgba(255, 255, 255, 0.8);
}

.server-pill-del {
  font-size: 10px;
  color: var(--text-muted);
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.server-pill-del:hover {
  color: #FF5F56;
}

.ron-compact-form {
  display: flex;
  flex-direction: column;
}

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

.form-field-sm {
  margin-bottom: 10px;
}

.form-field-sm label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.form-field-sm input {
  width: 100%;
  height: 36px;
  background: var(--bg-inner);
  border: 1px solid rgba(26, 33, 33, 0.08);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 12.5px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-field-sm input:focus {
  border-color: var(--color-coral);
  box-shadow: 0 0 0 3px var(--color-coral-dim);
  background: #FFFFFF;
  outline: none;
}

.form-field-sm input:disabled {
  background: rgba(26, 33, 33, 0.03);
  color: var(--text-muted);
  cursor: not-allowed;
  border-color: rgba(26, 33, 33, 0.06);
  opacity: 0.85;
}

.danger-box-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #FBF7F7;
  border: 1px solid rgba(255, 95, 86, 0.16);
  border-radius: var(--radius-lg);
  margin-top: 4px;
}

@media (max-width: 600px) {
  .ron-settings-compact {
    width: 95% !important;
    padding: 16px 14px !important;
    max-width: 100% !important;
  }
  .settings-tab-nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 3px !important;
    padding: 3px !important;
  }
  .settings-tab-btn {
    padding: 6px 4px !important;
    font-size: 10px !important;
    gap: 3px !important;
  }
  .settings-tab-btn i {
    font-size: 10.5px !important;
  }
  .form-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }
}

/* Auth */
.auth-box {
  width: 100%;
  max-width: 400px;
  padding: 40px 32px;
  text-align: center;
}

.auth-icon-wrap {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
}

.auth-logo-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.auth-header h2 { font-size: 22px; font-weight: 900; margin-bottom: 4px; }
.auth-header p { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }

.ron-input-group {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.ron-input-group input {
  width: 100%;
  background: var(--bg-inner);
  border: 1px solid rgba(26, 33, 33, 0.08);
  border-radius: var(--radius-full);
  padding: 12px 42px 12px 16px;
  font-size: 14px;
}

.ron-input-group .input-icon {
  position: absolute;
  right: 16px;
  color: var(--text-muted);
}

.auth-error-msg {
  background: var(--color-pink-dim);
  color: var(--color-pink);
  padding: 9px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  margin-bottom: 16px;
}

/* Toast */
.toast-container {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #FFFFFF;
  border: 1px solid rgba(26, 33, 33, 0.08);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.12);
  border-right: 4px solid var(--color-coral);
}

/* ==========================================================================
   AI COPILOT MODAL (RON DESIGN LUXURY AI SYSTEM)
   ========================================================================== */
.ron-ai-modal {
  width: 96vw;
  max-width: 820px;
  padding: 30px;
  background: #FFFFFF;
}

.ai-sparkle-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-coral), #FF8E72);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(255, 107, 74, 0.35);
}

.ai-modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 75vh;
  overflow-y: auto;
  padding: 4px 2px;
}

.ai-prompt-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-input-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.ai-robot-icon {
  position: absolute;
  right: 16px;
  font-size: 18px;
  pointer-events: none;
}

.ai-input-row input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  background: #F8FAF8;
  border: 1px solid rgba(26, 33, 33, 0.08);
  border-radius: var(--radius-full);
  padding: 14px 48px 14px 18px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.ai-input-row button {
  flex-shrink: 0;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  font-size: 13.5px;
}

.ai-input-row input:focus {
  border-color: var(--color-coral);
  box-shadow: 0 0 0 4px var(--color-coral-dim);
  background: #FFFFFF;
}

.ai-suggestions-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ai-chip {
  background: #FFFFFF;
  border: 1px solid rgba(26, 33, 33, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.ai-chip:hover {
  background: var(--color-coral);
  color: #fff;
  border-color: var(--color-coral);
  transform: translateY(-2px);
}

.ai-loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px;
  background: var(--bg-inner);
  border-radius: var(--radius-md);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 14px;
}

/* AI Plan Card */
.ai-plan-card {
  background: #FFFFFF;
  border: 1px solid rgba(255, 107, 74, 0.3);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 16px 45px -10px rgba(255, 107, 74, 0.15);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: modalScale 0.25s ease-out;
}

.aip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(26, 33, 33, 0.06);
  padding-bottom: 12px;
}

.aip-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.aip-title-group h4 {
  font-size: 17px;
  font-weight: 800;
}

.aip-risk-badge {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-mono);
}

.risk-low { background: rgba(43, 189, 168, 0.12); color: #1E8E7E; }
.risk-medium { background: rgba(255, 189, 46, 0.15); color: #D97706; }
.risk-high { background: rgba(236, 64, 122, 0.15); color: #EC407A; }

.aip-explanation-box {
  background: #F8FAF8;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(26, 33, 33, 0.04);
}

.aip-explanation-box strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 6px;
}

.aip-explanation-box p {
  font-size: 13.5px;
  color: var(--text-dark);
  line-height: 1.7;
}

.aip-commands-box {
  background: #0D1117;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.aip-cmd-header {
  font-size: 11px;
  font-weight: 700;
  color: #8B949E;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.aip-cmd-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aip-cmd-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #E6EDF3;
  font-family: var(--font-mono);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 10px;
  border-radius: 6px;
}

.aip-decision-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.aip-decision-bar .ron-btn {
  flex: 1;
  height: 46px;
  font-size: 14px;
}

.ai-execution-results {
  background: #0D1117;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  border: 1px solid rgba(255, 107, 74, 0.3);
}

.aer-header {
  font-size: 12px;
  font-weight: 700;
  color: #E6EDF3;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.aer-log-screen {
  max-height: 220px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: #E6EDF3;
}

/* ==========================================================================
   CONFIRM MODAL (LUXURY RON DESIGN DIALOG)
   ========================================================================== */
.confirm-overlay {
  z-index: 2500;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(247, 248, 245, 0.85);
}

.confirm-box {
  width: 100%;
  max-width: 440px;
  padding: 36px 28px 28px;
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  border: 1px solid rgba(26, 33, 33, 0.08);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.03);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.confirm-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-coral-dim);
  color: var(--color-coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 8px 20px -4px rgba(255, 107, 74, 0.3);
  margin-bottom: 6px;
}

#confirm-modal-title {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-unified);
  color: var(--text-dark);
  line-height: 1.2;
}

#confirm-modal-msg {
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-unified);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 360px;
  word-break: break-word;
}

.confirm-modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 14px;
}

.confirm-modal-actions .ron-btn {
  flex: 1;
  height: 44px;
  font-size: 13px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (All Devices: Mobile, Tablet, Large Desktop)
   ========================================================================== */
@media (max-width: 768px) {
  .ron-main {
    padding: 16px 12px;
    gap: 16px;
  }
  
  .header-container {
    padding: 0 12px;
  }
  
  .hero-metrics-card, .hero-sunburst-card, .projects-section-card {
    padding: 18px 14px;
    border-radius: 20px;
  }

  .metric-huge-val {
    font-size: 30px;
  }

  .host-badge {
    display: none;
  }

  .projects-ron-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Modals Mobile Perfection (100% Full Viewport) */
  .modal-overlay {
    padding: 0 !important;
  }

  .modal-card-lg,
  .modal-card-md,
  .ron-terminal-modal,
  #processes-modal .modal-card-lg,
  #settings-modal .modal-card-lg,
  #ai-modal .modal-card-lg,
  #screen-logs-modal .modal-card-lg {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    padding: 16px 14px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* Terminal Window Responsive (Full Height) */
  .ron-terminal-modal {
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    display: flex;
    flex-direction: column;
    border-radius: 0 !important;
  }

  .terminal-head-bar {
    padding: 8px 12px;
    flex-shrink: 0;
    gap: 8px;
    min-height: 44px;
  }

  .t-head-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }

  .t-dots {
    display: none !important;
  }

  .t-title-bar {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }

  .t-name-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex-shrink: 1;
  }

  .live-stream-badge {
    font-size: 9.5px;
    padding: 2px 6px;
    margin-left: 0;
    gap: 4px;
    flex-shrink: 0;
  }

  .t-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  .btn-adaptive .btn-text-adaptive {
    display: none;
  }

  .btn-adaptive {
    padding: 6px 8px !important;
    min-width: 32px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .terminal-screen-area {
    flex: 1;
    height: 100% !important;
    max-height: none !important;
    padding: 14px 16px;
    font-size: 12.5px;
  }

  .terminal-chips-bar {
    padding: 8px 12px;
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    flex-shrink: 0;
  }

  .terminal-chips-bar::-webkit-scrollbar {
    display: none;
  }

  .term-chip {
    flex-shrink: 0;
    padding: 5px 11px;
    font-size: 11px;
  }

  .terminal-footer-form {
    padding: 10px 14px;
    gap: 10px;
    flex-shrink: 0;
  }

  .terminal-footer-form input {
    font-size: 13px;
  }

  /* Smart Screen Hub & PM2 Hub Inside Terminal */
  .smart-term-card {
    padding: 10px 12px;
    margin: 6px 0 10px;
    border-radius: 12px;
  }

  .stc-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
  }

  .stc-lead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .stc-title-box {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .stc-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5px;
    width: 100%;
  }

  .stc-btn {
    justify-content: center;
    width: 100%;
    height: 30px;
    font-size: 11px;
    padding: 0 4px;
    border-radius: 6px;
  }

  .stc-chip-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 6px;
    padding: 8px 10px;
  }

  /* Processes Table on Mobile */
  .modal-header-ron {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .modal-header-controls {
    justify-content: space-between;
    width: 100%;
  }

  .ron-search-box {
    flex: 1;
  }

  .ron-search-box input {
    width: 100%;
  }

  .proc-col-pid,
  .proc-col-user,
  .proc-col-cpu,
  .proc-col-mem {
    display: none !important;
  }

  .proc-mobile-pid {
    display: inline-block;
  }

  .proc-mobile-metrics {
    display: inline-flex;
  }

  .proc-table-row td {
    padding: 10px 8px;
  }

  .ron-table-wrap {
    max-height: calc(100dvh - 145px) !important;
  }

  /* Floating Glass Dock - Mobile Responsive 6-Item Fit */
  .ron-dock-wrapper {
    bottom: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    padding: 0 8px;
    width: 100%;
  }

  .ron-dock {
    width: 100%;
    max-width: 100%;
    padding: 5px 6px;
    gap: 2px;
    justify-content: space-around;
  }

  .dock-btn {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    padding: 6px 3px;
    gap: 2px;
    border-radius: 12px;
    flex-shrink: 1;
  }

  .dock-btn i {
    font-size: 15px;
  }

  .dock-btn span {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
  }

  .dock-btn.active {
    padding: 6px 3px;
    border-radius: 12px;
  }
}

@media (max-width: 380px) {
  .ron-dock-wrapper {
    padding: 0 4px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .ron-dock {
    padding: 4px 4px;
    gap: 1px;
  }

  .dock-btn {
    padding: 5px 2px;
    gap: 1px;
    border-radius: 10px;
  }

  .dock-btn i {
    font-size: 14px;
  }

  .dock-btn span {
    font-size: 8.5px;
    letter-spacing: -0.3px;
  }

  .dock-btn.active {
    padding: 5px 2px;
  }
}

/* Visual Feedback Animations */
.is-spinning {
  animation: rotateSpin 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

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

.table-flash-refresh {
  animation: tableRefreshPulse 0.45s ease;
}

@keyframes tableRefreshPulse {
  0% {
    opacity: 0.4;
    transform: translateY(3px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   REMOTE FILE EXPLORER & CLOUD EDITOR
   ========================================================================== */
.ron-files-modal {
  max-width: 900px;
  width: 95%;
  min-height: 580px;
  display: flex;
  flex-direction: column;
}

.fe-top-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.fe-shortcuts {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.fe-sc-btn {
  background: var(--bg-inner);
  border: 1px solid rgba(26, 33, 33, 0.08);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.fe-sc-btn:hover {
  background: #FFFFFF;
  border-color: var(--color-coral);
  color: var(--color-coral);
}

.fe-path-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.fe-path-input-wrap {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
  background: var(--bg-inner);
  border: 1px solid rgba(26, 33, 33, 0.08);
  border-radius: var(--radius-full);
  padding: 4px 8px 4px 12px;
  gap: 8px;
}

.fe-path-input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dark);
  outline: none;
}

.fe-go-btn {
  background: var(--color-coral);
  color: #FFFFFF;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  transition: all 0.15s ease;
}

.fe-go-btn:hover {
  filter: brightness(1.1);
}

.fe-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fe-action-btn {
  background: #FFFFFF;
  border: 1px solid rgba(26, 33, 33, 0.1);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.fe-action-btn:hover {
  border-color: var(--color-coral);
  color: var(--color-coral);
}

.fe-table-wrap {
  max-height: 400px;
  overflow-y: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(26, 33, 33, 0.06);
}

.fe-table tbody tr {
  cursor: pointer;
  transition: background 0.15s ease;
}

.fe-table tbody tr:hover {
  background: rgba(255, 95, 86, 0.03);
}

.fe-item-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 12.5px;
}

.fe-item-icon {
  font-size: 15px;
  width: 18px;
  text-align: center;
}

.fe-item-folder {
  color: #FFAA2C;
}

.fe-item-js {
  color: #F7DF1E;
}

.fe-item-json {
  color: #2ECC71;
}

.fe-item-env {
  color: #E74C3C;
}

.fe-item-file {
  color: var(--text-muted);
}

/* Editor View */
.fe-editor-view {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.fe-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-inner);
  border-radius: var(--radius-md);
  border: 1px solid rgba(26, 33, 33, 0.06);
  flex-wrap: wrap;
  gap: 8px;
}

.fe-editor-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}

.fe-editor-path {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.fe-editor-badge {
  background: rgba(46, 204, 113, 0.12);
  color: #27AE60;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
}

.fe-editor-badge.unsaved {
  background: rgba(255, 95, 86, 0.12);
  color: var(--color-coral);
}

.fe-editor-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fe-editor-body {
  flex: 1;
  min-height: 380px;
}

.fe-code-textarea {
  width: 100%;
  height: 380px;
  background: #181E1E;
  color: #E6EEEE;
  font-family: 'Fira Code', 'Cascadia Code', Consolas, Monaco, monospace;
  font-size: 13px;
  line-height: 1.6;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  outline: none;
  resize: vertical;
  tab-size: 2;
  white-space: pre;
}

.fe-code-textarea:focus {
  border-color: var(--color-coral);
  box-shadow: 0 0 0 2px var(--color-coral-dim);
}

/* ==========================================================================
   TRUE AI COPILOT & PLAN CARDS (Luxury Bento Aesthetics)
   ========================================================================== */
.ai-chat-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ai-input-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1.5px solid rgba(26, 33, 33, 0.1);
  border-radius: var(--radius-full);
  padding: 6px 8px 6px 18px;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.ai-input-bar-wrap:focus-within {
  border-color: var(--color-coral);
  box-shadow: 0 0 0 4px rgba(202, 235, 234, 0.7), 0 10px 30px -5px rgba(22, 147, 131, 0.15);
}

.ai-input-bar-wrap i {
  color: var(--color-coral);
  font-size: 16px;
}

.ai-prompt-input {
  flex: 1;
  height: 42px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 600;
}

.ai-prompt-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.ai-submit-btn {
  height: 42px;
  padding: 0 22px;
  background: linear-gradient(135deg, #169383, #22B29F);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 16px -2px rgba(22, 147, 131, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.ai-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -3px rgba(22, 147, 131, 0.5);
}

.ai-chips-shelf {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ai-chips-shelf .shelf-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.ai-preset-chip {
  background: #FFFFFF;
  border: 1px solid rgba(26, 33, 33, 0.08);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.ai-preset-chip:hover {
  background: #CAEBEA;
  border-color: var(--color-coral);
  color: #0E5E55;
  transform: translateY(-1px);
}

/* AI Loading Spinner Box */
.ai-loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(202, 235, 234, 0.35) 0%, rgba(255, 255, 255, 0.8) 100%);
  border: 1.5px dashed rgba(22, 147, 131, 0.3);
  border-radius: 20px;
  padding: 24px;
  color: #127266;
  font-size: 13.5px;
  font-weight: 700;
  animation: pulseCard 2s infinite alternate;
}

@keyframes pulseCard {
  0% { opacity: 0.8; }
  100% { opacity: 1; }
}

/* AI Plan Card Showcase */
.ai-plan-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(22, 147, 131, 0.22);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 16px 45px -10px rgba(22, 147, 131, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeInPlan 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInPlan {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.aip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(26, 33, 33, 0.06);
}

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

.aip-title-group i {
  font-size: 20px;
  color: var(--color-coral);
  background: var(--color-coral-dim);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aip-title-group h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.3px;
  margin: 0;
}

.aip-risk-badge {
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-mono);
  background: #CAEBEA;
  color: #0E5E55;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(22, 147, 131, 0.2);
}

.aip-explanation-box {
  background: #F6FAF9;
  border: 1px solid rgba(22, 147, 131, 0.12);
  border-radius: 18px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aip-explanation-box strong {
  font-size: 12.5px;
  font-weight: 800;
  color: #127266;
  display: flex;
  align-items: center;
  gap: 7px;
}

.aip-explanation-box p {
  font-size: 13.5px;
  color: #354644;
  line-height: 1.6;
  font-weight: 500;
  margin: 0;
}

/* Commands Box (Dark Terminal Style) */
.aip-commands-box {
  background: #0D1117;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.aip-cmd-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #8B949E;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.aip-cmd-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aip-cmd-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fira Code', 'Cascadia Code', Consolas, monospace;
  font-size: 13px;
  color: #7EE787;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 12px;
  border-radius: 8px;
  word-break: break-all;
}

.aip-cmd-row i {
  color: #58A6FF;
  font-size: 11px;
}

/* Decision Bar (Approve vs Reject) */
.aip-decision-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.aip-btn-reject {
  flex: 1;
  height: 46px;
  background: #F4F6F5;
  border: 1px solid rgba(26, 33, 33, 0.08);
  color: #5A6D6A;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.aip-btn-reject:hover {
  background: rgba(236, 64, 122, 0.1);
  border-color: rgba(236, 64, 122, 0.3);
  color: var(--color-pink);
  transform: translateY(-1px);
}

.aip-btn-approve {
  flex: 1.4;
  height: 46px;
  background: linear-gradient(135deg, #169383 0%, #1DA08E 50%, #22B29F 100%);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px -4px rgba(22, 147, 131, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.aip-btn-approve:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(22, 147, 131, 0.6);
}

/* AI Execution Terminal Results */
.ai-execution-results {
  background: #0D1117;
  border: 1px solid rgba(22, 147, 131, 0.3);
  border-radius: 20px;
  padding: 18px;
  margin-top: 10px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.aer-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #8B949E;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.aer-log-screen {
  font-family: 'Fira Code', 'Cascadia Code', Consolas, monospace;
  font-size: 13px;
  color: #E6EDF3;
  line-height: 1.6;
  max-height: 240px;
  overflow-y: auto;
  white-space: pre-wrap;
  padding: 4px;
}
