:root {
  --bg: #F6F4EE;
  --dot: #DDD9CE;
  --surface: #FFFFFF;
  --surface-alt: #FBF9F4;
  --ink: #111827;
  --text: #111827;
  --text-muted: #4B5563;
  --mint: #34D399;
  --mint-deep: #10B981;
  --mint-soft: #D1FAE5;
  --butter: #FDE68A;
  --sky: #BAE6FD;
  --coral: #FECDD3;
  --lavender: #DDD6FE;
  --peach: #FED7AA;
  --danger: #E11D48;
  --danger-soft: #FFE4E6;
  --border-w: 2px;
  --shadow-sm: 3px 3px 0px var(--ink);
  --shadow-md: 4px 4px 0px var(--ink);
  --shadow-lg: 6px 6px 0px var(--ink);
  --radius: 16px;
  --radius-sm: 11px;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

html.dark {
  --bg: #111318;
  --dot: #232833;
  --surface: #1A1E26;
  --surface-alt: #14171F;
  --ink: #E5E7EB;
  --text: #F3F4F6;
  --text-muted: #9CA3AF;
  --mint: #34D399;
  --mint-deep: #10B981;
  --mint-soft: #133A2E;
  --butter: #453B19;
  --sky: #17364A;
  --coral: #4B1D27;
  --lavender: #2E244D;
  --peach: #4A2B16;
  --danger-soft: #4B1D27;
  --shadow-sm: 3px 3px 0px #000000;
  --shadow-md: 4px 4px 0px #000000;
  --shadow-lg: 6px 6px 0px #000000;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

button, input, textarea, select { font-family: inherit; color: inherit; }
.hidden { display: none !important; }
.mono { font-family: var(--font-mono); }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
  border-bottom: var(--border-w) solid var(--ink);
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.brand-logo { width: 40px; height: 40px; transition: transform 0.14s ease; }
.brand-btn:hover .brand-logo { transform: translate(-1px, -1px) rotate(-2deg); }

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.brand-tag {
  display: inline-block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--mint-soft);
  border: 1.5px solid var(--ink);
  color: var(--text);
}

.search-trigger {
  display: none;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  max-width: 340px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: var(--border-w) solid var(--ink);
  box-shadow: var(--shadow-sm);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.search-trigger:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0px var(--ink); }
.search-trigger-left { display: flex; align-items: center; gap: 8px; }

.kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--butter);
  border: 1.5px solid var(--ink);
  color: var(--text);
}

.header-actions { display: flex; align-items: center; gap: 8px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  border: var(--border-w) solid var(--ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.12s ease;
}
.btn:hover:not(:disabled) { transform: translate(1.5px, 1.5px); box-shadow: 1.5px 1.5px 0px var(--ink); }
.btn:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 0px 0px 0px var(--ink); }
.btn:disabled { opacity: 0.48; cursor: not-allowed; box-shadow: none; }

.btn-primary { background: var(--mint); color: #111827; }
.btn-primary:hover:not(:disabled) { background: var(--mint-deep); }
.btn-butter { background: var(--butter); color: var(--text); }
.btn-surface { background: var(--surface); color: var(--text); }
.btn-subtle { background: var(--surface-alt); color: var(--text); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }

.icon-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: var(--border-w) solid var(--ink);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.icon-btn:hover { transform: translate(1.5px, 1.5px); box-shadow: 1.5px 1.5px 0px var(--ink); }
.icon-btn:active { transform: translate(3px, 3px); box-shadow: none; }

/* Main Container */
.container {
  flex: 1;
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 16px 48px;
}

.hero-wrap { margin-bottom: 22px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--butter);
  border: 1.5px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-highlight {
  background: var(--mint);
  color: #111827;
  padding: 0 8px;
  border-radius: 8px;
  border: 2px solid var(--ink);
  display: inline-block;
}

.hero-sub {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-top: 10px;
  max-width: 680px;
}

/* Universal Drop Zone */
.drop-zone {
  position: relative;
  border: 2.5px dashed var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  padding: 24px;
  margin-bottom: 30px;
  transition: transform 0.14s ease, background-color 0.14s ease;
  cursor: pointer;
}
.drop-zone:hover, .drop-zone.dragging { background: var(--mint-soft); transform: translate(-1px, -1px); }
.drop-zone.has-item { cursor: default; border-style: solid; background: var(--surface); transform: none; }

.drop-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.drop-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--mint);
  border: var(--border-w) solid var(--ink);
  box-shadow: var(--shadow-sm);
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.drop-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.drop-desc { font-size: 13px; color: var(--text-muted); margin-top: 3px; }

.local-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  background: var(--mint-soft);
  border: 1.5px solid var(--ink);
  color: var(--text);
  white-space: nowrap;
}

.drop-detected-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.drop-file-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.drop-file-name { font-family: var(--font-display); font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop-file-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); }
.drop-actions-label { font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 10px; }
.drop-actions-list { display: flex; flex-wrap: wrap; gap: 10px; }

/* Section Labels & Pinned */
.section-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.pinned-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 24px; }
.pinned-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: var(--border-w) solid var(--ink);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.pinned-chip:hover { transform: translate(1.5px, 1.5px); box-shadow: 1.5px 1.5px 0px var(--ink); background: var(--mint-soft); }

/* Category Bar */
.category-bar { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin-bottom: 20px; }
.cat-pill {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--surface);
  border: var(--border-w) solid var(--ink);
  box-shadow: 2px 2px 0px var(--ink);
  color: var(--text);
  cursor: pointer;
  transition: all 0.1s ease;
}
.cat-pill:hover { background: var(--mint-soft); }
.cat-pill.active { background: var(--ink); color: var(--bg); transform: translate(1px, 1px); box-shadow: 1px 1px 0px var(--ink); }

/* Organized Category Sections */
.cat-section { margin-bottom: 36px; }
.cat-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}
.cat-section-left { display: flex; align-items: center; gap: 10px; }
.cat-section-tag {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0px var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cat-section-title { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.cat-section-sub { font-size: 12.5px; color: var(--text-muted); }
.cat-count-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 8px;
  background: var(--surface);
  border: 1.5px solid var(--ink);
}

/* Bento Tool Grid */
.bento-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 15px; }

.tool-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: var(--border-w) solid var(--ink);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.tool-card:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0px var(--ink); }
.tool-card:active { transform: translate(4px, 4px); box-shadow: none; }

.tool-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.tool-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: var(--border-w) solid var(--ink);
  box-shadow: 2px 2px 0px var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.cat-images { background: var(--sky); }
.cat-pdf    { background: var(--coral); }
.cat-dev    { background: var(--lavender); }
.cat-files  { background: var(--butter); }
.cat-text   { background: var(--mint-soft); }
.cat-media  { background: var(--peach); }

.pin-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
}
.pin-btn:hover, .pin-btn.pinned { border-color: var(--ink); background: var(--butter); color: var(--text); }

.tool-card h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.tool-card p { font-size: 12.8px; color: var(--text-muted); line-height: 1.45; }

/* Workspace */
.workspace { max-width: 880px; margin: 0 auto; }
.workspace-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.workspace-title-group { display: flex; align-items: center; gap: 12px; }
.workspace-card {
  background: var(--surface);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 24px;
}
.workspace-support {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--butter);
  border: var(--border-w) solid var(--ink);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
}

/* Tool Controls */
.file-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 16px;
  border-radius: 14px;
  border: 2px dashed var(--ink);
  background: var(--surface-alt);
  cursor: pointer;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
}
.file-picker:hover { background: var(--mint-soft); }

.field-group { margin-bottom: 14px; }
.field-label { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; margin-bottom: 6px; color: var(--text-muted); }

.input, .textarea, .select {
  width: 100%;
  padding: 10px 13px;
  border-radius: 11px;
  background: var(--surface-alt);
  border: var(--border-w) solid var(--ink);
  font-size: 13.5px;
  outline: none;
}
.input:focus, .textarea:focus, .select:focus { background: var(--surface); box-shadow: 2px 2px 0px var(--mint); }

.control-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 14px 0; }
.panel { padding: 14px 16px; border-radius: 13px; background: var(--surface-alt); border: var(--border-w) solid var(--ink); }

.result-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 13px;
  background: var(--mint-soft);
  border: var(--border-w) solid var(--ink);
  box-shadow: var(--shadow-sm);
  margin: 14px 0;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 11px;
  background: var(--surface-alt);
  border: var(--border-w) solid var(--ink);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
}

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.stat-box { padding: 12px; border-radius: 12px; background: var(--surface-alt); border: var(--border-w) solid var(--ink); text-align: center; }
.stat-val { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.stat-lbl { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }

.preview-img { max-width: 100%; max-height: 320px; object-fit: contain; border-radius: 10px; border: 2px solid var(--ink); display: block; margin: 0 auto; }
.error-box { padding: 10px 14px; border-radius: 11px; background: var(--danger-soft); border: var(--border-w) solid var(--danger); color: var(--danger); font-size: 12.5px; font-weight: 600; margin: 10px 0; }

.tab-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.data-table th, .data-table td { border: 1.5px solid var(--ink); padding: 7px 10px; text-align: left; }
.data-table th { background: var(--butter); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; }

/* Modals */
.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(17, 24, 39, 0.62); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop.align-top { align-items: flex-start; padding-top: 9vh; }
.modal-card { width: 100%; max-width: 480px; background: var(--surface); border: 2.5px solid var(--ink); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; max-height: 88vh; display: flex; flex-direction: column; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--surface-alt); border-bottom: var(--border-w) solid var(--ink); }
.modal-title { font-family: var(--font-display); display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; }
.modal-body { padding: 20px 22px 24px; overflow-y: auto; font-size: 13.5px; color: var(--text-muted); }
.modal-body p { margin-bottom: 12px; }
.modal-body ul, .modal-body ol { padding-left: 20px; margin-bottom: 12px; }
.modal-body li { margin-bottom: 8px; }
.modal-body strong { color: var(--text); }

/* Branded UPI QR Card */
.qr-card-shell { margin-top: 16px; background: var(--bg); border: var(--border-w) solid var(--ink); box-shadow: var(--shadow-sm); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; align-items: center; }
.qr-card-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.qr-card-brand span { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text); }
.qr-white-box { background: #FFFFFF; padding: 16px; border-radius: 14px; border: 2px solid #111827; box-shadow: 4px 4px 0px #111827; display: flex; flex-direction: column; align-items: center; }
.qr-canvas-wrap { position: relative; width: 210px; height: 210px; display: flex; align-items: center; justify-content: center; }
.qr-canvas-wrap img, .qr-canvas-wrap canvas { width: 210px !important; height: 210px !important; }
.qr-center-badge { position: absolute; width: 44px; height: 44px; border-radius: 11px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; padding: 3px; }
.qr-upi-label { margin-top: 12px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; color: #111827; }
.qr-scan-hint { margin-top: 12px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; color: var(--text-muted); }

/* Search Modal */
.search-input-bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: var(--border-w) solid var(--ink); background: var(--surface-alt); }
.search-input-bar input { flex: 1; border: none; background: transparent; font-size: 15px; font-weight: 600; outline: none; }
.search-results { max-height: 360px; overflow-y: auto; padding: 8px; }
.search-item { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 12px; border: 1.5px solid transparent; background: transparent; text-align: left; cursor: pointer; }
.search-item:hover { background: var(--mint-soft); border-color: var(--ink); }

/* Footer */
.footer { border-top: var(--border-w) solid var(--ink); background: var(--surface); padding: 24px 16px; margin-top: auto; }
.footer-inner { max-width: 1160px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 14px; font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.footer-links button { background: none; border: none; font-size: 13px; font-weight: 700; color: var(--text); cursor: pointer; }
.footer-links button:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 640px) {
  .search-trigger { display: flex; }
  .mobile-search-btn { display: none; }
  .drop-empty { flex-direction: row; text-align: left; justify-content: space-between; }
  .drop-empty-left { display: flex; align-items: center; gap: 16px; }
  .bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-inner { flex-direction: row; }
}
@media (min-width: 960px) {
  .bento-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}



/* Highlighted "buy me a chai" pill */
.chai-highlight {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 7px;
  background: var(--butter);
  border: 1.5px solid var(--ink);
  color: #111827;
  font-weight: 800;
  box-shadow: 2px 2px 0px var(--ink);
  white-space: nowrap;
}
html.dark .chai-highlight {
  background: #FDE047;
  color: #111827;
  border-color: #111827;
}

/* Support Amount Picker */
.amount-box {
  margin-bottom: 14px;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--surface-alt);
  border: var(--border-w) solid var(--ink);
}

.amount-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.amt-pill {
  padding: 6px 11px;
  border-radius: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  background: var(--surface);
  border: 1.8px solid var(--ink);
  box-shadow: 2px 2px 0px var(--ink);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.12s ease;
}
.amt-pill:hover {
  background: var(--mint-soft);
}
.amt-pill.active {
  background: var(--mint);
  color: #111827;
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px var(--ink);
}

.amt-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.amt-currency {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--butter);
  border: var(--border-w) solid var(--ink);
  color: #111827;
}
.qr-amount-badge {
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--butter);
  border: 1.5px solid #111827;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #111827;
}

/* Custom Floating "Buy Me a Chai" Pop-Up Banner */
.chai-popup {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  width: min(360px, calc(100vw - 32px));
  background: var(--surface);
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 15px 16px;
  animation: chaiSlideUp 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes chaiSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chai-popup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.chai-popup-title {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.chai-popup-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--butter);
  border: 2px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.chai-popup-text {
  font-size: 12.8px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 12px;
}

.chai-popup-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dev-credit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 8px;
  background: var(--butter);
  border: 1.5px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #111827;
  margin-left: 6px;
}
html.dark .dev-credit {
  background: #FDE047;
  color: #111827;
  border-color: #111827;
}
