/* Widget Styles - Extracted from inline-styles.css */
/* Contains: roulette, donations, goals, auction, widget-specific styles */

/* ===== Admin fundraising (admin/fundraising.ejs) ===== */
.fa-help-top {
  margin-bottom: 8px;
  color: #8086a3;
  font-size: 12px;
}

.fa-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.fa-select-wrap {
  display: flex;
  gap: 8px;
  align-items: end;
  flex: 1;
  min-width: 320px;
}

.fa-select-label {
  flex: 1;
}

.fa-select-actions {
  display: flex;
  gap: 8px;
}

.fa-obs-col {
  flex: 1;
  min-width: 280px;
}

.fa-obs-help {
  margin-bottom: 4px;
  color: #8086a3;
  font-size: 12px;
}

.fa-url-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.fa-url-hidden {
  display: none;
}

.fa-obs-params {
  display: none;
  margin-top: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.fa-obs-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.fa-obs-toggle-input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.fa-preview-wrap {
  margin-bottom: 10px;
}

.fa-card-mb {
  margin: 8px 0;
}

.fa-card-title {
  margin: 0 0 8px 0;
}

.fa-prev-root {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
}

.fa-prev-title {
  font-weight: 800;
  margin-bottom: 6px;
  text-align: center;
  color: #ffb36a;
}

.fa-prev-bar {
  position: relative;
  height: 22px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

.fa-prev-fill {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 50%;
  background: #6d5efc;
  border-radius: inherit;
}

.fa-prev-inside-title {
  display: none;
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 2px;
  transform: translateX(-50%);
  font-size: 12px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.fa-prev-inside-amount {
  display: none;
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.fa-prev-inside-time {
  display: none;
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  font-size: 12px;
  color: #cfd3ff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.fa-prev-bounds {
  display: none;
  position: relative;
  margin-top: 4px;
  font-size: 11px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.fa-prev-bmin {
  position: absolute;
  left: 6px;
}

.fa-prev-bmax {
  position: absolute;
  right: 6px;
}

.fa-prev-amount {
  margin-top: 6px;
  color: #cfd3ff;
  font-weight: 700;
  text-align: center;
}

.fa-prev-time {
  margin-top: 6px;
  color: #9aa6b2;
  font-size: 12px;
  text-align: center;
}


/* Donation public page: funding goals widget */
.donation-goal-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
}

.donation-goal-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.donation-goal-progress {
  position: relative;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 6px;
}

.donation-goal-progress-fill {
  height: 100%;
  width: var(--goal-progress, 0%);
  background: linear-gradient(90deg, #6d5efc, #8b7aff);
  transition: width 0.3s ease;
}

.donation-goal-progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  z-index: 1;
}

.donation-goal-amounts {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted, #8086a3);
}

/* Donation summary text color */

/* Donation summary text color */
#summaryTotal {
  color: #fff;
}

/* Page background via CSS variable (set from layout-utils.js) */
body[data-page-bg] {
  background-image: var(--page-bg-image);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Goal widget time label inside bar (bottom center) */

/* Page background via CSS variable (set from layout-utils.js) */
body[data-page-bg] {
  background-image: var(--page-bg-image);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Goal widget time label inside bar (bottom center) */
.goal-label-bottom {
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  font-size: 12px;
  color: #cfd3ff;
}

/* Auction user page */

/* Auction user page */
.auction-card {
  margin: 8px 0;
}

.auction-title {
  margin: 0 0 12px 0;
}

.auction-tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  padding: 0 0 6px 0;
  margin-bottom: 12px;
}

.auction-pane.is-hidden {
  display: none;
}

.auction-lots-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.modal-content-wide {
  max-width: 600px;
}

.auction-toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auction-toggle-row-clickable {
  cursor: pointer;
}

.auction-toggle-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.auction-toggle-label {
  font-weight: 500;
  color: #e5e7eb;
}

.auction-twitch-section {
  margin-top: 32px;
  padding: 20px;
  background: #1f2937;
  border-radius: 8px;
  border: 1px solid #374151;
}

.auction-twitch-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.auction-twitch-icon {
  font-size: 20px;
}

.auction-twitch-title {
  margin: 0;
  font-weight: 600;
  font-size: 16px;
  color: #f3f4f6;
}

.auction-twitch-toggle-block {
  margin-bottom: 20px;
}

.auction-twitch-hint {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
  margin-left: 26px;
}

.auction-twitch-rewards {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #374151;
}

.auction-twitch-rewards-title {
  font-size: 14px;
  font-weight: 600;
  color: #d1d5db;
  margin-bottom: 16px;
}

.auction-twitch-rewards-grid {
  display: grid;
  gap: 16px;
}

.auction-twitch-reward-card {
  padding: 16px;
  background: #111827;
  border-radius: 6px;
  border: 1px solid #374151;
}

.auction-twitch-reward-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 8px;
}

.auction-twitch-input {
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 8px;
  border: 1px solid #4b5563;
  border-radius: 4px;
  background: #0f172a;
  color: #f3f4f6;
  font-size: 14px;
}

.auction-twitch-info {
  margin-top: 16px;
  padding: 12px;
  background: #1e3a5f;
  border-radius: 6px;
  border-left: 3px solid #3b82f6;
}

.auction-twitch-info-text {
  font-size: 12px;
  color: #93c5fd;
}

.auction-settings-actions {
  margin-top: 16px;
}

.help-muted {
  color: #8086a3;
  font-size: 12px;
  margin-bottom: 12px;
}

.auction-widget-row {
  display: flex;
  gap: 8px;
}

.auction-widget-input {
  flex: 1;
}

.auction-widget-instructions {
  margin-top: 12px;
  padding: 12px;
  background: #1f2937;
  border-radius: 6px;
  font-size: 13px;
}

.auction-widget-instructions-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.auction-widget-instructions-list {
  margin-left: 20px;
}

.auction-lot-card {
  margin-bottom: 12px;
  padding: 12px;
}

.auction-lot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auction-lot-info {
  flex: 1;
}

.auction-lot-title {
  margin: 0 0 4px 0;
}

.auction-lot-meta {
  font-size: 12px;
  color: #9ca3af;
}

.auction-lot-status {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
}

.auction-lot-actions {
  display: flex;
  gap: 8px;
}

.auction-lot-delete-btn {
  background: #ef4444;
}

/* Donation public: payment method modals (SBP, card) */

/* ===========================================
   Roulette Widget Styles (widget/roulette.ejs)
   =========================================== */

/* Card and container modifiers */
.rw-card-no-overflow {
  overflow-x: hidden;
}

/* Section titles */
.rw-section-title {
  margin: 0 0 16px 0;
  font-weight: 700;
  color: var(--text);
}

.rw-section-title-blue {
  margin: 0 0 16px 0;
  font-weight: 600;
  color: var(--neon-blue);
}

.rw-section-subtitle {
  margin: 0 0 16px 0;
  font-weight: 600;
}

/* Position utilities for roulette */
.rw-frame-relative {
  position: relative;
}

.rw-bg-absolute {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
}

.rw-pointer-z2 {
  position: relative;
  z-index: 2;
}

.rw-track-z1 {
  position: relative;
  z-index: 1;
}

/* Actions row */
.rw-actions-row {
  margin-top: 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.rw-actions-flex {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.rw-actions-mt10 {
  margin-top: 10px;
}

/* Button sizes */
.rw-btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.rw-btn-xs {
  padding: 6px 12px;
  font-size: 0.875rem;
}

/* Text utilities */
.rw-text-muted {
  margin-bottom: 12px;
}

.rw-help-text {
  color: #8086a3;
  font-size: 12px;
}

.rw-help-mt6 {
  color: #8086a3;
  font-size: 12px;
  margin-top: 6px;
}

/* OBS link grid */
.rw-obs-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
}

.rw-obs-input {
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid var(--border);
  font-family: monospace;
  font-size: 13px;
}

.rw-obs-btn {
  padding: 8px 14px;
  font-size: 0.875rem;
  text-decoration: none;
}

/* Roulette content area */
.rw-content-mt {
  margin-top: 12px;
}

/* Summary row */
.rw-summary-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 8px 0;
}

.rw-summary-total {
  font-weight: 700;
}

.rw-summary-warning {
  color: #ffadad;
}

.rw-flex-spacer {
  flex: 1;
}

/* Categories header grid */
.rw-cat-head {
  display: grid;
  grid-template-columns: 28px 1fr 220px 160px 120px 90px 36px 36px;
  gap: 8px;
  font-size: 12px;
  color: #9aa6b2;
  padding: 2px 0;
}

/* Uploader filename */
.rw-uploader-filename {
  color: #5fb3f6;
  margin-top: 8px;
  font-size: 13px;
}

/* Upload status */
.rw-upload-status {
  margin-top: 8px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(109, 94, 252, 0.15);
  color: #6d5efc;
  font-size: 12px;
}

/* Checkbox toggle row */
.rw-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.rw-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Grid utilities */
.rw-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

/* Slider value display */
.rw-slider-val {
  width: 48px;
  text-align: right;
  color: #9aa6b2;
}

.rw-slider-val-sm {
  width: 42px;
  text-align: right;
  color: #9aa6b2;
}

/* Flex row with gap */
.rw-flex-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rw-flex-row-gap10 {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Divider line */
.rw-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}

/* Section label */
.rw-section-label {
  font-weight: 700;
  margin-bottom: 6px;
}

.rw-section-label-mt {
  font-weight: 700;
  margin: 10px 0 6px 0;
}

.rw-event-label {
  font-weight: 700;
  margin: 8px 0 6px 0;
}

.rw-event-label-mt {
  font-weight: 700;
  margin: 12px 0 6px 0;
}

/* File line (for sounds) */
.rw-file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #cfd3ff;
}

.rw-file-line-mt {
  margin-top: 6px;
}

/* Widget split grid */
.rw-widget-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

/* Grid 2x margin top */
.rw-grid-mt10 {
  margin-top: 10px;
}

/* URL row margin */
.rw-url-row-mt {
  margin-top: 6px;
}

/* Help with top margin */
.rw-help-mt10 {
  margin-top: 10px;
  color: #8086a3;
  font-size: 12px;
}

.rw-help-mb8 {
  color: #8086a3;
  font-size: 12px;
  margin-bottom: 8px;
}

/* Form stack (vertical flex) */
.rw-form-stack {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Two-column grid with gap */
.rw-grid-2col-gap8 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Checkbox options row */
.rw-options-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.rw-checkbox-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.rw-checkbox-flex {
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Guide list */
.rw-guide-list {
  margin: 0;
  padding-left: 18px;
}

/* Version tag in title */
.rw-version-tag {
  color: #4D9FFF;
  font-weight: 600;
}

/* Roulette JS-generated elements */
.rw-loading-text {
  grid-column: 1 / -1;
  color: #9aa6b2;
}

.rw-loading-inline {
  color: #9aa6b2;
  padding: 6px 0;
}

.rw-error-inline {
  color: #ffadad;
  padding: 6px 0;
}

.rw-loading-grid {
  grid-column: 1 / -1;
  color: #9aa6b2;
}

.rc-list-loading {
  color: #9aa6b2;
  padding: 6px 0;
}

.rc-list-error {
  color: #ffadad;
  padding: 6px 0;
}

.rc-row-margin {
  margin: 6px 0;
}

.rc-index-cell-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa6b2;
}

.rc-btn-delete-grid {
  grid-column: 1 / -1;
  justify-self: end;
}

.rc-select-text {
  color: var(--text);
}

.rc-option-text {
  color: var(--text);
}

.rs-file-name-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #cfd3ff;
}

.rc-input {
  padding: 8px 12px;
  font-size: 0.875rem;
}

.rc-textarea {
  padding: 8px 12px;
  font-size: 0.875rem;
  resize: vertical;
  min-height: 38px;
  line-height: 1.4;
}

.rc-index-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa6b2;
}

.rc-btn-arrow {
  padding: 6px 10px;
  font-size: 0.875rem;
}

.rc-btn-delete {
  grid-column: 1 / -1;
  justify-self: end;
  padding: 6px 16px;
  font-size: 0.875rem;
}

/* Roulette style dialog */

/* Roulette JS-generated elements */
.rw-loading-text {
  grid-column: 1 / -1;
  color: #9aa6b2;
}

.rw-loading-inline {
  color: #9aa6b2;
  padding: 6px 0;
}

.rw-error-inline {
  color: #ffadad;
  padding: 6px 0;
}

.rw-loading-grid {
  grid-column: 1 / -1;
  color: #9aa6b2;
}

.rc-list-loading {
  color: #9aa6b2;
  padding: 6px 0;
}

.rc-list-error {
  color: #ffadad;
  padding: 6px 0;
}

.rc-row-margin {
  margin: 6px 0;
}

.rc-index-cell-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa6b2;
}

.rc-btn-delete-grid {
  grid-column: 1 / -1;
  justify-self: end;
}

.rc-select-text {
  color: var(--text);
}

.rc-option-text {
  color: var(--text);
}

.rs-file-name-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #cfd3ff;
}

.rc-input {
  padding: 8px 12px;
  font-size: 0.875rem;
}

.rc-textarea {
  padding: 8px 12px;
  font-size: 0.875rem;
  resize: vertical;
  min-height: 38px;
  line-height: 1.4;
}

.rc-index-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa6b2;
}

.rc-btn-arrow {
  padding: 6px 10px;
  font-size: 0.875rem;
}

.rc-btn-delete {
  grid-column: 1 / -1;
  justify-self: end;
  padding: 6px 16px;
  font-size: 0.875rem;
}

/* Roulette style dialog */

/* Card margins */
.ms-card {
  margin-bottom: 24px;
}

/* Header row */
.ms-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.ms-title {
  margin: 0 0 8px 0;
  font-weight: 600;
}

.ms-subtitle {
  opacity: 0.7;
  margin: 0;
  font-size: 0.9rem;
}

.ms-stat-value {
  font-weight: 600;
  color: var(--amber-light);
}

/* Actions */
.ms-actions {
  display: flex;
  gap: 12px;
}

.ms-form-inline {
  margin: 0;
}

.ms-btn {
  padding: 10px 20px;
}

/* Filter form */
.ms-filter-form {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.ms-search-input {
  flex: 1;
  min-width: 250px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
}

.ms-select {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
}

/* ===========================================
   Dashboard Styles (dashboard-fyra.ejs)
   =========================================== */

/* Grid layout */
.db-grid {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .db-grid {
    grid-template-columns: 1fr;
  }
}

/* Filter row */
.db-filter-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.db-filter-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.db-filter-text {
  font-weight: 500;
}

.db-filter-input {
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.db-filter-select {
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
}

.db-filter-btn {
  padding: 8px 16px;
}

/* Chart title */
.db-chart-title {
  margin-bottom: 16px;
  font-weight: 600;
}

.db-chart-canvas {
  width: 100%;
  background: var(--card);
}

/* Events section */
.db-events-header {
  margin-bottom: 16px;
}

.db-events-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.db-events-title {
  margin: 0;
  font-weight: 600;
  flex-shrink: 0;
}

/* ===========================================
   Donation Settings Styles (donation-fyra.ejs)
   =========================================== */

/* Tab card */
.dn-tab-card {
  padding: 20px;
  margin-bottom: 24px;
}

.dn-tab-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dn-tab-btn {
  padding: 10px 20px;
}

/* Section title */
.dn-section-title {
  margin: 0 0 24px 0;
  font-weight: 600;
}

/* Form groups */
.dn-form-group {
  margin-bottom: 24px;
}

.dn-form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

/* URL input row */
.dn-url-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dn-url-input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elev);
  color: var(--text);
}

.dn-url-btn {
  padding: 12px 20px;
  white-space: nowrap;
}

/* ===========================================
   User Navigation Styles (user-navigation.ejs)
   =========================================== */

/* Logo */
.un-logo {
  position: fixed;
  left: 24px;
  top: 8px;
  z-index: 102;
  font-size: 1.5rem;
  color: var(--text) !important;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.un-logo-sub {
  display: block;
  font-size: 0.65em;
  font-weight: 400;
  opacity: 0.6;
  line-height: 1.2;
  margin-top: -3px;
}

/* Navigation bar */
.un-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-bottom: 2px solid var(--border);
  z-index: 100;
  padding: 6px 24px;
  min-height: 60px;
  overflow: visible;
}

.un-navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
  overflow: visible;
}

/* Navigation tabs */
.un-nav-tabs {
  display: flex;
  gap: 16px;
  flex: 1;
  margin-left: 160px;
  padding-right: 16px;
  align-items: center;
}

.un-nav-link {
  padding: 10px 16px;
  text-decoration: none;
  color: #6B7280;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.un-nav-link.active {
  color: var(--amber-light);
  font-weight: 600;
  border-bottom-color: var(--amber-light);
}

/* Action buttons */
.un-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

.un-actions .btn {
  margin: 0;
  flex-shrink: 0;
}

.un-actions #theme-toggle {
  padding: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}

.un-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.un-dropdown {
  position: relative;
}

.un-dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.un-balance-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  height: 40px;
  flex-shrink: 0;
}

.un-user-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  height: 40px;
  flex-shrink: 0;
}

.un-dropdown-menu {
  position: fixed;
  z-index: 101;
}

/* Content spacing */
.un-spacer {
  height: 68px;
}

/* ===========================================
   Admin Navigation Styles (admin-navigation.ejs)
   =========================================== */

/* Reuse user nav styles with admin-specific overrides */
.an-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: 60px;
  background: var(--card);
  border-bottom: 2px solid var(--border);
  z-index: 100;
  padding: 6px 24px;
}

.an-navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
}

.an-nav-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex: 1;
  margin-left: 160px;
  padding-right: 16px;
  align-items: center;
}

.an-nav-link {
  padding: 10px 16px;
  text-decoration: none;
  color: #6B7280;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.an-nav-link.active {
  color: #92400E;
  font-weight: 600;
  border-bottom-color: #92400E;
}

.an-dropdown-summary {
  padding: 10px 16px;
  text-decoration: none;
  color: #6B7280;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
}

.an-dropdown-summary.active {
  color: #92400E;
  font-weight: 600;
  border-bottom-color: #92400E;
}

.an-dropdown-menu {
  position: fixed;
  min-width: 200px;
  z-index: 101;
}

.an-dropdown-icon {
  margin-right: 8px;
}

.an-dropdown-arrow {
  font-size: 10px;
}

/* Admin action buttons */
.an-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

.an-actions .btn {
  margin: 0;
  flex-shrink: 0;
}

.an-actions #theme-toggle {
  padding: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}

/* ===========================================
   Media Widget Styles (widget/media-fyra.ejs)
   =========================================== */

/* Notice */
.mw-notice {
  margin: 0 0 20px 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--warning-bg);
  border: 2px solid var(--warning-text);
  color: var(--warning-text);
  font-weight: 500;
}

/* Player container layout */
.mw-player-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 20px;
}

.mw-player-container {
  background: var(--card);
  width: 640px;
  height: 360px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.mw-player {
  width: 100%;
  height: 100%;
}

/* Player info */
.mw-player-info {
  flex: 1 1 320px;
  min-width: 300px;
}

.mw-player-title {
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--text);
}

.mw-player-channel {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 16px;
}

.mw-player-requester {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

/* Controls */
.mw-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.mw-controls-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mw-btn-prev,
.mw-btn-next {
  width: 52px;
  height: 52px;
  padding: 0;
  font-size: 20px;
}

.mw-btn-play {
  width: 60px;
  height: 60px;
  padding: 0;
  font-size: 24px;
}

/* Volume */
.mw-volume-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 200px;
}

.mw-volume-label {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.mw-volume-slider {
  flex: 1;
  min-width: 100px;
}

/* Seek */
.mw-seek-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mw-seek-slider {
  flex: 1;
}

.mw-time-label {
  color: var(--muted);
  width: 100px;
  text-align: right;
  font-family: monospace;
  font-size: 14px;
  font-weight: 500;
}

/* Section title */
.mw-section-title {
  margin: 0 0 16px 0;
  font-weight: 600;
  font-size: 18px;
}

/* Add form */
.mw-add-form {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.mw-add-input-wrap {
  flex: 1;
  min-width: 240px;
}

.mw-add-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid var(--border);
  font-size: 14px;
}

.mw-add-btn {
  padding: 10px 16px;
  font-size: 0.875rem;
  white-space: nowrap;
}

.mw-settings-grid {
  display: grid;
  gap: 20px;
  margin-top: 16px;
}

.mw-select-full {
  width: 100%;
}

.mw-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.mw-toggle-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.mw-toggle-text {
  font-weight: 500;
}

.mw-settings-grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.mw-settings-hint {
  margin-top: 6px;
  font-size: 12px;
}

.mw-settings-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mw-settings-checkbox-label {
  font-weight: 500;
  cursor: pointer;
}

.mw-settings-full-col {
  grid-column: 1 / -1;
}

.mw-blacklist-title {
  margin: 0 0 16px 0;
  font-weight: 600;
  font-size: 18px;
}

.mw-blacklist-grid {
  display: grid;
  gap: 16px;
}

.mw-blacklist-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid var(--border);
  font-family: monospace;
  font-size: 13px;
  line-height: 1.6;
}

.mw-settings-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mw-queue-item {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border-radius: 12px;
  border: 2px solid var(--border);
  transition: all 0.3s ease;
}

.mw-queue-item-active {
  border-color: var(--amber-light);
}

.mw-queue-item-content {
  flex: 1 1 auto;
}

.mw-queue-item-title {
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
}

.mw-queue-item-channel {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.mw-queue-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mw-queue-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 18px;
}

.mw-queue-thumb {
  width: 100px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mw-queue-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===========================================
   Admin Dashboard Styles (admin/dashboard-fyra.ejs)
   =========================================== */

/* Container */
.ad-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* Header */
.ad-header {
  margin-bottom: 32px;
}

.ad-title {
  margin: 0 0 8px 0;
  font-size: 2rem;
  font-weight: 700;
}

.ad-subtitle {
  opacity: 0.7;
  margin: 0;
}

/* Filters */
.ad-filters-card {
  margin-bottom: 24px;
}

.ad-filters-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.ad-filter-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ad-filter-text {
  font-weight: 500;
}

.ad-filter-input {
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
}

.ad-filter-btn {
  padding: 10px 20px;
}

/* KPI Grid */
.ad-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.ad-kpi-card {
  border-left: 4px solid var(--amber-light);
}

.ad-kpi-label {
  opacity: 0.7;
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.ad-kpi-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--amber-light);
}

.ad-kpi-card-blue {
  border-left: 4px solid var(--neon-blue);
}

.ad-kpi-value-blue {
  font-size: 2rem;
  font-weight: 700;
  color: var(--neon-blue);
}

.ad-kpi-card-peach {
  border-left: 4px solid var(--peach-start);
}

.ad-kpi-value-peach {
  font-size: 2rem;
  font-weight: 700;
  color: var(--peach-start);
}

.ad-kpi-card-purple {
  border-left: 4px solid #8B5CF6;
}

.ad-kpi-value-purple {
  font-size: 2rem;
  font-weight: 700;
  color: #8B5CF6;
}

.ad-kpi-card-red {
  border-left: 4px solid #EF4444;
}

.ad-kpi-value-red {
  font-size: 2rem;
  font-weight: 700;
  color: #EF4444;
}

.ad-chart-card {
  margin-bottom: 24px;
}

.ad-chart-title {
  margin: 0 0 16px 0;
  font-weight: 600;
}

.ad-chart-canvas {
  width: 100%;
  display: block;
  background: var(--card);
}

.ad-transactions-card {
  margin-bottom: 24px;
}

.ad-transactions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.ad-transactions-title {
  margin: 0;
  font-weight: 600;
}

.ad-transactions-link {
  padding: 6px 12px;
  font-size: 0.875rem;
}

.ad-transactions-table-wrapper {
  overflow-x: auto;
}

.ad-transactions-table {
  width: 100%;
  border-collapse: collapse;
}

.ad-transactions-thead {
  border-bottom: 2px solid #E5E7EB;
}

.ad-transactions-th {
  text-align: center;
  padding: 10px;
  font-weight: 600;
  font-size: 0.875rem;
}

.ad-transactions-tr {
  border-bottom: 1px solid #E5E7EB;
}

.ad-transactions-tr-last {
  /* No border for last row */
}

.ad-transactions-td {
  padding: 12px;
  font-size: 0.875rem;
  text-align: center;
}

.ad-transactions-td-id {
  font-family: monospace;
  color: #6B7280;
}

.ad-transactions-td-link {
  color: var(--amber-light);
  text-decoration: none;
  font-weight: 500;
}

.ad-transactions-td-amount {
  font-weight: 600;
  color: var(--amber-light);
}

.ad-transactions-status {
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.75rem;
}

.ad-transactions-status-success {
  background: var(--success-bg);
  color: var(--success-text);
}

.ad-transactions-status-warning {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.ad-transactions-status-default {
  background: var(--bg-elev);
  color: var(--muted);
}

.ad-empty-state {
  text-align: center;
  padding: 32px 20px;
  opacity: 0.5;
}

.ad-empty-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.ad-empty-text {
  margin: 0;
}

/* Admin Users */
.au-card {
  margin-bottom: 24px;
}

.au-input-narrow {
  width: 120px;
}

/* Table cells */
.au-th-center,
.au-td-center {
  text-align: center;
}

.au-td-id {
  font-family: monospace;
  color: #6B7280;
}

.au-td-username {
  font-weight: 500;
}

.au-td-email {
  font-size: 0.875rem;
}

.au-td-balance {
  font-weight: 600;
  color: var(--amber-light);
}

/* Commission input */
.au-commission-row {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.au-commission-input {
  width: 80px;
  padding: 6px 8px;
  font-size: 0.875rem;
}

.au-commission-btn {
  padding: 6px 10px;
}

/* Promo discount badge */
.au-promo-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-radius: 4px;
  margin-left: 6px;
}

/* Status colors */
.au-status-yes {
  color: #10B981;
}

.au-status-no {
  color: #6B7280;
}

.au-status-blocked {
  color: #EF4444;
}

.au-row-border {
  border-bottom: 1px solid #E5E7EB;
}

.au-actions-cell {
  text-align: center;
}

.au-actions-row {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: nowrap;
}

.au-btn-sm {
  padding: 4px 8px;
  font-size: 0.75rem;
}

.au-btn-icon {
  padding: 6px 10px;
  font-size: 1rem;
  line-height: 1;
  min-width: 36px;
  cursor: pointer;
}

.au-btn-block {
  background: var(--bg);
  border: 2px solid var(--border);
  color: var(--text);
  opacity: 0.7;
}

.au-btn-unblock {
  background: #D1FAE5;
  color: #065F46;
  border-color: #6EE7B7;
}

.au-btn-block:hover {
  opacity: 1;
}

.au-td-created {
  text-align: center;
  font-size: 0.875rem;
  color: #6B7280;
  white-space: nowrap;
}

.au-empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.3;
}

.au-empty-text {
  margin: 0;
  font-size: 1.125rem;
}

/* ===========================================
   Auth Forms Styles (register.ejs, login.ejs)
   =========================================== */

/* Container */
.auth-container {
  max-width: 440px;
  margin: 80px auto;
  padding: 0 20px;
}

.auth-card {
  padding: 48px 40px;
}

/* Header */
.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.auth-title {
  margin: 0 0 8px 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

.auth-subtitle {
  margin: 0;
  opacity: 0.7;
  font-size: 0.9375rem;
}

/* Error box */
.auth-errors {
  background: #FEE2E2;
  border: 2px solid #EF4444;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.auth-errors-list {
  margin: 0;
  padding-left: 20px;
  color: #991B1B;
}

.auth-errors-item {
  margin: 4px 0;
}

/* Form groups */
.auth-form-group {
  margin-bottom: 16px;
}

.auth-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9375rem;
}

.auth-label-hint {
  opacity: 0.5;
  font-weight: 400;
}

.auth-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.2s;
  background: var(--card);
  color: var(--text);
}

/* Checkbox row */
.auth-checkbox-row {
  display: flex;
  align-items: start;
  gap: 10px;
  margin-bottom: 16px;
  cursor: pointer;
  user-select: none;
}

.auth-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.auth-checkbox-text {
  font-size: 0.9375rem;
  color: var(--text);
}

/* Form group larger margin */
.auth-form-group-lg {
  margin-bottom: 20px;
}

.auth-checkbox-text-link {
  color: var(--amber-light);
  text-decoration: none;
  font-weight: 600;
}

.auth-submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.auth-info-box {
  background: #EFF6FF;
  border: 2px solid #93C5FD;
  border-radius: 12px;
  padding: 12px;
  margin-top: 16px;
}

.auth-info-text {
  margin: 0;
  font-size: 0.875rem;
  color: #1E3A8A;
  line-height: 1.5;
}

.auth-footer {
  margin-top: 32px;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #E5E7EB;
}

.auth-footer-text {
  margin: 0;
  color: var(--text);
  opacity: 0.7;
}

.auth-footer-link {
  color: var(--amber-light);
  text-decoration: none;
  font-weight: 600;
  margin-left: 4px;
}

.auth-forgot-link {
  color: var(--neon-blue);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}

.auth-forgot-container {
  text-align: center;
}

.auth-oauth-section {
  margin-top: 32px;
}

.auth-oauth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.auth-oauth-divider-line {
  flex: 1;
  height: 1px;
  background: #E5E7EB;
}

.auth-oauth-divider-text {
  opacity: 0.6;
  font-size: 0.875rem;
  white-space: nowrap;
  color: var(--text);
}

.auth-oauth-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-oauth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  transition: all 0.2s;
  text-decoration: none;
}

.auth-oauth-btn-twitch {
  background: var(--card);
  border: 2px solid #E5E7EB;
}

.auth-oauth-btn-google {
  background: var(--card);
  border: 2px solid #E5E7EB;
}

.auth-oauth-btn-vk {
  background: #0077FF;
  border: 2px solid #0077FF;
}

.auth-oauth-btn-telegram {
  background: #0088cc;
  border: 2px solid #0088cc;
}

.auth-input-focus {
  border-color: var(--amber-light);
  box-shadow: 0 0 0 3px rgba(255,184,77,0.1);
}

.auth-oauth-btn-twitch:hover {
  border-color: #9146FF;
  box-shadow: 0 4px 24px rgba(145,70,255,0.3);
}

.auth-oauth-btn-google:hover {
  border-color: #4285F4;
  box-shadow: 0 4px 24px rgba(66,133,244,0.3);
}

.auth-oauth-btn-vk:hover {
  box-shadow: 0 4px 24px rgba(0,119,255,0.4);
}

.auth-oauth-btn-telegram:hover {
  box-shadow: 0 4px 24px rgba(0,136,204,0.4);
}

/* ===========================================
   Wheel Widget Styles (widget/wheel-fyra.ejs)
   =========================================== */

/* Card margins */
.wh-card {
  margin-bottom: 16px;
}

.wh-card-title {
  margin: 0 0 12px 0;
}

/* URL row */
.wh-url-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.wh-url-input {
  flex: 1;
  min-width: 280px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid var(--border);
  font-family: monospace;
  font-size: 13px;
}

.wh-url-hint {
  margin-top: 8px;
  font-size: 12px;
}

/* Alert row */
.wh-alert-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Header row */
.wh-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.wh-section-title {
  margin: 0;
  font-weight: 700;
}

/* Tabs */
.wh-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wh-tab-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.wh-tab-content {
  margin-top: 0;
}

.wh-tab-pane {
  padding: 0;
}

/* Form grid */
.wh-form-grid {
  display: grid;
  gap: 10px 12px;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  align-items: start;
}

.wh-form-label {
  width: 100%;
}

.wh-form-input {
  width: 100%;
}

.wh-form-label-full {
  width: 100%;
}

.wh-form-hint {
  font-size: 11px;
  display: block;
  margin-top: 2px;
}

.wh-tab-pane-no-pad {
  padding: 0;
}

.wh-design-grid {
  display: grid;
  gap: 12px;
}

.wh-design-section {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

.wh-design-title {
  margin: 0 0 8px 0;
  font-weight: 700;
}

.wh-design-desc {
  margin: 0 0 12px 0;
  font-size: 12px;
}

.wh-bg-preview-container {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.wh-bg-preview-img-wrap {
  width: 120px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: #222;
}

.wh-bg-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wh-bg-preview-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wh-bg-preview-label {
  font-size: 12px;
}

.wh-bg-remove-row {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.wh-bg-remove-checkbox {
  width: 16px;
  height: 16px;
}

.wh-bg-remove-text {
  font-size: 12px;
  color: #f87171;
}

.wh-colors-grid {
  display: grid;
  gap: 10px 12px;
  grid-template-columns: repeat(2, 1fr);
}

.wh-color-input {
  width: 100%;
  height: 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.wh-sounds-grid {
  display: grid;
  gap: 12px;
}

.wh-sound-item {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 10px;
}

.wh-sound-item-label {
  width: 100%;
  margin-bottom: 8px;
}

.wh-sound-preview-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wh-sound-audio {
  height: 32px;
  max-width: 200px;
}

.wh-sound-test-btn {
  padding: 6px 12px;
  font-size: 12px;
}

.wh-sound-remove-row {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.wh-sound-remove-checkbox {
  width: 14px;
  height: 14px;
}

.wh-sound-remove-text {
  font-size: 11px;
  color: #f87171;
}

.wh-integrations-grid {
  display: grid;
  gap: 10px;
}

.wh-integration-card {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.wh-integration-card-lg {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.wh-integration-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.wh-integration-icon {
  font-size: 18px;
}

.wh-integration-title {
  margin: 0;
  font-weight: 700;
}

.wh-integration-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 12px;
}

.wh-integration-toggle-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.wh-integration-toggle-label {
  font-weight: 500;
}

.wh-integration-desc {
  margin: 0 0 8px 0;
  font-size: 12px;
}

.wh-integration-settings {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
}

.wh-integration-settings-title {
  font-size: 14px;
  font-weight: 600;
}

.wh-reward-card {
  padding: 12px;
  background: #111827;
  border-radius: 10px;
  border: 1px solid #1f2937;
  display: grid;
  gap: 8px;
}

.wh-reward-label {
  font-size: 13px;
  font-weight: 600;
  color: #e5e7eb;
}

.wh-reward-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #374151;
  border-radius: 8px;
  background: #0f172a;
  color: #f3f4f6;
  font-size: 14px;
}

.wh-fairness-box {
  padding: 10px;
  background: #0f172a;
  border-radius: 10px;
  border: 1px solid #1f2937;
  font-size: 12px;
  color: #9aa6b2;
}

.wh-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.wh-notification {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  font-weight: 600;
  font-size: 15px;
  min-width: 300px;
  text-align: center;
  animation: slideDown 0.3s ease;
}

.wh-notification-success {
  background: #198754;
  color: #fff;
}

.wh-notification-error {
  background: #dc3545;
  color: #fff;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ===========================================
   Fundraising Widget Styles (widget/fundraising-fyra.ejs)
   =========================================== */

/* Hint */
.fr-hint {
  margin-bottom: 16px;
}

.fr-actions-mt {
  margin-top: 12px;
}

/* Actions row */
.fr-actions-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.fr-btn {
  padding: 10px 16px;
  font-size: 0.875rem;
  white-space: nowrap;
}

.fr-btn-sm {
  padding: 8px 14px;
  font-size: 0.875rem;
  white-space: nowrap;
}

/* Select wrapper */
.fr-select-wrap {
  flex: 1;
  min-width: 280px;
}

.fr-btn-group {
  display: flex;
  gap: 8px;
}

/* URL section */
.fr-url-title {
  margin: 0 0 16px 0;
  font-weight: 600;
  color: var(--neon-blue);
}

.fr-url-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.fr-url-input {
  flex: 1;
  min-width: 250px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid var(--border);
  font-family: monospace;
  font-size: 13px;
}

/* Params section */
.fr-params-section {
  border-top: 2px solid var(--border);
  padding-top: 16px;
  margin-top: 8px;
}

.fr-params-hint {
  margin-bottom: 12px;
  font-size: 13px;
}

.fr-params-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 12px;
  margin-bottom: 8px;
}

/* Checkbox row */
.fr-checkbox-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.fr-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.fr-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.fr-checkbox-text {
  font-weight: 500;
}

.fr-preview-card-no-mt {
  margin-top: 0;
}

.fr-preview-title {
  margin: 0 0 16px 0;
  font-weight: 700;
  font-size: 18px;
}

.fr-preview-root {
  padding: 20px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: #F9FAFB;
}

.fr-preview-box {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 0 auto;
}

.fr-preview-title-text {
  font-weight: 800;
  margin-bottom: 10px;
  text-align: center;
  color: var(--amber-light);
  font-size: 18px;
}

.fr-preview-bar {
  position: relative;
  height: 32px;
  background: rgba(200, 200, 200, 0.2);
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--border);
}

.fr-preview-fill {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 50%;
  background: linear-gradient(135deg, var(--peach-start), var(--peach-end));
  border-radius: inherit;
  transition: width 0.3s ease;
}

.fr-preview-inside {
  position: absolute;
  z-index: 2;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.fr-preview-inside-title {
  top: 3px;
  font-size: 12px;
  font-weight: 600;
}

.fr-preview-inside-amount {
  top: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  font-size: 14px;
}

.fr-preview-inside-time {
  bottom: 3px;
  font-size: 11px;
}

.fr-preview-bounds {
  position: relative;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text);
  pointer-events: none;
}

.fr-preview-bmin {
  position: absolute;
  left: 6px;
}

.fr-preview-bmax {
  position: absolute;
  right: 6px;
}

.fr-preview-amount {
  margin-top: 10px;
  color: var(--text);
  font-weight: 700;
  text-align: center;
  font-size: 14px;
}

.fr-preview-time {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.fr-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
}

.fr-settings-grid .fr-settings-actions {
  grid-column: 1 / -1;
}

.fr-settings-title {
  margin: 0 0 24px 0;
  font-weight: 700;
  font-size: 22px;
}

.fr-settings-actions {
  padding-top: 8px;
}

.fr-color-input {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  border: 2px solid var(--border);
  cursor: pointer;
}

.fr-example-hint {
  margin-top: 12px;
  font-size: 12px;
}

.fr-example-code {
  background: var(--bg-elev);
  padding: 2px 6px;
  border-radius: 4px;
}

.fr-goal-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: transparent;
}

.fr-goal-modal-content {
  background: var(--card);
  margin: 5% auto;
  padding: 32px;
  border: 2px solid var(--border);
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.fr-goal-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.fr-goal-modal-title {
  margin: 0;
  font-weight: 700;
}

.fr-goal-modal-close {
  background: none;
  border: none;
  font-size: 32px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}

/* Toast notifications */

/* Bot app container */
.bot-app {
  opacity: 0;
  transition: opacity 0.2s;
}

/* Bot header row */
.bot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.bot-title {
  margin: 0;
}

.bot-status-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bot-status-badge {
  padding: 6px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

/* Info box */
.bot-info-box {
  padding: 16px;
  background: rgba(100, 149, 237, 0.05);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  margin-bottom: 20px;
}

.bot-info-text {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

/* Settings form */
.bot-form {
  display: grid;
  gap: 20px;
  margin-bottom: 30px;
}

.bot-toggle-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

/* ===========================================
   Offer Page Styles (offer.ejs)
   =========================================== */

/* Container */
.offer-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Header */
.offer-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--border, rgba(255, 255, 255, 0.1));
}

.offer-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.offer-title {
  margin: 0 0 12px 0;
  font-size: 2rem;
  font-weight: 700;
}

.offer-dev-badge {
  font-size: 0.5em;
  color: var(--amber, #F59E0B);
  font-weight: 500;
  margin-left: 8px;
}

.offer-meta {
  margin: 0;
  opacity: 0.6;
  font-size: 0.9375rem;
}

/* Dev warning */
.offer-dev-warning {
  background: #FEF3C7;
  border-left: 4px solid #F59E0B;
  padding: 16px;
  margin-bottom: 24px;
  border-radius: 4px;
}

.offer-dev-warning-title {
  margin: 0 0 8px 0;
  font-weight: 600;
  color: #92400E;
  display: flex;
  align-items: center;
  gap: 8px;
}

.offer-dev-warning-icon {
  font-size: 1.2em;
}

.offer-dev-warning-text {
  margin: 0 0 8px 0;
  color: #78350F;
  font-size: 0.9rem;
  line-height: 1.6;
}

.offer-dev-warning-list {
  margin: 8px 0 0 0;
  padding-left: 24px;
  color: #78350F;
  font-size: 0.9rem;
}

/* Offer acceptance */
.offer-accept-btn {
  background: linear-gradient(135deg, var(--amber, #F59E0B), var(--amber-dark, #F97316));
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.offer-accept-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.offer-accept-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.offer-accept-btn:focus-visible {
  outline: 2px solid var(--amber-light, #F59E0B);
  outline-offset: 2px;
}

.offer-accept-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.offer-accept-btn.accepted {
  background: linear-gradient(135deg, var(--success, #10B981), var(--success-dark, #059669));
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.offer-accept-btn.accepted:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.offer-acceptance-block {
  margin-top: 40px;
  padding: 24px;
  background: var(--card, #121426);
  border-radius: 12px;
  border: 2px solid var(--border, rgba(255, 255, 255, 0.1));
}

.offer-acceptance-success {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.offer-acceptance-success-text {
  margin: 0 0 4px 0;
  color: var(--success, #10B981);
  font-weight: 600;
  font-size: 1rem;
}

.offer-acceptance-version {
  margin: 0;
  opacity: 0.7;
  font-size: 0.875rem;
  color: var(--text, #c7cfda);
}

.offer-acceptance-prompt {
  margin: 0 0 20px 0;
  font-weight: 600;
  color: var(--text, #c7cfda);
  font-size: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .offer-accept-btn {
    transition: none;
  }
}

/* Content */
.offer-content {
  line-height: 1.7;
  color: var(--text);
}

.offer-h3 {
  margin: 32px 0 16px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.offer-p {
  margin: 0 0 16px 0;
}

.offer-ul {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

.offer-li {
  margin-bottom: 8px;
}

.offer-link {
  color: var(--amber-light);
  text-decoration: none;
  font-weight: 500;
}

.offer-success-icon {
  font-size: 1.5rem;
}

.offer-p-no-margin {
  margin: 0;
}

/* ===========================================
   Help Page Styles (help.ejs)
   =========================================== */

/* Container */

/* Container */
.help-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Hero card */
.help-hero {
  text-align: center;
  padding: 48px 32px;
  margin-bottom: 32px;
}

.help-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.help-title {
  margin: 0 0 16px 0;
  font-size: 2rem;
  font-weight: 700;
}

.help-subtitle {
  margin: 0 0 32px 0;
  opacity: 0.7;
  font-size: 1.125rem;
}

.help-btn {
  padding: 16px 40px;
  font-size: 1.125rem;
  text-decoration: none;
  display: inline-block;
}

/* Tickets section */
.help-tickets-title {
  margin: 0 0 24px 0;
  font-weight: 600;
}

.help-table-wrap {
  overflow-x: auto;
}

.help-table {
  width: 100%;
  border-collapse: collapse;
}

.help-table-th {
  text-align: left;
  padding: 12px;
  font-weight: 600;
  font-size: 0.875rem;
}

.help-table-th-center {
  text-align: center;
  padding: 12px;
  font-weight: 600;
  font-size: 0.875rem;
}

.help-table-thead-row {
  border-bottom: 2px solid #E5E7EB;
}

.help-table-row-border {
  border-bottom: 1px solid #E5E7EB;
}

.help-table-td {
  padding: 12px;
  font-size: 0.875rem;
}

.help-table-td-id {
  font-family: monospace;
  color: #6B7280;
}

.help-table-td-subject {
  font-weight: 500;
}

.help-table-td-muted {
  color: #6B7280;
}

.help-table-td-center {
  text-align: center;
}

.help-status-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.75rem;
  background: var(--status-bg, rgba(0,0,0,0.1));
  color: var(--status-color, var(--text));
}

.help-table-btn {
  padding: 6px 16px;
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
}

.help-empty {
  text-align: center;
  padding: 48px 20px;
  opacity: 0.5;
}

.help-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.help-empty-text {
  margin: 0;
}

/* ===========================================
   Support Pages Styles (support/new.ejs, support/view.ejs)
   =========================================== */

/* Support form row */
.support-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.support-row-sm {
  gap: 8px;
  margin-top: 8px;
}

/* Subject input */
.support-subject {
  flex: 1;
  min-width: 0;
  height: 44px;
}

/* Category select */
.support-category {
  min-width: 200px;
}

/* Message textarea */
.support-message {
  margin-top: 12px;
  min-height: 240px;
  width: 100%;
}

.support-label {
  margin: 0;
}

/* Refund category hint */
.support-hint {
  display: none;
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
}
.support-hint.is-visible {
  display: block;
}
.support-hint p {
  margin: 0 0 8px 0;
}
.support-hint ul {
  margin: 0;
  padding-left: 20px;
}
.support-hint li {
  margin: 4px 0;
}

/* ===========================================
   Donation Public Styles (donation_public.ejs)
   =========================================== */

/* Summary box */
.dp-summary-box {
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(255, 184, 77, 0.1);
  border: 1px solid rgba(255, 184, 77, 0.3);
  border-radius: var(--radius-md);
  font-size: 14px;
}

.dp-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dp-summary-text {
  color: var(--text);
  font-weight: 500;
}

.dp-summary-total {
  font-weight: 600;
  font-size: 16px;
  color: var(--amber-light);
}

/* Currency converter */

/* Currency converter */
.dp-converter {
  margin-bottom: 16px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--muted);
  display: none;
}

/* Commission checkbox block */
.dp-checkbox-block {
  margin-bottom: 24px;
  padding: 12px;
  background: rgba(77, 159, 255, 0.1);
  border: 1px solid rgba(77, 159, 255, 0.3);
  border-radius: var(--radius-md);
}

.dp-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.dp-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.dp-checkbox-text {
  font-size: 14px;
  color: var(--text);
}

/* Offer checkbox block */
.dp-offer-block {
  margin-bottom: 16px;
  padding: 6px 10px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
}

.dp-offer-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.dp-offer-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin-top: 2px;
  flex-shrink: 0;
}

.dp-offer-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.dp-offer-link {
  color: var(--amber-light);
  text-decoration: none;
  font-weight: 600;
}

/* Commission info */
.dp-commission-info {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text);
  display: none;
}

.dp-commission-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.dp-commission-label {
  color: var(--muted);
}

.dp-commission-value {
  color: var(--text);
  font-weight: 500;
}

.dp-commission-total {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  padding-top: 6px;
  border-top: 1px solid rgba(77, 159, 255, 0.3);
}

.dp-commission-total-label {
  color: var(--text);
}

.dp-commission-total-value {
  color: var(--amber-light);
  font-size: 15px;
}

/* Donate button full width */
.dp-donate-btn-full {
  width: 100%;
  font-size: 1.125rem;
}

/* Loading text */

/* ===== Admin Roulette page (admin/roulette.ejs) ===== */
/* Design panes - hidden by default */
.ar-pane-hidden {
  display: none;
}

/* Common card spacing */
.ar-card-spaced {
  margin: 8px 0;
}

.ar-card-title {
  margin: 0 0 8px 0;
}

.ar-help-text {
  color: #8086a3;
  font-size: 12px;
}

.ar-help-mb6 {
  margin-top: 6px;
}

.ar-help-mb8 {
  margin-bottom: 8px;
}

/* Pin section */
.ar-pin-file-line {
  margin-top: 6px;
}

.ar-file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #cfd3ff;
}

.ar-file-input-hidden {
  display: none;
}

.ar-grid-mt {
  margin-top: 10px;
}

.ar-range-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ar-range-val {
  width: 48px;
  text-align: right;
  color: #9aa6b2;
}

.ar-range-val-small {
  width: 42px;
  text-align: right;
  color: #9aa6b2;
}

.ar-actions-mt {
  margin-top: 10px;
}

/* Title section */
.ar-style-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Behavior section */
.ar-behavior-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.ar-section-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.ar-section-title-mt {
  font-weight: 700;
  margin: 10px 0 6px 0;
}

.ar-section-title-mt12 {
  font-weight: 700;
  margin: 12px 0 6px 0;
}

.ar-section-title-mt8 {
  font-weight: 700;
  margin: 8px 0 6px 0;
}

.ar-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}

.ar-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Widget section */
.ar-widget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.ar-url-row {
  margin-top: 6px;
}

.ar-help-mt {
  margin-top: 10px;
}

.ar-actions-flex {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Guide section */
.ar-guide-list {
  margin: 0;
  padding-left: 18px;
}

/* ===== Verification modals (verification-fyra.ejs) ===== */
.vf-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.vf-modal-overlay.is-visible {
  display: flex;
}

.vf-modal-content {
  background: var(--card);
  border-radius: 16px;
  max-width: 480px;
  width: calc(100% - 40px);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  margin: 0 auto;
  position: relative;
}

.vf-modal-content-wide {
  max-width: 540px;
}

.vf-modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}

.vf-modal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vf-modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.vf-modal-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  transition: color 0.2s;
}

.vf-modal-close:hover {
  color: #fff;
}

.vf-modal-body {
  padding: 20px 24px;
}

.vf-modal-error {
  display: none;
  background: #FEE2E2;
  border: 2px solid #EF4444;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.vf-modal-error.is-visible {
  display: block;
}

.vf-modal-error-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vf-modal-error-icon {
  font-size: 1.25rem;
}

.vf-modal-error-text {
  color: #DC2626;
  font-weight: 500;
  font-size: 0.9rem;
}

.vf-form-group {
  margin-bottom: 16px;
}

.vf-form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.vf-form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #374151;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: all 0.2s;
  background: var(--card);
  color: var(--text);
  box-sizing: border-box;
}

.vf-form-input-date {
  cursor: pointer;
}

.vf-info-box {
  background: #EFF6FF;
  border-radius: 12px;
  padding: 12px;
  margin-top: 20px;
}

.vf-info-row {
  display: flex;
  gap: 12px;
  align-items: start;
}

.vf-info-icon {
  font-size: 1.25rem;
}

.vf-info-text {
  font-size: 0.875rem;
  color: #1E3A8A;
  line-height: 1.5;
}

.vf-modal-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.vf-btn-padded {
  padding: 12px 24px;
}

.vf-steps-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.vf-step-indicator {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s;
}

.vf-step-active {
  background: #10B981;
  color: #fff;
}

.vf-step-inactive {
  background: #E5E7EB;
  color: #6B7280;
}

.vf-form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #374151;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: all 0.2s;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  box-sizing: border-box;
}

.vf-form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #374151;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: all 0.2s;
  background: var(--card);
  color: var(--text);
  resize: vertical;
  min-height: 70px;
  resize: vertical;
  box-sizing: border-box;
}

.vf-form-file {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  font-size: 1rem;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  box-sizing: border-box;
}

.vf-form-hint {
  display: block;
  margin-top: 6px;
  color: #6B7280;
  font-size: 0.875rem;
}

.vf-step-hidden {
  display: none;
}

.vf-step-title {
  margin: 0 0 20px 0;
  font-weight: 600;
  font-size: 1.1rem;
}

.vf-info-box {
  background: #EFF6FF;
  border-radius: 12px;
  padding: 12px;
  margin-top: 20px;
}

.vf-info-box-inner {
  display: flex;
  gap: 12px;
  align-items: start;
}

.vf-info-box-icon {
  font-size: 1.25rem;
}

.vf-info-box-text {
  font-size: 0.875rem;
  color: #1E3A8A;
  line-height: 1.5;
}

/* ===== Withdrawals modals (withdrawals-fyra.ejs) ===== */

/* ===== Withdrawals modals (withdrawals-fyra.ejs) ===== */
.wd-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.wd-modal-overlay.is-visible {
  display: flex;
}

.wd-modal-overlay.is-hidden {
  display: none;
}

.wd-modal-content {
  background: var(--card);
  border-radius: 16px;
  width: calc(100% - 40px);
  max-width: 500px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  margin: 0 auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.wd-modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wd-modal-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.wd-modal-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: #9ca3af;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
  width: 32px;
  height: 32px;
}

.wd-modal-close:hover {
  color: #fff;
}

.wd-modal-body {
  padding: 20px 24px;
}

.wd-form-group {
  margin-bottom: 20px;
}

.wd-form-group-sm {
  margin-bottom: 16px;
}

.wd-form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text);
}

.wd-form-label-light {
  color: #fff;
}

.wd-form-select {
  width: 100%;
  padding: 12px;
  background: #1e2128;
  border: 2px solid #2a2d36;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  box-sizing: border-box;
}

.wd-form-input {
  width: 100%;
  padding: 12px;
  background: #1e2128;
  border: 2px solid #2a2d36;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  box-sizing: border-box;
}

.wd-fields-hidden {
  display: none;
}

.wd-warning-box {
  background: #FEF3C7;
  border-radius: 12px;
  padding: 16px;
  margin-top: 20px;
}

.wd-warning-row {
  display: flex;
  gap: 12px;
  align-items: start;
}

.wd-warning-icon {
  font-size: 1.25rem;
}

.wd-warning-text {
  font-size: 0.875rem;
  color: #92400E;
  line-height: 1.5;
}

.wd-modal-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.wd-option-dark {
  background: #1e2128;
  color: #fff;
}

.wd-option-muted {
  background: #1e2128;
  color: #8086a3;
}

/* Accounting section (withdrawals-fyra.ejs) */

/* Accounting section (withdrawals-fyra.ejs) */
.wd-accounting-title {
  margin: 0 0 16px 0;
}

.wd-accounting-description {
  margin-bottom: 16px;
}

.wd-accounting-description-sm {
  font-size: 12px;
  margin-top: 16px;
}

/* ===== Settings page (settings-fyra.ejs) ===== */

/* ===== Settings page (settings-fyra.ejs) ===== */
.sf-form-label-block {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.sf-form-input {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  box-sizing: border-box;
}

.sf-form-input-readonly {
  opacity: 0.7;
  cursor: not-allowed;
}

.sf-label-block {
  margin-bottom: 16px;
  display: block;
}

.sf-email-row {
  display: flex;
  gap: 12px;
}

.sf-email-input {
  flex: 1;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elev);
  color: var(--text);
  box-sizing: border-box;
}

/* ===== Admin support (admin/support-fyra.ejs) ===== */

/* ===== Admin support (admin/support-fyra.ejs) ===== */
.sp-th-center {
  text-align: center;
}

.sp-row-border {
  border-bottom: 1px solid #E5E7EB;
}

.sp-id-cell {
  text-align: center;
  font-family: monospace;
  color: #6B7280;
}

.sp-subject-cell {
  text-align: center;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-category-cell,
.sp-priority-cell,
.sp-status-cell,
.sp-assignee-cell,
.sp-created-cell,
.sp-actions-cell {
  text-align: center;
}

.sp-assignee-cell {
  font-size: 0.875rem;
}

.sp-created-cell {
  font-size: 0.875rem;
  color: #6B7280;
  white-space: nowrap;
}

.sp-open-btn {
  padding: 4px 12px;
  font-size: 0.75rem;
}

.sp-empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.3;
}

.sp-empty-text {
  margin: 0;
  font-size: 1.125rem;
}

.sp-tpl-select-wrap {
  margin-bottom: 16px;
}

.sp-tpl-select {
  width: 100%;
}

.sp-tpl-form {
  display: block;
}

.sp-tpl-input-full {
  width: 100%;
}

.sp-tpl-text-label {
  margin-top: 16px;
}

.sp-tpl-textarea {
  width: 100%;
}

.sp-tpl-flags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.sp-tpl-checkbox {
  width: auto;
}

.sp-tpl-label-inline {
  margin: 0;
}

.sp-tpl-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.sp-tpl-delete {
  background: var(--bg);
  border: 2px solid var(--border);
  color: var(--text);
  opacity: 0.7;
}

.sp-metrics-card {
  margin-bottom: 24px;
}

.sp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.sp-kpi-card-blue {
  border-left: 4px solid var(--neon-blue);
}

.sp-kpi-card-amber {
  border-left: 4px solid var(--amber-light);
}

.sp-kpi-card-red {
  border-left: 4px solid #EF4444;
}

.sp-kpi-card-green {
  border-left: 4px solid #10B981;
}

.sp-kpi-label {
  opacity: 0.7;
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.sp-kpi-value-blue {
  font-size: 2rem;
  font-weight: 700;
  color: var(--neon-blue);
}

.sp-kpi-value-amber {
  font-size: 2rem;
  font-weight: 700;
  color: var(--amber-light);
}

.sp-kpi-value-red {
  font-size: 2rem;
  font-weight: 700;
  color: #EF4444;
}

.sp-kpi-value-green {
  font-size: 2rem;
  font-weight: 700;
  color: #10B981;
}

.sp-sla-title {
  margin: 0 0 12px 0;
  font-weight: 600;
}

.sp-sla-th {
  text-align: center;
}

.sp-sla-row {
  border-bottom: 1px solid #E5E7EB;
}

.sp-sla-priority {
  text-align: center;
  font-weight: 600;
}

.sp-sla-cell {
  text-align: center;
}

.sp-create-form {
  display: block;
}

.sp-create-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.sp-create-subject {
  flex: 1;
  min-width: 200px;
}

.sp-create-priority {
  width: 100px;
}

.sp-create-category {
  width: 180px;
}

.sp-create-message {
  width: 100%;
  margin-bottom: 16px;
}

.sp-priority-p1 {
  background: var(--error-bg);
  color: var(--error-text);
  border-color: var(--error-text);
}

.sp-priority-p2 {
  background: var(--warning-bg);
  color: var(--warning-text);
  border-color: var(--warning-text);
}

.sp-priority-p3 {
  background: var(--info-bg);
  color: var(--info-text);
  border-color: var(--info-text);
}

.sp-priority-p4 {
  background: var(--bg-elev);
  color: var(--muted);
  border-color: var(--border);
}

/* ===== Admin fundraising (admin/fundraising.ejs) ===== */

/* ===== Admin fundraising (admin/fundraising.ejs) ===== */
.fr-help-top {
  margin-bottom: 8px;
  color: #8086a3;
  font-size: 12px;
}

.fr-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.fr-toolbar-current {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex: 1;
  min-width: 320px;
}

.fr-toolbar-current-label {
  flex: 1;
}

.fr-toolbar-actions {
  display: flex;
  gap: 6px;
}

.fr-obs-col {
  flex: 1;
  min-width: 280px;
}

.fr-obs-help {
  margin-bottom: 4px;
  color: #8086a3;
  font-size: 12px;
}

.fr-url-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.fr-preview-wrap {
  margin-bottom: 10px;
}

.fr-preview-card {
  margin: 8px 0;
}

.fr-preview-title {
  margin: 0 0 8px 0;
}

.fr-preview-root {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
}

.fr-tab-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fr-tab-content {
  margin-top: 12px;
}

.fr-elements-card {
  margin: 8px 0;
}

.fr-elements-title {
  margin: 0 0 8px 0;
}

.fr-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fr-toggle-muted {
  color: #9aa6b2;
}

.fr-backdrop-box {
  display: none;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.fr-backdrop-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fr-backdrop-grad {
  display: none;
  margin-top: 8px;
}

.fr-backdrop-grad-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.fr-backdrop-img {
  display: none;
  margin-top: 8px;
}

.fr-backdrop-img-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.fr-backdrop-help {
  color: #8086a3;
  font-size: 12px;
  margin-top: 4px;
}

.fr-bg-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.fr-bg-hex {
  width: 120px;
}

.fr-elements-actions {
  margin-top: 12px;
}

.fr-indicator-pane {
  display: none;
}

.fr-indicator-card {
  margin: 8px 0;
}

.fr-indicator-title {
  margin: 0 0 8px 0;
}

.fr-shadow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.fr-shadow-label {
  font-size: 11px;
  color: #8086a3;
  margin-bottom: 3px;
}

.fr-shadow-input {
  width: 100%;
}

.fr-shadow-color-label {
  font-size: 11px;
  color: #8086a3;
  margin-bottom: 3px;
}

.fr-shadow-color-input {
  width: 100%;
  height: 36px;
}

.fr-box-bg-type {
  margin-bottom: 8px;
}

.fr-box-bg-solid {
  display: none;
}

.fr-box-bg-solid-input {
  width: 100%;
  height: 36px;
}

.fr-box-bg-gradient {
  display: none;
}

.fr-box-bg-gradient-label {
  font-size: 11px;
  color: #8086a3;
  margin-bottom: 6px;
}

.fr-box-bg-gradient-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.fr-box-bg-grad-label {
  font-size: 11px;
  color: #8086a3;
  margin-bottom: 3px;
}

.fr-box-bg-grad-input {
  width: 100%;
  height: 36px;
}

.fr-box-bg-custom {
  display: none;
}

.fr-font-pane {
  display: none;
}

.fr-font-card {
  margin: 8px 0;
}

.fr-font-title {
  margin: 0 0 8px 0;
}

.fr-font-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: flex-end;
}

.fr-font-section-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.fr-font-actions {
  margin-top: 12px;
}

.fr-dialog {
  padding: 0;
  border: none;
  border-radius: 12px;
  max-width: 680px;
  width: 100%;
  background: linear-gradient(180deg, rgba(30, 34, 62, 0.96), rgba(18, 20, 38, 0.98));
  color: var(--text);
}

.fr-dialog-form {
  padding: 16px;
}

.fr-dialog-title {
  margin: 0 0 12px 0;
  font-weight: 800;
}

.fr-obs-params {
  display: none;
  margin-top: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: flex-end;
}

.fr-obs-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.fr-obs-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.fr-dialog-target-row {
  display: flex;
  gap: 8px;
}

.fr-dialog-target-input {
  flex: 1;
}

.fr-dialog-dates-row {
  display: flex;
  gap: 8px;
}

.fr-dialog-date-label {
  flex: 1;
}

.fr-dialog-time-label {
  width: 120px;
}

.fr-dialog-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.sf-info-box {
  padding: 12px;
  background: var(--info-bg);
  border: 1px solid var(--accent);
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  color: var(--info-text);
}

.sf-info-muted {
  opacity: 0.8;
}

.sf-card-mt {
  margin-top: 24px;
}

.sf-card-mb {
  margin-bottom: 24px;
}

.sf-card-title {
  margin-bottom: 8px;
}

.sf-card-desc {
  opacity: 0.7;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.sf-loading {
  opacity: 0.5;
  padding: 24px;
  text-align: center;
}

.sf-password-label {
  margin-bottom: 16px;
  display: block;
}

.sf-password-input {
  width: 100%;
  padding: 12px;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
}

.sf-impersonating-warning {
  padding: 12px;
  background: rgba(255, 152, 0, 0.1);
  border: 1px solid #FF9800;
  border-radius: 12px;
  color: #FF9800;
  font-size: 0.875rem;
}

.sf-danger-card {
  border: 2px solid var(--error-text);
}

.sf-danger-title {
  margin-bottom: 8px;
  color: var(--error-text);
}

.sf-danger-desc {
  opacity: 0.7;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--text);
}

.sf-danger-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--error-bg);
  border: 1px solid var(--error-text);
  border-radius: 12px;
  flex-wrap: wrap;
}

.sf-danger-content {
  flex: 1;
}

.sf-danger-content-title {
  margin: 0 0 8px 0;
  color: var(--error-text);
  font-weight: 600;
}

.sf-danger-content-text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--error-text);
  opacity: 0.9;
}

.sf-danger-btn {
  flex-shrink: 0;
}

.sf-2fa-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  cursor: pointer;
}

.sf-2fa-toggle-label {
  font-weight: 500;
}

.sf-2fa-methods {
  margin-left: 32px;
  padding-left: 16px;
  border-left: 3px solid var(--amber-light);
}

.sf-2fa-methods-hidden {
  display: none;
}

.sf-2fa-method-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  cursor: pointer;
}

.sf-2fa-method-label {
  font-weight: 500;
}

.sf-2fa-method-hint {
  font-size: 0.75rem;
  opacity: 0.6;
}

.sf-2fa-link {
  color: var(--amber-light);
  text-decoration: underline;
}

.sf-2fa-actions {
  margin-top: 24px;
}

.sf-2fa-status {
  margin-left: 16px;
  opacity: 0.7;
}

.sf-2fa-status-success {
  color: #10B981;
}

.sf-2fa-status-error {
  color: #EF4444;
}

.sf-receipt-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.sf-receipt-option {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 16px;
  background: var(--bg-elev);
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.sf-receipt-option-selected {
  border-color: var(--amber-light, #F59E0B);
}

.sf-receipt-option-disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.sf-receipt-radio {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.sf-receipt-label {
  font-weight: 500;
  flex: 1;
}

.sf-receipt-link {
  font-size: 0.875rem;
  color: var(--amber-light);
  text-decoration: underline;
}

.sf-receipt-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sf-receipt-status {
  opacity: 0.7;
  font-size: 0.875rem;
}

.sf-receipt-status-success {
  color: #10B981;
}

.sf-receipt-status-error {
  color: #EF4444;
}

.sf-error-message {
  opacity: 0.5;
  padding: 24px;
  text-align: center;
  color: #EF4444;
}

/* ===== Notifications (notifications-fyra.ejs) ===== */

/* Main card */
.nf-card {
  background: var(--card);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}

/* Header section */
.nf-header {
  margin-bottom: 32px;
}

.nf-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.nf-subtitle {
  font-size: 1rem;
  color: #6B7280;
  margin: 0;
  line-height: 1.5;
}

/* Group selector */
.nf-group-selector {
  margin-bottom: 28px;
}

.nf-form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  margin-bottom: 10px;
}

.nf-select {
  width: 100%;
  max-width: 400px;
  padding: 12px 16px;
  border: 2px solid #E5E7EB;
  border-radius: 10px;
  font-size: 1rem;
  background: var(--card);
  color: var(--text);
  transition: all 0.2s;
  cursor: pointer;
}

.nf-select:hover {
  border-color: #D1D5DB;
}

.nf-select:focus {
  outline: none;
  border-color: var(--amber-light);
  box-shadow: 0 0 0 3px rgba(255, 184, 77, 0.1);
}

/* URL box */
.nf-url-box {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(37, 99, 235, 0.1) 100%);
  border: 2px solid rgba(59, 130, 246, 0.25);
  border-radius: 14px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.nf-url-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nf-url-info {
  flex: 1;
}

.nf-url-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.nf-url-desc {
  font-size: 0.9375rem;
  color: var(--text);
  opacity: 0.8;
  line-height: 1.6;
}

/* Button group */
.nf-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Dropdown wrapper */
.nf-dropdown-wrap {
  position: relative;
  display: inline-block;
}

.nf-btn-test {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  white-space: nowrap;
}

/* Dropdown panel */
.nf-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 320px;
  background: var(--card);
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
}

.nf-dropdown-panel.is-hidden {
  display: none;
}

.nf-dropdown-panel.is-visible {
  display: block;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Variant buttons */
.nf-variant-btn {
  width: 100%;
  padding: 14px;
  background: var(--card);
  border: 2px solid #E5E7EB;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 8px;
  text-align: left;
}

.nf-variant-btn:last-child {
  margin-bottom: 0;
}

.nf-variant-btn:hover {
  border-color: var(--amber-light);
  background: #FFF8E7;
}

.nf-variant-btn-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.nf-variant-btn-disabled:hover {
  border-color: #E5E7EB;
  background: var(--card);
}

.nf-variant-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nf-variant-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.nf-variant-dot-enabled {
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.nf-variant-dot-disabled {
  background: #9CA3AF;
}

.nf-variant-content {
  flex: 1;
  min-width: 0;
}

.nf-variant-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  margin-bottom: 4px;
}

.nf-variant-meta {
  font-size: 0.8125rem;
  color: #6B7280;
}

/* Dropdown empty state */
.nf-dropdown-empty {
  text-align: center;
  padding: 32px 20px;
}

.nf-empty-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.nf-empty-text {
  margin: 0;
  font-size: 0.875rem;
}

.nf-btn-padded {
  padding: 10px 20px;
  white-space: nowrap;
}

.nf-btn-hidden {
  display: none;
}

.nf-widget-url {
  display: none;
  margin-top: 16px;
  background: var(--card);
  padding: 12px 16px;
  border-radius: 12px;
  font-family: monospace;
  font-size: 0.875rem;
  color: var(--text);
  word-break: break-all;
  border: 2px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nf-widget-url.is-visible {
  display: block;
}

.nf-empty-state {
  text-align: center;
  padding: 48px 20px;
  opacity: 0.5;
}

.nf-empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.nf-empty-state-text {
  margin: 0;
}

.nf-settings-card {
  margin-bottom: 24px;
}

.nf-tabs-container {
  border-bottom: 2px solid #E5E7EB;
  margin-bottom: 24px;
}

.nf-tabs-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.nf-tab-btn {
  padding: 12px 20px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  cursor: pointer;
}

.nf-tab-btn-active {
  color: var(--amber-light);
  font-weight: 600;
  border-bottom: 3px solid var(--amber-light);
}

.nf-tab-btn-inactive {
  color: #6B7280;
  font-weight: 500;
  border-bottom: 3px solid transparent;
}

/* Test modal styles */
.nf-test-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.nf-test-modal {
  background: var(--card);
  border-radius: 16px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.nf-test-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 24px 0;
}

.nf-test-modal-group {
  margin-bottom: 20px;
}

.nf-test-modal-group-last {
  margin-bottom: 28px;
}

.nf-test-modal-label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  margin-bottom: 8px;
}

.nf-test-modal-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E5E7EB;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text);
  background: var(--card);
  resize: vertical;
  transition: all 0.2s;
}

.nf-test-modal-textarea:focus {
  outline: none;
  border-color: var(--amber-light);
  box-shadow: 0 0 0 3px rgba(255, 184, 77, 0.1);
}

.nf-test-modal-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E5E7EB;
  border-radius: 10px;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--card);
  cursor: pointer;
  transition: all 0.2s;
}

.nf-test-modal-select:focus {
  outline: none;
  border-color: var(--amber-light);
  box-shadow: 0 0 0 3px rgba(255, 184, 77, 0.1);
}

.nf-test-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.nf-test-modal-btn-cancel {
  padding: 12px 24px;
  border: 2px solid #E5E7EB;
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s;
}

.nf-test-modal-btn-cancel:hover {
  background: #F3F4F6;
  border-color: #D1D5DB;
}

.nf-test-modal-btn-send {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--amber-light) 0%, #FF9F43 100%);
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(255, 184, 77, 0.3);
}

.nf-test-modal-btn-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 184, 77, 0.4);
}

/* ===== Messages table (messages-fyra.ejs) ===== */

/* ===== Messages table (messages-fyra.ejs) ===== */
.msg-btn-filter {
  padding: 12px 20px;
}

.msg-table-wrap {
  overflow-x: auto;
}

.msg-table {
  width: 100%;
  border-collapse: collapse;
}

.msg-table-header-row {
  border-bottom: 2px solid #E5E7EB;
}

.msg-th {
  text-align: left;
  padding: 12px;
  font-weight: 600;
  font-size: 0.875rem;
}

.msg-th-right {
  text-align: right;
}

.msg-th-center {
  text-align: center;
}

.msg-th-message {
  max-width: 400px;
}

.msg-td {
  padding: 12px;
  font-size: 0.9375rem;
}

.msg-td-right {
  text-align: right;
}

.msg-td-center {
  text-align: center;
}

.msg-donor-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.msg-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber-light), var(--peach-start));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.msg-donor-name {
  font-weight: 500;
}

.msg-td-amount {
  text-align: right;
  font-weight: 600;
  color: var(--amber-light);
}

.msg-td-commission {
  text-align: right;
  opacity: 0.7;
}

.msg-td-message {
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msg-td-date {
  opacity: 0.7;
  white-space: nowrap;
  font-size: 0.875rem;
}

.msg-form-inline {
  margin: 0;
}

.msg-row-border {
  border-bottom: 1px solid #E5E7EB;
}

/* ===== Dashboard (dashboard-fyra.ejs) ===== */

/* ===== Dashboard (dashboard-fyra.ejs) ===== */
.db-actions-row {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  align-items: center;
  flex-wrap: nowrap;
}

.db-btn-small {
  padding: 8px 14px;
  font-size: 0.875rem;
  min-width: 44px;
  margin-right: 8px;
}

.db-dropdown-wrap {
  position: relative;
  flex-shrink: 0;
  margin-left: 12px;
}

.db-dropdown-summary {
  padding: 8px 14px;
  font-size: 0.875rem;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.db-dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  min-width: 220px;
  box-shadow: var(--shadow-card);
  z-index: 100;
}

.db-filter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  cursor: pointer;
  border-radius: 8px;
}

.db-filter-checkbox {
  width: 18px;
  height: 18px;
}

/* ===== Donation forms (donation-fyra.ejs) ===== */

/* ===== Donation forms (donation-fyra.ejs) ===== */
.dn-btn-link {
  padding: 12px 20px;
  white-space: nowrap;
  text-decoration: none;
}

.dn-form-group {
  margin-bottom: 24px;
}

.dn-form-group-lg {
  margin-bottom: 32px;
}

.dn-form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.dn-form-label-sm {
  font-size: 0.9375rem;
}

.dn-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  transition: all 0.2s;
  background: var(--card);
  color: var(--text);
  box-sizing: border-box;
}

.dn-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.2s;
  background: var(--card);
  color: var(--text);
  box-sizing: border-box;
}

.dn-input-sm {
  padding: 10px 14px;
  border-radius: 10px;
}

.dn-card-section {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
}

.dn-card-title {
  margin: 0 0 16px 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.dn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.dn-color-input {
  width: 100%;
  height: 44px;
  padding: 4px;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  background: var(--card);
  box-sizing: border-box;
}

/* ===== TTS Monitoring (admin/tts-monitoring.ejs) ===== */

/* ===== TTS Monitoring (admin/tts-monitoring.ejs) ===== */
.tts-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

.tts-title {
  margin-bottom: 24px;
}

.tts-tabs {
  margin-bottom: 24px;
}

.tts-filter-row {
  margin-bottom: 24px;
}

.tts-select-sm {
  max-width: 200px;
}

.tts-label-ml {
  margin-left: 16px;
}

.tts-loading {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
}

.tts-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.tts-stat-card {
  padding: 20px;
  border-radius: 8px;
}

.tts-stat-label {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-bottom: 4px;
}

.tts-stat-value {
  font-size: 2rem;
  font-weight: 600;
}

.tts-message-loading {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
}

.tts-message-error {
  text-align: center;
  padding: 40px;
  color: var(--error);
}

.tts-message-empty {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
}

.tts-stats-grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.tts-stats-grid-auto-no-mb {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 0;
}

.tts-stat-card-padded {
  padding: 20px;
  border-radius: 8px;
}

.tts-stat-value-success {
  font-size: 2rem;
  font-weight: 600;
  color: #10B981;
}

.tts-stat-value-error {
  font-size: 2rem;
  font-weight: 600;
  color: #EF4444;
}

.tts-errors-section {
  margin-top: 32px;
}

.tts-errors-title {
  margin-bottom: 16px;
}

.tts-errors-grid {
  display: grid;
  gap: 12px;
}

.tts-error-card {
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.tts-error-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tts-error-type {
  font-weight: 600;
  margin-bottom: 4px;
}

.tts-error-count {
  font-size: 0.875rem;
  opacity: 0.7;
}

.tts-error-date {
  font-size: 0.875rem;
  opacity: 0.7;
}

.tts-table-wrapper {
  overflow-x: auto;
}

.tts-table-full {
  width: 100%;
}

.tts-table-cell-truncate {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tts-table-cell-truncate-sm {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tts-error-badge {
  padding: 4px 8px;
  border-radius: 4px;
  background: #FEE2E2;
  color: #DC2626;
  font-size: 0.875rem;
}

.tts-phrases-grid {
  display: grid;
  gap: 12px;
}

.tts-phrase-card {
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tts-phrase-content {
  flex: 1;
}

.tts-phrase-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.tts-phrase-rank {
  font-weight: 600;
  color: var(--text-secondary);
}

.tts-phrase-text {
  font-weight: 500;
}

.tts-phrase-meta {
  font-size: 0.875rem;
  opacity: 0.7;
}

/* ===== Stats widget (widget/stats-fyra.ejs) ===== */

/* ===== Stats widget (widget/stats-fyra.ejs) ===== */
.ws-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ws-hint {
  margin-top: 8px;
  font-size: 13px;
}

.ws-editor-hidden {
  display: none;
}

.ws-grid {
  display: grid;
  gap: 20px;
}

.ws-grid-16 {
  display: grid;
  gap: 16px;
}

.ws-section-box {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.ws-section-title {
  margin: 0 0 16px 0;
  font-weight: 600;
}

.ws-hint-sm {
  margin-top: 8px;
  font-size: 12px;
}

.ws-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.ws-design-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ws-design-hint {
  font-size: 13px;
}

.ws-btn-fullwidth {
  width: 100%;
}

.ws-design-preview-mt {
  margin-top: 16px;
}

.ws-select-narrow {
  max-width: 200px;
}

.ws-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ws-card-content {
  flex: 1;
}

.ws-card-title {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.ws-toggle-inline {
  margin: 0;
}

.ws-card-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.ws-dropdown-wrap {
  position: relative;
}

.ws-dropdown-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 18px;
}

.ws-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 48px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 12px;
  min-width: 200px;
  z-index: 999;
  box-shadow: var(--shadow-card);
  padding: 8px;
}

.ws-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.ws-form-hidden {
  display: none;
}

.ws-url-row {
  margin-top: 16px;
}

.ws-url-input {
  display: none;
  margin-top: 12px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid var(--border);
  font-family: monospace;
  font-size: 13px;
  box-sizing: border-box;
}

.ws-url-actions {
  display: none;
  margin-top: 12px;
  flex-wrap: wrap;
}

.ws-url-actions-visible {
  display: flex;
  gap: 12px;
}

.ws-url-input-visible {
  display: block;
}

.ws-editor-visible {
  display: block;
}

.ws-dropdown-menu-visible {
  display: block;
}

.ws-period-visible {
  display: block;
}

.ws-period-hidden {
  display: none;
}

.ws-speed-visible {
  display: block;
}

.ws-speed-hidden {
  display: none;
}

.ws-items-visible {
  display: block;
}

.ws-items-hidden {
  display: none;
}

/* ===== TTS Admin (admin/tts-admin.ejs) ===== */

/* ===== TTS Admin (admin/tts-admin.ejs) ===== */
.tts-admin-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.tts-admin-title {
  margin-bottom: 24px;
}

.tts-admin-tabs {
  margin-bottom: 24px;
}

.tts-admin-desc {
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.tts-admin-grid {
  display: grid;
  gap: 20px;
}

.tts-cache-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.tts-stat-card-bordered {
  padding: 20px;
  background: var(--card);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.tts-stat-value-sm {
  font-size: 1rem;
  font-weight: 600;
}

.tts-cache-unavailable {
  color: var(--text-secondary);
  margin-top: 16px;
}

.tts-config-desc {
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.tts-config-grid {
  display: grid;
  gap: 16px;
}

.tts-config-card {
  padding: 16px;
  border-radius: 8px;
}

.tts-config-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.tts-config-value {
  font-size: 1.25rem;
}

.tts-chart-section {
  margin-bottom: 32px;
}

.tts-chart-title {
  margin-bottom: 16px;
  color: var(--text);
}

.tts-chart-container {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 200px;
  padding: 16px;
  background: var(--bg-elev);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.tts-chart-bar-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tts-chart-bar-blue {
  width: 100%;
  background: linear-gradient(to top, #3b82f6, #60a5fa);
  border-radius: 4px 4px 0 0;
}

.tts-chart-bar-green {
  width: 100%;
  background: linear-gradient(to top, #10b981, #34d399);
  border-radius: 4px 4px 0 0;
}

.tts-chart-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  transform: rotate(-45deg);
  transform-origin: top left;
  white-space: nowrap;
  margin-top: 4px;
}

.tts-status-success {
  color: #10B981;
}

.tts-status-error {
  color: #EF4444;
}

.tts-field-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.875rem;
  opacity: 0.7;
}

.tts-api-key-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.tts-warning-box {
  margin-top: 24px;
  padding: 16px;
  border-left: 4px solid #F59E0B;
  border-radius: 8px;
}

.tts-warning-text {
  margin: 0;
  font-size: 0.875rem;
}

.tts-select-narrow {
  max-width: 200px;
}

.tts-cache-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

/* ===== Support admin (admin/support-fyra.ejs) ===== */

/* ===== Support admin (admin/support-fyra.ejs) ===== */
.sp-tabs {
  margin-bottom: 24px;
}

.sp-card-mb {
  margin-bottom: 24px;
}

.sp-filters-form {
  margin-bottom: 24px;
}

.sp-input-id {
  width: 90px;
}

.sp-input-user {
  width: 140px;
}

.sp-th-center,
.sp-td-center {
  text-align: center;
}

.sp-td-mono {
  font-family: monospace;
  color: #6B7280;
}

.sp-td-ellipsis {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-td-sm {
  font-size: 0.875rem;
}

.sp-td-muted {
  color: #6B7280;
  white-space: nowrap;
}

.sp-btn-view {
  padding: 4px 12px;
  font-size: 0.75rem;
}

.sp-empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.3;
}

.sp-empty-text {
  margin: 0;
  font-size: 1.125rem;
}

.sp-tpl-row {
  margin-bottom: 16px;
}

.sp-select-full {
  width: 100%;
}

/* ===== Finances admin (admin/finances-fyra.ejs) ===== */

/* ===== Finances admin (admin/finances-fyra.ejs) ===== */
.fn-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.fn-card-amber {
  border-left: 4px solid var(--amber-light);
}

.fn-card-peach {
  border-left: 4px solid var(--peach-start);
}

.fn-stat-label {
  opacity: 0.7;
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.fn-stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--amber-light);
}

.fn-stat-value-peach {
  color: var(--peach-start);
}

.fn-tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

.fn-th-center,
.fn-td-center {
  text-align: center;
}

.fn-td-medal {
  font-size: 1.25rem;
}

.fn-td-name {
  font-weight: 500;
}

.fn-td-amount {
  font-weight: 600;
  color: var(--amber-light);
}

.fn-empty-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  opacity: 0.3;
}

.fn-empty-text {
  margin: 0;
}

.fn-link-user {
  color: var(--neon-blue);
  text-decoration: none;
  font-weight: 500;
}

.fn-row-border {
  border-bottom: 1px solid #E5E7EB;
}

/* ===== Marketing admin (admin/marketing-fyra.ejs) ===== */

/* ===== Marketing admin (admin/marketing-fyra.ejs) ===== */
.mk-grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: start;
}

.mk-forms-grid {
  display: grid;
  gap: 24px;
}

.mk-form-grid {
  display: grid;
  gap: 12px;
}

.mk-form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mk-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mk-hr {
  margin: 24px 0;
  border: none;
  border-top: 2px solid #E5E7EB;
}

.mk-section-title {
  margin: 0 0 16px 0;
  font-weight: 600;
}

.mk-table-wrap {
  overflow-x: auto;
}

.mk-badge-active {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #d4edda;
  color: #155724;
}

.mk-badge-inactive {
  background: #f8d7da;
  color: #721c24;
}

.mk-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}

.mk-list-item {
  padding: 12px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mk-list-item-active {
  background: #d4edda;
}

.mk-list-item-inactive {
  background: #f8d7da;
}

.mk-item-name {
  color: var(--text);
  font-weight: 600;
}

.mk-item-badge {
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.mk-item-badge-active {
  background: #155724;
  color: white;
}

.mk-item-badge-inactive {
  background: #721c24;
  color: white;
}

.mk-hint {
  margin-top: 4px;
}

.mk-exp-item {
  padding: 12px;
  background: var(--bg-elev);
  border: 2px solid var(--border);
  border-radius: 8px;
}

.mk-exp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.mk-exp-code {
  font-weight: 600;
  color: var(--text);
}

.mk-form-grid-inline {
  display: grid;
  gap: 12px;
}

.mk-form-2col-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mk-checkbox-row-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mk-hr-inline {
  margin: 24px 0;
  border: none;
  border-top: 2px solid #E5E7EB;
}

.mk-section-title-inline {
  margin: 0 0 16px 0;
  font-weight: 600;
}

.mk-list-inline {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}

.mk-list-item-promo {
  padding: 12px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mk-list-item-promo-active {
  background: #d4edda;
}

.mk-list-item-promo-inactive {
  background: #f8d7da;
}

.mk-item-name-inline {
  color: var(--text);
}

.mk-item-badge-inline {
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.mk-item-badge-inline-active {
  background: #155724;
  color: white;
}

.mk-item-badge-inline-inactive {
  background: #721c24;
  color: white;
}

.mk-exp-item-inline {
  padding: 12px;
  background: var(--bg-elev);
  border: 2px solid var(--border);
  border-radius: 8px;
}

.mk-exp-header-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.mk-exp-code-inline {
  font-weight: 600;
  color: var(--text);
}

.mk-exp-name-inline {
  font-size: 0.875rem;
  color: var(--text);
}

.mk-hint-inline {
  margin-top: 4px;
}

/* ===== Advanced admin (admin/advanced-fyra.ejs) ===== */

/* ===== Advanced admin (admin/advanced-fyra.ejs) ===== */
.adv-color-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.adv-btn-color {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.adv-color-preview {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background-image: linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(-45deg, #ccc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccc 75%), linear-gradient(-45deg, transparent 75%, #ccc 75%);
  background-size: 10px 10px;
  background-position: 0 0, 0 5px, 5px -5px, -5px 0;
  box-shadow: inset 0 0 0 1000px rgba(0,0,0,0.2);
}

.adv-color-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

.adv-alpha-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.adv-alpha-label {
  font-weight: 500;
}

.adv-range-flex {
  flex: 1;
}

.adv-alpha-value {
  font-weight: 600;
  min-width: 40px;
  text-align: right;
}

.adv-hint-block {
  display: block;
  margin-top: 8px;
}

.adv-actions-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.adv-card-mt {
  margin-top: 24px;
}

.adv-desc {
  margin-bottom: 16px;
}

.adv-desc-lg {
  margin-bottom: 24px;
}

.adv-url-box {
  display: none;
  margin-top: 16px;
  padding: 12px;
  background: var(--bg-elev);
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: auto;
  white-space: nowrap;
  font-family: monospace;
}

.adv-url-actions {
  margin-top: 12px;
  display: flex;
  gap: 12px;
}

.adv-grid {
  display: grid;
  gap: 16px;
}

.adv-stat-card {
  padding: 20px;
  background: var(--bg-elev);
  border: 2px solid var(--border);
  border-radius: 12px;
}

.adv-stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.adv-stat-title {
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.adv-stat-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.adv-form-inline {
  display: inline;
}

.adv-btn-delete {
  background: #dc3545;
  color: white;
}

.adv-token-box {
  padding: 12px;
  background: var(--card);
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  margin-bottom: 16px;
  font-family: monospace;
  overflow: auto;
  white-space: nowrap;
  font-size: 0.9rem;
}

.adv-tabs-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.adv-tab-btn {
  cursor: pointer;
}

.adv-url-box-visible {
  display: block;
}

.adv-url-actions-visible {
  display: flex;
}

.adv-stat-grid {
  display: grid;
  gap: 16px;
}

.adv-stat-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.adv-stat-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.adv-stat-hint {
  margin-top: 4px;
}

.adv-stat-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.adv-stat-submit {
  margin-top: 16px;
}

.adv-stat-tab-pane-hidden {
  display: none;
}

.adv-divider {
  margin: 32px 0;
  border: none;
  border-top: 2px solid #E5E7EB;
}

.adv-create-title {
  margin: 0 0 16px 0;
  font-weight: 600;
}

/* ===== Legal documents (admin/legal-documents-fyra.ejs) ===== */

/* ===== Legal documents (admin/legal-documents-fyra.ejs) ===== */
.ld-file-input {
  padding: 8px;
}

.ld-tabs {
  margin-bottom: 24px;
}

.ld-empty {
  text-align: center;
  padding: 40px;
  opacity: 0.6;
}

.ld-form {
  max-width: 900px;
}

.ld-form-grid {
  display: grid;
  gap: 20px;
}

.ld-field-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.875rem;
  opacity: 0.7;
}

.ld-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ld-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.ld-checkbox {
  width: auto;
}

.ld-actions-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.ld-desc {
  opacity: 0.7;
  margin-bottom: 24px;
}

.ld-upload-grid {
  display: grid;
  gap: 32px;
}

/* ===== Moderation admin (admin/moderation-fyra.ejs) ===== */

/* ===== Moderation admin (admin/moderation-fyra.ejs) ===== */
.md-content-cell {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Widget Wheel (widget_wheel.ejs) */
.ww-manual-hint {
  color: #ffc107;
}

.mod-form {
  margin-bottom: 32px;
}

.mod-filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  max-width: 800px;
}

.mod-btn-end {
  align-self: end;
}

.mod-table-wrap {
  overflow-x: auto;
}

.mod-th-checkbox {
  width: 50px;
}

.mod-pre {
  margin: 0;
  font-size: 0.85rem;
  max-width: 200px;
  overflow: auto;
}

.mod-td-actions {
  white-space: nowrap;
}

.mod-btn-approve {
  background: #4caf50;
  color: white;
  margin-right: 4px;
}

.mod-btn-reject {
  background: #dc3545;
  color: white;
}

.mod-actions-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.mod-card-mt {
  margin-top: 24px;
}

.mod-td-ellipsis {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Twitch EventSub (admin/twitch-eventsub-fyra.ejs) ===== */

/* Widget Wheel (widget_wheel.ejs) */
.ww-manual-hint {
  color: #ffc107;
}

.mod-form {
  margin-bottom: 32px;
}

.mod-filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  max-width: 800px;
}

.mod-btn-end {
  align-self: end;
}

.mod-table-wrap {
  overflow-x: auto;
}

.mod-th-checkbox {
  width: 50px;
}

.mod-pre {
  margin: 0;
  font-size: 0.85rem;
  max-width: 200px;
  overflow: auto;
}

.mod-td-actions {
  white-space: nowrap;
}

.mod-btn-approve {
  background: #4caf50;
  color: white;
  margin-right: 4px;
}

.mod-btn-reject {
  background: #dc3545;
  color: white;
}

.mod-actions-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.mod-card-mt {
  margin-top: 24px;
}

.mod-td-ellipsis {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Twitch EventSub (admin/twitch-eventsub-fyra.ejs) ===== */

/* ===== Twitch EventSub (admin/twitch-eventsub-fyra.ejs) ===== */
.tw-card-mb {
  margin-bottom: 24px;
}

.tw-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tw-stat-card {
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}

.tw-stat-label {
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.tw-stat-value {
  font-size: 1.5rem;
  font-weight: 600;
}

.tw-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tw-result {
  margin-top: 12px;
}

.tw-loading {
  display: none;
  padding: 24px;
  text-align: center;
  color: var(--muted, #6B7280);
}

.tw-loading-visible {
  display: block;
}

.tw-table-hidden {
  display: none !important;
}

.tw-table-visible {
  display: block !important;
}

.tw-empty {
  display: none;
  padding: 24px;
  text-align: center;
  color: var(--muted, #6B7280);
}

.tw-empty-visible {
  display: block;
}

.tw-message {
  padding: 12px;
  border-radius: 8px;
}

.tw-message-success {
  background: rgba(5, 150, 105, 0.12);
  color: #059669;
}

.tw-message-error {
  background: rgba(220, 38, 38, 0.12);
  color: #DC2626;
}

.tw-message-info {
  background: rgba(59, 130, 246, 0.12);
  color: #3B82F6;
}

/* Таблица EventSub - контейнер с прокруткой */
#subscriptions-table .fyra-table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Таблица EventSub - базовые стили */
#subscriptions-table .fyra-table {
  width: 100%;
  min-width: 1000px;
  border-collapse: collapse;
}

#subscriptions-table .fyra-table th,
#subscriptions-table .fyra-table td {
  padding: 12px 16px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

#subscriptions-table .fyra-table th {
  font-weight: 600;
  background: var(--bg-elev, #F3F4F6);
  border-bottom: 2px solid var(--border, #E5E7EB);
}

#subscriptions-table .fyra-table tr {
  border-bottom: 1px solid var(--border, #E5E7EB);
}

#subscriptions-table .fyra-table tbody tr:last-child {
  border-bottom: none;
}

#subscriptions-table .fyra-table tbody tr:hover {
  background: rgba(255, 184, 77, 0.08);
}

/* Subscription ID - можно переносить */
#subscriptions-table .fyra-table td:nth-child(5) {
  white-space: normal;
  word-break: break-all;
  max-width: 280px;
  font-size: 0.75rem;
}

/* Стили ячеек */
.tw-td-center {
  text-align: center;
}

.tw-td-monospace {
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 0.85rem;
  color: var(--muted, #6B7280);
}

.tw-td-username {
  font-weight: 500;
}

.tw-td-broadcaster {
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 0.85rem;
  color: var(--muted, #6B7280);
}

.tw-td-subscription {
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 0.75rem;
  color: var(--muted, #6B7280);
}

.tw-td-date {
  font-size: 0.85rem;
  color: var(--muted, #6B7280);
}

.tw-td-actions {
  white-space: nowrap;
}

.tw-actions-inner {
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

/* Темная тема */
[data-theme="dark"] #subscriptions-table .fyra-table th {
  background: var(--bg-elev, #1F2937);
  color: var(--text, #E8EAED);
  border-bottom-color: var(--border, #374151);
}

[data-theme="dark"] #subscriptions-table .fyra-table tr {
  border-bottom-color: var(--border, #374151);
}

[data-theme="dark"] #subscriptions-table .fyra-table td {
  color: var(--text, #E8EAED);
}

[data-theme="dark"] .tw-td-monospace,
[data-theme="dark"] .tw-td-broadcaster,
[data-theme="dark"] .tw-td-subscription,
[data-theme="dark"] .tw-td-date {
  color: #9CA3AF;
}

/* ===== TTS Settings (admin/tts-settings.ejs) ===== */

/* ===== TTS Settings (admin/tts-settings.ejs) ===== */
.tts-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
}

.tts-title {
  margin-bottom: 24px;
}

.tts-card-mb {
  margin-bottom: 24px;
}

.tts-form-grid {
  display: grid;
  gap: 20px;
}

.tts-checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.tts-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.tts-checkbox-label {
  font-weight: 500;
  font-size: 1rem;
}

.tts-range-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tts-range-flex {
  flex: 1;
}

.tts-range-value {
  min-width: 50px;
  text-align: right;
  font-weight: 600;
}

.tts-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.875rem;
  opacity: 0.7;
}

.tts-variables-hint {
  margin-top: 8px;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.875rem;
}

.tts-actions-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.tts-grid-16 {
  display: grid;
  gap: 16px;
}

.tts-test-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.tts-audio-player {
  display: none;
}

.tts-audio {
  width: 100%;
}

.tts-user-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.tts-user-stat-card {
  padding: 16px;
  border-radius: 8px;
}

.tts-user-stat-label {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-bottom: 4px;
}

/* ===== Widget text (widget/text-fyra.ejs) ===== */

/* ===== Widget text (widget/text-fyra.ejs) ===== */
.wt-form-grid {
  display: grid;
  gap: 20px;
}

.wt-hint {
  margin-top: 6px;
  display: block;
}

.wt-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.wt-color-input {
  width: 100%;
  height: 48px;
  cursor: pointer;
  border: 2px solid var(--border);
  border-radius: 12px;
}

.wt-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.wt-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.wt-toggle-label {
  font-weight: 500;
  color: var(--text);
}

.wt-toggle-checkbox {
  width: 20px;
  height: 20px;
}

.wt-actions-title {
  margin: 0 0 16px 0;
  font-weight: 600;
}

.wt-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== Cookie policy (cookie-policy.ejs) ===== */

/* ===== Auction Admin Panel (widget/auction_admin-fyra.ejs) ===== */
.aap-text-mb {
  margin-bottom: 16px;
}

.aap-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.aap-select-row {
  display: flex;
  gap: 12px;
  align-items: end;
  flex: 1;
  min-width: 320px;
}

.aap-select-col {
  flex: 1;
}

.aap-widget-block {
  display: none;
}

.aap-widget-title {
  margin: 0 0 16px 0;
  font-weight: 600;
  color: var(--neon-blue);
}

.aap-url-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.aap-url-input {
  flex: 1;
  min-width: 300px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid var(--border);
  font-size: 14px;
  font-family: monospace;
}

.aap-hint {
  margin-top: 12px;
  font-size: 13px;
}

.aap-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.5);
}

.aap-modal-content {
  background: var(--card);
  margin: 10% auto 3% auto;
  padding: 24px;
  border: 2px solid var(--border);
  border-radius: 12px;
  width: 90%;
  max-width: 520px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-height: 80vh;
  overflow-y: auto;
}

.aap-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.aap-modal-title {
  margin: 0;
  font-weight: 700;
  font-size: 20px;
}

.aap-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aap-form-grid {
  display: grid;
  gap: 16px;
}

.aap-input-full {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  box-sizing: border-box;
}

.aap-textarea-full {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  resize: vertical;
  min-height: 100px;
  max-height: 250px;
  font-family: inherit;
  line-height: 1.5;
  box-sizing: border-box;
}

.aap-select-full {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
}

.aap-form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.aap-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
  margin-top: 8px;
}

.aap-btn-flex {
  flex: 1;
  min-width: 120px;
}

.aap-tabs-grid {
  display: block;
  width: 100%;
}

.aap-section-title {
  margin: 0 0 14px 0;
  font-weight: 600;
  font-size: 17px;
}

.aap-form-grid-20 {
  display: grid;
  gap: 10px;
}

.aap-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid var(--border);
  box-sizing: border-box;
}

.aap-toggle-label {
  font-weight: 500;
  font-size: 14px;
}

.aap-toggle-inline {
  margin: 0;
  flex-shrink: 0;
}

.aap-grid-auto {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.aap-grid-auto > div {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid var(--border);
  box-sizing: border-box;
}

.aap-grid-auto > div .fyra-form-label {
  flex-shrink: 0;
  margin-bottom: 6px;
  font-size: 13px;
}

@media (max-width: 768px) {
  .aap-grid-auto {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .aap-grid-auto {
    grid-template-columns: 1fr;
  }
}

/* Для блока настроек таймера - сетка на всю ширину */
.aap-timer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.aap-timer-grid > div {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid var(--border);
  box-sizing: border-box;
}

.aap-timer-grid > div .fyra-form-label {
  flex-shrink: 0;
  margin-bottom: 6px;
  font-size: 13px;
  line-height: 1.3;
}

.aap-timer-grid > div input[type="number"] {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .aap-timer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .aap-timer-grid {
    grid-template-columns: 1fr;
  }
}

.aap-hint-sm {
  margin-top: 4px;
  margin-bottom: 0;
  font-size: 11px;
  opacity: 0.6;
  line-height: 1.2;
}

.aap-checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid var(--border);
  box-sizing: border-box;
}

.aap-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.aap-checkbox-label {
  font-weight: 500;
  font-size: 14px;
}

.aap-actions-padding {
  padding-top: 6px;
}

.aap-bg-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.aap-bg-filename {
  flex: 1;
  min-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}

.aap-btn-clear {
  width: 40px;
  padding: 0;
}

.aap-file-hidden {
  display: none;
}

.aap-hint-file {
  margin-top: 8px;
  font-size: 12px;
}

.aap-preview-hidden {
  display: none;
}

.aap-preview-img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.aap-color-input {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  border: 2px solid var(--border);
  cursor: pointer;
}

.aap-actions-flex {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.aap-twitch-section {
  margin-top: 20px;
  padding: 20px;
  background: #1f2937;
  border-radius: 8px;
  border: 1px solid #374151;
}

.aap-twitch-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.aap-twitch-icon {
  font-size: 20px;
}

.aap-twitch-title {
  margin: 0;
  font-weight: 600;
  font-size: 16px;
  color: #f3f4f6;
}

.aap-twitch-form {
  display: grid;
  gap: 16px;
}

.aap-twitch-toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 12px;
}

.aap-twitch-toggle {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.aap-twitch-toggle-label {
  font-weight: 500;
  color: #e5e7eb;
}

.aap-twitch-hint {
  font-size: 12px;
  color: #9ca3af;
  margin-left: 26px;
}

.aap-twitch-settings {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #374151;
}

.aap-twitch-settings-title {
  font-size: 14px;
  font-weight: 600;
  color: #d1d5db;
  margin-bottom: 16px;
}

.aap-twitch-rewards-grid {
  display: grid;
  gap: 12px;
}

.aap-twitch-reward-card {
  padding: 14px;
  background: #111827;
  border-radius: 6px;
  border: 1px solid #374151;
}

.aap-twitch-reward-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 8px;
}

.aap-twitch-reward-input {
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 8px;
  border: 1px solid #4b5563;
  border-radius: 4px;
  background: #0f172a;
  color: #f3f4f6;
  font-size: 14px;
  box-sizing: border-box;
}

.aap-twitch-reward-input-last {
  margin-bottom: 0;
}

.aap-twitch-info {
  margin-top: 16px;
  padding: 12px;
  background: #1e3a5f;
  border-radius: 6px;
  border-left: 3px solid #3b82f6;
}

.aap-twitch-info-text {
  font-size: 12px;
  color: #93c5fd;
}

.aap-form-actions {
  padding-top: 8px;
  margin-top: 8px;
}

.ld-statistics-loading {
  text-align: center;
  padding: 40px;
  opacity: 0.6;
}

.ld-error-message {
  padding: 24px;
  color: #EF4444;
}

.ld-document-card {
  margin-bottom: 24px;
}

.ld-document-empty {
  opacity: 0.6;
  padding: 20px;
}

.ld-documents-grid {
  display: grid;
  gap: 16px;
}

.ld-document-item {
  padding: 16px;
  background: var(--bg-elev, #F9FAFB);
  border-radius: 8px;
  border: 1px solid var(--border, #E5E7EB);
}

.ld-document-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ld-document-version {
  font-size: 1.1rem;
}

.ld-document-date {
  margin-left: 12px;
  opacity: 0.7;
  font-size: 0.875rem;
}

.ld-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}

.ld-badge-active {
  background: #10B981;
}

.ld-badge-inactive {
  background: #6B7280;
}

.ld-document-summary {
  margin: 8px 0;
  font-size: 0.875rem;
  opacity: 0.8;
}

.ld-document-file {
  margin: 8px 0;
  padding: 8px 12px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ld-document-file-link {
  color: #3B82F6;
  text-decoration: underline;
}

.ld-file-delete-btn {
  background: none;
  border: none;
  color: #EF4444;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0 4px;
  margin-left: auto;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.ld-file-delete-btn:hover {
  opacity: 1;
}

.ld-document-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.ld-document-btn {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.ld-upload-card {
  padding: 24px;
}

.ld-upload-title {
  margin: 0 0 16px 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.ld-upload-form {
  display: grid;
  gap: 16px;
}

.ld-upload-form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.ld-upload-status {
  opacity: 0.7;
  font-size: 0.875rem;
}

.ld-statistics-grid {
  display: grid;
  gap: 16px;
}

.ld-statistics-item {
  padding: 16px;
  background: var(--bg-elev, #F9FAFB);
  border-radius: 8px;
  border: 1px solid var(--border, #E5E7EB);
}

.ld-statistics-meta {
  margin-top: 8px;
  opacity: 0.8;
}

.ld-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ld-modal-hidden {
  display: none !important;
}

.ld-status-error {
  color: #EF4444;
}

.ld-status-success {
  color: #10B981;
}

.ld-modal {
  background: var(--bg-secondary, #1e293b);
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.ld-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.ld-modal-close {
  background: none;
  border: none;
  color: var(--text-secondary, #94a3b8);
  font-size: 28px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.ld-modal-close:hover {
  color: var(--text-primary, #fff);
}

.pd-chart-pointer {
  cursor: pointer;
}

.pd-chart-default {
  cursor: default;
}

.pd-modal-visible {
  display: flex;
}

.pd-widget-url-visible {
  display: block;
}

.pd-widget-url-hidden {
  display: none;
}

.pd-btn-success {
  background: #10B981;
}

.pd-2fa-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.pd-2fa-toggle-label {
  font-weight: 500;
}

.pd-2fa-methods {
  margin-left: 24px;
  padding-left: 12px;
  border-left: 2px solid #3a3f4b;
}

.pd-2fa-methods-hidden {
  display: none;
}

.pd-2fa-method-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  cursor: pointer;
}

.pd-2fa-method-row-disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.pd-2fa-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #8086a3;
}

.pd-2fa-actions {
  margin-top: 16px;
}

.pd-2fa-status {
  margin-left: 12px;
}

.pd-status-error {
  color: #f44336;
}

.pd-status-success {
  color: #4caf50;
}

.pd-tab-content-visible {
  display: block;
}

.pd-tab-content-hidden {
  display: none;
}

.pd-tab-bar-visible {
  display: flex;
}

.pd-tab-bar-hidden {
  display: none;
}

.pd-email-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
}

.pd-email-modal-visible {
  display: flex;
}

.pd-email-modal-content {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  max-width: 480px;
  width: 90%;
  position: relative;
}

.pd-email-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-email-modal-title {
  margin: 0 0 12px 0;
}

.pd-email-modal-text {
  margin: 8px 0;
  color: var(--text-muted);
  font-size: 14px;
}

.pd-email-modal-info {
  margin: 8px 0 12px 0;
  color: #9aa6b2;
  font-size: 13px;
}

.pd-email-error {
  display: none;
  color: #ff6b6b;
  font-size: 13px;
  margin: 8px 0;
}

.pd-email-error-visible {
  display: block;
}

.pd-email-actions {
  margin-top: 16px;
}

/* ===== Roulette Widget (widget/roulette.ejs) - дополнительные классы ===== */

/* ===== Roulette Widget (widget/roulette.ejs) - дополнительные классы ===== */
.rw-status-error {
  background: rgba(255, 69, 58, 0.15);
  color: #ff453a;
}

.rw-status-success {
  background: rgba(48, 209, 88, 0.15);
  color: #30d158;
}

.rw-status-info {
  background: rgba(109, 94, 252, 0.15);
  color: #6d5efc;
}

.rw-pane-visible {
  display: block;
}

.rw-pane-hidden {
  display: none;
}

.rw-pane-active {
  box-shadow: inset 0 0 0 1px var(--border);
  border-radius: 10px;
  padding: 4px;
  margin-top: 2px;
}

.rw-pane-inactive {
  box-shadow: inset 0 0 0 0 transparent;
  border-radius: 10px;
  padding: 4px;
  margin-top: 2px;
}

.rw-list-loading {
  grid-column: 1 / -1;
  color: #9aa6b2;
}

.rw-list-item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rw-warning-visible {
  display: block;
}

.rw-warning-hidden {
  display: none;
}

/* ===========================================
   Widget Layout Page (widget/layout.ejs)
   =========================================== */

.wl-card {
  margin: 8px 0;
}

.wl-title {
  margin: 0 0 8px 0;
}

.wl-help {
  margin-top: 6px;
  color: #8086a3;
  font-size: 12px;
}

.wl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.wl-option {
  display: block;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
}

.wl-option-full {
  grid-column: 1 / -1;
}

.wl-thumb {
  opacity: 0.9;
  margin-top: 8px;
}

.wl-thumb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: center;
}

.wl-img-placeholder {
  height: 54px;
  background: #20263a;
  border-radius: 8px;
}

.wl-img-placeholder-tall {
  height: 90px;
  border-radius: 8px;
  background: linear-gradient(0deg, rgba(0,0,0,0.45), rgba(0,0,0,0.45)), #20263a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wl-text-line {
  height: 8px;
  background: #2a3046;
  border-radius: 4px;
}

.wl-text-line-70 {
  width: 70%;
}

.wl-text-line-55 {
  width: 55%;
}

.wl-text-line-90 {
  width: 90%;
}

.wl-text-line-60 {
  width: 60%;
}

.wl-text-line-center {
  margin: 0 auto;
}

.wl-text-line-mb6 {
  margin-bottom: 6px;
}

.wl-text-line-mb8 {
  margin-bottom: 8px;
}

.wl-text-line-overlay {
  height: 10px;
  background: #9aa6b2;
  border-radius: 4px;
  width: 60%;
}

.wl-label {
  margin-top: 8px;
  font-size: 13px;
}

.wl-label-center {
  text-align: center;
}

/* ===========================================
   Admin Settings Page (admin/settings-fyra.ejs)
   =========================================== */

.aset-tabs {
  margin-bottom: 24px;
}

.aset-form {
  max-width: 600px;
}

.aset-form-wide {
  max-width: 700px;
}

.aset-input-full {
  width: 100%;
}

.aset-label-mt {
  margin-top: 16px;
}

.aset-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.875rem;
  opacity: 0.7;
}

.aset-btn-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.aset-divider {
  margin: 32px 0;
  border: none;
  border-top: 2px solid #E5E7EB;
}

.aset-h3 {
  margin: 0 0 16px 0;
  font-weight: 600;
}

.aset-warning {
  margin-top: 16px;
  padding: 12px 16px;
  background: #FEF3C7;
  border-left: 4px solid #F59E0B;
  border-radius: 8px;
}

.aset-warning-text {
  margin: 0;
  font-size: 0.875rem;
  color: #92400E;
}

.aset-grid {
  display: grid;
  gap: 16px;
}

.aset-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.aset-checkbox {
  width: auto;
}

/* ===========================================
   Admin User Show Page (admin/user_show.ejs)
   =========================================== */

.aus-warning {
  color: #f59e0b;
  display: block;
  margin-top: 4px;
}

.aus-help {
  margin: 6px 0;
  color: #8086a3;
  font-size: 12px;
}

.aus-card {
  margin: 8px 0;
}

.aus-h4 {
  margin: 0 0 8px 0;
}

.aus-h4-mt {
  margin-top: 16px;
}

.aus-scroll {
  overflow: auto;
}

.aus-form-inline {
  display: inline;
}

.aus-container {
  margin-bottom: 16px;
}

.aus-text-muted {
  color: #8086a3;
  font-size: 14px;
}

.aus-text-error {
  color: #f44336;
  font-size: 14px;
}

.aus-badge-active {
  background: #2196f3;
}

/* ===========================================
   Admin Text Widget Page (admin/text.ejs)
   =========================================== */

.atw-h3 {
  margin: 0 0 16px 0;
  font-weight: 600;
}

.atw-help {
  margin-top: 6px;
  color: #8086a3;
  font-size: 12px;
}

.atw-style-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.atw-icon {
  font-size: 20px;
}

.atw-label {
  opacity: 0.8;
  font-size: 14px;
  min-width: 160px;
}

.atw-actions {
  display: flex;
  gap: 12px;
}

.atw-dialog {
  padding: 0;
  border: none;
  border-radius: 8px;
  max-width: 560px;
  width: 100%;
}

.atw-dialog-form {
  padding: 16px;
}

.atw-dialog-h4 {
  margin: 0 0 12px 0;
}

.atw-dialog-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ===========================================
   Widget Group Fyra Page (widget/group-fyra.ejs)
   =========================================== */

.wgf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.wgf-text-muted {
  margin-top: 8px;
  font-size: 13px;
}

.wgf-btn-nowrap {
  white-space: nowrap;
}

.wgf-variants {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.wgf-tile {
  padding: 20px;
  border: 2px solid var(--border);
  border-radius: 16px;
  position: relative;
  background: var(--card);
  transition: all 0.3s ease;
}

.wgf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.wgf-title {
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  color: var(--text);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wgf-platform-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.wgf-icon-twitch {
  color: #9146FF;
}

.wgf-icon-youtube {
  color: #FF0000;
}

.wgf-icon-vk {
  color: #0077FF;
}

.wgf-icon-donation {
  color: var(--amber-light, #FFB84D);
}

.wgf-title-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wgf-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wgf-toggle-label {
  margin: 0;
}

.wgf-menu-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 18px;
}

.wgf-menu {
  display: none;
  position: absolute;
  right: 12px;
  top: 60px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 12px;
  min-width: 200px;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  padding: 8px;
  overflow: hidden;
}

.wgf-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

/* ===========================================
   Widget Image Fyra Page (widget/image-fyra.ejs)
   =========================================== */

.wif-text-mb {
  margin-bottom: 20px;
}

.wif-grid {
  display: grid;
  gap: 20px;
}

.wif-input-file {
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  width: 100%;
  cursor: pointer;
}

.wif-current-box {
  padding: 16px;
  background: rgba(255,184,77,0.05);
  border: 2px solid rgba(255,184,77,0.2);
  border-radius: 12px;
}

.wif-current-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.wif-current-preview {
  margin: 12px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  padding: 12px;
  min-height: 150px;
}

.wif-preview-img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  object-fit: contain;
}

.wif-current-name {
  font-size: 14px;
  color: #6B7280;
  word-break: break-all;
  margin-bottom: 12px;
}

.wif-section-divider {
  border-top: 2px solid #E5E7EB;
  padding-top: 20px;
}

.wif-size-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.wif-size-title {
  font-weight: 600;
  color: var(--text);
}

.wif-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 16px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 12px;
}

.wif-checkbox-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.wif-checkbox {
  width: 20px;
  height: 20px;
}

.wif-size-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.wif-hint {
  margin-top: 12px;
  font-size: 12px;
}

.wif-h3 {
  margin: 0 0 16px 0;
  font-weight: 600;
}

.wif-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===========================================
   Widget Sound Fyra Page (widget/sound-fyra.ejs)
   =========================================== */

.wsf-text-mb {
  margin-bottom: 20px;
}

.wsf-grid {
  display: grid;
  gap: 20px;
}

.wsf-input-file {
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  width: 100%;
  cursor: pointer;
}

.wsf-current-box {
  padding: 16px;
  background: rgba(255,184,77,0.05);
  border: 2px solid rgba(255,184,77,0.2);
  border-radius: 12px;
}

.wsf-current-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.wsf-current-name {
  font-size: 14px;
  color: #6B7280;
}

.wsf-buttons-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.wsf-volume-box {
  padding: 16px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 12px;
}

.wsf-volume-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.wsf-volume-label {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.wsf-volume-slider {
  flex: 1;
  min-width: 150px;
}

.wsf-volume-input-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.wsf-volume-input {
  width: 68px;
  padding: 8px;
  border: 2px solid var(--border);
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
}

.wsf-volume-percent {
  font-weight: 600;
  color: var(--text);
}

.wsf-h3 {
  margin: 0 0 16px 0;
  font-weight: 600;
}

.wsf-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===========================================
   Admin Group Page (admin/group.ejs)
   =========================================== */

.ag-card {
  margin: 8px 0;
}

.ag-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ag-h4 {
  margin: 0 0 4px 0;
}

.ag-help {
  margin-top: 2px;
  color: #8086a3;
  font-size: 12px;
}

.ag-btn-nowrap {
  white-space: nowrap;
}

.ag-variants {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.ag-tile {
  padding: 12px 12px 10px;
  border: 2px solid var(--border);
  border-radius: 12px;
  min-width: 200px;
  position: relative;
  background: var(--card);
}

.ag-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.ag-title {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--text);
}

.ag-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ag-menu-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 8px;
  color: var(--text);
}

.ag-menu {
  display: none;
  position: absolute;
  right: 8px;
  top: 36px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 220px;
  z-index: 5;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  padding: 6px;
}

.ag-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* ===========================================
   Donation Fyra Partial (partials/donation-fyra.ejs)
   =========================================== */

.dn-file-group {
  margin-bottom: 24px;
}

.dn-file-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.dn-file-input {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}

.dn-preview-mb {
  margin-bottom: 32px;
}

.dn-submit-row {
  display: flex;
  justify-content: flex-end;
}

.dn-submit-btn {
  padding: 14px 32px;
  font-size: 1.0625rem;
}

.dn-minimums-h2 {
  margin: 0 0 24px 0;
  font-weight: 600;
}

.dn-info-box {
  background: #EFF6FF;
  border: 2px solid #93C5FD;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 32px;
}

.dn-info-text {
  margin: 0;
  font-size: 0.9375rem;
  color: #1E3A8A;
  line-height: 1.6;
}

.dn-minimums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.dn-minimum-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.dn-minimum-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.2s;
  background: var(--card);
  color: var(--text);
}

.dn-minimums-submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

/* Widget Advanced Settings (widget/advanced-fyra.ejs) */

/* Widget Advanced Settings (widget/advanced-fyra.ejs) */
.adv-settings-grid {
  display: grid;
  gap: 20px;
}

.adv-color-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.adv-label-text {
  margin-bottom: 8px;
  font-size: 13px;
}

.adv-color-input {
  width: 80px;
  height: 48px;
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  background: var(--card);
}

.adv-alpha-container {
  flex: 1;
  min-width: 250px;
}

.adv-alpha-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.adv-alpha-range {
  flex: 1;
  min-width: 150px;
}

.adv-alpha-percent {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
  min-width: 48px;
  text-align: right;
}

.adv-hint-text {
  margin-top: 16px;
  font-size: 13px;
}

.adv-actions-title {
  margin: 0 0 16px 0;
  font-weight: 600;
}

.adv-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Widget Auction (widget/auction.ejs) */

/* Widget Auction (widget/auction.ejs) */
.auc-view-mode {
  text-align: center;
  margin-top: 8px;
  font-size: 12px;
  color: #9ca3af;
}

.auc-form-group-flex {
  flex: 1;
  min-width: 200px;
}

.auc-form-group-width {
  width: 120px;
}

.auc-th-num {
  width: 50px;
}

.auc-th-price {
  width: 120px;
}

.auc-th-winner {
  width: 150px;
}

.auc-th-add {
  width: 200px;
}

.auc-th-actions {
  width: 150px;
}

.auc-confirm-btn {
  background: #10b981;
  margin-left: 4px;
}

.auc-count-badge {
  color: #6b7280;
}

/* Widget Media (widget_media.ejs) */

/* Widget Media (widget_media.ejs) */
.wm-now-playing-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wm-thumb {
  width: 96px;
  height: 54px;
  background: #1e2235;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
}

.wm-info-container {
  flex: 1 1 auto;
}

.wm-title {
  font-weight: 700;
}

.wm-channel {
  opacity: 0.8;
  font-size: 12px;
}

.wm-requester {
  opacity: 0.7;
  font-size: 12px;
}

.wm-controls-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wm-progress-container {
  margin-top: 8px;
  height: 6px;
  background: #2a3046;
  border-radius: 4px;
  overflow: hidden;
}

.wm-progress-bar {
  height: 100%;
  background: #6d5efc;
  width: 0; /* Динамически изменяется через JS */
}

.wm-empty {
  opacity: 0.8;
}

/* Telegram Connect (telegram_connect.ejs) */

/* Widget Main Fyra (widget/main-fyra.ejs) */
.wmf-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.wmf-title-no-margin {
  margin: 0;
}

.wmf-edit-badge {
  padding: 6px 16px;
  background: rgba(255, 184, 77, 0.1);
  border: 2px solid var(--amber-light);
  border-radius: 12px;
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
}

.wmf-settings-grid {
  display: grid;
  gap: 20px;
}

.wmf-checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.wmf-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.wmf-checkbox-text {
  font-weight: 500;
  color: var(--text);
}

.wmf-actions-title {
  margin: 0 0 16px 0;
  font-weight: 600;
}

.wmf-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Verification Fyra - Dynamic States (partials/verification-fyra.ejs) */

/* Fundraising Admin - Preview Elements (pages/admin/fundraising.ejs) */
.fr-preview-title-inline {
  font-weight: 800;
  margin-bottom: 6px;
  text-align: center;
  color: #ffb36a;
}

.fr-preview-bar {
  position: relative;
  height: 22px;
  background: rgba(255,255,255,0.12);
  border-radius: 12px;
  overflow: hidden;
}

.fr-preview-fill {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 50%;
  background: #6d5efc;
  border-radius: inherit;
}

.fr-preview-inside-title {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 2px;
  transform: translateX(-50%);
  font-size: 12px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.fr-preview-inside-amount {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.fr-preview-inside-time {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  font-size: 12px;
  color: #cfd3ff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.fr-preview-bounds {
  position: relative;
  margin-top: 4px;
  font-size: 11px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  pointer-events: none;
}

.fr-preview-bmin {
  position: absolute;
  left: 6px;
}

.fr-preview-bmax {
  position: absolute;
  right: 6px;
}

.fr-preview-amount {
  margin-top: 6px;
  color: #cfd3ff;
  font-weight: 700;
  text-align: center;
}

.fr-preview-time {
  margin-top: 6px;
  color: #9aa6b2;
  font-size: 12px;
  text-align: center;
}

/* Support Ticket Admin (pages/admin/support_ticket.ejs) */

/* Widget Roulette Goal (pages/widget_roulette_goal.ejs) */
.wrg-label-title-in {
  left: 50%;
  top: 2px;
  transform: translateX(-50%);
}

.wrg-label-time-in {
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  font-size: 12px;
  color: #cfd3ff;
}

.wrg-bounds {
  position: relative;
  margin-top: 4px;
  font-size: 11px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  pointer-events: none;
}

.wrg-bounds-min {
  position: absolute;
  left: 6px;
}

.wrg-bounds-max {
  position: absolute;
  right: 6px;
}

/* Widget Preview (pages/widget/preview.ejs) */

/* Widget Preview (pages/widget/preview.ejs) */
.wpv-card-overflow {
  overflow: hidden;
}

.wpv-header {
  padding: 20px;
  border-bottom: 2px solid var(--border);
}

.wpv-header-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
}

.wpv-header-icon {
  font-size: 24px;
}

.wpv-header-desc {
  margin-top: 8px;
}

.wpv-container {
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  position: relative;
  background: linear-gradient(45deg, #e0e0e0 25%, transparent 25%), 
              linear-gradient(-45deg, #e0e0e0 25%, transparent 25%), 
              linear-gradient(45deg, transparent 75%, #e0e0e0 75%), 
              linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  background-color: #f5f5f5;
}

/* Messages Fyra - Additional (partials/messages-fyra.ejs) */

/* Widget Stats (pages/widget_stats.ejs) */
.ws-bg-transparent {
  background: transparent;
}

.ws-inner {
  min-width: 0;
}

/* Admin Main (pages/admin/main.ejs) */

/* Widget (pages/widget.ejs) */
.w-unlock-audio-btn {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 9999;
  padding: 8px 12px;
  border-radius: 8px;
  background: #6d5efc;
  color: #fff;
  border: 0;
  cursor: pointer;
}

/* Fraud Dashboard Content (pages/admin/fraud_dashboard_content.ejs) */

/* ===== Widget Import (pages/widget/import-fyra.ejs) ===== */
.import-hidden {
  display: none;
}

.import-app {
  max-width: 800px;
  margin: 0 auto;
}

.import-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.import-title {
  margin: 0;
}

.import-info-box {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 24px;
}

.import-info-text {
  margin: 0;
  color: var(--text-secondary, #a0a0a0);
  font-size: 14px;
  line-height: 1.5;
}

.import-warning-box {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 24px;
}

.import-warning-text {
  margin: 0;
  color: #f59e0b;
  font-size: 14px;
  line-height: 1.5;
}

.import-sources {
  margin-bottom: 24px;
}

.import-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #fff);
  margin: 0 0 12px 0;
}

.import-sources-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.import-source-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--card-bg, #1a1a2e);
  border: 1px solid var(--border-color, #2a2a4a);
  border-radius: 8px;
  font-size: 14px;
}

.import-source-item.active {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.import-source-item.disabled {
  opacity: 0.5;
}

.import-source-icon {
  font-size: 18px;
}

.import-source-name {
  color: var(--text-primary, #fff);
}

.import-source-status {
  font-size: 12px;
  color: #22c55e;
}

.import-source-item.disabled .import-source-status {
  color: var(--text-secondary, #a0a0a0);
}

.import-form {
  margin-bottom: 24px;
}

.import-url-input {
  font-family: monospace;
  font-size: 13px;
}

.import-hint {
  font-size: 12px;
  color: var(--text-secondary, #a0a0a0);
  margin: 8px 0 16px;
}

.import-hint a {
  color: #3b82f6;
  text-decoration: none;
}

.import-hint a:hover {
  text-decoration: underline;
}

.import-actions {
  display: flex;
  gap: 12px;
}

.import-preview-btn {
  background: var(--card-bg, #1a1a2e);
  border: 1px solid var(--border-color, #2a2a4a);
}

.import-submit-btn {
  background: linear-gradient(135deg, #f97316, #ea580c);
}

.import-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.import-preview {
  background: var(--card-bg, #1a1a2e);
  border: 1px solid var(--border-color, #2a2a4a);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.import-preview-content {
  font-family: monospace;
  font-size: 12px;
  white-space: pre-wrap;
  color: var(--text-secondary, #a0a0a0);
  max-height: 300px;
  overflow-y: auto;
}

.import-result {
  text-align: center;
  padding: 32px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  margin-bottom: 24px;
}

.import-result-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.import-result-title {
  color: #22c55e;
  margin: 0 0 8px;
}

.import-result-details {
  color: var(--text-secondary, #a0a0a0);
  margin: 0;
}

.import-instructions {
  background: var(--card-bg, #1a1a2e);
  border: 1px solid var(--border-color, #2a2a4a);
  border-radius: 8px;
  padding: 16px;
}

.import-instructions-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary, #a0a0a0);
  font-size: 14px;
  line-height: 1.8;
}

.import-instructions-list strong {
  color: var(--text-primary, #fff);
}

.import-section-title-warning {
  color: #f59e0b;
  margin-top: 16px;
}

.import-loading {
  position: relative;
  pointer-events: none;
}

.import-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
