/* ==============================================
   ACCOUNT/ME SECTION - PREMIUM REDESIGN
   ============================================== */

/* Section Container */
#account-section {
    padding-bottom: 40px;
}

/* Profile Header Card - Compact Design */
.account-profile-header {
    background: linear-gradient(145deg, rgba(30, 30, 45, 0.9), rgba(15, 15, 25, 0.95));
    border-radius: 20px;
    padding: 18px 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(108, 92, 231, 0.3);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.account-profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(108, 92, 231, 0.15) 0%, transparent 50%);
    animation: profileGlow 6s ease-in-out infinite;
}

@keyframes profileGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.account-avatar {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 2;
    box-shadow:
        0 6px 20px rgba(108, 92, 231, 0.35),
        0 0 0 3px rgba(108, 92, 231, 0.15);
    overflow: hidden;
}

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

.account-avatar-ring {
    display: none;
    /* Hidden for compact design */
}

@keyframes ringPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.account-profile-info {
    flex: 1;
    min-width: 0;
}

.account-username {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
    position: relative;
    z-index: 2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-user-id {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    font-family: 'Courier New', monospace;
    position: relative;
    z-index: 2;
}

/* Premium Wallet Card - Titanium Black Style */
.account-wallet-card {
    background: linear-gradient(135deg, #2d3436 0%, #000000 100%);
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    color: white;
}

.account-wallet-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.account-wallet-card::after {
    /* Mesh Pattern */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    pointer-events: none;
}

.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.wallet-header span:first-child {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.wallet-icon {
    font-size: 24px;
    background: rgba(255, 255, 255, 0.1);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-balance {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 28px;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, #fff, #a4b0be);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: baseline;
    gap: 8px;
    letter-spacing: -1px;
}

.wallet-balance .coins-label {
    font-size: 14px;
    font-weight: 600;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.withdraw-btn {
    width: 100%;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
    border: none;
    color: white;
    padding: 16px 24px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.withdraw-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.5);
}

.withdraw-btn:active {
    transform: scale(0.98);
}

.wallet-decor-1,
.wallet-decor-2 {
    display: none;
}

/* Info Cards Container */
.account-info-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.account-info-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
    animation: fadeSlideIn 0.5s ease-out backwards;
}

.account-info-card:nth-child(1) {
    animation-delay: 0.1s;
}

.account-info-card:nth-child(2) {
    animation-delay: 0.15s;
}

.account-info-card:nth-child(3) {
    animation-delay: 0.2s;
}

.account-info-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(4px);
}

.account-info-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(108, 92, 231, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.account-info-card.referrer .account-info-icon {
    background: linear-gradient(135deg, rgba(253, 203, 110, 0.2), rgba(253, 203, 110, 0.05));
}

.account-info-content {
    flex: 1;
    min-width: 0;
}

.account-info-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2px;
}

.account-info-value {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Settings Cards */
.account-settings-section {
    margin-top: 8px;
}

.account-setting-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.account-setting-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(4px);
}

.account-setting-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.account-setting-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.account-setting-text {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
}

.account-setting-arrow {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.account-setting-card:hover .account-setting-arrow {
    transform: translateX(4px);
    color: rgba(255, 255, 255, 0.6);
}

/* Animation */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================================
   GIFT CARD CLAIM MODAL
   ============================================== */

/* Gift Card Button Enhancement */
.account-setting-card.giftcard-card {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(108, 92, 231, 0.05));
    border-color: rgba(108, 92, 231, 0.3);
}

.account-setting-card.giftcard-card:hover {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.25), rgba(108, 92, 231, 0.1));
    border-color: rgba(108, 92, 231, 0.5);
}

.account-setting-card.giftcard-card .account-setting-icon {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.1));
}

/* Modal Overlay */
.giftcard-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.giftcard-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.giftcard-modal {
    background: linear-gradient(145deg, rgba(30, 30, 45, 0.98), rgba(15, 15, 25, 0.98));
    border-radius: 24px;
    padding: 0;
    width: 100%;
    max-width: 360px;
    position: relative;
    border: 1px solid rgba(108, 92, 231, 0.3);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.giftcard-modal-overlay.visible .giftcard-modal {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.giftcard-modal-header {
    padding: 28px 24px 20px;
    text-align: center;
    position: relative;
    background: linear-gradient(180deg, rgba(108, 92, 231, 0.1), transparent);
}

.giftcard-modal-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: inline-block;
    animation: giftPulse 2s ease-in-out infinite;
}

@keyframes giftPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.giftcard-modal-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
}

.giftcard-modal-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.giftcard-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.giftcard-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Modal Body */
.giftcard-modal-body {
    padding: 0 24px 24px;
}

.giftcard-input-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.giftcard-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    outline: none;
}

.giftcard-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}

.giftcard-input:focus {
    border-color: rgba(108, 92, 231, 0.6);
    background: rgba(108, 92, 231, 0.1);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.15);
}

/* Claim Button */
.giftcard-claim-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
}

.giftcard-claim-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.5);
}

.giftcard-claim-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.giftcard-claim-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Result Messages */
.giftcard-result {
    padding: 0 24px 24px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    min-height: 20px;
}

.giftcard-result.success {
    color: #00b894;
}

.giftcard-result.error {
    color: #ff7675;
}