

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg-main: #000000;
  --bg-slate: #07080a;
  --panel-bg: rgba(255, 255, 255, 0.02);
  --panel-border: rgba(255, 255, 255, 0.06);
  --panel-border-hover: rgba(255, 255, 255, 0.12);
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html, body {
  height: 100vh !important;
  height: 100dvh !important;
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  top: 0;
  left: 0;
}

body {
  background: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-primary);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}

#vanta-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.15;
  pointer-events: none;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
}

.glass-panel:hover {
  border-color: var(--panel-border-hover);
}

.app-container {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 1.5rem;
  min-height: 0;
  overflow: hidden;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  padding: 0.75rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin: 0;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-icon svg {
  fill: #fff;
  width: 16px;
  height: 16px;
}

.logo-title-group h1 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-title-group span {
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  flex: 1;
  min-height: 0;
}

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .conversations-sidebar {
    display: none;
  }
}

.chat-workspace {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.chat-header {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.active-user-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.message {
  display: flex;
  gap: 0.85rem;
  max-width: 85%;
  animation: fadeIn 0.2s ease-out;
}

.message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message.assistant {
  align-self: flex-start;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.message.user .avatar {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.bubble {
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  color: #e5e7eb;
  line-height: 1.55;
}

.message.user .bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-right-radius: 2px;
}

.message.assistant .bubble {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-top-left-radius: 2px;
}

.bubble p {
  margin-bottom: 0.6rem;
}
.bubble p:last-child {
  margin-bottom: 0;
}
.bubble strong {
  color: #ffffff;
}
.bubble ul, .bubble ol {
  margin-left: 1.25rem;
  margin-bottom: 0.6rem;
}
.bubble li {
  margin-bottom: 0.2rem;
}

.thinking-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 6px 0 10px 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: fit-content;
  min-width: 240px;
}

.thinking-step {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.thinking-step.active {
  opacity: 1;
  color: #fff;
  font-weight: 500;
}

.thinking-step.completed {
  opacity: 0.8;
  color: var(--text-secondary);
}

.step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.thinking-step.active .step-dot {
  background: #ffffff;
  box-shadow: 0 0 6px #ffffff;
  animation: pulsePulse 1.2s infinite alternate;
}

.thinking-step.completed .step-dot {
  background: #10b981;
}

@keyframes pulsePulse {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 1; }
}

.streaming-cursor {
  display: inline-block;
  width: 6px;
  height: 14px;
  background: #fff;
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.chat-input-bar {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--panel-border);
  display: flex;
  gap: 0.65rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.chat-input-bar textarea {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 0.7rem 1.25rem;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 0.92rem;
  resize: none;
  height: 44px;
  outline: none;
  transition: all 0.2s;
}

.chat-input-bar textarea:focus {
  border-color: rgba(255, 255, 255, 0.2);
}

.send-button {
  background: #ffffff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.send-button:hover {
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.9);
}

.send-button svg {
  fill: #000;
  width: 16px;
  height: 16px;
}

.terminal-card {
  margin: 0.85rem 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
  background: #050608;
  width: 100%;
  max-width: 700px;
}

.terminal-header {
  background: #0a0b0f;
  padding: 0.5rem 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.terminal-buttons {
  display: flex;
  gap: 5px;
}

.terminal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.terminal-editor-container {
  position: relative;
  background: #050608;
}

.terminal-textarea {
  width: 100%;
  background: #050608;
  color: #e5e7eb;
  border: none;
  padding: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.45;
  outline: none;
  resize: vertical;
  min-height: 100px;
  tab-size: 4;
}

.terminal-footer {
  background: #0a0b0f;
  padding: 0.5rem 0.85rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.terminal-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-family: var(--font-primary);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.terminal-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.terminal-btn svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
}

.chat-quota-strip {
  background: rgba(255, 255, 255, 0.005);
  border-top: 1px solid var(--panel-border);
  padding: 8px 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.quota-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quota-plan-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.quota-label {
  color: var(--text-secondary);
}

.quota-stats {
  color: #fff;
}

.quota-right-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 280px;
}

.progress-track-sleek {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
}

.progress-fill-sleek {
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 20px;
  transition: width 0.6s ease;
}

.timer-badge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.conversations-sidebar {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  height: 100%;
  gap: 0.85rem;
  overflow: hidden;
}

.new-chat-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0.65rem;
  border-radius: 20px;
  font-family: var(--font-primary);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  width: 100%;
  font-size: 0.85rem;
}

.new-chat-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.new-chat-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.conversations-list {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.conversation-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 0;
}

.conversation-item:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.04);
}

.conversation-item.active {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.conversation-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.conversation-icon {
  width: 13px;
  height: 13px;
  fill: var(--text-muted);
  flex-shrink: 0;
}

.conversation-item.active .conversation-icon {
  fill: #fff;
}

.conversation-title {
  font-size: 0.82rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.conversation-item:hover .conversation-title {
  color: #fff;
}

.conversation-item.active .conversation-title {
  color: #fff;
  font-weight: 500;
}

.conversation-delete-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
}

.conversation-item:hover .conversation-delete-btn {
  opacity: 0.6;
}

.conversation-delete-btn:hover {
  opacity: 1 !important;
  color: #ef4444;
}

.conversation-delete-btn svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.cyber-model-widget {
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-select-wrapper {
  position: relative;
  width: 220px;
  user-select: none;
}

.custom-select-trigger {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s;
}

.custom-select-trigger:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

.custom-select-trigger .chevron-icon {
  width: 14px;
  height: 14px;
  fill: var(--text-secondary);
  transition: transform 0.2s;
}

.custom-select-wrapper.open .chevron-icon {
  transform: rotate(180deg);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  background: #0a0b0f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  z-index: 999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: all 0.2s ease;
}

.custom-select-wrapper.open .custom-select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select-option {
  padding: 8px 12px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.custom-select-option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.custom-select-option.selected {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 600;
}

.custom-select-option .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  background: rgba(255, 255, 255, 0.3);
}

.custom-select-option .dot.green { background: #ffffff; }
.custom-select-option .dot.blue { background: #bbbbbb; }
.custom-select-option .dot.purple { background: #666666; }

.quota-counter-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

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

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.bubble table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.85rem 0;
  font-size: 0.82rem;
}

.bubble th, .bubble td {
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 10px;
  text-align: left;
}

.bubble th {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.bubble code:not(pre code) {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  padding: 2px 4px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.redeem-card-sidebar {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.redeem-card-sidebar h3 {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  margin: 0;
}

.redeem-card-sidebar p {
  font-size: 0.7rem;
  color: var(--text-secondary);
  line-height: 1.35;
  margin: 0;
}

.redeem-input-group {
  display: flex;
  gap: 6px;
  width: 100%;
}

.redeem-input-group input {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  color: #fff;
  font-size: 0.72rem;
  padding: 0.4rem 0.75rem;
  outline: none;
  font-family: var(--font-mono);
  transition: all 0.2s ease;
  min-width: 0;
}

.redeem-input-group input:focus {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.7);
}

.redeem-input-group button {
  background: #ffffff;
  color: #000;
  border: none;
  font-weight: 600;
  border-radius: 20px;
  font-size: 0.72rem;
  padding: 0 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.redeem-input-group button:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}

.compute-slots-sidebar {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.slots-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.slots-header h3 {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  margin: 0;
}

.slots-sub {
  font-size: 0.65rem;
  color: #64748b;
  font-family: var(--font-mono);
}

.slots-tier-row.active-plan-row,
.slot-progress-wrapper.active-plan-row {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.02) !important;
  font-weight: 700;
}

.slots-body-layout {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.slots-left-gauge {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.progress-ring-svg {
  transform: rotate(-90deg);
  position: absolute;
  top: 0;
  left: 0;
}

.progress-ring-fill {
  transition: stroke-dashoffset 0.35s;
  transform-origin: 50% 50%;
}

.slots-gauge-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  z-index: 2;
  letter-spacing: -0.5px;
}

.slots-right-grid-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.slots-node-header {
  font-size: 0.62rem;
  color: #94a3b8;
  font-weight: 600;
  margin-top: 0.15rem;
  margin-bottom: 0.1rem;
  font-family: var(--font-mono);
  display: flex;
  justify-content: space-between;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 6px;
  border-radius: 8px;
}

.slots-grid.node-alpha,
.slots-grid.node-beta {
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  padding: 5px;
}

.slot-item {
  aspect-ratio: 1;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.05);
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.slot-item::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #10b981;
  transition: all 0.25s ease;
}

.slot-item:hover {
  border-color: rgba(16, 185, 129, 0.8);
  background: rgba(16, 185, 129, 0.15);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
}

.slot-item.processing {
  border-color: rgba(6, 182, 212, 0.6);
  background: rgba(6, 182, 212, 0.1);
  animation: slot-glow-cyan 2s infinite ease-in-out;
}

.slot-item.processing::before {
  background: #06b6d4;
  box-shadow: 0 0 6px #06b6d4;
}

.slot-item.user-active {
  border-color: rgba(217, 70, 239, 0.9);
  background: rgba(217, 70, 239, 0.15);
  animation: slot-glow-pink 0.8s infinite ease-in-out;
}

.slot-item.user-active::before {
  background: #d946ef;
  box-shadow: 0 0 8px #d946ef;
  transform: scale(1.3);
}

.slots-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: #94a3b8;
  font-family: var(--font-mono);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.pulse-dot.green {
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.pulse-dot.pink {
  background: #d946ef;
  box-shadow: 0 0 8px #d946ef;
  animation: pulse-pink 1s infinite alternate;
}

@keyframes slot-glow-cyan {
  0%, 100% {
    box-shadow: 0 0 4px rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
  }
  50% {
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
    border-color: rgba(6, 182, 212, 0.7);
  }
}

@keyframes slot-glow-pink {
  0%, 100% {
    box-shadow: 0 0 6px rgba(217, 70, 239, 0.2);
    border-color: rgba(217, 70, 239, 0.6);
  }
  50% {
    box-shadow: 0 0 14px rgba(217, 70, 239, 0.8);
    border-color: rgba(217, 70, 239, 1);
  }
}

@keyframes pulse-pink {
  from { opacity: 0.5; }
  to { opacity: 1; transform: scale(1.1); }
}

.sidebar-toggle-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 8px 12px;
  border-radius: 30px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  user-select: none;
}

.sidebar-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
}
.sidebar-overlay.active {
  display: block;
}

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr !important;
  }
  .conversations-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 265px;
    height: 100dvh !important;
    z-index: 1000;
    background: rgba(8, 10, 15, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex !important;
    margin: 0;
    border-radius: 0;
    box-shadow: 20px 0 40px rgba(0, 0, 0, 0.8);
    min-height: 100dvh !important;
  }
  .conversations-sidebar.active {
    left: 0;
  }
  .sidebar-toggle-btn {
    display: flex !important;
  }
}

@media (max-width: 600px) {
  .app-container {
    padding: 0.5rem;
    gap: 0.5rem;
  }
  header {
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0.5rem 0.85rem;
    flex-direction: column !important;
    gap: 10px !important;
    align-items: center !important;
    text-align: center !important;
  }
  .identity-switcher {
    flex-direction: row !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    width: 100% !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 8px;
    margin-top: 4px;
  }
  .identity-switcher a {
    font-size: 0.72rem !important;
  }
  #logout-btn {
    padding: 4px 10px !important;
    font-size: 0.7rem !important;
  }
  .logo-title-group h1 {
    font-size: 0.95rem;
  }
  .token-header-display {
    display: none !important;
  }
  .chat-workspace {
    height: 100% !important;
    border-radius: 12px;
  }
  .chat-header {
    padding: 0.65rem 0.75rem;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .cyber-model-widget {
    width: 100% !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }
  .custom-select-wrapper {
    flex: 1 !important;
    width: auto !important;
    max-width: 100% !important;
  }
  .custom-select-trigger {
    padding: 4px 10px !important;
    font-size: 0.76rem !important;
  }
  .quota-counter-tag {
    padding: 2px 8px !important;
    font-size: 0.68rem !important;
  }
  .chat-messages {
    padding: 0.75rem !important;
    gap: 0.75rem !important;
  }
  .message {
    max-width: 95% !important;
  }
  .bubble {
    padding: 0.65rem 0.85rem !important;
    font-size: 0.85rem !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
  .terminal-card {
    max-width: 100% !important;
    width: 100% !important;
  }
  .terminal-textarea {
    max-width: 100% !important;
    width: 100% !important;
  }
  .chat-quota-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 6px 0.75rem;
  }
  .quota-left {
    font-size: 0.72rem !important;
    flex-wrap: wrap !important;
  }
  .quota-right-progress {
    width: 100%;
    flex: 1 1 auto !important;
    gap: 8px !important;
  }
  .timer-badge {
    font-size: 0.65rem !important;
    padding: 1px 6px !important;
  }
  .chat-input-bar {
    padding: 8px;
    gap: 8px;
  }
  .chat-input-bar textarea {
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    height: 38px !important;
    border-radius: 16px !important;
  }
  .send-button {
    width: 38px !important;
    height: 38px !important;
    border-radius: 19px !important;
  }
  .new-chat-btn {
    font-size: 0.8rem;
    padding: 0.5rem;
  }
}
