/* ==========================================================================
   OFFSTAGE CREATORS — SCANNER TERMINAL & ADMIN PORTAL STYLES
   ========================================================================== */

/* Admin Container */
.admin-container {
  width: min(1300px, calc(100% - 40px));
  margin: 35px auto 80px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-title-group h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 38px;
  font-weight: 700;
  color: #f7eee1;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Stats Metrics Cards */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.metric-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9d9488;
  margin-bottom: 8px;
}

.metric-value {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 38px;
  font-weight: 700;
  color: #f7eee1;
  line-height: 1;
}

.metric-value.revenue {
  color: #e26947;
}

.metric-value.paid {
  color: #6edb8c;
}

.metric-value.checked {
  color: #e4ad57;
}

/* Admin Filters & Search Bar */
.admin-toolbar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.search-input-wrap {
  flex: 1;
  min-width: 250px;
}

.admin-table-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.admin-table th {
  background: rgba(20, 18, 15, 0.95);
  padding: 16px 18px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9d9488;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.admin-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #ded6cc;
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.admin-table .reg-id {
  font-family: monospace;
  font-weight: 700;
  color: #e4ad57;
}

.table-status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-paid {
  background: rgba(110, 219, 140, 0.15);
  color: #79e396;
  border: 1px solid rgba(110, 219, 140, 0.4);
}

.status-pending {
  background: rgba(226, 105, 71, 0.15);
  color: #ff9e85;
  border: 1px solid rgba(226, 105, 71, 0.4);
}

.status-checked {
  background: rgba(205, 164, 91, 0.2);
  color: #e4ad57;
  border: 1px solid rgba(205, 164, 91, 0.5);
}

.table-btn {
  padding: 6px 12px;
  font-size: 11px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: #f7eee1;
  font-weight: 700;
}

.table-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Status Badges */
.status-pending-verification {
  background: rgba(228, 173, 87, 0.2);
  color: #fbd68b;
  border: 1px solid rgba(228, 173, 87, 0.5);
}

.status-rejected {
  background: rgba(226, 105, 71, 0.2);
  color: #ff8566;
  border: 1px solid rgba(226, 105, 71, 0.5);
}

/* Admin Tabs */
.admin-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: #9d9488;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.tab-btn:hover {
  color: #f7eee1;
  background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
  color: #f7eee1;
  border-bottom: 2px solid var(--gold);
  background: rgba(205, 164, 91, 0.08);
}

.tab-badge {
  background: #e26947;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
}

.tab-badge.gold {
  background: #e4ad57;
  color: #110f0d;
}

/* Verification Queue Cards */
.queue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.queue-card {
  background: #191613;
  border: 1px solid rgba(205, 164, 91, 0.35);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.queue-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 12px;
}

.queue-reg-id {
  font-family: monospace;
  font-size: 15px;
  font-weight: 800;
  color: #e4ad57;
}

.queue-time {
  font-size: 11px;
  color: #8e8477;
}

.queue-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.queue-meta-label {
  color: #8e8477;
}

.queue-meta-value {
  color: #f7eee1;
  font-weight: 600;
  text-align: right;
}

.queue-utr-box {
  background: #0d0c0a;
  border: 1px dashed rgba(205, 164, 91, 0.5);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.queue-utr-code {
  font-family: monospace;
  font-size: 14px;
  font-weight: 800;
  color: #ffd175;
  letter-spacing: 0.05em;
}

.queue-screenshot-wrap {
  position: relative;
  background: #080706;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 170px;
  cursor: pointer;
}

.queue-screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.queue-screenshot-wrap:hover .queue-screenshot-img {
  transform: scale(1.03);
}

.queue-screenshot-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
}

.queue-screenshot-wrap:hover .queue-screenshot-overlay {
  opacity: 1;
}

.queue-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.btn-verify {
  flex: 2;
  background: #2b7a44;
  border: 1px solid #48bb70;
  color: #fff;
  font-weight: 800;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s ease;
}

.btn-verify:hover {
  background: #349152;
}

.btn-reject {
  flex: 1;
  background: rgba(226, 105, 71, 0.15);
  border: 1px solid #e26947;
  color: #ff8566;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}

.btn-reject:hover {
  background: rgba(226, 105, 71, 0.3);
}

/* Lightbox Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 8, 0.92);
  backdrop-filter: blur(10px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-content {
  background: #191613;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  max-width: 600px;
  width: 100%;
  padding: 24px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: #9d9488;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-img-preview {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  display: block;
  margin: 0 auto;
}

/* ==========================================================================
   SCANNER TERMINAL STYLES (/scanner)
   ========================================================================== */
.scanner-page {
  max-width: 680px;
  margin: 30px auto 80px;
  padding: 0 20px;
}

.scanner-box {
  background: #151310;
  border: 1px solid rgba(205, 164, 91, 0.35);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
  text-align: center;
}

.scanner-video-wrap {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  margin: 20px auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: #080706;
  border: 2px solid #3d352b;
}

#reader {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
}

#reader video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.scanner-reticle {
  position: absolute;
  inset: 40px;
  border: 2px solid #e4ad57;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  animation: scanGlow 2s infinite ease-in-out;
}

@keyframes scanGlow {
  0%, 100% { border-color: #cda45b; }
  50% { border-color: #e26947; }
}

.scanner-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.manual-entry-box {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.manual-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 12px auto 0;
}

/* Participant Verification Card */
.participant-card {
  background: #1f1b17;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 24px;
  text-align: left;
  display: none;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.participant-card.show {
  display: block;
}

.participant-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.participant-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  color: #f7eee1;
}

.participant-cat {
  font-size: 13px;
  font-weight: 700;
  color: #e4ad57;
}

.participant-meta-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0 20px;
  font-size: 13px;
}

.checkin-action-btn {
  width: 100%;
  padding: 16px;
  font-size: 15px;
}

.scan-feedback {
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  margin-top: 16px;
  display: none;
}

.scan-feedback.success {
  display: block;
  background: rgba(110, 219, 140, 0.2);
  border: 1px solid #6edb8c;
  color: #7ef29d;
}

.scan-feedback.error {
  display: block;
  background: rgba(226, 105, 71, 0.2);
  border: 1px solid #e26947;
  color: #ff9e85;
}

@media (max-width: 900px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}
