/* Reusable Components - Extracted from inline-styles.css */
/* Contains: buttons, cards, badges, alerts, modals, tabs, dropdowns */

.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;
}

.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;
}


.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;
}


.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 */

/* 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;
}


/* 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 */

/* 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 */

/* 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 */

/* Button sizes */
.rw-btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.rw-btn-xs {
  padding: 6px 12px;
  font-size: 0.875rem;
}

/* Text utilities */

/* 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 */

/* 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 */

/* 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 */

/* 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 */

/* 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 */

/* 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 */

/* 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;
}

/* ===========================================

/* 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 */

/* 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 */

/* 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 */

/* 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 */

/* 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 */

/* 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 */

/* 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 */

/* 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;
}

/* ===========================================

/* 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;
}

.cn-icon-fallback {
  font-size: 28px;
}

.cn-error-text {
  color: var(--error-text);
}

/* Warning banner */

/* 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 */

/* 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 */

/* 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 */

/* 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 */

/* 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 */

/* 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 */

/* ========================================
   MIGRATED FROM INLINE STYLES - 2026-01
   Dashboard Withdrawals & Security Settings
   ======================================== */

/* ===== Dashboard Withdrawals Badges ===== */
.dw-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  display: inline-block;
}

.dw-badge-verified { background: #4caf50; }
.dw-badge-pending { background: #ff9800; }
.dw-badge-active { background: #2196f3; }
.dw-badge-inactive { background: #9e9e9e; }
.dw-badge-primary { background: #673ab7; }

.dw-empty-state {
  color: #8086a3;
  text-align: center;
  padding: 24px;
}

.dw-badges-row {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ===== Admin Security Settings ===== */
.ss-card { max-width: 600px; }

.ss-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ss-status-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ss-status-icon { font-size: 2rem; }
.ss-status-title { font-weight: 600; font-size: 16px; }
.ss-status-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.ss-error-box {
  padding: 16px;
  background: #FEE2E2;
  border: 2px solid #FCA5A5;
  border-radius: 12px;
  color: #991B1B;
}

.ss-warning-box {
  padding: 12px;
  background: #FEF3C7;
  border: 2px solid #FDE68A;
  border-radius: 8px;
  font-size: 14px;
  color: #92400E;
}

.ss-button-group {
  display: flex;
  gap: 8px;
}

.ss-btn-small {
  padding: 10px 16px;
  font-size: 0.875rem;
  white-space: nowrap;
}

/* ===== 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) ===== */

/* ===== 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 Banner - expandable details panel */
.cookie-banner-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 20px;
}

.cookie-banner-details.is-open {
  max-height: 500px;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border-color, rgba(255,255,255,0.1));
}

.cookie-banner-categories {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.cookie-banner-details-actions {
  max-width: 1200px;
  margin: 12px auto 0;
  display: flex;
  justify-content: flex-end;
}

@keyframes slideDownCookie {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

.cookie-banner-hiding {
  animation: slideDownCookie 0.3s ease-in forwards;
}

.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;
}

/* Responsive */
@media (max-width: 640px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-banner-actions {
    justify-content: center;
  }

  .cookie-banner-categories {
    grid-template-columns: 1fr;
  }

  .cookie-banner-details-actions {
    justify-content: center;
  }

  .cookie-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Light theme support */
[data-theme="light"] .cookie-banner {
  background: #fff;
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

[data-theme="light"] .cookie-banner-title,
[data-theme="light"] .cookie-category-title {
  color: #1a1a2e;
}

[data-theme="light"] .cookie-banner-description,
[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-banner-details.is-open {
  border-color: rgba(0,0,0,0.1);
}


/* ===== Admin Marketing Page ===== */

/* ===== Admin Marketing Page ===== */

.mk-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color, #333);
  padding-bottom: 0;
}

.mk-tab {
  padding: 12px 20px;
  color: var(--text-muted, #888);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
}

.mk-tab:hover {
  color: var(--text-color, #fff);
}

.mk-tab-active {
  color: var(--primary-color, #7c3aed);
  border-bottom-color: var(--primary-color, #7c3aed);
}

.mk-tab-content-hidden {
  display: none;
}

.mk-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 1024px) {
  .mk-grid-2 {
    grid-template-columns: 1fr;
  }
}

.mk-form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mk-form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mk-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mk-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.mk-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.mk-table-wrap {
  overflow-x: auto;
}

.mk-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.mk-badge-active {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.mk-badge-inactive {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.mk-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.mk-stat-item {
  text-align: center;
  padding: 16px;
  background: var(--card-bg, #1a1a2e);
  border-radius: 8px;
}

.mk-stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color, #7c3aed);
}

.mk-stat-label {
  font-size: 14px;
  color: var(--text-muted, #888);
  margin-top: 4px;
}

.mk-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.mk-section-title-mt {
  margin-top: 24px;
}

.mk-announcements-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mk-announcement-item {
  padding: 16px;
  background: var(--card-bg, #1a1a2e);
  border-radius: 8px;
  border-left: 3px solid var(--border-color, #333);
}

.mk-announcement-active {
  border-left-color: var(--primary-color, #7c3aed);
}

.mk-announcement-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.mk-announcement-text {
  color: var(--text-muted, #888);
  font-size: 14px;
  margin-bottom: 8px;
}

.mk-announcement-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted, #888);
}

.mk-tag {
  padding: 2px 6px;
  background: var(--border-color, #333);
  border-radius: 4px;
}

.mk-delete-form {
  margin-top: 8px;
}

.mk-delete-form-inline {
  display: inline;
}

.mk-referral-desc {
  margin-bottom: 16px;
}

.mk-no-referrals {
  margin-top: 16px;
}

.promo-field-hidden {
  display: none;
}

.mk-input-uppercase {
  text-transform: uppercase;
}

.mk-alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.mk-alert-success {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.mk-alert-error {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}
.mk-alert:empty { display: none; }

.mk-textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--input-bg, #0d0d1a);
  border: 1px solid var(--border-color, #333);
  border-radius: 8px;
  color: var(--text-color, #fff);
  font-size: 14px;
  resize: vertical;
}

.mk-btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}

.mk-btn-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.mk-btn-danger:hover {
  background: rgba(239, 68, 68, 0.3);
}

/* ===== Test Message Modal (notifications-fyra.ejs) ===== */

/* ===== Test Message Modal (notifications-fyra.ejs) ===== */
.nf-test-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nf-test-modal {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.nf-test-modal-title {
  margin: 0 0 20px 0;
  font-weight: 600;
  color: var(--text);
}

.nf-test-modal-group {
  margin-bottom: 20px;
}

.nf-test-modal-group-last {
  margin-bottom: 24px;
}

.nf-test-modal-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

.nf-test-modal-textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  resize: vertical;
  font-family: inherit;
}

.nf-test-modal-select {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
}

.nf-test-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.nf-test-modal-btn-cancel {
  padding: 10px 20px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  font-weight: 500;
}

.nf-test-modal-btn-send {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #FFB84D 0%, #FF8C6B 100%);
  color: #1a1a2e;
  cursor: pointer;
  font-weight: 600;
}

/* ========== Donation Moderation Queue Button ========== */

/* ========== Donation Moderation Queue Button ========== */
.dn-queue-link-section {
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg-elevated, rgba(255,255,255,0.03));
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 12px;
  text-align: center;
}

.dn-queue-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
}

.dn-queue-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: #ef4444;
  color: #fff;
  border-radius: 11px;
  font-size: 0.8rem;
  font-weight: 600;
}

.dn-queue-link-section .dn-form-hint {
  display: block;
  margin-top: 8px;
  color: var(--text-muted, rgba(255,255,255,0.5));
  font-size: 0.85rem;
}

/* ============================================ */
/* Block Modal (admin user block) */
/* ============================================ */

.block-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
}

.block-modal-content {
  background: var(--bg-card, #1e293b);
  border-radius: 12px;
  padding: 24px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.block-modal-title {
  margin: 0 0 16px 0;
  color: var(--text-primary, #f1f5f9);
}

.block-modal-label {
  display: block;
  margin-bottom: 12px;
  color: var(--text-secondary, #94a3b8);
  font-size: 0.9rem;
}

.block-modal-label--expires {
  margin-bottom: 16px;
}

.block-modal-input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color, #334155);
  background: var(--bg-input, #0f172a);
  color: var(--text-primary, #f1f5f9);
  font-size: 0.9rem;
  resize: vertical;
  box-sizing: border-box;
}

.block-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.block-modal-confirm {
  background: #ef4444;
  border-color: #ef4444;
}

/* ============================================ */
/* Ban Info Popup (admin user detail) */
/* ============================================ */

.ban-info-btn {
  cursor: pointer;
  font-size: 0.65em;
  vertical-align: middle;
  margin-left: 8px;
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
}

.ban-info-popup {
  display: none;
  position: absolute;
  z-index: 100;
  background: var(--bg-card, #1e293b);
  border: 1px solid #ef4444;
  border-radius: 8px;
  padding: 16px;
  max-width: 360px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  font-size: 0.85rem;
  color: var(--text-primary, #f1f5f9);
}

.ban-info-popup__title {
  color: #ef4444;
}

.ban-info-popup p {
  margin: 4px 0;
}

.ban-info-popup p:first-of-type {
  margin-top: 8px;
}

/* ============================================ */
/* Appeal Page */
/* ============================================ */

.appeal-textarea {
  display: block;
  width: 100%;
  min-height: 160px;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-color, #334155);
  background: var(--bg-input, #0f172a);
  color: var(--text-primary, #f1f5f9);
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
}

.appeal-actions {
  margin-top: 16px;
}

/* ============================================ */
/* Login Page - Ban Notice */
/* ============================================ */

.auth-notice--ban {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

.auth-notice--warning {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}

.auth-notice__text--ban {
  margin: 0;
  color: #ef4444;
  font-size: 0.9rem;
}

.auth-notice__text--warning {
  margin: 0;
  color: #f59e0b;
  font-size: 0.9rem;
}

.auth-notice__appeal {
  margin: 0.5rem 0 0 0;
}

.auth-notice__appeal a {
  color: #f59e0b;
  text-decoration: underline;
}

/* ============================================ */
/* New simplified donation form styles */
/* ============================================ */

/* Message container with inline TTS selector */

