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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #111;
  min-height: 100vh;
}

/* ─── HOME PAGE ──────────────────────────────────────────────────────────── */

.home-body {
  background: linear-gradient(135deg, #f0f4ff 0%, #fafafa 50%, #f0fff4 100%);
}

.home-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.home-header {
  text-align: center;
  margin-bottom: 56px;
}

.home-logo {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #111;
  margin-bottom: 12px;
}

.home-logo span { color: #2563eb; }

.home-tagline {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.mode-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 28px 24px 20px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.mode-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  border-color: #2563eb;
}

.mode-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.text-icon   { background: #eff6ff; color: #2563eb; }
.image-icon  { background: #f0fdf4; color: #16a34a; }
.vision-icon { background: #fdf4ff; color: #9333ea; }

.mode-card-body h2 {
  font-size: 17px;
  font-weight: 600;
  color: #111;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.mode-card-body p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 12px;
}

.mode-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mode-card-list li {
  font-size: 12px;
  color: #888;
  padding-left: 14px;
  position: relative;
}

.mode-card-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2563eb;
  font-size: 11px;
}

.mode-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
}

.mode-card-cta {
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
}

.mode-card-badge {
  font-size: 11px;
  background: #f0f0f0;
  color: #666;
  padding: 3px 8px;
  border-radius: 20px;
}

.home-footer {
  text-align: center;
}

.home-footer p {
  font-size: 12px;
  color: #bbb;
}

/* ─── INNER PAGES ────────────────────────────────────────────────────────── */

.page-body {
  background: #f5f5f5;
  min-height: 100vh;
}

.page-header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.page-logo {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.page-logo span { color: #2563eb; }

.page-logo:hover { opacity: 0.8; }

.page-divider {
  color: #ddd;
  font-size: 16px;
}

.page-title {
  font-size: 14px;
  font-weight: 500;
  color: #555;
}

.page-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ─── STEP INDICATOR ─────────────────────────────────────────────────────── */

.step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.step-dots {
  display: flex;
  gap: 5px;
}

.step-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e0e0e0;
}

.step-dot.active { background: #2563eb; }
.step-dot.done   { background: #86efac; }

.step-label {
  font-size: 12px;
  color: #aaa;
  font-weight: 500;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────────────── */

h1 {
  font-size: 26px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.sub {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* ─── BACK BUTTON ────────────────────────────────────────────────────────── */

.btn-back {
  background: none;
  border: none;
  font-size: 13px;
  color: #888;
  cursor: pointer;
  padding: 0;
  margin-bottom: 24px;
  display: block;
  font-family: inherit;
}

.btn-back:hover { color: #111; }

/* ─── FIELDS ─────────────────────────────────────────────────────────────── */

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #444;
  margin-bottom: 6px;
}

.optional { font-weight: 400; color: #bbb; }

textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  color: #111;
  font-size: 14px;
  font-family: inherit;
  padding: 12px 14px;
  resize: vertical;
  outline: none;
  line-height: 1.6;
  transition: border 0.15s;
}

textarea:focus { border-color: #2563eb; }

select {
  width: 100%;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  color: #111;
  font-size: 14px;
  font-family: inherit;
  padding: 10px 14px;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border 0.15s;
}

select:focus { border-color: #2563eb; }

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */

.btn-primary {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary:hover    { background: #1d4ed8; }
.btn-primary:disabled { background: #93c5fd; cursor: not-allowed; }

.btn-secondary {
  background: #fff;
  color: #444;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  margin-top: 16px;
  display: inline-block;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-secondary:hover { background: #f5f5f5; }

/* ─── TAGS ───────────────────────────────────────────────────────────────── */

.tag {
  display: inline-block;
  background: #f0f0f0;
  color: #555;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-right: 4px;
  margin-bottom: 4px;
}

.tag-cost {
  background: #ecfdf5;
  color: #059669;
}

.detected-tags { margin-bottom: 20px; }

/* ─── TOP CARD ───────────────────────────────────────────────────────────── */

.top-card {
  background: #fff;
  border: 1.5px solid #2563eb;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(37,99,235,0.08);
}

.top-card-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.top-card-left { flex: 1; }

.model-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #2563eb;
  margin-bottom: 6px;
}

.model-name {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.02em;
  margin-bottom: 3px;
}

.model-meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 10px;
}

.model-strengths {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
}

.model-tags { display: flex; flex-wrap: wrap; gap: 4px; }

.top-card-right { text-align: center; flex-shrink: 0; }

.score-num {
  font-size: 38px;
  font-weight: 700;
  color: #2563eb;
  line-height: 1;
  letter-spacing: -0.03em;
}

.score-label { font-size: 11px; color: #bbb; margin-top: 2px; }

/* ─── EXPANDABLE ─────────────────────────────────────────────────────────── */

.expandable {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.expand-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  transition: background 0.1s;
}

.expand-btn:hover { background: #fafafa; }
.chevron { font-size: 16px; color: #bbb; }

.expand-body { padding: 0 18px 18px; border-top: 1px solid #f5f5f5; }
.expand-body.hidden { display: none; }

.section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #bbb;
  margin-bottom: 12px;
  padding-top: 16px;
}

/* ─── ALGO ROWS ──────────────────────────────────────────────────────────── */

.algo-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f8f8f8;
}

.algo-row:last-child { border-bottom: none; }
.algo-left { flex: 1; }

.algo-name {
  font-size: 12px;
  font-weight: 500;
  color: #333;
  display: block;
}

.algo-desc {
  font-size: 11px;
  color: #bbb;
  display: block;
  margin-top: 1px;
}

.algo-benchmark {
  font-size: 10px;
  color: #2563eb;
  display: block;
  margin-top: 2px;
  font-style: italic;
}

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

.algo-weight  { font-size: 11px; color: #ccc; width: 28px; text-align: right; }
.algo-score   { font-size: 12px; font-weight: 600; color: #333; width: 24px; text-align: right; }
.algo-contrib { font-size: 11px; color: #2563eb; width: 32px; text-align: right; }

.bar-wrap {
  width: 60px;
  height: 4px;
  background: #f0f0f0;
  border-radius: 2px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: #2563eb;
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* ─── COST TABLE ─────────────────────────────────────────────────────────── */

.cost-table { display: flex; flex-direction: column; gap: 6px; }

.cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #555;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fafafa;
}

.cost-selected {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
}

.saving { font-size: 11px; color: #059669; font-weight: 500; }
.cost-note { font-size: 11px; color: #bbb; margin-top: 8px; }

/* ─── OSS REASONS ────────────────────────────────────────────────────────── */

.oss-reason {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  padding: 8px 0;
  border-bottom: 1px solid #f8f8f8;
}

.oss-reason:last-child { border-bottom: none; }

/* ─── MODEL LIST ─────────────────────────────────────────────────────────── */

.model-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-bottom: 1px solid #f8f8f8;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.1s;
}

.model-row:last-child { border-bottom: none; }
.model-row:hover    { background: #fafafa; }
.model-row.selected { background: #eff6ff; }

.rank { font-size: 12px; color: #ccc; width: 24px; }
.model-row-info { flex: 1; }
.model-row-name { font-size: 13px; font-weight: 600; color: #111; display: block; }
.model-row-org  { font-size: 12px; color: #999; display: block; }
.model-row-score { font-size: 14px; font-weight: 700; color: #2563eb; }

/* ─── ACTION BAR ─────────────────────────────────────────────────────────── */

.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.selected-indicator { font-size: 13px; color: #555; }

/* ─── ROUTING STRIP ──────────────────────────────────────────────────────── */

.routing-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: #777;
  background: #f8f8f8;
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 20px;
}

.routing-strip strong { color: #111; }
.fallback-note { color: #d97706; font-weight: 600; }

/* ─── RESPONSE BOX ───────────────────────────────────────────────────────── */

.response-box {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 24px;
  font-size: 14px;
  color: #333;
  line-height: 1.8;
}

.response-box h1,
.response-box h2,
.response-box h3 { margin: 16px 0 8px; color: #111; letter-spacing: -0.02em; }
.response-box p  { margin-bottom: 12px; }
.response-box ul,
.response-box ol { padding-left: 20px; margin-bottom: 12px; }
.response-box li { margin-bottom: 4px; }
.response-box code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'SF Mono', 'Fira Mono', monospace;
}
.response-box pre {
  background: #f5f5f5;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 12px;
}
.response-box pre code { background: none; padding: 0; }
.response-box table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
  font-size: 13px;
}
.response-box th,
.response-box td {
  padding: 8px 12px;
  border: 1px solid #e8e8e8;
  text-align: left;
}
.response-box th { background: #f8f8f8; font-weight: 600; }

.error-text { color: #dc2626; }

/* ─── UPLOAD BOX ─────────────────────────────────────────────────────────── */

.upload-box {
  border: 1.5px dashed #ddd;
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  cursor: pointer;
  background: #fafafa;
  transition: all 0.15s;
}

.upload-box:hover {
  border-color: #2563eb;
  background: #f8faff;
}

.upload-icon { font-size: 28px; color: #ccc; margin-bottom: 10px; }
.upload-box p { font-size: 13px; color: #777; margin-bottom: 4px; }
.upload-hint  { font-size: 12px; color: #bbb; }

.upload-box img {
  max-width: 100%;
  max-height: 280px;
  border-radius: 8px;
  object-fit: contain;
}

/* ─── MODEL INFO BOX ─────────────────────────────────────────────────────── */

.model-info-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f8f8;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.model-info-label  { color: #999; }
.model-info-value  { color: #111; font-weight: 500; }
.model-info-sep    { color: #ddd; }
.tag-cost-inline   { color: #059669; font-weight: 600; }

/* ─── GENERATED IMAGE ────────────────────────────────────────────────────── */

.generated-image-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.generated-image {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.download-btn { text-decoration: none; }

/* ─── HIDDEN ─────────────────────────────────────────────────────────────── */

.hidden { display: none; }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .home-cards { grid-template-columns: 1fr; }
  .top-card-inner { flex-direction: column; }
  .score-num { font-size: 28px; }
}

.rag-icon { background: #fff7ed; color: #ea580c; }
.input-wrapper {
    position: relative;
    width: 100%;
}

.image-preview {
    width: 100%;
    min-height: 200px;
}

.image-preview img {
    max-width: 100%;
    height: auto;
    display: block;
}

.input-wrapper textarea,
.input-wrapper input {
    width: 100%;
    padding-right: 45px;
    box-sizing: border-box;
}
.query-box {
    position: relative;
    width: 100%;
}

.query-box textarea {
    width: 100%;
    min-height: 140px;
    padding: 14px 55px 14px 14px;
    box-sizing: border-box;
}

.query-box .mic-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;

    width: 34px;
    height: 34px;

    border: none;
    background: transparent;

    cursor: pointer;
    z-index: 100;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
}

.upload-container{
    margin-bottom:20px;
}

.upload-box{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    width:100%;
    min-height:220px;

    background:#ffffff;
    border:2px dashed #d1d5db;
    border-radius:16px;

    cursor:pointer;
    transition:all 0.25s ease;

    text-align:center;
    padding:30px;
    box-sizing:border-box;
}

.upload-box:hover{
    border-color:#3b82f6;
    transform:translateY(-2px);
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

.upload-icon{
    font-size:50px;
    margin-bottom:12px;
}

.upload-title{
    font-size:20px;
    font-weight:600;
    color:#111827;
}

.upload-subtitle{
    margin-top:8px;
    color:#6b7280;
    font-size:14px;
}

.upload-types{
    margin-top:12px;
    font-size:13px;
    color:#9ca3af;
}

.file-name{
    margin-top:18px;
    padding:10px 16px;

    background:#eff6ff;
    border-radius:10px;

    color:#2563eb;
    font-weight:500;
    word-break:break-word;
}
/* ─── NEW UI COMPONENTS ──────────────────────────────────────────────────── */

.input-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.input-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.btn-upload:hover { background: #ebebeb; }

.file-badge {
  font-size: 12px;
  color: #2563eb;
  background: #eff6ff;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
}

.url-badge {
  font-size: 12px;
  color: #059669;
  background: #ecfdf5;
  padding: 4px 10px;
  border-radius: 20px;
}

.query-info-box {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}

.section-heading { margin-bottom: 16px; }

.section-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.oss-badge  { background: #ecfdf5; color: #059669; }
.paid-badge { background: #fef3c7; color: #b45309; }

.model-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow 0.15s;
}

.model-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.model-card-top {
  border-color: #2563eb;
  box-shadow: 0 2px 12px rgba(37,99,235,0.10);
}

.model-card-paid { opacity: 0.92; }

.model-card-left {
  display: flex;
  gap: 14px;
  flex: 1;
}

.model-card-rank {
  font-size: 16px;
  min-width: 28px;
  padding-top: 2px;
}

.model-card-name {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin-bottom: 3px;
}

.model-card-meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}

.model-card-reason {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 10px;
}

.model-card-dots {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.dot-label {
  font-size: 11px;
  color: #999;
}

.dots {
  color: #2563eb;
  letter-spacing: 1px;
}

.model-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.model-card-score {
  font-size: 28px;
  font-weight: 700;
  color: #2563eb;
  line-height: 1;
}

.model-card-score-label {
  font-size: 11px;
  color: #bbb;
}

.model-card-cost {
  font-size: 12px;
  color: #059669;
  font-weight: 500;
}

.badge-oss {
  font-size: 10px;
  background: #ecfdf5;
  color: #059669;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}

.badge-paid {
  font-size: 10px;
  background: #fef3c7;
  color: #b45309;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}

.btn-generate {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn-generate:hover { background: #1d4ed8; }

.btn-optimise {
  background: #fff;
  color: #b45309;
  border: 1px solid #f0e0c0;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn-optimise:hover { background: #fffbeb; }

.attribution-line {
  font-size: 11px;
  color: #bbb;
  text-align: center;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.optimised-prompt-box {
  background: #f8faff;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  white-space: pre-wrap;
  margin-bottom: 16px;
}

.token-stats {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.token-stats strong { color: #111; }

.optimise-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.technique-row {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 13px;
}

.technique-row:last-child { border-bottom: none; }

.technique-name {
  font-weight: 600;
  color: #2563eb;
  min-width: 160px;
}

.technique-reason { color: #666; }

/* ─── CHAT PAGE (kept for reference) ────────────────────────────────────── */
.chat-page { display: flex; flex-direction: column; height: 100vh; background: #fff; }
.chat-header { padding: 16px 24px; border-bottom: 1px solid #e5e5e5; }
.chat-logo { font-size: 18px; font-weight: 700; color: #111; }
.chat-container { flex: 1; overflow-y: auto; padding: 24px; max-width: 800px; margin: 0 auto; width: 100%; }
.chat-messages { display: flex; flex-direction: column; gap: 12px; }
.message { padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 1.6; max-width: 85%; }
.user-message { background: #2563eb; color: #fff; align-self: flex-end; border-radius: 12px 12px 2px 12px; }
.bot-message { background: #f5f5f5; color: #111; align-self: flex-start; border-radius: 12px 12px 12px 2px; }
.welcome-box { text-align: center; padding: 60px 24px; }
.welcome-box h1 { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.welcome-box p { font-size: 15px; color: #666; line-height: 1.6; }
.typing-indicator { display: flex; gap: 4px; padding: 12px 16px; background: #f5f5f5; border-radius: 12px; width: fit-content; }
.typing-indicator span { width: 6px; height: 6px; background: #999; border-radius: 50%; animation: bounce 1.2s infinite; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%,80%,100%{transform:translateY(0)} 40%{transform:translateY(-6px)} }
.chat-input-area { border-top: 1px solid #e5e5e5; padding: 16px 24px; background: #fff; }
.chat-input-box { display: flex; align-items: flex-end; gap: 8px; background: #f5f5f5; border-radius: 12px; padding: 8px 12px; max-width: 800px; margin: 0 auto; }
.chat-input-box textarea { flex: 1; background: none; border: none; outline: none; font-size: 14px; font-family: inherit; resize: none; max-height: 120px; line-height: 1.5; padding: 4px 0; }
.icon-btn { background: none; border: none; cursor: pointer; font-size: 18px; color: #666; padding: 4px; border-radius: 6px; transition: background 0.1s; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; }
.icon-btn:hover { background: #e5e5e5; }
.send-btn { background: #2563eb; color: #fff; border: none; border-radius: 8px; width: 32px; height: 32px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: background 0.15s; }
.send-btn:hover { background: #1d4ed8; }

/* ─── MODE TOGGLE ────────────────────────────────────────────────────────── */
.mode-toggle {
  display: flex;
  gap: 8px;
  margin: 0 auto 20px;
  width: fit-content;
  background: #f0f0f0;
  border-radius: 10px;
  padding: 4px;
}

.mode-toggle-btn {
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: #666;
  cursor: pointer;
  transition: all 0.15s;
}

.mode-toggle-btn:hover { color: #111; }

.mode-toggle-btn.active {
  background: #fff;
  color: #111;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.loading-indicator {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  margin-right: 8px;
}

.loading-dot {
  width: 6px;
  height: 6px;
  background: #2563eb;
  border-radius: 50%;
  animation: loadingPulse 1.2s infinite ease-in-out;
}

.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes loadingPulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%           { transform: scale(1.0); opacity: 1.0; }
}

/* ─── MODEL DETAIL MODAL ─────────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.modal-close:hover { color: #111; }

.modal-header {
  margin-bottom: 12px;
}

.modal-model-name {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.modal-model-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 8px;
}

.modal-description {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.modal-section {
  margin-bottom: 20px;
}

.modal-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #bbb;
  margin-bottom: 10px;
}

.modal-bullet {
  font-size: 13px;
  color: #444;
  padding: 4px 0;
  line-height: 1.5;
}

.modal-tag {
  display: inline-block;
  background: #f0f4ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  margin: 3px 3px 3px 0;
}

.modal-benchmark-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 13px;
}

.modal-benchmark-row:last-child { border-bottom: none; }

.modal-benchmark-label { color: #666; }

.modal-benchmark-value {
  font-weight: 600;
  color: #111;
}

.modal-actions {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.modal-hint {
  font-size: 12px;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  cursor: pointer;
  vertical-align: middle;
}

.btn-more-info {
  background: none;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: #2563eb;
  cursor: pointer;
  font-family: inherit;
  margin-top: 8px;
  transition: background 0.1s;
}
.btn-more-info:hover { background: #eff6ff; }
/* ─── LANDING PAGE ───────────────────────────────────────────────────────── */

.landing-body {
  background: linear-gradient(160deg, #f0f4ff 0%, #fafafa 60%, #f0fff4 100%);
  min-height: 100vh;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e8e8e8;
}

.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  font-size: 18px;
  font-weight: 800;
  color: #111;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.nav-logo span { color: #2563eb; }

.nav-links {
  display: flex;
  gap: 24px;
  flex: 1;
}

.nav-link {
  font-size: 14px;
  color: #666;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-link:hover,
.nav-link.active { color: #111; }

.btn-get-started {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn-get-started:hover { background: #1d4ed8; }

/* ─── HERO ───────────────────────────────────────────────────────────────── */

.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px 48px;
  text-align: center;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-input-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  text-align: left;
}

.hero-textarea-wrap {
  position: relative;
  margin-bottom: 12px;
}

.hero-textarea-wrap textarea {
  width: 100%;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 16px 16px 40px;
  font-size: 15px;
  font-family: inherit;
  resize: none;
  outline: none;
  line-height: 1.6;
  color: #111;
  background: #fafafa;
  transition: border 0.15s;
}

.hero-textarea-wrap textarea:focus {
  border-color: #2563eb;
  background: #fff;
}

.textarea-footer {
  position: absolute;
  bottom: 12px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.token-count {
  font-size: 12px;
  color: #bbb;
}

.mic-btn-hero {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #999;
  padding: 2px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-upload-hero {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.btn-upload-hero:hover { background: #ebebeb; }

.btn-analyse {
  margin-left: auto;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-analyse:hover    { background: #1d4ed8; }
.btn-analyse:disabled { background: #93c5fd; cursor: not-allowed; }

.popular-queries {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.popular-label {
  font-size: 11px;
  font-weight: 700;
  color: #bbb;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.query-chip {
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  color: #555;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.query-chip:hover {
  background: #eff6ff;
  border-color: #2563eb;
  color: #2563eb;
}

/* ─── FEATURES ───────────────────────────────────────────────────────────── */

.features-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.feature-icon {
  font-size: 24px;
  margin-bottom: 12px;
  color: #2563eb;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.feature-card p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
}

.feature-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.feature-tag {
  background: #f0f0f0;
  color: #555;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
}

.feature-link {
  font-size: 13px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

/* ─── DARK CTA ───────────────────────────────────────────────────────────── */

.dark-cta {
  background: #0f172a;
  background-image: radial-gradient(ellipse at 50% 50%, #1e3a5f 0%, #0f172a 70%);
  margin: 0 24px 48px;
  border-radius: 20px;
  padding: 64px 40px;
  text-align: center;
  max-width: 912px;
  margin-left: auto;
  margin-right: auto;
}

.dark-cta h2 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.btn-explore {
  background: #fff;
  color: #111;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-explore:hover { opacity: 0.9; }

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */

.landing-footer {
  border-top: 1px solid #e8e8e8;
  padding: 40px 24px 24px;
  background: #fff;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-logo {
  font-size: 18px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.footer-logo span { color: #2563eb; }

.footer-left p {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  max-width: 300px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: #666;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: #111; }

.footer-bottom {
  max-width: 960px;
  margin: 0 auto;
  font-size: 12px;
  color: #bbb;
  border-top: 1px solid #f0f0f0;
  padding-top: 16px;
}

/* ─── RECOMMEND PAGE ─────────────────────────────────────────────────────── */

.recommend-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.back-link {
  display: inline-block;
  font-size: 13px;
  color: #888;
  text-decoration: none;
  margin-bottom: 24px;
  font-weight: 500;
}

.back-link:hover { color: #111; }

.prop-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 48px;
  margin-bottom: 16px;
}

.prop-actions { display: flex; gap: 10px; }

/* Featured OSS card */
.model-card-featured {
  background: #fff;
  border: 2px solid #2563eb;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  box-shadow: 0 4px 20px rgba(37,99,235,0.1);
}

.featured-left { flex: 1; }

.featured-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.featured-name {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.02em;
}

.featured-star {
  font-size: 20px;
  color: #f59e0b;
}

.featured-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 10px;
}

.featured-reason {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.featured-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
  min-width: 130px;
}

.featured-score {
  font-size: 48px;
  font-weight: 800;
  color: #2563eb;
  line-height: 1;
  letter-spacing: -0.04em;
}

.featured-score-label {
  font-size: 12px;
  color: #bbb;
  margin-top: -4px;
}

.featured-cost {
  font-size: 13px;
  color: #059669;
  font-weight: 600;
}

/* OSS mini grid */
.oss-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.oss-mini-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 20px;
  transition: box-shadow 0.15s;
}

.oss-mini-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.oss-mini-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.oss-mini-rank { font-size: 11px; color: #bbb; font-weight: 600; }
.oss-mini-name { font-size: 15px; font-weight: 700; color: #111; }
.oss-mini-meta { font-size: 12px; color: #999; }

.oss-mini-score {
  font-size: 22px;
  font-weight: 800;
  color: #2563eb;
  text-align: right;
}

.oss-mini-score span {
  font-size: 10px;
  font-weight: 600;
  color: #bbb;
  display: block;
}

.oss-mini-reason {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 10px;
}

.oss-mini-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.oss-tag {
  background: #f5f5f5;
  color: #666;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
}

/* Proprietary grid */
.prop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.prop-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 20px;
  transition: box-shadow 0.15s;
}

.prop-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.prop-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.prop-name { font-size: 14px; font-weight: 700; color: #111; }
.prop-meta { font-size: 12px; color: #999; margin-top: 2px; }

.prop-score {
  font-size: 22px;
  font-weight: 800;
  color: #2563eb;
  text-align: right;
}

.prop-score span {
  font-size: 10px;
  font-weight: 600;
  color: #bbb;
  display: block;
}

.prop-reason {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 10px;
}

.prop-cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #666;
}

.prop-cost-label strong { color: #111; }

/* Bottom CTA */
.bottom-cta {
  background: #0f172a;
  background-image: radial-gradient(ellipse at 30% 50%, #1e3a5f 0%, #0f172a 70%);
  border-radius: 16px;
  padding: 48px;
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.bottom-cta-left h3 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.bottom-cta-left p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 400px;
}

.bottom-cta-right { flex-shrink: 0; }

.cta-glow {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.4;
}

/* ─── RESULTS PAGE ───────────────────────────────────────────────────────── */

.results-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.results-title {
  font-size: 32px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.results-sub {
  font-size: 14px;
  color: #888;
  margin-bottom: 32px;
}

.results-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  align-items: start;
}

/* Insight panel */
.insight-panel {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.insight-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.insight-icon { font-size: 18px; color: #2563eb; }

.insight-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

.insight-model-card {
  background: #f0f4ff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.insight-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2563eb;
  margin-bottom: 8px;
}

.insight-model-name {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.insight-model-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

.insight-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #bbb;
  margin-bottom: 10px;
}

.prompt-structure-box {
  background: #f8f8f8;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 16px;
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  white-space: pre-wrap;
  margin-bottom: 24px;
  max-height: 160px;
  overflow-y: auto;
}

.token-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.token-card {
  background: #f8f8f8;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}

.token-card-optimised {
  background: #2563eb;
  border-color: #2563eb;
}

.token-card-label {
  font-size: 11px;
  color: #999;
  margin-bottom: 4px;
  font-weight: 500;
}

.token-card-optimised .token-card-label { color: rgba(255,255,255,0.7); }

.token-card-value {
  font-size: 22px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.02em;
}

.token-card-optimised .token-card-value { color: #fff; }

.token-card-unit {
  font-size: 10px;
  color: #bbb;
  font-weight: 600;
}

.token-card-optimised .token-card-unit { color: rgba(255,255,255,0.5); }

/* Output panel */
.output-panel {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

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

.output-icon { font-size: 18px; color: #2563eb; }

.output-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

.output-header-right { display: flex; gap: 8px; }

.icon-action-btn {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  transition: background 0.1s;
}

.icon-action-btn:hover { background: #ebebeb; }

.routing-strip-new {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #777;
  background: #f8f8f8;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  align-items: center;
}

.routing-strip-new strong { color: #111; }

.output-content {
  min-height: 200px;
}

.output-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .hero-title        { font-size: 32px; }
  .features-grid     { grid-template-columns: 1fr; }
  .oss-grid          { grid-template-columns: 1fr; }
  .prop-grid         { grid-template-columns: 1fr; }
  .results-grid      { grid-template-columns: 1fr; }
  .bottom-cta        { flex-direction: column; }
  .prop-section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}
/* ─── CATALOG SECTION ────────────────────────────────────────────────────── */

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.catalog-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    transition: box-shadow 0.15s;
}

.catalog-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.catalog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 8px;
}

.catalog-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
    margin-bottom: 2px;
}

.catalog-card-meta {
    font-size: 11px;
    color: #999;
}

.catalog-provider-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.badge-hf {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
}

.catalog-card-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.catalog-card-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.catalog-tag {
    background: #f5f5f5;
    color: #666;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
}

.catalog-card-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-hf-key {
    flex: 1;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #ea580c;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    text-align: center;
}

.btn-hf-key:hover { background: #ffedd5; }

.btn-hf-open {
    flex: 1;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    text-align: center;
    transition: background 0.15s;
    display: block;
}

.btn-hf-open:hover { background: #ebebeb; }

@media (max-width: 768px) {
    .catalog-grid { grid-template-columns: 1fr; }
}

