
.profile-section {
    min-height: 100vh;
    padding: calc(80px + 4rem) 0 4rem;
}


.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--silver);
    font-size: 1.1rem;
    font-weight: 500;
    gap: 1rem;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 3px solid var(--gold);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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


.profile-header {
    position: relative;
    background-image: linear-gradient(135deg, rgba(201, 169, 98, 0.22) 0%, rgba(137, 87, 229, 0.22) 100%), var(--profile-banner, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(201, 169, 98, 0.2);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.profile-header::before {
    backdrop-filter: blur(10px);
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(201, 169, 98, 0.1), transparent);
    pointer-events: none;
}

.profile-top {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    
    border-radius: 50%;
    border: 3px solid var(--gold);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(201, 169, 98, 0.3);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-family: 'Cormorant Garamond', serif;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, var(--gold), var(--purple-hint));
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: white;
    font-family: 'Lato', sans-serif;
}

.profile-house {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(201, 169, 98, 0.1);
    border: 1px solid rgba(201, 169, 98, 0.2);
    border-radius: 8px;
    width: fit-content;
}

.profile-house i {
    color: var(--gold);
}

.profile-level {
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 1rem;
    font-weight: 600;
}

.profile-progress-container {
    margin-bottom: 0.5rem;
}

.profile-progress {
    width: 100%;
    height: 10px;
    background: rgba(201, 169, 98, 0.2);
    border-radius: 5px;
    overflow: hidden;
}

.profile-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-dim) 100%);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.profile-xp-text {
    font-size: 0.9rem;
    color: var(--silver);
    margin-top: 0.5rem;
}


.profile-stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.profile-stat {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(33, 38, 45, 0.5);
    border: 1px solid rgba(201, 169, 98, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.profile-stat:hover {
    background: rgba(33, 38, 45, 0.8);
    border-color: var(--gold);
    transform: translateY(-3px);
}

.profile-stat i {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.profile-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-family: 'Cormorant Garamond', serif;
}

.profile-stat-label {
    font-size: 0.9rem;
    color: var(--silver);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


.profile-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.profile-card {
    background: rgba(33, 38, 45, 0.5);
    border: 1px solid rgba(201, 169, 98, 0.2);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.profile-card:hover {
    border-color: rgba(201, 169, 98, 0.4);
}

.profile-card h3 {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-card h3 i {
    font-size: 1.25rem;
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.profile-section .stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(201, 169, 98, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.profile-section .stat-item:hover {
    background: rgba(201, 169, 98, 0.1);
}

.profile-section .stat-item-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--silver);
    font-size: 0.95rem;
}

.profile-section .stat-item-label i {
    color: var(--gold);
    width: 20px;
    text-align: center;
}

.profile-section .stat-item-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
}


.quick-info-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(201, 169, 98, 0.05);
    border-radius: 10px;
}

.quick-info-label {
    color: var(--silver);
    font-size: 0.95rem;
}

.quick-info-value {
    font-weight: 600;
    color: var(--gold);
    font-size: 1rem;
}


.spells-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.spell-item {
    aspect-ratio: 1;
    background: rgba(201, 169, 98, 0.1);
    border: 2px solid rgba(201, 169, 98, 0.2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0.75rem;
}

.spell-item:hover {
    background: rgba(201, 169, 98, 0.2);
    border-color: var(--gold);
    transform: translateY(-3px);
}

.spell-item i {
    font-size: 2rem;
    color: var(--gold);
}

.spell-name {
    font-size: 0.85rem;
    color: var(--white);
    text-align: center;
    font-weight: 500;
}

.spell-level {
    font-size: 0.75rem;
    color: var(--silver);
}


.achievements-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(201, 169, 98, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.achievement-item:hover {
    background: rgba(201, 169, 98, 0.1);
    border-color: rgba(201, 169, 98, 0.3);
}

.achievement-icon {
    width: 50px;
    height: 50px;
    background: var(--gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--midnight);
    flex-shrink: 0;
}

.achievement-info {
    flex: 1;
}

.achievement-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.achievement-desc {
    font-size: 0.9rem;
    color: var(--silver);
}

.achievement-date {
    font-size: 0.85rem;
    color: var(--gold);
    white-space: nowrap;
}


.duels-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.duel-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(201, 169, 98, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.duel-item:hover {
    background: rgba(201, 169, 98, 0.1);
}

.duel-opponent {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.duel-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(201, 169, 98, 0.3);
}

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

.duel-info {
    flex: 1;
}

.duel-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.2rem;
}

.duel-time {
    font-size: 0.85rem;
    color: var(--silver);
}

.duel-result {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.duel-result.win {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.duel-result.loss {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}


@media (max-width: 1024px) {
    .profile-content {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .profile-top {
        flex-direction: column;
        text-align: center;
    }

    .profile-name {
        font-size: 2rem;
        flex-direction: column;
    }

    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .spells-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


.profile-badges{display:inline-flex; align-items:center; gap:0.5rem; margin-left:0.5rem;}
.profile-badge{display:inline-flex; align-items:center; gap:0.5rem; padding:0.35rem 0.75rem; border-radius:999px; font-size:0.75rem; font-weight:800; letter-spacing:0.1em; text-transform:uppercase;}


.profile-header{padding:2rem; border-radius:18px;}
.profile-top{gap:1.5rem;}
.profile-avatar{width:96px; height:96px; border-radius:18px;}
.profile-name{font-size:2rem;}
.profile-level{font-size:1.05rem;}

.profile-actions .share-btn{
  padding:0.55rem 0.9rem;
  border-radius:10px;
  border:1px solid rgba(201,169,98,0.25);
  background:rgba(33,38,45,0.45);
  color:var(--white);
  cursor:pointer;
}
.profile-actions .share-btn:hover{border-color:rgba(201,169,98,0.6); background:rgba(33,38,45,0.7);}


.profile-stats{gap:1rem;}
.profile-stat{padding:1.1rem 0.9rem; border-radius:14px;}
.profile-stat i{font-size:1.4rem; margin-bottom:0.55rem;}
.profile-stat-value{font-size:1.55rem;}
.profile-stat-label{font-size:0.78rem;}


.profile-content{display:grid; grid-template-columns:1fr 1fr; gap:1.5rem;}
.profile-main{display:flex; flex-direction:column; gap:1.5rem;}
.profile-side{display:flex; flex-direction:column; gap:1.5rem;}

.profile-card{
  background:rgba(33,38,45,0.5);
  border:1px solid rgba(201,169,98,0.18);
  border-radius:18px;
  padding:1.5rem;
}
.profile-card-header{display:flex; align-items:center; gap:0.9rem; margin-bottom:1.1rem;}
.profile-card-icon{
  width:38px; height:38px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(201,169,98,0.10);
  border:1px solid rgba(201,169,98,0.20);
  color:var(--gold);
}
.profile-card-title{
  font-family:'Cormorant Garamond', serif;
  font-size:1.65rem;
  font-weight:700;
  color:var(--white);
  margin:0;
}


.stats-grid{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0.9rem;}
.stat-box{
  display:flex; align-items:center; gap:0.9rem;
  padding:0.95rem;
  border-radius:14px;
  background:rgba(201,169,98,0.06);
  border:1px solid rgba(201,169,98,0.12);
}
.stat-box-icon{width:34px; height:34px; border-radius:12px; display:flex; align-items:center; justify-content:center; color:var(--gold); background:rgba(33,38,45,0.35);}
.stat-box-value{font-size:1.15rem; font-weight:800; color:var(--white);}
.stat-box-label{font-size:0.85rem; color:var(--silver);}


.quick-info-list{display:flex; flex-direction:column; gap:0.75rem;}
.quick-info-row{display:flex; align-items:center; justify-content:space-between; padding:0.85rem 0.95rem; border-radius:14px; background:rgba(201,169,98,0.06); border:1px solid rgba(201,169,98,0.12);}
.quick-info-row .label{color:var(--silver); font-size:0.9rem;}
.quick-info-row .value{color:var(--white); font-weight:800;}


.achievements-grid{display:flex; flex-direction:column; gap:0.75rem;}
.achievement-item{
  display:flex; align-items:center; gap:0.85rem;
  padding:0.85rem 1rem;
  border-radius:14px;
  background:rgba(201,169,98,0.06);
  border:1px solid rgba(201,169,98,0.12);
}
.achievement-icon{width:44px; height:44px; border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:1.25rem; background:rgba(201,169,98,0.9); color:var(--midnight);}
.achievement-name{font-weight:700; color:var(--white);}
.achievement-item.locked{opacity:0.55; filter:grayscale(0.2);}


.inventory-list{display:flex; flex-direction:column; gap:0.8rem;}
.inventory-item{display:flex; align-items:flex-start; gap:0.75rem; padding:0.85rem 1rem; border-radius:14px; background:rgba(201,169,98,0.06); border:1px solid rgba(201,169,98,0.12);}
.inventory-item .item-name{color:var(--white); font-weight:700;}
.inventory-item .item-rarity{color:var(--silver); font-size:0.85rem; margin-top:0.15rem;}


.spells-grid{display:grid; grid-template-columns:repeat(auto-fit, minmax(190px, 1fr)); gap:0.9rem;}
.spell-item{
  aspect-ratio:auto;
  min-height:74px;
  flex-direction:row;
  justify-content:flex-start;
  align-items:center;
  gap:0.85rem;
  padding:0.85rem 1rem;
  border-radius:14px;
}
.spell-item i{font-size:1.4rem;}
.spell-name{font-size:0.95rem; text-align:left;}
.spell-level{font-size:0.82rem;}


@media (max-width: 900px){
  .profile-content{grid-template-columns:1fr;}
  .profile-header{padding:1.5rem;}
}



.profile-header{ padding: 2rem; border-radius: 18px; }
.profile-top{ gap: 1.5rem; }
.profile-avatar{ width: 92px; height: 96px; border-radius: 18px; }
.profile-name{ font-size: 2rem; }
.profile-level{ font-size: 1.05rem; }
.profile-stats{ gap: 1rem; }
.profile-stat{ padding: 1.1rem 0.9rem; border-radius: 14px; }
.profile-stat i{ font-size: 1.4rem; margin-bottom: 0.55rem; }
.profile-stat-value{ font-size: 1.55rem; }
.profile-stat-label{ font-size: 0.78rem; }



.spells-grid{
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.spell-item{
  aspect-ratio: auto;
  min-height: 74px;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
}
.spell-item i{ font-size: 1.4rem; }
.spell-name{ font-size: 0.95rem; text-align:left; }
.spell-level{ font-size: 0.82rem; }






.recent-duels .loading,
.recent-duels .empty {
    color: var(--text-secondary);
    padding: 0.75rem 0.25rem;
}

.duel-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.duel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.75rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(155, 89, 182, 0.18);
    text-decoration: none;
}

.duel-row:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(155, 89, 182, 0.28);
}

.duel-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.duel-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.duel-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.duel-opponent {
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.duel-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.duel-result {
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.18);
}

.duel-result.win {
    border-color: rgba(46, 204, 113, 0.35);
}

.duel-result.loss {
    border-color: rgba(231, 76, 60, 0.35);
}

.duel-result.draw {
    border-color: rgba(241, 196, 15, 0.35);
}


.discord-presence {
    padding: 1rem;
}

.presence-empty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.presence-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.presence-status i {
    font-size: 0.6rem;
}

.presence-activity {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.presence-activity-header {
    margin-bottom: 0.5rem;
}

.presence-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
}

.presence-activity-content {
    display: flex;
    gap: 1rem;
}

.presence-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.presence-details {
    flex: 1;
}

.presence-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.presence-detail, .presence-state {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.presence-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.presence-custom {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.presence-emoji {
    font-size: 1.2rem;
}


.profile-bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0.5rem 0;
    max-width: 400px;
}

.profile-location {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem 0;
}

.profile-location i {
    color: var(--primary);
}


.profile-social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(155, 89, 182, 0.2);
    border-radius: 50%;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}


.edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(155, 89, 182, 0.2);
    border: 1px solid rgba(155, 89, 182, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
}

.edit-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateX(-50%) translateY(0); }
    to { opacity: 0; transform: translateX(-50%) translateY(20px); }
}


.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.profile-hat {
    position: absolute;
    
    
    top: -12px;
    left: 50%;
    transform: translateX(-50%) rotate(-6deg);
    transform-origin: 50% 75%;
    width: 100px;
    z-index: 10;
    pointer-events: none;
}

@media (max-width: 520px) {
  .profile-hat {
    top: -10px;
    width: 92px;
  }
}

.profile-hat img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.profile-avatar-wrapper .profile-avatar {
    position: relative;
    z-index: 5;
    border-radius: 50%;
}


.profile-avatar-wrapper .profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    object-position: center;
    border: none;
    box-shadow: none;
}


.profile-top {
    padding-top: 42px;
}


/* Rank badges */
.profile-rank-badge {
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.35), rgba(15, 23, 42, 0.95));
}

.profile-rank-owner {
  background: linear-gradient(135deg, #f97316, #facc15);
  border-color: rgba(250, 204, 21, 0.8);
  color: #111827;
}

.profile-rank-admin {
  background: linear-gradient(135deg, #ec4899, #f97316);
  border-color: rgba(251, 113, 133, 0.9);
}

.profile-rank-moderator {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: rgba(22, 163, 74, 0.9);
}

.profile-rank-member {
  background: linear-gradient(135deg, #64748b, #1f2937);
}

.profile-rank-special {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  border-color: rgba(168, 85, 247, 0.9);
}

.profile-rank-hogwarts {
  background: linear-gradient(135deg, #4f46e5, #0ea5e9);
  border-color: rgba(59, 130, 246, 0.9);
}

.profile-rank-hogwarts_plus {
  background: linear-gradient(135deg, #f97316, #ec4899, #6366f1);
  border: none;
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.85);
}

.profile-badge-premium {
  background: linear-gradient(135deg, #facc15, #eab308);
  border-color: rgba(250, 204, 21, 0.9);
  color: #111827;
}


/* Extended premium ranks & updated Hogwarts+ */
.profile-rank-hogwarts_plus {
  background: linear-gradient(135deg, #f97316, #ec4899, #6366f1);
  border-color: rgba(244, 114, 182, 0.95);
  box-shadow: 0 0 18px rgba(244, 114, 182, 0.75);
}

.profile-rank-premium {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: rgba(34, 197, 94, 0.9);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.6);
}

.profile-rank-premium_plus {
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  border-color: rgba(45, 212, 191, 0.9);
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.7);
}

.profile-rank-premium_plus_plus {
  background: linear-gradient(135deg, #facc15, #f97316, #ec4899);
  border-color: rgba(250, 204, 21, 0.95);
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.9);
  color: #111827;
}



.profile-badge-iconlist {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: 10px;
  vertical-align: middle;
  align-items: center;
}

.profile-badge-icon {
  width: 46px;
  height: 46px;
  border-radius: 0;
  overflow: visible;

  /* No background ring */
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease;
  opacity: 0.98;
}

.profile-badge-icon:hover {
  transform: translateY(-1px) scale(1.08);
  opacity: 1;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.profile-badge-icon img {
  width: 46px;
  height: 46px;
  display: block;

  /* Icons should not be cropped */
  object-fit: contain;

  /* Stronger clarity without a background */
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.45));
}


