/* ==========================================================================
   Profile dropdown — opens from .axm-profile-card (see login.js/login.css)
   Namespaced "axm-pd-" to avoid collisions.
   ========================================================================== */

.axm-pd-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 78px 20px 20px;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.axm-pd-overlay.active {
    opacity: 1;
    visibility: visible;
}

.axm-pd-panel {
    width: 100%;
    max-width: 300px;
    background: var(--bg-dark-5, #1c1812);
    border: 1px solid var(--border-color, #2e2820);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    padding: 16px;
    font-family: 'Changa', sans-serif;
    transform: translateY(8px);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.axm-pd-overlay.active .axm-pd-panel {
    transform: translateY(0);
}

/* ---- Header ---- */

.axm-pd-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.axm-pd-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.axm-pd-header-info {
    min-width: 0;
    flex: 1;
}

.axm-pd-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-white, #fff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.axm-pd-address-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.axm-pd-address {
    font-size: 11.5px;
    font-family: monospace;
    color: var(--text-dark, #888);
}

.axm-pd-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-dark, #888);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.axm-pd-copy-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light, #ADBCDD);
}

.axm-pd-copy-btn.copied {
    color: var(--secondary-accent, #35D07F);
}

/* ---- Balances card ---- */

.axm-pd-balances-card {
    background: var(--bg-dark-4);
    border-radius: 12px;
    padding: 14px;
}

.axm-pd-balances-title {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-white, #fff);
    margin-bottom: 10px;
}

.axm-pd-balance-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
}

/* ---- RON row: highlighted + separated from other balances ---- */

.axm-pd-balance-row--ron {
}

.axm-pd-balance-row--ron .axm-pd-balance-label {

}

.axm-pd-balance-row--ron .axm-pd-balance-value {

}

/* Deposit sits inline on the RON row itself, not the shared actions row */
.axm-pd-ron-deposit-wrap {
    position: relative;
    flex: none;
    margin-left: 6px;
}

.axm-pd-btn-sm {
    flex: none;
    padding: 5px 10px;
    font-size: 11px;
    border-radius: 8px;
}

/* "+" add-currency button (Coins / Meta Bucks rows) with a NEW tag
   badge anchored to its top-right corner. */
.axm-pd-add-btn-wrap {
    position: relative;
    flex-shrink: 0;
    margin-left: 6px;
}

.axm-pd-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    border-radius: 5px;
    background: var(--secondary-accent, #35D07F);
    color: var(--text-bright, #ADBCDD);
    font-size: 14px;
	font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
}

.axm-pd-add-btn:hover {
    color: var(--text-white, #fff);
}

.axm-pd-new-badge {
    position: absolute;
    top: -7px;
    right: -8px;
    padding: 1px 2px;
    border-radius: 3px;
    background: var(--warm-accent, #EB4A57);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
    pointer-events: none;
    z-index: 1;
}

.axm-pd-balances-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 8px 0 6px;
}

.axm-pd-other-balances {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.axm-pd-balance-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
}

.axm-pd-balance-label {
    flex: 1;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-light, #ADBCDD);
}

.axm-pd-balance-value {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-white, #fff);
}

.axm-pd-balance-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.axm-pd-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 0px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Changa', sans-serif;
    cursor: not-allowed;
    opacity: 0.6;
    transition: all 0.15s ease;
}

.axm-pd-btn-deposit {
    background: var(--secondary-accent, #35D07F);
    color: #fff;
}

.axm-pd-btn-convert {
    background: var(--currency-blue, #4CC2FF);
    color: #fff;
}

/* Re-enable hover/cursor once deposit/convert flows exist —
   buttons are `disabled` in JS until then. */
.axm-pd-btn:not(:disabled) {
    cursor: pointer;
    opacity: 1;
}

/* ---- Tools list ---- */

.axm-pd-tools {
    display: flex;
    flex-direction: column;
}

.axm-pd-tool {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 4px;
    background: none;
    border: none;
    color: var(--text-light, #ADBCDD);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Changa', sans-serif;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.axm-pd-tool i {
    width: 16px;
    text-align: center;
    font-size: 16px;
    color: var(--text-light, #888);
    flex-shrink: 0;
}

.axm-pd-tool:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.04);
}

.axm-pd-tool-accent {
    color: var(--primary-accent, #EB4A57);
}

.axm-pd-tool-accent i {
    color: var(--primary-accent, #EB4A57);
}

.axm-pd-tool-disabled {
    color: #555;
    cursor: not-allowed;
}

.axm-pd-tool-disabled i {
    color: #444;
}

.axm-pd-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 6px 0 4px;
}

.axm-pd-logout {
    color: var(--primary-accent, #EB4A57);
}

.axm-pd-logout i {
    color: var(--primary-accent, #EB4A57);
}



.axm-pd-btn-wrap {
    position: relative;
    display: flex;
    flex: 1;
}

.axm-pd-btn-wrap[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    
    padding: 5px 8px;
    border-radius: 5px;
    background: #181C25;
    color: #fff;
    font-size: 11px;
    white-space: nowrap;
    
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 100;
}

.axm-pd-btn-wrap[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}




@media (max-width: 900px) {
    .axm-pd-overlay {
        
    }
 
    .axm-pd-panel {
        max-width: 320px;
    }
}
 
@media (max-width: 480px) {
	
    .topbar-right {
        display: flex;
        align-items: center;
        gap: 6px;
        justify-self: end;
    }
	
    .axm-profile-card {

        padding: 6px 8px;
		gap: 6px;
		border-radius: 6px;

    }
	
    .axm-profile-avatar {
        width: 28px;
        height: 28px;
		

    }
	.axm-profile-info{
		
		gap: 2px;
		
	}
	.axm-profile-name {
        font-size: 11px;
	}
	.axm-profile-address {
        font-size: 10px;
    }
	
    .axm-pd-overlay {
        padding: calc(var(--topbar-height, 52px) + 8px) 10px 10px;
    }
 
    .axm-pd-panel {
        max-width: 100%;
        padding: 14px;
    }
 
    .axm-pd-avatar {
        width: 38px;
        height: 38px;
    }
 
    .axm-pd-name {
        font-size: 13px;
    }
 
    .axm-pd-address {
        font-size: 11px;
    }
 
    .axm-pd-balance-actions {
       
    }
 
    .axm-pd-btn-wrap {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .axm-pd-overlay {
        padding: 70px 10px 10px;
        justify-content: center;
    }
    .axm-pd-panel {
        max-width: 340px;
    }
	
    .axm-profile-address {
        font-size: 10.5px;
        font-family: monospace;
        color: var(--text-dark, #888);
    }
	
}