/* Wallet Connection Modal - Dark macOS Style */

.wallet-connect-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.wallet-connect-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.wallet-connect-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.wallet-connect-dialog {
  position: relative;
  background: rgba(28, 28, 30, 0.95);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-radius: 20px;
  padding: 32px 24px 24px;
  max-width: 360px;
  width: 90%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  transition:
    opacity 250ms cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 250ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.wallet-connect-modal.is-open .wallet-connect-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.wallet-connect-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all 150ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.wallet-connect-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  transform: scale(1.05);
}

.wallet-connect-close:active {
  transform: scale(0.95);
}

/* MULLER Logo */
.wallet-connect-logo {
  margin-bottom: 20px;
}

.wallet-logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 15px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Title */
.wallet-connect-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  font-size: 25px;
  font-weight: 400;
  color: #f5f5f7;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

/* Phantom Wallet Card */
.wallet-connect-phantom-option {
  width: 100%;
  margin-bottom: 16px;
}

.phantom-wallet-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 150ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.phantom-wallet-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.phantom-wallet-card:active {
  transform: translateY(0);
}

.phantom-wallet-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.phantom-wallet-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
}

.phantom-icon-img {
  border-radius: 10px;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.phantom-wallet-info {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.phantom-wallet-name {
  font-size: 16px;
  font-weight: 600;
  color: #f5f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}

.phantom-wallet-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #666;
  flex-shrink: 0;
}

.status-indicator.detected {
  background: #30d158;
  box-shadow: 0 0 0 2px rgba(48, 209, 88, 0.2);
}

.status-indicator.not-detected {
  background: #ff9f0a;
  box-shadow: 0 0 0 2px rgba(255, 159, 10, 0.2);
}

.status-indicator.checking {
  background: #666;
  animation: pulse 1.5s ease-in-out infinite;
}

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

.status-text {
  color: #a1a1a6;
}

.status-text.detected {
  color: #30d158;
}

.status-text.not-detected {
  color: #ff9f0a;
}

.status-text.checking {
  color: #a1a1a6;
}

/* Status messages */
.wallet-connect-status {
  width: 100%;
  margin-top: 12px;
  font-size: 13px;
  color: #a1a1a6;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}

/* Responsive */
@media (max-width: 640px) {
  .wallet-connect-dialog {
    max-width: 320px;
    width: 92%;
    padding: 28px 20px 20px;
    border-radius: 16px;
  }

  .wallet-logo-img {
    width: 40px;
    height: 40px;
  }

  .wallet-connect-title {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .phantom-wallet-card {
    padding: 14px;
  }

  .phantom-wallet-icon {
    width: 36px;
    height: 36px;
  }

  .phantom-wallet-name {
    font-size: 15px;
  }
}

/* ============================================================================
   PRO VERSION BANNER
   ============================================================================ */

.pro-version-banner {
  position: relative;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  overflow: hidden;
  animation: bannerPulse 3s ease-in-out infinite;
}

@keyframes bannerPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2), 0 0 40px rgba(118, 75, 162, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.3), 0 0 60px rgba(118, 75, 162, 0.2);
  }
}

.pro-banner-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
  animation: glowRotate 10s linear infinite;
  pointer-events: none;
}

@keyframes glowRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.pro-banner-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1;
}

.pro-banner-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 12px;
  overflow: hidden;
  animation: iconFloat 3s ease-in-out infinite;
}

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

.pro-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pro-banner-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.pro-banner-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.pro-banner-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.pro-banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.pro-btn-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.pro-btn-text {
  position: relative;
  z-index: 1;
}

/* Mobile */
@media (max-width: 768px) {
  .pro-banner-content {
    flex-direction: column;
    text-align: center;
  }
  
  .pro-banner-text {
    align-items: center;
  }
  
  .pro-banner-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================================
   PRO VERSION MODAL
   ============================================================================ */

.pro-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.pro-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.pro-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pro-modal-container {
  position: relative;
  max-width: 800px;
  width: 94%;
  max-height: 95vh;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pro-modal.is-open .pro-modal-container {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.pro-modal-content {
  position: relative;
  background: linear-gradient(180deg, rgba(28, 28, 30, 0.98) 0%, rgba(18, 18, 20, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 36px 48px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Modal Background Effects */
.pro-modal-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.pro-modal-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}

.pro-modal-orb-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -100px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  animation: orbFloat1 8s ease-in-out infinite;
}

.pro-modal-orb-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: -50px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  animation: orbFloat2 10s ease-in-out infinite;
}

.pro-modal-orb-3 {
  width: 150px;
  height: 150px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  animation: orbFloat3 6s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 30px); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -20px); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.2); }
}

/* Close Button */
.pro-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  z-index: 10;
  transition: all 200ms ease;
}

.pro-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transform: scale(1.1);
}

/* Header */
.pro-modal-header {
  position: relative;
  text-align: center;
  margin-bottom: 24px;
  z-index: 1;
  width: 100%;
}

.pro-modal-logo {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pro-modal-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
  position: relative;
  z-index: 1;
}

.pro-modal-logo-glow {
  position: absolute;
  inset: -8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 22px;
  filter: blur(18px);
  opacity: 0.6;
  animation: logoGlow 2s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% { opacity: 0.4; transform: scale(0.95); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.pro-modal-title {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.pro-title-dollar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pro-title-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 18px;
  font-size: 14px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.5); }
  50% { box-shadow: 0 0 30px rgba(102, 126, 234, 0.8); }
}

.pro-modal-tagline {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Features Grid */
.pro-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  width: 100%;
}

.pro-feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 18px 16px;
  transition: all 300ms ease;
  animation: featureSlideIn 0.5s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.pro-feature-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(102, 126, 234, 0.3);
  transform: translateY(-2px);
}

.pro-feature-card-1 { animation-delay: 0.1s; }
.pro-feature-card-2 { animation-delay: 0.15s; }
.pro-feature-card-3 { animation-delay: 0.2s; }
.pro-feature-card-4 { animation-delay: 0.25s; }

@keyframes featureSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pro-feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
  border-radius: 12px;
  margin-bottom: 10px;
  color: #667eea;
}

.pro-feature-icon--highlight {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.pro-feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.pro-feature-card p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  line-height: 1.35;
}

/* CTA Section */
.pro-modal-cta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.pro-requirement {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.pro-requirement-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pro-requirement-value {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.pro-connect-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
  background-size: 200% 200%;
  border: none;
  border-radius: 16px;
  color: white;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 20px rgba(102, 126, 234, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  animation: btnGradientShift 4s ease infinite;
}

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

.pro-connect-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 16px 40px rgba(102, 126, 234, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 0 60px rgba(102, 126, 234, 0.2);
}

.pro-connect-btn:active {
  transform: translateY(-1px) scale(0.99);
}

.pro-connect-btn svg {
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.pro-connect-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.1) 25%, 
    rgba(255, 255, 255, 0.4) 50%, 
    rgba(255, 255, 255, 0.1) 75%, 
    transparent 100%
  );
  animation: shimmer 3s infinite;
}

.pro-buy-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.2s ease;
}

.pro-buy-link:hover {
  color: #667eea;
}

/* Tablet */
@media (max-width: 860px) {
  .pro-modal-container {
    max-width: 520px;
  }
  
  .pro-modal-content {
    padding: 28px 28px;
  }
  
  .pro-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .pro-modal-title {
    font-size: 28px;
  }
  
  .pro-modal-logo {
    width: 56px;
    height: 56px;
  }
  
  .pro-connect-btn {
    font-size: 16px;
    padding: 16px 32px;
  }
}

/* Mobile */
@media (max-width: 540px) {
  .pro-modal-container {
    width: 94%;
    max-width: 400px;
  }
  
  .pro-modal-content {
    padding: 24px 20px;
    border-radius: 20px;
  }
  
  .pro-modal-header {
    margin-bottom: 20px;
  }
  
  .pro-modal-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
  }
  
  .pro-modal-title {
    font-size: 24px;
    gap: 8px;
  }
  
  .pro-title-badge {
    padding: 4px 10px;
    font-size: 11px;
  }
  
  .pro-modal-tagline {
    font-size: 13px;
  }
  
  .pro-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
  }
  
  .pro-feature-card {
    padding: 14px 12px;
    border-radius: 12px;
  }
  
  .pro-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    margin-bottom: 8px;
  }
  
  .pro-feature-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .pro-feature-card h3 {
    font-size: 13px;
    margin-bottom: 2px;
  }
  
  .pro-feature-card p {
    font-size: 11px;
    line-height: 1.3;
  }
  
  .pro-modal-cta {
    gap: 12px;
  }
  
  .pro-requirement {
    padding: 10px 14px;
    gap: 8px;
    width: 100%;
    justify-content: center;
  }
  
  .pro-requirement-label {
    font-size: 10px;
  }
  
  .pro-requirement-value {
    font-size: 12px;
  }
  
  .pro-connect-btn {
    padding: 14px 20px;
    font-size: 15px;
    border-radius: 12px;
  }
  
  .pro-buy-link {
    font-size: 12px;
  }
  
  /* Hide background orbs on mobile for performance */
  .pro-modal-orb {
    display: none;
  }
}