:root {
  --brand-deep-teal: #0e4d4f;
  --brand-teal: #157a7d;
  --brand-mint: #7ee2c6;
  --brand-lime: #b7f15a;
  --brand-dark-ink: #1a1f23;
  --brand-off-white: #f8fafc;
  --accent-blue: #1e6fd9;
  --border-subtle: #e2e8f0;
  --text-muted: #5b6773;
  --surface-white: #ffffff;
  --shadow-soft: 0 10px 30px -10px rgba(14, 77, 79, 0.1);
  --shadow-card: 0 4px 16px rgba(15, 23, 42, 0.05);
  --radius-lg: 18px;
  --radius-xl: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Prompt", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--brand-dark-ink);
  background: var(--brand-off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

code, pre, .mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

.hidden {
  display: none !important;
}

/* ============================================================================
   Top Navigation
   ============================================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.topbar-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.brand-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(21, 122, 125, 0.22);
  background: #ffffff;
  padding: 3px;
  object-fit: contain;
}

.brand-title {
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  color: var(--brand-deep-teal);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  line-height: 1.2;
}

.badge-subdomain {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(21, 122, 125, 0.12);
  color: var(--brand-deep-teal);
  border: 1px solid rgba(21, 122, 125, 0.25);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.4rem 0.7rem;
  border-radius: 10px;
  transition: all 0.18s ease;
}

.nav-link:hover {
  color: var(--brand-deep-teal);
  background: rgba(21, 122, 125, 0.08);
}

/* ============================================================================
   Pills & Buttons
   ============================================================================ */
.worker-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
}

.worker-pill.online {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.worker-pill.offline {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
}

.worker-pill.online .dot {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.worker-pill.offline .dot {
  background: #f59e0b;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 1.15rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--brand-deep-teal);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(14, 77, 79, 0.2);
}

.btn-primary:hover:not(:disabled) {
  background: var(--brand-teal);
  transform: translateY(-1px);
}

.btn-lime {
  background: var(--brand-lime);
  color: var(--brand-dark-ink);
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(183, 241, 90, 0.35);
}

.btn-lime:hover:not(:disabled) {
  background: #a7e449;
  transform: translateY(-1px);
}

.btn-outline {
  background: #ffffff;
  color: var(--brand-dark-ink);
  border-color: var(--border-subtle);
}

.btn-outline:hover:not(:disabled) {
  border-color: var(--brand-teal);
  color: var(--brand-deep-teal);
  background: rgba(21, 122, 125, 0.04);
}

.btn-sm {
  padding: 0.38rem 0.78rem;
  font-size: 0.8rem;
  border-radius: 10px;
}

/* ============================================================================
   Sale Page (/) Hero & Sections
   ============================================================================ */
.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-section {
  padding: 4rem 0 3rem;
  background: radial-gradient(circle at 85% 15%, rgba(126, 226, 198, 0.22), transparent 45%),
              radial-gradient(circle at 10% 80%, rgba(183, 241, 90, 0.16), transparent 40%),
              linear-gradient(180deg, #ffffff 0%, var(--brand-off-white) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(21, 122, 125, 0.1);
  color: var(--brand-deep-teal);
  border: 1px solid rgba(21, 122, 125, 0.2);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.18;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-title .accent {
  color: var(--brand-teal);
}

.hero-desc {
  font-size: 1.06rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  max-width: 640px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.hero-terminal-card {
  background: var(--brand-dark-ink);
  color: #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 1.35rem;
  box-shadow: 0 20px 45px -15px rgba(14, 77, 79, 0.3);
  border: 1px solid rgba(126, 226, 198, 0.25);
}

.terminal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  margin-bottom: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  color: #94a3b8;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-code {
  font-size: 0.8rem;
  line-height: 1.65;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #cbd5e1;
}

.terminal-code .hl-lime {
  color: var(--brand-lime);
  font-weight: 600;
}

.terminal-code .hl-mint {
  color: var(--brand-mint);
}

.section-block {
  padding: 3.75rem 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin: 0 0 0.6rem;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.feature-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(21, 122, 125, 0.4);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(21, 122, 125, 0.1);
  color: var(--brand-deep-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Architecture Steps */
.arch-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.arch-step {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.2rem;
  position: relative;
}

.arch-num {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand-teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.arch-step h4 {
  margin: 0.35rem 0 0.4rem;
  font-size: 0.98rem;
}

.arch-step p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* ============================================================================
   Studio Workspace (/studio)
   ============================================================================ */
.studio-shell {
  max-width: 1420px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 3.5rem;
}

.studio-toolbar {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-card);
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.quota-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.78rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(21, 122, 125, 0.09);
  color: var(--brand-deep-teal);
  border: 1px solid rgba(21, 122, 125, 0.22);
}

.studio-grid {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.panel-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.panel-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfe 100%);
}

.panel-header h2, .panel-header h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
}

.panel-body {
  padding: 1.2rem;
}

.field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-dark-ink);
  margin-bottom: 0.35rem;
}

.input, .select, .textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0.62rem 0.85rem;
  font-size: 0.9rem;
  background: #ffffff;
  color: var(--brand-dark-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(21, 122, 125, 0.14);
}

.textarea {
  min-height: 290px;
  resize: vertical;
  line-height: 1.55;
}

.brd-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.55rem;
  font-size: 0.77rem;
  color: var(--text-muted);
}

.mode-chip {
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
}

.mode-chip.inline {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.mode-chip.tempfile {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.digest-box {
  margin-top: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  font-size: 0.8rem;
}

.digest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.digest-tag {
  padding: 0.14rem 0.5rem;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--brand-deep-teal);
}

/* Studio Tabs */
.tab-bar {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  background: #f8fafc;
  padding: 0.4rem 0.6rem 0;
  gap: 0.35rem;
  overflow-x: auto;
  overflow-y: hidden;
}

.tab-btn {
  padding: 0.68rem 1.05rem;
  border: 1px solid transparent;
  border-bottom: none;
  background: transparent;
  border-radius: 12px 12px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--brand-deep-teal);
}

.tab-btn.active {
  background: #ffffff;
  color: var(--brand-deep-teal);
  border-color: var(--border-subtle);
  margin-bottom: -1px;
  padding-bottom: 0.74rem;
}

.tab-count {
  padding: 0.08rem 0.48rem;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(21, 122, 125, 0.12);
  color: var(--brand-deep-teal);
}

/* Summary Banner & Task Cards */
.project-summary-banner {
  background: linear-gradient(135deg, rgba(14, 77, 79, 0.06), rgba(126, 226, 198, 0.14));
  border: 1px solid rgba(21, 122, 125, 0.22);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.1rem;
}

.project-summary-banner h3 {
  margin: 0 0 0.35rem;
  font-size: 1.18rem;
  color: var(--brand-deep-teal);
}

.project-summary-banner p {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  color: #334155;
}

.kpi-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.kpi-pill {
  background: #ffffff;
  border: 1px solid rgba(21, 122, 125, 0.2);
  border-radius: 10px;
  padding: 0.38rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.role-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.role-pill {
  padding: 0.34rem 0.78rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-muted);
  cursor: pointer;
}

.role-pill.active {
  background: var(--brand-deep-teal);
  color: #ffffff;
  border-color: var(--brand-deep-teal);
}

.tasks-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.task-card {
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  background: #ffffff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.task-card:hover {
  border-color: rgba(21, 122, 125, 0.4);
  box-shadow: var(--shadow-card);
}

.task-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}

.task-badges {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.task-id {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand-deep-teal);
  background: #f1f5f9;
  padding: 0.16rem 0.5rem;
  border-radius: 6px;
}

.badge-role {
  font-size: 0.73rem;
  font-weight: 700;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
}

.role-Frontend { background: #eff6ff; color: #1d4ed8; }
.role-Backend { background: #ecfdf5; color: #047857; }
.role-Database { background: #f5f3ff; color: #6d28d9; }
.role-QA { background: #fffbeb; color: #b45309; }
.role-DevOps { background: #fff1f2; color: #be123c; }

.badge-prio {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.14rem 0.5rem;
  border-radius: 6px;
}

.prio-High { background: #fee2e2; color: #b91c1c; }
.prio-Medium { background: #fef3c7; color: #92400e; }
.prio-Low { background: #e2e8f0; color: #334155; }

.task-hours {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-deep-teal);
}

.task-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
}

.task-desc {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: #475569;
}

.task-criteria {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.82rem;
  color: #334155;
}

.task-criteria li {
  margin-bottom: 0.2rem;
}

.dep-row {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dep-chip {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  font-weight: 600;
}

/* Chat Stream */
.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.chip-btn {
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  color: var(--brand-deep-teal);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-btn:hover {
  background: rgba(21, 122, 125, 0.09);
  border-color: var(--brand-teal);
}

.chat-stream {
  min-height: 280px;
  max-height: 480px;
  overflow-y: auto;
  padding: 0.9rem;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.chat-bubble {
  max-width: 88%;
  padding: 0.72rem 1rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.62;
  white-space: normal;
  word-break: break-word;
}

.chat-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--brand-deep-teal);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-bubble.assistant {
  align-self: flex-start;
  background: #ffffff;
  color: var(--brand-dark-ink);
  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: 4px;
}

.chat-bubble.live-thinking {
  border-color: rgba(21, 122, 125, 0.35);
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
  box-shadow: 0 6px 18px rgba(14, 77, 79, 0.08);
}

.typing-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--brand-deep-teal);
  font-weight: 600;
  font-size: 0.87rem;
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-teal);
  display: inline-block;
  animation: kumiBounce 1.2s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) {
  animation-delay: -0.24s;
}

.typing-dots span:nth-child(2) {
  animation-delay: -0.12s;
}

.stream-cursor {
  display: inline-block;
  margin-left: 2px;
  color: var(--brand-teal);
  font-weight: 700;
  animation: kumiBlink 0.85s steps(2, start) infinite;
}

@keyframes kumiBounce {
  0%, 80%, 100% {
    transform: scale(0.55);
    opacity: 0.45;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

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

.chat-meta {
  font-size: 0.7rem;
  opacity: 0.72;
  margin-top: 0.32rem;
}

.chat-composer {
  display: flex;
  gap: 0.6rem;
}

/* Image Gallery */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1rem;
  margin-top: 1.1rem;
}

.mockup-card {
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}

.mockup-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: #f1f5f9;
}

.mockup-body {
  padding: 0.85rem;
  font-size: 0.82rem;
}

/* Job Progress Status Banner */
.job-status-banner {
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  color: #0f766e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.job-status-banner.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

/* Developer CLI & Raw JSON Inspector */
.inspector-card {
  margin-top: 1.25rem;
  background: var(--brand-dark-ink);
  color: #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #334155;
}

.inspector-header {
  padding: 0.8rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  font-weight: 600;
}

.inspector-body {
  padding: 1rem 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.inspector-pre {
  background: #0f172a;
  color: #cbd5e1;
  padding: 0.85rem;
  border-radius: 10px;
  font-size: 0.78rem;
  max-height: 300px;
  overflow: auto;
  margin: 0.4rem 0 0;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 2.6rem 1.25rem;
  color: var(--text-muted);
}

.empty-state h4 {
  margin: 0 0 0.4rem;
  color: var(--brand-dark-ink);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-box {
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-box.modal-box-pay {
  max-width: 560px;
}

.sso-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.24rem 0.72rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: #ecfeff;
  color: #0e7490;
  border: 1px solid #a5f3fc;
  margin-bottom: 0.75rem;
}

.btn-google-sso {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.72rem 1rem;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.btn-google-sso:hover {
  background: #f8fafc;
  border-color: var(--brand-deep-teal);
  transform: translateY(-1px);
}

.sso-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.95rem 0;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.sso-divider::before,
.sso-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.pay-hub-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.24rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.pay-plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.pay-plan-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.pay-plan-card:hover {
  border-color: rgba(21, 122, 125, 0.45);
}

.pay-plan-card.active {
  border-color: var(--brand-deep-teal);
  background: linear-gradient(135deg, rgba(14, 77, 79, 0.06), rgba(126, 226, 198, 0.16));
}

.pay-plan-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-deep-teal);
  white-space: nowrap;
}

.pay-method-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pay-method-tab {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pay-method-tab.active {
  border-color: var(--brand-deep-teal);
  background: var(--brand-deep-teal);
  color: #ffffff;
}

.pay-method-tab:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.pay-qr-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-bottom: 0.9rem;
}

.pay-qr-frame img {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  background: #ffffff;
  padding: 0.45rem;
  border: 1px solid #e2e8f0;
}

.pay-fee-box {
  padding: 0.95rem 1.05rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.86rem;
  margin-bottom: 1rem;
}

.pay-fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.28rem 0;
}

.pay-fee-row.total {
  margin-top: 0.4rem;
  padding-top: 0.55rem;
  border-top: 1px dashed #cbd5e1;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-deep-teal);
}

/* Admin Tables */
.data-table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.data-table th, .data-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  background: #f8fafc;
}

/* Footer */
.site-footer {
  background: var(--brand-dark-ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.5rem 1.5rem;
  margin-top: 3rem;
  font-size: 0.86rem;
}

.footer-inner {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 1040px) {
  .hero-grid, .studio-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid-3 {
    grid-template-columns: 1fr;
  }
  .arch-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .arch-strip {
    grid-template-columns: 1fr;
  }
  .chat-composer {
    flex-direction: column;
  }
}
