* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; overflow-x: hidden; font-family: Tahoma, Arial, sans-serif; background-color: #f0f0f0; }
img { max-width: 100%; display: block; -webkit-user-drag: none; user-drag: none; }
body { user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -webkit-touch-callout: none; }

@media print { html, body { display: none !important; } }

.security-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: #000; color: red; z-index: 999999; display: none; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 20px; }

.sidebar { position: fixed; top: 0; right: -320px; width: 320px; height: 100vh; background-color: #fff; box-shadow: -5px 0 15px rgba(0,0,0,0.1); transition: right 0.4s ease; z-index: 1000; padding: 20px; overflow-y: auto; }
.sidebar.open { right: 0; }
.sidebar-images { display: flex; justify-content: space-between; margin: 20px 0; }
.sidebar-images img { width: 30%; height: 70px; object-fit: cover; border-radius: 8px; }
.sidebar-menu { list-style: none; }
.sidebar-menu li { border-bottom: 1px solid #eee; }
.sidebar-menu a { display: block; padding: 15px 10px; color: #333; text-decoration: none; font-weight: bold; transition: 0.3s; }
.sidebar-menu a:hover { background-color: #f5f5f5; color: #e60000; }

.top-bar { display: flex; justify-content: space-between; align-items: center; padding: 15px 30px; background-color: #fff; position: relative; z-index: 10; min-height: 100px; }
.bismillah img { height: 80px; object-fit: contain; }
.center-flag { position: absolute; left: 50%; transform: translateX(-50%); top: 10px; z-index: 20; }
.center-flag img { height: 110px; object-fit: contain; }
.lang-section { display: flex; align-items: center; gap: 15px; }
.iran-flag-img { height: 45px; border-radius: 4px; }
.dropdown { position: relative; display: inline-block; }
.current-lang { font-size: 18px; font-weight: bold; color: #333; text-decoration: underline; cursor: pointer; padding: 5px; }
.dropdown-content { display: none; position: absolute; background-color: #fff; min-width: 120px; box-shadow: 0 8px 16px rgba(0,0,0,0.2); z-index: 100; top: 100%; left: 0; border-radius: 5px; }
.dropdown-content a { color: #333; padding: 10px 15px; text-decoration: none; display: block; }
.dropdown-content a:hover { background-color: #ddd; }
.dropdown:hover .dropdown-content, .dropdown.open .dropdown-content { display: block; }

.logo-bar { background-color: #f7f7f7; display: flex; align-items: center; justify-content: center; padding: 20px 0 10px 0; position: relative; margin-top: 40px; border-bottom: 2px solid #ccc; }
.main-logo img { height: 130px; object-fit: contain; }
.hamburger-menu { position: absolute; left: 30px; display: flex; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; background-color: #e0e0e0; padding: 10px; border-radius: 8px; }
.hamburger-menu:hover { background-color: #ccc; }
.hamburger-menu span { display: block; width: 30px; height: 4px; background-color: #333; border-radius: 2px; }

.top-image-banner { width: 100%; line-height: 0; }
.top-image-banner img { width: 100%; height: auto; }

.notification-container { width: 100%; display: flex; align-items: center; background-color: #222; color: #fff; height: 45px; overflow: hidden; transition: background 0.5s; }
.notification-container.urgent { background-color: #e60000; }
.news-label { background-color: rgba(255,255,255,0.2); padding: 0 20px; height: 100%; display: flex; align-items: center; font-weight: bold; white-space: nowrap; z-index: 2; }
.news-wrapper { flex: 1; overflow: hidden; position: relative; display: flex; align-items: center; }
.news-track { display: flex; white-space: nowrap; animation: marquee 20s linear infinite; }
.news-text { font-size: 16px; font-weight: bold; padding-left: 50px; padding-right: 50px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
[dir="rtl"] .news-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { 0% { transform: translateX(0); } 100% { transform: translateX(50%); } }

.profile-section { display: flex; flex-direction: column; align-items: center; margin: 50px 0; text-align: center; }
.profile-circle { width: 260px; height: 260px; border-radius: 50%; overflow: hidden; border: 5px solid #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.profile-circle img { width: 100%; height: 100%; object-fit: cover; }
.my-name { margin-top: 20px; font-size: 32px; color: #333; font-weight: bold; }

.profile-images { direction: rtl; display: flex; justify-content: space-between; align-items: flex-start; width: 100%; padding: 0 30px; margin: 30px 0; }
.profile-images .pi-side { width: 240px; height: auto; object-fit: contain; border-radius: 0; box-shadow: none; border: none; background: none; }
.profile-images .pi-center { width: 130px; height: auto; margin-top: 60px; object-fit: contain; border-radius: 0; box-shadow: none; border: none; background: none; }

.welcome-text { max-width: 800px; padding: 0 20px; font-size: 18px; line-height: 1.8; color: #444; }
.red-text { color: #e60000; font-weight: bold; }

.supporters-section { max-width: 1000px; margin: 40px auto; padding: 20px; background: #fff; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); text-align: center; }
.supporters-section h2 { font-size: 28px; margin-bottom: 15px; color: #333; }
.supporters-desc { font-size: 16px; line-height: 1.6; margin-bottom: 30px; color: #555; }

.voting-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 30px; }
.vote-btn { background: #f8f9fa; border: 1px solid #ddd; border-radius: 8px; padding: 8px 12px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 6px; transition: 0.2s; font-size: 14px; }
.vote-btn:hover { background: #e9ecef; border-color: #bbb; }
.vote-btn.voted { background: #d4edda; border-color: #c3e6cb; color: #155724; box-shadow: 0 0 0 2px #28a745 inset; }
.vote-count { font-weight: bold; background: #fff; padding: 2px 6px; border-radius: 10px; border: 1px solid #ccc; font-size: 12px; min-width: 25px; text-align: center; }

.note-text { font-size: 14px; color: #666; line-height: 1.6; background: #fff3cd; padding: 15px; border-radius: 8px; border: 1px solid #ffeeba; text-align: right; }
[dir="ltr"] .note-text { text-align: left; }

.inner-page { max-width: 900px; margin: 40px auto; padding: 30px 20px; background: #fff; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); line-height: 1.9; color: #444; }
.inner-page h1 { color: #e60000; margin-bottom: 15px; }

.main-footer { background: #222; color: #ccc; text-align: center; padding: 40px 20px; margin-top: 50px; }
.location-title { margin-bottom: 15px; }
.map-container { max-width: 600px; margin: 0 auto 30px auto; }
.map-container iframe { width: 100%; height: 300px; }
.social-links { margin: 15px 0; }
.social-links a { color: #00d2ff; text-decoration: none; margin: 0 10px; font-weight: bold; }
.social-links a:hover { text-decoration: underline; }
.power-text { font-size: 20px; font-weight: bold; color: #e60000; margin: 20px 0; }
.legal-text { font-size: 12px; color: #888; max-width: 800px; margin: 0 auto; line-height: 1.6; text-align: justify; }

@media (max-width: 768px) {
    .top-bar { padding: 10px 15px; min-height: 70px; }
    .bismillah img { height: 50px; } .center-flag img { height: 70px; } .iran-flag-img { height: 30px; }
    .logo-bar { margin-top: 20px; padding: 15px 0; } .main-logo img { height: 80px; } .hamburger-menu { left: 15px; padding: 8px; }
    .sidebar { width: 280px; right: -280px; }
    .profile-circle { width: 190px; height: 190px; } .my-name { font-size: 24px; }
    .profile-images { padding: 0 10px; }
    .profile-images .pi-side { width: 120px; height: auto; }
    .profile-images .pi-center { width: 70px; height: auto; margin-top: 30px; }
    .welcome-text { font-size: 16px; }
    .voting-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}

.about-list { list-style: none; margin: 10px 0; }
.about-list li { padding: 4px 0; }
.about-gap { margin-top: 20px; }

.news-item { border-bottom: 1px solid #eee; padding-bottom: 20px; }
.news-item img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 10px; margin-bottom: 15px; }
.news-item h2 { color: #333; margin-bottom: 5px; }
.news-date { font-size: 13px; color: #999; margin-bottom: 10px; }

.db-status { color: #c00; font-size: 13px; margin-bottom: 15px; direction: ltr; }
