@font-face {
    font-family: 'Vazir';
    src: url('./fonts/Vazir.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'Vazir';
    src: url('./fonts/Vazir-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
  }
  
@font-face {
  font-family: "Pixelon";
  src: url("./fonts/Pixelon.ttf") format("truetype");
}


/* پایه */
body {
    margin: 0;
    font-family: sans-serif;
    background: #000000;
    color: #fff;
    overflow-x: hidden;
    font-family: 'Vazir', sans-serif;
    transition: all 1s ease;
  }
  
  .container {
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;

  }
  
  header {
    background: #000;
    position: sticky;
    top: 0;
    z-index: 11000;
  }
  
  .site-header {
    position: fixed;
    width: 100%;
    background: black;
    z-index: 1000;
  }
  
  /* والد مشترک لوگوها */
  .logo-wrapper {
    position: relative;
    width: max-content;
    height: 90px; /* ارتفاع تقریبی لوگو */
  }
  
  /* نوشته */
  .logo-text {
    font-size: 28px;
    font-weight: bold;
    color: white;
    transition: opacity 0.6s ease;
    position: absolute;
    margin-left: 30px;
    top: 5%;
    white-space: nowrap;
  }
  
  /* لوگوی SVG */
  .logo-svg {
    position: absolute;
    width: 60px;
    height: auto;
    margin-left: 40px;
    top: 15px;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  /* حالت فعال بعد از اسکرول */
  .logo-wrapper.scrolled .logo-text {
    opacity: 0;
    pointer-events: none;
  }
  
  .logo-wrapper.scrolled .logo-svg {
    opacity: 1;
    transform: scale(1);
  }
  
  
  

  

  
  /* حالت دسکتاپ */
  .mobile-menu-side {
    position: fixed;
    top: 50px;
    left: 0;
    height: 100%;
    width: 17%;
    background: #000000;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    padding-top: 100px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.5);
  }

  /* حالت موبایل */
  @media (max-width: 769px) {
    .mobile-menu-side {
      width: 90%;
      top: 50px;

    }

  }

  
  .mobile-menu-side.active {
    transform: translateX(0);
  }
  
  .mobile-menu-side ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .mobile-menu-side ul li {
    margin: 16px 0;
  }
  
  .mobile-menu-side ul li a {
    display: block;
    padding: 12px 20px;
    color: white;
    font-size: 16px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
  }
  
  .mobile-menu-side ul li a:hover {
    background-color: rgba(248, 248, 248, 0.1);
  }
  @media (max-width: 769px) {
    .mobile-menu-side ul li a {
      font-size: 20px; /* یا هر سایزی که می‌خوای */
    }
  }
  
  /* Hero Section */
  .hero {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* تا h2 و p زیر هم قرار بگیرند */
    text-align: center;
  }
  
  
  .hero h2 {
    font-size: clamp(20px, 5vw, 40px);
    margin-bottom: 20px;
    text-align: center;
  }
  
  
  
  .hero p {
    font-size: 18px;
    margin-bottom: 30px;
  }
  
  button {
    background: #10a37f;
    border: none;
    padding: 12px 24px;
    color: #fff;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
  }
  

  

  

  




  /* دکمه منو با ۹ نقطه */
  .menu-button {
    position: fixed; /* یا absolute */
    top: 16px;        /* فاصله از بالا */
    right: 16px;      /* فاصله از راست */
    z-index: 11000;   /* بالاتر از بقیه */
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  
  .dot-grid {
    width: 20px;
    height: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 2px;
    transition: all 0.3s ease-in-out;
  }
  
  .dot-grid span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #888; /* خاکستری */
    transition: background-color 0.3s ease;
  }
  
  /* هاور روی دکمه */
  .menu-button:hover .dot-grid span {
    background-color: #fff; /* سفید */
  }
  
  /* حالت فعال (منو باز شده) — فقط ۳ نقطه وسط */
  .menu-button.active .dot-grid span {
    opacity: 0;
    transform: scale(0.5);
  }
  
  .menu-button.active .dot-grid span:nth-child(5),
  .menu-button.active .dot-grid span:nth-child(2),
  .menu-button.active .dot-grid span:nth-child(8) {
    opacity: 1;
    transform: scale(1.2);
  }
  




  










  .login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
  }
  
  
  .login-box {
    display: flex;
    width: 90%;
    border-radius: 12px;
    overflow: hidden;

  }
  
  

  
  .form-container {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    position: relative;
    direction: rtl;
  }
  
  /* محتوای قابل تغییر */
  .content-switcher {
    /* max-width: 300px; ← این خط رو بردار یا افزایش بده */
    min-height: 180px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;

  }
  
  
  .fade-in {
    opacity: 1;
  }
  
  .fade-out {
    opacity: 0;
  }
  
  .input-wrapper {
    position: relative;
    display: flex;
    justify-content: center; /* مرکز چین افقی */
    align-items: center;     /* مرکز چین عمودی (برای در یک خط بودن) */
    gap: 10px;               /* فاصله بین input و button */
    width: 100%;
    margin-top: 20px;
  }
  
  
  .initial-input {
    width: 50vw;
    padding: 0 20px 0 10px;
    padding-bottom: 30px;
    border-radius: 30px;
    font-size: 16px;
    height: 80px;
    direction: rtl;
    border: none;
    background-color: #424242;
    color: #ffffff;
    font-family: 'Vazir';
    transition: width 1s ease, background-color 1s ease, color 1s ease;
  }
  
  .initial-input.sent {
    width: 25px;
    height: 80px;
    left: 0;
    color: white;
  }
  


  .initial-input {
    border: none;
  }
  
  .initial-input:focus {
    outline: none;
    border: none;
    box-shadow: none;
  }
  

  
  .input-wrapper.centered {
    justify-content: center;
  }
  
  .initial-text {
    transition: opacity 0.4s ease;
    opacity: 1;
    position: absolute;              /* یا relative یا fixed بسته به ساختار */
    left: 50%;
    transform: translateX(-50%);
    margin-top: -50px;
    direction: rtl;

  }
  
  
  .initial-text.fade-out {
    opacity: 0;
  }
  
  .initial-text.fade-in {
    opacity: 1;
  }
  
  
  .send-btn {
    position: absolute;
    top: 80px;
    left: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #ffffff;
    transition: left 1s ease, top 1s ease, transform 1s ease;

  }
  
  .send-btn svg {
    width: 40px;
    height: auto;
    fill: currentColor;
  }
  .send-btn.centered {
    left: 50%;
    top: 70%;
    transform: translate(-50%, -50%);
  }
  /* این کلاس جدید باعث میشه دکمه بره بالا */
  .send-btn.move-up {
    top: 30%; /* هر چقدر می‌خوای بالا بره */
    transform: translate(-50%, -50%);
  }
  .icon-wrapper {
    display: inline-block;
    transition: opacity 0.4s ease;
  }
  
  .icon-wrapper.fade-out {
    opacity: 0;
  }
  
  .icon-wrapper.fade-in {
    opacity: 1;
  }
  
  /* فرم ورود */
  .login-form {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;

  }
  
  .login-form input {
    width: 100%;
    padding: 12px;
    border: none;
    background: #222;
    border-radius: 14px;
    color: white;
    font-family: 'Vazir';
  }
  
  .google-btn {
    background: transparent;
    border: 1px solid #f2f2f2;
    width: 325px;
    padding: 10px;
    border-radius: 50px;
    color: white;
    font-family: 'Vazir';
    cursor: pointer;
    transition: all 0.25s ease;
  }
  
  .google-btn:hover {
    background-color: #252525;
  }
  
  /* دکمه ورود اصلی */
  .main-login-btn {
    margin-top: 10px;
    width: 165px;
    height: 50px;
    padding: 10px;
    border-radius: 50px;
    background: transparent;
    color: white;
    font-size: 16px;
    border: 1px solid #f2f2f2;
    cursor: pointer;
    font-family: 'Vazir';
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease, width 0.4s ease;
  }
  
  .main-login-btn.expanded {
    width: 325px;
  }
  .main-login-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  
  .icon-wrapper {
    display: inline-block;
    transition: opacity 0.4s ease;
  }
  
  .icon-wrapper.fade-out {
    opacity: 0;
  }
  
  .icon-wrapper.fade-in {
    opacity: 1;
  }
  
  






  
  
  
  
  /* ریسپانسیو */
  @media (max-width: 768px) {
    .login-box {
      flex-direction: column;
    }
  
    .slider-container {
      max-height: 700px;
    }

    .desktop-nav{
      display: none;
    }
    
    .slider-container {
      width: 200px;
    }
  }
  
  



  



















  /* وقتی دکمه گسترش پیدا می‌کنه */
  .main-login-btn.expanded-box-center {
    align-items: flex-start; /* محتوا داخل باکس بالا قرار بگیره */
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);


  }




  .main-login-btn {
    transform-origin: center center;
  }


  /* وقتی دکمه گسترش پیدا می‌کنه */
  .main-login-btn.expanded-box {
    height: 500px; /* ارتفاع نهایی */

  }

  /* محتوای بعد از ورود */
  .after-login {
    display: none; 
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    border-radius: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease, transform 0.6s ease-in-out;
  }

  .after-login.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }
  .main-login-btn.expanded-wide {
    width: 90% !important;
    transition: width 1s ease;
  }
  .btn-group {
    position: relative;
    height: 300px; /* ارتفاع لازم برای نگه داشتن دکمه‌ها */
    margin-top: 20px;
  }
  
  .btn-group-0 {
    width: 250px;
    z-index: 1000;
    height: 50px;
    border-radius: 50px;
    background: black;
    color: white;
    cursor: pointer;
    font-family: 'Vazir';
    font-size: 1.1rem;
    border: 1px solid #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    position: absolute;       /* ← همیشه absolute */
    left: 50%;
    transform: translateX(-50%);
    transition: top 0.6s ease, background 0.6s ease;  /* ← فقط top انیمیت بشه */
  }
  /* موقعیت اولیه هر دکمه */
  .btn-group-0:nth-child(1) { top: 0px; }
  .btn-group-0:nth-child(2) { top: 70px; }
  .btn-group-0:nth-child(3) { top: 140px; }

  /* وقتی stack می‌خوره همه میرن بالا */
  .btn-group-0.stack {
    top: -200px;
    z-index: 1;
  }

  /* دکمه فعال بالاتر بیاد */
  .btn-group-0.active.stack {
    z-index: 10;
  }

  /* وقتی گزینه فعال است، بالاتر از بقیه بره */
  .btn-group-0.active {
    background: white;
    color: black;
    z-index: 50; /* همیشه روی بقیه باشه */
  }
  .btn-group-0.active.stack {
    z-index: 50; /* فقط وقتی stack هست بالاتر بیاد */
  }
  
  .btn-group-0.active:not(.stack) {
    z-index: 1;
  }
  




  /* login-section تمام صفحه */
  .login-section.fullscreen {
    width: 100% !important;
    height: 600px !important;
    transition: all 0.8s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

  }


  .login-box.fullscreen {
    height: 600px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);

  }


  .user-avatar {
    margin-top: 70px;
    margin-bottom: 20px;
    opacity: 1;
    transition: opacity 1s ease-in-out;
  

  }

  
  /* آواتار بزرگ → به گوشه بالا چپ بره */
  .user-avatar.big {
    opacity: 0;
    transition: all 0.8s ease;
  }



  


  .section-content {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px;
    top: 50%;
    transform: translateY(-55%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease; /* محو/نمایان روان */
  }
  
  .section-content.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease; /* محو/نمایان روان */

  }
  
  #content-box {
    position: relative;
    width: 100%;
    min-height: 300px;
    margin-top: 30px;
    color: white;

  }
  
  textarea, input, select {
    padding: 5px;
    margin-bottom: 10px;
    width: 80%;
    border-radius: 5px;
    border: 1px solid #ccc;
  }
  
  button {
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    border: none;
    background: #333;
    color: white;
  }
  
  .charts {
    display: flex;
    gap: 20px;
    margin-top: 10px;
  }
  
  .chart {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #444;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .image-carousel {
    display: flex;
    align-items: center;
    margin-top: 10px;
  }
  
  .carousel-window {
    width: 240px;
    height: 250px;
    overflow: hidden;
    border: 1px solid #fff;
    border-radius: 5px;
    margin: 0 5px;
  }
  
  .carousel-track {
    display: flex;
    transition: transform 0.5s ease;
  }
  
  .carousel-track img {
    width: 100%;
    height: auto;
  }
  
  .carousel-btn {
    background: #000000;
    border: solid 1px white;
    color: white;
    border-radius: 50%;
    width: 50px;
    font-size: 1.5rem;
    height: 50px;
    margin: 20px;
  }
  


  /* دکمه خروج/بازگشت */
  .exit-btn {
    position: absolute;
    width: 200px;
    height: 40px;
    top: 250px;   /* موقعیت اولیه */
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50px;
    background: transparent;
    border: 1px solid white;
    cursor: pointer;
    z-index: 20;
    font-family: 'Vazir';
    font-size: 1rem;
    color: white;
    display: flex;  
    align-items: center; 
    justify-content: center; /* وسط‌چین افقی */ 
    text-align: center; /* متن وسط */
    transition: top 0.6s ease, background 0.8s ease, color 0.4s ease;
  }

  /* وقتی به حالت "بازگشت" میره */
  .exit-btn.back-mode {
    top: 300px;   /* 100px پایین‌تر بیاد */
    background: black;
    left: 50%;
    transform: translateX(-50%);
  }







  .charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    justify-items: center;
    margin-top: 20px;
  }
  
  .chart-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
  }
  
  .semicircle {
    width: 120px;
    height: 60px;
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    border: 4px solid white; /* نیم‌دایره توخالی با border سفید */
    border-bottom: none;
    position: relative;
    background: transparent;
  }
  
  .percent-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 20%);
    font-weight: bold;
    font-size: 1rem;
    color: white;
  }
  
  .arrow {
    position: absolute;
    top: -12px;  /* بالای نیم‌دایره */
    left: 50%;
    width: 0; 
    height: 0; 
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 12px solid yellow; /* فلش به سمت پایین */
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(0deg); /* JS مقدار درصدش را rotate می‌کند */
  }
  





  .pay-button-wrapper {
    text-align: center;
    margin-top: 20px;
  }
  
  #pay-button {
    width: 200px;
    height: 40px;
    border-radius: 50px;
    background: transparent;
    border: 1px solid white;
    cursor: pointer;
    z-index: 20;
    font-family: 'Vazir';
    font-size: 1rem;
    color: white;
    display: flex;  
    align-items: center; 
    justify-content: center; /* وسط‌چین افقی */ 
    text-align: center; /* متن وسط */
  }
  
  
  
  #content-text {
    border-radius: 50px;
    border: 1px solid white;
    background: transparent;
    color: white;
    font-family: 'Vazir';
    font-size: 0.9rem;
    display: flex;  
    align-items: center; 
    justify-content: center; /* وسط‌چین افقی */ 
    direction: rtl;
    height: 25px;
    margin: auto;
    padding: 10px 15px; /* فاصله متن و placeholder از گوشه‌ها */
  }

  #submit-content {
    width: 200px;
    height: 40px;
    margin-top: 10px;
    margin-bottom: 20px;
    border-radius: 50px;
    background: transparent;
    border: 1px solid white;
    cursor: pointer;
    z-index: 20;
    font-family: 'Vazir';
    font-size: 1rem;
    color: white;
    display: flex;  
    align-items: center; 
    justify-content: center; /* وسط‌چین افقی */ 
    text-align: center; /* متن وسط */
  }


















  


  #assistant-content {
    flex-direction: column;
    padding: 20px;
    color: white;
    font-family: 'Vazir';
    width: 80%;
    margin: auto;
    top: 50%;
    transform: translateY(-60%);
    z-index: 1000;
    direction: rtl;
  }
  
  .custom-select {
    position: relative;
    width: 100%;
  }
  
  .custom-select .selected {
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid white;
    background: transparent;
    color: #aaa;
    cursor: pointer;
  }
  
  .custom-select.active .selected {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  
  .custom-select .options {
    display: none;
    position: absolute;
    width: 100%;
    background: #222;
    border: 1px solid white;
    border-top: none;
    border-radius: 0 0 12px 12px;
    z-index: 10;
  }
  
  .custom-select .options div {
    padding: 10px;
    cursor: pointer;
    color: white;
  }
  
  .custom-select .options div:hover {
    background: #444;
  }
  
  .custom-select.active .options {
    display: block;
  }
  
  .custom-select.chosen .selected {
    color: white;
  }
  
  


  .custom-dropdown {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
    font-family: 'Vazir';
    color: white;

  }
  
  .dropdown-selected {
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid white;
    cursor: pointer;
    
  }
  
  .dropdown-items {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-radius: 2px;
    display: none;
  }
  
  .dropdown-items div {
    padding: 10px;
    cursor: pointer;
  }
  
  .dropdown-items div:hover {
    background: #1a1a1a;
    
  }
  

  #brand-tone {
    width: 100%;
    border-radius: 50px;
    border: 1px solid white;
    background: transparent;
    font-family: 'Vazir';
    font-size: 1rem;
    cursor: text;
    box-sizing: border-box; /* مهم برای هماهنگی width */
    padding: 10px 20px;
    margin-top: 10px;
  }
  

  #register-tone {
    width: 200px;
    height: 40px;
    margin-top: -20px;
    margin-bottom: 30px;
    border-radius: 50px;
    background: transparent;
    border: 1px solid white;
    cursor: pointer;
    z-index: 20;
    font-family: 'Vazir';
    font-size: 1rem;
    color: white;
    display: flex;  
    align-items: center; 
    justify-content: center; /* وسط‌چین افقی */ 
    text-align: center; /* متن وسط */
  }



  #comment-system {
    width: 200px;
    height: 40px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 50px;
    background: transparent;
    border: 1px solid white;
    cursor: pointer;
    z-index: 20;
    font-family: 'Vazir';
    font-size: 1rem;
    color: white;
    display: flex;  
    align-items: center; 
    justify-content: center; /* وسط‌چین افقی */ 
    text-align: center; /* متن وسط */
  }







































  .pricing-promo {
    padding: 40px 20px;
    display: flex;
    justify-content: center;
  }
  
  .promo-box {
    background: #222;
    border-radius: 5px;
    padding: 24px;
    max-width: 800px;
    width: 95%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
    transition: max-height 2s ease,max-width 2s ease ;
    max-height: 130px; /* ارتفاع اولیه بدون پلن‌ها */
  }
  .promo-text {
    direction: rtl;
    align-self: flex-start; /* متن را به سمت راست بچسبان */
    text-align: right;
  }
  

  

  .promo-box.expand {
    max-height: 2000px; /* ارتفاع نهایی با پلن‌ها */
    max-width: 1000px;

  }
  
  .plans-container {
    display: flex;
    flex-wrap: wrap; 
    align-items: stretch; /* این لازمه */
    gap: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    margin-top: 20px;
    pointer-events: none;
    align-items: stretch;
    justify-content: center; /* باکس‌ها در وسط قرار بگیرن وقتی کم می‌شن */
  }
  
  
  
  .plans-container.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }
  
  .plan-box {
    background: transparent;
    color: white;
    flex: 1 1 140px; /* flex-grow, flex-shrink, flex-basis */
    min-width: 140px; /* حداقل عرض برای جلوگیری از خیلی کوچیک شدن */
    max-width: 240px; /* حداکثر عرض برای تعادل بهتر */
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 2s ease, width 0.3s ease;
    will-change: transform;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

  }
  
  .price {
    font-weight: bold;
    font-size: 18px;
    margin-top: 10px;
  }
  
  

  
  .buy-btn {
    background-color: #424242;
    color: white;
    padding: 7px 20px;
    width: 50px; /* ← یا مقدار ثابت مثل 80px */
    border-radius: 50px;
    text-decoration: none;
    display: block;       /* برای اعمال margin */
    margin: 10px auto 0;  /* ← بالا: 10px، چپ و راست: auto برای وسط‌چینی */
    transition: background-color 0.3s ease;
  }
  
  
  .buy-btn:hover {
    background-color: #505050;
  }
  
  .promo-btn {
    background-color: #424242;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 16px;
    text-decoration: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    white-space: nowrap;
    align-self: flex-start;
    direction: rtl;
  }
  
  .promo-btn.fade-out {
    opacity: 0;
    pointer-events: none;
  }
  
  
  .promo-btn:hover {
    background-color: #505050;
  }
  
  

  .feature {
    display: grid;
    grid-template-columns: 24px 1fr; /* ستون اول برای آیکون با عرض ثابت */
    align-items: center;
    gap: 8px;
    font-size: 16px;
    margin-bottom: 6px;
    direction: rtl;
    text-align: right;
  }
  .icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
  
  
  
  .check {
    color: white; /* رنگ تیک سفید */
  }




































  
  .gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 0 auto;
    max-width: 1000px; /* اختیاری برای محدود کردن */
  }
  
  
  
  
  
  .gallery-item {
    border-radius: 10px;
    overflow: hidden;
    width: 200px;
    height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
  }
  
  .gallery-item:hover {
    transform: scale(1.03);
  }
  
  .gallery-item img {
    width: 100px;
    height: auto;
    object-fit: cover;
    display: block;
  }
  
  .like-count {
    color: #fff;
    padding: 5px;
    font-size: 22px;
    width: 100%;
    text-align: center;
  }
  









  .ai-admin-section {
    padding: 10px 20px;
    text-align: center;
    margin-top: 5%;
    margin-bottom: -3%;
  }
  
  .ai-admin-container {
    max-width: 600px;
    margin: 0 auto;
    display: block; /* مهم: flex نباشه */
  }
  
  .ai-admin-title {
    font-size: 28px;
    color: #fff;
    margin-bottom: 20px;
  }
  
  .ai-admin-text {
    font-size: 20px;
    color: #fff;
    direction: rtl;
    line-height: 1.8;
  }
  
  







  .site-footer {
    background-color: #000000;
    padding: 60px 20px;
    text-align: center;
    color: #ccc;
  }
  
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
  }
  
  .link-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  
  .link-row a {
    color: #aaa;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
  }
  
  .link-row a:hover {
    color: #fff;
  }
  
  .footer-contact p {
    margin: 4px 0;
    font-size: 14px;
    color: #aaa;
  }
  
  .footer-socials {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  
  .footer-socials a img {
    width: 24px;
    height: 24px;
    filter: grayscale(100%) brightness(0.7);
    transition: filter 0.3s;
  }
  
  .footer-socials a:hover img {
    filter: grayscale(0%) brightness(1.2);
  }
  






















  .responsive-box {
    position: relative;
    width: 80vw;
    max-width: 800px;
    min-width: 300px;
    aspect-ratio: 16 / 9;
    background-color: transparent;
    margin: 50px auto;
  }
  
  /* خط بالا */
  .line-top {
    position: absolute;
    top: 10%;
    width: 100%;
    height: auto;
  }
  
  /* خط پایین‌تر */
  .line-bottom {
    position: absolute;
    top: 12%;
    width: 100%;
    height: auto;
  }
  
  /* کنترل در پایین باکس وسط‌چین */
  .control-icon {
    position: absolute;
    top: 10%;
    left: 22%;
    transform: translateX(-50%);
    height: 30%;
    width: auto;
  }

  .lifter-wheel {
    position: absolute;
    top: 10%;
    left: 74.80%;
    transform: translateX(-50%);
    height: 15.8%;
    width: auto;
    will-change: transform;
    z-index: 10;
    animation: wheelSequence 12s ease-in-out infinite 9s; /* تاخیر 0.5 ثانیه */
  }
  
  .lifter-arm {
    position: absolute;
    top: 12%;
    left: 74.25%;
    transform: translateX(-50%);
    height: 28%;
    width: auto;
    will-change: transform;
    z-index: 9;
    animation: armSequence 12s ease-in-out infinite 9s; /* تاخیر 0 ثانیه */
  }
  
  /* بازو: پایین 50px → مکث → بالا → مکث 0.5s → راست 200px → مکث → برگشت */
  @keyframes armSequence {
    0% {
      transform: translateX(0) translateY(0);
    }
    5% {
      transform: translateX(0) translateY(48%);
    }
    15% {
      transform: translateX(0) translateY(48%);
    }
    25.5% {
      transform: translateX(0) translateY(0);
    }
    35% {
      transform: translateX(0) translateY(0);
    }
    44% {
      transform: translateX(158%) translateY(0);
    }
    44% {
      transform: translateX(158%) translateY(0);
    }
    48.889% {
      transform: translateX(0) translateY(0);
    }
    100% {
      transform: translateX(0) translateY(0);
    }
  }
  
  @keyframes wheelSequence {
    0% {
      transform: translateX(0) translateY(0);
    }
    25.5% {
      transform: translateX(0) translateY(0);
    }
    35% {
      transform: translateX(0) translateY(0);
    }
    44% {
      transform: translateX(182%) translateY(0);
    }
    44% {
      transform: translateX(182%) translateY(0);
    }
    48.889% {
      transform: translateX(0) translateY(0);
    }
    100% {
      transform: translateX(0) translateY(0);
    }
  }

  



















  

  .input-box-1, .input-box-2, .input-box-3, .input-box-4, .input-box-5 {
    position: absolute;
    top: 45.5%;
    height: 11%; /* یا هر ارتفاع دلخواه، بهتر از درصد برای کنترل دقیق */
    width: auto;
    z-index: 10;
    opacity: 0;
    animation-fill-mode: forwards;
  }
  
  .input-box-1 { animation-name: animBox1; animation-delay: 0s; }
  .input-box-2 { animation-name: animBox2; animation-delay: 2s; }
  .input-box-3 { animation-name: animBox3; animation-delay: 4s; }
  .input-box-4 { animation-name: animBox4; animation-delay: 6s; }
  .input-box-5 { animation-name: animBox4; animation-delay: 8s; }


  .input-box-1, .input-box-2, .input-box-3, .input-box-4, .input-box-5 {
    animation-duration: 10s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
  }

  @keyframes animBox1 {
    0%   { opacity: 0; transform: translateX(130%); }
    10%  { opacity: 1; transform: translateX(130%); }
    20%  { opacity: 1; transform: translateX(230%); }
    30%  { opacity: 1; transform: translateX(230%); }
    40%  { opacity: 1; transform: translateX(330%); }
    50%  { opacity: 1; transform: translateX(330%); }
    60%  { opacity: 1; transform: translateX(430%); }
    70%  { opacity: 1; transform: translateX(430%); }
    80%  { opacity: 1; transform: translateX(530%); }
    90%  { opacity: 1; transform: translateX(530%); }
    99%  { opacity: 1; transform: translateX(530%); }
    100% { opacity: 0; transform: translateX(530%); }
  }
  
  @keyframes animBox2 {
    0%   { opacity: 0; transform: translateX(130%); }
    10%  { opacity: 1; transform: translateX(130%); }
    20%  { opacity: 1; transform: translateX(230%); }
    30%  { opacity: 1; transform: translateX(230%); }
    40%  { opacity: 1; transform: translateX(330%); }
    50%  { opacity: 1; transform: translateX(330%); }
    60%  { opacity: 1; transform: translateX(430%); }
    70%  { opacity: 1; transform: translateX(430%); }
    80%  { opacity: 1; transform: translateX(530%); }
    90%  { opacity: 1; transform: translateX(530%); }
    99%  { opacity: 1; transform: translateX(530%); }
    100% { opacity: 0; transform: translateX(530%); }
  }
  
  @keyframes animBox3 {
    0%   { opacity: 0; transform: translateX(130%); }
    10%  { opacity: 1; transform: translateX(130%); }
    20%  { opacity: 1; transform: translateX(230%); }
    30%  { opacity: 1; transform: translateX(230%); }
    40%  { opacity: 1; transform: translateX(330%); }
    50%  { opacity: 1; transform: translateX(330%); }
    60%  { opacity: 1; transform: translateX(430%); }
    70%  { opacity: 1; transform: translateX(430%); }
    80%  { opacity: 1; transform: translateX(530%); }
    90%  { opacity: 1; transform: translateX(530%); }
    99%  { opacity: 1; transform: translateX(530%); }
    100% { opacity: 0; transform: translateX(530%); }
  }
  @keyframes animBox4 {
    0%   { opacity: 0; transform: translateX(130%); }
    10%  { opacity: 1; transform: translateX(130%); }
    20%  { opacity: 1; transform: translateX(230%); }
    30%  { opacity: 1; transform: translateX(230%); }
    40%  { opacity: 1; transform: translateX(330%); }
    50%  { opacity: 1; transform: translateX(330%); }
    60%  { opacity: 1; transform: translateX(430%); }
    70%  { opacity: 1; transform: translateX(430%); }
    80%  { opacity: 1; transform: translateX(530%); }
    90%  { opacity: 1; transform: translateX(530%); }
    99%  { opacity: 1; transform: translateX(530%); }
    100% { opacity: 0; transform: translateX(530%); }
  }  
  @keyframes animBox5 {
    0%   { opacity: 0; transform: translateX(130%); }
    10%  { opacity: 1; transform: translateX(130%); }
    20%  { opacity: 1; transform: translateX(230%); }
    30%  { opacity: 1; transform: translateX(230%); }
    40%  { opacity: 1; transform: translateX(330%); }
    50%  { opacity: 1; transform: translateX(330%); }
    60%  { opacity: 1; transform: translateX(430%); }
    70%  { opacity: 1; transform: translateX(430%); }
    80%  { opacity: 1; transform: translateX(530%); }
    90%  { opacity: 1; transform: translateX(530%); }
    99%  { opacity: 1; transform: translateX(530%); }
    100% { opacity: 0; transform: translateX(530%); }
  }  

  
  .output-box-1, .output-box-2, .output-box-3, .output-box-4 {
    position: absolute;
    top: 48%;
    height: 8.5%;
    width: auto;
    z-index: 1;
    opacity: 0;
    animation-duration: 12s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-fill-mode: forwards;
  }
  
  /* جای اولیه‌شون */
  .output-box-1 {
    left: 66%;
    animation-name: animOutput1;
    animation-delay: 0s;
  }
  
  .output-box-2 {
    left: 66%;
    animation-name: animOutput2;
    animation-delay: 2.4s;
  }

  .output-box-3 {
    left: 66%;
    animation-name: animOutput3;
    animation-delay: 4.8s;
  }

  .output-box-4 {
    left: 66%;
    animation-name: animOutput4;
    animation-delay: 7.2s;
  }




  @keyframes animOutput1 {
    0% {
      opacity: 0;
      transform: translateX(-200%);
    }
    10% {
      opacity: 1;
      transform: translateX(-200%);
    }
    20% {
      opacity: 1;
      transform: translateX(-100%);
    }
    30% {
      opacity: 1;
      transform: translateX(-100%);
    }
    40% {
      opacity: 1;
      transform: translateX(30%);
    }
    50% {
      opacity: 1;
      transform: translateX(30%);
    }
    60% {
      opacity: 1;
      transform: translateX(180%);
    }
    70% {
      opacity: 1;
      transform: translateX(180%);
    }
  
    /* تغییر زاویه بین 80% تا 90% */
    80% {
      opacity: 1;
      transform: translateX(300%) rotate(0deg);
    }
    82% {
      opacity: 1;
      transform: translateX(300%) rotate(5deg);
    }
    88% {
      opacity: 1;
      transform: translateX(300%) rotate(5deg);
    }
    89% {
      opacity: 1;
      transform: translateX(305%) rotate(10deg); /* اینجا زاویه تغییر می‌کنه */
    }
    90% {
      opacity: 1;
      transform: translate(310%, 10%) rotate(20deg); /* اینجا زاویه تغییر می‌کنه */
    }
    91% {
      opacity: 1;
      transform: translate(360%, 10%) rotate(30deg); /* اینجا زاویه تغییر می‌کنه */
    }
    92% {
      opacity: 1;
      transform: translate(385%, 20%) rotate(40deg); /* اینجا زاویه تغییر می‌کنه */
    }
    94% {
      opacity: 1;
      transform: translate(480%, 300%) rotate(45deg); /* اینجا زاویه تغییر می‌کنه */
    }
    96% {
      opacity: 1;
      transform: translate(480%, 300%) rotate(45deg); /* اینجا زاویه تغییر می‌کنه */
    }
  
    99% {
      opacity: 0;
      transform: translate(480%, 300%) rotate(45deg); /* اینجا زاویه تغییر می‌کنه */
    }
    100% {
      opacity: 0;
      transform: translateX(0%) rotate(0deg);
    }
  }
  
  
  
  @keyframes animOutput2 {
    0%   { opacity: 0; transform: translateX(-200%); }
    10%  { opacity: 1; transform: translateX(-200%); }
    20%  { opacity: 1; transform: translateX(-100%); }
    30%  { opacity: 1; transform: translateX(-100%); }
    40%  { opacity: 1; transform: translateX(30%); }
    50%  { opacity: 1; transform: translateX(30%); }
    60%  { opacity: 1; transform: translateX(180%); }
    70%  { opacity: 1; transform: translateX(180%); }
    80%  { opacity: 1; transform: translate(180%, -160%); }
    90%  { opacity: 1; transform: translate(180%, -160%); }
    99%  { opacity: 1; transform: translate(400%, -160%); }
    100% { opacity: 0; transform: translate(400%, -160%); }
  }

  @keyframes animOutput3 {
    0% {
      opacity: 0;
      transform: translateX(-200%);
    }
    10% {
      opacity: 1;
      transform: translateX(-200%);
    }
    20% {
      opacity: 1;
      transform: translateX(-100%);
    }
    30% {
      opacity: 1;
      transform: translateX(-100%);
    }
    40% {
      opacity: 1;
      transform: translateX(30%);
    }
    50% {
      opacity: 1;
      transform: translateX(30%);
    }
    60% {
      opacity: 1;
      transform: translateX(180%);
    }
    70% {
      opacity: 1;
      transform: translateX(180%);
    }
  
    /* تغییر زاویه بین 80% تا 90% */
    80% {
      opacity: 1;
      transform: translateX(300%) rotate(0deg);
    }
    82% {
      opacity: 1;
      transform: translateX(300%) rotate(5deg);
    }
    88% {
      opacity: 1;
      transform: translateX(300%) rotate(5deg);
    }
    89% {
      opacity: 1;
      transform: translateX(305%) rotate(10deg); /* اینجا زاویه تغییر می‌کنه */
    }
    90% {
      opacity: 1;
      transform: translate(310%, 10%) rotate(20deg); /* اینجا زاویه تغییر می‌کنه */
    }
    91% {
      opacity: 1;
      transform: translate(360%, 10%) rotate(30deg); /* اینجا زاویه تغییر می‌کنه */
    }
    92% {
      opacity: 1;
      transform: translate(385%, 20%) rotate(40deg); /* اینجا زاویه تغییر می‌کنه */
    }
    94% {
      opacity: 1;
      transform: translate(480%, 300%) rotate(45deg); /* اینجا زاویه تغییر می‌کنه */
    }
    96% {
      opacity: 1;
      transform: translate(480%, 300%) rotate(45deg); /* اینجا زاویه تغییر می‌کنه */
    }
  
    99% {
      opacity: 0;
      transform: translate(480%, 300%) rotate(45deg); /* اینجا زاویه تغییر می‌کنه */
    }
    100% {
      opacity: 0;
      transform: translateX(0%) rotate(0deg);
    }
  }

  @keyframes animOutput4 {
    0% {
      opacity: 0;
      transform: translateX(-200%);
    }
    10% {
      opacity: 1;
      transform: translateX(-200%);
    }
    20% {
      opacity: 1;
      transform: translateX(-100%);
    }
    30% {
      opacity: 1;
      transform: translateX(-100%);
    }
    40% {
      opacity: 1;
      transform: translateX(30%);
    }
    50% {
      opacity: 1;
      transform: translateX(30%);
    }
    60% {
      opacity: 1;
      transform: translateX(180%);
    }
    70% {
      opacity: 1;
      transform: translateX(180%);
    }
  
    /* تغییر زاویه بین 80% تا 90% */
    80% {
      opacity: 1;
      transform: translateX(300%) rotate(0deg);
    }
    82% {
      opacity: 1;
      transform: translateX(300%) rotate(5deg);
    }
    88% {
      opacity: 1;
      transform: translateX(300%) rotate(5deg);
    }
    89% {
      opacity: 1;
      transform: translateX(305%) rotate(10deg); /* اینجا زاویه تغییر می‌کنه */
    }
    90% {
      opacity: 1;
      transform: translate(310%, 10%) rotate(20deg); /* اینجا زاویه تغییر می‌کنه */
    }
    91% {
      opacity: 1;
      transform: translate(360%, 10%) rotate(30deg); /* اینجا زاویه تغییر می‌کنه */
    }
    92% {
      opacity: 1;
      transform: translate(385%, 20%) rotate(40deg); /* اینجا زاویه تغییر می‌کنه */
    }
    94% {
      opacity: 1;
      transform: translate(480%, 300%) rotate(45deg); /* اینجا زاویه تغییر می‌کنه */
    }
    96% {
      opacity: 1;
      transform: translate(480%, 300%) rotate(45deg); /* اینجا زاویه تغییر می‌کنه */
    }
  
    99% {
      opacity: 0;
      transform: translate(480%, 300%) rotate(45deg); /* اینجا زاویه تغییر می‌کنه */
    }
    100% {
      opacity: 0;
      transform: translateX(0%) rotate(0deg);
    }
  }
  

  /* کنترل در پایین باکس وسط‌چین */
  .main-machine {
    position: absolute;
    top: 34%;
    left: 50%;
    transform: translateX(-50%);
    height: 50%;
    width: auto;
    z-index: 10;
  }

  @keyframes rotateGear {
    from {
      transform: translateX(-50%) rotate(0deg);
    }
    to {
      transform: translateX(-50%) rotate(360deg);
    }
  }
  
  .gear-1 {
    position: absolute;
    top: 45%;
    left: 52%;
    transform: translateX(-50%);
    height: 10%;
    width: auto;
    z-index: 11;
    animation: rotateGear 10s linear infinite;
  }
  

  @keyframes rotateGearReverse {
    from {
      transform: translateX(-50%) rotate(0deg);
    }
    to {
      transform: translateX(-50%) rotate(-360deg);
    }
  }
  .gear-2 {
    position: absolute;
    top: 43.9%;
    left: 48%;
    transform: translateX(-50%);
    height: 8%;
    width: auto;
    z-index: 11;
    animation: rotateGearReverse 8s linear infinite;
  }
    
  

  .gear-3 {
    position: absolute;
    top: 51%;
    left: 48.9%;
    transform: translateX(-50%);
    height: 5%;
    width: auto;
    z-index: 11;
    animation: rotateGear 4s linear infinite;
  }
  

  .small-gear-1 {
    position: absolute;
    top: 56.5%;
    left: 15.7%;
    transform: translateX(-50%);
    height: 7%;
    width: auto;
    z-index: 11;
  }

  .small-gear-2 {
    position: absolute;
    top: 56.5%;
    left: 20.7%;
    transform: translateX(-50%);
    height: 7%;
    width: auto;
    z-index: 11;
  }

  .small-gear-3 {
    position: absolute;
    top: 56.5%;
    left: 25.7%;
    transform: translateX(-50%);
    height: 7%;
    width: auto;
    z-index: 11;
  }

  .small-gear-4 {
    position: absolute;
    top: 56.5%;
    left: 30.7%;
    transform: translateX(-50%);
    height: 7%;
    width: auto;
    z-index: 11;
  }

  .small-gear-5 {
    position: absolute;
    top: 56.5%;
    left: 35.7%;
    transform: translateX(-50%);
    height: 7%;
    width: auto;
    z-index: 11;
  }

  .small-gear-6 {
    position: absolute;
    top: 56.5%;
    left: 80.4%;
    transform: translateX(-50%);
    height: 7%;
    width: auto;
    z-index: 11;
  }

  .small-gear-7 {
    position: absolute;
    top: 56.5%;
    left: 75.4%;
    transform: translateX(-50%);
    height: 7%;
    width: auto;
    z-index: 11;
  }

  .small-gear-8 {
    position: absolute;
    top: 56.5%;
    left: 70.4%;
    transform: translateX(-50%);
    height: 7%;
    width: auto;
    z-index: 11;
  }

  .small-gear-9 {
    position: absolute;
    top: 56.5%;
    left: 65.4%;
    transform: translateX(-50%);
    height: 7%;
    width: auto;
    z-index: 11;
  }

  .small-gear-10 {
    position: absolute;
    top: 56.5%;
    left: 60.4%;
    transform: translateX(-50%);
    height: 7%;
    width: auto;
    z-index: 11;
  }

  @keyframes rotateGear {
    from {
      transform: translateX(-50%) rotate(0deg);
    }
    to {
      transform: translateX(-50%) rotate(360deg);
    }
  }
  /* پنج تای اول */
  .small-gear-1,
  .small-gear-2,
  .small-gear-3,
  .small-gear-4,
  .small-gear-5 {
    animation: rotateGear1 2s linear infinite;
  }

  @keyframes rotateGear1 {
    0%, 50% {
      transform: rotate(0deg); /* ایست */
    }
    100% {
      transform: rotate(180deg); /* یک چرخش نصفه در یک ثانیه حرکت */
    }
  }

  /* پنج تای دوم */
  .small-gear-6,
  .small-gear-7,
  .small-gear-8,
  .small-gear-9,
  .small-gear-10 {
    animation: rotateGear2 2.4s linear infinite;
  }

  @keyframes rotateGear2 {
    0%, 50% {
      transform: rotate(0deg); /* ۲ ثانیه ایست */
    }
    100% {
      transform: rotate(180deg); /* ۲ ثانیه حرکت */
    }
  }

    
  .video-icon {
    position: absolute;
    top: 38%;
    left: 22%;
    transform: translateX(-50%);
    height: 11%;
    width: auto;
    z-index: 11;
  }
  












































  .animated-section {
    display: flex;
    flex-direction: row-reverse; /* همه چیز به راست میره */
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: wrap;
    margin-top: 5%;
  }
  
  .text-content {
    flex: 1;
    min-width: 180px;
    margin-top: 20%;
    color: white;
    font-size: 18px;
    line-height: 1.8;
    direction: rtl;
    margin-left: auto; /* این نوشته‌ها رو به سمت چپ می‌بره */
  }
  
  .svg-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: auto; /* سایر بخش‌ها رو به سمت راست می‌بره */
  }
  
  .animation-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
  }
  
  .anim {
    position: absolute;
    width: 50%;
    height: auto;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    animation: slideDown 6s linear infinite;
  }
  
  .anim2 {
    animation-delay: 3s;
  }
  
  @keyframes slideDown {
    0%   { top: -100%; }
    50%  { top: 100%; }
    100% { top: 100%; }
  }
  
  .overlay-logo {
    position: absolute;
    z-index: 10;
    top: 200px;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }
  
  .main-logo {
    width: 40%;
    height: auto;
  }
  
  /* 📱 نمایش موبایل: انیمیشن بره بالا */
  @media (max-width: 768px) {
    .animated-section {
      margin-top: 150%;
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  
    .svg-wrapper {
      margin-bottom: 20px;
    }
  }
  
  
  
  .space-170px {
    margin-bottom: 170px;
  }
  
  .space-60px {
    margin-top: -10px;
  }
  

  .space-top {
    margin-top: 500px;
  }
  






















































  .custom-svg-box {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 200px auto; /* اختیاری: وسط‌چین افقی */
    margin-bottom: 500px;
  }

  .custom-svg-box svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .svg-bottom {
    z-index: 1;
    width: 35%;
    height: auto;
  }

  .svg-top {
    width: 25%;
    height: auto;
  }

  .svg-middle {
    z-index: 4;
    margin-left: 2%;
    margin-top: 9.7%;
    width: 55%;
    height: auto;
  }


  .svg-wrapper-2 {
    transform-origin: center center; /* مرکز wrapper */
    animation: pulse 2s infinite;
    z-index: 3;
    position: relative;
    width: 32%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    left: 36%;
    transform: translateX(-50%);
  }
  
  

  
  @keyframes pulse {
    0%   { transform: scale(1); }
    90%  { transform: scale(1); }
    95%  { transform: scale(1.1); }
    100% { transform: scale(1); }
  }
  




























  .video-icon {
    animation: moveDownLoop 2s infinite;
    left: 19%;
    z-index: 9;
  }
  
  @keyframes moveDownLoop {
    0% {
      transform: translateY(0);
      opacity: 1;
    }
    40% {
      transform: translateY(80%);
      opacity: 1;
    }
    45% {
      transform: translateY(80%);
      opacity: 0;
    }
    55% {
      transform: translateY(0);
      opacity: 0;
    }
    60% {
      transform: translateY(0);
      opacity: 0;
    }
    90% {
      transform: translateY(0);
      opacity: 0;
    }
    100% {
      transform: translateY(0);
      opacity: 1;
    }
  }
  






















































  .garbage-icon {
    position: absolute; /* یا fixed */
    z-index: 200000;
    width: 11%;
    height: auto;
    right: 0;
    margin-right: 1%; /* فاصله از راست */
    margin-top: 37%;
  }
  








  
  .prada-machine {
    position: absolute; /* یا fixed */
    z-index: 20000;
    left: 0;
    width: 100%;
    height: auto;
    margin-left: -2%; /* فاصله از راست */
    margin-top: 37%;
  }














  .prada-smoke {
    position: absolute; /* یا fixed */
    z-index: 2000;
    left: 0;
    width: 35%;
    height: auto;
    margin-left: -11%; /* فاصله از راست */
    margin-top: 71%;
  
    opacity: 0;
    animation: smokeBlink 3s infinite;
  }
  
  @keyframes smokeBlink {
    0% { opacity: 0; }
    4.5% { opacity: 0; }   
    5% { opacity: 1; }   
    6% { opacity: 0; }  
    7% { opacity: 1; }  
    8% { opacity: 0; }  
    8% { opacity: 1; }  
    90% { opacity: 1; } 
    91% { opacity: 0; }
    92% { opacity: 1; }
    93% { opacity: 0; }
  }
  












  .svg-carousel {
    position: relative;
    width: 24.5%; 
    height: 100%; 
    overflow: hidden;
    top: 123%;
    z-index: 10000;
    margin-left: -6%;
  }

  .svg-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    
  }

  .svg-slide.active {
    animation: smokeBlink2 3s linear forwards; /* فقط وقتی active شد */

  }

  @keyframes smokeBlink2 {
    0% { opacity: 0; }
    4.5% { opacity: 0; }   
    5% { opacity: 1; }   
    6% { opacity: 0; }  
    7% { opacity: 1; }  
    8% { opacity: 0; }  
    8% { opacity: 1; }  
    90% { opacity: 1; } 
    91% { opacity: 0; }
    92% { opacity: 1; }
    93% { opacity: 0; }
  }

  









  .text-content-content {
    flex: 1;
    width: 40%;
    color: white;
    font-size: 1.1rem;
    line-height: 1.8;
    direction: rtl;
    z-index: 100;
    margin-left: 38%;
    margin-top: 14%;
  }


  @media (max-width: 768px) {
    .text-content-content {
      margin-left: 0;
      position: absolute;
      width: 60%;
      margin-top: 20%;
      left: 50%;
      transform: translateX(-30%);
    }
    
  }






















  #scroll-indicator {
    position: fixed;
    bottom: 3%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;

    display: flex;             
    flex-direction: column;
    align-items: center;       
    justify-content: center;   
  }

  #scroll-indicator.show {
    opacity: 1;
    animation: fadeBlink 8s infinite;  
  }

  #scroll-indicator svg {
    width: 50px;
    height: auto;   
    display: block;
    margin: 0;      
    padding: 0;
    margin-bottom: -5px;
  }

  #line1, #line2 {
    stroke: white;
    opacity: 0;
  }

  #scroll-indicator.show #line1 {
    animation: showLine 0.5s forwards;
  }
  #scroll-indicator.show #line2 {
    animation: showLine 0.5s forwards 0.5s;
  }

  @keyframes showLine {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
  }

  #scroll-text {
    margin-bottom: 5px;
    opacity: 0;
    font-family: 'Vazir';
    font-size: 0.9rem;
  }

  #scroll-indicator.show #scroll-text {
    animation: fadeBounce 1s forwards 1s, bounce 1s infinite alternate 2s;
  }

  @keyframes fadeBounce {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
  }

  @keyframes fadeBlink {
    0%  { opacity: 0; }
    5%  { opacity: 0.1; }
    10% { opacity: 0.2; }
    15% { opacity: 0.3; }
    20% { opacity: 0.4; }
    25% { opacity: 0.5; }
    30% { opacity: 0.6; }
    35% { opacity: 0.7; }
    40% { opacity: 0.8; }
    45% { opacity: 0.8; }
    50% { opacity: 0.7; }
    55% { opacity: 0.6; }
    60% { opacity: 0.5; }
    65% { opacity: 0.4; }
    70% { opacity: 0.3; }
    75% { opacity: 0.2; }
    80% { opacity: 0.1; }
    85% { opacity: 0; }
    90% { opacity: 0; }
    95% { opacity: 0; }
    100%{ opacity: 0; }
  }















































































  /* پنل اسلایدی */
  #authPanel {
    position: fixed;
    top: 11%;
    right: -100%;
    width: 100%;
    height: 90%;
    background: #000;
    transition: right 0.6s ease;
    z-index: 3;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  #authPanel.active { right: 0; }

  .auth-btn {
    font-size: 1.1rem;
    border: 1px solid #ffffff;
    width: 325px;
    padding: 10px;
    border-radius: 50px;
    margin-bottom: 20px;
    background: #000;
    color: #ffffff;
    cursor: pointer;
    font-family: 'Vazir';
    direction: rtl;
  }

  /* دکمه اصلی */
  .svg-container {
    position: relative;
    margin-left: 32%;
    cursor: pointer;
  }

  #cta-text {
    color: #ffffff;
    font-size: 18px;
    text-decoration: none;
    transition: opacity 0.5s ease;
    position: absolute; /* متن جدا از آیکن */
  }

  #final-box {
    position: absolute;
    top: 15.5%;
    left: 25px;
    width: 250px;
    height: 43px;
    border: 1px solid #3a3a3a;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: width 0.8s ease, border-radius 0.8s ease;
    overflow: hidden;
  }

  /* حالت دایره عمومی */
  #final-box.circle {
    width: 43px;
    height: 43px;
    border-radius: 50%;
  }

  /* متن در حالت دایره پنهان می‌شود */
  #final-box.circle #cta-text {
    opacity: 0;
    pointer-events: none;
  }

  /* متن در حالت باکس (نمایان با تاخیر نیم‌ثانیه) */
  #final-box.box #cta-text {
    opacity: 1;
    transition: opacity 0.5s ease;
  }


  /* آیکن مشترک */
  #icon {
    width: 24px;
    height: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
  }

  /* در حالت دایره آیکن دیده می‌شود */
  #final-box.circle #icon { opacity: 1; }
  /* در حالت باکس آیکن خاموش است */
  #final-box.box #icon { opacity: 0; }

  /* نمایش/عدم نمایش انواع آیکن */
  #icon .icon-login, #icon .icon-close { 
    display: none; 
  }

  /* دایره حالت عادی (ورود) → آیکن ورود */
  #final-box.circle:not(.is-exit) #icon .icon-login { display: block; }
  /* دایره حالت خروج (وقتی پنل باز است) → آیکن ضربدر */
  #final-box.circle.is-exit #icon .icon-close { display: block; }

  /* مستطیل SVG اولیه */
  #animated-rect {
    fill: none;
    stroke: #ffffff;
    stroke-width: 0.3;
    rx: 0; ry: 0;
    stroke-dasharray: 586;
    stroke-dashoffset: 586;
    transition: stroke-dashoffset 2s linear; /* linear برای سرعت ثابت */
  }



  #close-svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;       /* رنگ خطوط */
    stroke-width: 0.9;   /* ضخامت */
    display: block;
    margin: auto;        /* وسط‌چین در دایره */
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s;
  }
  
  #close-svg.show {
    opacity: 1;
    transform: rotate(90deg); /* انیمیشن چرخش هنگام ظاهر شدن */
  }
  

  #loginFormContainer {
    display: none;
    flex-direction: column;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    width: 300px;
    align-items: center;
    margin-top: -150px;
    direction: rtl;
  }
  
  #loginFormContainer.active {
    display: flex;      /* این خط الزامی است */
    opacity: 1;
    transform: translateY(0);
  }
  

  /* کاهش ارتفاع دکمه‌ها */
  .auth-btn {
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  /* دکمه اصلی پایین برود */
  .auth-btn.login.moved-down {
    transform: translateY(65%);
  }




  #loginFormContainer input {
    width: 100%;
    padding: 12px;
    border: none;
    background: #222;
    border-radius: 14px;
    color: white;
    font-family: 'Vazir';
  }




  /* وقتی دکمه گسترش پیدا می‌کنه */
  .auth-btn.expanded-box-center {
    align-items: flex-start; /* محتوا داخل باکس بالا قرار بگیره */
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);


  }




























































/* فرم ثبت نام وسط صفحه */
#registerFormContainer {
  top: 50%;               /* وسط عمودی */
  transform: translateY(-70%); /* جبران مختصات */
  transition: opacity 0.5s ease, transform 0.5s ease;
}









  /* فرم ثبت نام */
  #registerFormContainer input {
    width: 325px;
    padding: 12px;
    border: none;
    background: #222;
    border-radius: 14px;
    color: white;
    font-family: 'Vazir';
    margin: auto; /* افقی وسط */
    direction: rtl;
  }

  #registerFormContainer input:focus {
    border: 1px solid #ffffff;
    outline: none;
  }
  

  /* OTP container */
  #otpContainer {
    justify-content: center;
    gap: 10px;
    transform: translateY(-150%); /* جبران مختصات */
  }

  /* باکس‌های OTP */
  .otpInput {
    width: 45px;
    height: 45px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border-radius: 10px;
    border: 1px solid #fff;
    background: #111;
    color: #fff;
    transition: all 0.3s ease;
  }

  .otpInput:focus {
    border-color: #4caf50;
    outline: none;
    box-shadow: 0 0 5px #4caf50;
  }

  /* پیام‌ها */
  #message {
    color: #fff;
    font-size: 16px;
    margin-top: 15px;
    text-align: center;
    font-family: 'Vazir';
    transition: opacity 0.5s ease;
  }

  /* افکت‌های ورود/خروج فرم‌ها */
  #registerFormContainer,
  #otpContainer {
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  #registerFormContainer.show,
  #otpContainer.show {
    opacity: 1;
  }

  #otpContainer {
    margin-top: -40px;
  }



  /* وقتی وارد مرحله OTP شد کمی بالاتر بره */
  .register.move-up-otp {
    transform: translateY(250px); /* کمتر از move-down */
    transition: transform 0.6s ease;
  }

  /* استایل پایه دکمه */




  





























































  /* ظرف دکمه */
  .svg-button {
    width:var(--btn-w);
    height:var(--btn-h);
    border-radius:12px;
    background:transparent;
    display:inline-grid;
    place-items:center;
    position:absolute;
    cursor:pointer;
    border:0;
    padding:0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    left: 50%;
    transform: translateX(-56%);
    margin-top: -250px;
    z-index: 10;
  }
  
  
  /* قاب داخلی برای هم‌ترازی svg و متن */
  .svg-button__inner{
    width:200px; 
    height:auto; 
    display:flex; 
    align-items:center; 
    justify-content:center; 
    transition: opacity 1s ease;

  }
  
  
  /* خودِ SVG — قابل transition برای fade و حرکت */
  .svg-button svg{
    width:calc(100% - 20px);
    height:calc(100% - 20px);
    transition: opacity 1s ease;
    transform-origin:center center;
    pointer-events:none; /* کلیک‌ها روی دکمه گرفته شوند، نه روی خود svg */
    display:block;
    opacity:1;

  }
  
  
  /* کلاس fade برای محو شدن آرام */
  .svg-button.fading svg{
    opacity:0;
  }
  
  
  /* متن "به زودی!" که جایگزین می‌شود */
  .coming-soon {
    position:absolute;
    margin-top: 50px;
    display:flex;
    align-items:center;
    justify-content:center;
    pointer-events:none;
    opacity:0;
    transition: opacity 1s ease;
    font-family: 'Vazir';
    font-size:26px;
    color:#ffffff;
    direction:rtl;
  }
  
  
  .svg-button.show-text .coming-soon{
    opacity:1;
  }


























































  .triplebox-container {
    font-family: 'Vazir';
    gap: 20px;
    width: 400px;
    margin: auto;
    position: absolute;
    margin-top: -510px;
    left: 50%;
    transform: translateX(-40%);
    direction: rtl;
    z-index: 10;
  }
  
  .triplebox-item {
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
  }
  
  .triplebox-title, .triplebox-text {
    color: #fff;
    margin: 0 0 10px 0;
    opacity: 0;
  }
  
  #zoomBox {
    margin-top: -220px;
    position: absolute;
    height: 80px;
    width: 350px;
    padding: 10px;
    color: #fff;
    font-family: 'Vazir';
    border-radius: 14px;
    overflow: hidden;
    cursor: none;
    font-size: 1.3rem;
  }
  
  .magnifier {
    position: absolute;
    pointer-events: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.8);
    box-shadow: 0 0 8px rgba(0,0,0,0.4);
    display: none;
  }
  
  .magnifier span {
    margin-top: 50px;
    position: absolute;
    transform: scale(1.3);
    transform-origin: top left;
    white-space: nowrap; /* جلوگیری از شکستن خط */
  }
  
  
  .triplebox-item:hover .cursor-circle {
    width: 25px;  /* کمی بزرگ‌تر هنگام hover */
    height: 25px;
  }
  
  .triplebox-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
  }
  
  .triplebox-text {
    font-size: 14px;
    line-height: 1.8;
    color: #ffffff;
  }































  /* کانتینر اصلی */
  #uniqueAnim_container {
    width: 42px;
    height: 42px;
    overflow: hidden;
    position: relative;
    border: 4px solid #fff;
    border-radius: 12px;
  }

  /* باکس کوچک متحرک */
  #uniqueAnim_movingBox {
    position: absolute;
    top: 60%;
    left: 100%;
    width: 50px;
    height: 50px;
    transform: translateY(-50%);
  }

  /* SVG داخلی */
  #uniqueAnim_svg {
    width: 55px;
    height: 55px;
  }

  /* مستطیل داخل SVG */
  #uniqueAnim_rect {
    width: 40px;
    height: 40px;
    fill: url(#uniqueAnim_pattern);
  }


































































  .pixelpass-outer {
    width: 80px;   /* دقیقا به اندازه یک آیتم */
    height: 100px;
    background: black;
    overflow: hidden;
    position: absolute;
    margin-right: 130px;
    margin-top: 7px;
    z-index: -1;
  }
  
  .pixelpass-track {
    display: flex;
    align-items: center;
    animation: pixelpass-scroll 20s linear infinite;
  }
  
  .pixelpass-item {
    display: flex;
    align-items: center;
    font-family: "Pixelon";
    font-size: 18px;
    color: white;
    margin-right: 80px; /* فاصله بین آیتم‌ها */
  }
  
  .pixelpass-item img {
    width: 30px;
    height: auto;
  }
  
  /* انیمیشن حرکت دقیق به ازای هر آیتم */
  @keyframes pixelpass-scroll {
    0%   { transform: translateX(0); opacity: 1; }
    10%   { transform: translateX(0); opacity: 1;}
    

    20%  { transform: translateX(80px); opacity: 1;}
    30%  { transform: translateX(80px); opacity: 1;}

    40%  { transform: translateX(220px); opacity: 1;}
    50%  { transform: translateX(220px); opacity: 1;}

    60%  { transform: translateX(360px); opacity: 1;}
    70%  { transform: translateX(360px); opacity: 1;}

    80%  { transform: translateX(500px); opacity: 1;}
    90%  { transform: translateX(500px); opacity: 1;}
    99% { transform: translateX(500px); opacity: 1; } 

    100% { transform: translateX(0); opacity: 0; } 
  }
  



































  @keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.1; }
    100% { opacity: 1; }
  }
  .resend-blink {
    animation: blink 5s infinite;
    cursor: pointer;
    color: #007BFF; /* رنگ لینک */
    font-weight: bold;
  }
  



  .site-footer{margin-top:40px;padding:24px;text-align:center;color:var(--muted);font-size:14px;direction: rtl}
  .novone-link{display:inline-block;margin:0 6px;vertical-align:middle}
  .novone-logo{height:28px;width: auto;}