/* UseFlow Design System & Aesthetic Tokens */
:root {
  --bg-main: #080c14;
  --bg-surface: #0f1626;
  --bg-surface-elevated: #162035;
  --bg-glass: rgba(15, 23, 42, 0.75);
  --border-glass: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(99, 102, 241, 0.4);

  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
  --accent-glow: rgba(99, 102, 241, 0.35);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --color-success: #10b981;
  --color-success-bg: rgba(16, 185, 129, 0.12);
  --color-warning: #f59e0b;
  --color-warning-bg: rgba(245, 158, 11, 0.12);
  --color-danger: #ef4444;
  --color-danger-bg: rgba(239, 68, 68, 0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Radial Glow */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}
.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #6366f1, transparent);
  top: -100px;
  left: 20%;
}
.glow-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #ec4899, transparent);
  bottom: 50px;
  right: 10%;
}
.glow-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #10b981, transparent);
  top: 40%;
  left: -50px;
}

/* App Shell & Sidebar Layout */
.app-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
}

.app-sidebar {
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  height: 100vh;
  position: sticky;
  top: 0;
  background: rgba(14, 18, 30, 0.96);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  z-index: 50;
  padding: 1.25rem 0.9rem;
  box-shadow: 4px 0 28px rgba(0, 0, 0, 0.4);
  overflow-y: auto;
  overflow-x: hidden;
}

/* Sidebar Brand */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0.4rem 1.15rem;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 1.15rem;
}
.sidebar-brand .logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 16px var(--accent-glow);
  flex-shrink: 0;
}
.sidebar-brand .logo-icon svg {
  width: 20px;
  height: 20px;
}
.sidebar-brand .brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  display: block;
}
.sidebar-brand .brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 500;
  display: block;
}

/* Sidebar Sections */
.sidebar-section {
  margin-bottom: 1.15rem;
}
.sidebar-section.hidden {
  display: none !important;
}
.sidebar-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 0 0.5rem 0.45rem;
  text-transform: uppercase;
}

/* Sidebar Navigation Buttons */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.sidebar-nav.hidden {
  display: none !important;
}
.sidebar-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.6rem 0.85rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}
.sidebar-nav-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-dim);
  transition: var(--transition);
}
.sidebar-nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.sidebar-nav-btn:hover svg {
  color: var(--color-accent);
}
.sidebar-nav-btn.active {
  background: var(--bg-surface-elevated);
  border-color: rgba(99, 102, 241, 0.35);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.sidebar-nav-btn.active svg {
  color: var(--color-accent);
}

/* Sidebar Multi-Account Switchers */
.sidebar-accounts-section {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.sidebar-account-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
}
.sidebar-field-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.acc-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.acc-indicator-dot.dot-flow {
  background: #6366f1;
  box-shadow: 0 0 6px #6366f1;
}
.acc-indicator-dot.dot-buffer {
  background: #ec4899;
  box-shadow: 0 0 6px #ec4899;
}
.acc-indicator-dot.dot-chatgpt {
  background: #10a37f;
  box-shadow: 0 0 6px #10a37f;
}
.acc-indicator-dot.dot-gemini {
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
}
.sidebar-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 4px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

/* On-Demand Account & Project Selector Cards in Playground & Composer */
#group-studio-flow-account,
#group-studio-flow-project,
#explorer-account-group,
#group-buffer-account-select {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  margin-bottom: 1.1rem;
  transition: var(--transition);
}
#group-studio-flow-account:hover,
#group-studio-flow-project:hover,
#explorer-account-group:hover,
#group-buffer-account-select:hover {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(255, 255, 255, 0.04);
}
.sidebar-select:focus {
  border-color: var(--color-accent);
}
.sidebar-select option {
  background: #181d2c;
  color: #fff;
}

/* Sidebar System Diagnostics */
.sidebar-system-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sidebar-status-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
}
.sidebar-headless-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
}
.sidebar-headless-pill:hover {
  background: rgba(99, 102, 241, 0.18);
}
.sidebar-headless-pill .headless-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6366f1;
  box-shadow: 0 0 6px #6366f1;
}

/* Sidebar User Footer */
.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-glass);
}
.sidebar-user-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: var(--transition);
}
.sidebar-user-card.hidden {
  display: none !important;
}
.sidebar-user-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
}
.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.sidebar-user-info {
  flex: 1;
  min-width: 0;
}
.sidebar-user-name {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-role {
  display: block;
  font-size: 0.68rem;
  color: var(--text-dim);
}
.btn-sidebar-logout {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.btn-sidebar-logout.hidden {
  display: none !important;
}
.btn-sidebar-logout:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}
.btn-sidebar-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
  transition: var(--transition);
}
.btn-sidebar-login.hidden {
  display: none !important;
}
.btn-sidebar-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.5);
}

/* App Main Content Area */
.app-main-content {
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  overflow-y: auto;
  padding: 0;
}
.status-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  transition: var(--transition);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.status-ready {
  background: var(--color-success-bg);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--color-success);
}
.status-ready .status-dot {
  background: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
}
.status-loading {
  background: var(--color-warning-bg);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--color-warning);
}
.status-loading .status-dot {
  background: var(--color-warning);
  animation: pulseDot 1.4s infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.btn-icon:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}
.btn-icon svg {
  width: 16px;
  height: 16px;
}

/* Headless Mode Nav Toggle */
.headless-toggle-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
  border: 1px solid var(--border-glass);
}
.headless-toggle-pill.headless {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
}
.headless-toggle-pill.headless .headless-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #818cf8;
  box-shadow: 0 0 8px #818cf8;
}
.headless-toggle-pill.headed {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}
.headless-toggle-pill.headed .headless-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}
.headless-toggle-pill:hover {
  transform: translateY(-1px);
  filter: brightness(1.15);
}
.headless-pill-badge {
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.12rem 0.35rem;
  border-radius: var(--radius-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

/* Views Layout */
.view-section {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1600px;
  margin: 0;
  padding: 1.75rem 2.25rem;
}
.hidden {
  display: none !important;
}

/* PLAYGROUND LAYOUT */
.playground-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 1080px) {
  .playground-layout {
    grid-template-columns: 1fr;
  }
}

.panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.panel-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.panel-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  display: inline-block;
  margin-bottom: 0.25rem;
}
.panel-badge.highlight {
  background: rgba(99, 102, 241, 0.18);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}
.panel-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

/* Mode Selector Tabs */
.mode-selector {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  padding: 0.25rem;
  border-radius: var(--radius-md);
  gap: 0.25rem;
}
.mode-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}
.mode-tab svg {
  width: 14px;
  height: 14px;
}
.mode-tab:hover {
  color: var(--text-main);
}
.mode-tab.active {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.4);
}

.panel-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}

/* Form Controls */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}
.char-count {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.form-textarea, .form-input, .form-select {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.925rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: var(--transition);
}
.form-textarea:focus, .form-input:focus, .form-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  background: rgba(0, 0, 0, 0.4);
}
.form-textarea {
  resize: vertical;
  min-height: 90px;
}
.form-select {
  cursor: pointer;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Prompt Chips */
.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0.35rem;
}
.chips-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
}
.chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition);
}
.chip:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: #fff;
  transform: translateY(-1px);
}

/* Aspect Ratio Selector */
.ratio-selector {
  display: flex;
  gap: 0.5rem;
}
.ratio-btn {
  flex: 1;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.55rem 0.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.ratio-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}
.ratio-btn.active {
  background: var(--bg-surface-elevated);
  border-color: var(--accent-primary);
  color: #fff;
}

/* Pill Selector for toggles (Resolution, Duration, Outputs, Composition) */
.pill-selector {
  display: flex;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
}
.toggle-pill {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  white-space: nowrap;
}
.toggle-pill:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}
.toggle-pill.active {
  background: var(--bg-surface-elevated);
  border-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* Toggle Switch */
.form-row-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
}
.toggle-info {
  display: flex;
  flex-direction: column;
}
.toggle-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}
.toggle-desc {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
}
input:checked + .slider { background-color: var(--accent-primary); }
input:checked + .slider:before { transform: translateX(20px); }
.slider.round { border-radius: 24px; }
.slider.round:before { border-radius: 50%; }

/* Buttons */
.action-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 18px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--accent-glow);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover {
  color: #fff;
}
.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
}
.btn-glass {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-glass:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: #fff;
}
.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.input-with-button {
  display: flex;
  gap: 0.5rem;
}
.hint-box {
  font-size: 0.825rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 0.85rem;
  border-radius: var(--radius-md);
}

/* RIGHT PANEL: MONITOR & PREVIEW */
.view-tabs {
  display: flex;
  gap: 0.25rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  padding: 0.25rem;
  border-radius: var(--radius-md);
}
.view-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.view-tab.active {
  background: var(--bg-surface-elevated);
  color: #fff;
}

/* Status Card */
.status-card {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.status-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.tracker-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-dim);
}
.status-idle .tracker-dot { background: var(--text-dim); }
.status-running .tracker-dot { background: var(--color-warning); animation: pulseDot 1.2s infinite; }
.status-completed .tracker-dot { background: var(--color-success); box-shadow: 0 0 10px var(--color-success); }
.status-failed .tracker-dot { background: var(--color-danger); }

.tracker-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}
.tracker-timer {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.progress-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--accent-gradient);
  transition: width 0.4s ease;
}
.tracker-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

/* Media Viewport */
.media-viewport {
  position: relative;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.media-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  gap: 0.75rem;
}
.empty-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}
.empty-icon-wrap svg {
  width: 32px;
  height: 32px;
}
.empty-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}
.empty-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 340px;
}

.media-display {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-element {
  max-width: 100%;
  max-height: 480px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.media-overlay-actions {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}

/* Code & JSON Previews */
.code-container {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.code-header {
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.code-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}
.btn-copy {
  background: transparent;
  border: none;
  color: var(--accent-primary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-copy:hover {
  text-decoration: underline;
  color: #fff;
}
.code-pre {
  padding: 1.25rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  line-height: 1.6;
  color: #cbd5e1;
}

/* RECENT HISTORY CAROUSEL */
.recent-strip-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
}
.recent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.recent-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
}
.recent-title-wrap svg {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
}
.recent-jobs-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.recent-job-card {
  min-width: 280px;
  max-width: 320px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.recent-job-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  background: rgba(99, 102, 241, 0.05);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.badge-type {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}
.badge-type.video { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; }
.badge-type.image { background: rgba(236, 72, 153, 0.2); color: #f472b6; }
.badge-status {
  font-size: 0.7rem;
  font-weight: 700;
}
.badge-status.completed { color: var(--color-success); }
.badge-status.running { color: var(--color-warning); }
.card-prompt {
  font-size: 0.825rem;
  color: var(--text-main);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.card-footer {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* DOCS VIEW */
.docs-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }
}
.docs-sidebar {
  position: sticky;
  top: 5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.sidebar-heading {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}
.sidebar-service-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  padding: 0.45rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.sidebar-service-title .service-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.sidebar-service-title .dot-flow {
  background: #6366f1;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.8);
}
.sidebar-service-title .dot-buffer {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}
.sidebar-service-title .dot-me {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
}
.sidebar-service-title .dot-chatgpt {
  background: #10a37f;
  box-shadow: 0 0 8px rgba(16, 163, 127, 0.8);
}
.sidebar-service-title .dot-gemini {
  background: #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
}
.sidebar-service-title .dot-auth {
  background: #ec4899;
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.8);
}
.sidebar-service-title .dot-accounts {
  background: #8b5cf6;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.8);
}
.badge-patch {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}
.badge-del, .badge-delete {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}
.badge-patch.lg, .badge-delete.lg, .badge-del.lg {
  font-size: 0.85rem;
  padding: 0.25rem 0.6rem;
}
.sidebar-subheading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  padding-left: 0.35rem;
  margin-top: 0.35rem;
  margin-bottom: 0.2rem;
}
.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.sidebar-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.sidebar-link.active {
  color: #fff;
  background: var(--bg-surface-elevated);
}

.badge-post {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}
.badge-get {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}
.badge-post.lg, .badge-get.lg {
  font-size: 0.85rem;
  padding: 0.25rem 0.6rem;
}

.docs-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.doc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.doc-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.doc-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
}
.callout {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent-primary);
  background: rgba(99, 102, 241, 0.08);
}
.endpoint-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.endpoint-path {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}
.endpoint-desc {
  color: var(--text-muted);
}

.param-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}
.param-table th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-glass);
}
.param-table td {
  padding: 0.85rem 0.75rem;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.param-table code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}
.tag-required {
  font-size: 0.7rem;
  color: #f43f5e;
  font-weight: 700;
  background: rgba(244, 63, 94, 0.1);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

.example-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 0.5rem;
}
.example-tabs {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-glass);
}
.example-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* GUIDE VIEW */
.guide-container {
  max-width: 1100px;
  margin: 0 auto;
}
.architecture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.arch-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.arch-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 999;
}
.toast {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  color: #fff;
  font-size: 0.875rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* HTTP Method Badges */
.badge-method {
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.badge-get {
  background: rgba(16, 185, 129, 0.16);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-post {
  background: rgba(99, 102, 241, 0.16);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}
.badge-patch {
  background: rgba(245, 158, 11, 0.16);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-delete {
  background: rgba(239, 68, 68, 0.16);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Endpoint Picker Bar */
.endpoint-picker-bar {
  padding: 0.75rem 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.picker-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.picker-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.api-select {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  transition: var(--transition);
}
.api-select:focus {
  border-color: var(--accent-primary);
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-glow);
}
.api-select optgroup {
  background: var(--bg-surface);
  color: var(--text-muted);
  font-weight: 700;
  font-family: var(--font-sans);
}
.api-select option {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  font-family: var(--font-mono);
  padding: 4px;
}

/* API URL Bar */
.api-url-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  overflow-x: auto;
}
.api-base-url {
  color: var(--text-dim);
}
.api-path-text {
  color: #38bdf8;
  font-weight: 600;
}

/* Parameters Grid */
.params-inputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}
.param-input-unit {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.param-input-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.code-editor {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: #e2e8f0;
  padding: 0.85rem;
  width: 100%;
  resize: vertical;
}
.body-format-tag {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* Response Metadata Bar */
.response-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}
.meta-status-ok {
  color: var(--color-success);
  font-weight: 700;
}
.meta-status-err {
  color: var(--color-danger);
  font-weight: 700;
}
.meta-latency {
  color: var(--text-dim);
}

/* Multi-Account Bar & Selectors */
.account-selector-box {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}
.account-box-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
}
.account-select {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  outline: none;
  max-width: 110px;
}
.account-select option {
  background: #0f172a;
  color: #fff;
}
.btn-accounts {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.btn-accounts:hover {
  background: rgba(99, 102, 241, 0.25);
  transform: translateY(-1px);
}

/* Modal System */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-backdrop.hidden {
  display: none !important;
}
.modal-box {
  background: #0f172a;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: modalEnter 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-glass);
}
.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
}
.modal-subtitle {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-xs);
}
.modal-close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.02);
}
.modal-tab-btn {
  flex: 1;
  padding: 0.85rem 1rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}
.modal-tab-btn.active {
  color: #fff;
  border-bottom-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.04);
}
.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}
.accounts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.account-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.account-card-item.is-default {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.05);
}
.account-card-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.account-card-name {
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.account-card-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}
.default-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  background: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  border-radius: var(--radius-xs);
  font-weight: 700;
  text-transform: uppercase;
}
.add-account-card {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-glass);
  border-radius: var(--radius-sm);
}
.add-account-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}
.add-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.add-form-grid input {
  font-size: 0.825rem;
}
.add-form-grid button {
  grid-column: span 2;
}

/* Buffer Studio Layout */
.buffer-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
}
.buffer-channels-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}
.buffer-channel-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  cursor: pointer;
  user-select: none;
  font-size: 0.825rem;
  font-weight: 600;
  transition: var(--transition);
}
.buffer-channel-pill.selected {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  color: #fff;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
}
.buffer-channel-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}
.buffer-channel-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-dim);
}
.buffer-schedule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-glass);
}
.flow-media-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.flow-media-chip-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}
.flow-media-chip-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  color: #fff;
}
.buffer-posts-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.buffer-post-card {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
}
.buffer-post-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}
.buffer-post-card-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}
.buffer-post-card-media {
  max-height: 160px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  margin-top: 0.5rem;
}
.buffer-post-card-media img,
.buffer-post-card-media video {
  max-width: 100%;
  max-height: 160px;
  object-fit: cover;
}

/* =========================================================================
   USER AUTHENTICATION & SETTINGS / PROFILE DESIGN SYSTEM
   ========================================================================= */

/* Top Nav User Container */
.nav-user-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-user-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.65rem 0.3rem 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition);
}
.nav-user-badge:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
}
.nav-user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}
.nav-user-email {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-main);
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-login-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}
.btn-login-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}
.btn-logout {
  padding: 0.35rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 6px;
  color: #f87171;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.btn-logout:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #fff;
}

/* Settings View Container */
.settings-view-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.settings-profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  backdrop-filter: blur(12px);
}
.settings-avatar-big {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}
.settings-user-meta {
  flex: 1;
}
.settings-user-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}
.settings-user-email {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.badge-role {
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 9999px;
  font-weight: 600;
  text-transform: uppercase;
}
.settings-user-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dot-separator {
  color: rgba(255, 255, 255, 0.2);
}
.code-id {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  color: var(--text-muted);
}

/* Master API Key Card */
.settings-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.key-card {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 8px 32px -4px rgba(99, 102, 241, 0.12);
}
.settings-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}
.badge-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}
.badge-primary {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}
.settings-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}
.settings-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 650px;
  line-height: 1.5;
}

/* API Key Input Field Box */
.api-key-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.75rem;
  margin-bottom: 1.5rem;
}
.key-field-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  position: relative;
}
.key-display-input {
  width: 100%;
  background: transparent;
  border: none;
  color: #a5f3fc;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  outline: none;
  padding-right: 2rem;
}
.key-toggle-btn {
  position: absolute;
  right: 0.25rem;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
}
.key-toggle-btn:hover {
  color: #fff;
}

/* Key Snippets Guide */
.key-usage-guide {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}
.usage-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.usage-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.usage-tabs {
  display: flex;
  gap: 0.4rem;
}
.usage-tab-btn {
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.usage-tab-btn.active,
.usage-tab-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  color: #fff;
}
.key-snippet-box {
  background: #030712;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.5;
  color: #e2e8f0;
}

/* Providers Stacked Full-Width Section */
.providers-vertical-stack,
.providers-double-grid,
.providers-triple-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  margin-top: 1.25rem;
}
.provider-panel {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: border-color var(--transition);
}
.provider-panel:hover {
  border-color: rgba(255, 255, 255, 0.12);
}
.provider-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-glass);
  gap: 1.25rem;
  flex-wrap: wrap;
}
.provider-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
  min-width: 260px;
}
.provider-title-text {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.provider-title-text h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.provider-desc {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}
.provider-icon-badge {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.flow-badge {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.chatgpt-badge {
  background: rgba(16, 163, 127, 0.15);
  border: 1px solid rgba(16, 163, 127, 0.35);
  color: #10a37f;
}
.gemini-badge {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}
.buffer-badge {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
}
.provider-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

/* ChatGPT Studio Layout */
.chatgpt-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .chatgpt-layout {
    grid-template-columns: 1fr;
  }
}
.chatgpt-turn-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.chatgpt-bubble {
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  line-height: 1.6;
  font-size: 0.88rem;
  position: relative;
}
.chatgpt-bubble.user {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #e2e8f0;
}
.chatgpt-bubble.assistant {
  background: rgba(16, 163, 127, 0.08);
  border: 1px solid rgba(16, 163, 127, 0.25);
  color: #f1f5f9;
}
.chatgpt-bubble-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}
.chatgpt-response-content {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.65;
}

/* Gemini Studio Layout */
.gemini-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .gemini-layout {
    grid-template-columns: 1fr;
  }
}
.gemini-turn-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.gemini-bubble {
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  line-height: 1.6;
  font-size: 0.88rem;
  position: relative;
}
.gemini-bubble.user {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #e2e8f0;
}
.gemini-bubble.assistant {
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.25);
  color: #f1f5f9;
}
.gemini-bubble-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}
.gemini-response-content {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.65;
}

/* Unified LLM Studio Layout */
.llm-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .llm-layout {
    grid-template-columns: 1fr;
  }
}
.llm-turn-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.llm-bubble {
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  line-height: 1.6;
  font-size: 0.88rem;
  position: relative;
}
.llm-bubble.user {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #e2e8f0;
}
.llm-bubble.assistant {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #f1f5f9;
}
.llm-bubble-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}
.llm-response-content {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.65;
}
.dot-llm {
  background: linear-gradient(135deg, #10a37f, #38bdf8);
}
.panel-badge.llm-badge {
  background: linear-gradient(135deg, rgba(16, 163, 127, 0.2), rgba(56, 189, 248, 0.2));
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Horizontal Account Item Row */
.account-item-row {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.35rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}
.account-item-row:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}
.account-item-row.is-default {
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(99, 102, 241, 0.04);
}
.account-row-main {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
  min-width: 0;
}
.account-row-header-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.account-row-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  word-break: break-word;
}
.account-id-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.55rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}
.account-id-chip code {
  color: #93c5fd;
  word-break: break-all;
}
.account-row-meta-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.account-row-meta-line .meta-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.22);
  padding: 0.22rem 0.65rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.account-row-meta-line .meta-label {
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}
.account-row-meta-line code {
  color: #e2e8f0;
  font-size: 0.75rem;
  word-break: break-all;
}
.account-row-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
}
.account-row-actions button {
  white-space: nowrap;
}
.empty-accounts-notice {
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.18);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--text-dim);
  font-size: 0.82rem;
  text-align: center;
}
@media (max-width: 960px) {
  .account-item-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .account-row-actions {
    justify-content: flex-start;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.75rem;
    width: 100%;
  }
}

/* Account Item Card */
.account-item-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.account-item-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}
.account-item-card.is-default {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.04);
}
.account-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.account-card-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.account-card-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  word-break: break-word;
  line-height: 1.35;
}
.account-card-id-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}
.account-card-id-row code {
  color: #93c5fd;
  word-break: break-all;
}
.account-card-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.6rem 0.75rem;
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.account-card-meta div {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.account-card-meta .meta-label {
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}
.account-card-meta code {
  color: #e2e8f0;
  font-size: 0.72rem;
  word-break: break-all;
}
.account-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.35rem;
}
.account-card-actions button {
  width: 100%;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

/* Direct Auth Modal */
.modal-box-auth {
  max-width: 420px;
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(99, 102, 241, 0.2);
}
.auth-modal-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  box-shadow: 0 0 15px var(--accent-glow);
}
.auth-modal-logo svg {
  width: 22px;
  height: 22px;
  color: #fff;
}
.auth-segmented-control {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-sm);
  padding: 0.25rem;
  margin: 1rem 1.5rem 0.5rem;
  gap: 0.25rem;
}
.auth-segment-btn {
  flex: 1;
  padding: 0.45rem;
  background: transparent;
  border: none;
  border-radius: 5px;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.auth-segment-btn.active {
  background: var(--bg-surface-elevated);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.auth-modal-body {
  padding: 1.25rem 1.5rem 1.75rem;
}
.auth-alert {
  padding: 0.65rem 0.85rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  color: #fca5a5;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}
.btn-block {
  width: 100%;
  padding: 0.7rem;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}
.auth-quick-hint {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-glass);
  text-align: center;
}
.auth-hint-text {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}
.btn-demo-quick {
  background: rgba(99, 102, 241, 0.1);
  border: 1px dashed rgba(99, 102, 241, 0.3);
  border-radius: 6px;
  color: #a5b4fc;
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-demo-quick:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #fff;
}

/* Dedicated Auth View (Default Landing Page when not logged in) */
#view-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 3rem 1.5rem;
}
#view-auth.hidden {
  display: none !important;
}

.auth-hero-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  animation: fadeInAuth 0.35s ease-out;
}
@keyframes fadeInAuth {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-card-wrapper {
  background: rgba(18, 22, 34, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 50px rgba(99, 102, 241, 0.12);
  position: relative;
  overflow: hidden;
}
.auth-card-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

.auth-brand-badge {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.auth-badge-title {
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-badge-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.auth-header-text {
  margin-bottom: 1.5rem;
}
.auth-main-heading {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.auth-main-subtext {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.auth-page-tabs {
  margin: 0 0 1.25rem 0;
  background: rgba(0, 0, 0, 0.5);
}

.btn-auth-large {
  padding: 0.8rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.auth-features-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-glass);
}
.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}
.auth-feature-item svg {
  width: 14px;
  height: 14px;
  color: var(--color-success);
  flex-shrink: 0;
}

/* Account Status Badges & Action Buttons */
.badge-success {
  background: rgba(34, 197, 94, 0.15) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(34, 197, 94, 0.3) !important;
  font-weight: 600;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge-warning {
  background: rgba(234, 179, 8, 0.15) !important;
  color: #facc15 !important;
  border: 1px solid rgba(234, 179, 8, 0.3) !important;
  font-weight: 600;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-main);
  transition: var(--transition);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* Prompt References Tray & Badges (Google Flow Style) */
.reference-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  min-height: 44px;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) inset;
}
.reference-tray.empty {
  display: none;
}
.reference-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 4px 8px 4px 4px;
  font-size: 0.8rem;
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: all 0.15s ease;
  user-select: none;
}
.reference-pill:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(30, 41, 59, 1);
  transform: translateY(-1px);
}
.reference-pill-thumb {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
}
.reference-pill-thumb-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.reference-pill-info {
  display: flex;
  flex-direction: column;
  max-width: 140px;
  overflow: hidden;
}
.reference-pill-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.78rem;
}
.reference-pill-type {
  font-size: 0.68rem;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.reference-pill-remove {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-muted);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-left: 2px;
}
.reference-pill-remove:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* Reference Picker Modal */
.ref-picker-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ref-picker-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 8px;
}
.ref-picker-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ref-picker-tab.active {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}
.ref-card {
  position: relative;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: all 0.15s ease;
}
.ref-card:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}
.ref-card.selected {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px #38bdf8;
}
.ref-card-img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  background: #0f172a;
}
.ref-card-placeholder {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: #0f172a;
}
.ref-card-info {
  padding: 6px 8px;
}
.ref-card-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ref-card-badge {
  font-size: 0.65rem;
  color: var(--text-dim);
}

/* Browser Profile Cards (Identity-Centric Multi-Service) */
.profile-card-block {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-card-block:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.profile-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.profile-identity-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.profile-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.25), rgba(99, 102, 241, 0.35));
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.profile-id-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.profile-email-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}

.profile-sub-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.profile-sub-meta code {
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--text-muted);
}

.profile-top-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-services-subgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.service-subcard {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.15s ease;
}

.service-subcard:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.service-subcard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-pill-info {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.service-pill-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.service-subcard-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.service-subcard-details code {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  padding: 1px 5px;
  border-radius: 4px;
}

.badge-mini {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 500;
}

.badge-mini-success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-mini-muted {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================================================
   REMOTE INTERACTIVE BROWSER MODAL (CDP SCREENCAST)
   ========================================================================= */
.remote-browser-box {
  width: 96vw;
  max-width: 1380px;
  height: 94vh;
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.remote-browser-toolbar {
  height: 52px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  gap: 12px;
  flex-shrink: 0;
  user-select: none;
}

.remote-toolbar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  max-width: 520px;
}

.remote-tool-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.remote-tool-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.remote-url-bar-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 2px 6px 2px 10px;
  gap: 8px;
}
.remote-lock-icon {
  font-size: 0.8rem;
  opacity: 0.7;
}
.remote-url-bar-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f1f5f9;
  font-size: 0.82rem;
  font-family: monospace;
}

.remote-toolbar-center {
  display: flex;
  align-items: center;
  gap: 6px;
}

.remote-preset-btn {
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 500;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}
.remote-preset-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  color: #fff;
}

.remote-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.remote-status-pill {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-weight: 500;
}

.remote-status-pill.connecting {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border-color: rgba(234, 179, 8, 0.3);
}

.remote-status-pill.error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.remote-browser-viewport {
  position: relative;
  flex: 1;
  width: 100%;
  height: calc(100% - 52px);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.remote-browser-viewport canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: default;
  outline: none;
}

.remote-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 25, 0.9);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.2s ease;
}
.remote-loading-overlay.hidden {
  display: none;
}

/* =========================================================================
   SERVICES DOCUMENTATION DIRECTORY & INTERACTIVE VIEWER
   ========================================================================= */

.docs-services-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
}

.docs-services-hero {
  background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.15), transparent 70%),
              radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.1), transparent 70%),
              rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg, 16px);
  padding: 2.25rem 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.docs-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.docs-hero-badge .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-ring 2s infinite ease-out;
}

.docs-hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem 0;
}

.docs-hero-desc {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 850px;
  margin: 0 0 1.5rem 0;
}

.docs-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.docs-search-wrapper {
  position: relative;
  flex: 1;
  min-width: 280px;
}

.docs-search-wrapper .docs-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #64748b;
  pointer-events: none;
}

.docs-search-wrapper input {
  padding-left: 2.4rem;
  height: 42px;
  font-size: 0.85rem;
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 100%;
  transition: all 0.2s ease;
}

.docs-search-wrapper input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  outline: none;
}

.docs-filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.filter-pill.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  color: #a5b4fc;
}

/* Service Cards Grid */
.docs-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
  gap: 1.5rem;
}

.docs-service-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.docs-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.docs-service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(99, 102, 241, 0.15);
  background: rgba(15, 23, 42, 0.85);
}

.docs-service-card:hover::before {
  opacity: 1;
}

.docs-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.docs-card-icon-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.docs-card-icon {
  font-size: 1.6rem;
  line-height: 1;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.docs-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin: 0;
}

.docs-card-protocol {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.protocol-rpc {
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
}

.protocol-ai {
  background: rgba(168, 85, 247, 0.16);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #d8b4fe;
}

.protocol-core {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.docs-card-desc {
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.55;
  margin-bottom: 1.1rem;
  flex-grow: 1;
}

.docs-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.docs-route-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}

.docs-route-pill .method-post {
  color: #818cf8;
  font-weight: 700;
  margin-right: 0.3rem;
}

.docs-route-pill .method-get {
  color: #34d399;
  font-weight: 700;
  margin-right: 0.3rem;
}

.docs-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 1rem;
  margin-top: auto;
}

.docs-card-endpoint-count {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.docs-card-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #6366f1;
  transition: all 0.2s ease;
}

.docs-service-card:hover .docs-card-action-btn {
  color: #818cf8;
  transform: translateX(3px);
}

/* Service Detail Documentation Viewer */
.docs-service-detail-view {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 4.5rem);
  padding: 0 1.5rem 1.5rem;
}

.docs-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  backdrop-filter: blur(12px);
}

.docs-detail-header-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.btn-back-services {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-back-services:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.docs-detail-service-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.docs-detail-icon {
  font-size: 1.4rem;
}

.docs-detail-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.docs-detail-badge {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 600;
}

.docs-detail-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.docs-frame-container {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.docs-service-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}


