.elementor-21284 .elementor-element.elementor-element-41fb14d{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--gap:30px 30px;--row-gap:30px;--column-gap:30px;--padding-top:20px;--padding-bottom:20px;--padding-left:20px;--padding-right:20px;}.elementor-21284 .elementor-element.elementor-element-3623966{--display:flex;border-style:solid;--border-style:solid;border-width:1px 1px 1px 1px;--border-top-width:1px;--border-right-width:1px;--border-bottom-width:1px;--border-left-width:1px;border-color:#EDEDED;--border-color:#EDEDED;--border-radius:12px 12px 12px 12px;--padding-top:20px;--padding-bottom:20px;--padding-left:20px;--padding-right:20px;}.elementor-21284 .elementor-element.elementor-element-3623966:not(.elementor-motion-effects-element-type-background), .elementor-21284 .elementor-element.elementor-element-3623966 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#FFFFFF;}.elementor-21284 .elementor-element.elementor-element-d5ed445{font-family:"iransans | ایران‌سنس", Sans-serif;font-size:15px;line-height:30px;}.elementor-21284 .elementor-element.elementor-element-d79bd43{margin:50px 0px calc(var(--kit-widget-spacing, 0px) + -20px) 0px;text-align:center;}.elementor-21284 .elementor-element.elementor-element-d79bd43 .elementor-heading-title{font-family:"iransans | ایران‌سنس", Sans-serif;font-weight:600;color:var( --e-global-color-primary );}:root{--page-title-display:none;}@media(max-width:767px){.elementor-21284 .elementor-element.elementor-element-41fb14d{--padding-top:10px;--padding-bottom:10px;--padding-left:10px;--padding-right:10px;}.elementor-21284 .elementor-element.elementor-element-8e29b1a{padding:0px 0px 0px 0px;}.elementor-21284 .elementor-element.elementor-element-d79bd43 .elementor-heading-title{font-size:25px;}}/* Start custom CSS for text-editor, class: .elementor-element-d5ed445 */.elementor-21284 .elementor-element.elementor-element-d5ed445 h2 {
    font-family: 'iransans | ایران‌سنس' !important;
    font-size: 28px !important;
    font-weight: 700;
}
.elementor-21284 .elementor-element.elementor-element-d5ed445 h3 {
    font-family: 'iransans | ایران‌سنس' !important;
    font-size: 25px !important;
    font-weight: 600;
}/* End custom CSS */
/* Start custom CSS *//* ==================== تنظیمات کلی ==================== */
.pres-wrapper {
  font-family: 'iransans | ایران‌سنس';
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  direction: rtl;
  color: #1e293b;
}

.pres-wrapper * {
  box-sizing: border-box;
  font-family: 'iransans | ایران‌سنس';
}

/* ==================== باکس آپلود ==================== */
.upload-container {
  margin-bottom: 30px;
  position: relative;
}

.upload-label {
  display: block;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.upload-tour {
  position: absolute;
  top: -18px;
  right: 20px;
  z-index: 10;
}



.result-preview.compare:focus-visible{
  box-shadow: 0 0 0 3px rgba(0,81,171,.25);
}

.compare-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%!important;
  object-fit: contain;
  pointer-events: none;
}

.compare-after-wrap{
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.compare-after{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%!important;
  object-fit: contain;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}


.compare-divider{
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  transform: translateX(-50%);
  width: 2px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 0 18px rgba(0,0,0,.12);
  pointer-events: none;
}

.compare-handle{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: #fff;
  border: 1px solid #d7e3f5;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

.compare-handle::before,
.compare-handle::after{
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid #0051ab;
  border-right: 2px solid #0051ab;
}
.compare-handle::before{
  left: 10px;
  transform: translateY(-50%) rotate(225deg);
}
.compare-handle::after{
  right: 10px;
  transform: translateY(-50%) rotate(45deg);
}

.compare-badge{
  position: absolute;
  top: 10px;
  z-index: 2;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  color: #fff;
  background: rgba(0,0,0,.45);
}
.compare-badge-before{ right: 10px; }
.compare-badge-after{ left: 10px; }

.sr-only{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}


.tour-badge {
  display: inline-block;
  background: linear-gradient(135deg, #0051ba, #0077ff);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 81, 186, 0.2);
  font-family: 'iransans | ایران‌سنس';
}
@media only screen and (max-width: 787px) {
  .upload-tour {
    right: 0 !important;}}
@media only screen and (max-width: 787px) {
  .footer-text {
font-size: 0.7rem!important;  }}
@media only screen and (max-width: 787px) {
  .tour-badge {
font-size: 0.7rem!important;  }}
@media only screen and (max-width: 787px) {
  .upload-hint {
    font-size: 0.75rem!important; }}

.upload-label {
  display: block;
  cursor: pointer;
  border: 3px dashed #cbd5e1;
  border-radius: 12px;
  padding: 60px 20px;
  background: #ffffff;
  transition: all 0.3s ease;
  position: relative;
}

.upload-label:hover {
  border-color: #0051ba;
  background: #f8faff;
  transform: translateY(-2px);
}

.upload-label.dragover {
  border-color: #0051ba;
  background: linear-gradient(135deg, #eef5ff, #f8fbff);
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0,81,186,0.15);
}

.upload-label.dragover .upload-text {
  color: #003f8a;
}
.upload-label.dragover::before {
  content: "رها کن تا بهینه‌سازی شروع شود 🚀";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #0051ba;
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  pointer-events: none;
}


.upload-content {
  text-align: center;
  user-select: none;
}

.upload-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}

.upload-text {
  color: #0051ba;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  font-family: 'iransans | ایران‌سنس';
}

.upload-hint {
  color: #64748b;
  font-size: 0.8rem;
  margin: 0;
  font-family: 'iransans | ایران‌سنس';
}

.pres-file-input{
position:absolute;
width:1px;
height:1px;
opacity:0;
pointer-events:none;
}


/* ==================== لیست فایل‌ها ==================== */
.file-list-section,
.settings-section,
.action-section,
.results-section {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.section-title {
  font-size: 1.3rem;
  color: #0051ba;
  margin: 0 0 20px 0;
  font-weight: 600;
  font-family: 'iransans | ایران‌سنس'!important;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}

.file-item:hover {
  border-color: #0051ba;
  background: #f1f5ff;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.file-thumb {
  width: 50px;
  height: 50px!important;
  border-radius: 5px!important;
  object-fit: cover;
  background: #cbd5e1;
}

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

.file-name {
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 5px;
  word-break: break-all;
  font-family: 'iransans | ایران‌سنس';
}

.file-size {
  color: #64748b;
  font-size: 0.9rem;
  font-family: 'iransans | ایران‌سنس';
}

.remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
}

.remove-btn:hover {
  background: #fee2e2;
}

.remove-btn img {
  width: 20px;
  height: 20px;
}

.file-list-actions {
  margin-top: 15px;
  text-align: left;
}

/* ==================== دکمه‌ها ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  font-family: 'iransans | ایران‌سنس';
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  gap: 8px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #e2e8f0 !important;
  color: #64748b !important;
  box-shadow: none !important;
  transform: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, #0051ba, #0077ff);
  color: white;
  box-shadow: 0 6px 20px rgba(0, 81, 186, 0.3);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 81, 186, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: white;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.btn-success:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

.btn-outline {
  background: transparent;
  color: #1e293b !important;
  border: 2px solid #cbd5e1;
  font-family: 'iransans | ایران‌سنس';
}

.btn-outline:hover:not(:disabled) {
  border-color: #94a3b8;
  background: #f8fafc;
  color: #475569 !important;
}

/* ==================== تنظیمات ==================== */
.settings-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.setting-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.setting-card {
  background: #f8fafc;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  flex: 1;
  min-width: 250px;
}

.quality-card {
  flex: 1;
}

.format-card {
  flex: 1;
}

.setting-label {
  display: block;
  color: #334155;
  font-weight: 500;
  margin-bottom: 12px;
  font-family: 'iransans | ایران‌سنس';
}

.quality-slider {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
}

.quality-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0051ba;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 10px rgba(0, 81, 186, 0.3);
}

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

.format-btn {
  padding: 10px 20px;
  border-radius: 12px;
  background: #CFDDF2 !important;
  color: #0051ba !important;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  font-family: 'iransans | ایران‌سنس';
  border: none !important;
}

.format-btn.active {
  background: #0051ba !important;
  color: white !important;
}

.format-btn:hover:not(.active):not(:disabled) {
  background: #b8c9e8 !important;
}

.format-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f1f5f9 !important;
  color: #94a3b8 !important;
}

/* ==================== عملیات ==================== */
.action-section {
  text-align: center;
}

.action-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.progress-text {
  color: #64748b;
  margin: 15px 0 10px;
  font-size: 0.95rem;
  font-family: 'iransans | ایران‌سنس';
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0051ba, #0077ff);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==================== نتایج ==================== */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.result-card {
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 20px;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.result-preview {
  position: relative;
  width: 100%;
  height: 200px;
  margin: 0 auto 12px;
  --split: 50%;
}

.compare-line::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background: #0051ba;
  border-radius: 50%;
  border: 2px solid #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.result-name {
  font-weight: 600;
  color: #1e293b;
  word-break: break-all;
  font-family: 'iransans | ایران‌سنس';
  text-align: center;
  margin-bottom: 10px;
}

.result-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 15px;
  margin: 10px 0 15px;
  font-size: 0.9rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  color: #475569;
  font-family: 'iransans | ایران‌سنس';
}

.stat-item span:last-child {
  font-weight: 600;
  color: #1e293b;
}

.reduction-badge {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'iransans | ایران‌سنس';
}

.result-actions {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.result-download-btn {
  flex: 1;
  padding: 10px;
  background: #0051ba;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'iransans | ایران‌سنس';
}

.result-download-btn:hover {
  background: #00419e;
}

/* ==================== اعلان‌ها ==================== */
.notification {
  position: fixed;
  bottom: 30px;
  left: 20px;
  right: 20px;
  width: auto;
  transform: none;
  padding: 14px 20px;
  border-radius: 12px;
  color: white;
  font-weight: 500;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  font-family: 'iransans', 'IranSans', sans-serif;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  box-sizing: border-box;
  
  /* حاشیه بیشتر در موبایل */
  @media (min-width: 768px) {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: max-content;
    max-width: 90vw;
  }
}

.notification.show {
  opacity: 1;
  visibility: visible;
}

.notification.error {
  background: #ef4444;
}

.notification.success {
  background: #10b981;
}

.notification.info {
  background: #3b82f6;
}

/* ==================== فوتر ==================== */
.pres-footer {
  margin-top: 40px;
  padding: 20px;
  text-align: center;
  border-top: 1px solid #e2e8f0;
}

.footer-text {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
  font-family: 'iransans | ایران‌سنس';
  max-width: 800px;
  margin: 0 auto;
}

/* ==================== کلاس‌های کمکی ==================== */
.hidden {
  display: none !important;
}

/* ==================== واکنش‌گرایی ==================== */
@media (max-width: 768px) {
  .setting-row {
    flex-direction: column;
  }
  
  .setting-card {
    min-width: 100%;
  }
  
  .results-grid {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .pres-wrapper {
    padding: 12px;
  }
  
  .upload-label {
    padding: 40px 15px;
  }
  
  .format-buttons {
    justify-content: center;
  }
  
  .format-btn {
    flex: 1;
    min-width: 80px;
  }
}
/* پروگرس‌بار اختصاصی هر فایل */
.file-progress-container {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
  display: none;
}

.file-progress-container.active {
  display: block;
}

.file-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 3px;
  transition: width 0.3s ease;
}
.upload-label{
position:relative;
overflow:hidden;
margin-bottom: 25px;
}

.upload-label::after{
content:"";
position:absolute;
inset:0;
background:radial-gradient(circle at center,
rgba(0,81,186,0.12),
transparent 70%);
opacity:0;
transition:.3s;
pointer-events:none;
}

.upload-label:hover::after{
opacity:1;
}
.result-card{
animation:resultIn .35s ease;
}

@keyframes resultIn{
from{
opacity:0;
transform:translateY(10px);
}
to{
opacity:1;
transform:none;
}
}
.file-thumb{
transition:transform .2s;
}

.file-thumb:hover{
transform:scale(1.15);
}/* End custom CSS */
/* Start Custom Fonts CSS */@font-face {
	font-family: 'iransans | ایران‌سنس';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('https://mazhan-f.ir/wp-content/uploads/2026/01/IRANSansXV.woff2') format('woff2'),
		url('https://mazhan-f.ir/wp-content/uploads/2026/01/IRANSansXV.woff') format('woff');
}
@font-face {
	font-family: 'iransans | ایران‌سنس';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('https://mazhan-f.ir/wp-content/uploads/2026/01/IRANSansXV.woff2') format('woff2'),
		url('https://mazhan-f.ir/wp-content/uploads/2026/01/IRANSansXV.woff') format('woff');
}
@font-face {
	font-family: 'iransans | ایران‌سنس';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('https://mazhan-f.ir/wp-content/uploads/2026/01/IRANSansXV.woff2') format('woff2'),
		url('https://mazhan-f.ir/wp-content/uploads/2026/01/IRANSansXV.woff') format('woff');
}
@font-face {
	font-family: 'iransans | ایران‌سنس';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('https://mazhan-f.ir/wp-content/uploads/2026/01/IRANSansXV.woff2') format('woff2'),
		url('https://mazhan-f.ir/wp-content/uploads/2026/01/IRANSansXV.woff') format('woff');
}
@font-face {
	font-family: 'iransans | ایران‌سنس';
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url('https://mazhan-f.ir/wp-content/uploads/2026/01/IRANSansXV.woff2') format('woff2'),
		url('https://mazhan-f.ir/wp-content/uploads/2026/01/IRANSansXV.woff') format('woff');
}
@font-face {
	font-family: 'iransans | ایران‌سنس';
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src: url('https://mazhan-f.ir/wp-content/uploads/2026/01/IRANSansXV.woff2') format('woff2'),
		url('https://mazhan-f.ir/wp-content/uploads/2026/01/IRANSansXV.woff') format('woff');
}
/* End Custom Fonts CSS */