/* 🌈 Xamilyon (Göyqurşağı) Animasiyası təyin edirik */
@keyframes textGradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* YALNIZ ADIN ÖZÜ (userNameText) - Xamilyon effekti */
.admin-mode #userNameText {
    /* Göyqurşağı rəngləri */
    background: linear-gradient(
        to right, 
        #ff4757, /* Qırmızı */
        #ff9f43, /* Narıncı */
        #feca57, /* Sarı */
        #1dd1a1, /* Yaşıl */
        #54a0ff, /* Göy */
        #5f27cd, /* Bənövşəyi */
        #ff4757  /* Yenidən Qırmızı (dövr üçün) */
    );
    
    background-size: 200% auto; /* Animasiyanın axıcı olması üçün */
    
    /* 🔥 Əsas Məntiq: Rəngi mətnin içinə sıxışdırırıq */
    -webkit-background-clip: text; /* Yalnız mətnin daxilinə rəng ver */
    background-clip: text;
    -webkit-text-fill-color: transparent; /* Mətnin öz əsl rəngini şəffaf et */
    
    /* Animasiyanı qoşuruq: 4 saniyə sürür, sonsuz dövr edir */
    animation: textGradientAnimation 4s linear infinite !important;
    
    font-weight: bold !important;
    display: inline-block; /* Animasiyanın düzgün işləməsi üçün */
}

/* Admin badge-in dizaynı */
#adminBadge {
    display: none; /* İlkin olaraq gizli */
    background-color: #ff4757;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
    font-weight: 800;
}

/* Admin-mode olanda badge görünsün */
.admin-mode #adminBadge {
    display: inline-block !important;
}






#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    display: none;
    z-index: 999;
}

.modal-box{
    color:black;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    display: none;
    z-index: 1000;
}

.modal-box {
    width: 330px;
    background: #0f1113ee;
    padding: 20px;
    border-radius: 12px;
    position: relative;
    text-align: left;
}

#closeModal {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
}

/* input */
.modal-box input {
    width: 100%;
    padding: 10px;
    margin: 6px 0 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* button */
.main-btn {
    width: 100%;
    padding: 10px;
    background: #d16506;
    color: white;
    border: none;
    border-radius: 6px;
}

.main-btn:hover {
    background: #f8a023
}

/* divider */
.divider {
    text-align: center;
    margin: 15px 0;
    color: rgb(48, 48, 48);
}







.dropdown-arrow {
    width: 14px;
    height: 14px;
    margin-left: 2px;
    opacity: 0.8;
    transition: 0.2s;
}





.avatar {
    width: 40px;
    height: 40px;
    background: #dc2424;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    border: 2px solid #a46000;
}
.login:hover  .avatar {
    border-color: #f99100;
}



.auth-btn.login {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* BUTTON */
.login {
    font-size: 16px;
    border: none;
    background-color: rgba(255, 255, 255, 0);
    color: rgb(255, 255, 255);
    display: inline-flex;
    align-items: center;
    gap: 1px;
    padding: 5px 9px;
    transition: translateX(5px);
}
.login:hover {
 transform: translateX(1px);
 color: #a46000;
}

#loginBtn .user-name {
    color: white;
    transition: 0.3s;
}

#loginBtn:hover .user-name  {
    color: #f47709; /* istədiyin rəng */
}

/* ICON */
.login-icon {
    width: 21px;
    height: 21px;
    display: inline-block;
    background: url("images/white.png") center/contain no-repeat;
}




/* Modalın ana fonu - ilkin olaraq gizli */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 34, 41, 0.683); /* Arxa fonu qaraltmaq üçün */
    display: none; /* BU ÇOX VACİBDİR: İlkin olaraq gizlədir */
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Digər elementlərin üstündə olması üçün */
}

/* Modal aktiv olanda görsənməsi üçün */
.modal-overlay.active {
    display: flex;
}

/* Modalın daxili pəncərəsi */
.modal-overlay .modal {
    background: #18181883;
    color: white;
    padding: 30px;
    border-radius: 10px;
    width: 350px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}



.modal2 {
    width: 340px;
   background: #0f1113ee;
    padding: 20px 20px 20px 20px; /* əvvəl 20px idi çox güman */
    border-radius: 12px;
    position: relative;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    font-family: 'Segoe UI', sans-serif;
}

.input-label {
    font-size: 13px;
    color: #920f0f;
    margin-bottom: 5px;
    display: block;
}

.input-name,
.input-password {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 12px;
    font-size: 14px;
    transition: 0.2s;
}

/* focus effekti */
.input-name:focus,
.input-password:focus {
    border-color: #a46000;
    outline: none;
}

.input-file {
    margin: 10px 0;
    font-size: 13px;
}

.save-btn {
    width: 100%;
    background: linear-gradient(135deg, #f47709, #f47709);
    color: white;
    padding: 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

/* hover */
.save-btn:hover {
    opacity: 0.9;
}

/* ITEM */
.settings-item {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-left: -10px;   /* 🔥 padding-i ləğv edir */
    margin-right: -10px;  /* 🔥 padding-i ləğv edir */

    padding: 12px 20px;   /* iç boşluq yenidən verilir */

    border-bottom: 1px solid #1c1c1c;
    cursor: pointer;
    transition: 0.2s;
}

.settings-item:hover {
    background: #6b4c2095;
    border-radius: 10px;
}




.profile-top p {
    color: #5a5a5a; /* istədiyin rəng */
}

/* PNG ICON */
.settings-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    opacity: 0.7;
    margin-left: 0;   
}

/* TEXT */
.settings-text h3 {
    margin: 0;
    font-size: 16px;
    color: #ffffff;
}

.settings-text p {
    margin: 3px 0 0;
    font-size: 13px;
    color: #c0c0c0;
}

/* sağ arrow */
.settings-item::after {
    content: "›";
    margin-left: auto;
    font-size: 20px;
    color: #aaa;
}



.close-btn3 {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    color: #e0e0e0;
    font-size: 20px;
    border: none;
    cursor: pointer;
}

/* TABLAR */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tabs button {
    flex: 1;
    padding: 8px;
    border: none;
    background: #eee;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.tabs button:hover {
    background: #f47709;
    color: white;
}

/* content */
.tab-content {
    animation: fadeIn 0.2s ease;
}

/* PANEL */
.panel {
    display: none;
    margin-top: 15px;
    animation: fadeIn 0.25s ease;
}

/* TITLE */

.panel h3 {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    transform: translateY(-19px);
    color: #f4f4f4;
    font-weight: 600;

}
#profileName {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* INPUTLAR */
.panel input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: 0.25s;
    margin-bottom: 12px;
    background: #f9f9f9;
}

/* FOCUS */
.panel input:focus {
    border-color: #f47709;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(229,9,20,0.1);
}

/* FILE INPUT */
.panel input[type="file"] {
    padding: 8px;
    background: transparent;
}

/* BUTTON (əgər əlavə etsən) */
.panel button {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #f47709, #f47709);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.panel button:hover {
    opacity: 0.9;
}

/* ANIMASIYA */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* profil */
.profile-top {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgb(255, 255, 255);
}

.profile-avatar1 {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid #b55502;
    color: whitesmoke;
    font-size: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-top: -15px;
    margin-left: -10px;
}





@media (max-width: 768px) {

    .modal-box {
        width: 90%; /* 🔥 sabit yox, responsive */
        max-width: 350px;
        padding: 15px;
    }

    .modal {
        width: 100%;
        padding: 10px;
    }

    /* input daha rahat */
    .modal-box input {
        padding: 12px;
        font-size: 14px;
    }

    /* button */
    .main-btn {
        padding: 12px;
        font-size: 14px;
    }

    /* social */
    .social-btn {
        padding: 12px;
        font-size: 14px;
    }

    /* close button */
    #closeModal {
        font-size: 18px;
    }

    /* user menu */
    #userMenu {
        top: 45px;
        right: 0;
        min-width: 140px;
    }

}






.file-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 8px 12px;
    background: #f5f5f5;
}

.file-box button {
    background: #ddd;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
}

#fileName {
    position: absolute;
    font-size: 13px;
    color: #555;
    margin-left: 97px;
    margin-top: -40px;
    flex: 1;
    text-align: right;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}






.user-menu {
    position: absolute;
    top: 100%;
    right: 10px;
    width: 300px;
    background: #0f1113ee;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 15px;
    color: rgb(255, 255, 255);
    z-index: 1000;
    margin-top: 1px;
    display: none;
}

/* 🔝 HEADER */
.user-header {
    
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #d47c00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    overflow: hidden;
    border: 2px solid #a46000;
}

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

.user-info1 {
    display: flex;
    flex-direction: column;
}

.user-name {
     font-family: 'Saira Stencil', sans-serif;
    font-weight: bold;
    font-size: 20px;
}

.user-email {
     font-family: 'Saira Stencil', sans-serif;
    font-size: 15px;
    color: #aaa;
}

/* 🔻 LINE */
.menu-divider {
    height: 1px;
    background: #515151;
    margin: 12px 0;
}

.menu-divider2 {
    height: 2px;
    background: #515151;
    margin: 14px 0;
}

/* 📌 ITEMS */
.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.menu-item img {
    width: 18px;
}

.menu-item:hover {
    background: rgba(212,124,0,0.15) !important;
}




.avatar-preview-box {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 10px auto;
  border: 2px solid #b55502;
}

.avatar-preview-box:hover {
    border: solid 2px #efae5f;
}


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
















.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    display: none;
    z-index: 1000;
}

.modal-box3 {
    color: rgb(197, 197, 197);
    width: 330px;
     background: linear-gradient(135deg, #333962e3 0%, #222328e1 70%) !important;    
 
    padding: 20px;
    border-radius: 12px;
    position: relative;
    text-align: left;
}

#closeModal {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
}

/* input */
.modal-box3 input {
    width: 100%;
    padding: 10px;
    margin: 6px 0 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
}




.modal3 {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    display: none;
    z-index: 1000;
}


.modal-box3 h2 {
    color: #f47709;
    margin-bottom: 14px;
}





/* social */
.social-btn {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #ffffff;
}

/* forgot */
.forgot {
    font-size: 12px;
    float: right;
    margin-bottom: 10px;
    color: #c77707;
}

/* bottom */
.bottom-text span {
    color: #c77707;
    cursor: pointer;
}



/* button */
.main-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #a76c00e3 0%, #143650f2 90%) !important;    
    color: white;
    border: none;
    border-radius: 6px;
}

.main-btn:hover {
    background: #f8a023
}

/* divider */
.divider {
    text-align: center;
    margin: 15px 0;
    color: rgb(48, 48, 48);
}











/* Spinner - Fırlanan halqa */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Arxa Fonu */
.verify-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(5px);
}

/* Modal Kartı */
.verify-card {
    background: #1a1a22;
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid #ff9f43;
    max-width: 420px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.verify-spinner {
    border: 4px solid rgba(255, 159, 67, 0.1);
    border-top: 4px solid #ff9f43;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

.verify-card h2 { color: #ff9f43; font-size: 24px; margin-bottom: 15px; }
.verify-card p { color: #aaa; line-height: 1.6; font-size: 16px; }
.verify-card b { color: #fff; }

/* Təsdiqləndi yazısı üçün stil */
.success-text { color: #4caf50 !important; font-weight: bold; }









.otp-input {
    width: 100%;
    max-width: 200px;
    padding: 15px;
    background: #2a2a35;
    border: 2px solid #333;
    border-radius: 10px;
    color: white;
    font-size: 28px;
    text-align: center;
    letter-spacing: 8px;
    outline: none;
    margin: 20px 0;
    transition: 0.3s;
}

.otp-input:focus {
    border-color: #ff9f43;
    box-shadow: 0 0 10px rgba(255, 159, 67, 0.2);
}

