/* =====================================================
   PREMIUM AUTHENTICATION PAGES (Login, Signup, PreDashboard)
   ===================================================== */

/* ==================== LOGIN PAGE ==================== */
.mobile-login-form-container {
  background: linear-gradient(135deg, #0f0f14 0%, #1a1a24 100%) !important;
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 40px 20px;
  padding-bottom: 100px; /* Extra padding at bottom for mobile */
  overflow-y: auto;
  box-sizing: border-box;
}

.mobile-login-title {
  font-size: 32px !important;
  font-weight: 800 !important;
  color: #fbbf24 !important;
  text-align: center;
  margin-bottom: 32px !important;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(251, 191, 36, 0.3);
}

.mobile-login-form-group {
  margin-bottom: 20px;
  width: 100%;
  max-width: 400px;
}

.mobile-login-label {
  display: block;
  color: #a1a1aa !important;
  font-size: 11px !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px !important;
}

.mobile-login-input {
  width: 100%;
  background: #1c1c26 !important;
  border: 2px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  color: #fff !important;
  padding: 16px !important;
  font-size: 15px !important;
  transition: all 200ms ease;
}

.mobile-login-input:focus {
  border-color: #fbbf24 !important;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.1) !important;
  outline: none !important;
}

.mobile-login-input::placeholder {
  color: #52525b !important;
}

.mobile-login-error {
  color: #ef4444 !important;
  font-size: 13px !important;
  margin-top: 8px !important;
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 8px;
  border-left: 3px solid #ef4444;
}

.mobile-login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  width: 100%;
  max-width: 400px;
}

.mobile-login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a1a1aa !important;
  font-size: 13px !important;
  cursor: pointer;
}

.mobile-login-remember input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #fbbf24;
  cursor: pointer;
}

.mobile-login-forgot {
  color: #fbbf24 !important;
  font-size: 13px !important;
  text-decoration: none !important;
  transition: color 150ms;
}

.mobile-login-forgot:hover {
  color: #f59e0b !important;
  text-decoration: underline !important;
}

.mobile-login-btn-primary {
  width: 100%;
  max-width: 400px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  color: #0f0f14 !important;
  padding: 16px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 200ms ease;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mobile-login-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.3);
}

.mobile-login-btn-demo {
  width: 100%;
  max-width: 400px;
  background: linear-gradient(135deg, #252532 0%, #1c1c26 100%) !important;
  border: 2px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  color: #fff !important;
  padding: 16px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all 200ms ease;
  margin-bottom: 12px;
}

.mobile-login-btn-demo:hover {
  border-color: rgba(251, 191, 36, 0.3);
  background: #252532 !important;
}

.mobile-login-btn-apk {
  width: 100%;
  max-width: 400px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  color: white !important;
  padding: 16px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all 200ms ease;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.mobile-login-btn-apk:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.mobile-login-btn-apk i {
  font-size: 20px;
}

.mobile-login-signup {
  text-align: center;
  color: #a1a1aa !important;
  font-size: 14px !important;
  margin-bottom: 24px;
}

.mobile-login-signup a {
  color: #fbbf24 !important;
  font-weight: 600;
  text-decoration: none !important;
  margin-left: 4px;
}

.mobile-login-signup a:hover {
  text-decoration: underline !important;
}

.mobile-login-footer {
  text-align: center;
  color: #52525b;
  font-size: 12px;
}

.mobile-login-footer .powered-by {
  margin-bottom: 4px;
}

.mobile-login-footer .Reddyannabook {
  color: #fbbf24;
  font-weight: 600;
}

.mobile-login-footer .email {
  color: #71717a;
}

.mobile-login-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(15, 15, 20, 0.3);
  border-top-color: #0f0f14;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==================== SIGNUP PAGE ==================== */
.signup-wrapper {
  background: linear-gradient(135deg, #0f0f14 0%, #1a1a24 100%) !important;
  min-height: 100vh;
}

.signup-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.signup-form-container {
  width: 100%;
  max-width: 420px;
  background: #1c1c26 !important;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.signup-logo {
  text-align: center;
  margin-bottom: 24px;
}

.signup-logo-img {
  max-width: 180px;
  height: auto;
}

.signup-form-group {
  margin-bottom: 16px;
}

.signup-label {
  display: block;
  color: #a1a1aa !important;
  font-size: 11px !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px !important;
}

.main-inputdiv {
  background: #252532 !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  overflow: hidden;
}

.main-inputdiv.border-bottom {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.signup-country-code {
  background: transparent !important;
}

.signup-country-select {
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  padding: 14px 8px 14px 14px !important;
  font-size: 14px !important;
  outline: none !important;
  cursor: pointer;
}

.signup-country-select option {
  background: #1c1c26 !important;
  color: #fff !important;
}

.signup-mobile-input,
.signup-password-input,
.signup-referral-input,
.signup-otp-input {
  width: 100%;
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  padding: 14px !important;
  font-size: 14px !important;
  outline: none !important;
}

.signup-mobile-input::placeholder,
.signup-password-input::placeholder,
.signup-referral-input::placeholder,
.signup-otp-input::placeholder {
  color: #52525b !important;
}

.signup-input-error {
  border-color: #ef4444 !important;
}

.signup-error-message {
  color: #ef4444 !important;
  font-size: 12px !important;
  margin-top: 8px;
}

.signup-password-hint {
  color: #71717a !important;
  font-size: 11px !important;
  margin-top: 6px;
  padding-left: 14px;
}

.signup-info-text {
  color: #a1a1aa !important;
  font-size: 12px !important;
  line-height: 1.5;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(251, 191, 36, 0.05);
  border-radius: 8px;
  border-left: 3px solid #fbbf24;
}

.signup-resend-timer {
  color: #71717a !important;
  font-size: 12px !important;
  margin-top: 8px;
  text-align: right;
}

.signup-resend-btn {
  color: #fbbf24 !important;
  background: none !important;
  border: none !important;
  cursor: pointer;
  font-size: 12px !important;
}

.signup-otp-btn {
  width: 100%;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  color: #0f0f14 !important;
  padding: 16px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 200ms ease;
  margin-top: 16px;
}

.signup-otp-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.3);
}

.signup-otp-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.signup-whatsapp-btn {
  width: 100%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  color: white !important;
  padding: 14px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all 200ms ease;
  margin-top: 12px !important;
}

.signup-whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.signup-login-link {
  text-align: center;
  color: #a1a1aa !important;
  font-size: 14px !important;
  margin-top: 20px;
}

.signup-login-link span:last-child {
  color: #fbbf24 !important;
  font-weight: 600;
  cursor: pointer;
}

.signup-login-link span:last-child:hover {
  text-decoration: underline;
}

.footer.footer-login {
  display: none !important;
}

/* ==================== PRE-DASHBOARD ==================== */
.dashboard-container {
  background: #0f0f14 !important;
  min-height: 100vh;
}

.dashboard-header,
.fixed-header {
  background: linear-gradient(135deg, #1c1c26 0%, #252532 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-desktop,
.header-mobile {
  padding: 12px 20px;
}

.logo-image {
  max-height: 40px;
}

.search-container {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-input {
  width: 100%;
  background: #0f0f14 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  color: #fff !important;
  padding: 12px 40px 12px 16px !important;
  font-size: 14px !important;
}

.search-input::placeholder {
  color: #52525b !important;
}

.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #71717a;
}

.rules-btn {
  background: transparent !important;
  border: 2px solid rgba(251, 191, 36, 0.3) !important;
  border-radius: 8px !important;
  color: #fbbf24 !important;
  padding: 10px 20px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all 150ms;
}

.rules-btn:hover {
  background: rgba(251, 191, 36, 0.1) !important;
  border-color: #fbbf24 !important;
}

.signup-btn {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  border: none !important;
  border-radius: 8px !important;
  color: #0f0f14 !important;
  padding: 10px 20px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 150ms;
  margin-right: 10px;
}

.signup-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.login-btn {
  background: transparent !important;
  border: 2px solid #fbbf24 !important;
  border-radius: 8px !important;
  color: #fbbf24 !important;
  padding: 10px 20px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all 150ms;
}

.login-btn:hover {
  background: #fbbf24 !important;
  color: #0f0f14 !important;
}

/* Main Navigation */
.main-nav {
  display: flex;
  background: #1c1c26 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 16px;
  overflow-x: auto;
  gap: 4px;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  color: #a1a1aa !important;
  font-size: 12px !important;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 150ms;
}

.nav-tab:hover {
  color: #fff !important;
}

.nav-tab.active {
  color: #fbbf24 !important;
  border-bottom-color: #fbbf24;
}

.nav-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Sidebar */
.sidebar {
  background: #1c1c26 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  width: 240px;
  min-height: calc(100vh - 120px);
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: #a1a1aa !important;
  font-size: 13px !important;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 150ms;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #fff !important;
}

.sidebar-item.active {
  background: rgba(251, 191, 36, 0.1) !important;
  color: #fbbf24 !important;
  border-left: 3px solid #fbbf24;
}

.sidebar-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.sidebar-submenu {
  background: #0f0f14;
}

.sidebar-subitem {
  padding: 10px 16px 10px 48px;
  color: #71717a;
  font-size: 12px;
  cursor: pointer;
  transition: all 150ms;
}

.sidebar-subitem:hover {
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.02);
}

/* Main Content */
.main-content {
  flex: 1;
  background: #0f0f14 !important;
  padding: 16px;
}

.announcement-bar {
  background: linear-gradient(90deg, #6D081D 0%, #c10930 50%, #6D081D 100%);
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

/* Sport Banner */
.sport-banner {
  background: linear-gradient(135deg, #252532 0%, #1c1c26 100%) !important;
  border-radius: 10px 10px 0 0;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sport-banner-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700;
  margin: 0;
}

.sport-banner-icon {
  width: 24px;
  height: 24px;
}

/* Odds Header */
.odds-header {
  background: #252532;
  padding: 8px 16px;
  border-radius: 0 0 10px 10px;
}

.odds-header-content {
  display: flex;
  justify-content: flex-end;
  gap: 60px;
  margin-right: 20px;
}

.odds-header-item {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  width: 60px;
  text-align: center;
}

/* Match Row */
.match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1c1c26 !important;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 150ms;
}

.match-row:hover {
  border-color: rgba(251, 191, 36, 0.2);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.1);
}

.match-info-section {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.team-name {
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.league-name {
  color: #a855f7 !important;
  font-size: 12px !important;
  margin: 0;
}

.match-time {
  background: #252532;
  padding: 6px 10px;
  border-radius: 6px;
  color: #71717a;
  font-size: 11px;
  text-align: center;
}

.match-time.live-label {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  font-weight: 700;
  animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 12px 3px rgba(34, 197, 94, 0.6); }
}

.match-date-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.match-broadcast {
  display: flex;
  gap: 6px;
}

.pre-game-icon img {
  width: 18px;
  height: 18px;
}

/* Odds Grid */
.odds-grid {
  display: flex;
  gap: 4px;
}

.odds-cell {
  width: 50px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #0f0f14;
}

.odds-cell.odds-blue {
  background: linear-gradient(180deg, #72bbef 0%, #5aa9e0 100%);
}

.odds-cell.odds-pink {
  background: linear-gradient(180deg, #f994ba 0%, #e87da6 100%);
}

.new-odd {
  font-family: 'JetBrains Mono', monospace;
}

/* Casino Games */
.casino-games-style {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  padding: 16px;
  background: #1c1c26;
  border-radius: 0 0 10px 10px;
}

.casino-game-box {
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 200ms;
  border: 2px solid transparent;
}

.casino-game-box:hover {
  border-color: #fbbf24;
  transform: scale(1.02);
}

.casino-game-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* WhatsApp Support */
.whatsapp-support-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.whatsapp-support-image {
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Login Modal */
.login-modal-overlay {
  background: rgba(0, 0, 0, 0.8) !important;
}

.login-modal-content {
  background: #1c1c26 !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .casino-games-style {
    grid-template-columns: repeat(3, 1fr);
  }

  .odds-header-content {
    gap: 30px;
    margin-right: 10px;
  }

  .odds-cell {
    width: 40px;
    height: 32px;
    font-size: 11px;
  }

  .match-row {
    flex-direction: column;
    align-items: stretch;
  }

  .match-info-section {
    margin-bottom: 12px;
  }

  .odds-grid {
    justify-content: center;
  }

  /* Login Page Mobile */
  .mobile-login-form-container {
    padding: 20px 16px !important;
    padding-top: 30px !important;
    padding-bottom: 120px !important;
    justify-content: flex-start !important;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-y: auto !important;
  }

  .mobile-login-title {
    font-size: 24px !important;
    margin-bottom: 24px !important;
  }

  .mobile-login-form-group {
    margin-bottom: 16px;
    width: 100%;
  }

  .mobile-login-input {
    padding: 14px !important;
    font-size: 16px !important; /* Prevents zoom on iOS */
  }

  .mobile-login-btn-primary,
  .mobile-login-btn-demo,
  .mobile-login-btn-apk {
    padding: 14px !important;
    font-size: 14px !important;
    width: 100%;
  }

  .mobile-login-options {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    width: 100%;
  }

  /* Signup Page Mobile */
  .signup-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-y: auto;
  }

  .signup-container {
    padding: 16px;
    padding-bottom: 100px;
    min-height: auto;
    align-items: flex-start;
  }

  .signup-form-container {
    padding: 20px !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 16px !important;
  }

  .signup-logo-img {
    max-width: 140px;
  }

  .main-inputdiv {
    margin-bottom: 12px !important;
  }

  .signup-mobile-input,
  .signup-password-input,
  .signup-referral-input,
  .signup-otp-input {
    font-size: 16px !important; /* Prevents zoom on iOS */
    padding: 12px !important;
  }

  .signup-otp-btn,
  .signup-whatsapp-btn {
    padding: 14px !important;
    font-size: 14px !important;
  }

  .signup-login-link {
    margin-top: 16px;
    padding-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .mobile-login-form-container {
    padding: 16px 12px !important;
    padding-top: 20px !important;
    padding-bottom: 100px !important;
  }

  .mobile-login-title {
    font-size: 22px !important;
  }

  .mobile-login-input {
    padding: 12px !important;
  }

  .signup-form-container {
    padding: 16px !important;
  }
}

