@font-face {
  font-family: 'vazir';
  src: url('../fonts/fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2'),
       url('../fonts/fonts/webfonts/Vazirmatn-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: 'vazir';
}



    :root {
        --dark-bg: #000;
        --dark-card: #1a1a2e;
        --dark-accent: #252547;
        --gold: #FFD700;
        --gold-light: #ffed4e;
        --primary: #4361ee;
        --success: #2ecc71;
        --danger: #e74c3c;
        --text-primary: #ffffff;
        --text-secondary: #b8b8d9;
        --border-radius: 12px;
        --transition: all 0.3s ease;
    }

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

    /*body {*/
    /*    background: var(--dark-bg);*/
    /*    color: var(--text-primary);*/
    /*    line-height: 1.6;*/
    /*    overflow-x: hidden;*/
    /*    background-image: */
    /*        radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.03) 0%, transparent 20%),*/
    /*        radial-gradient(circle at 90% 80%, rgba(67, 97, 238, 0.03) 0%, transparent 20%);*/
    /*    text-align: justify;*/
    /*}*/

    .container125-master {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .hero-master {
        position: relative;
        padding: 100px 0 80px;
        text-align: center;
        background: linear-gradient(135deg, rgba(15, 15, 26, 0.9) 0%, rgba(37, 37, 71, 0.7) 100%);
        overflow: hidden;
        border-bottom: 1px solid rgba(255, 215, 0, 0.1);
        margin-top: 80px;
    }

    .hero-master::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" opacity="0.03"><circle cx="50" cy="50" r="40" stroke="%23FFD700" fill="none" /></svg>');
        opacity: 0.1;
    }

    .hero-content-master {
        position: relative;
        z-index: 0;
    }

    .main-title-master {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
        margin-bottom: 20px;
        font-weight: 700;
        letter-spacing: -1px;
        text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }

    .gold-text-master { color: var(--gold); text-shadow: 0 0 15px rgba(255, 215, 0, 0.4); }
    .primary-text-master { color: var(--primary); }
    .success-text-master { color: var(--success); }

    .hero-subtitle-master {
        font-size: 1.2rem;
        color: var(--text-secondary);
        max-width: 700px;
        margin: 0 auto 40px;
        line-height: 1.8;
    }

    .stats-master {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 50px;
        flex-wrap: wrap;
    }

    .stat-item-master {
        background: rgba(26, 26, 46, 0.7);
        padding: 20px;
        border-radius: var(--border-radius);
        min-width: 140px;
        border: 1px solid rgba(255, 215, 0, 0.1);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        transition: var(--transition);
    }

    .stat-item-master:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    }

    .stat-number-master {
        display: block;
        font-size: clamp(1.8rem, 4vw, 2.5rem);
        font-weight: 700;
        color: var(--gold);
        margin-bottom: 8px;
    }

    .stat-label-master {
        color: var(--text-secondary);
        font-size: 0.9rem;
    }

    .subscribe-box-master {
        background: var(--dark-card);
        border-radius: var(--border-radius);
        padding: 30px;
        margin: 60px auto;
        max-width: 800px;
        border: 1px solid rgba(255, 215, 0, 0.15);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        text-align: center;
    }

    .subscribe-box-master h3 {
        color: var(--gold);
        margin-bottom: 15px;
        font-size: 1.5rem;
    }

    .subscribe-box-master p {
        color: var(--text-secondary);
        margin-bottom: 25px;
        line-height: 1.7;
    }

    .subscribe-form-master {
        display: flex;
        gap: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .subscribe-form-master input {
        flex: 1;
        min-width: 250px;
        padding: 15px 20px;
        border-radius: 50px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(15, 15, 26, 0.6);
        color: var(--text-primary);
        font-size: 1rem;
        transition: var(--transition);
    }

    .subscribe-form-master input:focus {
        outline: none;
        border-color: var(--gold);
        box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
    }

    .subscribe-form-master input::placeholder {
        color: rgba(255, 255, 255, 0.4);
    }

    .subscribe-btn-master {
        padding: 15px 30px;
        border-radius: 50px;
        border: none;
        background: linear-gradient(135deg, var(--gold), var(--gold-light));
        color: #000;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    }

    .subscribe-btn-master:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    }

    .signal-table-container125-master {
        margin: 60px 0;
        background: var(--dark-card);
        border-radius: var(--border-radius);
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .signal-table-header125-master {
        padding: 15px 25px;
        background: rgba(255, 215, 0, 0.1);
        border-bottom: 1px solid rgba(255, 215, 0, 0.1);
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .signal-table-header125-master h2 {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--gold);
        margin: 0;
        font-size: 20px;
    }

    .signal-table-master {
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
    }

    .signal-table-master th, .signal-table-master td {
        padding: 12px 15px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .signal-table-master th {
        background-color: rgba(0, 0, 0, 0.2);
        color: var(--gold);
        font-weight: 600;
    }

    .signal-buy-master, .signal-sell-master {
        padding: 6px 12px;
        border-radius: 20px;
        font-weight: 600;
        display: inline-block;
        min-width: 60px;
        color: white;
    }

    .signal-buy-master {
        background: linear-gradient(135deg, var(--success), #25a25a);
    }

    .signal-sell-master {
        background: linear-gradient(135deg, var(--danger), #c0392b);
    }

    .image-upload-btn-master {
        background: linear-gradient(135deg, var(--primary), #3a56e6);
        color: white;
        border: none;
        padding: 8px 16px;
        border-radius: 20px;
        cursor: pointer;
        transition: var(--transition);
        font-size: 0.9rem;
    }

    .image-upload-btn-master:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(67, 97, 238, 0.3);
    }

    .tradingview-chart-container125-master {
        margin: 60px 0;
        background: var(--dark-card);
        border-radius: var(--border-radius);
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .chart-header-master {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 25px;
        background: rgba(37, 37, 71, 0.3);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        flex-wrap: wrap;
        gap: 15px;
    }

    .chart-header-master h3 {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--text-primary);
    }

    .badge-master {
        background: linear-gradient(135deg, var(--gold), var(--gold-light));
        color: #000;
        padding: 4px 10px;
        border-radius: 20px;
        font-size: 0.7rem;
        font-weight: 600;
    }

    .symbol-selector-master select {
        padding: 8px 15px;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(15, 15, 26, 0.6);
        color: var(--text-primary);
        cursor: pointer;
    }

    #tradingview_chart-master {
        height: 450px;
        width: 100%;
    }

    .dropdown-master {
        position: relative;
    }

    .dropdown-toggle-master {
        display: flex;
        align-items: center;
    }

    .dropdown-toggle-master .bi-chevron-down {
        margin-right: 5px;
        font-size: 0.8rem;
        transition: transform 0.3s ease;
    }

    .dropdown-master:hover .dropdown-toggle-master .bi-chevron-down {
        transform: rotate(180deg);
    }

    .dropdown-menu-master {
        position: absolute;
        top: 100%;
        right: 0;
        background: linear-gradient(135deg, #0c1120 0%, #131b2e 100%);
        border: 1px solid #1e2a4a;
        border-radius: 8px;
        padding: 10px 0;
        min-width: 220px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
        z-index: 1000;
        list-style: none;
    }

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

    .dropdown-menu-master li {
        margin: 0;
    }

    .dropdown-menu-master a {
        padding: 10px 20px;
        color: #b0b0b0;
        text-decoration: none;
        display: flex;
        align-items: center;
        transition: all 0.3s ease;
        border-radius: 0;
        font-size: 0.9rem;
    }

    .dropdown-menu-master a:hover {
        color: #00b4ff;
        background: rgba(255, 255, 255, 0.05);
        padding-right: 25px;
    }

    .dropdown-menu-master a i {
        margin-left: 8px;
        font-size: 1rem;
    }

    .mobile-dropdown-master {
        position: relative;
    }

    .mobile-dropdown-toggle-master {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 4px;
    }

    .mobile-dropdown-toggle-master .bi-chevron-down {
        transition: transform 0.3s ease;
    }

    .mobile-dropdown-master.active .mobile-dropdown-toggle-master .bi-chevron-down {
        transform: rotate(180deg);
    }

    .mobile-dropdown-menu-master {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: rgba(255, 255, 255, 0.05);
        margin: 10px 0;
        border-radius: 5px;
        list-style: none;
        padding-left: 0;
    }

    .mobile-dropdown-master.active .mobile-dropdown-menu-master {
        max-height: 400px;
    }

    .mobile-dropdown-menu-master li {
        margin: 0;
    }

    .mobile-dropdown-menu-master a {
        padding: 12px 20px 12px 35px;
        color: #b0b0b0;
        text-decoration: none;
        display: flex;
        align-items: center;
        transition: all 0.3s ease;
        font-size: 0.9rem;
        border-right: 2px solid transparent;
    }

    .mobile-dropdown-menu-master a:hover {
        color: #00b4ff;
        background: rgba(255, 255, 255, 0.05);
        border-right-color: #00b4ff;
    }

    .mobile-dropdown-menu-master a i {
        margin-left: 10px;
        font-size: 1rem;
        opacity: 0.7;
    }

    .modal-master {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(5px);
    }

    .modal-content-master {
        background-color: var(--dark-card);
        margin: 5% auto;
        padding: 25px;
        border-radius: var(--border-radius);
        width: 90%;
        max-width: 800px;
        position: relative;
        border: 1px solid rgba(255, 215, 0, 0.2);
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
        animation: modalFade 0.3s;
    }

    @keyframes modalFade {
        from { opacity: 0; transform: translateY(-50px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .close-master {
        color: #aaa;
        float: left;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
        transition: var(--transition);
    }

    .close-master:hover {
        color: var(--gold);
    }

    .trade-signal-section-master, .trade-signal-section2-master {
        background: var(--dark-card);
        border-radius: var(--border-radius);
        padding: 30px;
        margin: 60px 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .trade-signal-section2-master h2 {
        color: var(--gold);
        margin-bottom: 25px;
        text-align: center;
        font-size: 1.8rem;
    }

    .results-gallery-master {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
        margin: 30px 0;
    }

    .signal-result-card-master {
        background: rgba(26, 26, 46, 0.7);
        border-radius: var(--border-radius);
        overflow: hidden;
        border: 1px solid rgba(255, 215, 0, 0.1);
        transition: var(--transition);
        cursor: pointer;
    }

    .signal-result-card-master:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    }

    .result-header-master {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        background: rgba(37, 37, 71, 0.3);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .result-header-master h4 {
        margin: 0;
        color: var(--gold);
    }

    .result-image-master img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .result-details-master {
        padding: 15px;
    }

    .detail-item-master {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
        padding-bottom: 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .detail-item-master:last-child {
        margin-bottom: 0;
        border-bottom: none;
    }

    .detail-item-master .label-master {
        color: var(--text-secondary);
    }

    .detail-item-master .value-master {
        font-weight: 600;
    }

    .img100-master {
        width: 100%;
        max-width: 800px;
        display: block;
        margin: 20px auto;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }

    .image-modal-master {
        display: none;
        position: fixed;
        z-index: 1001;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        animation: modalFade 0.3s;
    }

    .image-modal-content-master {
        position: relative;
        margin: auto;
        display: block;
        width: 90%;
        max-width: 1200px;
        max-height: 90vh;
        top: 50%;
        transform: translateY(-50%);
        border-radius: var(--border-radius);
        box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
        animation: zoomIn 0.3s ease-out;
    }

    @keyframes zoomIn {
        from { transform: scale(0.8) translateY(-50%); opacity: 0; }
        to { transform: scale(1) translateY(-50%); opacity: 1; }
    }

    .image-modal-close-master {
        position: absolute;
        top: 15px;
        right: 15px;
        color: white;
        font-size: 35px;
        font-weight: bold;
        cursor: pointer;
        z-index: 1002;
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }

    .image-modal-close-master:hover {
        background: rgba(255, 215, 0, 0.8);
        color: black;
    }

    header {
        background-color: #000;
        border-bottom: 1px solid #1e2a4a;
        padding: 15px 0;
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .container-master {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .header-content-master {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        margin-bottom: 0 !important;
    }
.logo-master {
    margin-bottom: 0 !important;
}


 
    .nav-menu-master {
        display: flex;
        list-style: none;
        margin: 0 20px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
    }

    .nav-menu-master li {
        margin: 0 5px;
    }

    .nav-menu-master a {
        color: #b0b0b0;
        text-decoration: none;
        padding: 10px 15px;
        border-radius: 5px;
        transition: all 0.3s ease;
        font-size: 0.95rem;
        font-weight: 500;
        display: flex;
        align-items: center;
        white-space: nowrap;
    }

    .nav-menu-master a i {
        margin-left: 5px;
        font-size: 1.1rem;
    }

    .nav-menu-master a:hover {
        color: #00b4ff;
        background: rgba(255, 255, 255, 0.05);
    }

    .nav-menu-master a.active {
        color: #fff;
        background: linear-gradient(135deg, #ff6b35, #00b4ff);
        box-shadow: 0 4px 10px rgba(0, 180, 255, 0.2);
    }

    .auth-buttons-master {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .auth-buttons-master a {
        color: #b0b0b0;
        text-decoration: none;
        padding: 8px 20px;
        border-radius: 5px;
        transition: all 0.3s ease;
        font-size: 0.9rem;
        margin-right: 10px;
        white-space: nowrap;
    }

    .auth-buttons-master .login-master {
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .auth-buttons-master .login-master:hover {
        background: rgba(255, 255, 255, 0.05);
        color: #00b4ff;
    }

    .auth-buttons-master .register-master {
        background: linear-gradient(135deg, #ff6b35, #00b4ff);
        color: #fff;
        box-shadow: 0 4px 10px rgba(0, 180, 255, 0.2);
    }

    .auth-buttons-master .register-master:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(0, 180, 255, 0.3);
    }

    .mobile-menu-btn-master {
        display: none;
        background: none;
        border: none;
        color: #b0b0b0;
        font-size: 1.5rem;
        cursor: pointer;
        flex-shrink: 0;
    }

    .mobile-menu-master {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: linear-gradient(135deg, #0c1120 0%, #131b2e 100%);
        border-top: 1px solid #1e2a4a;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .mobile-menu-master.active {
        display: block;
    }

    .mobile-nav-menu-master {
        list-style: none;
        margin-bottom: 20px;
        padding: 0;
    }

    .mobile-nav-menu-master li {
        margin: 5px 0;
    }

    .mobile-nav-menu-master a {
        padding: 12px 15px;
        display: block;
        border-radius: 5px;
        color: #b0b0b0;
        text-decoration: none;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
    }

    .mobile-nav-menu-master a i {
        margin-left: 8px;
    }

    .mobile-nav-menu-master a:hover,
    .mobile-nav-menu-master a.active {
        color: #fff;
        background: linear-gradient(135deg, #ff6b35, #00b4ff);
    }

    .mobile-auth-buttons-master {
        display: flex;
        justify-content: space-between;
    }

    .mobile-auth-buttons-master a {
        flex: 1;
        text-align: center;
        margin: 0 5px;
        padding: 10px;
        border-radius: 5px;
        color: #b0b0b0;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .mobile-auth-buttons-master .login-master {
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .mobile-auth-buttons-master .register-master {
        background: linear-gradient(135deg, #ff6b35, #00b4ff);
        color: #fff;
    }

    footer {
        background-color: transparent;
        border-top: 1px solid #1e2a4a;
        padding: 60px 0 20px;
        margin-top: 80px;
        position: relative;
        overflow: hidden;
    }

    .footer-content-master {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        margin-bottom: 40px;
    }

    .footer-column-master {
        flex: 1;
        min-width: 250px;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .footer-column-master h3 {
        color: #fff;
        font-size: 1.3rem;
        margin-bottom: 20px;
        position: relative;
        padding-bottom: 10px;
    }
    
     
    .footer-column-master p {
        color: #fff;
    }

    .footer-column-master h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 40px;
        height: 2px;
        background: linear-gradient(90deg, #ff6b35, #00b4ff);
    }
.enamad-placeholder-master {
     display: flex;
        flex-wrap: wrap;
        justify-content: start; 
}
    .social-links-master {
        display: flex;
        margin-top: 20px;
    }

    .social-links-master a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 37px;
        height: 37px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 50%;
        margin-left: 10px;
        color: #b0b0b0;
        text-decoration: none;
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .social-links-master a:hover {
        background: linear-gradient(135deg, #ff6b35, #00b4ff);
        color: #fff;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 180, 255, 0.3);
    }

    .footer-links-master {
        list-style: none;
        padding: 0;
    }

    .footer-links-master a {
        color: #b0b0b0;
        text-decoration: none;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
    }

    .footer-links-master a:hover {
        color: #00b4ff;
        padding-right: 8px;
    }

    .copyright-master {
        text-align: center;
        padding-top: 25px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        color: #888;
        font-size: 0.9rem;
    }

    @media (max-width: 1024px) {
        .nav-menu-master {
            margin: 0 10px;
        }
        
        .nav-menu-master a {
            padding: 8px 12px;
            font-size: 0.9rem;
        }
    }

    @media (max-width: 768px) {
        .hero-master {
            margin-top: 60px;
            padding: 80px 0 60px;
        }

        .main-title-master {
            font-size: 2.5rem;
        }

        .stats-master {
            gap: 15px;
        }

        .stat-item-master {
            min-width: 120px;
            padding: 15px;
        }

        .subscribe-form-master {
            flex-direction: column;
        }

        .subscribe-form-master input {
            width: 100%;
        }

        .chart-header-master {
            flex-direction: column;
            align-items: flex-start;
        }

        .nav-menu-master, .auth-buttons-master {
            display: none;
        }

        .mobile-menu-btn-master {
            display: block;
        }

        .footer-column-master {
            flex: 100%;
        }

        .footer-content-master {
            flex-direction: column;
        }
    }

    @media (max-width: 480px) {
        .main-title-master {
            font-size: 2rem;
        }

        .hero-subtitle-master {
            font-size: 1rem;
        }

        .stat-item-master {
            min-width: 100px;
            padding: 12px;
        }

        .stat-number-master {
            font-size: 1.5rem;
        }
    }

    /************************ماشین حساب***************/
    .calculator-header-buttons-master {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-left: 12px;
    }
    
    .forex-calculator-header-btn-master {
        background: rgba(0, 180, 255, 0.1);
        color: #00b4ff;
        border: 1px solid rgba(0, 180, 255, 0.3);
        padding: 10px 5px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 0.85rem;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        white-space: nowrap;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .forex-calculator-header-btn-master:hover {
        background: rgba(0, 180, 255, 0.2);
        border-color: rgba(0, 180, 255, 0.5);
        transform: translateY(-1px);
    }
    
    .calculator-close-header-btn-master {
        background: rgba(220, 53, 69, 0.1);
        color: #dc3545;
        border: 1px solid rgba(220, 53, 69, 0.3);
        padding: 10px 5px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 0.85rem;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        white-space: nowrap;
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    .calculator-close-header-btn-master:hover {
        background: rgba(220, 53, 69, 0.2);
        border-color: rgba(220, 53, 69, 0.5);
        transform: translateY(-1px);
    }

    .forex-calculator-popup-master {
        position: fixed;
        top: 70px;
        left: 20px;
        width: 420px;
        max-height: 85vh;
        background: #161616;
        border-radius: 15px;
        border: 1px solid #2e2e2e;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
        z-index: 10000;
        display: none;
        overflow: hidden;
        animation: slideInLeft 0.3s ease;
    }

    @keyframes slideInLeft {
        from {
            transform: translateX(-100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    .forex-calculator-popup-master.active {
        display: flex;
        flex-direction: column;
    }

    @media (min-width: 769px) {
        .forex-calculator-popup-master {
            max-height: 90vh;
            top: 80px;
        }
        
        .calculator-forms-container-master {
            max-height: calc(90vh - 220px);
        }
        
        .results-container-master {
            max-height: 250px;
        }
    }

    .forex-calculator-container-master {
        max-width: 100%;
        background: #111827;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        border: 1px solid #1e293b;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .calculator-content-master {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .calculator-header-master {
        background: linear-gradient(135deg, #065f46 0%, #047857 100%);
        padding: 20px;
        text-align: center;
        border-bottom: 1px solid #1e293b;
    }

    .calculator-header-master h2 {
        color: #fff;
        font-size: 1.5rem;
        margin-bottom: 5px;
    }

    .calculator-header-master p {
        color: #d1fae5;
        font-size: 0.9rem;
    }

    .calculator-tabs-master {
        display: flex;
        background: #1e293b;
        border-bottom: 1px solid #334155;
    }

    .calculator-tab-master {
        flex: 1;
        padding: 12px;
        text-align: center;
        background: #1e293b;
        color: #94a3b8;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 0.9rem;
    }

    .calculator-tab-master.active {
        background: #065f46;
        color: #fff;
        box-shadow: inset 0 -3px 0 #10b981;
    }

    .calculator-tab-master:hover:not(.active) {
        background: #334155;
        color: #e2e8f0;
    }

    .calculator-forms-container-master {
        flex: 1;
        overflow-y: auto;
        max-height: calc(85vh - 200px);
        padding: 5px;
    }

    .calculator-forms-container-master::-webkit-scrollbar {
        width: 6px;
    }

    .calculator-forms-container-master::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
    }

    .calculator-forms-container-master::-webkit-scrollbar-thumb {
        background: #10b981;
        border-radius: 3px;
    }

    .calculator-forms-container-master::-webkit-scrollbar-thumb:hover {
        background: #34d399;
    }

    .calculator-form-master {
        padding: 15px;
        display: none;
        animation: fadeIn 0.5s ease;
    }

    .calculator-form-master.active {
        display: block;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .form-group-master {
        margin-bottom: 15px;
    }

    .form-group-master label {
        display: block;
        margin-bottom: 8px;
        color: #cbd5e1;
        font-size: 0.9rem;
    }

    .form-control-master {
        width: 100%;
        padding: 12px 15px;
        background: #1e293b;
        border: 1px solid #334155;
        border-radius: 8px;
        color: #f8fafc;
        font-size: 1rem;
        transition: all 0.3s ease;
    }

    .form-control-master:focus {
        outline: none;
        border-color: #10b981;
        box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    }

    .form-row-master {
        display: flex;
        gap: 15px;
    }

    .form-row-master .form-group-master {
        flex: 1;
    }

    .calculate-btn-master {
        width: 100%;
        padding: 14px;
        background: linear-gradient(135deg, #065f46 0%, #10b981 100%);
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-top: 10px;
    }

    .calculate-btn-master:hover {
        background: linear-gradient(135deg, #047857 0%, #34d399 100%);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
    }

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

    .results-container-master {
        margin-top: 15px;
        padding: 15px;
        background: rgba(6, 95, 70, 0.1);
        border-radius: 8px;
        border: 1px solid #065f46;
        display: none;
        max-height: 200px;
        overflow-y: auto;
    }

    .results-container-master.active {
        display: block;
        animation: fadeIn 0.5s ease;
    }

    .results-container-master::-webkit-scrollbar {
        width: 4px;
    }

    .results-container-master::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 2px;
    }

    .results-container-master::-webkit-scrollbar-thumb {
        background: #10b981;
        border-radius: 2px;
    }

    .results-title-master {
        color: #10b981;
        font-size: 1.1rem;
        margin-bottom: 12px;
        text-align: center;
        font-weight: 600;
    }

    .result-item-master {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid #1e293b;
    }

    .result-item-master:last-child {
        border-bottom: none;
    }

    .result-label-master {
        color: #cbd5e1;
    }

    .result-value-master {
        color: #10b981;
        font-weight: 600;
    }

    .negative-master {
        color: #ef4444;
    }

    .info-text-master {
        font-size: 0.8rem;
        color: #94a3b8;
        margin-top: 5px;
    }

    @media (max-width: 768px) {
        .calculator-header-buttons-master {
            flex-direction: column;
            gap: 8px;
            width: 100%;
            margin: 10px 0;
        }
        
        .forex-calculator-header-btn-master,
        .calculator-close-header-btn-master {
            width: 70%;
            justify-content: center;
            margin: 0;
        }

        .forex-calculator-popup-master {
            width: 98vw;
            left: 1vw;
            right: 1vw;
            top: 80px;
            max-height: 85vh;
        }
        
        .calculator-forms-container-master {
            max-height: calc(85vh - 170px);
            padding: 3px;
        }
        
        .calculator-form-master {
            padding: 8px;
        }
        
        .calculator-header-master {
            padding: 15px 10px;
        }
        
        .calculator-header-master h2 {
            font-size: 1.4rem;
            margin-bottom: 3px;
        }
        
        .calculator-header-master p {
            font-size: 0.85rem;
        }
        
        .form-row-master {
            flex-direction: column;
            gap: 10px;
        }
        
        .calculator-tabs-master {
            flex-wrap: wrap;
        }
        
        .calculator-tab-master {
            flex: 1 0 33%;
            font-size: 0.8rem;
            padding: 10px 5px;
        }
        
        .form-control-master {
            padding: 10px 12px;
        }
        
        .results-container-master {
            margin-top: 10px;
            padding: 12px;
            max-height: 180px;
        }
    }

    @media (max-width: 480px) {
        .forex-calculator-popup-master {
            width: 99vw;
            left: 0.5vw;
            right: 0.5vw;
            top: 90px;
            max-height: 82vh;
            border-radius: 12px;
        }
        
        .calculator-forms-container-master {
            max-height: calc(82vh - 160px);
            padding: 2px;
        }
        
        .calculator-form-master {
            padding: 6px;
        }
        
        .calculator-header-master {
            padding: 12px 8px;
        }
        
        .calculator-header-master h2 {
            font-size: 1.3rem;
        }
        
        .calculator-header-master p {
            font-size: 0.8rem;
        }
        
        .calculator-tab-master {
            flex: 1 0 50%;
            font-size: 0.75rem;
            padding: 8px 3px;
        }
        
        .form-control-master {
            padding: 10px 12px;
            font-size: 0.9rem;
        }
        
        .calculate-btn-master {
            padding: 12px;
            font-size: 0.9rem;
            margin-top: 8px;
        }
        
        .form-group-master {
            margin-bottom: 10px;
        }
        
        .form-group-master label {
            font-size: 0.85rem;
            margin-bottom: 6px;
        }
        
        .info-text-master {
            font-size: 0.75rem;
        }
        
        .results-title-master {
            font-size: 1rem;
            margin-bottom: 10px;
        }
        
        .result-item-master {
            padding: 6px 0;
            font-size: 0.85rem;
        }
        
        .form-row-master {
            gap: 8px;
        }
    }

    body.calculator-open-master {
        overflow: hidden;
    }

    @media (max-width: 768px) and (orientation: landscape) {
        .forex-calculator-popup-master {
            max-height: 90vh;
            top: 60px;
        }
        
        .calculator-forms-container-master {
            max-height: calc(90vh - 150px);
        }
    }




    /* استایل دکمه بازگشت */
    /*.form-header {*/
    /*    background: #000;*/
    /*    backdrop-filter: blur(15px);*/
        /*border-radius: 20px;*/
    /*    padding: 25px;*/
    /*    margin: 40px 30px;*/
    /*    top: 100px;*/
    /*    border: 1px solid rgba(255, 255, 255, 0.2);*/
    /*}*/

    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .page-title {
        color: #00ff00;
        font-size: 1.8rem;
        margin-bottom: 5px;
    }

    .page-subtitle {
        color: #b0b0b0;
        font-size: 1rem;
    }

    .back-btn {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        padding: 10px 20px;
        border-radius: 10px;
        text-decoration: none;
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
    }

    .back-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }

    /* استایل‌های اصلی */
    .multi-timeframe-section {
        background: #000;
        padding: 20px 20px;
        margin-top: 1px;
        position: relative;
        overflow: hidden;
    }
    
    .timeframe-analysis-container {
        max-width: 1600px;
        margin: 0 auto;
        position: relative;
    }
    
    .timeframe-tabs {
        display: flex;
        overflow-x: auto;
        gap: 5px;
        margin-bottom: 3px;
        padding-bottom: 1px;
        padding-top: 1px;
        /*border-bottom: 1px solid #333;*/
    }
    
    .timeframe-tab {
        padding: 12px 20px;
        background: #1e1e1e;
        border: 1px solid #333;
        border-radius: 10px 10px 0 0;
        color: #b0b0b0;
        cursor: pointer;
        transition: all 0.3s ease;
        white-space: nowrap;
        font-size: 0.9rem;
    }
    
    .timeframe-tab.active {
        background: linear-gradient(135deg, #00ff00, #01FFBF);
        color: #000;
        border-color: #00ff00;
        font-weight: bold;
    }
    
    .timeframe-content {
        display: none;
        background: #000;
        border-radius: 15px;
        border: none;
        padding: 30px;
        margin-bottom: 30px;
        position: relative;
    }
    
    .timeframe-content.active {
        display: block;
        animation: fadeIn 0.5s ease;
    }

    /* استایل نمودار TradingView */
    .tradingview-chart {
        width: 100%;
        height: 600px;
        background: #0a0a0a;
        border-radius: 12px;
        margin: 20px 0;
        border: 2px solid #333;
        position: relative;
        overflow: hidden;
    }

    .chart-container {
        position: relative;
        width: 100%;
        height: 100%;
    }

    /* استایل چک‌لیست تعاملی */
    .interactive-checklist {
        background: #1a1a1a;
        border-radius: 15px;
        padding: 30px;
        margin: 30px 0;
        border: 2px solid #333;
    }

    .checklist-header {
        text-align: center;
        margin-bottom: 30px;
    }

    .checklist-title {
        color: #00ff00;
        font-size: 1.8rem;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .checklist-sections {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 25px;
        margin-bottom: 30px;
    }

    .checklist-section {
        background: rgba(255, 255, 255, 0.05);
        padding: 25px;
        border-radius: 12px;
        border: 1px solid #333;
        transition: all 0.3s ease;
    }

    .checklist-section:hover {
        border-color: #00ff00;
        transform: translateY(-2px);
        box-shadow: 0 5px 20px rgba(0, 255, 0, 0.1);
    }

    .section-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid #333;
    }

    .section-icon {
        color: #00ff00;
        font-size: 1.3rem;
    }

    .section-title {
        color: #fff;
        font-size: 1.2rem;
        font-weight: bold;
    }

    .checklist-items {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .checklist-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 12px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 8px;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .checklist-item:hover {
        background: rgba(0, 255, 0, 0.1);
    }

    .checklist-item input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin-top: 2px;
        accent-color: #00ff00;
        cursor: pointer;
    }

    .item-label {
        color: #b0b0b0;
        line-height: 1.5;
        flex: 1;
        cursor: pointer;
    }

    .item-score {
        background: #333;
        color: #fff;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 0.8rem;
        font-weight: bold;
        min-width: 40px;
        text-align: center;
    }

    /* استایل‌های امتیازدهی */
    .scoring-section {
        background: #101010;
        padding: 40px;
        border-radius: 20px;
        border: 1px solid #333;
        margin-top: 40px;
    }

    .scoring-container {
        max-width: 1000px;
        margin: 0 auto;
    }

    .score-cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        margin-bottom: 30px;
    }

    .score-card {
        background: linear-gradient(135deg, #1a1a2e, #16213e);
        padding: 25px;
        border-radius: 15px;
        text-align: center;
        border: 2px solid #333;
        transition: all 0.3s ease;
    }

    .score-card:hover {
        border-color: #00ff00;
        transform: translateY(-5px);
    }

    .score-card-title {
        color: #b0b0b0;
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .score-card-value {
        color: #00ff00;
        font-size: 2rem;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .score-card-total {
        color: #666;
        font-size: 0.9rem;
    }

    .final-score {
        text-align: center;
        margin-top: 30px;
    }

    .final-score-card {
        background: linear-gradient(135deg, #000, #000);
        padding: 40px;
        border-radius: 20px;
        display: inline-block;
        min-width: 300px;
        color: #000;
    }

    .final-score-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        font-weight: bold;
    }

    .final-score-value {
        font-size: 3rem;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .final-score-total {
        font-size: 1.2rem;
        opacity: 0.8;
    }

    .score-evaluation {
        margin-top: 15px;
        font-size: 1.1rem;
        font-weight: bold;
    }

    /* استایل‌های وضعیت */
    .status-excellent { color: #00ff00; }
    .status-good { color: #aaff00; }
    .status-moderate { color: #ffff00; }
    .status-poor { color: #ffaa00; }
    .status-very-poor { color: #ff4444; }

    /* استایل‌های توضیحات */
    .scoring-explanation {
        background: rgba(0, 255, 0, 0.1);
        padding: 20px;
        border-radius: 10px;
        margin-bottom: 25px;
        border: 1px solid #00ff00;
    }

    .explanation-title {
        color: #00ff00;
        font-weight: bold;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .explanation-text {
        color: #b0b0b0;
        line-height: 1.6;
        font-size: 0.9rem;
    }

    /* استایل بخش نتیجه‌گیری کلی */
    .conclusion-section {
        background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 50%, #16213e 100%);
        padding: 60px 40px;
        margin-top: 50px;
        border-radius: 20px;
        border: 2px solid #333;
        position: relative;
        overflow: hidden;
    }
    
    .conclusion-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(0,255,0,0.05)"/></svg>');
        background-size: cover;
    }
    
    .conclusion-container {
        max-width: 1200px;
        margin: 0 auto;
        position: relative;
    }
    
    .conclusion-header {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .conclusion-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
        background: linear-gradient(135deg, #00ff00, #01FFBF);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .conclusion-subtitle {
        color: #b0b0b0;
        font-size: 1.2rem;
        max-width: 600px;
        margin: 0 auto;
        line-height: 1.6;
    }
    
    .conclusion-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .conclusion-reasons, .conclusion-recommendation {
        background: rgba(255, 255, 255, 0.05);
        padding: 30px;
        border-radius: 15px;
        border: 1px solid #333;
    }
    
    .conclusion-reasons h3, .conclusion-recommendation h3 {
        color: #fff;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1.4rem;
    }
    
    .conclusion-reasons h3 i, .conclusion-recommendation h3 i {
        color: #00ff00;
    }
    
    .reason-list {
        list-style: none;
        padding: 0;
    }
    
    .reason-item {
        display: flex;
        align-items: flex-start;
        margin-bottom: 15px;
        color: #b0b0b0;
        line-height: 1.6;
    }
    
    .reason-item i {
        color: #00ff00;
        margin-left: 10px;
        margin-top: 5px;
        flex-shrink: 0;
    }
    
    .recommendation-details {
        background: rgba(0, 255, 0, 0.1);
        padding: 25px;
        border-radius: 12px;
        margin-top: 20px;
        border: 1px solid rgba(0, 255, 0, 0.3);
    }
    
    .recommendation-action {
        text-align: center;
        font-size: 1.6rem;
        font-weight: bold;
        margin-bottom: 20px;
        color: #00ff00;
    }
    
    .recommendation-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin-top: 20px;
    }
    
    .recommendation-stat {
        text-align: center;
        padding: 15px;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 10px;
    }
    
    .recommendation-stat-value {
        display: block;
        font-size: 1.5rem;
        font-weight: bold;
        color: #00ff00;
        margin-bottom: 5px;
    }
    
    .recommendation-stat-label {
        color: #b0b0b0;
        font-size: 0.9rem;
    }
    
    .conclusion-actions {
        text-align: center;
        margin-top: 30px;
    }
    
    .conclusion-btn {
        background: linear-gradient(135deg, #00ff00, #01FFBF);
        color: #000;
        border: none;
        padding: 15px 30px;
        border-radius: 10px;
        font-size: 1.1rem;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s ease;
        margin: 0 10px;
    }
    
    .conclusion-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0, 255, 0, 0.3);
    }

    /* استایل بخش تصویر و توضیحات */
    .timeframe-image-section {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .timeframe-image {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
        border: 2px solid #333;
        box-shadow: 0 8px 25px rgba(0, 255, 0, 0.2);
        transition: all 0.3s ease;
    }
    
    .timeframe-image:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 35px rgba(0, 255, 0, 0.3);
        border-color: #00ff00;
    }
    
  
    
    .caption-title {
        color: #00ff00;
        font-size: 1.2rem;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        gap: 10px;
        justify-content: flex-start;
    }
    
    .caption-text {
        color: #b0b0b0;
        line-height: 1.8;
        font-size: 1rem;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    /* رسپانسیو */
    @media (max-width: 1024px) {
        .tradingview-chart {
            height: 500px;
        }
        
        .checklist-sections {
            grid-template-columns: 1fr;
        }
        
        .conclusion-content {
            grid-template-columns: 1fr;
            gap: 30px;
        }
    }

    @media (max-width: 768px) {
        .tradingview-chart {
            height: 400px;
        }
        
        .score-cards {
            grid-template-columns: repeat(2, 1fr);
        }
        
        .checklist-section {
            padding: 20px;
        }
        
        .final-score-card {
            min-width: 300px;
            padding: 30px 20px;
        }
        
        .conclusion-section {
            padding: 40px 20px;
        }
        
        .conclusion-title {
            font-size: 2rem;
        }
        
        .recommendation-stats {
            grid-template-columns: 1fr;
        }
        
       
        .caption-title {
            font-size: 1.1rem;
        }
    }

    @media (max-width: 480px) {
        .tradingview-chart {
            height: 300px;
        }
        
        .timeframe-content {
            padding: 20px;
        }
        
        .score-cards {
            grid-template-columns: 1fr;
        }
        
        .conclusion-title {
            font-size: 1.8rem;
        }
        
        .timeframe-image-section {
            margin-bottom: 20px;
        }
    }
    /* استایل‌های ضروری برای نمودارهای TradingView */
.tradingview-widget-container {
    width: 100%;
    height: 500px;
    position: relative;
    border: 1px solid #374151;
    border-radius: 8px;
    overflow: hidden;
}

.tradingview-widget-container > div,
.tradingview-widget-container iframe {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    border: none !important;
}

/* اطمینان از نمایش صحیح در تمام تایم‌فریم‌ها */
#tradingview_monthly,
#tradingview_weekly, 
#tradingview_daily,
#tradingview_h4,
#tradingview_h1,
#tradingview_m15,
#tradingview_m5,
#tradingview_m1 {
    width: 100%;
    height: 500px;
    min-height: 400px;
}

/* استایل برای حالت لودینگ */
.tradingview-loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
    background: #1e293b;
    color: #94a3b8;
    font-size: 16px;
    border-radius: 8px;
    border: 1px dashed #475569;
}

.tradingview-loading-state::before {
    content: "📊 در حال بارگذاری نمودار...";
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
/* راه‌حل جایگزین با margin منفی */
.tradingview-widget-container {
    width: 100%;
    height: calc(100% + 1px); /* اضافه کردن 80px به ارتفاع */
    position: relative;
    margin-bottom: -1px; /* جبران فضای اضافی */
}

.tradingview-widget-container iframe {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
}

/* استایل بخش آپلود تصویر */
.image-upload-container {
    margin-top: 15px;
    text-align: center;
    padding: 15px;
    background: rgba(0, 255, 0, 0.05);
    border-radius: 10px;
    border: 1px dashed #00ff00;
}

.upload-btn {
    display: inline-block;
    background: linear-gradient(135deg, #00ff00, #01FFBF);
    color: #000;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
}

.upload-btn:hover {
    background: linear-gradient(135deg, #00ff88, #00ffaa);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.3);
}

.upload-btn i {
    margin-left: 8px;
}

.upload-status {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    display: none;
}

.upload-status.success {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    border: 1px solid #00ff00;
    display: block;
}

.upload-status.error {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4444;
    border: 1px solid #ff4444;
    display: block;
}

.upload-status.loading {
    background: rgba(255, 255, 0, 0.1);
    color: #ffff00;
    border: 1px solid #ffff00;
    display: block;
}

/* برای نمایش پیش‌نمایش تصویر */
.image-preview {
    margin-top: 15px;
    display: none;
}

.image-preview img {
    max-width: 300px;
    max-height: 200px;
    border-radius: 8px;
    border: 2px solid #00ff00;
}

/* استایل‌های بخش امتیازدهی */
.section-score {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #333;
    text-align: center;
}

.score-label {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.score-value {
    color: #00ff00;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 5px;
    font-family: 'Courier New', monospace;
}

.score-total {
    color: #666;
    font-size: 0.9rem;
}

/* استایل‌های پیشرفته برای چک‌لیست */
.checklist-item {
    position: relative;
    transition: all 0.3s ease;
}

/*.checklist-item:hover {*/
/*    transform: translateX(5px);*/
/*}*/

.checklist-item input[type="checkbox"]:checked + .item-label {
    color: #00ff00;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.checklist-item input[type="checkbox"]:checked ~ .item-score {
    background: linear-gradient(135deg, #00ff00, #01FFBF);
    color: #000;
    font-weight: bold;
    transform: scale(1.1);
}

/* انیمیشن برای امتیاز */
@keyframes pulseScore {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.score-updated {
    animation: pulseScore 0.5s ease;
}

/* استایل برای امتیازهای بالا */
.high-score {
    color: #00ff00 !important;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.medium-score {
    color: #ffff00 !important;
}

.low-score {
    color: #ff4444 !important;
}

/* رسپانسیو برای چک‌لیست */
@media (max-width: 1024px) {
    .checklist-sections {
        grid-template-columns: 1fr;
    }
    
    .checklist-section {
        max-height: 400px;
        overflow-y: auto;
    }
}

@media (max-width: 768px) {
    .score-cards {
        grid-template-columns: 1fr;
    }
    
    .checklist-item {
        padding: 10px;
    }
    
    .item-score {
        font-size: 0.8rem;
        min-width: 35px;
    }
}

@media (max-width: 480px) {
    .checklist-header {
        padding: 15px;
    }
    
    .checklist-title {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
}
/* بهبود رنگ‌بندی بخش امتیازدهی */
.score-card {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.final-score-card {
    background: #000;
    color: white !important;
    /*text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;*/
}

/* بهبود کنتراست متن */
.score-card-title, .score-card-total {
    color: #e0e0e0 !important;
}

.final-score-title, .final-score-total {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* بهبود ظاهر بخش امتیاز */
.section-score {
    padding: 15px !important;
    margin-top: 20px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.score-value {
    font-size: 1.8rem !important;
    font-weight: bold !important;
    margin: 0 10px !important;
}


/* استایل‌های جدید برای بخش اندیکاتورها */
.indicators-section {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #333;
    margin: 30px 0;
}

.indicators-title {
    color: #00ff00;
    font-size: 1.3rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.indicator-card {
    background: linear-gradient(145deg, #1a1a1a, #222222);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.indicator-card:hover {
    transform: translateY(-5px);
    border-color: #00ff00;
    box-shadow: 0 10px 25px rgba(0, 255, 0, 0.15);
}

.indicator-card[data-indicator="macd"] {
    border-top: 3px solid #FF6B6B;
}

.indicator-card[data-indicator="rsi"] {
    border-top: 3px solid #4ECDC4;
}

.indicator-card[data-indicator="stoch"] {
    border-top: 3px solid #FFD166;
}

.indicator-card[data-indicator="ma"] {
    border-top: 3px solid #06D6A0;
}

.indicator-card[data-indicator="bb"] {
    border-top: 3px solid #118AB2;
}

.indicator-card[data-indicator="adx"] {
    border-top: 3px solid #EF476F;
}

.indicator-card[data-indicator="cci"] {
    border-top: 3px solid #9D4EDD;
}

.indicator-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.indicator-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
}

.indicator-icon i {
    font-size: 1.2rem;
    color: #00ff00;
}

.indicator-card[data-indicator="macd"] .indicator-icon i { color: #FF6B6B; }
.indicator-card[data-indicator="rsi"] .indicator-icon i { color: #4ECDC4; }
.indicator-card[data-indicator="stoch"] .indicator-icon i { color: #FFD166; }
.indicator-card[data-indicator="ma"] .indicator-icon i { color: #06D6A0; }
.indicator-card[data-indicator="bb"] .indicator-icon i { color: #118AB2; }
.indicator-card[data-indicator="adx"] .indicator-icon i { color: #EF476F; }
.indicator-card[data-indicator="cci"] .indicator-icon i { color: #9D4EDD; }

.indicator-name {
    flex: 1;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
}

.indicator-score {
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    min-width: 60px;
    text-align: center;
}

.indicator-progress {
    margin: 15px 0;
}

.indicator-progress .progress-bar {
    height: 6px;
    background: #333;
}

.indicator-progress .progress-fill {
    height: 100%;
    border-radius: 3px;
}

.indicator-card[data-indicator="macd"] .progress-fill { background: linear-gradient(90deg, #FF6B6B, #FF8E8E); }
.indicator-card[data-indicator="rsi"] .progress-fill { background: linear-gradient(90deg, #4ECDC4, #7DD7D0); }
.indicator-card[data-indicator="stoch"] .progress-fill { background: linear-gradient(90deg, #FFD166, #FFDF99); }
.indicator-card[data-indicator="ma"] .progress-fill { background: linear-gradient(90deg, #06D6A0, #38E0B7); }
.indicator-card[data-indicator="bb"] .progress-fill { background: linear-gradient(90deg, #118AB2, #43A9CF); }
.indicator-card[data-indicator="adx"] .progress-fill { background: linear-gradient(90deg, #EF476F, #F26C85); }
.indicator-card[data-indicator="cci"] .progress-fill { background: linear-gradient(90deg, #9D4EDD, #B472E8); }

.indicator-details {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: #888;
    font-size: 1.5rem;
}

.detail-value {
    color: #fff;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.detail-max {
    color: #666;
}

.indicator-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.action-btn.small-btn {
    width: 36px;
    height: 36px;
    min-width: auto;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid #333;
}

.action-btn.small-btn:hover {
    background: rgba(0, 255, 0, 0.2);
    border-color: #00ff00;
}

.indicators-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #333;
}

.summary-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.summary-card:hover {
    border-color: #00ff00;
    transform: translateY(-3px);
}

.summary-title {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.summary-value {
    color: #00ff00;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 5px;
    font-family: 'Courier New', monospace;
}

.summary-total {
    color: #666;
    font-size: 0.8rem;
}

.summary-score {
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 5px;
}

.score-details-btn {
    margin-top: 15px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #333;
    border-radius: 8px;
    color: #b0b0b0;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.score-details-btn:hover {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    border-color: #00ff00;
}

/* تجزیه امتیاز کل */
.score-breakdown-final {
    background-color: #161616;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid #2e2e2e;
}

.breakdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #333;
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-label {
    color: #b0b0b0;
    font-size: 1rem;
}

.breakdown-value {
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    font-family: 'Courier New', monospace;
}

.breakdown-percentage {
    color: #00ff00;
    font-size: 0.9rem;
    background: rgba(0, 255, 0, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

/* توضیحات امتیاز */
.explanation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.explanation-item {
    padding: 20px;
    border-radius: 10px;
    border: 2px solid;
    transition: all 0.3s ease;
    text-align: center;
}

.explanation-item:hover {
    transform: translateY(-3px);
}

.item-very-weak {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

.item-weak {
    border-color: #ffaa00;
    background: rgba(255, 170, 0, 0.1);
}

.item-moderate {
    border-color: #aaff00;
    background: rgba(170, 255, 0, 0.1);
}

.item-strong {
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
}

.item-very-strong {
    border-color: #01FFBF;
    background: rgba(1, 255, 191, 0.1);
}

.item-range {
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 8px;
}

.item-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.item-desc {
    color: #b0b0b0;
    font-size: 0.9rem;
}

/* رسپانسیو */
@media (max-width: 1200px) {
    .indicators-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .indicators-grid {
        grid-template-columns: 1fr;
    }
    
    .indicators-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .explanation-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .indicators-summary {
        grid-template-columns: 1fr;
    }
    
    .explanation-grid {
        grid-template-columns: 1fr;
    }
    
    .score-breakdown-final {
        padding: 15px;
    }
    
    .breakdown-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .breakdown-value, .breakdown-percentage {
        align-self: flex-end;
    }
}
    
/* استایل‌های گالری */
.timeframe-gallery-section {
    background: rgba(30, 30, 30, 0.7);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 255, 0, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.gallery-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 255, 0, 0.3);
}

.gallery-title {
    color: #00ff00;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.gallery-subtitle {
    color: #b0b0b0;
    font-size: 1rem;
}

/* گالری تصاویر */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    min-height: 200px;
}

.gallery-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #00ff00;
    font-size: 1.1rem;
}

.gallery-item {
    background: rgba(20, 20, 20, 0.8);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 255, 0, 0.15);
    border-color: rgba(0, 255, 0, 0.4);
}

.gallery-image-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.overlay-buttons {
    display: flex;
    gap: 10px;
}

.overlay-btn {
    background: rgba(0, 255, 0, 0.8);
    border: none;
    color: #000;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.overlay-btn:hover {
    background: rgba(0, 255, 0, 1);
    transform: scale(1.1);
}

.overlay-btn.delete-btn {
    background: rgba(255, 68, 68, 0.8);
    color: white;
}

.overlay-btn.delete-btn:hover {
    background: rgba(255, 68, 68, 1);
}

.gallery-info {
    padding: 15px;
}

.gallery-caption {
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1rem;
    min-height: 24px;
}

.gallery-description {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 40px;
}

.gallery-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
}

.gallery-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* فرم آپلود */
.gallery-upload-section {
    background: rgba(20, 20, 20, 0.9);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 255, 0, 0.2);
}

.upload-header h4 {
    color: #00ff00;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.upload-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #b0b0b0;
    margin-bottom: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-file-input {
    padding: 10px;
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 6px;
    color: white;
    cursor: pointer;
}

.caption-input,
.description-input {
    padding: 10px;
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 6px;
    color: white;
    font-family: inherit;
}

.description-input {
    resize: vertical;
}

.file-preview {
    margin-top: 10px;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(30, 30, 30, 0.6);
    border-radius: 6px;
    padding: 10px;
}

.preview-image {
    max-width: 100%;
    max-height: 150px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.preview-info {
    color: #b0b0b0;
    font-size: 0.9rem;
    text-align: center;
}

.upload-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.upload-submit-btn {
    background: linear-gradient(135deg, #00ff00, #01FFBF);
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.upload-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 0, 0.3);
}

.cancel-upload-btn {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border: 1px solid #ff4444;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.cancel-upload-btn:hover {
    background: rgba(255, 68, 68, 0.3);
}

.upload-status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    display: none;
}

.upload-status.success {
    background: rgba(0, 200, 81, 0.2);
    color: #00ff00;
    border: 1px solid #00ff00;
}

.upload-status.error {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border: 1px solid #ff4444;
}

.upload-status.loading {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
    border: 1px solid #2196F3;
}

/* مدیریت گالری */
.gallery-management {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(20, 20, 20, 0.9);
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 0, 0.2);
}

.manage-gallery-btn {
    background: linear-gradient(135deg, #2196F3, #0D47A1);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.manage-gallery-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.3);
}

.gallery-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-item {
    color: #b0b0b0;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.stat-item i {
    color: #00ff00;
}

/* مدیریت پیشرفته (مخفی شده) */
.advanced-management {
    display: none;
    background: rgba(20, 20, 20, 0.95);
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.advanced-management.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.management-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.management-btn {
    padding: 8px 15px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.select-all-btn {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
    border: 1px solid #2196F3;
}

.delete-selected-btn {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border: 1px solid #ff4444;
}

.export-btn {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.reorder-btn {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
    border: 1px solid #FFC107;
}

.management-btn:hover {
    transform: translateY(-2px);
}

/* حالت انتخاب */
.gallery-item.selected {
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.3);
}

.gallery-item.selected::before {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #2196F3;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* پیام خالی */
.empty-gallery {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #888;
}

.empty-gallery i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.empty-gallery p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.add-first-image {
    background: linear-gradient(135deg, #00ff00, #01FFBF);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.add-first-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 0, 0.3);
}

/* رسپانسیو */
@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .upload-fields {
        grid-template-columns: 1fr;
    }
    
    .upload-actions {
        flex-direction: column;
    }
    
    .upload-actions button {
        width: 100%;
        justify-content: center;
    }
    
    .gallery-management {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}


    .checklist-controls {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    padding: 10px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.control-btn {
    padding: 8px 15px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.save-btn {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

.reset-btn {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
}

.load-btn {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    color: white;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}


/****************************************/
.backup-btn {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: white;
}







/* ==================== استایل زنگوله برای موبایل ==================== */

/* ریسپانسیو برای تبلت و موبایل */
@media (max-width: 992px) {
    #notificationBellWrapper {
        top: 12px !important;
        right: 60px !important; /* فاصله از دکمه منوی همبرگری */
        z-index: 100001 !important;
    }
    
    #notificationBell {
        width: 48px !important;
        height: 48px !important;
        background: linear-gradient(135deg, #ff6b35, #ff3d00) !important;
    }
    
    #notificationBell span {
        font-size: 1.3rem !important;
    }
    
    #notifBadge {
        min-width: 18px !important;
        height: 18px !important;
        font-size: 0.65rem !important;
        top: -3px !important;
        right: -3px !important;
    }
}

@media (max-width: 768px) {
    #notificationBellWrapper {
        top: 10px !important;
        right: 50px !important;
    }
    
    #notificationBell {
        width: 44px !important;
        height: 44px !important;
    }
    
    #notificationBell span {
        font-size: 1.2rem !important;
    }
    
    /* مودال اطلاعیه در موبایل */
    #notifModal {
        top: 70px !important;
        right: 10px !important;
        left: 10px !important;
        width: calc(100% - 20px) !important;
        max-width: none !important;
        border-radius: 12px !important;
    }
    
    #notifList {
        padding: 15px !important;
        max-height: 350px !important;
    }
    
    /* آیتم اطلاعیه در موبایل */
    #notifList > div > div {
        padding: 12px !important;
        margin-bottom: 15px !important;
    }
    
    #notifList > div > div > div:first-child {
        font-size: 0.95rem !important;
    }
    
    #notifList > div > div > div:nth-child(2) {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
    }
    
    /* دکمه خواندم */
    #notifList button {
        padding: 3px 10px !important;
        font-size: 0.7rem !important;
    }
}

@media (max-width: 480px) {
    #notificationBellWrapper {
        top: 8px !important;
        right: 45px !important;
    }
    
    #notificationBell {
        width: 40px !important;
        height: 40px !important;
    }
    
    #notificationBell span {
        font-size: 1.1rem !important;
    }
    
    #notifBadge {
        min-width: 16px !important;
        height: 16px !important;
        font-size: 0.6rem !important;
        top: -4px !important;
        right: -4px !important;
    }
    
    #notifModal {
        top: 60px !important;
        right: 5px !important;
        left: 5px !important;
        width: calc(100% - 10px) !important;
    }
    
    #notifList {
        padding: 12px !important;
        max-height: 300px !important;
    }
    
    .modal-header h3 {
        font-size: 1rem !important;
    }
    
    .close-modal {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.9rem !important;
    }
}

/* حالت افقی موبایل (لنداسکیپ) */
@media (max-width: 900px) and (orientation: landscape) {
    #notificationBellWrapper {
        top: 5px !important;
        right: 55px !important;
    }
    
    #notificationBell {
        width: 38px !important;
        height: 38px !important;
    }
    
    #notifModal {
        top: 55px !important;
        max-height: 80vh !important;
    }
    
    #notifList {
        max-height: 250px !important;
    }
}

/* انیمیشن برای زنگوله در موبایل */
@media (max-width: 768px) {
    @keyframes bellRingMobile {
        0% { transform: rotate(0deg); }
        25% { transform: rotate(15deg); }
        50% { transform: rotate(-15deg); }
        75% { transform: rotate(5deg); }
        100% { transform: rotate(0deg); }
    }
    
    #notificationBell.has-new {
        animation: bellRingMobile 0.4s ease-in-out;
    }
}

/* جلوگیری از تداخل با منوی همبرگری */
@media (max-width: 768px) {
    .mobile-menu-master.active ~ #notificationBellWrapper {
        z-index: 10001 !important;
    }
    
    /* وقتی منو باز است، زنگوله کمی پایین‌تر */
    .mobile-menu-master.active ~ #notificationBellWrapper {
        top: 15px !important;
    }
}



    .logo-master a {
        padding-right:30px;
        color: #fff;
        font-size: 1.8rem;
        font-weight: 700;
        background: linear-gradient(90deg, #ff6b35, #00b4ff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-right: 10px;
        white-space: nowrap;
        text-decoration: none;
    }

    .logo-master span {
        color: #2ecc71;
    }
 
    /* استایل وضعیت اشتراک در هدر */
    .subscription-status-master {
        display: flex;
        align-items: center;
        margin-left: 15px;
    }

    .subscription-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.3s ease;
        white-space: nowrap;
    }

    .subscription-badge.active {
        background: linear-gradient(135deg, rgba(52, 211, 153, 0.2), rgba(16, 185, 129, 0.2));
        color: #10b981;
        border: 1px solid rgba(16, 185, 129, 0.3);
    }

    .subscription-badge.expired {
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2));
        color: #ef4444;
        border: 1px solid rgba(239, 68, 68, 0.3);
    }

    .subscription-badge .days-count {
        background: rgba(16, 185, 129, 0.3);
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 0.8rem;
        font-weight: 700;
    }

    .subscription-badge.expired .days-count {
        background: rgba(239, 68, 68, 0.3);
    }

    /* منوی کاربر */
    .user-dropdown-master {
        position: relative;
        display: inline-block;
    }

    .user-toggle-master {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 15px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        color: #e2e8f0;
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.1);
        min-width: 220px;
        position: relative;
    }

    .user-toggle-master:hover {
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .user-header-content {
        display: flex;
        align-items: center;
        gap: 12px;
        flex: 1;
    }

    .user-avatar-header {
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, #3b82f6, #1d4ed8);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .user-avatar-header i {
        font-size: 1.6rem;
        color: white;
    }

    .user-header-info {
        flex: 1;
        min-width: 0;
    }

    .user-name-header {
        font-weight: 700;
        font-size: 0.95rem;
        color: #fff;
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .user-subscription-status-header {
        display: flex;
        align-items: center;
    }

    .subscription-status-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 4px 10px;
        border-radius: 15px;
        font-size: 0.75rem;
        font-weight: 500;
        max-width: 100%;
        transition: all 0.3s ease;
    }

    .subscription-status-badge.active {
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(52, 211, 153, 0.15));
        border: 1px solid rgba(16, 185, 129, 0.3);
    }

    .subscription-status-badge.active i {
        color: #10b981;
        font-size: 0.85rem;
    }

    .subscription-status-badge.active .subscription-text {
        color: #10b981;
    }

    .subscription-status-badge.active .subscription-days {
        color: #d1fae5;
        font-weight: 600;
        margin-right: 4px;
    }

    .subscription-status-badge.expired {
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.15));
        border: 1px solid rgba(239, 68, 68, 0.3);
    }

    .subscription-status-badge.expired i {
        color: #ef4444;
        font-size: 0.85rem;
    }

    .subscription-status-badge.expired .subscription-text {
        color: #ef4444;
    }

    .subscription-status-badge.expired .renew-text {
        background: linear-gradient(135deg, #ff6b35, #ff3d00);
        color: white;
        padding: 2px 8px;
        border-radius: 10px;
        font-size: 0.7rem;
        font-weight: 600;
        margin-right: 4px;
        display: inline-block;
    }

    .subscription-status-badge.no-subscription {
        background: linear-gradient(135deg, rgba(148, 163, 184, 0.15), rgba(100, 116, 139, 0.15));
        border: 1px solid rgba(148, 163, 184, 0.3);
    }

    .subscription-status-badge.no-subscription i {
        color: #94a3b8;
        font-size: 0.85rem;
    }

    .subscription-status-badge.no-subscription .subscription-text {
        color: #94a3b8;
    }

    .subscription-text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.75rem;
    }

    .arrow-icon-header {
        color: #94a3b8;
        font-size: 0.85rem;
        transition: all 0.3s ease;
        flex-shrink: 0;
    }

    .user-dropdown-master:hover .arrow-icon-header {
        transform: rotate(180deg);
        color: #fff;
    }

    .user-menu-master {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        width: 280px;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        padding: 15px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .user-dropdown-master:hover .user-menu-master {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .user-info-master {
        padding: 0 20px 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 10px;
    }

    .user-name-master {
        font-weight: 700;
        font-size: 1.1rem;
        color: #fff;
        margin-bottom: 3px;
    }

    .user-email-master {
        font-size: 0.85rem;
        color: #94a3b8;
    }

    .user-subscription-info-master {
        margin-top: 15px;
        padding: 12px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .subscription-status-item {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 8px;
    }

    .subscription-status-item.active i {
        color: #10b981;
        font-size: 1.2rem;
    }

    .subscription-status-item.expired i {
        color: #ef4444;
        font-size: 1.2rem;
    }

    .subscription-status-item div {
        flex: 1;
    }

    .subscription-status-item strong {
        display: block;
        font-size: 0.9rem;
        color: #fff;
    }

    .subscription-status-item small {
        display: block;
        font-size: 0.8rem;
        color: #94a3b8;
    }

    .subscription-date {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.85rem;
        color: #94a3b8;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .renew-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding: 8px 12px;
        background: linear-gradient(135deg, #dc2626, #ef4444);
        color: #000;
        border: none;
        border-radius: 6px;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 600;
        margin-top: 10px;
        text-align: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .renew-btn:hover {
        background: linear-gradient(135deg, #ef4444, #dc2626);
        transform: translateY(-2px);
    }

    .user-menu-divider {
        height: 1px;
        background: rgba(255, 255, 255, 0.1);
        margin: 8px 0;
    }

    .user-menu-item-master {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 20px;
        color: #cbd5e1;
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }

    .user-menu-item-master:hover {
        background: rgba(255, 255, 255, 0.05);
        color: #fff;
        padding-right: 25px;
    }

    .user-menu-item-master.logout-item {
        color: #ef4444;
    }

    .user-menu-item-master.logout-item:hover {
        background: rgba(239, 68, 68, 0.1);
        color: #f87171;
    }

    /* ریسپانسیو */
    @media (max-width: 1200px) {
        .user-toggle-master {
            min-width: 200px;
            padding: 8px 12px;
        }
        
        .user-avatar-header {
            width: 36px;
            height: 36px;
        }
        
        .user-avatar-header i {
            font-size: 1.4rem;
        }
        
        .user-name-header {
            font-size: 0.9rem;
        }
        
        .subscription-status-badge {
            padding: 3px 8px;
            font-size: 0.7rem;
        }
    }

    @media (max-width: 992px) {
        .user-toggle-master {
            min-width: 180px;
            padding: 7px 10px;
            gap: 8px;
        }
        
        .user-avatar-header {
            width: 34px;
            height: 34px;
        }
        
        .user-avatar-header i {
            font-size: 1.3rem;
        }
        
        .user-header-content {
            gap: 10px;
        }
        
        .subscription-status-badge {
            padding: 3px 6px;
        }
        
        .subscription-text {
            font-size: 0.7rem;
        }
    }

    @media (max-width: 768px) {
        .auth-buttons-master {
            display: none;
        }
        
        .user-dropdown-master {
            display: none;
        }
    }

    .user-toggle-master::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.05));
        border-radius: 12px;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .user-toggle-master:hover::before {
        opacity: 1;
    }

    @media (prefers-color-scheme: dark) {
        .user-toggle-master {
            background: rgba(30, 41, 59, 0.7);
            backdrop-filter: blur(10px);
        }
        
        .user-toggle-master:hover {
            background: rgba(30, 41, 59, 0.9);
        }
    }

    @keyframes pulse-new-master {
        0% { opacity: 0.8; }
        50% { opacity: 1; }
        100% { opacity: 0.8; }
    }

    /* استایل هدر و تنظیم فواصل آیتم‌ها */
    .header-content-master {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 30px;
        /*max-width: 1400px;*/
        margin: 0 auto;
        width: 100%;
    }

    .logo-master {
        margin-left: 0;
        flex-shrink: 0;
    }

    .logo-master a {
        padding-right: 0;
        margin-right: 0;
    }

    nav {
        flex: 1;
        /*margin: 0 20px;*/
    }

    .nav-menu-master {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 25px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .nav-menu-master li:first-child {
        margin-right: 0;
    }

    .nav-menu-master li:last-child {
        margin-left: 0;
    }

    .auth-buttons-master {
        display: flex;
        align-items: center;
        gap: 15px;
        flex-shrink: 0;
    }

    .login-master, .register-master {
        padding: 8px 16px;
        white-space: nowrap;
    }

    @media (max-width: 992px) {
        .nav-menu-master {
            gap: 15px;
        }
        
        .auth-buttons-master {
            gap: 10px;
        }
    }

    @media (max-width: 768px) {
        .header-content-master {
            padding: 0 5px;
        }
        
        nav {
            display: none;
        }
        
        .auth-buttons-master {
            margin-left: auto;
        }
    }

    .header-content-master {
        padding: 0;
    }

    .container-master {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    /*body > header {*/
    /*    width: 100%;*/
    /*    padding: 3px 0;*/
    /*}*/

    /* استایل دکمه‌های منوی موبایل */
    .mobile-auth-buttons-master {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 10px;
    }

    .mobile-renew-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 12px;
        background: linear-gradient(135deg, #ff6b35, #ff3d00);
        color: #fff;
        border: none;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }

    .mobile-renew-btn:hover {
        background: linear-gradient(135deg, #ff3d00, #ff6b35);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(255, 61, 0, 0.3);
    }

    .mobile-logout-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 12px;
        background: linear-gradient(135deg, #ef4444, #dc2626);
        color: #fff;
        border: none;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.9rem;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .mobile-logout-btn:hover {
        background: linear-gradient(135deg, #dc2626, #ef4444);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
    }

    .mobile-login-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 12px;
        background: linear-gradient(135deg, #3b82f6, #1d4ed8);
        color: #fff;
        border: none;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }

    .mobile-login-btn:hover {
        background: linear-gradient(135deg, #1d4ed8, #3b82f6);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
    }

    .mobile-register-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 12px;
        background: linear-gradient(135deg, #10b981, #059669);
        color: #fff;
        border: none;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }

    .mobile-register-btn:hover {
        background: linear-gradient(135deg, #059669, #10b981);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
    }

    @media (max-width: 768px) {
        .mobile-auth-buttons-master {
            padding: 12px 15px;
        }
        
        .mobile-renew-btn,
        .mobile-logout-btn,
        .mobile-login-btn,
        .mobile-register-btn {
            padding: 10px;
            font-size: 0.85rem;
        }
    }

    .mobile-user-info-master {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 15px 20px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
        margin: 15px 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-user-avatar-master {
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, #ff6b35, #ff3d00);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-user-avatar-master i {
        font-size: 1.8rem;
        color: white;
    }

    .mobile-user-details-master {
        flex: 1;
    }

    .mobile-user-name-master {
        font-weight: 700;
        font-size: 1rem;
        color: #fff;
        margin-bottom: 3px;
    }

    .mobile-user-email-master {
        font-size: 0.85rem;
        color: #94a3b8;
    }

    @media (max-width: 768px) {
        .mobile-user-info-master {
            flex-direction: row;
            padding: 12px 15px;
            margin: 10px 15px;
        }
        
        .mobile-user-avatar-master {
            width: 45px;
            height: 45px;
        }
        
        .mobile-user-avatar-master i {
            font-size: 1.5rem;
        }
        
        .mobile-user-name-master {
            font-size: 0.95rem;
        }
        
        .mobile-user-email-master {
            font-size: 0.8rem;
        }
    }

    .mobile-subscription-info {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
        padding: 15px;
        margin: 15px 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-subscription-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
    }

    .mobile-subscription-title {
        font-weight: 600;
        color: #fff;
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-subscription-status {
        display: inline-flex;
        padding: 4px 10px;
        border-radius: 15px;
        font-size: 0.8rem;
        font-weight: 600;
    }

    .mobile-subscription-status.active {
        background: rgba(16, 185, 129, 0.2);
        color: #10b981;
    }

    .mobile-subscription-status.expired {
        background: rgba(239, 68, 68, 0.2);
        color: #ef4444;
    }

    .mobile-subscription-details {
        font-size: 0.9rem;
        color: #94a3b8;
        line-height: 1.5;
    }

    .mobile-subscription-details strong {
        color: #fff;
    }



/* ==================== استایل اطلاعیه بهینه شده با رنگ سفید ==================== */
.announcement-notification {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 100001;
}

.notification-bell {
    position: relative;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #4a4a4a, #2a2a2a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    animation: bellPulse 2s infinite;
    z-index: 100001;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-bell:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

.notification-bell i {
    color: white !important;
    font-size: 1.3rem;
}

.notification-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    min-width: 18px;
    height: 18px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0 4px;
    animation: badgePulse 1s infinite;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.announcement-notification.hidden {
    display: none !important;
}

.announcement-modal {
    display: none;
    position: fixed;
    top: 70px;
    right: 10px;
    left: 10px;
    width: calc(100vw - 20px);
    background: rgba(15, 15, 25, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    z-index: 100002;
    animation: modalSlideMobile 0.3s ease;
    overflow: hidden;
}

@keyframes modalSlideMobile {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content {
    display: flex;
    flex-direction: column;
    max-height: 75vh;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px 16px 0 0;
}

.modal-header h3 {
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.close-modal {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    padding: 6px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 16px;
    flex: 1;
    overflow-y: auto;
    max-height: calc(75vh - 130px);
}

.announcement-item {
    margin-bottom: 20px;
}

.announcement-title {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 12px;
    line-height: 1.4;
    font-weight: 600;
}

.announcement-content {
    color: #d0d0d0;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 16px;
    text-align: justify;
}

.announcement-image {
    margin: 16px 0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.announcement-image:hover {
    transform: scale(1.01);
}

.announcement-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.announcement-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-item {
    color: #aaa;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mark-read-btn-small {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.mark-read-btn-small:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.mark-read-btn-small:disabled {
    border-color: #444;
    color: #666;
    cursor: default;
    opacity: 0.6;
}

.modal-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 16px 16px;
}

.mark-read-btn {
    background: linear-gradient(135deg, #4a4a4a, #2a2a2a);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.3s;
    width: 100%;
    font-family: inherit;
    font-weight: 600;
}

.mark-read-btn:hover {
    background: linear-gradient(135deg, #5a5a5a, #3a3a3a);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 100003;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.image-modal img {
    max-width: 95%;
    max-height: 85%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.close-image-modal {
    position: fixed;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 100004;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.close-image-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
}

@media (max-width: 768px) {
    .announcement-notification {
        top: 10px;
        right: 10px;
    }
    
    .notification-bell {
        width: 44px;
        height: 44px;
    }
    
    .notification-bell i {
        font-size: 1.2rem;
    }
    
    .notification-badge {
        min-width: 16px;
        height: 16px;
        font-size: 0.65rem;
        top: 2px;
        right: 2px;
    }
    
    .modal-body {
        max-height: calc(75vh - 120px);
    }
    
    .announcement-title {
        font-size: 1.1rem;
    }
    
    .announcement-content {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .announcement-notification {
        top: 8px;
        right: 8px;
    }
    
    .notification-bell {
        width: 42px;
        height: 42px;
    }
    
    .announcement-modal {
        top: 65px;
        right: 8px;
        left: 8px;
        width: calc(100vw - 16px);
        max-height: 70vh;
    }
    
    .modal-body {
        max-height: calc(70vh - 120px);
        padding: 14px;
    }
}

@keyframes bellPulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }
    50% { 
        transform: scale(1.08); 
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
    }
}

@keyframes badgePulse {
    0%, 100% { 
        transform: scale(1); 
    }
    70% { 
        transform: scale(1.1); 
    }
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}









/* ========== استایل‌های اصلاحی هدر ========== */

/* کانتینر اصلی هدر */
.header-wrapper {
    width: 100%;
    background-color: #000;
    /*border-bottom: 1px solid #1e2a4a;*/
    padding: 0 20px;
}

/* کانتینر داخلی با حداکثر عرض مناسب */
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 15px;
}

/* ===== لوگو ===== */
.logo-wrapper {
    flex-shrink: 0;
    margin-left: 20px;
}

.logo-link {
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.logo-gf {
    background: linear-gradient(90deg, #ff6b35, #00b4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-signal {
    color: #2ecc71;
}

/* ===== منوی اصلی ===== */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #00b4ff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link i {
    font-size: 1.1rem;
}

/* ===== منوی کشویی ===== */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: linear-gradient(135deg, #0c1120, #131b2e);
    border: 1px solid #1e2a4a;
    border-radius: 8px;
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    color: #00b4ff;
    background: rgba(255, 255, 255, 0.05);
    padding-right: 25px;
}

.dropdown-menu a i {
    font-size: 1rem;
    width: 20px;
}

/* ===== بخش احراز هویت ===== */
.auth-section {
    flex-shrink: 0;
    margin-right: 20px;
}

/* دکمه‌های ورود/ثبت‌نام */
.btn-login,
.btn-register {
    display: inline-block;
    padding: 8px 18px;
    margin-right: 8px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-login {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #b0b0b0;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #00b4ff;
}

.btn-register {
    background: linear-gradient(135deg, #ff6b35, #00b4ff);
    color: #fff;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 180, 255, 0.3);
}

/* ===== منوی کاربر ===== */
.user-dropdown {
    position: relative;
}

.user-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-decoration: none;
    color: #e2e8f0;
    transition: all 0.3s ease;
}

.user-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.user-info-compact {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar i {
    font-size: 1.3rem;
    color: white;
}

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

.user-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
}

.badge-subscription {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    width: fit-content;
}

.badge-subscription.active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-subscription.expired {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.arrow-icon {
    color: #94a3b8;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.user-dropdown:hover .arrow-icon {
    transform: rotate(180deg);
}

/* منوی کشویی کاربر */
.user-menu {
    left: 0;
    right: auto;
    width: 250px;
}

.user-menu-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-fullname {
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.user-email {
    font-size: 0.8rem;
    color: #94a3b8;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.dropdown-item.text-danger {
    color: #ef4444;
}

.dropdown-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* ===== دکمه منوی موبایل ===== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #b0b0b0;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 1200px) {
    .nav-link {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    
    .user-info-compact {
        gap: 5px;
    }
    
    .user-details {
        max-width: 120px;
    }
    
    .user-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .auth-section {
        margin-right: 10px;
    }
    
    .btn-login,
    .btn-register {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .header-wrapper {
        padding: 0 10px;
    }
    
    .header-container {
        padding: 0 4px;
    }
    
    .btn-login {
        display: none;
    }
    
    .btn-register {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .user-info-compact .user-details {
        display: none;
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
    }
    
    .user-avatar i {
        font-size: 1.5rem;
    }
}
/* ========== استایل منوی کشویی کاربر با هاور ========== */

/* کانتینر اصلی منوی کاربر */
.user-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

/* دکمه اصلی کاربر - بدون آواتار */
.user-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-decoration: none;
    color: #e2e8f0;
    transition: all 0.3s ease;
    min-width: 220px;
}

.user-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* محتوای دکمه کاربر */
.user-toggle-content {
    display: flex;
    align-items: center;
    flex: 1;
}

/* اطلاعات کاربر - حذف آیکون و توسعه یافته */
.user-info-box {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.user-display-name {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* نشان اشتراک - توسعه یافته */
.user-subscription-badge {
    line-height: 1;
}

.subscription-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    width: 100%;
    box-sizing: border-box;
}

.subscription-indicator.active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.subscription-indicator.expired {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.subscription-indicator.no-sub {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.subscription-indicator i {
    font-size: 0.85rem;
}

.subscription-days-left,
.subscription-expired-text,
.no-sub-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* فلش کشویی */
.dropdown-arrow {
    color: #94a3b8;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.user-dropdown-wrapper:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* ===== منوی کشویی کاربر ===== */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 300px;
    background: linear-gradient(135deg, #0c1120, #131b2e);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1100;
    backdrop-filter: blur(10px);
}

/* نمایش منو با هاور */
.user-dropdown-wrapper:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* هدر منوی کشویی */
.dropdown-header-info {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-user-fullname {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 5px;
}

.dropdown-user-email {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 12px;
}

/* جزئیات اشتراک در منو */
.dropdown-subscription-detail {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.subscription-detail-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-size: 0.9rem;
    padding: 5px 0;
}

.subscription-detail-row i {
    color: #10b981;
    font-size: 1rem;
    width: 20px;
}

/* خط جداکننده */
.dropdown-divider-custom {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

/* آیتم‌های منو */
.dropdown-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.dropdown-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding-right: 25px;
}

.dropdown-menu-item i {
    font-size: 1.1rem;
    width: 22px;
}

.dropdown-menu-item.logout-item {
    color: #ef4444;
}

.dropdown-menu-item.logout-item:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* ===== ریسپانسیو ===== */
@media (max-width: 1200px) {
    .user-toggle-btn {
        min-width: 200px;
        padding: 7px 15px;
    }
    
    .user-display-name {
        font-size: 0.95rem;
    }
    
    .subscription-indicator {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
}

@media (max-width: 992px) {
    .user-toggle-btn {
        min-width: 180px;
        padding: 6px 12px;
    }
    
    .user-display-name {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .user-dropdown-wrapper {
        display: none; /* در موبایل مخفی می‌شود */
    }
}

/* انیمیشن برای منو */
@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown-wrapper:hover .user-dropdown-menu {
    animation: fadeInDropdown 0.3s ease forwards;
}



  /* استایل‌های پایه - دسکتاپ */
  .notification-bell-wrapper {
    position: fixed;
    top: 10px;
    right: 15px;
    z-index: 99999;
    pointer-events: none;
  }

  .notification-bell {
    width: 56px;
    height: 56px;
    background: #0a0a0a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,107,53,0.3);
    pointer-events: auto;
    transition: all 0.3s ease;
  }

  .notification-bell span:first-child {
    font-size: 1.5rem;
  }

  .notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0 5px;
    border: 1px solid #000;
  }

  /* مودال اطلاعیه‌ها - دسکتاپ */
  .notif-modal {
    display: none;
    position: fixed;
    top: 85px;
    right: 30px;
    width: 800px;
    max-width: calc(100vw - 60px);
    background: #0f0f17;
    border-radius: 16px;
    border: 1px solid rgba(255,107,53,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    z-index: 100000;
    pointer-events: auto;
  }

  .notif-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,107,53,0.05);
    border-radius: 16px 16px 0 0;
  }

  .notif-modal-header h3 {
    color: #fff;
    margin: 0;
  }

  .close-notif-modal {
    background: rgba(255,255,255,0.05);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
  }

  .notif-list {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
  }

  .loading-text {
    text-align: center;
    color: #666;
  }

  /* ======================================== */
  /* تبلت‌های کوچک (مثل آیپد مینی) */
  /* ======================================== */
  @media (max-width: 1024px) and (min-width: 769px) {
    .notif-modal {
      width: 600px;
      right: 20px;
    }
  }

  /* ======================================== */
  /* موبایل (عرض کمتر از 768px) */
  /* ======================================== */
  @media (max-width: 768px) {
    .notification-bell-wrapper {
      top: 8px;
      right: 2px;
    }

    .notification-bell {
      width: 44px;
      height: 44px;
      right:100px;
      top: 8px;
    }

    .notification-bell span:first-child {
      font-size: 1.2rem;
    }

    .notif-modal {
      top: 70px;
      right: 10px;
      left: 10px;
      width: auto;
      max-width: none;
    }

    .notif-modal-header {
      padding: 12px 15px;
    }

    .notif-modal-header h3 {
      font-size: 1rem;
    }

    .notif-list {
      padding: 15px;
      max-height: 300px;
    }
  }
  
  /* دکمه خرید اشتراک */
.dropdown-menu-item.purchase-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    margin: 5px 10px;
    border-radius: 10px;
    text-align: center;
    justify-content: center;
}

.dropdown-menu-item.purchase-btn i {
    color: white;
}

.dropdown-menu-item.purchase-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translateY(-1px);
}

/* دکمه تمدید اشتراک */
.dropdown-menu-item.renew-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    margin: 5px 10px;
    border-radius: 10px;
    text-align: center;
    justify-content: center;
}

.dropdown-menu-item.renew-btn i {
    color: white;
}

.dropdown-menu-item.renew-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
}
/* اصلاح مشکل نمایش منو در اندازه متوسط */
@media (min-width: 769px) and (max-width: 992px) {
    /* مخفی کردن منوی دسکتاپ */
    .main-nav {
        display: none !important;
    }
    
    /* نمایش دکمه منوی موبایل */
    .mobile-menu-btn-master {
        display: flex !important;
    }
    
    /* اطمینان از عملکرد صحیح منوی موبایل */
    .mobile-menu-master {
        background: linear-gradient(135deg, #0c1120 0%, #131b2e 100%);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 999;
    }
    
    .mobile-menu-master.active {
        display: block !important;
    }
    
    /* تنظیم هدر برای این اندازه */
    .header-container {
        position: relative;
    }
    
    /* اطمینان از نمایش آیتم‌های منوی موبایل */
    .mobile-nav-menu-master {
        display: block !important;
    }
}
