/* ===========================================
   KALUA CLAUDE — PURE CLAUDE.AI THEME
   Pixel-perfect parody of Anthropic's design
   =========================================== */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Source+Serif+4:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ---- CSS Variables — Claude's Exact Palette ---- */
:root {
  /* Backgrounds — warm chocolate tones from Claude */
  --bg-deepest: #151311;
  --bg-sidebar: #1a1714;
  --bg-primary: #2b2520;
  --bg-secondary: #342e28;
  --bg-card: #3d3630;
  --bg-elevated: #4a423b;
  --bg-input: #3a3430;
  --bg-hover: #453e38;

  /* Claude's signature coral/terracotta header */
  --header-coral: #c2715c;
  --header-coral-dark: #a85d4a;

  /* Text — warm creams from Claude */
  --text-primary: #e8ddd3;
  --text-secondary: #b5aaa0;
  --text-tertiary: #877d73;
  --text-muted: #6b6159;

  /* Accents */
  --accent-coral: #da7756;
  --accent-coral-hover: #e88b6b;
  --accent-blue: #6aadde;
  --accent-blue-dim: #4a8dbe;
  --accent-green: #5cb87a;
  --accent-yellow: #e8a84c;
  --accent-red: #e05c5c;
  --accent-purple: #9b7ad8;

  /* Usage bars */
  --bar-blue: #5b9fd6;
  --bar-orange: #e8a84c;
  --bar-red: #e05c5c;
  --bar-empty: #3d3630;

  /* Borders */
  --border-subtle: rgba(232, 221, 211, 0.08);
  --border-medium: rgba(232, 221, 211, 0.12);
  --border-strong: rgba(232, 221, 211, 0.18);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px rgba(218, 119, 86, 0.15);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Source Serif 4', 'Georgia', serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;

  /* Sizing */
  --max-width: 860px;
  --sidebar-width: 260px;
  --header-height: 52px;
  --nav-height: 56px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 100px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 15px;
  overflow-x: hidden;
}

::selection {
  background: rgba(218, 119, 86, 0.3);
  color: var(--text-primary);
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-coral);
}

img {
  max-width: 100%;
  display: block;
}

/* ---- Scrollbar — Claude Style ---- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ============================================
   HEADER — Claude's Coral Topbar
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--header-coral);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.header-logo .spark {
  font-size: 20px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.header-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.2s;
  text-decoration: none;
}

.header-nav a:hover {
  color: white;
}

.header-cta {
  background: rgba(255,255,255,0.2);
  color: white !important;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.3);
  transition: all 0.2s;
  cursor: pointer;
}

.header-cta:hover {
  background: rgba(255,255,255,0.3);
}

/* ============================================
   NAVIGATION BAR — Below header
   ============================================ */
.site-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  z-index: 999;
  height: var(--nav-height);
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 16px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar { display: none; }

.nav-link {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all 0.2s;
  text-decoration: none;
}

.nav-link:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-link.active {
  background: var(--bg-card);
  color: var(--accent-coral);
}

/* ============================================
   TICKER BAR — scrolling Claude messages
   ============================================ */
.ticker-bar {
  position: fixed;
  top: calc(var(--header-height) + var(--nav-height));
  left: 0;
  right: 0;
  z-index: 998;
  background: var(--bg-deepest);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
}

.ticker-content {
  display: flex;
  gap: 60px;
  animation: ticker-scroll 60s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  font-size: 12.5px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ticker-item .emoji {
  font-size: 14px;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.main-content {
  margin-top: calc(var(--header-height) + var(--nav-height) + 36px);
  padding: 0 20px;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section:last-child {
  border-bottom: none;
}

/* ============================================
   HERO SECTION — Mimics Claude's Chat Greeting
   ============================================ */
.hero {
  text-align: center;
  padding: 100px 0 80px;
  max-width: 680px;
  margin: 0 auto;
}

.hero-spark {
  font-size: 40px;
  margin-bottom: 16px;
  display: inline-block;
  animation: spark-pulse 3s ease-in-out infinite;
}

@keyframes spark-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.hero-greeting {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 28px;
  line-height: 1.25;
}

.hero-greeting .strike {
  text-decoration: line-through;
  color: var(--text-tertiary);
}

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

.hero-sub strong {
  color: var(--accent-coral);
  font-weight: 600;
}

/* Fake Chat Input — looks like Claude's */
.fake-input-wrapper {
  max-width: 540px;
  margin: 0 auto;
}

.fake-input {
  background: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: text;
  transition: border-color 0.2s;
}

.fake-input:hover {
  border-color: var(--border-strong);
}

.fake-input-text {
  font-size: 15px;
  color: var(--text-tertiary);
  text-align: left;
}

.fake-input-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fake-input-plus {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 18px;
}

.fake-model-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.fake-model-selector .model-name {
  font-weight: 500;
}

/* Quick Action Pills — like Claude's */
.quick-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.pill:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.pill .pill-icon {
  font-size: 14px;
}

/* ============================================
   USAGE METER — Mimics Claude's Settings/Usage
   ============================================ */
.usage-display {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin: 48px auto;
  max-width: 620px;
}

.usage-header {
  font-size: 17px;
  font-weight: 600;
  color: var(--accent-coral);
  margin-bottom: 24px;
}

.usage-row {
  margin-bottom: 20px;
}

.usage-row:last-child {
  margin-bottom: 0;
}

.usage-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.usage-label-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.usage-label-sub {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.usage-label-percent {
  font-size: 13px;
  color: var(--text-secondary);
}

.usage-bar-track {
  width: 100%;
  height: 8px;
  background: var(--bar-empty);
  border-radius: 4px;
  overflow: hidden;
}

.usage-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.usage-bar-fill.low { background: var(--bar-blue); }
.usage-bar-fill.medium { background: var(--bar-orange); }
.usage-bar-fill.high { background: var(--bar-red); }
.usage-bar-fill.full { background: var(--accent-coral); }

.usage-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  margin-bottom: 40px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-coral);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 12px;
}

.section-title .muted {
  color: var(--text-tertiary);
  text-decoration: line-through;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.65;
}

/* ============================================
   SERVICES CARDS
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.service-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-coral);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.service-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.service-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.service-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-coral);
  background: rgba(218, 119, 86, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

/* ============================================
   THE CEO LETTER — Blockquote Style
   ============================================ */
.ceo-letter {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 40px;
  position: relative;
  margin-top: 32px;
}

.ceo-letter::before {
  content: '"';
  font-family: var(--font-serif);
  font-size: 120px;
  color: var(--accent-coral);
  opacity: 0.12;
  position: absolute;
  top: -10px;
  left: 20px;
  line-height: 1;
}

.ceo-letter h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.ceo-letter .subtitle {
  font-size: 13px;
  color: var(--text-tertiary);
  font-style: italic;
  margin-bottom: 28px;
}

.ceo-letter p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.75;
}

.ceo-letter p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.ceo-letter .signature {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-tertiary);
  font-style: italic;
}

.ceo-letter .ps {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-tertiary);
  font-style: italic;
}

/* ============================================
   TIMELINE — Anatomy of a Session
   ============================================ */
.timeline {
  margin-top: 32px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 80px 1fr 90px 80px;
  gap: 16px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  align-items: center;
  transition: background 0.2s;
  font-size: 14px;
}

.timeline-row:hover {
  background: var(--bg-secondary);
}

.timeline-row:nth-child(even) {
  background: rgba(0,0,0,0.1);
}

.timeline-row.header {
  font-weight: 600;
  color: var(--text-tertiary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  margin-bottom: 4px;
}

.timeline-row.disaster {
  background: rgba(224, 92, 92, 0.08);
  border-left: 3px solid var(--accent-red);
}

.timeline-time {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 13px;
}

.timeline-event {
  color: var(--text-secondary);
}

.timeline-tokens {
  color: var(--accent-yellow);
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: right;
}

.timeline-credits {
  text-align: right;
  font-weight: 600;
}

.timeline-credits.good { color: var(--accent-green); }
.timeline-credits.medium { color: var(--accent-yellow); }
.timeline-credits.low { color: var(--accent-red); }
.timeline-credits.dead { color: var(--accent-red); font-size: 16px; }

.timeline-summary {
  margin-top: 28px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.summary-stat {
  text-align: center;
}

.summary-stat .value {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-coral);
  font-family: var(--font-mono);
}

.summary-stat .label {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* ============================================
   TABLES — Claude-Styled
   ============================================ */
.claude-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-size: 14px;
}

.claude-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--bg-sidebar);
  color: var(--text-tertiary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  border-bottom: 1px solid var(--border-medium);
}

.claude-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.claude-table tr:hover td {
  background: var(--bg-secondary);
}

.claude-table td:last-child {
  color: var(--accent-coral);
  font-weight: 500;
}

.claude-table .highlight {
  color: var(--accent-coral);
  font-weight: 600;
}

.claude-table .green { color: var(--accent-green); }
.claude-table .red { color: var(--accent-red); }
.claude-table .yellow { color: var(--accent-yellow); }

/* (Bingo CSS removed — replaced by Claude Dictionary at end of file) */

/* ============================================
   WALL OF PAIN — Quotes
   ============================================ */
.quotes-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.quote-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  border-left: 3px solid var(--accent-coral);
  transition: transform 0.2s;
}

.quote-card:hover {
  transform: translateY(-2px);
}

.quote-text {
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.65;
  margin-bottom: 12px;
}

.quote-source {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ============================================
   CLAUDE CHAT CLONE — Pixel Perfect Simulator
   Matches the exact Claude.ai interface
   ============================================ */
.claude-app {
  background: #2b2520;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 28px;
  position: relative;
  height: 620px;
  display: flex;
}

/* --- Sidebar (Wide — matches real Claude) --- */
.claude-sidebar {
  width: 200px;
  background: #221e1a;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  flex-shrink: 0;
  overflow-y: auto;
}

.claude-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 14px 14px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 6px;
}

.claude-sidebar-brand .brand-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.claude-sidebar-brand .brand-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 14px;
  border-radius: 6px;
}

.claude-sidebar-brand .brand-toggle:hover {
  background: rgba(255,255,255,0.06);
}

.claude-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 8px;
}

.claude-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-tertiary);
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.claude-sidebar-item:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
}

.claude-sidebar-item .icon {
  font-size: 15px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.claude-sidebar-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 8px 14px;
}

.claude-sidebar-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 18px 4px;
}

.claude-sidebar-chat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  color: var(--text-tertiary);
  font-size: 12.5px;
  cursor: pointer;
  border-radius: 6px;
  margin: 0 8px;
  transition: all 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.claude-sidebar-chat:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
}

.claude-sidebar-chat.active {
  background: rgba(218,119,86,0.1);
  color: var(--accent-coral);
}

.claude-sidebar-bottom {
  margin-top: auto;
  padding: 8px;
  border-top: 1px solid var(--border-subtle);
}

.claude-sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.claude-sidebar-user:hover {
  background: rgba(255,255,255,0.05);
}

.claude-sidebar-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
  font-weight: 600;
  flex-shrink: 0;
}

.claude-sidebar-user-info {
  display: flex;
  flex-direction: column;
}

.claude-sidebar-user-name {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

.claude-sidebar-user-plan {
  font-size: 11px;
  color: var(--text-muted);
}

/* --- Main Chat Area --- */
.claude-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Credit bar at top of chat */
.claude-credit-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(0,0,0,0.15);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.claude-credit-track {
  width: 160px;
  height: 6px;
  background: var(--bar-empty);
  border-radius: 3px;
  overflow: hidden;
}

.claude-credit-fill {
  height: 100%;
  background: var(--accent-green);
  border-radius: 3px;
  transition: width 0.5s ease, background 0.5s ease;
}

.claude-credit-fill.medium { background: var(--accent-yellow); }
.claude-credit-fill.low { background: var(--accent-red); }
.claude-credit-fill.dead { background: var(--accent-red); width: 0 !important; }

.claude-credit-text {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
  min-width: 36px;
}

/* --- Chat Messages Area --- */
.claude-chat-area {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Welcome screen — matches Claude exactly */
.claude-welcome {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 40px 20px;
}

.claude-welcome.hidden {
  display: none;
}

.claude-welcome-greeting {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--text-primary);
  text-align: center;
}

.claude-welcome-greeting .spark {
  color: var(--accent-coral);
  font-size: 24px;
}

/* --- Messages --- */
.claude-messages {
  padding: 20px 40px;
  flex: 1;
  overflow-y: auto;
  display: none;
}

.claude-messages.active {
  display: block;
}

.claude-msg {
  margin-bottom: 24px;
  animation: msg-fade 0.35s ease;
}

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

.claude-msg-user {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.6;
  padding: 0 0 16px 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.claude-msg-ai {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
  padding-left: 28px;
}

.claude-msg-ai::before {
  content: '✸';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent-coral);
  font-size: 16px;
}

.claude-msg-ai code {
  background: var(--bg-elevated);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-coral);
}

.claude-msg-cost {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.claude-msg-thinking {
  padding-left: 28px;
  position: relative;
  color: var(--text-tertiary);
  font-size: 14px;
}

.claude-msg-thinking::before {
  content: '✸';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent-coral);
  font-size: 16px;
  animation: spark-pulse 1.5s ease-in-out infinite;
}

/* Extended Thinking Block — matches real Claude */
.claude-thinking-block {
  margin: 12px 0 16px 28px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0,0,0,0.15);
}

.claude-thinking-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  background: rgba(0,0,0,0.1);
  transition: background 0.15s;
  user-select: none;
}

.claude-thinking-header:hover {
  background: rgba(0,0,0,0.2);
}

.claude-thinking-toggle {
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.claude-thinking-toggle.open {
  transform: rotate(90deg);
}

.claude-thinking-label {
  font-size: 13px;
  color: var(--text-tertiary);
  font-style: italic;
}

.claude-thinking-label strong {
  color: var(--accent-coral);
  font-style: normal;
}

.claude-thinking-duration {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.claude-thinking-content {
  display: none;
  padding: 12px 16px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.65;
  border-top: 1px solid var(--border-subtle);
  max-height: 200px;
  overflow-y: auto;
}

.claude-thinking-content.open {
  display: block;
}

.claude-thinking-content .step {
  margin-bottom: 8px;
  display: flex;
  gap: 6px;
}

.claude-thinking-content .step-icon {
  color: var(--accent-coral);
  flex-shrink: 0;
}

.claude-thinking-done {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 28px 4px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.claude-thinking-done .check {
  color: var(--accent-green);
}

/* Bottom disclaimer bar */
.claude-disclaimer {
  padding: 6px 20px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  background: rgba(0,0,0,0.1);
  flex-shrink: 0;
}

/* Model selector with Extended toggle */
.claude-extended-toggle {
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.claude-extended-toggle::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-coral);
}

/* --- Input Box — exact Claude match --- */
.claude-input-wrapper {
  padding: 16px 40px 12px;
  flex-shrink: 0;
}

.claude-input-box {
  background: #3a3430;
  border: 1px solid rgba(232,221,211,0.12);
  border-radius: 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}

.claude-input-box:focus-within {
  border-color: rgba(232,221,211,0.2);
}

.claude-textarea-wrap {
  padding: 14px 18px 0;
}

.claude-textarea {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-sans);
  line-height: 1.5;
  resize: none;
  outline: none;
  min-height: 24px;
  max-height: 100px;
}

.claude-textarea::placeholder {
  color: var(--text-tertiary);
}

.claude-input-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px 10px;
}

.claude-plus-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.claude-plus-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

.claude-input-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.claude-model-wrapper {
  position: relative;
}

.claude-model-select {
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.15s;
}

.claude-model-select:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
}

/* Model Dropdown — matches real Claude */
.claude-model-dropdown {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  width: 260px;
  background: #2e2a25;
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  padding: 6px;
  z-index: 100;
  animation: dropdown-in 0.15s ease;
}

.claude-model-dropdown.open {
  display: block;
}

@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.model-option {
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
}

.model-option:hover {
  background: rgba(255,255,255,0.06);
}

.model-option.selected {
  background: rgba(218,119,86,0.08);
}

.model-name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.model-check {
  color: var(--accent-coral);
  font-size: 14px;
}

.model-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.model-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 8px;
}

.model-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
}

.model-toggle-row:hover {
  background: rgba(255,255,255,0.06);
}

.toggle-switch {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  position: relative;
  transition: background 0.25s;
  flex-shrink: 0;
}

.toggle-switch.on {
  background: var(--accent-coral);
}

.toggle-knob {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.25s;
}

.toggle-switch.on .toggle-knob {
  transform: translateX(16px);
}

.model-more {
  color: var(--text-tertiary);
}

.model-more .model-name {
  font-size: 12.5px;
  color: var(--text-tertiary);
}

.claude-audio-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 16px;
  cursor: pointer;
}

.claude-send-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-coral);
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.claude-send-btn.visible {
  display: flex;
}

.claude-send-btn:hover {
  background: var(--accent-coral-hover);
}

.claude-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Quick pills below input */
.claude-pills {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0 40px 16px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.claude-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.claude-pill:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  border-color: var(--border-medium);
}

/* Lockout Warning */
.claude-lockout {
  position: absolute;
  bottom: 0;
  left: 40px;
  right: 0;
  background: rgba(30,26,22,0.97);
  backdrop-filter: blur(8px);
  padding: 24px;
  text-align: center;
  z-index: 10;
  display: none;
  border-top: 2px solid var(--accent-red);
}

.claude-lockout.visible {
  display: block;
  animation: lockout-in 0.4s ease;
}

@keyframes lockout-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.claude-lockout-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-red);
  margin-bottom: 12px;
}

.claude-lockout-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 460px;
  margin: 12px auto;
}

.claude-lockout-stat {
  background: rgba(0,0,0,0.3);
  padding: 10px;
  border-radius: 8px;
}

.claude-lockout-stat .val {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.claude-lockout-stat .lbl {
  font-size: 10px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ============================================
   PHASE 4 — Invoice Calculator
   ============================================ */
.invoice-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 28px;
}

.invoice-header {
  background: var(--bg-sidebar);
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.invoice-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.invoice-logo {
  font-size: 13px;
  color: var(--text-tertiary);
}

.invoice-form {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.invoice-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.invoice-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.invoice-field input,
.invoice-field select {
  background: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s;
}

.invoice-field input:focus,
.invoice-field select:focus {
  border-color: var(--accent-coral);
}

.invoice-generate-btn {
  background: var(--accent-coral);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.2s;
  align-self: flex-start;
}

.invoice-generate-btn:hover {
  background: var(--accent-coral-hover);
}

.invoice-result {
  display: none;
  padding: 24px 28px;
  border-top: 1px solid var(--border-subtle);
}

.invoice-result.visible {
  display: block;
  animation: msg-fade 0.4s ease;
}

.invoice-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}

.invoice-line:last-child {
  border-bottom: none;
}

.invoice-line .left {
  color: var(--text-secondary);
}

.invoice-line .right {
  font-family: var(--font-mono);
  font-weight: 600;
}

.invoice-line.total {
  border-top: 2px solid var(--accent-coral);
  padding-top: 12px;
  margin-top: 8px;
}

.invoice-line.total .left {
  color: var(--text-primary);
  font-weight: 700;
}

.invoice-line.total .right {
  color: var(--accent-coral);
  font-size: 18px;
}

.invoice-line.roast {
  background: rgba(218,119,86,0.08);
  padding: 10px;
  border-radius: 6px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--accent-coral);
  font-style: italic;
  text-align: center;
  display: block;
}

/* ============================================
   PHASE 4 — Personality Quiz
   ============================================ */
.quiz-container {
  margin-top: 28px;
}

.quiz-question {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 16px;
}

.quiz-q-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  color: var(--text-secondary);
}

.quiz-option:hover {
  border-color: var(--accent-coral);
  background: var(--bg-elevated);
}

.quiz-option.selected {
  border-color: var(--accent-coral);
  background: rgba(218,119,86,0.12);
  color: var(--accent-coral);
}

.quiz-option .radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.quiz-option.selected .radio {
  border-color: var(--accent-coral);
  background: var(--accent-coral);
}

.quiz-option.selected .radio::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
}

.quiz-result {
  display: none;
  background: linear-gradient(145deg, var(--bg-secondary), var(--bg-card));
  border: 2px solid var(--accent-coral);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
}

.quiz-result.visible {
  display: block;
  animation: msg-fade 0.5s ease;
}

.quiz-result-emoji {
  font-size: 60px;
  margin-bottom: 12px;
}

.quiz-result-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--accent-coral);
  margin-bottom: 8px;
}

.quiz-result-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 500px;
  margin: 0 auto 16px;
}

/* ============================================
   PHASE 4 — Time-on-Site Tracker
   ============================================ */
.time-tracker {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-sidebar);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  z-index: 997;
  box-shadow: var(--shadow-lg);
  font-size: 12px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.time-tracker:hover {
  transform: translateY(-2px);
}

.time-tracker .clock {
  font-size: 16px;
}

.time-tracker .cost {
  color: var(--accent-coral);
  font-weight: 600;
  font-family: var(--font-mono);
}

/* ============================================
   PHASE 4 — Certificate
   ============================================ */
.certificate {
  background: linear-gradient(145deg, #2b2520, #3d3630);
  border: 3px solid var(--accent-coral);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 28px;
}

.certificate::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid rgba(218,119,86,0.3);
  border-radius: 14px;
  pointer-events: none;
}

.cert-crown {
  font-size: 48px;
  margin-bottom: 8px;
}

.cert-title {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--accent-coral);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 4px;
}

.cert-subtitle {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.cert-name-input {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--accent-coral);
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 28px;
  text-align: center;
  outline: none;
  padding: 8px 20px;
  width: 80%;
  max-width: 400px;
}

.cert-name-input::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.cert-body {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 20px auto;
  max-width: 440px;
  line-height: 1.7;
}

.cert-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 20px 0;
}

.cert-stat {
  text-align: center;
}

.cert-stat .num {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-coral);
  font-family: var(--font-mono);
}

.cert-stat .desc {
  font-size: 11px;
  color: var(--text-tertiary);
}

.cert-seal {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
  font-style: italic;
}

.cert-generate-btn {
  background: var(--accent-coral);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font-sans);
  margin-top: 20px;
  transition: all 0.2s;
}

.cert-generate-btn:hover {
  background: var(--accent-coral-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Responsive overrides for Claude app */
@media (max-width: 768px) {
  .claude-app {
    height: 520px;
  }

  .claude-sidebar {
    width: 0;
    display: none;
  }

  .claude-lockout {
    left: 0;
  }

  .claude-messages {
    padding: 16px 16px;
  }

  .claude-input-wrapper {
    padding: 12px 16px 8px;
  }

  .claude-pills {
    padding: 0 16px 12px;
  }

  .claude-welcome-greeting {
    font-size: 22px;
  }

  .claude-lockout-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .time-tracker {
    bottom: 10px;
    right: 10px;
    font-size: 11px;
    padding: 8px 12px;
  }

  .certificate {
    padding: 24px 16px;
  }

  .cert-name-input {
    font-size: 20px;
    width: 90%;
  }

  .cert-stats {
    gap: 12px;
    flex-wrap: wrap;
  }

  .invoice-form {
    padding: 16px;
  }
}

/* ============================================
   AWARDS SECTION
   ============================================ */
.awards-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.award-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: transform 0.2s;
}

.award-item:hover {
  transform: translateX(4px);
}

.award-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.award-content .award-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.award-content .award-desc {
  font-size: 13px;
  color: var(--text-tertiary);
  font-style: italic;
}

/* ============================================
   KALUA REVIEW — Special Section
   ============================================ */
.kalua-review {
  background: linear-gradient(145deg, var(--bg-secondary), var(--bg-card));
  border: 2px solid var(--accent-coral);
  border-radius: var(--radius-md);
  padding: 36px;
  margin-top: 32px;
  position: relative;
  overflow: hidden;
}

.kalua-review::before {
  content: '🧑‍🌾';
  position: absolute;
  top: -20px;
  right: -10px;
  font-size: 100px;
  opacity: 0.08;
}

.kalua-review .reviewer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-coral);
  color: white;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
}

.kalua-review .review-text {
  font-size: 15px;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 16px;
}

.kalua-review .review-text em {
  color: var(--accent-coral);
  font-style: normal;
  font-weight: 600;
}

.kalua-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.kalua-rating .stars {
  color: var(--accent-yellow);
  font-size: 20px;
  letter-spacing: 2px;
}

.kalua-rating .rating-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.kalua-rating .rating-sub {
  font-size: 12px;
  color: var(--text-tertiary);
  display: block;
  margin-top: 4px;
}

/* ============================================
   SHARE BUTTONS
   ============================================ */
.share-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-medium);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
  text-decoration: none;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.share-btn.whatsapp {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.2);
}

.share-btn.twitter {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.share-btn.copy {
  color: var(--text-tertiary);
  border-color: var(--border-subtle);
}

.share-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  color: var(--text-primary);
  transform: none;
  box-shadow: none;
}

/* ============================================
   FOOTER — with disclaimer
   ============================================ */
.site-footer {
  background: var(--bg-deepest);
  border-top: 1px solid var(--border-subtle);
  padding: 40px 20px;
  text-align: center;
}

.footer-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.footer-disclaimer a {
  color: var(--text-tertiary);
}

.footer-kalua {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-tertiary);
}

.footer-kalua .heart {
  color: var(--accent-coral);
}

/* ============================================
   RESPONSIVE — Mobile First (95% of Indian users)
   ============================================ */
@media (max-width: 768px) {
  :root {
    --max-width: 100%;
  }

  .site-header {
    padding: 0 16px;
  }

  .header-nav {
    display: none;
  }

  .hero-greeting {
    font-size: 28px;
  }

  .hero-sub {
    font-size: 14px;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 24px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .timeline-row {
    grid-template-columns: 60px 1fr;
    gap: 8px;
    font-size: 12px;
  }

  .timeline-tokens,
  .timeline-credits {
    display: none;
  }


  .quotes-wall {
    grid-template-columns: 1fr;
  }

  .ceo-letter {
    padding: 24px;
  }

  .sim-credit-bar {
    width: 100px;
  }

  .claude-table {
    font-size: 12px;
  }

  .claude-table th,
  .claude-table td {
    padding: 8px 10px;
  }

  .usage-display {
    padding: 20px;
  }

  .kalua-review {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .hero-greeting {
    font-size: 24px;
  }

  .ceo-letter h3 {
    font-size: 18px;
  }

  .quick-pills {
    gap: 6px;
  }

  .pill {
    font-size: 11px;
    padding: 6px 10px;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.typing-dots::after {
  content: '...';
  animation: typing 1.5s steps(3) infinite;
}

@keyframes typing {
  0% { content: '.'; }
  33% { content: '..'; }
  66% { content: '...'; }
}

/* ============================================
   CLAUDE DICTIONARY — Flip Cards
   ============================================ */
.dictionary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
  perspective: 1000px;
}

.dict-card {
  position: relative;
  height: 140px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.dict-card.flipped {
  transform: rotateY(180deg);
}

.dict-front, .dict-back {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: var(--radius-md);
  backface-visibility: hidden;
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.dict-front {
  background: var(--bg-elevated);
}

.dict-back {
  background: var(--bg-sidebar);
  border-color: var(--accent-coral);
  transform: rotateY(180deg);
  box-shadow: 0 0 20px rgba(224, 108, 72, 0.08);
}

.dict-phrase {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.5;
}

.dict-phrase::before {
  content: '📖 ';
  font-style: normal;
}

.dict-meaning {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-coral);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .dictionary-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .dict-card {
    height: 120px;
  }
}

@media (max-width: 480px) {
  .dictionary-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .dict-card {
    height: 100px;
  }
}

/* ============================================
   BUY KALUA A CHAI — Donation Section
   ============================================ */
.chai-section {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.chai-comparison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.chai-item {
  flex: 1;
  text-align: center;
}

.chai-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.chai-label {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
  font-weight: 500;
}

.chai-cost {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.chai-cost span {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}

.chai-vs {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chai-tagline {
  font-size: 13px;
  color: var(--text-tertiary);
  font-style: italic;
  margin-bottom: 24px;
}

.chai-button-wrapper {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.chai-button-wrapper form {
  display: inline-block;
}

.chai-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 16px;
}

@media (max-width: 480px) {
  .chai-comparison {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  .chai-vs {
    display: none;
  }
  .chai-cost {
    font-size: 18px;
  }
}

/* ============================================
   FLOATING CHAI WIDGET
   ============================================ */

/* FAB Button */
.chai-fab {
  position: fixed;
  bottom: 60px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--bg-sidebar);
  color: var(--accent-coral);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-sans);
}

.chai-fab:hover {
  transform: scale(1.05);
  border-color: var(--accent-coral);
  box-shadow: 0 4px 24px rgba(224, 108, 72, 0.25);
}

.chai-fab.hidden {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.chai-fab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.claude-code-logo {
  animation: claude-breathe 3s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(224, 108, 72, 0.3));
}

@keyframes claude-breathe {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 4px rgba(224, 108, 72, 0.3));
  }
  50% {
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px rgba(224, 108, 72, 0.5));
  }
}

.chai-fab-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}

@keyframes chai-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); }
  50% { box-shadow: 0 4px 28px rgba(224, 108, 72, 0.2); }
}

/* Overlay */
.chai-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.chai-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Side Panel */
.chai-panel {
  position: fixed;
  top: 0;
  right: -380px;
  width: 360px;
  height: 100vh;
  background: var(--bg-primary);
  border-left: 1px solid var(--border-subtle);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.3);
}

.chai-panel.open {
  right: 0;
}

.chai-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-sidebar);
}

.chai-panel-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.chai-panel-close {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.chai-panel-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.chai-panel-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

.chai-panel-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.chai-panel-tiers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.chai-tier {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.chai-tier span {
  font-weight: 400;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-left: auto;
}

.chai-panel-btn {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.chai-panel-btn form {
  display: inline-block;
}

.chai-panel-footer {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 480px) {
  .chai-panel {
    width: 100%;
    right: -100%;
  }
  .chai-fab-label {
    display: none;
  }
  .chai-fab {
    padding: 10px;
    border-radius: 50%;
    bottom: 60px;
  }
}

