:root {
  --primary: #ff6b35;
  --primary-gradient: linear-gradient(135deg, #ff6b35 0%, #ff3d3d 100%);
  --secondary: #0f172a;
  --bg-body: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --radius-md: 16px;
  --radius-pill: 50px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.15);
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background: white;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  width: auto;
  min-width: fit-content;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 6px rgba(255, 107, 53, 0.2);
}

.btn-primary:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-outline {
  background: white;
  border-color: var(--border);
  color: var(--text-main);
}

@media (hover: hover) {
  .btn-primary:hover {
    background: #ff5a1f;
    transform: translateY(-1px);
    box-shadow: 0 6px 10px rgba(255, 107, 53, 0.3);
  }

  .btn-outline:hover {
    border-color: var(--text-main);
    background: #f8fafc;
  }

  .image-upload-container:hover {
    border-color: var(--primary);
    background: #fff5f1;
  }

  .nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
  }

  .stat-card:hover,
  .event-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

  .close-modal:hover {
    background: #e2e8f0;
    color: var(--text-main);
  }
}

.btn-sm {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
}

.form-group {
  margin-bottom: 1.25rem;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-input,
select,
textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: white;
  transition: all 0.2s;
  color: var(--text-main);
}

.form-input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-input[readonly] {
  background: #f1f5f9;
  color: var(--text-muted);
  cursor: not-allowed;
}

.password-input-container {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
}

.url-input-group {
  display: flex;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: white;
}

.url-prefix {
  padding: 0.9rem 1rem;
  background: #f8fafc;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  font-size: 0.9rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.url-input {
  flex: 1;
  border: none;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  background: white;
  min-width: 0;
}

.url-input:focus {
  outline: none;
  box-shadow: none;
}

.image-upload-container {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s;
  background: #f8fafc;
  cursor: pointer;
  margin-bottom: 1rem;
}

.image-upload-container.has-image {
  border-color: var(--success);
  background: #f0fdf4;
}

.upload-icon {
  font-size: 2.5rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.image-preview {
  max-width: 100%;
  max-height: 200px;
  border-radius: 10px;
  margin-top: 1rem;
  display: none;
  box-shadow: var(--shadow-sm);
}

.image-preview.show {
  display: block;
}

.radio-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.radio-option {
  flex: 1;
}

.radio-option input[type="radio"] {
  display: none;
}

.radio-label {
  display: block;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}

.radio-option input[type="radio"]:checked + .radio-label {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.staff-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.staff-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.staff-info h4 {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.staff-email {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.staff-actions {
  display: flex;
  gap: 0.5rem;
}

.staff-details {
  background: #f8fafc;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.staff-detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.staff-detail-label {
  font-weight: 600;
  color: var(--text-muted);
}

.password-display {
  display: flex;
  align-items: center;
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.9rem;
  justify-content: flex-end;
  width: 100%;
}

.copy-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s;
}

.copy-btn:hover {
  background: #ff5a1f;
}

.status-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-active {
  background: #ecfdf5;
  color: var(--success);
}

.status-suspended {
  background: #fef2f2;
  color: var(--error);
}

.export-options {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

.export-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}

.export-option:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.export-option.active {
  border-color: var(--primary);
  background: #fff5f1;
}

.export-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #f0f9ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
}

.export-info h4 {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.export-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.export-filters {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  border: 1px solid var(--border);
}

.date-range-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.export-preview {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  max-height: 300px;
  overflow-y: auto;
}

.export-preview table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.export-preview th {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 2px solid var(--border);
  font-weight: 700;
  color: var(--text-muted);
  background: #f8fafc;
}

.export-preview td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.export-preview tr:hover {
  background: #f8fafc;
}

.export-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.export-stat {
  text-align: center;
  padding: 1rem;
  background: white;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.export-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.export-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #ffffff;
}

.auth-card {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    text-align: center;
}

.auth-card .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.auth-card .form-label {
    text-align: left;
}

.auth-card .form-input,
.auth-card select,
.auth-card textarea {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    border: 1.5px solid var(--border);
    background: #f8fafc;
    transition: all 0.3s ease;
}

.auth-card .form-input:focus,
.auth-card select:focus,
.auth-card textarea:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.08);
}

.auth-logo {
    width: 80px;
    height: 80px;
}

.btn-auth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
}

.btn-auth-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 8px 16px rgba(255, 107, 53, 0.25);
    margin-top: 1.5rem;
}

.btn-auth-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 107, 53, 0.35);
}

.btn-auth-primary:active {
    transform: scale(0.98);
}

.btn-auth-outline {
    background: white;
    border: 2px solid var(--border);
    color: var(--text-main);
    margin-top: 1rem;
    border-radius: 50px;
}

.btn-auth-outline:hover {
    border-color: var(--primary);
    background: #fff5f1;
}

.auth-toggle {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
}

.auth-toggle button {
    color: var(--primary);
    font-weight: 700;
    border: none;
    background: none;
    cursor: pointer;
    font-size: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-toggle button:hover {
    color: #ff5a1f;
}

.google-btn {
    border-radius: 50px !important;
    width: 100%;
    margin-top: 1rem;
    padding: 1rem 2rem !important;
}

.dashboard-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: var(--secondary);
  color: white;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.sidebar-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
  text-decoration: none;
  font-family: "Inter", sans-serif;
}

.sidebar-logo span {
  color: var(--primary);
}

.sidebar-close {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
}

.nav-group {
  margin-bottom: 2rem;
}

.nav-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-bottom: 0.8rem;
  padding-left: 0.8rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  color: #94a3b8;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  margin-bottom: 0.4rem;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.nav-item.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.25);
}

.nav-item i {
  width: 20px;
  text-align: center;
}

.main-content {
  flex: 1;
  margin-left: 260px;
  padding: 2rem;
  width: 100%;
}

.staff-dashboard-container .main-content {
  margin-left: 0;
  width: 100%;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 1rem;
  z-index: 900;
}

.page-title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.page-title-group h1 {
  font-size: 1.25rem;
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

.user-profile {
  display: flex;
  align-items: center;
  background: #f8fafc;
  padding: 0.6rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-icon.orange {
  background: #fff5f1;
  color: var(--primary);
}

.stat-icon.green {
  background: #ecfdf5;
  color: var(--success);
}

.stat-icon.blue {
  background: #f0f9ff;
  color: #0ea5e9;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.events-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.tab-group {
  display: flex;
  gap: 0.5rem;
  background: #e2e8f0;
  padding: 0.25rem;
  border-radius: 10px;
}

.tab-btn {
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.tab-btn.active {
  color: var(--text-main);
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.event-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.2s;
  cursor: pointer;
}

.event-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: #f1f5f9;
}

.event-info {
  flex: 1;
}

.event-info h4 {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.event-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.event-status-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: 700;
  display: inline-block;
  margin-top: 0.25rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
  background: white;
  border-radius: 12px;
  border: 2px dashed var(--border);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-content {
  background: white;
  width: 95%;
  max-width: 1000px;
  border-radius: 20px;
  padding: 2.5rem;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.close-modal {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: #f1f5f9;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.wizard-steps::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  height: 2px;
  background: #f1f5f9;
  z-index: 0;
}

.wizard-step {
  position: relative;
  z-index: 1;
  text-align: center;
  background: white;
  padding: 0 10px;
}

.step-num {
  width: 36px;
  height: 36px;
  border: 2px solid #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  font-weight: 700;
  color: var(--text-muted);
  background: white;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.wizard-step.active .step-num {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.2);
}

.step-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.ticket-row,
.coupon-row {
  background: white;
  border: 1px solid var(--border);
  padding: 1.25rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.ticket-row:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.remove-ticket,
.remove-coupon {
  position: absolute;
  top: -10px;
  right: -10px;
  background: white;
  border: 1px solid var(--error);
  color: var(--error);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-size: 1.1rem;
  z-index: 2;
}

.fee-option {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.fee-option-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.fee-option-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.fee-notice {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #92400e;
}

.fee-notice i {
  color: #f59e0b;
  margin-right: 0.5rem;
}

.ticket-info {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.ticket-info.warning {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.permission-instructions {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.permission-steps {
  margin-top: 1rem;
  padding-left: 1.5rem;
}

.permission-steps li {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.permission-steps i {
  color: var(--primary);
  margin-right: 0.5rem;
  width: 20px;
}

.ticket-details-card {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.ticket-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.ticket-detail-row:last-child {
  border-bottom: none;
}

.ticket-detail-label {
  font-weight: 600;
  color: var(--text-muted);
  min-width: 140px;
}

.ticket-detail-value {
  font-weight: 500;
  color: var(--text-main);
  text-align: right;
  flex: 1;
}

.ticket-status-valid {
  color: var(--success);
  font-weight: 700;
}

.ticket-status-invalid {
  color: var(--error);
  font-weight: 700;
}

.done-button-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.sidebar nav {
  flex: 1;
  overflow-y: auto;
}

.input-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-weight: 500;
  line-height: 1.3;
}

.input-hint.valid {
  color: var(--success);
}

.input-hint.warn {
  color: #d97706;
}

.scanner-help-link {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
  display: block;
  text-align: center;
  margin-top: 1rem;
}

.scanner-help-link:hover {
  color: var(--primary);
}

.auth-wrapper {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.auth-logo {
  width: 60px;
  height: 60px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.auth-logo img {
  width: 32px;
  height: auto;
}

.auth-header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.auth-header p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.btn-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  width: 100%;
}

.btn-auth-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 10px 20px rgba(255, 107, 53, 0.2);
  margin-top: 1rem;
}

.btn-auth-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(255, 107, 53, 0.3);
}

.btn-auth-outline {
  background: white;
  border: 2px solid #f1f5f9;
  color: var(--text-main);
  margin-top: 1rem;
}

.btn-auth-outline:hover {
  border-color: var(--text-main);
  background: white;
}

.auth-toggle {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.auth-toggle button {
  color: var(--primary);
  font-weight: 700;
  border: none;
  background: none;
  cursor: pointer;
  font-size: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-toggle button:hover {
  text-decoration: underline;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 2px solid #f1f5f9;
}

.divider:not(:empty)::before {
  margin-right: 1rem;
}

.divider:not(:empty)::after {
  margin-left: 1rem;
}

.snackbar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  color: white;
  padding: 12px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  max-width: 90%;
  white-space: nowrap;
}

.snackbar.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.staff-dashboard {
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem 0;
}

.staff-welcome {
  text-align: center;
  margin-bottom: 2rem;
}

.staff-actions-grid {
  display: grid;
  gap: 1.5rem;
}

.staff-action-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  cursor: pointer;
}

.staff-action-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.staff-action-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.staff-action-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.staff-action-description {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.staff-dashboard-container {
  display: block;
}

.staff-dashboard-container .main-content {
  margin-left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

.staff-dashboard-content {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.confirmation-modal {
  max-width: 400px;
  text-align: center;
  padding: 3rem 2rem;
}

.confirmation-modal .modal-content {
  max-width: 400px;
}

.confirmation-icon {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 1rem;
  opacity: 0.2;
}

.confirmation-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.bank-details-readonly {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1rem;
  border: 1px solid var(--border);
}

.bank-details-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.bank-details-item:last-child {
  border-bottom: none;
}

.bank-details-label {
  font-weight: 600;
  color: var(--text-muted);
}

.bank-details-value {
  font-weight: 500;
  color: var(--text-main);
}

.bank-update-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #92400e;
}

.bank-update-notice i {
  color: #f59e0b;
  margin-right: 0.5rem;
}

.wizard-content {
  display: block;
}

.wizard-content.hidden {
  display: none !important;
}

/* Custom Checkbox for Staff Event Selection */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: white;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}

input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  color: white;
  font-size: 12px;
  font-weight: bold;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

input[type="checkbox"]:hover {
  border-color: var(--primary);
}

/* Updated Staff Email Display */
.url-prefix#staffEmailPrefix {
  padding: 0.9rem 0.5rem;
  font-size: 0.85rem;
}

/* Better Mobile Button Sizes */
@media (max-width: 768px) {
  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }

  .btn-sm {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }

  .staff-actions .btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    min-width: auto;
  }

  .copy-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
  }

  .sidebar.active::before {
    content: "";
    position: fixed;
    top: 0;
    left: 260px;
    right: -100vw;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: -1;
  }

  .sidebar-close {
    display: block;
  }

  .main-content {
    margin-left: 0;
    padding: 1.5rem;
  }

  .mobile-toggle {
    display: block;
  }

  .url-input-group {
    flex-direction: column;
  }

  .url-prefix {
    border-right: none;
    border-bottom: 1px solid var(--border);
    justify-content: flex-start;
    font-size: 0.85rem;
  }

  .nav-item {
    font-size: 0.9rem;
  }

  .page-title-group h1 {
    font-size: 1.1rem;
  }

  .user-profile {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .auth-card {
    padding: 2rem 1.5rem;
  }

  .main-content {
    padding: 1rem;
  }

  .top-bar {
    padding: 0.8rem 1rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    position: sticky;
  }

  .page-title-group h1 {
    font-size: 1rem;
  }

  .btn-text {
    display: none;
  }

  .top-bar .btn {
    padding: 0.6rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .top-bar .btn i {
    margin-right: 0;
  }

  .top-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .top-actions .btn {
    padding: 0.6rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  #userDisplayName {
    display: none !important;
  }

  .event-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .event-thumb {
    width: 100%;
    height: 140px;
  }

  .event-actions {
    width: 100%;
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .event-actions .btn {
    flex: 1;
    padding: 0.6rem;
  }

  .modal-content {
    padding: 1.5rem;
    margin: 1rem 0;
    width: 100%;
  }

  .wizard-steps {
    margin-bottom: 1.5rem;
  }

  .staff-header {
    flex-direction: column;
    gap: 1rem;
  }

  .staff-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .staff-actions .btn {
    flex: 1;
    min-width: 120px;
    margin-bottom: 0.5rem;
    padding: 0.6rem;
  }

  .nav-item {
    font-size: 0.85rem;
  }

  .page-title-group h1 {
    font-size: 0.95rem;
  }

  .user-profile {
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
  }

  .password-display {
    padding: 0.4rem;
    gap: 0.3rem;
  }

  .copy-btn {
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 640px) {
  .date-range-picker {
    grid-template-columns: 1fr !important;
  }

  #exportModal .modal-content > div:last-child {
    flex-direction: column;
  }

  #exportModal .modal-content > div:last-child .btn {
    width: 100%;
  }

  .export-preview {
    overflow-x: auto;
  }

  .export-preview table {
    min-width: 500px;
  }

  .radio-group {
    flex-direction: column;
    gap: 0.5rem;
  }

  .radio-label {
    padding: 0.8rem;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .nav-item {
    font-size: 1rem;
    padding: 0.7rem 0.8rem;
  }

  .page-title-group h1 {
    font-size: 0.9rem;
  }

  .user-profile {
    font-size: 0.75rem;
    padding: 0.4rem 0.7rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .staff-actions .btn {
    min-width: 100px;
    font-size: 0.75rem;
    padding: 0.5rem;
  }
}
