* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Video Background - Enhanced */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Fallback background if video fails to load */
.video-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  backdrop-filter: blur(1px);
}

/* Alternative nature-inspired background patterns */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: radial-gradient(circle at 25% 25%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(240, 147, 251, 0.05) 0%, transparent 50%);
  animation: floatingOrbs 20s ease-in-out infinite;
}

@keyframes floatingOrbs {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 1;
  }
}

/* Main Container */
.custom-chat-settings {
  position: relative;
  max-width: 450px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  overflow: visible; /* tugma kesilib qolmasin */
}

/* Glass Container */
.glass-container {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(25px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Professional Loading Animation */
.loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.professional-loader {
  position: relative;
  width: 80px;
  height: 80px;
}

.loader-ring {
  position: absolute;
  border: 2px solid transparent;
  border-top: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
}

.loader-ring:nth-child(1) {
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}

.loader-ring:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 10px;
  left: 10px;
  animation-delay: -0.5s;
  border-top-color: rgba(102, 126, 234, 0.8);
}

.loader-ring:nth-child(3) {
  width: 40px;
  height: 40px;
  top: 20px;
  left: 20px;
  animation-delay: -1s;
  border-top-color: rgba(118, 75, 162, 0.8);
}

.loader-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.7;
  }
}

/* Form Styling */
.form-header {
  text-align: center;
  margin-bottom: 32px;
}

.form-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.header-accent {
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 2px;
  margin: 0 auto;
}

.form-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.input-group label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.01em;
}

.input-wrapper {
  position: relative;
}

.input-wrapper input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 16px;
  font-weight: 400;
  outline: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.input-wrapper input:focus {
  border-color: rgba(102, 126, 234, 0.6);
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.input-focus-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 1px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(-50%);
}

.input-wrapper input:focus + .input-focus-line {
  width: 100%;
}

/* Phone Input */
.phone-input-wrapper {
  display: flex;
  gap: 12px;
  align-items: center;
}

.phone-prefix {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

/* Primary Button */
.primary-button {
  position: relative;
  width: 100%;
  padding: 18px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 16px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.01em;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.primary-button:active {
  transform: translateY(0);
}

.button-ripple {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  transform: scale(0);
  transition: transform 0.6s;
}

.primary-button:active .button-ripple {
  transform: scale(1);
}

/* Status and Links */
.status {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.resend-link {
  text-align: center;
  font-size: 14px;
  color: rgba(102, 126, 234, 0.9);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 8px;
}

.resend-link:hover {
  background: rgba(102, 126, 234, 0.1);
  color: rgba(102, 126, 234, 1);
}

/* Chat Container */
.chat-container {
  width: 100%;
  height: 600px;
  display: flex;
  flex-direction: column;
}

/* Chat Header */
.chat-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.agent-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
}

.agent-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.status-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #4ade80;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  animation: pulse-status 2s infinite;
}

@keyframes pulse-status {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.header-text h1 {
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.status-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* Chat Box */
.chat-box {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}

.chat-box::-webkit-scrollbar {
  width: 4px;
}

.chat-box::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.chat-box::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

/* Chat Messages */
.chat-message {
  display: flex;
  gap: 12px;
  max-width: 85%;
  animation: messageSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-message.agent {
  align-self: flex-start;
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-content {
  padding: 14px 18px;
  border-radius: 20px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
  word-wrap: break-word;
  letter-spacing: 0.01em;
  position: relative;
}

.chat-message.user .message-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-bottom-right-radius: 8px;
}

.chat-message.agent .message-content {
  background: rgba(255, 255, 255, 0.9);
  color: rgba(0, 0, 0, 0.85);
  border-bottom-left-radius: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Chat Input */
.chat-input-container {
  padding: 20px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input-container .input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 4px 4px 4px 20px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-input-container .input-wrapper:focus-within {
  border-color: rgba(102, 126, 234, 0.6);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.chat-input-container input {
  flex: 1;
  padding: 14px 0;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  outline: none;
}

.chat-input-container input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.send-button {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.send-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.send-button:active {
  transform: scale(0.95);
}

.send-button svg {
  width: 20px;
  height: 20px;
}

/* Hidden State */
.hidden {
  display: none !important;
  visibility: hidden;
  opacity: 0;
}

/* Responsive Design */
@media (max-width: 480px) {
  .custom-chat-settings {
    padding: 16px;
  }

  .glass-container {
    padding: 24px;
  }

  .chat-container {
    height: 500px;
  }

  .form-header h2 {
    font-size: 24px;
  }
}

/* Timer Styles */
.timer-container {
  margin-left: auto;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  backdrop-filter: blur(15px);
  display: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.timer-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 80px;
}

.timer-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.timer-value {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  font-family: "Courier New", monospace;
  letter-spacing: 1px;
  white-space: nowrap;
}

.timer-value.warning {
  color: #ffc107;
  text-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
  animation: pulse-warning 1s infinite;
}

.timer-value.critical {
  color: #f44336;
  text-shadow: 0 0 8px rgba(244, 67, 54, 0.5);
  animation: pulse-critical 0.5s infinite;
}

@keyframes pulse-warning {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes pulse-critical {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Payment Page Styles */
.payment-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  max-height: 80vh;
  overflow-y: auto;
}

.payment-container::-webkit-scrollbar {
  width: 6px;
}

.payment-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.payment-container::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 3px;
}

.pricing-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
}

.pricing-card {
  position: relative;
  padding: 24px 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.pricing-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.25), rgba(118, 75, 162, 0.25));
}

.pricing-card.popular {
  border-color: rgba(255, 193, 7, 0.8);
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.2));
  box-shadow: 0 8px 32px rgba(255, 193, 7, 0.2);
}

.pricing-card.popular:hover {
  border-color: rgba(255, 193, 7, 1);
  box-shadow: 0 16px 48px rgba(255, 193, 7, 0.4);
}

.pricing-card.best-value {
  border-color: rgba(76, 175, 80, 0.8);
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(139, 195, 74, 0.2));
  box-shadow: 0 8px 32px rgba(76, 175, 80, 0.2);
}

.pricing-card.best-value:hover {
  border-color: rgba(76, 175, 80, 1);
  box-shadow: 0 16px 48px rgba(76, 175, 80, 0.4);
}

.popular-badge {
  background: linear-gradient(135deg, #ffc107, #ff9800);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.best-value-badge {
  background: linear-gradient(135deg, #4caf50, #8bc34a);
  color: white;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.select-plan-btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 16px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.select-plan-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.5);
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.pricing-card.popular .select-plan-btn {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.3);
}

.pricing-card.popular .select-plan-btn:hover {
  background: linear-gradient(135deg, #ffb300 0%, #f57c00 100%);
  box-shadow: 0 8px 32px rgba(255, 193, 7, 0.5);
}

.pricing-card.best-value .select-plan-btn {
  background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
  box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
}

.pricing-card.best-value .select-plan-btn:hover {
  background: linear-gradient(135deg, #43a047 0%, #7cb342 100%);
  box-shadow: 0 8px 32px rgba(76, 175, 80, 0.5);
}

.payment-header {
  text-align: center;
  margin-bottom: 32px;
}

.payment-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.payment-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Payment Methods Section */
.payment-methods-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  max-height: 80vh;
  overflow-y: auto;
}

.payment-methods-container::-webkit-scrollbar {
  width: 6px;
}

.payment-methods-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.payment-methods-container::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 3px;
}

.payment-methods-header {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
}

.back-button {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  animation: colorFlash 2s infinite;
}

@keyframes colorFlash {
  0% {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.4);
  }
  25% {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.3), rgba(255, 152, 0, 0.3));
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.4);
  }
  50% {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(139, 195, 74, 0.3));
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
  }
  75% {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.3), rgba(233, 30, 99, 0.3));
    box-shadow: 0 0 15px rgba(244, 67, 54, 0.4);
  }
  100% {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.4);
  }
}

.back-button:hover {
  transform: translateY(-50%) scale(1.1);
  animation-play-state: paused;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  color: rgba(255, 255, 255, 1);
}

.back-button svg {
  width: 20px;
  height: 20px;
}

.payment-methods-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.selected-plan-display {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  margin-bottom: 32px;
  backdrop-filter: blur(15px);
}

.selected-plan-display h3 {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 8px;
}

.selected-plan-price {
  font-size: 24px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.payment-methods-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
}

.payment-methods-list::-webkit-scrollbar {
  width: 6px;
}

.payment-methods-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.payment-methods-list::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 3px;
}

.payment-method-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(15px);
  overflow: hidden;
}

.payment-method-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.payment-method-image {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  position: relative;
  z-index: 2;
}

.payment-method-image img {
  max-width: 200px;
  max-height: 60px;
  object-fit: contain;
  transition: all 0.3s ease;
}

.payment-method-card:hover .payment-method-image img {
  transform: scale(1.1);
}

.payment-method-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 20px;
  z-index: 1;
}

.payment-method-card:hover .payment-method-glow {
  opacity: 1;
}

.payme-glow {
  background: radial-gradient(circle at center, rgba(64, 224, 208, 0.3) 0%, transparent 70%);
  box-shadow: 0 0 40px rgba(64, 224, 208, 0.4);
}

.click-glow {
  background: radial-gradient(circle at center, rgba(33, 150, 243, 0.3) 0%, transparent 70%);
  box-shadow: 0 0 40px rgba(33, 150, 243, 0.4);
}

.support-glow {
  background: radial-gradient(circle at center, rgba(138, 43, 226, 0.3) 0%, transparent 70%);
  box-shadow: 0 0 40px rgba(138, 43, 226, 0.4);
}

.payment-method-status {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .payment-method-image img {
    max-width: 150px;
    max-height: 50px;
  }

  .payment-method-card {
    padding: 20px;
  }

  .payment-method-image {
    height: 60px;
  }

  .payment-methods-list {
    max-height: 350px;
  }
}

/* Payment Link Section */
.payment-link-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  max-height: 85vh;
  overflow: hidden;
}

.payment-link-header {
  text-align: center;
  margin-bottom: 24px;
  position: relative;
}

.payment-link-header .back-button {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.payment-link-header .back-button:hover {
  transform: translateY(-50%) scale(1.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  color: rgba(255, 255, 255, 1);
}

.payment-link-header .back-button svg {
  width: 20px;
  height: 20px;
}

.payment-link-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.payment-link-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: calc(85vh - 120px);
}

.payment-iframe-container {
  flex: 1;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.payment-iframe-container iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
  border-radius: 14px;
}

.payment-link-status {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

/* Loading animation for iframe */
.payment-iframe-container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(102, 126, 234, 0.3);
  border-top: 3px solid rgba(102, 126, 234, 0.8);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1;
}

.payment-iframe-container iframe[src]:not([src=""]) + ::before {
  display: none;
}

/* Popup status section styles for Payme payment handling */
.popup-status-container {
  text-align: center;
  padding: 2rem;
}

.popup-status-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.popup-status-message {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.popup-status-instructions {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.popup-status-instructions p {
  margin: 0.5rem 0;
  color: var(--text-secondary);
}

.popup-refresh-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 2rem;
  min-width: 200px;
}

.popup-refresh-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.popup-reopen-button {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  margin-left: 1rem;
  min-width: 200px;
}

.popup-reopen-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.popup-buttons-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .popup-buttons-container {
    flex-direction: row;
    justify-content: center;
  }
}

#popupStatusSection {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 9999; /* zarurat bo'lsa kattalashtiring */
}

#popupStatusSection #reopenButton {
  display: none;
  visibility: hidden;
  opacity: 0;
}

#popupStatusSection #reopenButton.show {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
