/*---------------------------------------
  MYBOX BUTTON & SCANNER GUI               
-----------------------------------------*/
.btn-mybox {
  background: linear-gradient(135deg, #0f0f1b 0%, #1a1a2e 100%) !important;
  border: 1px solid var(--gold-soft) !important;
  color: var(--gold-muted) !important;
  box-shadow: 0 0 15px rgba(184, 155, 94, 0.1) !important;
}

.btn-mybox:hover {
  background: linear-gradient(135deg, #1a1a2e 0%, #232342 100%) !important;
  box-shadow: 0 0 25px rgba(184, 155, 94, 0.3) !important;
  border-color: var(--gold-muted) !important;
}

.mybox-scanner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(15px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.mybox-scanner-overlay.active {
  opacity: 1;
  visibility: visible;
}

.scanner-container {
  width: 90%;
  max-width: 480px;
  background: linear-gradient(145deg, rgba(18, 18, 28, 0.95), rgba(10, 10, 18, 0.98));
  border: 1px solid rgba(184, 155, 94, 0.15);
  border-radius: 20px;
  padding: 35px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7), 0 0 40px rgba(184, 155, 94, 0.08);
  backdrop-filter: blur(20px);
}

.scanner-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(184, 155, 94, 0.1);
  padding-bottom: 15px;
}

.scanner-tab-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  padding: 12px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.scanner-tab-btn i {
  font-size: 14px;
}

.scanner-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.scanner-tab-btn.active {
  background: var(--gold-soft);
  border-color: var(--gold-muted);
  color: var(--gold-muted);
  box-shadow: 0 0 15px rgba(184, 155, 94, 0.1);
}

.scanner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.scanner-title {
  font-family: var(--display-font-family);
  font-size: 24px;
  margin-bottom: 0;
  letter-spacing: 2px;
  color: var(--white-color);
}

.text-gold {
  color: var(--gold-muted);
}

.btn-close-scanner {
  background: none;
  border: none;
  color: var(--white-color);
  font-size: 32px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.btn-close-scanner:hover {
  opacity: 1;
}

.scanner-viewport-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 25px;
}

.scanner-viewport {
  width: 100% !important;
  height: 100% !important;
}

.scanner-viewport video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.scanner-corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid var(--gold-muted);
  z-index: 10;
}

.corner-tl {
  top: 20px;
  left: 20px;
  border-right: none;
  border-bottom: none;
}

.corner-tr {
  top: 20px;
  right: 20px;
  border-left: none;
  border-bottom: none;
}

.corner-bl {
  bottom: 20px;
  left: 20px;
  border-right: none;
  border-top: none;
}

.corner-br {
  bottom: 20px;
  right: 20px;
  border-left: none;
  border-top: none;
}

.scanner-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-muted), transparent);
  box-shadow: 0 0 15px var(--gold-muted);
  z-index: 11;
  animation: scan 3s linear infinite;
}

@keyframes scan {
  0% {
    top: 10%;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    top: 90%;
    opacity: 0;
  }
}

.scanner-info {
  color: rgba(255, 255, 255, 0.85);
}

.scanner-desc {
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
}

