

.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 14, 0.85);
  backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.auth-modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal {
  display: flex;
  width: 720px;
  max-width: 94vw;
  min-height: 460px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #1c2740;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s ease;
  background: #0e111a;
}

.auth-modal-overlay.visible .auth-modal {
  transform: translateY(0) scale(1);
}

.auth-modal-left {
  width: 280px;
  min-width: 280px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 28px 24px;
}

.auth-modal-left-bg {
  position: absolute;
  inset: 0;
  background-image: url('../COUSIK BONUSS.avif');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.auth-modal-left-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 8, 14, 0.3) 0%, rgba(6, 8, 14, 0.85) 100%);
}

.auth-modal-logo {
  position: relative;
  z-index: 1;
  height: 24px;
  width: auto;
  object-fit: contain;
  margin-bottom: 12px;
}

.auth-modal-left-text {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.auth-modal-left-text strong {
  color: #d0ff00;
  font-weight: 800;
}

.auth-modal-right {
  flex: 1;
  padding: 36px 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  background: none;
  border: none;
  z-index: 2;
}

.auth-modal-close:hover {
  opacity: 1;
}

.auth-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.auth-modal-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: #88969c;
  margin-bottom: 22px;
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 22px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #1c2740;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #88969c;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-align: center;
  letter-spacing: 0.5px;
}

.auth-tab.active {
  background: #886cff;
  color: #ffffff;
}

.auth-tab:not(.active):hover {
  background: rgba(136, 108, 255, 0.1);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.auth-label {
  font-size: 11px;
  font-weight: 800;
  color: #8ba4ba;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-input {
  background: rgba(44, 60, 71, 0.24);
  border: 1px solid #1c2740;
  border-radius: 5px;
  padding: 11px 14px;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s;
}

.auth-input:focus {
  border-color: #886cff;
}

.auth-input::placeholder {
  color: #3a4f5c;
}

.auth-submit {
  width: 100%;
  padding: 14px;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  background: linear-gradient(180deg, rgba(206, 255, 92, 1) 0%, rgba(208, 255, 0, 1) 100%);
  color: #0e111a;
  text-transform: uppercase;
  letter-spacing: 1px;
  height: 52px;
  min-height: 52px;
  position: relative;
  overflow: hidden;
  margin-top: auto;
}

.auth-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(208, 255, 0, 0.25);
}

.auth-submit:active {
  transform: translateY(0);
}

.auth-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: grayscale(0.3);
}

.auth-error {
  background: rgba(255, 50, 50, 0.1);
  border: 1px solid rgba(255, 50, 50, 0.3);
  border-radius: 5px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #ff5555;
  display: none;
}

.auth-error.visible {
  display: block;
}

.auth-success {
  background: rgba(50, 255, 100, 0.1);
  border: 1px solid rgba(50, 255, 100, 0.3);
  border-radius: 5px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #50ff80;
  display: none;
}

.auth-success.visible {
  display: block;
}

.auth-bonus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 9px;
  background: rgba(208, 255, 0, 0.06);
  border: 1px solid rgba(208, 255, 0, 0.15);
  border-radius: 5px;
}

.auth-bonus-icon {
  font-size: 18px;
}

.auth-bonus-text {
  font-size: 12px;
  font-weight: 700;
  color: #d0ff00;
}

.auth-forgot-link {
  text-align: right;
  margin-top: -4px;
  margin-bottom: 4px;
}

.auth-forgot-link a {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #886cff;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-forgot-link a:hover {
  color: #a750fe;
  text-decoration: underline;
}

.auth-reset-step {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
  flex: 1;
}

.auth-reset-step .auth-modal-title {
  display: block !important;
  text-align: center;
  width: 100%;
}

.auth-reset-step .auth-modal-subtitle {
  display: block !important;
  text-align: center;
  width: 100%;
  margin-bottom: 8px;
}

.auth-reset-email-step,
.auth-reset-code-step {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-verify-step {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
  flex: 1;
}

.auth-verify-step .auth-modal-title {
  display: block !important;
  text-align: center;
  width: 100%;
}

.auth-verify-step .auth-modal-subtitle {
  display: block !important;
  text-align: center;
  width: 100%;
  margin-bottom: 8px;
}

.auth-code-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 8px 0 16px;
}

.auth-code-digit {
  width: 48px;
  height: 56px;
  background: rgba(44, 60, 71, 0.24);
  border: 2px solid #1c2740;
  border-radius: 8px;
  color: #ffffff;
  font-family: 'Montserrat', monospace;
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
  caret-color: #886cff;
}

.auth-code-digit:focus {
  border-color: #886cff;
  background: rgba(136, 108, 255, 0.08);
}

.auth-verify-step .auth-submit {
  width: 100%;
}

.auth-resend-btn {
  background: none;
  border: none;
  color: #886cff;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
}

.auth-resend-btn:hover {
  color: #a750fe;
  text-decoration: underline;
}

.auth-resend-btn:disabled {
  color: #3a4f5c;
  cursor: not-allowed;
}

.sidebar-daily-reward {
  padding: 8px 20px;
}

.daily-claim-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(208, 255, 0, 0.12), rgba(208, 255, 0, 0.04));
  border: 1px solid rgba(208, 255, 0, 0.25);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s;
  font-family: 'Montserrat', sans-serif;
}

.daily-claim-btn:hover {
  background: linear-gradient(135deg, rgba(208, 255, 0, 0.2), rgba(208, 255, 0, 0.08));
  border-color: rgba(208, 255, 0, 0.5);
  transform: scale(1.02);
}

.daily-claim-btn:active {
  transform: scale(0.98);
}

.daily-claim-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.daily-gift-icon {
  font-size: 22px;
  line-height: 1;
  animation: giftPulse 2s ease-in-out infinite;
}

.daily-gift-cooldown {
  animation: none;
  opacity: 0.4;
  filter: grayscale(1);
}

@keyframes giftPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15) rotate(5deg); }
}

.daily-claim-text {
  font-size: 12px;
  font-weight: 600;
  color: #d0ff00;
}

.daily-claim-text strong {
  font-weight: 800;
}

.daily-countdown-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(44, 60, 71, 0.15);
  border: 1px solid #1c2740;
  border-radius: 8px;
}

.daily-countdown-text {
  font-size: 11px;
  font-weight: 600;
  color: #88969c;
  font-family: 'Montserrat', sans-serif;
}

.daily-countdown-text span {
  color: #ffffff;
  font-weight: 800;
  font-family: 'Montserrat', monospace;
}

.sidebar-user {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #131a27;
}

.sidebar-user-avatar-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  cursor: pointer;
}

.sidebar-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #886cff;
  display: block;
}

.sidebar-user-avatar-wrap:hover .sidebar-avatar-edit {
  opacity: 1;
}

.sidebar-avatar-edit {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 14, 0.7);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.sidebar-avatar-edit svg {
  width: 16px;
  height: 16px;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-points {
  font-size: 12px;
  font-weight: 700;
  color: #d0ff00;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sidebar-user-points svg {
  width: 14px;
  height: 14px;
}

.sidebar-logout-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #131a27;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.sidebar-logout-btn:hover {
  opacity: 1;
}

.sidebar-login-btn {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 16px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(206, 255, 92, 1) 0%, rgba(208, 255, 0, 1) 100%);
  border: none;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #0e111a;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.sidebar-login-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.sidebar-login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(208, 255, 0, 0.25);
}

.avatar-upload-input {
  display: none;
}

@media (max-width: 640px) {
  .auth-modal {
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
  }

  .auth-modal-left {
    width: 100%;
    min-width: unset;
    min-height: 120px;
    max-height: 140px;
    padding: 20px;
  }

  .auth-modal-right {
    padding: 24px 20px 20px;
  }

  .auth-modal-title {
    font-size: 19px;
  }
}
