/* Static inline styles converted to CSS classes */

/* Common utility classes */
.is-hidden {
  display: none !important;
}

.is-visible {
  display: block;
}

/* For elements that need flex or grid display */
.is-visible-flex {
  display: flex;
}

.is-visible-grid {
  display: grid;
}

.is-visible-inline-block {
  display: inline-block;
}

.is-visible-inline-flex {
  display: inline-flex;
}

/* Header styles */
.header-fixed {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 24px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-icon-theme {
  padding: 10px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-login {
  padding: 10px 20px;
  background: var(--card);
  border: 2px solid var(--amber-light);
  color: var(--text);
  white-space: nowrap;
  text-decoration: none;
}

/* Footer styles */
.footer {
  padding: 48px 0;
  text-align: center;
  margin-top: 80px;
  border-top: 1px solid var(--border);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-text {
  margin: 0;
  color: var(--text);
  opacity: 0.7;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--amber-light);
}

/* Admin Transactions page styles */
.admin-transactions {
  max-width: 1600px;
  margin: 0 auto;
}

.admin-section-header {
  margin-bottom: 32px;
}

.admin-section-title {
  margin: 0 0 8px 0;
  font-size: 2rem;
  font-weight: 700;
}

.admin-section-subtitle {
  opacity: 0.7;
  margin: 0;
}

.fyra-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #E5E7EB;
  margin-bottom: 24px;
}

.fyra-tab-btn {
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s;
  margin-bottom: -2px;
}

.fyra-tab-content {
  display: none;
}

.fyra-tab-content.is-visible {
  display: block;
}

.fyra-card {
  margin-bottom: 24px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.filter-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.875rem;
}

.filter-input,
.filter-select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
}

.filter-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.table-container {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table thead tr {
  border-bottom: 2px solid #E5E7EB;
}

.admin-table th {
  text-align: left;
  padding: 12px;
  font-weight: 600;
  font-size: 0.875rem;
}

.admin-table th.text-right {
  text-align: right;
}

.admin-table th.text-center {
  text-align: center;
}

.admin-table td {
  padding: 12px;
  font-size: 0.875rem;
}

.admin-table td.text-right {
  text-align: right;
}

.admin-table td.text-center {
  text-align: center;
}

.admin-table td.monospace {
  font-family: monospace;
  color: #6B7280;
}

.admin-table td.nowrap {
  white-space: nowrap;
}

.admin-table td.opacity-70 {
  opacity: 0.7;
}

.at-toggle-checkbox {
  cursor: pointer;
}

.at-amount-cell {
  font-weight: 600;
  color: var(--amber-light);
}

.transaction-row {
  transition: background 0.2s;
}

.transaction-row:not(:last-child) {
  border-bottom: 1px solid #E5E7EB;
}

.transaction-row-border {
  border-bottom: 1px solid #E5E7EB;
}

.transaction-row:hover {
  background: #FFF8E7;
}

.btn-refund:hover {
  opacity: 1 !important;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.75rem;
}

.status-badge.success {
  background: #D1FAE5;
  color: #10B981;
}

.status-badge.pending {
  background: #FEF3C7;
  color: #F59E0B;
}

.status-badge.canceled {
  background: #F3F4F6;
  color: #6B7280;
}

.action-buttons {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.75rem;
}

.btn-refund {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text);
  opacity: 0.8;
}

.btn-refund:hover {
  opacity: 1;
}

/* ===== 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;
}

.fa-tab-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fa-tab-content {
  margin-top: 12px;
}

.empty-state {
  padding: 48px;
  text-align: center;
  opacity: 0.5;
}

.empty-state-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.empty-state-text {
  margin: 0;
}

.modal-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  padding: 0;
  border: none;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 10000;
}

.modal-form {
  padding: 32px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #E5E7EB;
}

.modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: #6B7280;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.modal-field {
  margin-bottom: 20px;
}

.modal-field-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.modal-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  background: var(--card);
  color: var(--text);
  resize: vertical;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.pagination-container {
  margin-top: 16px;
  text-align: center;
}

.pagination {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.pagination-info {
  opacity: 0.7;
}

.at-bulk-actions {
  margin-top: 16px;
}

.at-payout-section-title {
  margin: 0 0 8px 0;
  font-weight: 600;
}

.at-payout-section-desc {
  opacity: 0.7;
  margin: 0 0 24px 0;
}

.at-filter-grid-payout {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-bottom: 24px;
}

.empty-state {
  padding: 48px;
  text-align: center;
  opacity: 0.5;
}

.empty-state-error {
  padding: 48px;
  text-align: center;
  color: #EF4444;
}

.empty-state-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.empty-state-text {
  margin: 0;
}

.payout-amount-cell {
  font-weight: 600;
  color: var(--amber-light);
}

.payout-user-link {
  color: var(--text);
  text-decoration: none;
}

.payout-user-link:hover {
  text-decoration: underline;
}

.payout-user-id {
  font-size: 0.875rem;
  opacity: 0.7;
}

.payout-user-link {
  color: var(--amber-light);
  text-decoration: none;
}

.payout-user-id {
  opacity: 0.6;
}

.status-badge.processing {
  background: #DBEAFE;
  color: #4D9FFF;
}

.status-badge.failed {
  background: #FEE2E2;
  color: #EF4444;
}

/* Home page styles */
.container-center {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--amber-light) 0%, var(--peach-start) 50%, var(--neon-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--text);
  opacity: 0.8;
  margin-bottom: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero {
  font-size: 1.125rem;
  padding: 18px 48px;
}

.btn-secondary-hero {
  background: var(--card);
  border: 2px solid var(--amber-light);
  color: var(--text) !important;
}

.section-title {
  font-family: var(--font-heading);
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 64px;
}

.cta-section {
  padding: 120px 0;
}

.cta-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 2.5rem);
  margin-bottom: 24px;
}

.cta-text {
  font-size: clamp(1rem, 3vw, 1.25rem);
  margin-bottom: 48px;
  opacity: 0.8;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.demo-visual-relative {
  position: relative;
}

.alert-demo-hidden {
  display: none;
  position: relative;
}

.progress-label-large {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.progress-fill-start {
  width: 0%;
}

.progress-label-small {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--muted);
}

.demo-visual-center {
  text-align: center;
}

/* Personal page (personal.ejs) dashboard header and events */
.pd-card-tall {
  min-height: 340px;
}

.pd-card-title-actions {
  position: relative;
  padding-right: 150px;
}

.pd-events-actions {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 3;
}

.pd-btn-small {
  margin: 0;
  padding: 4px 8px;
  font-size: 12px;
}

.pd-dropdown {
  position: relative;
  margin: 0;
}

.pd-dropdown-menu {
  min-width: 220px;
}

.pd-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pd-warning-box {
  padding: 8px;
  margin-bottom: 8px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 4px;
  font-size: 12px;
}

.pd-warning-link {
  color: #0056b3;
  text-decoration: underline;
}

.pd-events-scroll {
  height: 300px;
  overflow: auto;
  font-size: 13px;
}

.pd-loading {
  padding: 6px 0;
}

/* Personal page (personal.ejs) messages section */
.pd-card-mb {
  margin-bottom: 12px;
}

.pd-filter-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.pd-info-text {
  margin-bottom: 8px;
  color: #9aa6b2;
}

.pd-overflow-auto {
  overflow: auto;
}

.pd-table {
  width: 100%;
  border-collapse: collapse;
}

.pd-th {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid var(--border);
}

.pd-th-right {
  text-align: right;
  padding: 8px;
  border-bottom: 1px solid var(--border);
}

.pd-th-center {
  text-align: center;
  padding: 8px;
  border-bottom: 1px solid var(--border);
}

.pd-td {
  padding: 8px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.pd-td-right {
  padding: 8px;
  border-bottom: 1px solid var(--border);
  text-align: right;
}

.pd-td-center {
  padding: 8px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.pd-td-message {
  padding: 8px;
  border-bottom: 1px solid var(--border);
  max-width: 480px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pd-btn-payment {
  padding: 6px 10px;
  font-size: 12px;
  cursor: default;
}

.pd-form-inline {
  display: inline;
  margin: 0;
}

.pd-btn-delete {
  padding: 6px 10px;
  font-size: 12px;
  background: #2a182b;
  border-color: #6f2f74;
  color: #ffb3fd;
}

.pd-empty-row {
  padding: 12px;
  color: #9aa6b2;
}

/* Personal page (notifications section) */
.pd-group-selector {
  margin-bottom: 16px;
}

.pd-group-label-bold {
  font-weight: 600;
}

.pd-tab-card {
  margin-bottom: 12px;
}

.pd-tab-bar {
  display: flex;
  gap: 8px;
  padding: 8px;
  flex-wrap: wrap;
}

.pd-help-text {
  margin-top: 6px;
  color: #8086a3;
  font-size: 12px;
}

.pd-card-mt {
  margin: 8px 0;
}

.pd-twitch-warning-box {
  padding: 12px;
  margin-bottom: 16px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
}

.pd-twitch-warning-title {
  font-size: 14px;
}

.pd-twitch-warning-text {
  margin: 8px 0 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.pd-clear-card {
  margin-bottom: 16px;
  padding: 16px;
}

.pd-clear-title {
  margin: 0 0 12px 0;
  font-size: 14px;
}

.pd-clear-desc {
  margin: 0 0 12px 0;
  font-size: 13px;
  color: #8086a3;
}

.pd-clear-btn {
  font-size: 13px;
}

.pd-clear-result {
  margin-top: 8px;
  font-size: 12px;
}

.pd-group-select-mt {
  margin-top: 8px;
}

.pd-alert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pd-btn-group {
  display: flex;
  gap: 8px;
}

.pd-dropdown-wrap {
  position: relative;
}

.pd-dropdown-panel {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 200px;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  padding: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.pd-variant-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  color: var(--text);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.pd-variant-btn-disabled {
  opacity: 0.5;
}

.pd-variant-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pd-variant-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.pd-variant-dot-enabled {
  background: #22c55e;
}

.pd-variant-dot-disabled {
  background: #6b7280;
}

.pd-variant-content {
  flex: 1;
}

.pd-variant-name {
  font-weight: 600;
  color: #cfd3ff;
}

.pd-variant-meta {
  font-size: 11px;
  color: #8086a3;
  margin-top: 2px;
}

.pd-dropdown-empty {
  padding: 12px;
  color: #8086a3;
  font-size: 12px;
  text-align: center;
}

.pd-widget-url {
  margin-top: 8px;
  overflow: auto;
  white-space: nowrap;
}

.pd-widget-help {
  margin-top: 6px;
  color: #8086a3;
  font-size: 12px;
}

.pd-tabs {
  margin-top: 16px;
}

.pd-tabs-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pd-tabs-content {
  margin-top: 12px;
}

.roulette-wheel {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--gradient-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  box-shadow: 0 12px 48px rgba(255, 184, 77, 0.4);
  animation: spin 3s linear infinite;
}

.roulette-text {
  margin-top: 24px;
  font-weight: 600;
  color: var(--text);
}

.media-card {
  background: var(--gradient-warm);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.media-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.media-title {
  color: white;
  font-weight: 600;
  margin-bottom: 4px;
}

.media-subtitle {
  color: white;
  font-size: 1.125rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.stat-card {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid;
}

.stat-card-amber {
  background: rgba(255, 184, 77, 0.1);
  border-color: rgba(255, 184, 77, 0.3);
}

.stat-card-blue {
  background: rgba(77, 159, 255, 0.1);
  border-color: rgba(77, 159, 255, 0.3);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
}

.stat-value-amber {
  color: var(--amber-light);
}

.stat-value-blue {
  color: var(--neon-blue);
}

.chart-container {
  height: 100px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  gap: 4px;
}

.chart-bar {
  flex: 1;
  background: var(--gradient-button);
  border-radius: 4px;
}

.chart-bar-40 {
  height: 40%;
}

.chart-bar-50 {
  height: 50%;
}

.chart-bar-60 {
  height: 60%;
}

.chart-bar-65 {
  height: 65%;
}

.chart-bar-70 {
  height: 70%;
}

.chart-bar-80 {
  height: 80%;
}

.chart-bar-90 {
  height: 90%;
}


.alert-demo-hidden.is-visible {
  display: block;
}

/* Admin security PIN modal */
.pin-modal {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  overflow: auto;
}

.pin-modal-dialog {
  background: white;
  margin: 5% auto;
  padding: 32px;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pin-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.pin-modal-header h3 {
  margin: 0;
  font-weight: 700;
}

.pin-modal-close {
  background: none;
  border: none;
  font-size: 32px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}

.pin-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid var(--border);
  font-size: 18px;
  letter-spacing: 4px;
  text-align: center;
}

.pin-error {
  padding: 12px;
  background: #FEE2E2;
  border: 2px solid #FCA5A5;
  border-radius: 8px;
  color: #991B1B;
  font-size: 14px;
}

.pin-actions {
  display: flex;
  gap: 8px;
  padding-top: 8px;
}

.pin-actions .fyra-btn {
  flex: 1;
}

.pin-remove-grid {
  display: grid;
  gap: 16px;
}

.pin-remove-text {
  margin: 0;
}

/* Dashboard withdrawals modals */
.modal-open {
  overflow: hidden;
}

/* 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 */
#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) */
.goal-label-bottom {
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  font-size: 12px;
  color: #cfd3ff;
}

/* 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) */
.payment-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.payment-modal-content {
  background: #1a1d2e;
  border-radius: 16px;
  padding: 32px;
  width: 90%;
  text-align: center;
  position: relative;
}

.payment-modal-content-sm {
  max-width: 400px;
}

.payment-modal-content-md {
  max-width: 500px;
}

.payment-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
}

.payment-modal-title {
  margin: 0 0 16px 0;
  color: #fff;
}

.payment-modal-description {
  margin: 0 0 24px 0;
  color: #8086a3;
}

.payment-modal-qr {
  width: 256px;
  height: 256px;
  margin: 0 auto 24px;
  display: block;
  background: #fff;
  padding: 16px;
  border-radius: 12px;
}

.payment-modal-link {
  display: inline-block;
  padding: 12px 24px;
  background: #6d5efc;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 16px;
}

.payment-modal-info {
  margin: 24px 0 0 0;
  color: #8086a3;
  font-size: 14px;
}

.payment-modal-form-container {
  margin: 24px 0;
}

.payment-modal-error {
  color: #ff6b6b;
}

/* Admin security: KYC queue and modal */
.admin-kyc-message {
  text-align: center;
  padding: 40px;
}

.admin-kyc-message-muted {
  opacity: 0.6;
}

.admin-kyc-message-error {
  color: #EF4444;
}

.kyc-card {
  margin-bottom: 16px;
}

.kyc-card-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.kyc-card-main {
  flex: 1;
}

.kyc-card-title {
  margin: 0 0 8px 0;
  font-weight: 600;
}

.kyc-card-subtitle {
  margin: 0;
  opacity: 0.7;
  font-size: 0.875rem;
}

.kyc-card-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.kyc-view-btn {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.kyc-modal-header {
  padding: 32px 32px 24px;
  border-bottom: 2px solid #3a3f4b;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kyc-modal-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #e4e6eb;
}

.kyc-modal-close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
}

.kyc-modal-body {
  padding: 32px;
  background: #1e2128;
  color: #e4e6eb;
}

.kyc-section {
  margin-bottom: 16px;
}

.kyc-user-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.kyc-field-label {
  font-size: 0.875rem;
  opacity: 0.6;
  margin-bottom: 4px;
  color: #e4e6eb;
}

.kyc-field-value {
  font-weight: 600;
  color: #e4e6eb;
}

.kyc-section-label {
  font-size: 0.875rem;
  opacity: 0.6;
  margin-bottom: 4px;
  color: #e4e6eb;
}

.kyc-section-value {
  font-weight: 600;
  font-size: 1.125rem;
  color: #e4e6eb;
}

.kyc-data-card {
  background: #2a2d37;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  border: 1px solid #3a3f4b;
  color: #e4e6eb;
}

.kyc-data-title {
  margin: 0 0 12px 0;
  font-size: 1rem;
  font-weight: 600;
}

.kyc-data-empty {
  opacity: 0.6;
}

.kyc-status-box {
  border-radius: 12px;
  padding: 12px 16px;
  text-align: center;
}

.kyc-status-box-verified {
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid #10B981;
}

.kyc-status-box-rejected {
  background: rgba(239, 68, 68, 0.15);
  border: 2px solid #EF4444;
}

.kyc-status-box-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.kyc-status-box-title-verified {
  color: #10B981;
}

.kyc-status-box-title-rejected {
  color: #EF4444;
}

.kyc-status-box-text {
  font-size: 0.875rem;
}

.kyc-status-box-text-rejected {
  color: #EF4444;
  opacity: 0.9;
}

.kyc-action-buttons {
  display: flex;
  gap: 12px;
}

.kyc-approve-btn {
  flex: 1;
  padding: 12px 24px;
  background: linear-gradient(90deg, #f6a86e, #ff7c48);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.kyc-approve-btn:hover {
  opacity: 0.9;
}

.kyc-reject-btn {
  flex: 1;
  padding: 12px 24px;
  background: #402727;
  color: #ff6b6b;
  border: 2px solid #ff6b6b;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.kyc-reject-btn:hover {
  background: #542f2f;
}

.kyc-modal-error {
  padding: 40px;
  text-align: center;
  background: #1e2128;
  color: #e4e6eb;
}

/* Generic admin table messages (loading/empty/error) */
.admin-table-message {
  text-align: center;
  padding: 20px;
}

.admin-table-message-muted {
  opacity: 0.6;
}

.admin-table-message-error {
  color: #EF4444;
}

.cell-nowrap {
  white-space: nowrap;
}

.cell-muted {
  font-size: 0.875rem;
  opacity: 0.6;
}

.cell-monospace {
  font-family: monospace;
  font-size: 0.875rem;
}

.cell-ellipsis {
  font-size: 0.875rem;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cell-monospace-small {
  font-family: monospace;
  font-size: 0.75rem;
}

.cell-bold {
  font-weight: 600;
}

.badge-deleted {
  background: rgba(239, 68, 68, 0.2);
  color: #FCA5A5;
  border-color: rgba(239, 68, 68, 0.4);
}

.badge-payout-status-pending {
  background: #F59E0B;
}

.badge-payout-status-processing {
  background: #3B82F6;
}

.badge-payout-status-succeeded {
  background: #10B981;
}

.badge-payout-status-canceled {
  background: #6B7280;
}

.badge-payout-status-failed {
  background: #EF4444;
}

/* ===========================================
   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 */
.rw-dialog {
  padding: 0;
  border: none;
  border-radius: 16px;
  max-width: 620px;
  width: 100%;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.rw-dialog-content {
  padding: 20px;
}

.rw-dialog-title {
  margin: 0 0 16px 0;
  font-weight: 700;
  color: var(--text);
}

.rw-dialog-input {
  background: var(--card);
  border: 2px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
}

.rw-dialog-select {
  background: var(--card);
  border: 2px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 6px;
}

.rw-dialog-color {
  width: 100%;
  height: 48px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  cursor: pointer;
}

.rw-dialog-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.rw-dialog-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.rw-dialog-shadow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.rw-dialog-shadow-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.rw-dialog-shadow-input {
  width: 100%;
  background: var(--card);
  border: 2px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px;
}

.rw-dialog-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ===========================================
   Personal Dashboard Styles (personal.ejs)
   =========================================== */

/* Dashboard grid */
.pd-grid {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 12px;
  align-items: stretch;
}

.pd-card-tall {
  min-height: 340px;
  background: var(--card);
}

/* Filter row */
.pd-filter-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
}

.pd-filter-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.pd-no-margin {
  margin: 0;
}

/* Card title with actions */
.pd-card-title-actions {
  position: relative;
  padding-right: 150px;
}

.pd-events-actions {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 3;
}

.pd-btn-small {
  margin: 0;
  padding: 4px 8px;
  font-size: 12px;
}

/* Dropdown */
.pd-dropdown {
  position: relative;
  margin: 0;
}

.pd-dropdown-menu {
  min-width: 220px;
}

.pd-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Warning box */
.pd-warning-box {
  padding: 8px;
  margin-bottom: 8px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 4px;
  font-size: 12px;
}

.pd-warning-link {
  color: #0056b3;
  text-decoration: underline;
}

/* Events scrollbox */
.pd-events-scroll {
  height: 300px;
  overflow: auto;
  font-size: 13px;
}

.pd-loading {
  padding: 6px 0;
}

/* Card title margin */
.pd-card-title-mt {
  margin-top: 8px;
}

/* Chart canvas */
.pd-chart {
  width: 100%;
  background: var(--card);
}

/* Messages section */
.pd-card-mb {
  margin-bottom: 12px;
}

.pd-filter-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.pd-info-text {
  margin-bottom: 8px;
  color: #9aa6b2;
}

.pd-overflow-auto {
  overflow: auto;
}

/* Table styles */
.pd-table {
  width: 100%;
  border-collapse: collapse;
}

.pd-th {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid var(--border);
}

.pd-th-right {
  text-align: right;
  padding: 8px;
  border-bottom: 1px solid var(--border);
}

.pd-th-center {
  text-align: center;
  padding: 8px;
  border-bottom: 1px solid var(--border);
}

.pd-td {
  padding: 8px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.pd-td-right {
  padding: 8px;
  border-bottom: 1px solid var(--border);
  text-align: right;
  white-space: nowrap;
}

.pd-td-message {
  padding: 8px;
  border-bottom: 1px solid var(--border);
  max-width: 480px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pd-td-center {
  padding: 8px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  white-space: nowrap;
}

.pd-empty-row {
  padding: 12px;
  color: #9aa6b2;
}

/* Button small styles */
.pd-btn-payment {
  padding: 6px 10px;
  font-size: 12px;
  cursor: default;
}

.pd-btn-delete {
  padding: 6px 10px;
  font-size: 12px;
  background: #2a182b;
  border-color: #6f2f74;
  color: #ffb3fd;
}

.pd-form-inline {
  display: inline;
  margin: 0;
}

/* Tab bar */
.pd-tab-bar {
  display: flex;
  gap: 8px;
  padding: 8px;
  flex-wrap: wrap;
}

/* Section card */
.pd-section-card {
  margin: 8px 0;
}

.pd-section-title {
  margin: 0 0 8px 0;
}

/* Form row */
.pd-form-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.pd-form-label-flex {
  flex: 1 1 320px;
  min-width: 260px;
}

/* Group selector */
.pd-group-selector-wrap {
  margin-bottom: 16px;
}

.pd-group-label {
  font-weight: 600;
}

.pd-group-select {
  margin-top: 8px;
}

/* Alert with actions */
.pd-alert-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pd-alert-buttons {
  display: flex;
  gap: 8px;
}

/* Event items (JS generated) */
.pd-event-item {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.pd-event-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.pd-event-message {
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pd-badge-roulette {
  background: #ff8a00;
}

/* Notifications section */
.pd-group-selector {
  margin-bottom: 16px;
}

.pd-group-label-bold {
  font-weight: 600;
}

.pd-group-select-mt {
  margin-top: 8px;
}

.pd-alert-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pd-btn-group {
  display: flex;
  gap: 8px;
}

.pd-dropdown-wrap {
  position: relative;
}

.pd-dropdown-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 200px;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  padding: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.pd-variant-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  color: var(--text);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.pd-variant-btn-disabled {
  opacity: 0.5;
}

.pd-variant-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pd-variant-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.pd-variant-dot-enabled {
  background: #10b981;
}

.pd-variant-dot-disabled {
  background: #6b7280;
}

.pd-variant-content {
  flex: 1;
}

.pd-variant-name {
  font-weight: 600;
  color: #cfd3ff;
}

.pd-variant-meta {
  font-size: 11px;
  color: #8086a3;
  margin-top: 2px;
}

.pd-dropdown-empty {
  padding: 12px;
  color: #8086a3;
  font-size: 12px;
  text-align: center;
}

.pd-widget-url {
  margin-top: 8px;
  overflow: auto;
  white-space: nowrap;
}

.pd-widget-help {
  margin-top: 6px;
  color: #8086a3;
  font-size: 12px;
}

/* ===========================================
   Donation Public Page Styles (donation_public.ejs)
   =========================================== */

/* Avatar sizes */
.dp-avatar-large {
  width: 80px;
  height: 80px;
  font-size: 2.5rem;
}

/* Hero title */
.dp-hero-title {
  margin: 0;
  font-family: var(--font-heading);
}

/* Hero text */
.dp-hero-text {
  margin-top: 12px;
  color: var(--muted);
  max-width: 600px;
}

/* Stream status */
.dp-stream-status {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  transition: all 0.3s;
}

.dp-stream-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dp-stream-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.dp-stream-text {
  font-weight: 600;
  font-size: 14px;
}

.dp-stream-viewers {
  font-size: 13px;
  opacity: 0.8;
  margin-left: 4px;
}

/* Info box */
.dp-info-box {
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(77, 159, 255, 0.1);
  border: 1px solid rgba(77, 159, 255, 0.3);
  border-radius: var(--radius-md);
  color: var(--text);
}

.dp-info-item {
  margin-right: 12px;
}

/* Form sections */
.dp-form-section {
  margin-bottom: 24px;
}

.dp-form-label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--text);
}

.dp-form-label-small {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.dp-full-width {
  width: 100%;
}

.dp-textarea {
  width: 100%;
  resize: vertical;
}

/* Payment methods */
.dp-payment-methods {
  gap: 12px;
}

/* Payment info */
.dp-payment-info {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(77, 159, 255, 0.1);
  border-left: 3px solid var(--neon-blue);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text);
}

/* TTS select */
.dp-tts-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
}

.dp-tts-hint {
  margin-top: 6px;
  font-size: 0.875rem;
  opacity: 0.7;
  color: var(--text);
}

/* Goals section */
.dp-goals-title {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.dp-goals-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dp-goals-loading {
  color: var(--muted);
  font-size: 14px;
}

/* Currency rates box */
.dp-rates-box {
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(77, 159, 255, 0.1);
  border: 1px solid rgba(77, 159, 255, 0.3);
  border-radius: var(--radius-md);
}

.dp-rates-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.dp-rates-icon {
  opacity: 0.7;
}

.dp-rates-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.dp-rates-list {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--text);
  flex-wrap: wrap;
}

.dp-rate-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dp-rate-currency {
  font-weight: 600;
}

.dp-rate-value {
  color: var(--text);
}

/* ===========================================
   Verification/KYC Styles (verification-fyra.ejs)
   =========================================== */

/* Section header */
.vf-header {
  margin-bottom: 16px;
}

.vf-title {
  margin: 0 0 4px 0;
  font-weight: 600;
}

.vf-subtitle {
  margin: 0;
  opacity: 0.7;
}

/* Level cards */
.vf-card-basic {
  margin-bottom: 16px;
  border-left: 4px solid #FFB84D;
}

.vf-card-standard {
  border-left: 4px solid #10B981;
}

.vf-card-content {
  display: flex;
  align-items: start;
  gap: 20px;
  flex-wrap: wrap;
}

/* Icon box */
.vf-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.vf-icon-basic {
  background: linear-gradient(135deg, #FFB84D, #FFD7A0);
  box-shadow: 0 4px 16px rgba(255, 184, 77, 0.3);
}

.vf-icon-standard {
  background: linear-gradient(135deg, #10B981, #6EE7B7);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

/* Info section */
.vf-info {
  flex: 1;
  min-width: 250px;
}

.vf-level-title {
  margin: 0 0 8px 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.vf-level-desc {
  margin: 0 0 16px 0;
  opacity: 0.7;
  font-size: 0.9375rem;
}

/* Stats box */
.vf-stats-box {
  background: var(--bg-elev);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.vf-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.vf-stat-label {
  opacity: 0.6;
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.vf-stat-value {
  font-weight: 600;
}

/* Status boxes */
.vf-status-success {
  background: var(--success-bg);
  border: 2px solid var(--success-text);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.vf-status-pending {
  background: #FEF3C7;
  border: 2px solid #F59E0B;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.vf-status-rejected {
  background: #FEE2E2;
  border: 2px solid #EF4444;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.vf-status-icon {
  font-size: 1.5rem;
}

.vf-status-title-success {
  font-weight: 600;
  color: var(--success-text);
}

.vf-status-desc-success {
  font-size: 0.875rem;
  color: var(--success-text);
  opacity: 0.8;
}

.vf-status-title-pending {
  font-weight: 600;
  color: #92400E;
}

.vf-status-desc-pending {
  font-size: 0.875rem;
  color: #92400E;
  opacity: 0.8;
}

.vf-status-title-rejected {
  font-weight: 600;
  color: #991B1B;
}

.vf-status-desc-rejected {
  font-size: 0.875rem;
  color: #991B1B;
}

.vf-status-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

/* Buttons */
.vf-btn {
  padding: 12px 24px;
}

/* Disabled status */
.vf-status-disabled {
  background: var(--bg-elev);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.vf-status-title-disabled {
  font-weight: 600;
  color: #6B7280;
}

.vf-status-desc-disabled {
  font-size: 0.875rem;
  color: #6B7280;
  opacity: 0.8;
}

/* Info box */
.vf-info-box {
  background: #EFF6FF;
  border: 2px solid #93C5FD;
  border-radius: 16px;
  padding: 20px;
}

.vf-info-content {
  display: flex;
  gap: 16px;
  align-items: start;
}

.vf-info-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.vf-info-title {
  font-weight: 600;
  color: #1E3A8A;
  margin-bottom: 8px;
}

.vf-info-text {
  color: #1E3A8A;
  opacity: 0.8;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Modal styles */
.vf-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Note: .vf-modal-header, .vf-modal-body etc. defined below in Verification modals section */

.vf-form-group {
  margin-bottom: 16px;
}

.vf-form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text);
}

.vf-form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #374151;
  border-radius: 10px;
  font-size: 0.95rem;
  background: #F9FAFB;
  color: var(--text);
  transition: all 0.2s;
}

.vf-form-input:focus,
.vf-form-select:focus,
.vf-form-textarea:focus {
  border-color: var(--amber-light);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 184, 77, 0.15);
}

.vf-form-hint {
  font-size: 0.875rem;
  color: #6B7280;
  margin-top: 6px;
}

.vf-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.vf-form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 32px;
}

.vf-submit-btn {
  padding: 14px 32px;
  font-weight: 600;
}

.vf-cancel-btn {
  padding: 14px 24px;
}

/* ===========================================
   Withdrawals Styles (withdrawals-fyra.ejs)
   =========================================== */

/* Section header */
.wd-header {
  margin-bottom: 32px;
}

.wd-title {
  margin: 0 0 8px 0;
  font-weight: 600;
}

.wd-subtitle {
  margin: 0;
  opacity: 0.7;
}

/* Balance cards grid */
.wd-balance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.wd-balance-card-primary {
  background: linear-gradient(135deg, var(--amber-light), var(--peach-start));
  border-radius: 20px;
  padding: 28px;
  color: white;
  box-shadow: 0 8px 32px rgba(255, 184, 77, 0.3);
}

.wd-balance-card-hold {
  border-left: 4px solid #F59E0B;
}

.wd-balance-card-pending {
  border-left: 4px solid #4D9FFF;
}

.wd-balance-label {
  opacity: 0.95;
  font-size: 0.9375rem;
  margin-bottom: 12px;
  font-weight: 500;
}

.wd-balance-label-muted {
  opacity: 0.7;
  font-size: 0.9375rem;
  margin-bottom: 12px;
  font-weight: 500;
}

.wd-balance-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.wd-balance-value-hold {
  color: #F59E0B;
}

.wd-balance-value-pending {
  color: #4D9FFF;
}

.wd-balance-currency {
  opacity: 0.9;
  font-size: 0.875rem;
}

.wd-balance-currency-muted {
  opacity: 0.6;
  font-size: 0.875rem;
}

/* Payment methods section */
.wd-section-card {
  margin-bottom: 32px;
}

.wd-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.wd-section-title {
  margin: 0 0 4px 0;
  font-weight: 600;
}

.wd-section-subtitle {
  margin: 0;
  opacity: 0.7;
  font-size: 0.875rem;
}

.wd-btn-icon {
  margin-right: 8px;
}

.wd-methods-list {
  margin-top: 24px;
}

.wd-loading-box {
  text-align: center;
  padding: 32px;
  opacity: 0.5;
}

.wd-loading-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.wd-loading-text {
  margin: 0;
}

/* Info box */
.wd-info-box {
  background: #EFF6FF;
  border-radius: 12px;
  padding: 12px;
  margin-top: 16px;
}

.wd-info-content {
  display: flex;
  gap: 12px;
  align-items: center;
}

.wd-info-icon {
  font-size: 1.25rem;
}

.wd-info-text {
  font-size: 0.875rem;
  color: #1E3A8A;
}

/* History section */
.wd-history-header {
  margin-bottom: 24px;
}

.wd-history-title {
  margin: 0 0 8px 0;
  font-weight: 600;
}

.wd-history-stats {
  margin: 0;
  opacity: 0.7;
  font-size: 0.875rem;
}

.wd-stat-value {
  font-weight: 600;
  color: var(--amber-light);
}

/* Table styles */
.wd-table-wrap {
  overflow-x: auto;
}

.wd-table {
  width: 100%;
  border-collapse: collapse;
}

.wd-table-header {
  border-bottom: 2px solid #E5E7EB;
}

.wd-th {
  text-align: left;
  padding: 12px;
  font-weight: 600;
  font-size: 0.875rem;
}

.wd-th-right {
  text-align: right;
  padding: 12px;
  font-weight: 600;
  font-size: 0.875rem;
}

.wd-th-center {
  text-align: center;
  padding: 12px;
  font-weight: 600;
  font-size: 0.875rem;
}

.wd-td {
  padding: 12px;
  font-size: 0.875rem;
}

.wd-td-id {
  font-family: monospace;
  color: #6B7280;
}

.wd-td-right {
  text-align: right;
  font-weight: 600;
  color: var(--amber-light);
}

.wd-td-center {
  text-align: center;
}

.wd-tr {
  border-bottom: 1px solid #E5E7EB;
}

.wd-tr-last {
  /* No border for last row */
}

.wd-table-loading {
  text-align: center;
  padding: 32px;
  opacity: 0.5;
}

.wd-table-loading-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.wd-table-empty {
  text-align: center;
  padding: 32px;
  opacity: 0.5;
}

.wd-table-empty-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.wd-status-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.75rem;
}

.wd-status-completed {
  background: #D1FAE5;
  color: #10B981;
}

.wd-status-pending {
  background: #FEF3C7;
  color: #F59E0B;
}

.wd-status-default {
  background: #F3F4F6;
  color: #6B7280;
}

.wd-method-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
  margin-bottom: 12px;
}

.wd-method-card:hover {
  border-color: var(--amber-light);
}

.wd-method-info {
  flex: 1;
}

.wd-method-title {
  font-weight: 600;
}

.wd-method-details {
  opacity: 0.7;
  font-size: 0.875rem;
}

.wd-method-badge {
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 8px;
}

.wd-method-badge-verified {
  background: #D1FAE5;
  color: #10B981;
}

.wd-method-badge-pending {
  background: #FEF3C7;
  color: #F59E0B;
}

.wd-method-badge-inactive {
  background: #F3F4F6;
  color: #6B7280;
}

.wd-method-btn {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.wd-empty-state {
  text-align: center;
  padding: 32px;
  opacity: 0.5;
}

.wd-empty-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.wd-empty-text {
  margin: 0;
}

.wd-warning-card {
  background: #FEF3C7;
  border: 2px solid #F59E0B;
  border-radius: 16px;
  padding: 20px;
  margin-top: 24px;
}

.wd-warning-content {
  display: flex;
  gap: 16px;
  align-items: start;
}

.wd-warning-icon-large {
  font-size: 2rem;
  flex-shrink: 0;
}

.wd-warning-title {
  font-weight: 600;
  color: #92400E;
  margin-bottom: 8px;
}

.wd-warning-description {
  color: #92400E;
  opacity: 0.9;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ===========================================
   Settings Styles (settings-fyra.ejs)
   =========================================== */

/* Tabs margin */
.st-tabs {
  margin-bottom: 24px;
}

/* Card titles */
.st-card-title {
  margin-bottom: 8px;
}

.st-card-subtitle {
  opacity: 0.7;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

/* Impersonation notice */
.st-impersonating-notice {
  padding: 16px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.15), rgba(255, 193, 7, 0.1));
  border: 2px solid #FF9800;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.st-notice-icon {
  font-size: 24px;
}

.st-notice-content {
  flex: 1;
}

.st-notice-title {
  font-weight: 600;
  color: #FF9800;
  margin-bottom: 4px;
}

.st-notice-desc {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Form grid */
.st-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.st-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

/* Form label */
.st-form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

/* Form input */
.st-form-input {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
}

.st-form-input-readonly {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ===========================================
   Notifications Styles (notifications-fyra.ejs)
   =========================================== */

/* Card margins */
.nf-card {
  margin-bottom: 24px;
}

.nf-header {
  margin-bottom: 32px;
}

.nf-title {
  margin: 0 0 8px 0;
  font-weight: 600;
}

.nf-subtitle {
  margin: 0;
  opacity: 0.7;
}

/* Group selector */
.nf-group-selector {
  margin-bottom: 24px;
}

.nf-form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.nf-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}

/* Widget URL box */
.nf-url-box {
  background: #EFF6FF;
  border: 2px solid #93C5FD;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.nf-url-content {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.nf-url-info {
  flex: 1;
  min-width: 200px;
}

.nf-url-title {
  font-weight: 600;
  color: #1E3A8A;
  margin-bottom: 8px;
}

.nf-url-desc {
  opacity: 0.7;
  color: #1E3A8A;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Button group */
.nf-btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Test dropdown */
.nf-dropdown-wrap {
  position: relative;
}

.nf-btn-test {
  padding: 10px 20px;
  white-space: nowrap;
}

.nf-dropdown-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 16px;
  min-width: 280px;
  z-index: 1000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 12px;
  max-height: 400px;
  overflow-y: auto;
}

.nf-variant-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px;
  color: var(--text);
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.2s;
}

.nf-variant-btn-disabled {
  opacity: 0.5;
}

.nf-variant-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nf-variant-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.nf-variant-dot-enabled {
  background: #10B981;
}

.nf-variant-dot-disabled {
  background: #6B7280;
}

.nf-variant-content {
  flex: 1;
}

.nf-variant-name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.nf-variant-meta {
  font-size: 0.75rem;
  opacity: 0.6;
}

.nf-dropdown-empty {
  padding: 24px;
  text-align: center;
  opacity: 0.5;
}

/* ===========================================
   Connections Styles (connections-fyra.ejs)
   =========================================== */

/* Notification toast */
.cn-notification {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10003;
  max-width: 600px;
  width: calc(100% - 48px);
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.3s ease-out;
}

.cn-notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cn-notification-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cn-notification-text {
  flex: 1;
  font-weight: 500;
}

.cn-notification-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}

/* Warning banner */
.cn-warning-banner {
  background: #FEF3C7;
  border: 2px solid #F59E0B;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.cn-warning-content {
  display: flex;
  gap: 16px;
  align-items: start;
}

.cn-warning-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.cn-warning-title {
  font-size: 1.0625rem;
  color: #92400E;
  display: block;
  margin-bottom: 8px;
}

.cn-warning-text {
  margin: 0;
  color: #92400E;
  line-height: 1.6;
}

/* Clear rewards card */
.cn-card {
  margin-bottom: 24px;
}

.cn-card-body {
  padding: 20px;
}

.cn-card-title {
  margin: 0 0 12px 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cn-card-icon {
  font-size: 1.5rem;
}

.cn-card-desc {
  margin: 0 0 16px 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

.cn-btn-small {
  font-size: 0.875rem;
}

.cn-result {
  margin-top: 12px;
  font-size: 0.8125rem;
}

/* Loading state */
.cn-loading {
  text-align: center;
  padding: 32px;
  opacity: 0.5;
}

.cn-loading-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.cn-loading-text {
  margin: 0;
}

.cn-conn-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.2s;
}

.cn-conn-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cn-conn-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 200px;
}

.cn-conn-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #F9FAFB;
  border: 2px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cn-conn-info {
  flex-grow: 1;
}

.cn-conn-label {
  font-weight: 600;
  font-size: 1.0625rem;
  margin-bottom: 4px;
  color: var(--text);
}

.cn-conn-desc {
  opacity: 0.6;
  font-size: 0.875rem;
}

.cn-conn-desc-with-margin {
  opacity: 0.6;
  font-size: 0.875rem;
  margin-bottom: 6px;
}

.cn-conn-name {
  font-size: 0.875rem;
  color: var(--amber-light);
  font-weight: 500;
}

.cn-conn-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  align-self: flex-start;
}

.cn-status-badge {
  padding: 6px 14px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.8125rem;
}

.cn-status-success {
  background: var(--success-bg);
  color: var(--success-text);
}

.cn-status-error {
  background: var(--error-bg);
  color: var(--error-text);
}

.cn-status-disconnected {
  background: var(--bg-elev);
  color: var(--muted);
}

.cn-error-state {
  text-align: center;
  padding: 32px;
  opacity: 0.5;
}

.cn-error-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.cn-error-text {
  margin: 0;
}

.cn-result-success {
  color: var(--success-text);
}

.cn-result-warning {
  color: var(--warning-text);
  margin-top: 8px;
  display: block;
}

.cn-result-error {
  color: var(--error-text);
}

/* ===========================================
   Messages Styles (messages-fyra.ejs)
   =========================================== */

/* 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: 18px;
  z-index: 10002;
  font-size: 1.75rem;
  color: var(--text) !important;
  text-decoration: none;
}

/* Navigation bar */
.un-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-bottom: 2px solid var(--border);
  z-index: 10000;
  padding: 16px 120px 16px 24px;
  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: 140px;
  padding-right: 16px;
  align-items: center;
}

.un-nav-link {
  padding: 8px 16px;
  text-decoration: none;
  color: #6B7280;
  font-weight: 500;
  transition: color 0.2s;
  font-size: 14px;
}

.un-nav-link.active {
  color: var(--amber-light);
  font-weight: 600;
}

/* Action buttons */
.un-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

.un-btn-icon {
  padding: 10px;
  width: 40px;
  height: 40px;
  margin-right: 8px;
}

.un-dropdown {
  position: relative;
}

.un-dropdown-btn {
  padding: 10px;
  width: 40px;
  height: 40px;
}

.un-balance-btn {
  padding: 10px 16px;
  height: 40px;
}

.un-user-btn {
  padding: 8px 14px;
  height: 40px;
}

.un-dropdown-menu {
  position: fixed;
  z-index: 10001;
}

/* Content spacing */
.un-spacer {
  height: 80px;
}

/* ===========================================
   Admin Navigation Styles (admin-navigation.ejs)
   =========================================== */

/* Reuse user nav styles with admin-specific overrides */
.an-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-bottom: 2px solid var(--border);
  z-index: 10000;
  padding: 16px 24px 0 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: 140px;
  padding-right: 16px;
  align-items: center;
}

.an-nav-link {
  padding: 12px 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: 12px 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: 10001;
}

.an-dropdown-icon {
  margin-right: 8px;
}

.an-dropdown-arrow {
  font-size: 10px;
}

/* ===========================================
   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;
}

/* 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;
}

/* 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 */
.fr-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-70%) translateY(-20px);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.fr-toast-show {
  opacity: 1;
  transform: translateX(-70%) translateY(0);
}

.fr-toast-success {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
}

.fr-toast-error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
}

.fr-goal-form {
  display: grid;
  gap: 16px;
}

.fr-goal-form textarea {
  width: 100%;
  min-width: 400px;
  resize: vertical;
}

.fr-goal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fr-goal-form-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.fr-tab-content-visible {
  display: block;
}

/* ===========================================
   Bot Widget Styles (widget/bot-fyra.ejs)
   =========================================== */

/* No connection card */
.bot-no-conn {
  text-align: center;
  padding: 48px 24px;
}

.bot-no-conn-icon {
  font-size: 64px;
  margin-bottom: 24px;
}

.bot-no-conn-title {
  margin: 0 0 16px 0;
  font-size: 24px;
  color: var(--text);
}

.bot-no-conn-desc {
  margin: 0 0 24px 0;
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.bot-no-conn-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.bot-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(100, 149, 237, 0.3);
}

.bot-twitch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(145, 70, 255, 0.15);
  color: #9146FF;
  border: 2px solid rgba(145, 70, 255, 0.4);
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.bot-instructions {
  margin-top: 32px;
  padding: 20px;
  background: rgba(100, 149, 237, 0.05);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.bot-instructions-title {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: var(--text);
}

.bot-instructions-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.bot-app {
  opacity: 0;
  transition: opacity 0.2s;
}

.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;
}

.bot-status-active {
  background: rgba(34, 197, 94, 0.1);
  border: 2px solid var(--success);
  color: var(--success);
}

.bot-status-inactive {
  background: rgba(239, 68, 68, 0.1);
  border: 2px solid var(--danger);
  color: var(--danger);
}

.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;
}

.bot-form {
  display: grid;
  gap: 20px;
  margin-bottom: 30px;
}

.bot-toggle-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.bot-toggle-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.bot-toggle-text {
  font-weight: 500;
  color: var(--text);
}

.bot-prefix-input {
  max-width: 100px;
}

.bot-form-actions {
  display: flex;
  gap: 12px;
}

.bot-btn-primary {
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(100, 149, 237, 0.3);
}

.bot-btn-secondary {
  background: rgba(100, 149, 237, 0.15);
  color: #6495ED;
  border: 2px solid rgba(100, 149, 237, 0.4);
  font-weight: 600;
}

.bot-commands-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.bot-commands-title {
  margin: 0;
}

.bot-commands-actions {
  display: flex;
  gap: 8px;
}

.bot-btn-sm {
  font-size: 13px;
  padding: 8px 16px;
  transition: all 0.2s;
}

.bot-commands-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.bot-commands-list {
  display: grid;
  gap: 12px;
}

.bot-stat-card {
  padding: 12px;
  border-radius: 8px;
}

.bot-stat-card-primary {
  background: rgba(100, 149, 237, 0.05);
}

.bot-stat-card-success {
  background: rgba(34, 197, 94, 0.05);
}

.bot-stat-card-amber {
  background: rgba(255, 184, 77, 0.05);
}

.bot-stat-value {
  font-size: 24px;
  font-weight: 700;
}

.bot-stat-value-primary {
  color: var(--primary);
}

.bot-stat-value-success {
  color: var(--success);
}

.bot-stat-value-amber {
  color: var(--amber);
}

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

.bot-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.bot-modal-content {
  background: var(--bg);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.bot-modal-form {
  padding: 24px;
}

.bot-modal-title {
  margin: 0 0 20px 0;
  font-weight: 600;
  color: var(--text);
}

.bot-modal-grid {
  display: grid;
  gap: 16px;
}

.bot-modal-hint {
  color: var(--text-secondary);
  font-size: 12px;
}

.bot-modal-danger {
  color: var(--danger);
}

.bot-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  margin-left: auto;
  margin-right: auto;
}

.bot-no-conn-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.bot-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(100, 149, 237, 0.3);
}

.bot-twitch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(145, 70, 255, 0.15);
  color: #9146FF;
  border: 2px solid rgba(145, 70, 255, 0.4);
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

/* Instructions box */
.bot-instructions {
  margin-top: 32px;
  padding: 20px;
  background: rgba(100, 149, 237, 0.05);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.bot-instructions-title {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: var(--text);
}

.bot-instructions-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* 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;
}

/* 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 */
.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;
}

/* ===========================================
   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 */
.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: 24px;
  padding: 12px;
  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 */
.dp-loading-text {
  text-align: center;
  color: var(--muted);
  padding: 32px 0;
}

/* No message text */
.dp-no-message {
  font-style: italic;
  opacity: 0.6;
}

/* Support view page (support/view.ejs) */
.sv-header {
  margin-bottom: 8px;
}

.sv-header-gap {
  margin-left: 12px;
}

.sv-msg {
  padding: 8px;
}

.sv-msg-header {
  margin-bottom: 4px;
}

.sv-msg-body {
  white-space: pre-wrap;
  word-break: break-word;
}

.sv-attachments {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sv-attachments-small {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sv-attachment-link {
  color: #0066cc;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sv-attachment-icon {
  font-size: 16px;
}

.sv-attachment-name {
  text-decoration: underline;
}

.sv-attachment-size {
  color: #888;
  font-size: 13px;
  font-weight: normal;
}

.sv-image-lg {
  max-width: 360px;
  max-height: 240px;
  display: block;
  border-radius: 4px;
}

.sv-image-sm {
  max-width: 240px;
  max-height: 160px;
  display: block;
  border-radius: 4px;
}

.sv-msg-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sv-msg-item {
  border: 1px solid #eee;
  padding: 8px;
  border-radius: 6px;
}

.sv-reply-message {
  min-height: 160px;
  width: 100%;
}

.sv-row {
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.sv-rate-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sv-rate-input {
  width: 90px;
}

.sv-image-wrapper {
  margin-top: 8px;
}

/* Admin Security page (admin/security-fyra.ejs) */
.as-tabs {
  margin-bottom: 24px;
}

.as-settings-form {
  max-width: 800px;
}

.as-settings-grid {
  display: grid;
  gap: 16px;
}

.as-settings-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.as-toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.as-2fa-separator,
.as-pin-separator {
  margin: 32px 0;
  border: none;
  border-top: 2px solid #E5E7EB;
}

.as-pin-description {
  margin-bottom: 16px;
}

.as-access-card {
  margin-top: 24px;
}

.as-table-scroll {
  overflow-x: auto;
}

.as-path-cell,
.as-ua-cell {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-ua-cell {
  max-width: 250px;
}

.as-payment-filters {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}

.as-pdn-description,
.as-login-description,
.as-deleted-description {
  margin-bottom: 16px;
}

.as-filter-grid {
  margin-bottom: 16px;
  display: grid;
  gap: 12px;
  max-width: 600px;
}

.as-filter-row {
  display: flex;
  gap: 12px;
}

.as-table-loading {
  text-align: center;
  padding: 20px;
}

.as-h3 {
  margin: 0 0 16px 0;
  font-weight: 600;
}

.as-kyc-container {
  margin: 24px 0;
}

.as-pagination {
  margin-top: 16px;
  text-align: center;
}

/* Admin Stats page (admin/stats.ejs) */
.st-card-gap {
  margin: 8px 0;
}

.st-h4 {
  margin: 0 0 8px 0;
}

.st-row-flex {
  display: flex;
  align-items: center;
  gap: 8px;
}

.st-row-space {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.st-help {
  color: #8086a3;
  font-size: 12px;
}

.st-help-top {
  margin-top: 2px;
}

.st-tabs {
  margin-top: 12px;
}

.st-tab-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.st-tab-content {
  margin-top: 12px;
}

.st-url-row {
  margin-top: 8px;
}

.st-stat-editor {
  margin-top: 12px;
  display: none;
}

.st-menu-toggle {
  width: 28px;
  height: 28px;
  padding: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1f2436;
  border-color: var(--border);
  border-radius: 8px;
  color: #cfd3ff;
}

.st-menu {
  display: none;
  position: absolute;
  right: 16px;
  margin-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;
}

.st-menu-separator {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.st-delete-form {
  display: none;
}

.st-form-top {
  margin-top: 10px;
}

.st-hidden {
  display: none;
}

.st-h4-mb4 {
  margin-bottom: 4px;
}

.st-widget-header {
  font-weight: 700;
  text-transform: uppercase;
  color: #cfd3ff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.st-widget-meta {
  color: #9aa6b2;
  font-size: 12px;
}

.st-row-flex-gap8 {
  gap: 8px;
}

.st-card-mt8 {
  margin: 8px 0;
}

.st-card-h4 {
  margin: 0 0 8px 0;
}

.st-dialog {
  padding: 0;
  border: none;
  border-radius: 12px;
  max-width: 620px;
  width: 100%;
  background: linear-gradient(180deg, rgba(30,34,62,0.96), rgba(18,20,38,0.98));
  color: var(--text);
}

.st-dialog-form {
  padding: 16px;
}

.st-dialog-h4 {
  margin: 0 0 12px 0;
}

.st-dialog-input {
  background: #0f1216;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
}

.st-dialog-color {
  inline-size: 48px;
  block-size: 28px;
  background: #0f1216;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
}

.st-dialog-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.st-dialog-btn-close {
  background: #12192a;
  border: 1px solid var(--border);
}

/* Privacy page (privacy.ejs) */
.pr-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.pr-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid #E5E7EB;
}

.pr-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.pr-title {
  margin: 0 0 12px 0;
  font-size: 2rem;
  font-weight: 700;
}

.pr-dev-badge {
  font-size: 0.5em;
  color: #F59E0B;
  font-weight: 500;
  margin-left: 8px;
}

.pr-meta {
  margin: 0;
  opacity: 0.6;
  font-size: 0.9375rem;
}

.pr-meta-link {
  color: var(--amber-light);
  text-decoration: none;
}

.pr-dev-warning {
  background: #FEF3C7;
  border-left: 4px solid #F59E0B;
  padding: 16px;
  margin-bottom: 24px;
  border-radius: 4px;
}

.pr-dev-title {
  margin: 0 0 8px 0;
  font-weight: 600;
  color: #92400E;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pr-dev-icon {
  font-size: 1.2em;
}

.pr-dev-text {
  margin: 0;
  color: #78350F;
  font-size: 0.9rem;
  line-height: 1.6;
}

.pr-content {
  line-height: 1.7;
  color: var(--text);
}

.pr-section-title {
  margin: 32px 0 16px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.pr-paragraph {
  margin: 0 0 16px 0;
}

.pr-paragraph-sm {
  margin: 0 0 12px 0;
}

.pr-list {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

.pr-list-item {
  margin-bottom: 8px;
}

.pr-code {
  background: #F3F4F6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.pr-contact-text {
  margin: 0;
}

.pr-contact-row {
  margin: 8px 0 0 0;
}

.pr-contact-link {
  color: var(--amber-light);
  text-decoration: none;
  font-weight: 500;
}

/* Terms page (terms.ejs) */
.tr-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.tr-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid #E5E7EB;
}

.tr-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.tr-title {
  margin: 0 0 12px 0;
  font-size: 2rem;
  font-weight: 700;
}

.tr-dev-badge {
  font-size: 0.5em;
  color: #F59E0B;
  font-weight: 500;
  margin-left: 8px;
}

.tr-meta {
  margin: 0;
  opacity: 0.6;
  font-size: 0.9375rem;
}

.tr-dev-warning {
  background: #FEF3C7;
  border-left: 4px solid #F59E0B;
  padding: 16px;
  margin-bottom: 24px;
  border-radius: 4px;
}

.tr-dev-title {
  margin: 0 0 8px 0;
  font-weight: 600;
  color: #92400E;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tr-dev-icon {
  font-size: 1.2em;
}

.tr-dev-text {
  margin: 0;
  color: #78350F;
  font-size: 0.9rem;
  line-height: 1.6;
}

.tr-content {
  line-height: 1.7;
  color: var(--text);
}

.tr-section-title {
  margin: 32px 0 16px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.tr-paragraph {
  margin: 0 0 16px 0;
}

.tr-list {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

.tr-list-item {
  margin-bottom: 8px;
}

.tr-contact-text {
  margin: 0;
}

.tr-contact-row {
  margin: 0;
}

.tr-contact-link {
  color: var(--amber-light);
  text-decoration: none;
  font-weight: 500;
}

/* Action buttons */
.an-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
  padding-bottom: 16px;
}

/* ===== Auction page (user/auction.ejs) ===== */
.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 {
  display: block;
}

.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;
}

/* Twitch integration section */
.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.is-hidden {
  display: none;
}

.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;
  border: 1px solid #4b5563;
  border-radius: 4px;
  background: #0f172a;
  color: #f3f4f6;
  font-size: 14px;
  box-sizing: border-box;
}

.auction-twitch-input + .auction-twitch-input {
  margin-top: 8px;
}

.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;
}

/* Widget tab */
.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;
}

/* Lot cards (JS template) */
.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;
}

/* Status colors - applied via inline style for dynamic bg */
.auction-lot-status-draft { background: #6b7280; }
.auction-lot-status-active { background: #10b981; }
.auction-lot-status-ended { background: #ef4444; }
.auction-lot-status-cancelled { background: #9ca3af; }

.auction-lot-actions {
  display: flex;
  gap: 8px;
}

.auction-lot-delete-btn {
  background: #ef4444;
}

/* ===== 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;
}

/* ===== 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;
}

/* ===== 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) ===== */
.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) ===== */
.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) ===== */
.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 #E5E7EB;
}

.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;
}

/* ===== 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) ===== */
.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) ===== */
.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-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) ===== */
.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-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-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) ===== */
.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) ===== */
.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) ===== */
.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) ===== */
.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) ===== */
.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) ===== */
.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) ===== */
.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-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) ===== */
.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) ===== */
.cp-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.cp-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid #E5E7EB;
}

.cp-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.cp-title {
  margin: 0 0 12px 0;
  font-size: 2rem;
  font-weight: 700;
}

.cp-dev-tag {
  font-size: 0.5em;
  color: #F59E0B;
  font-weight: 500;
  margin-left: 8px;
}

.cp-subtitle {
  margin: 0;
  opacity: 0.6;
  font-size: 0.9375rem;
}

.cp-warning {
  background: #FEF3C7;
  border-left: 4px solid #F59E0B;
  padding: 16px;
  margin-bottom: 24px;
  border-radius: 4px;
}

.cp-warning-title {
  margin: 0 0 8px 0;
  font-weight: 600;
  color: #92400E;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cp-warning-icon {
  font-size: 1.2em;
}

.cp-warning-text {
  margin: 0;
  color: #78350F;
  font-size: 0.9rem;
  line-height: 1.6;
}

.cp-content {
  line-height: 1.7;
  color: var(--text);
}

.cp-section-title {
  margin: 32px 0 16px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.cp-paragraph {
  margin: 0 0 16px 0;
}

.cp-list {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

.cp-list-item {
  margin-bottom: 8px;
}

.cp-contact-link {
  color: var(--amber-light);
  text-decoration: none;
  font-weight: 500;
}

/* ===== Verify IP (verify-ip.ejs) ===== */
.vip-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.vip-error-text {
  margin: 0;
}

.vip-alert-info {
  margin-bottom: 2rem;
}

.vip-alert-text {
  margin: 0;
}

.vip-alert-subtext {
  margin: 0.5rem 0 0 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.vip-security-notice {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.vip-notice-title {
  margin: 0 0 1rem 0;
  font-weight: 600;
}

.vip-ip-display {
  margin: 0;
  font-family: monospace;
  font-size: 1.1rem;
  color: #667eea;
}

.vip-code-input {
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 0.5rem;
  font-family: monospace;
}

.vip-muted {
  margin: 0;
  color: #6c757d;
}

.vip-warning {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 1rem;
  margin-top: 2rem;
  border-radius: 4px;
}

.vip-warning-text {
  margin: 0;
  font-size: 0.9rem;
  color: #856404;
}

/* ===== 2FA (2fa.ejs) ===== */
.tfa-btn {
  margin-top: 10px;
}

.tfa-status {
  margin-top: 8px;
  color: #4caf50;
}

/* ===== Personal Fyra (personal-fyra.ejs) ===== */
.pd-content-spacer {
  height: 80px;
}

.pd-locked-card {
  text-align: center;
  padding: 48px 20px;
}

.pd-locked-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.pd-locked-text {
  color: var(--text-secondary);
}

.pd-section-title {
  margin-bottom: 24px;
}

.pd-section-empty {
  text-align: center;
  padding: 48px 20px;
  opacity: 0.5;
}

.pd-section-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.pd-section-empty-link {
  margin-top: 16px;
}

/* Dropdown styles (some are dynamic, but base styles can be extracted) */
.pd-dropdown-notifications-btn {
  padding: 10px;
  width: 40px;
  height: 40px;
}

.pd-dropdown-notifications-badge {
  display: none;
}

.pd-dropdown-notifications-menu {
  position: fixed;
  z-index: 10001;
}

.pd-dropdown-balance-btn {
  padding: 10px 16px;
  height: 40px;
}

.pd-dropdown-balance-menu {
  position: fixed;
  z-index: 10001;
}

.pd-dropdown-user-btn {
  padding: 8px 14px;
  height: 40px;
}

.pd-dropdown-user-menu {
  position: fixed;
  z-index: 10001;
}

/* ===== Legal Documents (admin/legal-documents-fyra.ejs) ===== */
.ld-field-hint-inline {
  display: block;
  margin-top: 4px;
  font-size: 0.875rem;
  opacity: 0.7;
}

.ld-form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.ld-upload-description {
  opacity: 0.7;
  margin-bottom: 24px;
}

.ld-upload-container {
  display: grid;
  gap: 32px;
}

/* ===== 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-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;
}

.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) - дополнительные классы ===== */
.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;
}

.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-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) */
.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) */
.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) */
.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) */
.tc-card {
  max-width: 600px;
  margin: 40px auto;
  text-align: center;
}

.tc-title {
  color: var(--text, #1a1d23);
  margin-bottom: 24px;
}

.tc-benefits-box {
  margin: 24px 0;
  padding: 20px;
  background: var(--bg-elev, #f5f5f5);
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 12px;
  text-align: left;
}

.tc-benefits-title {
  margin-top: 0;
  font-size: 16px;
  color: var(--text, #1a1d23);
  font-weight: 600;
}

.tc-benefits-list {
  margin: 12px 0;
  padding-left: 24px;
  line-height: 2;
  color: var(--text, #1a1d23);
  opacity: 0.8;
}

.tc-connect-container {
  margin: 32px 0;
}

.tc-connect-text {
  color: var(--text, #1a1d23);
  font-size: 14px;
  margin-bottom: 20px;
  opacity: 0.7;
}

.tc-widget-container {
  min-height: 40px;
  position: relative;
  z-index: 1;
}

.tc-warning-box {
  margin-top: 24px;
  padding: 16px;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 8px;
  font-size: 14px;
  text-align: left;
  color: #856404;
}

.tc-back-container {
  margin-top: 28px;
}

.tc-back-btn {
  display: inline-block;
  padding: 10px 20px;
  text-decoration: none;
}

/* Roulette dialogs (admin & widget) */
.roulette-dialog {
  padding: 0;
  border: none;
  border-radius: 12px;
  max-width: 720px;
  width: 100%;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.roulette-dialog--narrow {
  max-width: 620px;
}

.roulette-dialog__form {
  padding: 16px;
}

.roulette-dialog__form--spacious {
  padding: 20px;
}

.roulette-dialog__title {
  margin: 0 0 12px 0;
  font-weight: 600;
}

.roulette-dialog__title--lg {
  margin-bottom: 16px;
  font-weight: 700;
}

.roulette-dialog__tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
  padding-bottom: 2px;
}

.roulette-dialog__tabs--thick-border {
  border-bottom-width: 2px;
  margin-bottom: 12px;
}

.roulette-dialog__tab-btn {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.roulette-dialog__preview {
  margin: 8px 0 12px 0;
  overflow: hidden;
  border-radius: 0;
}

.roulette-dialog__bar {
  height: 22px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  border: none;
  box-sizing: border-box;
}

.roulette-dialog__bar-fill {
  height: 100%;
  width: 50%;
  background: #6d5efc;
  border-radius: inherit;
}

.roulette-dialog__field-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.roulette-dialog__chip {
  display: inline-block;
  width: 28px;
  height: 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.roulette-dialog__shadow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.roulette-dialog__shadow-label {
  font-size: 11px;
  color: #8086a3;
  margin-bottom: 3px;
}

.roulette-dialog__shadow-input {
  width: 100%;
}

.roulette-dialog__field-row {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.roulette-dialog__checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.roulette-dialog__checkbox--lg {
  width: 20px;
  height: 20px;
}

.roulette-dialog__text-input,
.roulette-dialog__number-input,
.roulette-dialog__select {
  background: #0f1216;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
}

.roulette-dialog__text-input--hidden {
  display: none;
}

.roulette-dialog__color-input {
  inline-size: 48px;
  block-size: 28px;
  background: #0f1216;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
}

.roulette-dialog__color-input--full {
  width: 100%;
  height: 36px;
}

.roulette-dialog__actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.roulette-dialog__actions--lg {
  margin-top: 16px;
  gap: 10px;
}

.roulette-dialog__btn-cancel {
  background: #12192a;
  border: 1px solid var(--border);
}

.roulette-dialog__goal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.roulette-dialog__goal-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.roulette-dialog__goal-main-label {
  flex: 1;
  min-width: 200px;
}

.roulette-dialog__goal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}


/* OAuth Email (oauth_email.ejs) */
.oe-alert-warning {
  background: #2a2318;
  border: 1px solid #6f5f2f;
  color: #ffd966;
  padding: 14px 16px;
  border-radius: 12px;
  margin: 16px 0;
}

.oe-alert-strong {
  display: block;
  margin-bottom: 8px;
}

.oe-alert-text {
  margin: 0 0 8px 0;
  font-size: 14px;
}

.oe-alert-list {
  margin: 8px 0 8px 20px;
  font-size: 14px;
  line-height: 1.6;
}

.oe-alert-footer {
  margin: 8px 0 0 0;
  font-weight: 600;
  font-size: 14px;
}

.oe-errors-list {
  margin: 0;
  padding-left: 20px;
}

.oe-required-mark {
  color: var(--accent);
}

.oe-hint-text {
  display: block;
  margin-top: -8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.oe-footer-text {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* Telegram Login (telegram_login.ejs) */
.tl-card {
  max-width: 600px;
  margin: 40px auto;
  text-align: center;
}

.tl-title {
  color: var(--text, #1a1d23);
  margin-bottom: 24px;
}

.tl-info-box {
  margin: 24px 0;
  padding: 20px;
  background: var(--bg-elev, #f5f5f5);
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 12px;
  text-align: left;
}

.tl-info-text {
  color: var(--text, #1a1d23);
  margin: 0;
  line-height: 1.8;
  opacity: 0.8;
}

.tl-connect-container {
  margin: 32px 0;
}

.tl-connect-text {
  color: var(--text, #1a1d23);
  font-size: 14px;
  margin-bottom: 20px;
  opacity: 0.7;
}

.tl-widget-container {
  min-height: 50px;
  position: relative;
  z-index: 1;
}

.tl-back-container {
  margin-top: 28px;
}

.tl-back-btn {
  display: inline-block;
  padding: 10px 20px;
  text-decoration: none;
}

/* 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) */
.vf-modal-overlay.is-visible {
  display: flex;
}

.vf-modal-error.is-visible {
  display: block;
}

.vf-step.is-visible {
  display: block;
}

.vf-step.is-hidden {
  display: none;
}

.vf-btn.is-visible {
  display: inline-block;
}

.vf-btn.is-hidden {
  display: none;
}

.vf-indicator-active {
  background: #10B981;
}

.vf-indicator-inactive {
  background: #ddd;
}

.vf-input-focused {
  border-color: var(--amber-light);
  box-shadow: 0 0 0 3px rgba(255,184,77,0.1);
}

.vf-input-blurred {
  border-color: #E5E7EB;
  box-shadow: none;
}

body.modal-open {
  overflow: hidden;
}

.vf-step-indicator.vf-indicator-active {
  background: #10B981;
  color: #fff;
}

.vf-step-indicator.vf-indicator-inactive {
  background: #374151;
  color: #9ca3af;
}

/* Settings Fyra - Additional (partials/settings-fyra.ejs) */
.sf-password-label-last {
  margin-bottom: 24px;
}

.sf-2fa-methods-hint {
  margin-bottom: 16px;
  opacity: 0.7;
  font-size: 0.875rem;
}

.sf-2fa-telegram-hint {
  margin-top: 12px;
  font-size: 0.875rem;
  opacity: 0.7;
}

.sf-opacity-50 {
  opacity: 0.5;
}

.sf-opacity-60 {
  opacity: 0.6;
}

.sf-opacity-100 {
  opacity: 1;
}

/* Personal Page - Additional (pages/personal.ejs) */
.pd-error-text {
  color: #EF4444;
}

/* 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) */
.st-attachments {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.st-attachment-item {
  display: inline-block;
}

.st-attachment-link {
  color: #0066cc;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.st-attachment-icon {
  font-size: 16px;
}

.st-attachment-name {
  text-decoration: underline;
}

.st-attachment-size {
  color: #888;
  font-size: 11px;
  font-weight: normal;
}

.st-attachment-image-wrap {
  margin-top: 6px;
}

.st-attachment-image {
  max-width: 300px;
  max-height: 200px;
  display: block;
  border-radius: 4px;
}

.st-field-error {
  color: #ff98a6;
  margin-top: 6px;
  font-size: 12px;
}

/* Sound Admin (pages/admin/sound.ejs) */
.sd-card-mt {
  margin: 8px 0;
}

.sd-card-title {
  margin: 0 0 8px 0;
}

.sd-current-row {
  margin-top: 6px;
  color: #8086a3;
  font-size: 12px;
}

.sd-controls-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.sd-volume-row {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sd-volume-input {
  width: 68px;
}

.sd-help-text {
  margin-top: 6px;
  color: #8086a3;
  font-size: 12px;
}

/* 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) */
.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) */
.msg-td-message-opacity-1 {
  opacity: 1;
}

.msg-td-message-opacity-0\.5 {
  opacity: 0.5;
}

.msg-btn-delete {
  padding: 6px 12px;
  font-size: 0.875rem;
  background: var(--bg);
  border: 2px solid var(--border);
  color: var(--text);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.msg-btn-delete-normal {
  opacity: 0.7;
}

.msg-btn-delete-hover {
  opacity: 1;
}

.msg-empty {
  text-align: center;
  padding: 64px 20px;
  opacity: 0.5;
}

.msg-empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.msg-empty-title {
  font-size: 1.125rem;
  margin: 0;
}

.msg-empty-desc {
  font-size: 0.9375rem;
  margin: 8px 0 0 0;
  opacity: 0.7;
}

/* Error Page (pages/error.ejs) */
.err-card {
  text-align: center;
  padding: 64px 32px;
  max-width: 600px;
  margin: 64px auto;
}

.err-icon {
  font-size: 4rem;
  margin-bottom: 24px;
}

.err-title {
  margin-bottom: 16px;
  color: var(--text);
}

.err-message {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 32px;
}

.err-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Forgot Password (pages/forgot_password.ejs) */
.fp-back-link {
  margin-top: 16px;
}

.fp-back-link-mt {
  margin-top: 24px;
}

.fp-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.fp-btn-method {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.fp-btn-telegram {
  background: #0088cc;
  color: white;
}

/* Common Auth Pages */
.auth-back-link {
  margin-top: 16px;
}

/* Widget Stats (pages/widget_stats.ejs) */
.ws-bg-transparent {
  background: transparent;
}

.ws-inner {
  min-width: 0;
}

/* Admin Main (pages/admin/main.ejs) */
.am-title {
  margin: 0 0 16px 0;
  font-weight: 600;
}

.am-actions {
  display: flex;
  gap: 12px;
}

/* Fraud Dashboard (pages/admin/fraud_dashboard.ejs) */
.fd-progress {
  height: 20px;
}

/* 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) */
.fdc-title {
  margin: 0;
}

.fdc-progress {
  min-width: 80px;
}

/* Roulette Control (pages/widget/roulette_control.ejs, pages/admin/roulette_control.ejs) */
.rc-title {
  margin: 0 0 16px 0;
  font-weight: 700;
  color: var(--text);
}

.rc-desc {
  margin-bottom: 16px;
}

.rc-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Admin Image (pages/admin/image.ejs) */
.ai-title {
  margin: 0 0 16px 0;
  font-weight: 600;
}

.ai-help {
  margin-top: 6px;
  color: #8086a3;
  font-size: 12px;
}

.ai-actions {
  display: flex;
  gap: 12px;
}

/* Support Index (pages/support/index.ejs) */
.si-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.si-form {
  flex: 1;
}

.si-select {
  min-width: 200px;
}

.si-actions {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.si-card {
  margin-top: 12px;
}

/* Admin Notifications Fyra (pages/admin/notifications-fyra.ejs) */
.anf-desc {
  margin-bottom: 24px;
}

.anf-form-grid {
  display: grid;
  gap: 20px;
  max-width: 800px;
}

.anf-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.anf-checkbox-text {
  font-weight: 500;
  color: var(--text);
}

.anf-result {
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  border: 2px solid var(--border);
}

/* Personal Page - Dynamic HTML (pages/personal.ejs) */
.pd-receipt-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pd-receipt-option {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.pd-receipt-option-selected {
  border-color: var(--amber-light, #F59E0B);
}

.pd-receipt-radio {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.pd-receipt-label {
  font-weight: 500;
}

.pd-receipt-connect {
  margin-left: auto;
  font-size: 12px;
  color: #F59E0B;
}

.pd-receipt-connect-link {
  color: #F59E0B;
}

.pd-receipt-actions {
  margin-top: 16px;
}

.pd-2fa-methods-hint {
  margin-bottom: 16px;
  font-size: 13px;
}

.pd-2fa-hint-link {
  color: #5b8def;
}

.pd-2fa-muted-small {
  font-size: 12px;
}

/* ===== Cookie Consent Banner ===== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--bg-primary, #1a1a2e);
  border-top: 1px solid var(--border-color, rgba(255,255,255,0.1));
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  padding: 20px;
  animation: slideUpCookie 0.4s ease-out;
}

@keyframes slideUpCookie {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 300px;
}

.cookie-banner-title {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary, #fff);
}

.cookie-banner-description {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary, rgba(255,255,255,0.7));
  line-height: 1.5;
}

.cookie-banner-link {
  color: var(--amber-light, #F59E0B);
  text-decoration: underline;
}

.cookie-banner-link:hover {
  color: var(--amber, #FBBF24);
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: var(--amber-light, #F59E0B);
  color: #000;
}

.cookie-btn-accept:hover {
  background: var(--amber, #FBBF24);
  transform: translateY(-1px);
}

.cookie-btn-reject {
  background: transparent;
  color: var(--text-secondary, rgba(255,255,255,0.7));
  border: 1px solid var(--border-color, rgba(255,255,255,0.2));
}

.cookie-btn-reject:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary, #fff);
}

.cookie-btn-settings {
  background: transparent;
  color: var(--text-secondary, rgba(255,255,255,0.7));
  border: 1px solid var(--border-color, rgba(255,255,255,0.2));
}

.cookie-btn-settings:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary, #fff);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10001;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
}

.cookie-modal-overlay.is-visible {
  display: flex !important;
  animation: fadeIn 0.2s ease-out;
}

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

.cookie-modal {
  background: var(--bg-primary, #1a1a2e);
  border-radius: 16px;
  max-width: 480px;
  width: 90%;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  animation: slideUpModal 0.3s ease-out;
  margin: auto;
}

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

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.1));
}

.cookie-modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary, #fff);
}

.cookie-modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary, rgba(255,255,255,0.5));
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 4px;
  transition: all 0.2s;
}

.cookie-modal-close:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary, #fff);
}

.cookie-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.cookie-modal-intro {
  margin: 0 0 24px 0;
  font-size: 0.9rem;
  color: var(--text-secondary, rgba(255,255,255,0.7));
  line-height: 1.6;
}

.cookie-category {
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.cookie-category:last-child {
  margin-bottom: 0;
}

.cookie-category-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.cookie-category-info {
  flex: 1;
}

.cookie-category-title {
  margin: 0 0 4px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary, #fff);
}

.cookie-category-desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary, rgba(255,255,255,0.6));
  line-height: 1.5;
}

/* Cookie Toggle */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.15);
  transition: 0.3s;
  border-radius: 26px;
}

.cookie-toggle-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  transition: 0.3s;
  border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--amber-light, #F59E0B);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(22px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-modal-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-color, rgba(255,255,255,0.1));
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Responsive */
@media (max-width: 640px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-banner-actions {
    justify-content: center;
  }

  .cookie-modal-footer {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Light theme support */
[data-theme="light"] .cookie-banner,
[data-theme="light"] .cookie-modal {
  background: #fff;
  border-color: rgba(0,0,0,0.1);
}

[data-theme="light"] .cookie-banner-title,
[data-theme="light"] .cookie-modal-title,
[data-theme="light"] .cookie-category-title {
  color: #1a1a2e;
}

[data-theme="light"] .cookie-banner-description,
[data-theme="light"] .cookie-modal-intro,
[data-theme="light"] .cookie-category-desc {
  color: rgba(0,0,0,0.7);
}

[data-theme="light"] .cookie-btn-reject,
[data-theme="light"] .cookie-btn-settings {
  color: rgba(0,0,0,0.7);
  border-color: rgba(0,0,0,0.2);
}

[data-theme="light"] .cookie-btn-reject:hover,
[data-theme="light"] .cookie-btn-settings:hover {
  background: rgba(0,0,0,0.05);
  color: #1a1a2e;
}

[data-theme="light"] .cookie-category {
  background: rgba(0,0,0,0.03);
}

[data-theme="light"] .cookie-toggle-slider {
  background: rgba(0,0,0,0.15);
}

[data-theme="light"] .cookie-modal-overlay {
  background: rgba(0,0,0,0.5);
}
