* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            min-height: 100vh;
            padding-bottom: 50px;
            background-color: #f8f9fa;
        }

        .header {
            background: url('../Photo/profile.png');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            padding: 20px;
            color: white;
            position: relative;
            overflow: hidden;
            height: 149px;
        }


        .profile-section {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
            justify-content: space-between;
        }

        .profile-avatar {
            width: 70px;
            height: 70px;
            background-color: #ffffff;
            background-image: url('../Photo/pk.png');
            background-size: 60%;
            background-position: center;
            background-repeat: no-repeat;
            border-radius: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .profile-info {
            flex: 1;
        }

        .profile-id {
            font-size: 14px;
            opacity: 1;
            margin-bottom: 0px;
        }

        .profile-name {
            font-size: 14px;
            font-weight: normal;
            margin-bottom: 5px;
        }

        .profile-link {
            font-size: 12px;
            opacity: 0.8;
            margin-bottom: 5px;
            color: #333;
        }

        .profile-credit {
            font-size: 14px;
            opacity: 0.9;
        }

        .profile-link-btn {
            background: #fff;
            color: #333;
            border: none;
            padding: 4px 4px 4px 4px;
            border-radius: 20px 0 0 20px;
            font-size: 12px;
            font-weight: normal;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            text-decoration: none;
        }

        .balance-section {
            background: white;
            padding: 20px;
            border-radius: 15px;
            margin: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .balance-title {
            font-size: 16px;
            color: #333;
            margin-bottom: 10px;
        }

        .balance-amount {
            font-size: 32px;
            font-weight: bold;
            color: #333;
            margin-bottom: 20px;
        }

        .action-buttons {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
        }

        .withdraw-btn {
            flex: 1;
            background: white;
            border: 1px solid #ff9a56;
            color: #e74c3c;
            padding: 0 20px;
            height: 40px;
            border-radius: 25px;
            font-weight: bold;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .withdraw-btn:hover {
            background: #fff5f0;
        }

        .withdraw-btn:active {
            transform: translateY(0);
        }

        .deposit-btn {
            flex: 1;
            background: #e74c3c;
            border: none;
            color: white;
            padding: 0 20px;
            height: 40px;
            border-radius: 25px;
            font-weight: bold;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .deposit-btn:hover {
            background: #c0392b;
        }

        .deposit-btn:active {
            transform: translateY(0);
        }

        .donate-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            background: linear-gradient(135deg, #e74c3c 0%, #9b59b6 100%);
            border: none;
            color: #ffd700;
            width: 78px;
            height: 33px;
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: normal;
            transition: all 0.3s ease;
            text-decoration: none;
        }

        .donate-btn:hover {
            transform: scale(1.05);
        }

        .donate-btn i {
            font-size: 16px;
            color: white;
        }

        .features-section {
            padding: 0 20px;
            margin-bottom: 20px;
        }

        .features-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-bottom: 20px;
        }

        .feature-card {
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 10px;
            padding: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
        }


        .feature-header {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-bottom: 0px;
            margin-top: -5px;
        }

        .feature-icon {
            width: 40px;
            height: 40px;
            background: transparent;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            color: #333;
            font-size: 24px;
            margin-left: -5px;
        }

        .feature-title {
            font-size: 14px;
            font-weight: bold;
            color: #333;
            margin-left: -15px;
        }

        .feature-desc {
            font-size: 12px;
            color: #666;
            line-height: 1.4;
            margin-left: 30px;
            margin-top: -23px;
        }

        .records-section {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .record-btn {
            background: #f5f5f5;
            border: none;
            color: #333;
            padding: 15px;
            border-radius: 8px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: left;
        }

        .record-btn:hover {
            background: #e0e0e0;
        }

        /* Custom Alert Styles */
        .custom-alert {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 2000;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .custom-alert.show {
            opacity: 1;
            animation: fadeIn 0.3s ease;
        }

        .custom-alert-content {
            background: #000;
            padding: 15px 25px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .custom-alert-message {
            color: #fff;
            font-size: 14px;
            white-space: nowrap;
            text-align: center;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translate(-50%, -60%);
            }
            to {
                opacity: 1;
                transform: translate(-50%, -50%);
            }
        }

/* ---- ---- */

.footer-nav-loading {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10050;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    flex-direction: column;
}

.footer-nav-loading.is-visible {
    display: flex;
}

.footer-nav-loading__box {
    position: relative;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-nav-loading__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2.5px solid rgba(33, 150, 243, 0.2);
    border-top-color: #2196f3;
    border-right-color: #42a5f5;
    animation: footer-nav-spin 0.75s linear infinite;
    box-sizing: border-box;
}

.footer-nav-loading__logo {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    object-fit: contain;
    pointer-events: none;
    background: transparent;
}

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

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f8f9fa;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    z-index: 1000;
    border-top: 1px solid #ccc;
    height: 50px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    padding: 2px 8px;
    border-radius: 8px;
    min-width: 60px;
    flex: 1;
}

.nav-item:hover {
    color: #333;
}

.nav-item.active {
    color: #e74c3c;
}

.nav-icon {
    font-size: 18px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.nav-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.nav-label {
    font-size: 12px;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-weight: 500;
}