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

:root {
  --bg-page: #020617;
  --bg-shell: rgba(15, 23, 42, 0.85);
  --bg-card: radial-gradient(circle at 0% 0%, #020617 0%, #020617 40%, #020617 100%);
  --bg-card-soft: rgba(15, 23, 42, 0.7);
  --border-soft: rgba(148, 163, 184, 0.35);
  --accent: #fbbf24;
  --accent-soft: rgba(251, 191, 36, 0.16);
  --accent-strong: #facc15;
  --text-main: #e5e7eb;
  --text-soft: #9ca3af;
  --text-muted: #6b7280;
  --radius-lg: 1.1rem;
  --radius-pill: 999px;
  --shadow-strong: 0 24px 80px rgba(0, 0, 0, 0.75);
  --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.7);
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% -10%, #0f172a 0, transparent 55%),
    radial-gradient(circle at 100% 120%, #4b5563 0, transparent 55%),
    #020617;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
}

/* Layout Shell */

.shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Fullscreen reading mode for overlay */

.viewer-overlay.fullscreen .viewer-sheet {
  max-width: none;
  width: 100%;
  height: 100vh;
  margin: 0;
  border-radius: 0;
  padding: 0;
}

.viewer-overlay.fullscreen .viewer-layout {
  grid-template-columns: minmax(0, 1fr);
}

.viewer-overlay.fullscreen .viewer-files {
  display: none;
}

.viewer-overlay.fullscreen .viewer-content {
  border-radius: 0;
  border: none;
  background: #020617;
  padding: 0.9rem 1.5rem 1.6rem;
}

.viewer-overlay.fullscreen .viewer-body {
  max-height: none;
}

/* Header / Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  background:
    linear-gradient(120deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.92));
  backdrop-filter: blur(20px);
}

.site-header .shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 1.5rem 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #020617;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.7);
  overflow: visible;
}

/* Logo image inside circle */
.brand-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Circle ke piche subtle golden-white glow */
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(251, 191, 36, 0.45) 0%,
    rgba(251, 191, 36, 0.18) 35%,
    transparent 75%
  );
  filter: blur(3px);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

.brand-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.86rem;
  white-space: nowrap;
}

.nav a {
  color: var(--text-soft);
  text-decoration: none;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.nav a:hover {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--text-main);
  transform: translateY(-1px);
}

.nav a:first-child {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--text-main);
}

.cta {
  margin-left: auto;
  font-size: 0.86rem;
  text-decoration: none;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(251, 191, 36, 0.65);
  color: var(--accent-strong);
  background:
    radial-gradient(circle at 0 0, rgba(251, 191, 36, 0.18) 0, transparent 55%),
    rgba(15, 23, 42, 0.9);
  box-shadow: 0 12px 32px rgba(251, 191, 36, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(251, 191, 36, 0.22);
  background:
    radial-gradient(circle at 0 0, rgba(251, 191, 36, 0.22) 0, transparent 55%),
    rgba(15, 23, 42, 0.96);
}

.profile-btn {
  margin-left: 0.5rem;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.profile-btn:hover {
  background: rgba(15, 23, 42, 0.99);
  border-color: rgba(251, 191, 36, 0.8);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

.profile-avatar {
  font-size: 0.9rem;
}

.profile-panel {
  position: absolute;
  top: 100%;
  right: 1.5rem;
  margin-top: 0.35rem;
  z-index: 40;
  min-width: 260px;
  max-width: 320px;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background:
    radial-gradient(circle at 0 0, rgba(251, 191, 36, 0.1) 0, transparent 55%),
    rgba(15, 23, 42, 0.98);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
  padding: 0.75rem 0.85rem 0.8rem;
}

.profile-panel-inner {
  font-size: 0.84rem;
  color: var(--text-soft);
}

.profile-panel-header {
  margin-bottom: 0.5rem;
}

.profile-panel-title-main {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e5e7eb;
}

.profile-panel-title-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.profile-panel-section {
  margin-top: 0.4rem;
}

.profile-panel-section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.profile-panel-history-list {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.profile-history-item {
  border-radius: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.96);
  padding: 0.4rem 0.55rem;
  margin-bottom: 0.4rem;
}

.profile-history-title {
  font-size: 0.84rem;
  color: #e5e7eb;
  margin-bottom: 0.15rem;
}

.profile-history-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.profile-panel-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Page Content */

.page {
  flex: 1;
  padding: 1.6rem 0 3.1rem;
}

.hero-section {
  margin-top: 1.7rem;
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(0, 1.45fr);
  gap: 1.5rem;
  align-items: stretch; /* hero card ki height ab side wale Daily Quiz column ke equal hogi */
}

/* Card Base */

.card {
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.7rem;
  background:
    radial-gradient(circle at 0 0, rgba(251, 191, 36, 0.06) 0, transparent 60%),
    radial-gradient(circle at 100% 120%, rgba(15, 23, 42, 0.88) 0, rgba(15, 23, 42, 0.98) 55%),
    #020617;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.02);
  mix-blend-mode: screen;
}

/* Hero */

.hero-main {
  position: relative;
}

.hero-main::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(circle at 0 0, rgba(251, 191, 36, 0.09) 0, transparent 50%);
  opacity: 0.7;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(251, 191, 36, 0.7);
  background: rgba(8, 47, 73, 0.55);
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.hero-main h1 {
  margin: 1rem 0 0.7rem;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 2.15vw + 1.2rem, 2.35rem);
  letter-spacing: 0.01em;
}

/* Glowing highlight for Rajasthan / SSC / Banking text in hero */
.hero-main h1 .hero-glow {
  /* Text safed, bahut hi subtle glow, jo piche se aa raha ho */
  position: relative;
  color: #ffffff;
  text-shadow: none;
  z-index: 1;
}

.hero-main h1 .hero-glow::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  top: 55%;
  bottom: -3px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.14) 35%,
    transparent 75%
  );
  filter: blur(4px);
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

/* Buttons */

.btn {
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  padding: 0.55rem 1.3rem;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.btn.primary {
  background: linear-gradient(120deg, #facc15, #f97316);
  border-color: rgba(234, 179, 8, 0.9);
  color: #111827;
  box-shadow: 0 14px 30px rgba(234, 179, 8, 0.45);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(234, 179, 8, 0.55);
}

.btn.ghost {
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--text-soft);
  background: rgba(15, 23, 42, 0.8);
}

.btn.ghost:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(148, 163, 184, 0.9);
  color: var(--text-main);
}

.btn.secondary {
  border-color: rgba(251, 191, 36, 0.8);
  color: var(--accent-strong);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.9);
}

.btn.secondary:hover {
  background: rgba(15, 23, 42, 0.99);
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 1);
}

.btn.full {
  width: 100%;
}

/* Hero tags */

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-tags li {
  padding: 0.26rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.55);
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* Sidebar */

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.side-block {
  position: relative;
}

.mcq-year-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

/* This month – daily current affairs list under quick links */

.this-month-block {
  margin-top: 0.4rem;
}

.this-month-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.this-month-date-btn {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.96);
  color: var(--text-soft);
  font-size: 0.78rem;
  padding: 0.22rem 0.6rem;
  cursor: pointer;
}

.this-month-date-btn.today {
  border-color: rgba(251, 191, 36, 0.9);
  background: rgba(251, 191, 36, 0.12);
  color: var(--accent-strong);
}

.this-month-empty {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.side-block h2,
.side-block h3 {
  margin: 0 0 0.7rem;
  font-size: 1.02rem;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.link-list a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  border-bottom: 1px dashed rgba(51, 65, 85, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
}

.link-list a::after {
  content: "→";
  font-size: 0.78rem;
  color: var(--accent-strong);
  opacity: 0;
  transform: translateX(-4px);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.link-list a:hover {
  color: #e5e7eb;
  border-bottom-color: rgba(148, 163, 184, 0.9);
}

.link-list a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.side-block.muted {
  background:
    radial-gradient(circle at 80% 0%, rgba(251, 191, 36, 0.16) 0, transparent 55%),
    rgba(15, 23, 42, 0.96);
}

/* Sections */

.section {
  margin-top: 1.6rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-head h2 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.section-link {
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding-bottom: 0.1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.7);
}

.section-link:hover {
  color: var(--accent-strong);
  border-bottom-color: rgba(251, 191, 36, 0.9);
}

/* Article cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.article {
  padding: 1.3rem 1.3rem 1.25rem;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.93), rgba(15, 23, 42, 0.98));
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.95);
}

.article h3 {
  margin: 0.7rem 0 0.5rem;
  font-size: 0.98rem;
}

.article p {
  margin: 0 0 0.8rem;
  font-size: 0.89rem;
  color: var(--text-soft);
}

.article .meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: var(--text-soft);
  background: rgba(15, 23, 42, 0.92);
}

.pill.large {
  font-size: 0.86rem;
  padding: 0.45rem 1rem;
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(148, 163, 184, 0.75);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.pill.large:hover {
  background: rgba(15, 23, 42, 0.98);
  border-color: rgba(251, 191, 36, 0.65);
  transform: translateY(-1px);
}

/* Two-column section */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.1fr);
  gap: 1.7rem;
  align-items: flex-start;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.lang-card {
  background:
    radial-gradient(circle at 100% 0, rgba(251, 191, 36, 0.14) 0, transparent 55%),
    rgba(15, 23, 42, 0.95);
}

.lang-card p {
  margin-top: 0.2rem;
  margin-bottom: 1.1rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.lang-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn.pill-btn {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  border-color: rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.92);
  color: var(--text-soft);
}

.btn.pill-btn.active {
  border-color: rgba(251, 191, 36, 0.9);
  color: var(--accent-strong);
  background: rgba(251, 191, 36, 0.08);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.95);
  background:
    radial-gradient(circle at 0 0, rgba(251, 191, 36, 0.08) 0, transparent 55%),
    rgba(15, 23, 42, 0.98);
  box-shadow: 0 -20px 40px rgba(15, 23, 42, 0.96);
}

.site-footer .shell {
  padding: 1.4rem 1.5rem 1.9rem;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 0.9rem;
}

.footer-text {
  margin: 0.3rem 0 0;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.84rem;
}

.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-strong);
}

.footer-telegram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-strong);
}

.footer-telegram-link:hover {
  color: #38bdf8;
}

.telegram-icon-glow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-block;
  object-fit: cover;
  box-shadow:
    0 0 8px rgba(56, 189, 248, 0.8),
    0 0 18px rgba(56, 189, 248, 0.7);
  animation: telegramGlow 1.6s ease-in-out infinite alternate;
}

@keyframes telegramGlow {
  from {
    transform: translateY(0);
    box-shadow:
      0 0 6px rgba(56, 189, 248, 0.6),
      0 0 14px rgba(56, 189, 248, 0.4);
  }
  to {
    transform: translateY(-1px);
    box-shadow:
      0 0 14px rgba(56, 189, 248, 1),
      0 0 26px rgba(56, 189, 248, 0.9);
  }
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(30, 64, 175, 0.7);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive */

@media (max-width: 960px) {
  .hero-section {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
  }
}

@media (max-width: 840px) {
  .site-header .shell {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 0.6rem;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .cta {
    order: 2;
    margin-left: 0;
  }

  .hero-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-main {
    order: 1;
  }

  .hero-side {
    order: 2;
  }

  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .site-header .shell {
    padding-inline: 1rem;
  }

  .brand-title {
    font-size: 1.02rem;
  }

  .hero-main {
    padding: 1.4rem 1.3rem;
  }

  .card {
    padding-inline: 1.3rem;
  }
}

/* Solver chat (uses same overlay shell as viewer) */

#solver-overlay .viewer-sheet {
  max-width: none;
  width: 100%;
  height: 100vh;
  margin: 0;
  border-radius: 0;
  padding: 0.9rem 1.5rem 1.6rem;
}

#solver-overlay .viewer-layout {
  grid-template-columns: minmax(0, 1fr);
}

#solver-overlay .viewer-content {
  border-radius: 0.9rem;
}

.solver-chat-open-wrapper {
  margin-top: 1rem;
}

.solver-chat-body {
  flex: 1 1 auto;
  padding: 0.2rem 0.1rem 0.6rem;
  overflow-y: auto;
  font-size: 0.86rem;
}

.solver-chat-empty,
.solver-chat-info {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.solver-chat-message {
  margin-bottom: 0.45rem;
  padding: 0.4rem 0.45rem;
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(30, 64, 175, 0.4);
}

.solver-chat-message-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.solver-chat-message-text {
  font-size: 0.86rem;
  color: var(--text-main);
}

.solver-chat-message-image {
  display: block;
  max-width: 100%;
  max-height: 220px;
  border-radius: 0.4rem;
  margin-top: 0.35rem;
}

.solver-chat-form {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.5rem 0.9rem 0.65rem;
  background: rgba(15, 23, 42, 0.98);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.solver-chat-input-name {
  width: 100%;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.96);
  color: var(--text-main);
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
}

.solver-chat-input-text {
  width: 100%;
  min-height: 52px;
  max-height: 120px;
  border-radius: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.96);
  color: var(--text-main);
  padding: 0.4rem 0.7rem;
  font-size: 0.86rem;
  resize: vertical;
}

.solver-chat-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.solver-chat-file-input {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.solver-chat-status {
  min-height: 1.1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.solver-chat-status-error {
  color: #f97316;
}

@media (max-width: 600px) {
  .solver-chat-widget {
    right: 0.75rem;
    bottom: 0.75rem;
    width: calc(100% - 1.5rem);
    max-height: 70vh;
  }
}
