:root {
  --bg-color: #020617;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --card-bg: #0f172a;
  --card-border: #1e293b;
  --header-bg: rgba(2, 6, 23, 0.5);
  --input-bg: rgba(15, 23, 42, 0.4);
  --tab-active-bg: #1e293b;
  --disclaimer-bg: rgba(234, 179, 8, 0.08);
  --disclaimer-border: rgba(234, 179, 8, 0.25);
  --disclaimer-text: #cbd5e1;
  --btn-secondary-bg: rgba(255, 255, 255, 0.04);
  --btn-secondary-border: rgba(255, 255, 255, 0.08);
  --footer-color: #475569;
  --brand-primary: #10b981;
  --brand-hover: #059669;
  --gradient-primary: linear-gradient(135deg, #ff4d4d 0%, #facc15 100%);
}

[data-theme="light"] {
  --bg-color: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --card-bg: #ffffff;
  --card-border: #cbd5e1;
  --header-bg: #e2e8f0;
  --input-bg: #f8fafc;
  --tab-active-bg: #cbd5e1;
  --disclaimer-bg: #fefce8;
  --disclaimer-border: #fef08a;
  --disclaimer-text: #854d0e;
  --btn-secondary-bg: #e2e8f0;
  --btn-secondary-border: #cbd5e1;
  --footer-color: #64748b;
  --brand-primary: #059669;
  --brand-hover: #047857;
  --gradient-primary: linear-gradient(135deg, #dc2626 0%, #d97706 100%);
}

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

html {
  font-size: 14px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0 !important;
  height: 0 !important;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-overflow-scrolling: touch;
}

.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.layout-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 auto;
}

.glass {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
}

.report-panel {
  display: flex;
  flex-direction: column;
  min-height: 480px;
  overflow: hidden;
}

.report-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--card-border);
  background: var(--header-bg);
}

.report-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.8);
}

.report-header h2 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}

.report-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 1rem 1.8rem 2rem 1.8rem;
}

.empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.empty-title {
  color: var(--text-secondary);
  font-family: monospace;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.empty-sub {
  color: var(--text-secondary);
  font-size: 0.85rem;
  max-width: 250px;
  line-height: 1.5;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  margin-bottom: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-text {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--brand-primary);
}

.header-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.header-link:hover {
  color: var(--text-primary);
}

.gh-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--btn-secondary-bg);
  border: 1px solid var(--btn-secondary-border);
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  transition: background 0.2s, border-color 0.2s;
}

.gh-link:hover {
  background: var(--btn-secondary-bg);
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--btn-secondary-bg);
  border: 1px solid var(--btn-secondary-border);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.theme-toggle:hover {
  background: var(--btn-secondary-bg);
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.hero {
  text-align: center;
  padding: 1rem 0 0.75rem;
}

.hero-title {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

.disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: var(--disclaimer-bg);
  border: 1px solid var(--disclaimer-border);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--disclaimer-text);
  line-height: 1.55;
}

.disclaimer-icon {
  font-size: 1rem;
  color: #eab308;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.input-card {
  padding: 1.5rem;
  margin-bottom: 1.2rem;
}

.tabs {
  display: flex;
  gap: 0.4rem;
  background: var(--input-bg);
  border-radius: 12px;
  padding: 0.3rem;
  margin-bottom: 1.4rem;
}

.tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: none;
  background: transparent;
  color: #64748b;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.55rem 0.5rem;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab:hover:not(.active) {
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
}

.tab.active {
  background: var(--tab-active-bg);
  color: var(--text-primary);
}

.panel {
  animation: fadeIn 0.2s ease;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.input-group {
  display: flex;
  align-items: center;
  background: var(--input-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.input-error {
  font-size: 0.82rem;
  color: #ef4444;
  margin-top: 0.6rem;
  margin-left: 0.25rem;
  animation: fadeIn 0.15s ease;
}

.input-prefix {
  padding: 0 0.75rem;
  color: #475569;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.text-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.8rem 1rem 0.8rem 0;
  min-width: 0;
}

.text-input::placeholder {
  color: #475569;
}

.drop-zone {
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(124, 58, 237, 0.06);
}

.drop-zone:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
}

.drop-icon {
  color: #475569;
  margin-bottom: 0.75rem;
}

.drop-title {
  font-size: 1rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.3rem;
}

.drop-sub {
  font-size: 0.82rem;
  color: #475569;
  margin-bottom: 1rem;
}

.browse-btn {
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.3);
  color: #c4b5fd;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.45rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.browse-btn:hover {
  background: rgba(124, 58, 237, 0.25);
  border-color: rgba(167, 139, 250, 0.5);
}

.preview-img {
  max-width: 100%;
  max-height: 280px;
  border-radius: 10px;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.75rem;
}

.preview-meta {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 0.75rem;
}

.remove-btn {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.2s;
}

.remove-btn:hover {
  background: rgba(239, 68, 68, 0.22);
}

.textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  line-height: 1.6;
}

.textarea::placeholder {
  color: #475569;
}

.textarea:focus {
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.textarea-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.4rem;
}

.char-counter {
  font-size: 0.78rem;
  color: #475569;
}

.char-counter.warn {
  color: #f59e0b;
}

.char-counter.danger {
  color: #ef4444;
}

.action-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.analyze-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--brand-primary);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 2.5rem;
  cursor: pointer;
  letter-spacing: 0.2px;
  transition: background 0.15s, opacity 0.15s;
}

.analyze-btn:hover:not(:disabled) {
  background: var(--brand-hover);
}

.analyze-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.analyze-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.analyze-btn.loading .btn-icon {
  animation: spin 1s linear infinite;
}

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

.rate-note {
  font-size: 0.78rem;
  color: #475569;
  text-align: center;
}

.progress-wrap {
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pulse-loader {
  width: 44px;
  height: 44px;
  background: var(--brand-primary);
  border-radius: 50%;
  margin-bottom: 2rem;
  animation: pulse 1.8s infinite ease-in-out;
  position: relative;
}

.pulse-loader::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--brand-primary);
  opacity: 0.3;
  animation: pulse-ring 1.8s infinite ease-in-out;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }

  100% {
    transform: scale(3);
    opacity: 0;
  }
}

.progress-label {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  max-width: 320px;
  line-height: 1.6;
}

.progress-bar-wrap {
  width: 240px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--brand-primary);
  width: 0%;
  transition: width 0.4s ease;
}

.results {
  animation: fadeIn 0.35s ease;
}

.verdict-card {
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.2rem;
}

.verdict-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.verdict-badge {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  padding: 0.5rem 1.2rem;
  border-radius: 12px;
  flex-shrink: 0;
}

.verdict-badge.verdict-real {
  background: #059669;
  color: #fff;
}

.verdict-badge.verdict-fake {
  background: #dc2626;
  color: #fff;
}

.verdict-badge.verdict-misleading {
  background: #d97706;
  color: #fff;
}

.verdict-badge.verdict-unverified {
  background: #475569;
  color: #fff;
}

.verdict-meta {
  flex: 1;
  min-width: 140px;
}

.confidence-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.conf-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
}

.conf-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  overflow: hidden;
  min-width: 80px;
}

.conf-bar-fill {
  height: 100%;
  background: var(--brand-primary);
  width: 0%;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.conf-bar-fill.real {
  background: #10b981;
}

.conf-bar-fill.fake {
  background: #ef4444;
}

.conf-bar-fill.misleading {
  background: #f59e0b;
}

.conf-bar-fill.unverified {
  background: #64748b;
}

.reset-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--btn-secondary-bg);
  border: 1px solid var(--btn-secondary-border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.reset-btn:hover {
  background: var(--btn-secondary-bg);
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.reset-btn svg {
  transition: transform 0.4s ease;
}

.reset-btn:hover svg {
  transform: rotate(-180deg);
}

.article-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.reasoning {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.section-block {
  padding: 0;
  margin-bottom: 2.5rem;
  animation: fadeIn 0.4s ease;
}

.section-title {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 1.2rem;
}

.section-title.claims-title,
.section-title.sources-title {
  color: #fbbf24;
}

.claims-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.claim-chip {
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  transition: transform 0.2s, border-color 0.2s;
}

.claim-chip:hover {
  border-color: rgba(255, 255, 255, 0.08);
}

.claim-chip.supported {
  border-left: 4px solid #10b981;
}

.claim-chip.contradicted {
  border-left: 4px solid #ef4444;
}

.claim-chip.unverifiable {
  border-left: 4px solid #64748b;
}

.claim-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.claim-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.claim-badges {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.claim-evidence {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  white-space: nowrap;
}

.badge-status-supported {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.badge-status-contradicted {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

.badge-status-unverifiable {
  background: rgba(100, 116, 139, 0.12);
  color: #94a3b8;
}

.badge-conf-high {
  background: rgba(16, 185, 129, 0.08);
  color: #34d399;
}

.badge-conf-medium {
  background: rgba(245, 158, 11, 0.08);
  color: #fbbf24;
}

.badge-conf-low {
  background: rgba(239, 68, 68, 0.08);
  color: #f87171;
}

.sources-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.source-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
  overflow: hidden;
}

.source-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #3b82f6;
  transform: translateX(4px);
}

.error-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin-top: 2rem;
}

.error-icon {
  font-size: 1.4rem;
  color: #ef4444;
}

.error-title {
  display: block;
  font-size: 0.95rem;
  color: #f87171;
  margin-bottom: 0.2rem;
}

.error-msg {
  font-size: 0.88rem;
  color: #fca5a5;
  line-height: 1.4;
}

.error-dismiss {
  margin-left: auto;
  background: transparent;
  border: none;
  color: #fca5a5;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.4rem;
  transition: color 0.2s;
}

.error-dismiss:hover {
  color: #f87171;
}

.site-footer {
  padding: 2.5rem 0;
  text-align: center;
  border-top: 1px solid var(--card-border);
  margin-top: 2rem;
}

.site-footer p {
  font-size: 0.82rem;
  color: var(--footer-color);
}

@media (max-width: 600px) {
  .page-wrap {
    padding: 0 1rem 2rem;
  }

  .logo-text {
    font-size: 1.6rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .input-card {
    padding: 1.25rem;
  }

  .tab {
    font-size: 0.82rem;
    padding: 0.5rem 0.3rem;
  }

  .report-body {
    padding: 1rem 1.2rem 2rem;
  }

  .verdict-badge {
    font-size: 1.8rem;
    padding: 0.4rem 1rem;
  }
}

[data-theme="light"] .report-header h2 {
  color: #000000;
}

[data-theme="light"] .conf-text {
  color: #000000;
}

/* Model Switcher */
.model-switcher {
  position: relative;
}

.model-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--btn-secondary-bg);
  border: 1px solid var(--btn-secondary-border);
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}

.model-btn:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.model-label {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chevron-icon {
  transition: transform 0.2s;
  flex-shrink: 0;
}

.model-switcher.open .chevron-icon {
  transform: rotate(180deg);
}

.model-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 300px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 999;
  animation: fadeIn 0.15s ease;
}

.model-dropdown[hidden] {
  display: none;
}

.dropdown-section {
  margin-bottom: 0.6rem;
}

.dropdown-section:last-child {
  margin-bottom: 0;
}

.dropdown-provider-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}

.provider-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.provider-chip {
  flex: 1;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  text-transform: capitalize;
}

.provider-chip:hover {
  border-color: var(--brand-primary);
  color: var(--text-primary);
}

.provider-chip.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
}

.model-options {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.model-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 400;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}

.model-option:hover {
  background: var(--tab-active-bg);
  color: var(--text-primary);
}

.model-option.active {
  background: rgba(16, 185, 129, 0.12);
  color: var(--brand-primary);
  font-weight: 600;
}

.best-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  font-family: inherit;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(245, 158, 11, 0.2);
}

.reasoning-badge {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  font-family: inherit;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(139, 92, 246, 0.2);
}

.multilingual-badge {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  font-family: inherit;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(14, 165, 233, 0.2);
}

.lightweight-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  font-family: inherit;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(16, 185, 129, 0.2);
}

.best-class-badge {
  background: linear-gradient(135deg, #f43f5e, #be123c);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  font-family: inherit;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(244, 63, 94, 0.2);
}

.fast-badge {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  font-family: inherit;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(59, 130, 246, 0.2);
}

/* API Sidebar */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.open {
  opacity: 1;
}

.sidebar-overlay[hidden] {
  display: none;
}

.api-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 600px;
  background: var(--card-bg);
  border-left: 1px solid var(--card-border);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.api-sidebar.open {
  transform: translateX(0);
}

.api-sidebar[hidden] {
  display: none !important;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--card-border);
  background: var(--header-bg);
}

.sidebar-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.close-sidebar-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 1010;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.4rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.close-sidebar-btn:hover {
  color: var(--danger);
  background: rgba(220, 53, 69, 0.1);
  transform: rotate(90deg) scale(1.1);
}

.sidebar-content {
  flex: 1;
  background: #ffffff;
  overflow: hidden;
}

.api-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #ffffff;
}

@media (max-width: 600px) {
  .api-sidebar {
    max-width: 100%;
  }
}

.reasoning-alert {
  background: rgba(239, 68, 68, 0.08) !important;
  border-left: 4px solid #ef4444 !important;
  border-top: 1px solid rgba(239, 68, 68, 0.2) !important;
  border-right: 1px solid rgba(239, 68, 68, 0.2) !important;
  border-bottom: 1px solid rgba(239, 68, 68, 0.2) !important;
  color: #ef4444 !important;
  padding: 1.25rem 1.75rem !important;
  border-radius: 8px;
  margin: 1rem 1.75rem !important;
  font-weight: 500;
  text-align: center;
}