:root {
    --thm-font: "Inter", sans-serif;
    --signup: #1652f0;
    --text1: #262626;
    --text2: #86868e;
    --background-color: #ffffff;
    --search: #f4f4f4;
}

* {
    box-sizing: border-box;
}

* {
    margin: 0;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-family: var(--thm-font);
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

#root,
#__next {
    isolation: isolate;
}

.header-container {
    width: 100%;
    height: 120px;
    display: flex;
    flex-direction: column;
    position: fixed;
    padding-top: 2px;
    border-bottom: 1px solid #ebebf7;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 500;
    background-color: #ffffff;

    .header-top {
        width: 100%;
        height: 70px;
        display: flex;
        padding: 0px 60px;

        .logo {
            width: 12%;
            height: 100%;
            display: flex;
            align-items: center;

            img {
                width: 150px;
            }
        }

        .search {
            width: 48%;
            height: 100%;
            display: flex;
            align-items: center;
            padding-left: 10px;

            .search-box {
                width: 100%;
                height: 45px;
                display: flex;
                border-radius: 5px;
                background-color: #f4f4f5;
                position: relative;

                .magnify {
                    width: 50px;
                    height: 100%;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                }

                input {
                    width: 80%;
                    height: 100%;
                    border: none;
                    background-color: #f4f4f5;

                    &:focus {
                        outline: none;

                    }
                }

                .search-dropdown {
                    display: none;
                    position: absolute;
                    top: 100%;
                    left: 0;
                    width: 100%;
                    background: #ffffff;
                    border: 1px solid #ddd;
                    border-top: none;
                    z-index: 100;
                    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
                    border-bottom-left-radius: 5px;
                    border-bottom-right-radius: 5px;
                    padding: 10px 20px;

                    .browse {
                        width: 100%;
                        height: fit-content;

                        h3 {
                            font-size: 15px;
                            font-weight: 600;
                            color: var(--text2);
                            margin-bottom: 5px;
                        }

                        .hold1 {
                            width: 100%;
                            height: fit-content;
                            display: flex;

                            a {
                                text-decoration: none;
                                color: var(--text1);
                                font-weight: 600;
                            }

                            .news,
                            .trending,
                            .popular,
                            .ending {
                                width: fit-content;
                                height: fit-content;
                                padding: 5px 20px;
                                border: 1px solid #ddd;
                                margin-right: 10px;
                                border-radius: 5px;
                            }
                        }

                    }

                    .topics {
                        width: 100%;
                        height: fit-content;
                        margin-top: 25px;

                        h3 {
                            font-size: 15px;
                            font-weight: 600;
                            color: var(--text2);
                            margin-bottom: 5px;
                        }

                        .hold2 {
                            width: 100%;
                            height: fit-content;
                            display: grid;
                            grid-template-columns: repeat(2, 1fr);
                            gap: 10px;

                            a {
                                text-decoration: none;
                                color: var(--text1);
                                font-weight: 600;
                            }

                            .crypto,
                            .politics,
                            .sports,
                            .business {
                                padding: 10px 20px;
                                border: 1px solid #ddd;
                                border-radius: 5px;
                            }
                        }
                    }

                }
            }
        }

        .more {
            width: 10%;
            height: 100%;
            display: flex;
            align-items: center;
            padding-left: 25px;
            position: relative;

            a {
                text-decoration: none;
                color: var(--text2);
                font-weight: 600;
                display: block;
                padding: 10px;
            }

            .dropdown-content {
                opacity: 0;
                visibility: hidden;
                transform: translateY(-10px);
                transition: opacity 0.3s ease, transform 0.3s ease;
                position: absolute;
                top: 100%;
                left: 0;
                background-color: #fff;
                min-width: 200px;
                margin-left: 10px;
                box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
                z-index: 1000;

                i {
                    margin-right: 5px;
                }

                a {
                    color: var(--text2);
                    padding: 10px 16px;
                    text-decoration: none;
                    display: block;

                    &:hover {
                        background-color: #f1f1f1;
                    }
                }
            }

            &:hover .dropdown-content {
                opacity: 1;
                visibility: visible;
                transform: translateY(0);
            }
        }



        .login-signup {
            width: 30%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: flex-end;

            a {
                text-decoration: none;
                font-weight: 600;
            }

            .login {
                color: var(--signup);
                padding: 5px 15px;
                border-radius: 5px;
                margin-right: 10px;
                transition: background-color 0.3s ease;

                &:hover {
                    background-color: #f4f4f5;
                }
            }

            .signup {
                background-color: var(--signup);
                color: #ffffff;
                padding: 5px 20px;
                border-radius: 5px;
            }

            .tab {
                width: 68%;
                display: flex;
                align-items: center;
                justify-content: space-between;

                .deposit {
                    background-color: var(--signup);
                    color: #ffffff;
                    padding: 8px 20px;
                    border-radius: 5px;

                    &:hover {
                        background-color: #0056b3;
                    }
                }

                .port {
                    display: none;

                    .bal {
                        color: green;
                        font-weight: 600;
                    }
                }

                .pro-pic {
                    width: 40px;
                    height: 40px;
                    border-radius: 50%;
                    display: none;
                    align-items: center;
                    justify-content: center;

                    img {
                        width: 95%;
                        height: 95%;
                        object-fit: cover;
                        border-radius: 50%;
                    }

                    i {
                        font-size: 35px;
                        color: var(--text2);
                    }

                }
            }
        }

        .toggler {
            width: fit-content;
            height: 100%;
            display: none;
            align-items: center;

            i {
                font-size: 25px;
            }
        }

    }

    .header-down {
        width: 100%;
        height: 40px;
        display: flex;
        padding: 0px 60px;
        overflow-x: none;
        white-space: nowrap;
        display: flex;
        gap: 25px;


        a {
            text-decoration: none;
            color: var(--text2);
            font-weight: 600;
            font-size: 15px;
            padding: 0px;

            &:hover {
                color: var(--text1);
            }
        }

    }

}

.feedback {
    font-size: 13px;
    margin-bottom: 5px;
}


.header-down::-webkit-scrollbar {
    display: none;
}

.header-down a.active {
    color: #262626;
}

.auth-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

/* Zoom-in animation keyframes */
@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* MODAL CONTENT FOR SIGNUP */
.auth-modal-content {
    background: #fff;
    margin: 2% auto;
    padding: 30px 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    padding-bottom: 65px;

    /* Zoom effect on open */
    animation: zoomIn 0.3s ease-out;
    transform: scale(1);
}

.auth-login-modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 30px 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);

    /* Zoom effect on open */
    animation: zoomIn 0.3s ease-out;
    transform: scale(1);


    
    .custom-select-wrapper {
        position: relative;
        width: 100%;
    }

    .custom-select {
        position: relative;
        display: flex;
        align-items: center;
        border: 1px solid #ccc;
        padding: 10px;
        cursor: pointer;
        background: #fff;
    }

    .custom-select img {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }

    .custom-options {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        border: 1px solid #ccc;
        border-top: none;
        background: #fff;
        z-index: 1000;
        display: none;
    }

    .custom-option {
        padding: 10px;
        display: flex;
        align-items: center;
        cursor: pointer;
    }

    .custom-option:hover {
        background-color: #f0f0f0;
    }

    .custom-option img {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }
}

.close-auth {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 22px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
}

.close-auth:hover {
    color: #000;
}

.auth-modal input[type="text"],
.auth-modal input[type="email"]{
    display: block;
    width: 100%;
    padding: 10px;
    margin: 3px 0 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

input[name="firstname"],
input[name="lastname"] {
    text-transform: capitalize;
}


#referral_code_input {
    text-transform: uppercase;
}

#referral_code_input::placeholder {
    text-transform: capitalize;
}

.auth-modal input[type="password"] {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 3px 0 ;
    border: 1px solid #ccc;
    border-radius: 5px;
}



.auth-modal select {
    display: block;
    width: 100%;
    padding: 10px;
     margin: 3px 0 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.remember {
    display: flex;
    margin-bottom: 10px;

    input[type="checkbox"] {
        margin-right: 5px;
    }
}

.hold {
    width: 100%;
    height: fit-content;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;

    .remember-log {
        width: 50%;
        display: flex;

        input[type="checkbox"] {
            margin-right: 5px;
        }
    }

    .forgot-password {
        width: 50%;
        display: flex;
        justify-content: flex-end;
    }
}


a {
    text-decoration: none;
    color: var(--text1);
    font-weight: 600;

    &:hover {
        color: var(--signup);
    }

    transition: color 0.3s ease;
}

.note {
    text-align: center;
    margin-top: 10px;

    a {
        margin-left: 5px;
    }
}

.auth-modal button {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.auth-modal button:hover {
    background: #0056b3;
}

.sign-logo {
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 0px;
    margin-bottom: 20px;

    img {
        width: 100px;
        line-height: 1px;
    }

    p {
        font-size: 25px;
        font-weight: 600;
        color: var(--text1);
        line-height: 1px;
        margin-bottom: 30px;
    }
}

.verification-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
}

.verification-modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 20px;
    max-width: 400px;
    border-radius: 10px;
    position: relative;

    label {
        text-align: center;
        color: var(--text2);
    }

    p {
        text-align: center;
    }
}

.verification-modal-content h3 {
    margin-top: 0;
}

.verification-modal-content form {
    display: flex;
    flex-direction: column;
}

.verification-modal-content label {
    margin-bottom: 10px;
}

.verification-modal-content input[type="text"] {
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
    font-weight: 700;
}

.verification-modal-content .button {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.verification-modal-content .button:hover {
    background-color: #0056b3;
}

#resend-section {
    margin-top: 15px;
}

.resend-btn {
    background: none;
    border: none;
    color: blue;
    cursor: pointer;
    padding: 0;
    font-weight: 700;
}

.resend-btn:hover {
    text-decoration: underline;
}

/* Base styling */
.pro-pic {
    position: relative;
    display: inline-block;
}

/* Initially hide the dropdown */
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
    top: 40px;
    /* Adjust this based on your layout */
    right: 0;
    background-color: #fff;
    min-width: 260px;
    margin-left: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px;

    .profile-top {
        display: flex;
        height: fit-content;
        margin-bottom: 10px;
        align-items: center;
        justify-content: center;



        .left-aspect {
            width: 25%;
            height: fit-content;

            .propic {
                width: 60px;
                height: 60px;
                display: flex;
                justify-content: center;
                align-items: center;
                border-radius: 50%;
                object-fit: cover;
                border: 2px solid var(--text2);

                img {
                    width: 95%;
                    height: 95%;
                    object-fit: cover;
                    border-radius: 50%;
                }

            }
        }

        .right-aspect {
            width: 75%;
            height: fit-content;
            display: flex;
            flex-direction: column;
            justify-content: center;
            margin-left: 5px;

            .mask {
                display: inline-block;
                background-color: #86868ebc;
                border-radius: 30px;
                padding: 0px 15px;
            }
        }
    }
}

.dropdown-menu a {
    color: var(--text2);
    padding: 10px 16px;
    text-decoration: none;
    display: block;

    &:hover {
        background-color: #f1f1f1;
    }
}


/* Show the dropdown on hover */
.pro-pic:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#wallet-container{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.wallet-address {
    font-family: monospace;
    font-size: 1.2em;
    padding: 10px;
    background: #f0f0f0;
    width: fit-content;
    max-width: 100%; /* prevent overflow */
    margin-top: 10px;

    /* Allow line breaks within the wallet address */
    word-wrap: break-word; /* old, widely supported */
    overflow-wrap: break-word; /* modern */
    white-space: normal; /* allow wrapping */
}

