:root {
  --realm-blue: #319acf;
  --realm-blue-light: #4B93C4;
  --realm-blue-dark: #2676A8;
  --realm-btn-blue: #337AB7;
  --realm-gold: #C9A263;
  --realm-gold-light: #F5C36E;
  --realm-gold-bg: #FFFDF8;
  --realm-cream: #F8F4ED;
  --realm-warm: #F0EAE0;
  --realm-warm-border: #DDD5C8;
  --realm-tan: #E8E0D0;
  --realm-dark-tan: #8C7B6B;
  --realm-brown: #7A5C2E;
  --realm-dark-brown: #2C1810;
  --visa-blue: #1A1F71;
  --visa-yellow: #FFB942;
  --visa-orange: #F79E1B;
  --visa-red: #EB001B;
  --apple-pay: #000000;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --gray-950: #030712;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --amber-500: #f59e0b;
  --red-500: #ef4444;
  --sidebar-bg: #319acf;
  --terminal-bg: #222;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #1a1a1a;
  color: #333;
  overflow: hidden;
  height: 100vh;
}

#app {
  height: 100vh;
  overflow: hidden;
}

/* ==================== MAIN LAYOUT ==================== */
.app-root {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--gray-900);
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

/* ==================== TOP BAR (Flow Tabs) ==================== */
.top-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 8px 12px;
  background: var(--gray-900);
  border-bottom: 1px solid #374151;
}

.flow-tabs {
  display: flex;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #4b5563;
  margin-right: 8px;
}

.flow-tab {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  border-right: 1px solid #4b5563;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--gray-800);
  color: var(--gray-400);
}

.flow-tab:last-child {
  border-right: none;
}

.flow-tab:hover {
  background: #374151;
  color: #d1d5db;
}

.flow-tab.active {
  background: var(--realm-btn-blue);
  color: white;
}

.step-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-right: auto;
}

.step-tab {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s;
}

.step-tab:hover {
  color: #d1d5db;
}

.step-tab.active {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
}

.step-tab.active-blue {
  background: var(--realm-btn-blue);
  color: white;
  border: 1px solid var(--realm-blue-light);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.reset-btn {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #4b5563;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.15s;
}

.reset-btn:hover {
  background: var(--realm-btn-blue);
  color: white;
  border-color: var(--realm-blue-light);
}

/* ==================== CONTENT AREA (Full width) ==================== */
.content-area {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.realm-panel {
  flex: 1;
  display: flex;
  overflow: hidden;
  background: var(--gray-50);
  min-width: 0;
}

/* ==================== SIDEBAR ==================== */
.sidebar {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: white;
  border-right: 1px solid #ddd;
}

.sidebar-header {
  height: 64px;
  flex-shrink: 0;
  padding: 7px 8px;
  display: flex;
  align-items: center;
  background: var(--sidebar-bg);
}

.sidebar-header-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 8px;
  border-radius: 8px;
  width: 100%;
  cursor: pointer;
  transition: background 0.15s;
}

.sidebar-header-inner:hover {
  background: rgba(0,0,0,0.1);
}

.realm-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgb(31, 133, 185) 0%, rgb(79, 180, 231) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.realm-logo svg {
  width: 100%;
  height: 100%;
}

.sidebar-org {
  flex: 1;
  min-width: 0;
}

.sidebar-org-name {
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-org-product {
  color: white;
  font-weight: 900;
  font-size: 16px;
  line-height: 20px;
}

.sidebar-chevron {
  display: flex;
  flex-direction: column;
  gap: 1px;
  align-items: center;
  flex-shrink: 0;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  transition: background 0.1s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.sidebar-item:hover {
  background: #f5f5f5;
}

.sidebar-item.active {
  background: #e8f4fb;
  color: var(--realm-blue-dark);
  font-weight: 600;
}

.sidebar-item .bi {
  width: 16px;
  text-align: center;
  font-size: 14px;
  color: #777;
}

.sidebar-item.active .bi {
  color: var(--realm-blue-dark);
}

.sidebar-footer {
  flex-shrink: 0;
  padding: 8px 12px;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--realm-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.sidebar-user-name {
  font-size: 12px;
  font-weight: 600;
  color: #333;
}

.sidebar-user-role {
  font-size: 10px;
  color: #999;
}

/* ==================== CONTENT MAIN ==================== */
.content-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: white;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.content-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.content-header h2 {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.content-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

/* ==================== REGISTRANT LIST ==================== */
.reg-list-wrapper {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
}

.reg-list-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reg-list-title {
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

.reg-list-meta {
  font-size: 11px;
  color: #777;
}

.reg-table {
  width: 100%;
  font-size: 12px;
  border-collapse: collapse;
}

.reg-table thead th {
  padding: 8px 12px;
  text-align: left;
  font-weight: 500;
  color: var(--gray-400);
  border-bottom: 1px solid var(--gray-100);
  font-size: 11px;
}

.reg-table tbody tr {
  border-bottom: 1px solid var(--gray-50);
  transition: background 0.1s;
}

.reg-table tbody tr:hover {
  background: var(--gray-50);
}

.reg-table tbody tr:last-child {
  border-bottom: none;
}

.reg-table td {
  padding: 10px 12px;
  color: var(--gray-600);
}

.reg-name {
  font-weight: 600;
  color: var(--gray-800);
}

.reg-status-paid {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  background: #dcfce7;
  color: #166534;
}

.reg-status-partial {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  background: #fef3c7;
  color: #92400e;
}

.reg-status-unpaid {
  color: var(--gray-500);
  font-size: 12px;
}

.reg-dots {
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--gray-400);
  background: none;
  border: none;
  font-size: 16px;
  line-height: 1;
}

.reg-dots:hover {
  background: var(--gray-100);
  color: var(--gray-600);
}

.reg-row-menu {
  position: absolute;
  right: 16px;
  z-index: 20;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  width: 176px;
  overflow: hidden;
}

.reg-row-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--gray-700);
  background: none;
  border: none;
  font-weight: 600;
  transition: all 0.1s;
}

.reg-row-menu-item:hover {
  background: #eff6ff;
  color: var(--realm-btn-blue);
}

/* ==================== MODAL ==================== */
.modal-overlay {
  position: fixed; /* Changed from absolute to fixed to lock it to the screen */
  inset: 0;
  background: rgba(0,0,0,0.2);
  display: flex;
  align-items: flex-start; /* 1. Aligns the modal box to the top */
  justify-content: flex-end;
  z-index: 20;
  padding: 0; /* 2. Removed padding to prevent top/right gaps */
}

.modal-box {
  background: white;
  border-bottom-left-radius: 12px; /* Leaves a round corner on the bottom-left edge */
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  width: 375px;
  max-width: 100%; /* Fix: Changed from 400px so it respects your 420px width on larger screens */
  overflow: hidden;
  animation: slide-in-right 0.25s ease;
}


.modal-header {
  padding: 4px 4px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
}

.modal-close {
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
}

.modal-close:hover {
  color: var(--gray-600);
}

.modal-body {
  padding: 5px;
}

.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ==================== FORM ELEMENTS ==================== */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 12px;
  color: var(--gray-600);
  margin-bottom: 4px;
  font-weight: 500;
}

.form-control-sm {
  font-size: 13px;
  padding: 6px 10px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  width: 100%;
  transition: border-color 0.15s;
}

.form-control-sm:focus {
  outline: none;
  border-color: var(--realm-btn-blue);
  box-shadow: 0 0 0 2px rgba(51,122,183,0.15);
}

.form-select-sm {
  font-size: 13px;
  padding: 6px 28px 6px 10px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  width: 100%;
  background: white;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

/* ==================== BUTTONS ==================== */
.btn-realm {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-realm-primary {
  background: var(--realm-btn-blue);
  color: white;
}

.btn-realm-primary:hover {
  background: #2a6a9e;
}

.btn-realm-secondary {
  background: white;
  color: var(--gray-600);
  border: 1px solid var(--gray-300);
}

.btn-realm-secondary:hover {
  background: var(--gray-50);
}

.btn-realm-danger {
  background: var(--red-500);
  color: white;
}

.btn-realm-danger:hover {
  background: #dc2626;
}

/* ==================== TERMINAL (Device) ==================== */
.terminal-outer {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #DCDCDC;
}

.terminal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.terminal-label {
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  text-align: center;
  font-size: 14px;
}

.terminal-device {
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  background: var(--terminal-bg);
  width: 250px;
  height: 490px;
  padding: 8px;
}

.terminal-screen {
  flex: 1;
  background: white;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
}

.terminal-home-bar {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.terminal-home-bar-dot {
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.2);
}

/* Terminal States */
.terminal-state {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
}

.terminal-idle {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.terminal-idle .icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--realm-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.terminal-idle .icon-circle .bi {
  color: white;
  font-size: 20px;
}

.terminal-idle h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 4px;
}

.terminal-idle p {
  font-size: 11px;
  color: var(--gray-500);
}

.terminal-payment {
  padding: 20px 16px;
  text-align: center;
}

.terminal-payment h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 6px;
}

.terminal-payment .sub {
  font-size: 11px;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.terminal-payment .amount-display {
  font-size: 32px;
  font-weight: 900;
  color: var(--gray-900);
  margin: 12px 0;
}

.terminal-payment .amount-input {
  font-size: 32px;
  font-weight: 900;
  color: var(--gray-900);
  text-align: center;
  border: none;
  border-bottom: 2px solid var(--realm-btn-blue);
  width: 100%;
  outline: none;
  padding: 4px 0;
}

.terminal-payment .fund-name {
  font-size: 12px;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.terminal-payment .tap-zone {
  margin: 16px 8px;
  padding: 20px 12px;
  border: 2px dashed var(--gray-300);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
}

.terminal-payment .tap-zone:hover {
  border-color: var(--realm-blue-light);
  background: #f0f7ff;
}

.terminal-payment .tap-zone .nfc-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--realm-btn-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.terminal-payment .tap-zone .nfc-icon .bi {
  color: white;
  font-size: 24px;
}

.terminal-payment .tap-zone p {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
}

.terminal-payment .tap-zone .sub-text {
  font-size: 10px;
  color: var(--gray-400);
  font-weight: 400;
}

.terminal-processing {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.terminal-processing .spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--realm-btn-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.terminal-processing h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 4px;
}

.terminal-processing .amount {
  font-size: 24px;
  font-weight: 900;
  color: var(--gray-900);
  margin: 8px 0;
}

.terminal-processing p {
  font-size: 11px;
  color: var(--gray-400);
}

.terminal-success {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.terminal-success .check-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  animation: pop-in 0.3s ease;
}

@keyframes pop-in {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

@keyframes slide-in-right {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.terminal-success .check-circle .bi {
  color: white;
  font-size: 28px;
  stroke-width: 3;
}

.terminal-success h3 {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 2px;
}

.terminal-success .amount {
  font-size: 24px;
  font-weight: 900;
  color: var(--gray-900);
  margin: 4px 0;
}

.terminal-success .event-name {
  font-size: 10px;
  color: var(--gray-500);
  margin-bottom: 2px;
}

.terminal-success .receipt-info {
  font-size: 9px;
  color: var(--gray-400);
  margin-top: 12px;
}

.terminal-success .return-info {
  font-size: 9px;
  color: var(--gray-300);
  margin-top: 16px;
}

.terminal-decline {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.terminal-decline .x-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red-500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  animation: pop-in 0.3s ease;
}

.terminal-decline .x-circle .bi {
  color: white;
  font-size: 28px;
}

.terminal-decline h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 4px;
}

.terminal-decline p {
  font-size: 11px;
  color: var(--gray-400);
}

.terminal-decline .retry-btn {
  margin-top: 16px;
  padding: 8px 20px;
  border: none;
  border-radius: 6px;
  background: var(--realm-btn-blue);
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.terminal-decline .retry-btn:hover {
  background: #2a6a9e;
}

.terminal-canceled {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.terminal-canceled .cancel-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.terminal-canceled .cancel-circle .bi {
  color: var(--gray-500);
  font-size: 28px;
}

.terminal-canceled h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 4px;
}

.terminal-canceled p {
  font-size: 12px;
  color: var(--gray-400);
}

.terminal-canceled .auto-return {
  font-size: 11px;
  color: var(--gray-300);
  margin-top: 16px;
}

/* ==================== BOTTOM BAR ==================== */
.bottom-bar {
  display: flex;
  align-items: center;
  padding: 2px 2px;
  background: var(--gray-900);
  border-top: 1px solid #374151;
  flex-shrink: 0;
  gap: 12px;
}

.back-btn {
  padding: 6px 16px;
  border-radius: 4px;
  background: #374151;
  color: #d1d5db;
  font-size: 12px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.back-btn:hover {
  background: #4b5563;
}

.back-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.step-info {
  font-size: 11px;
  color: #6b7280;
  margin-left: 8px;
}

/* ==================== GIVING TAB ==================== */
.giving-empty {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
}

.giving-empty .bi {
  width: 40px;
  height: 40px;
  font-size: 40px;
  color: rgba(51,122,183,0.3);
  margin-bottom: 12px;
}

.giving-empty h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 4px;
}

.giving-empty p {
  font-size: 12px;
  color: var(--gray-400);
}

.giving-table {
  width: 100%;
  font-size: 11px;
  border-collapse: collapse;
}

.giving-table thead th {
  padding: 8px 12px;
  text-align: left;
  font-weight: 500;
  color: var(--gray-400);
  border-bottom: 1px solid var(--gray-100);
}

.giving-table tbody tr {
  border-bottom: 1px solid var(--gray-50);
  transition: background 0.1s;
}

.giving-table tbody tr:hover {
  background: var(--gray-50);
}

.giving-table tbody tr:last-child {
  border-bottom: none;
}

.giving-table td {
  padding: 8px 12px;
  color: var(--gray-600);
}

.giving-summary {
  padding: 8px 12px;
  border-top: 1px solid var(--gray-100);
  text-align: right;
  font-size: 11px;
  color: var(--gray-500);
}

/* ==================== PROFILES TAB ==================== */
.profile-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.profile-avatar-lg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--realm-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.profile-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
}

.profile-email {
  font-size: 12px;
  color: var(--gray-500);
}

.user-detail-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  margin-bottom: 16px;
}

.user-detail-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
}

.user-detail-info {
  flex: 1;
  min-width: 0;
}

.user-detail-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}

.user-detail-email {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}

.user-detail-meta {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.user-detail-meta .meta-dot {
  color: var(--gray-300);
}

.user-detail-added {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 4px;
}

.profile-tabs {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 12px;
}

.profile-tab {
  padding: 8px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  transition: all 0.15s;
}

.profile-tab.active {
  color: var(--realm-btn-blue);
  border-bottom-color: var(--realm-btn-blue);
}

/* ==================== QUICK PAY ADMIN ==================== */
.qp-admin-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qp-event-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s;
}

.qp-event-card:hover {
  border-color: var(--realm-blue-light);
  background: #f8fbff;
}

.qp-event-card.active {
  border-color: var(--realm-btn-blue);
  background: #eff6ff;
}

.qp-event-info h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0 0 2px;
}

.qp-event-info p {
  font-size: 11px;
  color: var(--gray-500);
  margin: 0;
}

.qp-event-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-700);
}

.qp-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qp-new-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  background: var(--realm-btn-blue);
  color: white;
  border: none;
  cursor: pointer;
}

.qp-new-btn:hover {
  background: #2a6a9e;
}

.qp-empty {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--gray-400);
}

.qp-payment-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s;
}

.qp-payment-card:hover {
  border-color: var(--realm-blue-light);
  background: #f8fbff;
}

.qp-payment-info h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0 0 2px;
}

.qp-payment-info p {
  font-size: 11px;
  color: var(--gray-500);
  margin: 0;
}

.qp-payment-amount {
  font-size: 16px;
  font-weight: 800;
  color: #166534;
}

/* ==================== PAYMENT BADGE ==================== */
.pay-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.pay-badge-green {
  background: #dcfce7;
  color: #166534;
}

.pay-badge-amber {
  background: #fef3c7;
  color: #92400e;
}

.pay-badge-gray {
  background: var(--gray-100);
  color: var(--gray-500);
}

/* ==================== ADD PAYMENT MODAL ==================== */
.add-pay-modal {
	width: 360px;
}

.add-pay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid var(--gray-100);
}

.add-pay-row:last-child {
  border-bottom: none;
}

.add-pay-row .label {
  font-size: 12px;
  color: var(--gray-600);
}

.add-pay-row .value {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-800);
}

.add-pay-amount-section {
  background: var(--gray-50);
  border-radius: 8px;
  padding: 4px;
  margin: 3px 0;
  text-align: center;
}

.add-pay-amount-section .label {
  font-size: 11px;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.add-pay-amount-section .amount {
  font-size: 24px;
  font-weight: 900;
  color: var(--gray-900);
}

.add-pay-amount-section .consequence {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ==================== EVENT FORM ==================== */
.event-form {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 20px;
}

.event-form h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 16px;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.price-row .form-control-sm {
  flex: 1;
}

.price-remove {
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 16px;
}

.price-remove:hover {
  color: var(--red-500);
}

/* ==================== PAYMENT METHOD LIST ==================== */
.pay-method-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pay-method-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.pay-method-item:hover {
  border-color: var(--realm-blue-light);
  background: #f8fbff;
}

.pay-method-item.active {
  border-color: var(--realm-btn-blue);
  background: #eff6ff;
}

.pay-method-item .bi {
  color: var(--realm-btn-blue);
  font-size: 18px;
}

.pay-method-item .name {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
}

/* ==================== PAY ONLY EVENTS (Admin) ==================== */
.pay-only-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==================== UTILITY ==================== */
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-800 { color: var(--gray-800); }
.text-gray-900 { color: var(--gray-900); }
.text-realm { color: var(--realm-btn-blue); }
.text-green { color: var(--green-600); }
.text-red { color: var(--red-500); }
.text-amber { color: #92400e; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-black { font-weight: 900; }
.text-xs { font-size: 11px; }
.text-sm { font-size: 13px; }
.text-lg { font-size: 16px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.cursor-pointer { cursor: pointer; }
.no-data {
  padding: 40px;
  text-align: center;
  color: var(--gray-400);
  font-size: 13px;
}

.scroll-container {
  overflow-y: auto;
  flex: 1;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.25);
}