/* ==========================================================================
   PrepVault — components.css
   Reusable UI components: buttons, cards, forms, modals, toasts, and more
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition),
    transform var(--transition),
    opacity var(--transition),
    box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  line-height: 1.25;
  position: relative;
}

.btn:hover {
  text-decoration: none;
}

/* Primary */
.btn--primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(196, 113, 74, 0.35);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Secondary */
.btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Ghost */
.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
}

.btn--ghost:hover {
  color: var(--accent);
  background: var(--panel);
}

/* Danger */
.btn--danger {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}

.btn--danger:hover {
  background: #b83030;
  border-color: #b83030;
  transform: translateY(-1px);
}

.btn--danger:active {
  transform: translateY(0);
}

/* Success */
.btn--success {
  background: var(--success);
  color: white;
  border-color: var(--success);
}

.btn--success:hover {
  background: #3d8a52;
  border-color: #3d8a52;
  transform: translateY(-1px);
}

.btn--success:active {
  transform: translateY(0);
}

/* Size Variants */
.btn--lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn--sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
}

.btn--icon {
  padding: 0.625rem;
  aspect-ratio: 1;
  justify-content: center;
}

/* Disabled & Loading States */
.btn[disabled],
.btn--loading {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Spinner inside button */
.btn__spinner {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  flex-shrink: 0;
}


/* --------------------------------------------------------------------------
   2. CARDS
   -------------------------------------------------------------------------- */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.card--interactive {
  cursor: pointer;
}

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

.card--selected {
  border-color: var(--accent);
  background: var(--panel-2);
  box-shadow: 0 0 0 1px var(--accent);
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.25;
}

.card__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.card__body {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.card__footer {
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* --------------------------------------------------------------------------
   3. FILE CARDS (Drive Library)
   -------------------------------------------------------------------------- */
.file-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  cursor: pointer;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.file-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.file-card__checkbox {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
  z-index: 1;
}

/* Type Icon */
.file-card__type-icon {
  width: 40px;
  height: 40px;
  background: var(--panel-2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.file-card__type-icon--pdf {
  background: rgba(196, 113, 74, 0.12);
  color: var(--accent);
}

.file-card__type-icon--doc {
  background: rgba(91, 127, 166, 0.12);
  color: var(--blue);
}

.file-card__type-icon--image {
  background: rgba(92, 158, 107, 0.12);
  color: var(--success);
}

.file-card__type-icon--video {
  background: rgba(212, 137, 42, 0.12);
  color: var(--warning);
}

.file-card__type-icon--other {
  background: var(--panel-3);
  color: var(--text-muted);
}

/* File Info */
.file-card__info {
  flex: 1;
  min-width: 0;
}

.file-card__name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.3;
  margin-bottom: 0.25rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.file-card__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.file-card__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

/* Unavailable State */
.file-card__unavailable {
  opacity: 0.4;
  filter: grayscale(1);
  pointer-events: none;
}

.file-card__unavailable-label {
  display: inline-flex;
  align-items: center;
  background: var(--danger);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}


/* --------------------------------------------------------------------------
   4. VERSION BADGE
   -------------------------------------------------------------------------- */
.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(196, 113, 74, 0.12);
  color: var(--accent);
  border: 1px solid rgba(196, 113, 74, 0.30);
  border-radius: 3px;
  padding: 0.1rem 0.4rem;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 500;
  white-space: nowrap;
}


/* --------------------------------------------------------------------------
   5. CATEGORY BADGE / TAG
   -------------------------------------------------------------------------- */
.category-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.category-tag--active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}


/* --------------------------------------------------------------------------
   6. CATEGORY FILTER TABS
   -------------------------------------------------------------------------- */
.category-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  flex-shrink: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 500;
}

.category-tab:hover {
  border-color: var(--text-dim);
  color: var(--text);
}

.category-tab--active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  font-weight: 600;
}

.category-tab--active:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: white;
}

.category-tab__emoji {
  font-size: 1rem;
  line-height: 1;
}


/* --------------------------------------------------------------------------
   7. SEARCH BAR
   -------------------------------------------------------------------------- */
.search-wrap {
  position: relative;
  max-width: 600px;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 0.875rem 3rem 0.875rem 3rem;
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  line-height: 1.25;
}

.search-input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 113, 74, 0.15);
}

.search-input::placeholder {
  color: var(--text-dim);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-clear {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border-radius: var(--radius);
  transition: color var(--transition);
  line-height: 1;
}

.search-clear:hover {
  color: var(--text);
}

/* Hidden state — JS toggles this */
.search-clear[hidden],
.search-clear.hidden {
  display: none;
}


/* --------------------------------------------------------------------------
   8. MODAL
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(61, 46, 34, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay--open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.2s ease;
  position: relative;
}

.modal__header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.modal__title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text);
  margin: 0;
  line-height: 1.1;
}

.modal__close {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), border-color var(--transition);
  margin-left: auto;
  flex-shrink: 0;
  line-height: 1;
}

.modal__close:hover {
  color: var(--text);
  border-color: var(--accent);
}

.modal__body {
  padding: 1.5rem;
}

.modal__footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}


/* --------------------------------------------------------------------------
   9. FORMS
   -------------------------------------------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: var(--panel-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 113, 74, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-dim);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

/* Select with custom chevron */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A89585' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-select option {
  background: var(--panel-2);
  color: var(--text);
}

/* Error state */
.form-input--error,
.form-select--error,
.form-textarea--error {
  border-color: var(--danger);
}

.form-input--error:focus,
.form-select--error:focus,
.form-textarea--error:focus {
  box-shadow: 0 0 0 3px rgba(196, 82, 74, 0.15);
}

.form-error {
  font-size: 0.8rem;
  color: var(--danger);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Checkbox Row */
.form-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-checkbox-row input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.form-checkbox-row label {
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}


/* --------------------------------------------------------------------------
   10. PROGRESS BAR
   -------------------------------------------------------------------------- */
.progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.progress {
  height: 8px;
  background: var(--panel-2);
  border-radius: 100px;
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
  transition: width 0.5s ease;
  min-width: 0;
}

.progress--success .progress__bar {
  background: var(--success);
}

.progress--warning .progress__bar {
  background: var(--warning);
}

.progress--danger .progress__bar {
  background: var(--danger);
}


/* --------------------------------------------------------------------------
   11. TOAST NOTIFICATIONS
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 360px;
  width: calc(100vw - 3rem);
  pointer-events: none;
}

.toast {
  background: var(--panel-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.875rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  box-shadow: var(--shadow);
  animation: fadeIn 0.2s ease;
  pointer-events: auto;
  border-left: 3px solid var(--border);
}

.toast--success { border-left-color: var(--success); }
.toast--warning { border-left-color: var(--warning); }
.toast--error   { border-left-color: var(--danger); }
.toast--info    { border-left-color: var(--info); }

.toast__icon {
  font-size: 1.1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
  line-height: 1;
}

.toast__content {
  flex: 1;
  min-width: 0;
}

.toast__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
  line-height: 1.3;
}

.toast__message {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.4;
}

.toast__close {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
  transition: color var(--transition);
  margin-top: 0.05rem;
}

.toast__close:hover {
  color: var(--text);
}


/* --------------------------------------------------------------------------
   12. AD SLOTS
   -------------------------------------------------------------------------- */
.ad-slot {
  background: var(--panel);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  flex-direction: column;
  gap: 0.25rem;
}

.ad-slot--728x90 {
  width: 100%;
  max-width: 728px;
  height: 90px;
  margin: 1.5rem auto;
}

.ad-slot--300x250 {
  width: 300px;
  height: 250px;
}

.ad-slot--160x600 {
  width: 160px;
  height: 600px;
}

.ad-slot--320x100 {
  width: 100%;
  max-width: 320px;
  height: 100px;
}

.ad-slot__label {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ad-slot__size {
  font-size: 1rem;
  color: var(--border);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* Hide all ad slots in disaster mode */
body.disaster-mode .ad-slot {
  display: none !important;
}


/* --------------------------------------------------------------------------
   13. SIDEBAR LAYOUT
   -------------------------------------------------------------------------- */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .layout-with-sidebar {
    grid-template-columns: 1fr 300px;
  }
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}

/* On small screens, sidebar becomes a normal flow element */
@media (max-width: 1023px) {
  .sidebar {
    position: static;
  }
}


/* --------------------------------------------------------------------------
   14. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  padding: 3.5rem 0 2.5rem;
  background: linear-gradient(160deg, #FFF3E8 0%, var(--bg) 70%);
  border-bottom: 1px solid var(--border);
}

.hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 0.875rem;
  display: block;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.hero__title span {
  color: var(--accent);
}

.hero__subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 1.75rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}


/* --------------------------------------------------------------------------
   15. SECTION HEADERS
   -------------------------------------------------------------------------- */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}

.section-count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--panel-2);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  white-space: nowrap;
}


/* --------------------------------------------------------------------------
   16. LOADING STATE / SKELETON
   -------------------------------------------------------------------------- */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--panel)   25%,
    var(--panel-2) 50%,
    var(--panel)   75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

.skeleton--text {
  height: 1em;
  border-radius: 3px;
}

.skeleton--heading {
  height: 1.6rem;
  border-radius: 3px;
}

.skeleton--card {
  height: 180px;
  border-radius: var(--radius-lg);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: auto;
}

.loading-spinner--sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.loading-spinner--lg {
  width: 60px;
  height: 60px;
  border-width: 4px;
}


/* --------------------------------------------------------------------------
   17. EMPTY STATE
   -------------------------------------------------------------------------- */
.empty-state {
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-muted);
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
  display: block;
}

.empty-state__title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.empty-state__body {
  font-size: 0.95rem;
  max-width: 400px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}


/* --------------------------------------------------------------------------
   18. SELECTION TOOLBAR (Build My Binder)
   -------------------------------------------------------------------------- */
.selection-toolbar {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: var(--panel-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
  z-index: 50;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

.selection-toolbar--visible {
  opacity: 1;
  pointer-events: auto;
}

.selection-toolbar__divider {
  width: 1px;
  height: 24px;
  background: var(--border);
  flex-shrink: 0;
}

.selection-toolbar__count {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.selection-toolbar__count strong {
  color: var(--accent);
}


/* --------------------------------------------------------------------------
   19. STAT CARDS
   -------------------------------------------------------------------------- */
.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.stat-card__number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
  display: block;
}

.stat-card__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}


/* --------------------------------------------------------------------------
   20. MONETIZATION / PROMO PLACEHOLDERS
   -------------------------------------------------------------------------- */
.promo-card {
  background: linear-gradient(135deg, var(--panel-2), var(--panel-3));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.promo-card::before {
  content: "PLACEHOLDER";
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.65rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  pointer-events: none;
}

/* Decorative background accent */
.promo-card::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(196, 113, 74, 0.10), transparent 70%);
  pointer-events: none;
}

.promo-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.promo-card__badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.promo-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  margin-top: 0;
  color: var(--text);
  line-height: 1.1;
}

.promo-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}
