/* Account Page Styles */

/* Account Panel */
.account-panel {
    position: absolute;
    top: 20px;
    left: 116px;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    font-family: 'Kanit', sans-serif;
    box-sizing: border-box;
    padding: 40px 60px;
    border: 2px solid #c9a861;
    border-radius: 127px;
    background: rgba(0, 0, 0, 0.6);
}

/* Avatar Section */
.account-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
}

/* Red Diamond Background - rotated 45deg square */
.account-avatar-section::before {
    content: '';
    position: absolute;
    top: 10px;
    width: 180px;
    height: 160px;
    background: #8b0000;
    transform: rotate(20deg);
    border-radius: 20px;
    z-index: 0;
}

/* Avatar Frame - Rounded square with golden border, rotated */
.avatar-frame {
    width: 180px;
    height: 180px;
    border-radius: 40px;
    border: 1px solid #c9a861;
    background: #000;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transform: rotate(45deg);
}

.avatar-image {
    width: 140%;
    height: 140%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Avatar Name */
.avatar-name {
    font-size: 32px;
    font-weight: 700;
    color: #FFE3AA;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Account Info Section */
.account-info-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 280px;
}

/* Info Row */
.info-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
}

.info-row.with-icon {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
}

/* Info Label */
.info-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* Info Value */
.info-value {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.info-value.coins {
    color: #fff;
}

.info-value.money {
    color: #fff;
}

/* Settings Icon */
.settings-icon {
/*    width: 100%;*/
    height: 36px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s ease;
}


.settings-icon:hover {
    transform: scale(1.1);
}

/* Withdraw Options Dropdown */
.withdraw-options {
    position: absolute;
    top: 40px; 
    right: 0;
    min-width: 200px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #c9a861;
    border-radius: 8px;
    z-index: 1000;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.withdraw-options.hidden {
    display: none;
}

.withdraw-item {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.withdraw-item:last-child {
    border-bottom: none;
}

.withdraw-item:hover {
    background: rgba(201, 168, 97, 0.2);
}

.withdraw-name {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}

.withdraw-cost {
    font-size: 14px;
    color: #ffd700;
    font-weight: 700;
}

/* Ensure parent has relative positioning for absolute dropdown */
.info-row.with-icon {
    position: relative;
}
