.account-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 25px;
    width: 48%;
    margin: 10px;
    position: relative;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(2,6,23,0.55), rgba(2,6,23,0.35));
    border: 1px solid rgba(148,163,184,0.28);
    backdrop-filter: blur(8px);
    box-shadow:
      0 8px 28px rgba(0,0,0,0.35) inset,
      0 10px 30px rgba(0,0,0,0.25);
  }
  
  .account-card.family {
    width: 45%;
    margin: 0;
  }
  
  .profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #cccccc;
  }
  
  .profile-name {
    margin-left: 16px;
    font-size: 20px;
    font-weight: 600;
    color: white;
  }
  
  .profile-subheading {
    margin-left: 16px;
    font-size: 14px;
    color: #999999;
    margin-top: 4px;
  }
  
  .profile-field {
    display: flex;
    flex-direction: column;
    margin-top: 12px;
  }
  
  .profile-field label {
    font-size: 14px;
    margin-bottom: 6px;
    color: white;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.3px;
  }

  .profile-field-text {
    font-size: 14px;
    margin-bottom: 6px;
    color: #555555;
  }
  
  .profile-input {
    padding: 10px 12px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.08);
  }
  
  .profile-skeleton {
    width: 100%;
    padding: 16px;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.08);
    color: #94a3b8;
    font-size: 14px;
  }

  .profile-stats {
    display: grid;
    gap: 12px;
  }

  .profile-stats-title {
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.3px;
  }

  .xp-legend {
    color: #cbd5e1;
    font-size: 14px;
  }
  .xp-legend-sub {
    color: #94a3b8;
    font-size: 12px;
  }

  .xp-meter {
    display: grid;
    gap: 8px;
  }

  .xp-level-bar {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(30,41,59,0.7), rgba(30,41,59,0.4));
    overflow: hidden;
    outline: 1px solid rgba(148,163,184,0.2);
  }

  .xp-level-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.35);
    transition: width 420ms ease;
  }

  .xp-scale {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
  }

  .badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }

  .badge-card {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 6px;
    padding: 14px 12px;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.18);
  }

  .badge-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.15);
    overflow: hidden;
  }
  .badge-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .badge-name {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 14px;
  }
  .badge-earned-date {
    color: #94a3b8;
    font-size: 12px;
  }
  .badge-desc {
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.35;
  }
  .badge-empty {
    color: #94a3b8;
    font-size: 14px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.08);
  }

  .badge-section {
    margin-top: 20px;
  }