/* ==========================================================================
   CHEAT SHEETS (tldr) — Estilos (cheatsheets.css)
   Extensão do design system de guineves.com.br & Canivete Suíço
   ========================================================================== */

/* Header */
.cs-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: hsl(225 30% 6% / 0.82);
  border-bottom: 1px solid var(--border);
  width: 100%;
  box-sizing: border-box;
}
[data-theme="light"] .cs-header {
  background: hsl(220 20% 97% / 0.88);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.back-home {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: var(--bg2);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}
.back-home:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  transform: translateX(-2px);
}

.offline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--green);
  background: hsl(150 80% 55% / 0.1);
  border: 1px solid hsl(150 80% 55% / 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  user-select: none;
}
[data-theme="light"] .offline-badge {
  background: hsl(155 85% 32% / 0.12);
  border-color: hsl(155 85% 32% / 0.3);
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-glow 2s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.coffee-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: hsl(38 95% 65%);
  background: hsl(38 95% 55% / 0.12);
  border: 1px solid hsl(38 95% 55% / 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.18s ease;
}
.coffee-badge:hover {
  background: hsl(38 95% 55% / 0.22);
  border-color: hsl(38 95% 60% / 0.55);
  transform: translateY(-1px);
}
[data-theme="light"] .coffee-badge {
  color: hsl(30 90% 34%);
  background: hsl(38 95% 50% / 0.14);
  border-color: hsl(34 85% 42% / 0.35);
}

.mobile-nav-toggle {
  display: none;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.85rem;
  cursor: pointer;
}

.sidebar-toggle-btn {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 0.32rem 0.65rem;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.18s ease;
}
.sidebar-toggle-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* App Shell Layout */
.app-container {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: calc(100vh - 61px);
  position: relative;
  z-index: 1;
  transition: grid-template-columns 0.25s ease;
}
.app-container.sidebar-collapsed {
  grid-template-columns: 0px minmax(0, 1fr);
}
.app-container.sidebar-collapsed .cs-sidebar {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  padding: 1.25rem 0 2rem 0;
  border-right-color: transparent;
  width: 0;
  min-width: 0;
  overflow: hidden;
}

/* Sidebar */
.cs-sidebar {
  position: sticky;
  top: 61px;
  height: calc(100vh - 61px);
  overflow-y: auto;
  padding: 1.25rem 1rem 2rem 1.25rem;
  border-right: 1px solid var(--border);
  background: hsl(225 30% 7% / 0.6);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  transition: width 0.25s ease, padding 0.25s ease, opacity 0.2s ease, border-color 0.2s ease;
}
[data-theme="light"] .cs-sidebar {
  background: var(--bg);
}

.sidebar-search-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.sidebar-search {
  position: relative;
  flex: 1;
}
.sidebar-search input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 0.55rem 2.1rem 0.55rem 0.8rem;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sidebar-search input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px hsl(190 95% 60% / 0.12);
}
.kbd-hint {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  pointer-events: none;
}

.sidebar-collapse-icon-btn {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 1rem;
  line-height: 1;
  width: 34px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.sidebar-collapse-icon-btn:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.cat-pill {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cat-pill:hover {
  color: var(--fg);
  border-color: var(--muted);
}
.cat-pill.active {
  background: hsl(190 95% 60% / 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
  font-weight: 600;
}

.sidebar-groups {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.category-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.category-group.hidden {
  display: none;
}
.category-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0 0.5rem 0.35rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.category-count {
  font-size: 0.68rem;
  opacity: 0.7;
}

.cs-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.46rem 0.75rem;
  border-radius: 8px;
  font-size: 0.84rem;
  color: var(--fg);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  width: 100%;
}
.cs-nav-item:hover {
  background: var(--bg2);
  border-color: var(--border);
  color: var(--cyan);
  transform: translateX(2px);
}
.cs-nav-item.active {
  background: hsl(150 80% 55% / 0.12);
  border-color: hsl(150 80% 55% / 0.3);
  color: var(--green);
  font-weight: 600;
}
[data-theme="light"] .cs-nav-item.active {
  background: hsl(155 85% 32% / 0.14);
  border-color: hsl(155 85% 32% / 0.35);
}
.cs-nav-item.hidden {
  display: none;
}
.cs-nav-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cs-pin-mini {
  font-size: 0.75rem;
  opacity: 0.45;
  cursor: pointer;
  padding: 0.1rem 0.2rem;
  border-radius: 4px;
}
.cs-pin-mini:hover,
.cs-pin-mini.pinned {
  opacity: 1;
}
.pin-empty-hint {
  font-size: 0.76rem;
  color: var(--muted);
  padding: 0.3rem 0.5rem;
  line-height: 1.4;
}

/* Main Board Stage */
.board-stage {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  overflow-x: hidden;
}

.board-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.board-intro h1 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin: 0 0 0.35rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.tldr-tag {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--cyan);
  background: hsl(190 95% 60% / 0.12);
  border: 1px solid hsl(190 95% 60% / 0.3);
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
}
.board-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.board-stats {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

/* Post-its Grid */
.postits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.postit-card {
  --note-accent: hsl(45 95% 58%);
  --note-bg: hsl(45 45% 12% / 0.62);
  --note-border: hsl(45 85% 55% / 0.28);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.2rem 1.15rem 1rem;
  border-radius: 12px 12px 16px 12px;
  background: var(--note-bg);
  border: 1px solid var(--note-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.26);
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}
.postit-card:nth-child(3n+1) { transform: rotate(-0.45deg); }
.postit-card:nth-child(3n+2) { transform: rotate(0.4deg); }
.postit-card:nth-child(3n)   { transform: rotate(-0.2deg); }

.postit-card:hover {
  transform: translateY(-4px) rotate(0deg);
  border-color: var(--note-accent);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.36);
}
.postit-card.is-highlighted {
  border-color: var(--note-accent);
  box-shadow: 0 0 0 2px var(--note-accent), 0 16px 36px rgba(0, 0, 0, 0.42);
}

/* Top tape / sticky bar */
.postit-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 5px;
  border-radius: 0 0 4px 4px;
  background: var(--note-accent);
  opacity: 0.85;
}

/* Category Color Themes — Dark Mode */
.postit-card[data-cat="linux"] {
  --note-accent: hsl(42 95% 58%);
  --note-bg: hsl(42 40% 11% / 0.72);
  --note-border: hsl(42 80% 55% / 0.28);
}
.postit-card[data-cat="net"] {
  --note-accent: hsl(192 95% 58%);
  --note-bg: hsl(195 45% 11% / 0.72);
  --note-border: hsl(192 85% 55% / 0.28);
}
.postit-card[data-cat="devops"] {
  --note-accent: hsl(152 80% 54%);
  --note-bg: hsl(155 38% 10% / 0.72);
  --note-border: hsl(152 75% 50% / 0.28);
}
.postit-card[data-cat="data"] {
  --note-accent: hsl(280 85% 70%);
  --note-bg: hsl(275 35% 12% / 0.72);
  --note-border: hsl(280 75% 65% / 0.28);
}

/* Category Color Themes — Light Mode (Soft Pastel Sticky Notes) */
[data-theme="light"] .postit-card {
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .postit-card:hover {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}
[data-theme="light"] .postit-card[data-cat="linux"] {
  --note-accent: hsl(38 92% 45%);
  --note-bg: hsl(48 95% 91%);
  --note-border: hsl(42 75% 74%);
}
[data-theme="light"] .postit-card[data-cat="net"] {
  --note-accent: hsl(198 90% 38%);
  --note-bg: hsl(195 85% 93%);
  --note-border: hsl(195 65% 76%);
}
[data-theme="light"] .postit-card[data-cat="devops"] {
  --note-accent: hsl(154 75% 32%);
  --note-bg: hsl(145 70% 92%);
  --note-border: hsl(148 52% 74%);
}
[data-theme="light"] .postit-card[data-cat="data"] {
  --note-accent: hsl(272 68% 48%);
  --note-bg: hsl(275 75% 94%);
  --note-border: hsl(275 55% 80%);
}

.postit-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.postit-cat-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--note-accent);
}
.postit-pin-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0.2rem 0.3rem;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.15s ease;
}
.postit-pin-btn:hover,
.postit-pin-btn.pinned {
  opacity: 1;
  background: hsl(0 0% 50% / 0.12);
}

.postit-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
}
.postit-desc {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.postit-preview {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.15rem;
  flex: 1;
}
.postit-preview-item {
  background: hsl(225 30% 6% / 0.55);
  border: 1px solid hsl(220 20% 50% / 0.18);
  border-radius: 7px;
  padding: 0.42rem 0.6rem;
}
[data-theme="light"] .postit-preview-item {
  background: hsl(0 0% 100% / 0.72);
  border-color: hsl(220 20% 50% / 0.18);
}
.postit-preview-desc {
  font-size: 0.73rem;
  color: var(--muted);
  margin-bottom: 0.18rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.postit-preview-cmd {
  display: block;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.postit-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.45rem;
  border-top: 1px dashed hsl(220 20% 50% / 0.25);
  font-family: var(--mono);
  font-size: 0.73rem;
  color: var(--muted);
}
.postit-open-hint {
  color: var(--note-accent);
  font-weight: 600;
}

.board-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.9rem;
  border: 1px dashed var(--border);
  border-radius: 12px;
}

/* ==========================================================================
   SPOTLIGHT MODAL (Post-it Ampliado)
   ========================================================================== */
.spotlight-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(5, 8, 18, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.16s ease-out;
}
.spotlight-backdrop[hidden] {
  display: none;
}
[data-theme="light"] .spotlight-backdrop {
  background: rgba(15, 23, 42, 0.52);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.spotlight-card {
  --note-accent: var(--cyan);
  width: 100%;
  max-width: 780px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg);
  border: 2px solid var(--note-accent);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.58);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.spotlight-card[data-cat="linux"]  { --note-accent: hsl(42 95% 58%); }
.spotlight-card[data-cat="net"]    { --note-accent: hsl(192 95% 58%); }
.spotlight-card[data-cat="devops"] { --note-accent: hsl(152 80% 54%); }
.spotlight-card[data-cat="data"]   { --note-accent: hsl(280 85% 70%); }

[data-theme="light"] .spotlight-card[data-cat="linux"]  { --note-accent: hsl(38 92% 42%); }
[data-theme="light"] .spotlight-card[data-cat="net"]    { --note-accent: hsl(198 90% 38%); }
[data-theme="light"] .spotlight-card[data-cat="devops"] { --note-accent: hsl(154 75% 32%); }
[data-theme="light"] .spotlight-card[data-cat="data"]   { --note-accent: hsl(272 68% 48%); }

.spotlight-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.spotlight-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.spotlight-cat-badge {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--note-accent);
  background: hsl(0 0% 50% / 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}
.spotlight-count {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--muted);
}

.spotlight-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.spotlight-action-btn,
.spotlight-close-btn {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.spotlight-action-btn:hover,
.spotlight-close-btn:hover {
  border-color: var(--note-accent);
  color: var(--note-accent);
}
.spotlight-action-btn.pinned {
  border-color: var(--amber);
  color: var(--amber);
}

.spotlight-header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  color: var(--fg);
}
.spotlight-header p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

.spotlight-entries {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tldr-entry {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.tldr-desc {
  font-size: 0.86rem;
  color: var(--fg);
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}
.tldr-bullet {
  color: var(--note-accent);
  font-weight: 700;
}
.tldr-cmd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  background: hsl(225 30% 6% / 0.75);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.55rem 0.5rem 0.8rem;
}
[data-theme="light"] .tldr-cmd-row {
  background: #ffffff;
}
.tldr-cmd {
  font-family: var(--mono);
  font-size: 0.83rem;
  color: var(--green);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  flex: 1;
}
[data-theme="light"] .tldr-cmd {
  color: hsl(220 35% 18%);
}
.tldr-placeholder {
  color: var(--amber);
  font-weight: 600;
}
[data-theme="light"] .tldr-placeholder {
  color: hsl(26 88% 40%);
}
.tldr-copy-btn {
  flex-shrink: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.tldr-copy-btn:hover {
  border-color: var(--note-accent);
  color: var(--note-accent);
}
.tldr-copy-btn.copied {
  border-color: var(--green);
  color: var(--green);
}

/* ==========================================================================
   PIX COFFEE MODAL & TOAST
   ========================================================================== */
.pix-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(5, 8, 18, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.pix-modal-backdrop[hidden] {
  display: none;
}
.pix-modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.pix-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--muted);
  font-size: 0.95rem;
  cursor: pointer;
}
.pix-modal-header { text-align: center; }
.pix-modal-icon { display: inline-block; font-size: 2rem; margin-bottom: 0.4rem; }
.pix-modal-header h2 { font-size: 1.2rem; margin: 0 0 0.45rem; color: var(--fg); }
.pix-modal-subtitle { font-size: 0.84rem; line-height: 1.45; color: var(--muted); margin: 0; }
.pix-qr-box {
  display: flex;
  justify-content: center;
  padding: 0.75rem;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border);
  width: fit-content;
  margin: 0 auto;
}
.pix-qr-img { display: block; width: 188px; height: 188px; }
.pix-copy-group { display: flex; flex-direction: column; gap: 0.35rem; }
.pix-copy-label {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
}
.pix-copy-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.45rem 0.5rem 0.45rem 0.75rem;
}
.pix-copy-value {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--fg);
  overflow-wrap: anywhere;
}
.pix-copy-value-truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pix-copy-btn {
  flex-shrink: 0;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-family: var(--mono);
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
}
.pix-copy-btn-primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #061018;
  font-weight: 700;
}

.toast-notice {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  background: var(--bg2);
  border: 1px solid var(--green);
  color: var(--green);
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 0.85rem;
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 960px) {
  .sidebar-toggle-btn,
  .sidebar-collapse-icon-btn {
    display: none;
  }
  .app-container,
  .app-container.sidebar-collapsed {
    grid-template-columns: 1fr;
  }
  .cs-sidebar,
  [data-theme="light"] .cs-sidebar {
    position: fixed;
    top: 61px;
    left: 0;
    bottom: 0;
    width: 290px;
    max-width: 85vw;
    z-index: 40;
    background: var(--bg) !important;
    transform: translateX(-100%);
    transition: transform 0.25s ease-in-out;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  }
  .cs-sidebar.open {
    transform: translateX(0);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5), 0 0 0 100vmax rgba(0, 0, 0, 0.45);
  }
  [data-theme="light"] .cs-sidebar.open {
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15), 0 0 0 100vmax rgba(0, 0, 0, 0.3);
  }
  .mobile-nav-toggle {
    display: inline-block;
  }
}
@media (max-width: 600px) {
  .spotlight-card {
    padding: 1.1rem;
  }
  .tldr-cmd-row {
    flex-direction: column;
    align-items: stretch;
  }
  .tldr-copy-btn {
    align-self: flex-end;
  }
}
