:root {
  --card-bg: #000000;
  --life-glow: #8b5cf6; 
  --life-bot: #1e1b36;
  --prem-glow: #bfdbfe; /* Pale Soft Blue */
  --prem-bot: #172554;
  --pplus-glow: #3b82f6; /* Bright Blue */
  --pplus-bot: #020617;
  --info-bg: #0a0a0a;
  --text-main: #ffffff;
  --text-dim: #94a3b8;
}

/* Main Dashboard Layout */
.profile-dashboard {
  display: flex;
  flex-direction: row; /* Desktop: side-by-side */
  gap: 30px;
  align-items: flex-start;
  padding: 0; /* Removed padding */
  background: transparent;
  font-family: 'Neue Montreal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  perspective: 1000px;
  width: 100%; /* Ensure full width */
}

/* Member Card Container */
.card-container {
  position: relative;
  flex: 1; /* Allow to grow */
  width: 100%; /* Force width */
  height: 280px;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.1s ease-out;
  transform-style: preserve-3d;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2); /* Slightly white transparent thin border */
}

.card-container::before {
  content: ''; 
  position: absolute;
  width: 150%; height: 300%;
  background: conic-gradient(transparent, rgba(255, 255, 255, 0.9), var(--glow-color), transparent 30%);
  animation: rotate 4s linear infinite;
}

.lifetime { --glow-color: var(--life-glow); --bottom-bg: var(--life-bot); }
.premium { --glow-color: var(--prem-glow); --bottom-bg: var(--prem-bot); }
.premium-plus { --glow-color: var(--pplus-glow); --bottom-bg: var(--pplus-bot); }

.card {
  position: relative;
  width: calc(100% - 4px); 
  height: calc(100% - 4px);
  background: linear-gradient(180deg, var(--card-bg) 60%, var(--bottom-bg) 100%);
  border-radius: 23px;
  padding: 32px 24px; /* Increased vertical padding for more height */
  box-sizing: border-box;
  display: flex; 
  flex-direction: column; 
  justify-content: space-between;
  color: white;
  z-index: 1;
  pointer-events: none;
  transform: translateZ(20px);
}

@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.name { margin: 0; font-size: 18px; font-weight: 400; }
.exp { margin: 8px 0 0; font-size: 14px; opacity: 0.6; }
.footer { display: flex; justify-content: space-between; font-size: 16px; opacity: 0.9; }

/* Static User Info Card */
.static-info-card {
  flex: 1;
  background: var(--info-bg);
  border: 1px solid #1a1a1a;
  border-radius: 24px;
  padding: 35px 30px; /* Increased padding to balance height */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center rows vertically in the taller card */
  gap: 25px;
  height: 280px; /* Updated Height to match Member Card */
  box-sizing: border-box;
  color: var(--text-main);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}

.info-label { color: var(--text-dim); }
.info-value { font-weight: 400; text-align: right; }

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .profile-dashboard {
    flex-direction: column; 
    align-items: center;
    gap: 20px;
    padding: 0;
  }
  
  .card-container {
    width: 100%;
    max-width: none; 
    flex: none;
    height: 228px;
    margin: 0; /* Remove margin */
  }

  .card {
      width: calc(100% - 4px);
      height: calc(100% - 4px);
      padding: 20px 16px; 
  }

  .static-info-card {
    width: 100%;
    max-width: none;
    flex: none;
    height: auto; 
    padding: 20px;
    margin: 0; /* Remove margin */
  }

  .name { font-size: 18px; } /* Consistent font size */
  .exp { font-size: 12px; }
  .footer { font-size: 14px; }
}
