﻿main {
    background-color: #0a0a0a;
}


.avtar-icon {
    background-color: unset;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 40px;
    border-radius: 30px;
    cursor: pointer;
}

    .avtar-icon :hover {
        background-color: #60606052;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 40px;
        width: 40px;
        border-radius: 30px;
    }


.page-header {
    position: relative;
    text-align: center;
    padding: 14px 20px 10px;
    background: #0a0a0a;
}

    .page-header h3 {
        margin: 0;
        font-weight: 700;
        font-size: clamp(.95rem,1.4vw,1.25rem);
        color: #fff;
        margin-top:-35px;
    }

.back-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 1em;
    height: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    z-index: 9999;
    cursor: pointer;
    transition: .2s ease;
}

    .back-btn:hover {
        color: #fff;
        background: rgb(78 72 68);
        width: 1.5em;
        height: 1.5em;
    }

/* =========================
           CARD
        ========================= */

.user-center-card {
    max-width: 1100px;
    margin: auto;
    color: #fff;
}

.profile-section {
    padding: 10px 0 12px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    margin: auto;
    border-radius: 50%;
    background: #d4a85f38;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .profile-avatar i {
        font-size: 42px;
        color: #d0a15f;
    }

.profile-name {
    font-size: 22px;
    font-weight: 600;
    margin-top: 18px;
    margin-bottom: 6px;
}

.profile-email {
    color: #bdbdbd;
    font-size: 15px;
    margin: 0;
}

/* =========================
           LIST
        ========================= */

.custom-list {
    border: none;
}

.custom-item {
    background: #0a0a0a;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,.08);
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    padding: 12px;
    text-decoration: none;
}

    .custom-item span {
        font-size: 16px;
        font-weight: 500;
    }

.item-right {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

/* =========================
           ALL ICONS
        ========================= */

.uid-copy {
    font-size: 18px;
    color: #fff;
    opacity: 1;
    transition: .2s ease;
}

.btn {
    line-height: 1;
}

/* =========================
           COPY
        ========================= */

.copy-btn:hover i {
    color: #d6a44f;
}

/* =========================
           EDIT INPUT
        ========================= */

/* Full Name Edit Input */
.edit-input.form-control,
.edit-input.form-control-sm {
    width: 90px; /* screenshot jaisa */
    min-width: 90px;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    color: #fff !important;
    border: none !important;
    border-bottom: 1px solid #d6a44f !important;
    border-radius: 0 !important;
    height: auto !important;
    min-height: unset !important;
    line-height: 1.2 !important;
    font-size: 16px;
    font-weight: 500;
    box-shadow: none !important;
}
/* Keep text + input exactly in same position */
.item-right {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

/* Full Name text */
#fullNameText {
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    color: #fff;
}

/* Override Bootstrap form-control completely */
#fullNameInput.form-control,
#fullNameInput.form-control-sm {
    width: auto;
    min-width: 110px;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    color: #fff !important;
    border: 0 !important;
    border-bottom: 1px solid #d6a44f !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    height: auto !important;
    min-height: 0 !important;
    vertical-align: baseline;
}

    /* Focus state */
    #fullNameInput.form-control:focus,
    #fullNameInput.form-control-sm:focus {
        background: transparent !important;
        color: #fff !important;
        border: 0 !important;
        border-bottom: 1px solid #d6a44f !important;
        box-shadow: none !important;
        outline: none !important;
    }

/* Remove browser autofill styling */
#fullNameInput:-webkit-autofill,
#fullNameInput:-webkit-autofill:hover,
#fullNameInput:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0 1000px transparent inset;
    transition: background-color 9999s ease-in-out 0s;
}

/* Icon buttons */
#editBtn,
#cancelBtn,
#SvPerinfo {
    padding: 0 !important;
    margin: 0 !important;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

    /* Default icon color */
    #editBtn i,
    #cancelBtn i,
    #SvPerinfo i {
        color: #fff;
        font-size: 16px;
        transition: color .2s ease;
    }

    /* Hover colors */
    #cancelBtn:hover i {
        color: #dc3545;
    }

    #SvPerinfo i {
        color: #198754;
    }

.glass-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
}

.gold-gradient {
    background: linear-gradient(135deg, #d4af37 0%, #a37f1c 50%, #1a150a 100%);
}

.text-gold {
    color: #d4af37;
}

/* Toggle Switch Custom Styling */
.toggle-checkbox:checked {
    right: 0;
    border-color: #d4af37;
}

    .toggle-checkbox:checked + .toggle-label {
        background-color: #d4af37;
    }
.sweet-alert {
    margin-top: -250px !important;
}

.cropper-container {
    width: 300px !important;
    height: 300px !important;
    max-width: 100%;
    margin: auto;
}

#crop-image-container {
    width: 100%;
    max-width: 300px;
    height: 300px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

/* IMPORTANT */
.cropper-container {
    max-width: 100% !important;
    max-height: 100% !important;
}

/* KEEP EVERYTHING INSIDE */
.cropper-wrap-box,
.cropper-canvas,
.cropper-drag-box {
    overflow: hidden !important;
}

/* DON'T BREAK IMAGE */
.cropper-container img {
    display: block;
    max-width: none !important;
}

@media (max-width: 767px) {
    .sweet-alert {
        margin-top: -200px !important;
    }

    #crop-image-container {
        width: 100%;
        max-width: 200px;
        height: 200px;
        margin: 0 auto;
        overflow: hidden;
    }

    .cropper-container {
        max-width: 100% !important;
        max-height: 100% !important;
    }
}