/* /app/assets/css/app.css */

/**
*
*	Name:			Doran Fonts
*	Version:			2.5
*	Author:			Fereshte Iranshahi, Reza Bakhtiarifard & Ehsan (Daniel) Roudi
*	Created on:		August 2025
*	Updated on:		August 2025
*	Vendor:			http://fontiran.com
*	Copyright:		Commercial/Proprietary Software
--------------------------------------------------------------------------------------
فونت دوران یک نرم افزار مالکیتی محسوب می شود. جهت آگاهی از قوانین استفاده از این فونت ها لطفا به وب سایت (فونت ایران دات کام) مراجعه نمایید
--------------------------------------------------------------------------------------
Doran fonts are considered a proprietary software. To gain information about the laws regarding the use of these fonts, please visit www.fontiran.com 
--------------------------------------------------------------------------------------
This set of fonts are used in this project under the license: (.....)
------------------------------------------------------------------------------------- fonts/-
*	
**/


@font-face {
	font-family: Doran;
	font-style: normal;
	font-weight: 100;
	src: url('/assets/fonts/webfonts/DoranFaNum-Thin.woff') format('woff'),   
	url('woff2/DoranFaNum-Thin.woff2') format('woff2');		
}

@font-face {
	font-family: Doran;
	font-style: normal;
	font-weight: 300;
	src: url('/assets/fonts/webfonts/DoranFaNum-Light.woff') format('woff'),   
	url('woff2/DoranFaNum-Light.woff2') format('woff2');	
}

@font-face {
	font-family: Doran;
	font-style: normal;
	font-weight: normal;
	src: url('/assets/fonts/webfonts/DoranFaNum-Regular.woff') format('woff'),   
	url('woff2/DoranFaNum-Regular.woff2') format('woff2');		 
}

@font-face {
	font-family: Doran;
	font-style: normal;
	font-weight: 500;
	src: url('/assets/fonts/webfonts/DoranFaNum-Medium.woff') format('woff'),   
	url('woff2/DoranFaNum-Medium.woff2') format('woff2');		 
}

@font-face {
	font-family: Doran;
	font-style: normal;
	font-weight: bold;
	src: url('/assets/fonts/webfonts/DoranFaNum-Bold.woff') format('woff'),   
	url('woff2/DoranFaNum-Bold.woff2') format('woff2');		 
}

@font-face {
	font-family: Doran;
	font-style: normal;
	font-weight: 800;
	src: url('/assets/fonts/webfonts/DoranFaNum-ExtraBold.woff') format('woff'),   
	url('woff2/DoranFaNum-ExtraBold.woff2') format('woff2');	 
}

@font-face {
	font-family: Doran;
	font-style: normal;
	font-weight: 800;
	src: url('/assets/fonts/webfonts/DoranFaNum-Black.woff') format('woff'),   
	url('woff2/DoranFaNum-Black.woff2') format('woff2');	 
}

@font-face {
	font-family: Doran;
	font-style: normal;
	font-weight: 800;
	src: url('/assets/fonts/webfonts/DoranFaNum-ExtraBlack.woff') format('woff'),   
	url('woff2/DoranFaNum-ExtraBlack.woff2') format('woff2');	 
}

@font-face {
	font-family: Doranc;
	font-style: normal;
	font-weight: 100;
	src: url('/assets/fonts/webfonts/DoranClassicDotsFaNum-Thin.woff') format('woff'),   
	url('woff2/DoranClassicDotsFaNum-Thin.woff2') format('woff2');		
}

@font-face {
	font-family: Doranc;
	font-style: normal;
	font-weight: 300;
	src: url('/assets/fonts/webfonts/DoranClassicDotsFaNum-Light.woff') format('woff'),   
	url('woff2/DoranClassicDotsFaNum-Light.woff2') format('woff2');	
}

@font-face {
	font-family: Doranc;
	font-style: normal;
	font-weight: normal;
	src: url('/assets/fonts/webfonts/DoranClassicDotsFaNum-Regular.woff') format('woff'),   
	url('woff2/DoranClassicDotsFaNum-Regular.woff2') format('woff2');		 
}

@font-face {
	font-family: Doranc;
	font-style: normal;
	font-weight: 500;
	src: url('/assets/fonts/webfonts/DoranClassicDotsFaNum-Medium.woff') format('woff'),   
	url('woff2/DoranClassicDotsFaNum-Medium.woff2') format('woff2');		 
}

@font-face {
	font-family: Doranc;
	font-style: normal;
	font-weight: bold;
	src: url('/assets/fonts/webfonts/DoranClassicDotsFaNum-Bold.woff') format('woff'),   
	url('woff2/DoranClassicDotsFaNum-Bold.woff2') format('woff2');		 
}

@font-face {
	font-family: Doranc;
	font-style: normal;
	font-weight: 800;
	src: url('/assets/fonts/webfonts/DoranClassicDotsFaNum-ExtraBold.woff') format('woff'),   
	url('woff2/DoranClassicDotsFaNum-ExtraBold.woff2') format('woff2');	 
}

@font-face {
	font-family: Doranc;
	font-style: normal;
	font-weight: 800;
	src: url('/assets/fonts/webfonts/DoranClassicDotsFaNum-Black.woff') format('woff'),   
	url('woff2/DoranClassicDotsFaNum-Black.woff2') format('woff2');	 
}

@font-face {
	font-family: Doranc;
	font-style: normal;
	font-weight: 800;
	src: url('/assets/fonts/webfonts/DoranClassicDotsFaNum-ExtraBlack.woff') format('woff'),   
	url('woff2/DoranClassicDotsFaNum-ExtraBlack.woff2') format('woff2');	 
}



@font-face {
  font-family: Vazirmatn;
  src: url('/assets/fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: Vazirmatn;
  src: url('/assets/fonts/webfonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: Vazirmatn;
  src: url('/assets/fonts/webfonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: Awesome;
  src: url('/assets/fonts/fa-brands-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: Awesome;
  src: url('/assets/fonts/fa-regular-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: Awesome;
  src: url('/assets/fonts/fa-solid-900.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: Awesome;
  src: url('/assets/fonts/fa-v4compatibility.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}


/* کل اپ فونت وزیر داشته باشه */

html,
body {
  font-family: Vazirmatn, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif !important;
}

/* همه‌ی المان‌های داخل اپ هم از همون فونت ارث ببرن */

body *,
#app-root,
#app-root * {
  font-family: inherit ;
}

/* مخصوصاً فرم‌ها و دکمه‌ها که بعضی مرورگرها فونت خودشون رو می‌زنن */

button,
input,
textarea,
select {
  font-family: inherit !important;
}

:root {
  /* حالت پیش‌فرض: روشن */
  color-scheme: light;
  --bg1: #dadada12;           /* پس‌زمینه کلی */
  --bg: #f5f7fb;           /* پس‌زمینه کلی */
  --btbg: #f5f7fba3;           /* پس‌زمینه کلی */
  --bg-soft: #f9fafb;      /* پس‌زمینه نرم کارت‌ها */
  --card: #ffffffd9;         /* کارت‌ها / مودال‌ها */
  --card2: #fffffff7;         /* کارت‌ها / مودال‌ها */
  --card3: #eaeaea3d;
  --muted: #6b7280;        /* متن ثانویه */
  --text: #0f172a;         /* متن اصلی */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --line: #e5e7eb;
  --danger: #ef4444;
  --ok: #16a34a;
  --plan-title: #ea580c;

  --shadow-soft: 0 10px 25px rgba(2, 6, 23, 0.06);
  --shadow-strong: 0 24px 60px rgba(15, 23, 42, 0.18);
  
  --bg-load: rgba(35, 37, 41, 0.55);
  --prog: #e5e7eb;

  --app-header-height: 64px;
  --app-bottom-nav-height: 64px;
}

/* حالت تیره */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg1: #45454512;           /* پس‌زمینه کلی */
  --bg: #212121;          /* پس‌زمینه صفحه */
  --btbg: #21212182;          /* پس‌زمینه صفحه */
  --bg-soft: #212121;     /* پس‌زمینه نرم (مثلاً پنل) */
  --card: #181818bd;        /* کارت‌ها / مودال‌ها */
  --card2: #181818f5;        /* کارت‌ها / مودال‌ها */
  --card3: #1c2b3b3d;
  --text: #8d8d8d;
  --muted: #9ca3af;
  --primary: #38bdf8;
  --primary-dark: #0ea5e9;
  --line: #1f2937;
  --danger: #f97373;
  --ok: #22c55e;
  --plan-title: #fdba74;

  --shadow-soft: 0 18px 35px rgba(0, 0, 0, 0.7);
  --shadow-strong: 0 30px 80px rgba(0, 0, 0, 0.9);
  --bg-load: rgba(35, 37, 41, 0.55);
  --prog: #313131;
}


/* ============================
   Modal theme tokens (dark / light)
   ============================ */

html[data-theme="dark"] {
  --modal-bg-color: #18181B;
  --modal-text-color: #A1A1AA;

  --modal-card-bg: rgba(255, 255, 255, .015);
  --modal-card-border: rgba(255, 255, 255, 0.1);
  --modal-card-box-shadow-1: rgba(0, 0, 0, 0.05);
  --modal-card-box-shadow-1-y: 3px;
  --modal-card-box-shadow-1-blur: 6px;
  --modal-card-box-shadow-2: rgba(0, 0, 0, 0.1);
  --modal-card-box-shadow-2-y: 8px;
  --modal-card-box-shadow-2-blur: 15px;

  --modal-card-shine-opacity: .12;
  --modal-card-shine-gradient: conic-gradient(
    from 205deg at 50% 50%,
    rgba(16, 185, 129, 0) 0deg,
    #10B981 25deg,
    rgba(52, 211, 153, 0.18) 295deg,
    rgba(16, 185, 129, 0) 360deg
  );

  --modal-card-line-color: #2A2B2C;
  --modal-card-tile-color: rgba(16, 185, 129, 0.05);

  --modal-hover-border: rgba(255, 255, 255, 0.2);
}

html[data-theme="light"] {
  --modal-bg-color: #FAFAFA;
  --modal-text-color: #52525B;

  --modal-card-bg: transparent;
  --modal-card-border: rgba(24, 24, 27, 0.08);
  --modal-card-box-shadow-1: rgba(24, 24, 27, 0.02);
  --modal-card-box-shadow-1-y: 3px;
  --modal-card-box-shadow-1-blur: 6px;
  --modal-card-box-shadow-2: rgba(24, 24, 27, 0.04);
  --modal-card-box-shadow-2-y: 2px;
  --modal-card-box-shadow-2-blur: 7px;

  --modal-card-shine-opacity: .3;
  --modal-card-shine-gradient: conic-gradient(
    from 225deg at 50% 50%,
    rgba(16, 185, 129, 0) 0deg,
    #10B981 25deg,
    #EDFAF6 285deg,
    #FFFFFF 345deg,
    rgba(16, 185, 129, 0) 360deg
  );

  --modal-card-line-color: #E9E9E7;
  --modal-card-tile-color: rgba(16, 185, 129, 0.08);

  --modal-hover-border: rgba(24, 24, 27, 0.15);
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Vazirmatn, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  height: 100%;
}

/* پس‌زمینه ملایم دسکتاپ */
@media (min-width: 1024px) {
  body {
    position: relative;
    /*background: transparent;*/
  }
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
      radial-gradient(circle at 20% 30%, rgba(37,99,235,.22) 0%, rgba(255,255,255,0) 60%),
      radial-gradient(circle at 80% 20%, rgba(16,185,129,.18) 0%, rgba(255,255,255,0) 60%),
      radial-gradient(circle at 50% 80%, rgba(168,85,247,.16) 0%, rgba(255,255,255,0) 60%),
      linear-gradient(115deg, #f8fafc 0%, #eef2ff 50%, #f9fafb 100%);
    background-size: 140% 140%;
    animation: bgFloat 5s ease-in-out infinite;
  }
}

@keyframes bgFloat {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 80%;
  }
  100% {
    background-position: 0% 0%;
  }
}

.hidden {
  display: none !important;
}

/* ریشه اپ */
.app-root {
  height: 100vh;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .app-root {
    height: 90vh;
    min-height: calc(100vh - 32px);
    margin: 16px auto;
    padding-bottom: 0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 40%, var(--card) 60%);
    backdrop-filter: blur(10px);
  }
}

@media (max-width: 1010px) {
  html,
  body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
  }

  /* اپ تمام صفحه رو بگیره، بدون حاشیه و بدون گوشه گرد */
  #app-root {
    width: 100vw;
    max-width: 100vw;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
  }

  /* نوار بالا، محتوای وسط و نوار پایین گوشه گرد نداشته باشن */
  .site-header,
  .app-header,
  .main-layout,
  .view,
  .bottom-nav {
    border-radius: 0 !important;
  }

  /* اگر جایی باکس سفید گرد داری که کل صفحه رو گرفته، اینو هم می‌تونی بزنی */
  .page-card,
  .layout-card {
    border-radius: 0 !important;
    margin: 0;
  }
}

/* هدر همیشه بالا */
.app-header {
  position: fixed;
  inset-inline-start: 0;
  inset-inline-end: 0;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--card) 92%, var(--bg) 8%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

/* گوشه گرد هدر روی سیستم/تبلت */
@media (min-width: 768px) {
  .app-header {
    border-radius: 22px 22px 0 0;
  }
}

.app-header__brand {
  display: flex;
  align-items: center;
  gap: 5px;
}

.app-header__logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.app-header__logo img {
  width: 100%;
  height: 85%;
  object-fit: contain;
}

.app-header__texts {
  display: flex;
  flex-direction: column;
}

.app-header__title {
  font-weight: 800;
  font-size: 16px;
}

.app-header__subtitle {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.app-header__actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

/* main وسط صفحه اسکرول شود */
.app-main {
  flex: 1 1 auto;
  padding: 12px 12px 12px;
  padding-top: var(--app-header-height);
  padding-bottom: var(--app-bottom-nav-height);
  height: 100vh;
  box-sizing: border-box;
  overflow-y: auto;
}

/* روی موبایل هم هیچ‌چیز از عرض بیرون نزنه */
@media (max-width: 600px) {
  .app-main {
    padding-inline: 8px;
  }
}

.view-container {
  width: 100%;
  margin-top: 10px;
  max-width: 100%;
  min-height: 95%;
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 25px rgba(2,6,23,.06);
  overflow: hidden;
  padding: 16px;
  transition: transform .15s ease, opacity .15s ease;
}

/* روی سیستم: چون خود app-root کارت شده، ظرف داخلی رو ساده‌تر کنیم */
@media (min-width: 768px) {
  .view-container {
    border: none;
    box-shadow: none;
    padding: 5px 5px 5px;
  }
}

/* bottom nav – چسبیده پایین */
.app-bottom-nav {
  position: fixed;
  inset-inline-start: 0;
  inset-inline-end: 0;
  bottom: -1px;
  z-index: 50;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  gap: 6px;
  padding: 6px 10px 10px;
  background: color-mix(in srgb, var(--card) 94%, var(--bg) 6%);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

/* گوشه گرد منوی پایین روی سیستم/تبلت */
@media (min-width: 768px) {
  .app-bottom-nav {
    border-radius: 0 0 22px 22px;
  }
}

.bottom-nav-item {
    height: 40px;
    justify-content: center;
  flex: 1;
  border: none;
  background: transparent;
  border-radius: 10px;
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .08s ease;
}

.bottom-nav-item__icon {
  font-size: 18px;
}

.bottom-nav-item__label {
  line-height: 1.2;
}

.bottom-nav-item.is-active {
  color: var(--primary);
  transform: translateY(-1px);
}

/* باتن‌ها */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease, transform .08s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn--sm {
  font-size: 12px;
  padding: 6px 12px;
}

.btn--xs {
  padding: 4px 8px;
  font-size: 11px;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(37,99,235,.4);
}

.btn--ghost:hover {
  background: #2563eb10;
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn--outline:hover {
  background: #2563eb10;
}

.btn--block {
  width: 100%;
}

/* دکمه خطر (خروج / QR) */
.btn--danger {
  background-color: var(--danger);
  color: #fff;
}
.btn--danger:hover {
  background-color: color-mix(in srgb, var(--danger) 80%, #000 20%);
}

/* ویوها */

.view {
  width: 100%;
}

.view-header {
  margin-bottom: 16px;
  text-align: right;
}

.view-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
}

.view-sub {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

/* سکشن‌ها و باکس‌ها */

.home-section,
.panel-section,
.help-section {
  margin-bottom: 16px;
}

.home-box,
.card {
  border-radius: 16px;
  /*padding: 5px 5px;*/
}

.section-title {
  font-size: 15px;
  font-weight: 800;
}

.section-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.text-muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
  color:var(--text);
}


/* هدر سکشن‌ها */

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.section-header .section-title {
  margin: 0;
}

.section-header--with-action {
  margin-bottom: 8px;
}

/*  بخش میانبرها بالای پنل  */
.quick-actions-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;

  margin-bottom: 12px;
  padding: 8px 10px;

  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

/* متن "میانبرها:" */
.quick-actions-menu__label {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ردیف دکمه‌ها */
.quick-actions-menu__items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* دکمه‌های داخل میانبرها کمی جمع‌وجورتر */
.quick-actions-menu__items .btn {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 5px;
}

/* کارت سرویس خلاصه در خانه و پنل */

.service-card {
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  margin-bottom: 10px;
  background: color-mix(in srgb, var(--card) 90%, var(--bg) 10%);
}

.service-card__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.service-card__title {
  font-weight: 800;
  font-size: 13px;
}

.service-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  font-size: 11px;
}

.service-card__expire {
  color: var(--muted);
  font-size: 12px;
}

.service-card__usage {
  margin-top: 8px;
}

.service-card__usage-text {
  gap: 15px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}

.service-card__usage-remaining {
  font-size: 11px;
}

.service-list--full .service-card--panel {
  margin-bottom: 12px;
}

/* فوتر کارت سرویس در پنل */

.service-card__footer {
  margin-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-card__sub {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Badge / Chip وضعیت */
.badge,
.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.badge--ok,
.chip--ok {
  background: #ecfdf5;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.badge--warn {
  background: #fffbeb;
  color: #ca8a04;
  border: 1px solid #fde68a;
}

.badge--danger,
.chip--danger {
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fecaca;
}

/* Progress bar مصرف حجم */
.progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--prog);
  overflow: hidden;
}

.progress--sm {
  height: 6px;
}

.progress__bar {
  height: 100%;
  background: var(--primary);
}

/* لینک اشتراک */

.sub-url {
  max-width: 100%;
  margin-top: 4px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.06);
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  direction: ltr;
}

.sub-url__box::-webkit-scrollbar {
  height: 4px;
}
.sub-url__box::-webkit-scrollbar-thumb {
  border-radius: 999px;
}

.sub-url__link {
  display: inline-block;
  font-size: 0.8rem;
  text-decoration: none;
}

.sub-url .link-compact {
  display: inline-block;
  max-width: 100%;
  direction: ltr;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

/* باکس خلاصه کاربر در پنل */

.panel-summary {
  border: solid 1px #5d5d5d1a;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--bg-soft);
}

.panel-summary__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.panel-summary__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.panel-summary__value {
  font-size: 13px;
  font-weight: 800;
}

.panel-summary__value--ltr {
  direction: ltr;
  text-align: left;
}

.panel-summary__value--wallet {
  font-size: 14px;
}

.panel-summary__row--chips {
  gap: 8px;
}

.panel-summary__row--wallet {
  align-items: center;
}

.panel-summary__wallet-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* آکاردئون – (الان استفاده نمی‌کنیم، ولی می‌ماند برای آینده) */
.service-accordion {
  margin-bottom: 10px;
}

.service-accordion__details {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
}

.service-accordion__summary {
  list-style: none;
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.service-accordion__summary::-webkit-details-marker {
  display: none;
}

.service-accordion__main {
  min-width: 0;
}

.service-accordion__title {
  font-weight: 800;
  font-size: 13px;
}

.service-accordion__meta {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
  font-size: 11px;
}

.service-accordion__usage {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.service-accordion__chevron {
  font-size: 14px;
}

.service-accordion__body {
  border-top: 1px dashed var(--line);
  padding: 10px 12px;
}

.service-accordion__row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.service-accordion__row--column {
  flex-direction: column;
  align-items: flex-start;
}

/* مودال‌ها */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.modal-backdrop.is-open {
  display: flex;
}

body.has-modal {
  overflow: hidden;
}

.modal {
  background: var(--card);
  border-radius: 16px;
  padding: 16px 16px 14px;
  max-width: 420px;
  width: calc(100% - 40px);
  box-shadow: 0 24px 60px rgba(15,23,42,.4);
}

.modal--lg {
  max-width: 760px;
}

.modal--video {
  max-width: 760px;
  padding: 0;
  width: auto;
  max-height: 90vh;
  background: #020617;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.modal--video video {
  width: 100%;
  display: block;
  background: #000;
  max-height: 90vh;
}

.modal__close {
  position: absolute;
  top: 10px;
  left: 12px;
  border: 0;
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  cursor: pointer;
  z-index: 5;
}

.modal__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 900;
}

.modal__text {
  margin: 0 0 10px;
  font-size: 13px;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal__input {
  background:var(--card);
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 9px 11px;
  font-size: 13px;
  outline: none;
}


.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.modal__alert {
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  margin-bottom: 8px;
}

.modal__alert--error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.modal__alert--ok {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #bae6fd;
}

/* جدول پرداخت‌ها در مودال */

.payments-table-wrap {
  max-height: 340px;
  overflow: auto;
  margin-top: 8px;
}

.payments-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.payments-table th,
.payments-table td {
  border-bottom: 1px dashed var(--line);
  padding: 6px 6px;
  text-align: center;
}

.payments-table__ref {
  direction: ltr;
}

.pay-status {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.pay-status--ok {
  background: #ecfdf5;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.pay-status--bad {
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fecaca;
}

/* تب آموزش (اندروید/آیفون/ویندوز) */

.help-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.help-tab-btn {
  flex: 1;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  background: var(--card);
  cursor: pointer;
}

.help-tab-btn.is-active {
  background: var(--bg);
  color: var(--text);
}

.help-pane {
  display: none;
}

.help-pane.is-active {
  display: block;
}

.help-steps {
  list-style: decimal;
  padding-right: 18px;
  margin: 10px 0 0;
}

.help-steps li {
  margin-bottom: 12px;
}

.help-steps img {
  margin-top: 6px;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: block;
}

/* دکمه‌های آموزش ویدیویی در تب آموزش */

.help-video-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.help-video-actions .btn {
  font-size: 14px;
  padding-inline: 14px;
  justify-content: center;
}

/* Loader وسط صفحه */

.app-loader {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
background: var(--bg-load);
z-index: 1500;
  pointer-events: none;
}

body.is-loading .app-loader {
  display: flex;
}

.app-loader__spinner {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 4px solid rgba(148, 163, 184, 0.4);
  border-top-color: #38bdf8;
  animation: app-spin 0.7s linear infinite;
}

@keyframes app-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== Plans (استایل صفحه قدیمی داخل SPA) ===== */

.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 640px) {
  .plans {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
  }
}

.plan-card {
  display: block;
  position: relative;
  cursor: pointer;
}

.plan-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.card-inner {
  background: radial-gradient(circle at 0% 0%, color-mix(in srgb, #2d91af 14%, var(--card) 86%) 0, transparent 60%), radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--ok) 10%, var(--card) 90%) 0, transparent 55%), var(--card);
  border: 2px solid var(--line);
  border-radius: 12px;
  box-shadow: 0px 0px 10px rgb(0 0 0 / 8%);
  position: relative;
  z-index: 0;

  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
  padding: 8px;
  min-height: 120px;

  transition: all .18s cubic-bezier(.16,.84,.44,1);
}

.plan-card:hover .card-inner {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 24px rgba(0,0,0,.12);
  border-color: var(--primary);
}


.plan-card.recommended-plan:hover .card-inner {
  transform: translateY(-3px) scale(1.03);
}

.plan-card.is-selected .card-inner {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 24px rgba(0,0,0,.12);
  border-color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 15px;
}

/* بج پرفروش‌ترین */

.best-badge {
  position: absolute;
  top: -10px;
  right: 14px;
  background: rgba(37,99,235,.9);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  padding: 4px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.4);
  box-shadow:
    0 12px 32px rgba(37,99,235,.5),
    0 2px 6px rgba(0,0,0,.4);
  z-index: 50;
  white-space: nowrap;
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
}

/* درصد تخفیف قرمز */

.discount-float {
  position: absolute;
  top: -10px;
  left: 14px;
  background: red;
  color: #ffffff;
  font-size: 16px;
  border: solid #fff 1px;
  font-weight: 800;
  padding: 4px 7px;
  border-radius: 6px;
  line-height: 1.2;
  direction: ltr;
  box-shadow: 0px 0px 9px 2px rgb(72 67 67 / 20%);
  z-index: 40;
  font-feature-settings: "tnum";
}


  .plans-step__option-extra--legend {
    display: flex;
    flex-direction: row;
    gap: 5px;
    font-size: 11px;
  }
  
@media (max-width: 640px) {
  .discount-float {
    box-shadow: 0px 0px 15px rgb(235 37 132 / 20%), 0 5px 15px rgba(0, 0, 0, .4);
    border: solid 1px #fff;
    top: -10px;
    left: -10px;
  }

  .best-badge {
    top: -10px;
    right: -10px;
  }
  
  .plans-step__option-extra--legend {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
}

}



/* ستون تصویر */

.thumb {
  flex: 0 0 40%;
  border-radius: 10px;
  border: 1px solid var(--line);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.thumb img,
.thumb picture {
  border-radius: 10px 10px 0 0;
  width: 100%;
  height: 100%;
  display: block;
}

.thumb img {
  object-fit: cover;
}

.thumb::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,.06) 70%,
    rgba(0,0,0,.08) 100%
  );
  pointer-events: none;
}

@media (max-width: 640px) {
  .thumb img,
  .thumb picture {
    border-radius: 5px;
  }
}

/* ستون توضیح و قیمت */

.info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 8px 6px;
  color: var(--text);
}

.info-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

@media (min-width: 640px) {
  .card-inner {
    display: block;
    padding: 0;
    min-height: 260px;
    max-height: 260px;
  }

  .thumb {
    position: absolute;
    top: 0;
    overflow: hidden;
    inset-inline-start: 0;
    width: 100%;
    height: 50%;
    border: 0;
    border-radius: 12px 12px 0 0;
    aspect-ratio: auto;
    display: block;
  }

  .info {
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 50%;
    background: var(--card);
    border-radius: 0 0 12px 12px;
    padding: 12px 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    color: var(--text);
  }

  .info-inner {
    flex: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    text-align: right;
    gap: 10px;
    padding: 0 8px;
  }
}

.info-main {
  flex: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

@media (min-width: 640px) {
  .info-main {
    align-items: flex-start;
    text-align: right;
    justify-content: flex-start;
  }
}

.plan-title {
  font-size: 17px;
  font-weight: 900;
  color: var(--plan-title);
  line-height: 1.4;
  word-break: break-word;
  text-align: center;
}

@media (min-width: 640px) {
  .plan-title {
    font-size: 16px;
    max-width: 90%;
    text-align: right;
  }
}

.plan-desc-static {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
  word-break: break-word;
  max-width: 100%;
}

@media (min-width: 640px) {
  .plan-desc-static {
    text-align: right;
    max-width: 90%;
  }
}

.plan-features {
  display: flex;
  flex-direction: row;
  gap: 2px;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
  color: #0f172a;
}

.plan-features .feat-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  justify-content: center;
  color: #065f46;
  line-height: 1.4;
  word-break: break-word;
  flex-wrap: nowrap;
}

.plan-features .feat-ico {
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  color: #10b981;
  flex: 0 0 auto;
}

.plan-features .feat-text {
  flex: 1;
  min-width: 0;
}

@media (min-width: 640px) {
  .plan-features {
    text-align: right;
    align-items: flex-start;
  }
  .plan-features .feat-row {
    justify-content: flex-start;
  }
}

.info-price {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
}

@media (min-width: 640px) {
  .info-price {
    border: 1px solid rgba(148,163,184,.4);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0%), 0px 3px 12px rgb(0 112 255 / 15%);
    border-radius: 12px;
    padding: 10px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
  }
}

.price-free {
  color: var(--ok);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .price-free {
    font-size: 18px;
  }
}

.price-desktop-only {
  display: none;
}

.price-row-mobile {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  gap: 4px;
}

@media (min-width: 640px) {
  .price-row-mobile {
    display: none;
  }
}

.price-old-inline {
  color: #dda5a5;
  font-size: 12px;
  font-weight: 600;
  text-decoration: line-through;
  line-height: 1.2;
  white-space: nowrap;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  direction: rtl;
  font-feature-settings: "tnum";
}

.price-old-num {
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.2;
}

.price-now-line {
  display: flex;
  flex-direction: row;
  gap: 4px;
  direction: rtl;
  line-height: 1.1;
  align-items: center;
}

.price-main-inline {
  color: var(--text);
  font-weight: 800;
  font-size: 25px;
  line-height: 1;
  white-space: nowrap;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 2px;
  font-feature-settings: "tnum";
}

.price-main-num {
  font-size: 1em;
  font-weight: 800;
  line-height: 1;
  color: #2196F3;
  display: inline-block;
  transform-origin: bottom center;
}

@media (max-width: 640px) {
  .price-main-num {
    transform: scale(1.1);
  }
}

.price-unit-inline {
  font-size: 11px;
  font-weight: 600;
  color: #949494;
  line-height: 1.2;
  white-space: nowrap;
  display: inline-block;
}

.price-old-desktop {
  display: none;
  color: #dda5a5;
  font-size: 15px;
  font-weight: 600;
  text-decoration: line-through;
  line-height: 1.2;
  white-space: nowrap;
  font-feature-settings: "tnum";
}

.price-now-desktop {
  display: none;
  color: #2196F3;
  font-weight: 800;
  font-size: 26px;
  line-height: 1.1;
  white-space: nowrap;
  font-feature-settings: "tnum";
}

.price-unit-desktop {
  display: none;
  font-size: 11px;
  font-weight: 600;
  color: #949494;
  line-height: 1.2;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .has-discount .price-old-desktop {
    display: block;
  }
  .price-now-desktop {
    display: block;
  }
  .price-unit-desktop {
    display: block;
  }
}

/* ===== Checkout (استایل صفحه قدیمی) ===== */

.checkout-box {
  display: none;
  background: var(--bg-soft);
  border: 2px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.03);
  padding: 16px;
  margin-top: 8px;
}
  .checkout__hint {
    font-weight: 900;
    color: var(--muted);
    text-align: center;
}
@media (min-width: 640px) {
  .checkout-box {
    border: 2px solid rgba(37,99,235,.2);
    box-shadow: 0 5px 20px rgba(37,99,235,.08),0 4px 12px rgba(0,0,0,.05);
    background: radial-gradient(
        circle at 20% 0%,
        color-mix(in srgb, #f44336a8 8%, var(--bg-soft) 92%) 0%,
        rgba(248,250,252,0) 70%
      ),
      var(--bg-soft);
  }
  
  .checkout__hint {
    font-weight: 900;
    color: var(--muted);
    text-align: right;
}
}

.checkout-head {
  display: flex;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.5;
  text-align: right;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 5px;
  align-items: center;
}

@media (min-width: 640px) {
  .checkout-head {
    justify-content: flex-start;
    gap: 6px 12px;
  }
}

.chk-label {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  min-width: auto;
  text-align: right;
}

.chk-value {
  color: var(--danger);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}

@media (min-width: 640px) {
  .chk-value {
    font-size: 16px;
  }
}

.chk-price-mobile {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.chk-price-desktop {
  display: none;
}

@media (min-width: 640px) {
  .chk-price-mobile {
    display: none;
  }
  .chk-price-desktop {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
  }
}

.price-free-inline {
  color: var(--ok);
  font-weight: 800;
}

.price-normal-inline {
  color: var(--text);
  font-weight: 800;
}

/* ردیف ایمیل + دکمه */

.checkout-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 480px) {
  .checkout-row {
    flex-direction: row;
    align-items: flex-end;
  }
}

.checkout-field {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkout-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  text-align: right;
}

.checkout-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  background: var(--card);
  color: var(--text);
  outline: none;
  transition: border .2s ease, box-shadow .2s ease;
  direction: ltr;
  text-align: left;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0,0,0,.03);
}

.checkout-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.checkout-input::placeholder {
  direction: rtl;
  text-align: right;
}

.checkout-action {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* توضیحات زیر ایمیل */

.checkout__hint {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

/* دکمه ارسال */

.btn-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease, transform .08s ease;
  width: 100%;
  max-width: 220px;
  box-shadow: 0 5px 20px rgba(37,99,235,.25);
  text-align: center;
}

.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 5px 25px rgba(29,78,216,.4);
}

/* QR modal body */

.qr-modal-iframe {
  width: 280px;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
}
.qr-modal-body {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* موبایل کوچیک */

@media (max-width: 600px) {
  .view-container {
    padding: 12px;
    border-radius: 12px;
  }
  .home-box,
  .card {
    border-radius: 12px;
  }
  .modal {
    width: calc(100% - 24px);
    padding-inline: 14px;
  }
}

/* رنگ دکمه هدر (ورود/خروج) */

#btn-header-login.btn--danger {
  background: #dc2626;
  color: #fff;
}

#btn-header-login.btn--danger:hover {
  background: #b91c1c;
}

/* ====== Modal: Configs (کانفیگ‌ها) ====== */

#modal-configs .modal {
  max-width: 640px;
  max-height: 85vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* تیتر و توضیح بالا */

#modal-configs .modal__title {
  margin-bottom: 6px;
  flex-shrink: 0;
}

#modal-configs .modal__text {
  margin-bottom: 10px;
  font-size: 0.85rem;
  opacity: 0.85;
  flex-shrink: 0;
}

/* لیست کانفیگ‌ها – اسکرول فقط روی این بخش */

.configs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  padding: 4px 0 8px;
  margin: 0;
  flex: 1 1 auto;
  overflow-y: auto;
}

/* کارت هر کانفیگ */

.config-item {
  width: 100%;
  max-width: 580px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #393a3b0f;
  border: 1px solid rgba(148, 163, 184, 0.4);
  text-align: center;
}

.config-item__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.config-item__head span {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.config-item__head .btn-copy-config {
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 999px;
}

/* خود متن کانفیگ */

.config-item__code {
  min-height: 70px;
  width: 100%;
  max-height: 160px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  background: #393a3b0f;
  resize: none;
  font-size: 0.8rem;
  line-height: 1.6;
  direction: ltr;
  text-align: center;
  word-break: break-all;
  overflow-y: auto;
}

/* دکمه‌های پایین مودال – همیشه پایین می‌مونه، اسکرول نمی‌خوره */

#modal-configs .modal__actions {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  flex-shrink: 0;
}

.panel-summary__divider {
  border: 0.5px solid #0000000a;
  width: -webkit-fill-available;
}

.renew-username {
  color: #F44336;
}

.sub-url__input {
  direction: ltr;
  width: 100%;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.service-card__top--compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.service-card__top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-card__usage--inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.service-card__usage--inline .progress.progress--inline {
  flex: 1;
  min-width: 0;
}

.service-card__usage-remaining {
  white-space: nowrap;
  font-size: 0.85rem;
}

.sub-url__box {
  /*margin-top: 4px;*/
}

.sub-url__input {
  width: 100%;
  direction: ltr;
  text-align: left;
}

.service-card,
.service-card.service-card--panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
}

/* rows */
.service-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.service-card__row--usage {
  align-items: center;
  flex-wrap: wrap;
}

/* title + top meta */
.service-card__title-wrap {
  flex: 1;
  min-width: 0;
}

.service-card__title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.service-card__top-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.service-card__expire {
  font-size: 12px;
  color: var(--muted);
}

/* usage line */
.service-card__usage-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.progress.progress--inline {
  flex: 1;
  min-width: 120px;
}

.service-card__usage-remaining {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* sub url (if used in panel cards) */
.sub-url,
.sub-url__box {
  width: 100%;
}

.sub-url__input {
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px dashed var(--line);
  background: var(--bg);
  font-size: 12px;
  direction: ltr;
  text-align: left;
}

/* actions row in panel card */
.service-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* responsive tweaks */
@media (max-width: 640px) {
  .service-card,
  .service-card.service-card--panel {
    padding: 10px 10px;
    border-radius: 10px;
  }

  .service-card__row--top {
    align-items: center;
    gap: 6px;
  }

  .service-card__top-meta {
    justify-content: flex-start;
  }

  .progress.progress--inline {
    width: 100%;
    min-width: 0;
  }

  .service-card__usage-text,
  .service-card__usage-remaining {
    white-space: normal;
  }
}

.modal__forgot {
  margin-top: 8px;
  text-align: center;
}

.modal__forgot-link {
  color: var(--primary);
  cursor: pointer;
  font-weight: 700;
  margin-right: 4px;
}

.modal__forgot-link:hover {
  text-decoration: underline;
}

/* ===== Notifications modal base ===== */

.modal-list {
  margin-top: 12px;
  max-height: 420px;
  overflow-y: auto;
}

.modal-list__items {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* هر آیتم نوتیفیکیشن */
.modal-list__item {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-bottom: 8px;
  cursor: pointer;
  background: var(--card);
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.08s ease;
}

.modal-list__item:last-child {
  margin-bottom: 0;
}

.modal-list__item:hover {
  transform: translateY(-1px);
}

/* ===== UNREAD state ===== */

.modal-list__item--unread {
  background: color-mix(in srgb, var(--primary) 6%, var(--card) 94%);
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line) 55%);
}

.modal-list__item--unread:hover {
  background: color-mix(in srgb, var(--primary) 10%, var(--card) 90%);
}

/* نقطه‌ی آبی کنار عنوان برای نخوانده‌ها */
.modal-list__item--unread .modal-list__title::before {
  content: "●";
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  color: var(--primary);
  vertical-align: middle;
}

/* ===== Head row (title + date) ===== */

.modal-list__item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.modal-list__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.modal-list__date {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ===== Body text ===== */

.modal-list__body {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
  white-space: pre-line;
}

/* اگر می‌خوای نوتیف‌های error / warning / success هم رنگ بگیرن */

.modal-list__item--type-error {
  border-color: #fecaca;
  background: #fef2f2;
}

.modal-list__item--type-warning {
  border-color: #fcd34d;
  background: #fffbeb;
}

.modal-list__item--type-info {
  border-color: #bfdbfe;
  background: #eff6ff;
}

/* ===== Announcement strip (هدر اطلاعیه بالای صفحه) ===== */

.home-section--announcement {
  margin-bottom: 12px;
}

.home-box--announcement {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

/* باکس اصلی */
.announcement-strip {
  display: flex;
  margin-bottom:20px;
  align-items: stretch;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 14px;

  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary) 10%, var(--bg-soft) 90%),
    color-mix(in srgb, var(--primary) 4%, var(--bg-soft) 96%)
  );
  border: 1px solid color-mix(in srgb, var(--primary) 55%, var(--line) 45%);

  /*box-shadow: var(--shadow-soft);*/
  flex-direction: column;
}

/* ستون متن */
.announcement-strip__main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* لیبل کوچیک "اطلاعیه" */
.announcement-strip__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 2px 8px;
  border-radius: 999px;

  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;

  color: var(--primary-dark);
  background: color-mix(in srgb, var(--primary) 16%, var(--card) 84%);
}

/* عنوان اطلاعیه */
.announcement-strip__title {
  margin-top: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

/* متن بدنه اطلاعیه */
.announcement-strip__body {
  margin-top: 2px;
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--muted);
}

/* ستون دکمه "مشاهده همه" */
.announcement-strip__action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* کمی جمع‌وجورتر کردن دکمه کوچیک داخل این باکس */
.announcement-strip__action .btn.btn--xs {
  font-size: 0.75rem;
  padding-inline: 10px;
}

/* ریسپانسیو روی موبایل: متن بالا، دکمه بیاد پایین */
@media (max-width: 640px) {
  .service-card__actions {
    justify-content: center;
  }
  .announcement-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .announcement-strip__action {
    justify-content: flex-end;
    width: 100%;
    margin-top: 4px;
  }
}

/* مدال عودت وجه – کادر کلی کمی جمع‌وجورتر بشه */
#modal-refund .modal {
  max-width: 460px;
}

/* فاصله بین فیلدها */
#modal-refund .modal__field-group {
  margin-bottom: 10px;
}

/* لیبل‌ها */
#modal-refund .modal__label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  color: #4b5563;
}

/* اینپوت‌ها و تکست‌اریا داخل این مدال */
#modal-refund .modal__input,
#modal-refund .modal__textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  font-size: 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
}

/* readonlyها (سرویس و ایمیل) کمی تیره‌تر و غیرفعال‌تر */
#modal-refund .modal__input[readonly] {
  background: var(--bg);
  color: #6b7280;
}

/* فوکوس روی اینپوت‌ها */
#modal-refund .modal__input:focus,
#modal-refund .modal__textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
  background: #ffffff;
}

/* تکست‌اریا توضیح مشکل */
#modal-refund .modal__textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.7;
}

/* پیام خطا/موفقیت بالای فرم */
#refundMsg {
  margin-bottom: 10px;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.8rem;
}

/* اگر از همین کلاس‌ها استفاده می‌کنی: */
#modal-refund .modal__alert--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

#modal-refund .modal__alert--ok {
  background: #ecfdf3;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* دکمه‌ها در پایین مدال کمی فاصله بگیرن */
#modal-refund .modal__actions {
  margin-top: 12px;
}

#modal-refund .modal__text {
  text-align: justify;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 10px;
  line-height: 1.8;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex !important;
  align-items: center;
  justify-content: center;

  background: rgba(15, 23, 42, 0.0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    background 0.25s ease,
    backdrop-filter 0.25s ease,
    -webkit-backdrop-filter 0.25s ease;
}

/* وقتی مودال باز است (کلاس is-open رو JS می‌گذارد) */
.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  background: rgb(55 56 59 / 74%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* حالت بسته / قبل از باز شدن */
.modal {
  transform: translateY(16px) scale(0.96);
  opacity: 0;

  transition:
    transform 0.25s ease-out,
    opacity 0.25s ease-out;
}

/* وقتی بک‌دراپ باز است، مودال هم انیمیت می‌شود */
.modal-backdrop.is-open .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ============================
   Offline / No-Connection Overlay
   ============================ */

.offline-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgb(84 84 84 / 45%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: all;
}

.offline-overlay.is-visible {
  display: flex;
}

.offline-overlay__box {
  max-width: 360px;
  width: calc(100% - 48px);
  background:var(--bg);
  border-radius: 18px;
  padding: 20px 18px 18px;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(148, 163, 184, 0.20);
  text-align: center;
  color: #e5e7eb;
}

.offline-overlay__icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: radial-gradient(circle at 30% 0, #38bdf8, #0f172a);
  box-shadow:
    0 0 0 6px rgba(56, 189, 248, 0.12),
    0 12px 25px rgba(15, 23, 42, 0.9);
}

.offline-overlay__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--danger);
}

.offline-overlay__text {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.8;
  color:var(--text);
}

/* اختیاری: وقتی آفلاینه، اسکرول بدن رو هم ببند */
body.is-offline-locked {
  overflow: hidden;
  touch-action: none;
}

/* menu-hamberger */

/* همبرگر فقط روی موبایل دیده شود */
.hamburger-btn {
  display: none;
}

@media (max-width: 768px) {
  .hamburger-btn {
              border: 1px solid #18181800;
        background: #18181800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    cursor: pointer;
    position: relative;
    outline: none;
    transition:
      transform 0.2s ease;
    z-index: 19;
  }


  .hamburger-btn span {
    position: absolute;
    width: 25px;
    height: 2px;
    background: var(--text);
    transition:
      transform 0.25s ease,
      opacity 0.2s ease,
      top 0.25s ease,
      bottom 0.25s ease;
  }

  .hamburger-btn span:nth-child(1) {
    top: 12px;
  }

  .hamburger-btn span:nth-child(2) {
    top: 19px;
  }

  .hamburger-btn span:nth-child(3) {
    top: 26px;
  }

  /* حالت باز (ضربدر) */
  .hamburger-btn.is-open span:nth-child(1) {
    top: 19px;
    transform: rotate(45deg);
  }

  .hamburger-btn.is-open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-btn.is-open span:nth-child(3) {
    top: 19px;
    transform: rotate(-45deg);
  }
  
  .app-header__title{
      font-size:15px;
  }
  
  .app-header__subtitle {
    font-size: 10px;}
    
}


/* بک‌دراپ پشت منوی موبایل – روشن‌تر برای تم سفید */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 17;
}

/* خود دراور */
.mobile-drawer {
  position: fixed;
  top: 56px;
  right: 0;
  bottom: 0;
  width: 280px;
  max-width: 80%;
  background: var(--card2);
  box-shadow: -8px 0 30px rgba(15, 23, 42, 0.18);
  transform: translateX(100%);
  transition: transform 0.25s ease-out;
  z-index: 18;
  display: flex;
  flex-direction: column;
  padding: 16px 16px 24px;
}

/* فقط روی موبایل */
@media (min-width: 769px) {
  .mobile-drawer,
  .mobile-drawer-backdrop {
    display: none;
  }
}

/* وقتی منو باز است */
.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* هدر بالای دراور */
.mobile-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mobile-drawer__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

/* لیست لینک‌ها */
.mobile-drawer__list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.mobile-drawer__list li + li {
  margin-top: 4px;
}

.mobile-drawer__list a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  background: var(--btbg);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.mobile-drawer__list a:hover {
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  transform: translateX(-2px);
}

/* وقتی منو بازه، اسکرول بدنه قفل شود */
body.drawer-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .panel-top-actions {
    display: none;
  }
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-inline: 10px;
  font-size: 12px;
}

.theme-toggle-btn__icon {
  font-size: 15px;
}

.theme-toggle-btn__label {
  font-weight: 700;
}
.plan-card.recommended-plan .card-inner {
  position: relative;

  /* بوردر پررنگ‌تر ولی بر اساس رنگ اصلی سایت */
  border: 2px solid color-mix(in srgb, var(--primary) 80%, var(--line) 20%);

  /* پس‌زمینه: همون رنگ کارت + یه گرادیان خیلی ملایم
     که روی تم تیره هم درست کار کنه */
  background:
    radial-gradient(circle at 0% 0%,
      color-mix(in srgb, var(--primary) 14%, var(--card) 86%) 0,
      transparent 60%)
    ,
    radial-gradient(circle at 100% 0%,
      color-mix(in srgb, var(--ok) 10%, var(--card) 90%) 0,
      transparent 55%)
    ,
    var(--card);

  backdrop-filter: blur(8px) saturate(130%);
  -webkit-backdrop-filter: blur(8px) saturate(130%);

  border-radius: 15px;

  box-shadow:
    0 0 26px rgba(37, 99, 235, 0.18),
    0 4px 14px rgba(15, 23, 42, 0.20);

  transform: translateY(-2px) scale(1.02);
  transition: all .18s cubic-bezier(.16,.84,.44,1);
}


.bottom-nav-item__icon {
      font-family: "Awesome" !important;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* آیکون در حالت عادی (تب غیرفعال) */
.bottom-nav-item i {
      font-family: "Awesome" !important;
  transition: transform 0.15s ease, color 0.15s ease;
  color: var(--muted);
}


/* آیکون در حالت فعال → پررنگ و کمی بزرگ‌تر */
.bottom-nav-item.is-active i {
      font-family: "Awesome" !important;
  color: var(--primary);
  transform: scale(1.1) translateY(-1px);
}



.header-icon-btn {
          font-family: "Awesome" !important;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-icon-btn__icon {
  font-size: 16px;
        font-family: "Awesome" !important;
  color: var(--muted);
}

/* وقتی نوتیف ناخونده داریم (بعداً از JS این کلاس رو می‌ذاری) */
.header-icon-btn--active .header-icon-btn__icon {
  color: var(--primary);
        font-family: "Awesome" !important;
}

/* آیکن سوییچ تم هم رنگش از متون ثانویه بگیره */
.theme-toggle-btn__icon {
  font-size: 16px;
        font-family: "Awesome" !important;
  color: var(--muted);
}






/* حالت پایه: مخفی + آماده‌ی انیمیشن */
.checkout-box {
  opacity: 0;
  transform: translateY(12px);
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease-out,
    transform 0.25s ease-out,
    max-height 0.25s ease-out;
}

/* وقتی نمایش داده میشه */
.checkout-box.is-visible {
  opacity: 1;
  transform: translateY(0);
  max-height: 500px; /* عدد تقریبی، فقط برای باز شدن نرم */
  pointer-events: auto;
}


/* === Usage chart modal === */

.usage-chart {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.03); /* یه بک‌گراند خیلی ملایم */
  border: 1px solid rgba(148, 163, 184, 0.3);
}

[data-theme="dark"] .usage-chart {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.5);
}

/* ردیف‌های متن بالا و پایین نمودار (همون مصرف شده / باقیمانده) */
.usage-chart__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.usage-chart__label {
  color: #6b7280;
}

[data-theme="dark"] .usage-chart__label {
  color: #9ca3af;
}

.usage-chart__value {
  font-weight: 600;
}

/* محل SVG */
.usage-chart__canvas {
  margin-top: 12px;
  margin-bottom: 6px;
  width: 100%;
  height: 140px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.12);
}

[data-theme="dark"] .usage-chart__canvas {
  background: rgba(15, 23, 42, 0.9);
}

/* خود SVG */
.usage-chart__svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* خط نمودار اگر براش stroke ددی تو JS، نیازی نیست اینجا رنگ ست کنی
   ولی اگر خواستی تو CSS کنترل کنی می‌تونی کلاس جدا برای path بذاری */

/* لیبل‌های زیر نمودار (مثلا بازه زمانی یا شروع/پایان) */
.usage-chart__timeline-labels {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-top: 4px;
  font-size: 11px;
  color: #9ca3af;
}

[data-theme="dark"] .usage-chart__timeline-labels {
  color: #d1d5db;
}

.usage-chart__timeline-labels span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* روی موبایل فونت رو یه ذره کوچیک‌تر کن */
@media (max-width: 480px) {
  .usage-chart {
    padding: 8px 10px;
  }

  .usage-chart__canvas {
    height: 120px;
  }

  .usage-chart__timeline-labels {
    font-size: 10px;
  }
}

/* ============================
   APN Guide Modal
   تب‌ها و پنجره‌ها
   ============================ */

/* ردیف تب‌های بالای مدال (اندروید / iOS) */
.apn-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 12px 0 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12); /* شبیه پس‌زمینه‌های ملایم بقیه جاها */
}

/* دکمه‌های تب داخل APN */
.apn-tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  line-height: 1.4;
  cursor: pointer;
  color: #64748b; /* خاکستری آرام */
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
  white-space: nowrap;
}

/* حالت هاور روی تب‌ها */
.apn-tab-btn:hover {
  background: rgba(148, 163, 184, 0.2);
}

/* تب فعال */
.apn-tab-btn.is-active {
  background: #0f172a;         /* هم‌رنگ هدر/تم تیره تو */
  color: #f9fafb;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.85), 0 6px 14px rgba(15, 23, 42, 0.35);
  transform: translateY(-1px);
}

/* کانتینر محتوا */
.apn-panes {
    border-radius: 10px;
    padding: 10px;
    background: #7c7c7c1a;
    max-height: 50vh;
    overflow: auto;
    margin-top: 8px;
}

/* هر پنل تب */
.apn-pane {
  display: none;
}

/* فقط پنلی که active است دیده بشود */
.apn-pane.is-active {
  display: block;
}

/* لیست قدم‌ها داخل مدال APN، از همون استایل help استفاده می‌کنیم ولی کمی فشرده‌تر */
.modal .help-steps {
  margin: 8px 0 0;
  padding-right: 1.2rem;
}

.modal .help-steps li {
  margin-bottom: 10px;
}

/* کدهای APN (mcinet, mtnirancell, ...) خواناتر */
.apn-pane code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.06);
  direction: ltr;
}

/* پاراگراف‌های کوچیک توضیحی در مدال APN */
.apn-pane .small {
  line-height: 1.8;
}

/* اگر بعداً خواستی این ردیف دکمه‌ی APN در صفحه راهنما قشنگ‌تر بشه: */
.help-extra-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.help-extra-actions .btn {
  font-size: 0.8rem;
  padding-inline: 10px;
}


.modal__title {
  position: relative;
  padding-bottom: 8px;   /* کمی فاصله از خط */
  margin-bottom: 10px;   /* فاصله از متن پایین */
}

.modal__title::after {
content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    border-radius: 999px;
    background: #2196F3;
}
.panel-guest-hero {
  display: block;
  margin: 0 auto 16px; /* وسط‌چین + فاصله از عنوان */
  max-width: 200px;
  width: 60%;
  height: auto;
}


/* وسط‌چین کردن محتوا در کارت پنل مهمان */
.view--panel-guest .card {
  text-align: center;
}

/* عکس بالای متن */
.panel-guest-hero {
  display: block;
  margin: 0 auto 16px; /* وسط + فاصله از متن */
  max-width: 200px;
  width: 60%;
  height: auto;
}

/* دکمه ورود به حساب وسط‌چین و کمی خوشگل‌تر */
#btn-panel-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  margin-top: 8px;
}
.modal__alert--ok {
    background: #4caf50;
    color: #ffffff;
    border: 1px solid #bae6fd;
}

.section-header {
  position: relative;
  padding-bottom: 8px; /* کمی فاصله برای خط زیرش */
}

.section-header {
  position: relative;
}

/* خط ۱ پیکسلی مثل plans-steps-header، زیر سکشن‌هدر */
.section-header::after {
  content: "";
  position: absolute;
  inset-inline: 0;       /* از راست تا چپ */
  bottom: 0;             /* چسبیده به پایین .section-header  */
  height: 1px;

  background: linear-gradient(to left, rgba(56, 189, 248, 0), /* شفاف از سمت راست */ rgb(56 189 248 / 16%), /* وسط پررنگ‌تر */ rgba(56, 189, 248, 0) /* شفاف سمت چپ */);

  transform-origin: right center; /* از راست شروع بشه */
  transform: scaleX(0);           /* اولش دیده نشه */
  opacity: 0;
  animation: plansHeaderLine 1.1s ease-out forwards;
}

/* همین keyframes که از قبل برای plans-steps-header داری، مشترک استفاده می‌شه */
@keyframes plansHeaderLine {
  0% {
    transform: scaleX(0);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: scaleX(1);
    opacity: 1;
  }
}


.section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* فاصله بین نقطه و متن */
}

/* نقطه آبی قبل از عنوان */
.section-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.35); /* همون آبی کم‌رنگ قبلی */
  flex-shrink: 0;
}

/****************************
 * 1) انیمیشن آیکون منوی پایین
 ****************************/

/* برای اینکه بتونیم پشت آیکون افکت بذاریم */
.bottom-nav-item__icon {
  position: relative;
}

/* افکت "پینگ" پشت آیکون وقتی تب فعاله */
.bottom-nav-item.is-active .bottom-nav-item__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 18%, transparent 82%);
  z-index: -1;
  animation: navIconPing 1.2s ease-out infinite;
}

/* بونس خیلی کوتاه موقع فعال شدن آیکون */
.bottom-nav-item.is-active i {
  animation: navIconBounce 0.35s ease-out;
}

/* هاور روی منو – یکم نرم بالا بیاد */
.bottom-nav-item:hover i {
  transform: translateY(-2px) scale(1.08);
}

/* پینگ پشت آیکون */
@keyframes navIconPing {
  0% {
    transform: scale(0.8);
    opacity: 0.65;
  }
  70% {
    transform: scale(1.25);
    opacity: 0;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

/* بونس سریع آیکون وقتی فعال میشه */
@keyframes navIconBounce {
  0% {
    transform: translateY(0) scale(1);
  }
  40% {
    transform: translateY(-2px) scale(1.15);
  }
  100% {
    transform: translateY(-1px) scale(1.1);
  }
}



/***************************************
 * 2) نوتیف هدر – پینگ ملایم دور آیکون
 ***************************************/

.header-icon-btn {
  position: relative;
}

/* وقتی نوتیف ناخونده داریم کلاس header-icon-btn--active قبلاً هست */
.header-icon-btn--active::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  z-index: -1;
  background: color-mix(in srgb, var(--primary) 25%, transparent 75%);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 60%, transparent 40%);
  animation: headerIconPulse 1.4s ease-out infinite;
}

/* خود آیکون هم یه بونس خیلی نرم بگیره */
.header-icon-btn--active .header-icon-btn__icon {
  animation: headerIconBounce 0.5s ease-out;
}

@keyframes headerIconPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 45%, transparent 55%);
  }
  70% {
    transform: scale(1.15);
    opacity: 0;
    box-shadow: 0 0 0 10px color-mix(in srgb, var(--primary) 0%, transparent 100%);
  }
  100% {
    transform: scale(1.15);
    opacity: 0;
    box-shadow: 0 0 0 10px color-mix(in srgb, var(--primary) 0%, transparent 100%);
  }
}

@keyframes headerIconBounce {
  0% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-2px);
  }
  100% {
    transform: translateY(0);
  }
}



/****************************************
 * 3) سوییچ تم – انیمیشن کوچیک روی آیکون
 ****************************************/

.theme-toggle-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

/* هاور روی سوییچ تم → کمی چرخش + درخشش */
.theme-toggle-btn:hover .theme-toggle-btn__icon {
  transform: rotate(-10deg) scale(1.05);
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--primary) 60%, transparent 40%));
}

/* وقتی تم تیره فعاله (html[data-theme="dark"]) می‌تونی آیکون رو یه کم متفاوت کنی */
html[data-theme="dark"] .theme-toggle-btn__icon {
  animation: themeIconFloat 2.4s ease-in-out infinite;
}

@keyframes themeIconFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
  100% {
    transform: translateY(0);
  }
}




/******************************************
 * 4) آیکون آفلاین – حالت «شناور» ملایم
 ******************************************/

.offline-overlay__icon {
  animation: offlineBob 2.2s ease-in-out infinite;
  box-shadow:
    0 0 0 0 color-mix(in srgb, var(--primary) 0%, transparent 100%),
    0 12px 25px rgba(15, 23, 42, 0.9);
}

@keyframes offlineBob {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
  100% {
    transform: translateY(0);
  }
}



/******************************************
 * 5) آیکون‌های تیک مزایا (plan-features)
 ******************************************/

.plan-features .feat-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform-origin: center;
  transition: transform 0.18s ease;
}

/* وقتی روی کارت پلن هاور می‌کنیم، تیک‌ها یه وُب خیلی کوچیک بگیرن */
.plan-card:hover .plan-features .feat-ico {
  animation: featIconWobble 0.35s ease-out;
}

@keyframes featIconWobble {
  0% {
    transform: scale(1) rotate(0);
  }
  30% {
    transform: scale(1.15) rotate(-6deg);
  }
  60% {
    transform: scale(1.08) rotate(4deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}





/******************************************
 * 5) آیکون‌های تیک مزایا (plan-features)
 ******************************************/

.plan-features .feat-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform-origin: center;
  transition: transform 0.18s ease;
}

/* وقتی روی کارت پلن هاور می‌کنیم، تیک‌ها یه وُب خیلی کوچیک بگیرن */
.plan-card:hover .plan-features .feat-ico {
  animation: featIconWobble 0.35s ease-out;
}

@keyframes featIconWobble {
  0% {
    transform: scale(1) rotate(0);
  }
  30% {
    transform: scale(1.15) rotate(-6deg);
  }
  60% {
    transform: scale(1.08) rotate(4deg);
  }
  100% {
    transform: scale(1) rotate(0);
  }
}




/* دکمه بستن */
.modal--auth .modal__close-btn {
  position: absolute;
  top: 1rem;
  inset-inline-start: 1rem; /* با RTL سازگار */
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.1rem;
}

/* هدر مودال (آیکون + متن) */
.modal--auth .modal__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

/* دایره آیکون – فقط سایز و گردی، بدون رنگ */
.modal--auth .modal__icon-circle {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* حلقه‌ی دور آیکون با before (خودش از currentColor استفاده می‌کند) */
.modal--auth .modal__icon-circle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid currentColor;
  opacity: 0.15; /* خیلی ملایم */
}



.modal--auth .modal__subtitle {
  font-size: 0.85rem;
}



/* =========================
   MODALS – پایه و انیمیشن
   ========================= */

/* بک‌دراپ مشترک همه مودال‌ها */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  background: rgba(15, 23, 42, 0.0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    background 0.25s ease,
    backdrop-filter 0.25s ease,
    -webkit-backdrop-filter 0.25s ease;
}

/* وقتی JS کلاس is-open می‌گذارد */
.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* وقتی مودال باز است، اسکرول صفحه قفل شود */
body.has-modal {
  overflow: hidden;
}

/* خود کارت مودال */
.modal {
  position: relative;
  width: 100%;
  max-width: 440px;

  border-radius: 18px;
  padding: 16px 18px 14px;

  color: var(--modal-text-color, var(--text));
  border: 1px solid var(--modal-card-border, var(--line));

  box-shadow:
    0 var(--modal-card-box-shadow-1-y, 6px)
      var(--modal-card-box-shadow-1-blur, 16px)
      var(--modal-card-box-shadow-1, rgba(15, 23, 42, 0.16)),
    0 var(--modal-card-box-shadow-2-y, 18px)
      var(--modal-card-box-shadow-2-blur, 40px)
      var(--modal-card-box-shadow-2, rgba(15, 23, 42, 0.28));

  overflow: hidden;

  transform: translateY(14px) scale(0.97);
  opacity: 0;

  transition:
    transform 0.22s ease-out,
    opacity 0.22s ease-out;
}

/* انیمیشن باز شدن مودال */
.modal-backdrop.is-open .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}



.modal::before {
  background-image: linear-gradient(
      to right,
      color-mix(in srgb, var(--modal-card-line-color, var(--line)) 28%, transparent 72%) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      color-mix(in srgb, var(--modal-card-line-color, var(--line)) 18%, transparent 82%) 1px,
      transparent 1px
    );
  background-size: 28px 24px;
  opacity: 0.33;
  mix-blend-mode: soft-light;
}

.modal::after {
  background: radial-gradient(
      circle at 0% 0%,
      var(--modal-card-tile-color, transparent) 0,
      transparent 55%
    ),
    radial-gradient(
      circle at 100% 100%,
      var(--modal-card-tile-color, transparent) 0,
      transparent 60%
    );
  opacity: 0.45;
}

/* نسخه بزرگ‌تر برای مودال‌های خاص */
.modal--lg {
  max-width: 760px;
}

/* ویدیو مودال (اگر استفاده می‌کنی) */
.modal--video {
  max-width: 760px;
  padding: 0;
  width: auto;
  max-height: 90vh;
  background: #020617;
  border-radius: 18px;
  overflow: hidden;
}

.modal--video video {
  width: 100%;
  display: block;
  background: #000;
  max-height: 90vh;
}

/* ریسپانسیو مودال */
@media (max-width: 600px) {
  .modal {
    max-width: 480px;
    width: 100%;
    margin: 0;
    border-radius: 16px;
    padding-inline: 14px;
  }
}


/* =========================
   هدر مودال
   ========================= */

.modal__header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.8rem;
  position: relative;
  padding-inline-end: 18px; /* برای فاصله از دکمه بستن در RTL */
}

/* دایره آیکون */
.modal__icon-circle {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* حلقه دور دایره فقط با ::before */
.modal__icon-circle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid currentColor;
  opacity: 0.18;
}

/* آیکون داخل دایره */
.modal__icon-circle i {
  font-size: 1.1rem;
  font-family: "Awesome" !important;
}

/* متن هدر */
.modal__header-main {
  flex: 1;
  min-width: 0;
}



/* خط ریز زیر تیتر با ::after (بدون ضربه به تم) */
.modal__title::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    to left,
    color-mix(in srgb, var(--primary) 80%, transparent 20%),
    color-mix(in srgb, var(--primary) 0%, transparent 75%)
  );
}

/* متن توضیح */
.modal__subtitle,
.modal__text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--modal-text-color, var(--muted));
}

.modal__subtitle.small,
.modal__text.small {
  font-size: 12px;
}

/* =========================
   بدنه / فرم‌ها
   ========================= */

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.modal__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

/* رپر اینپوت با آیکون */
.modal__input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-inline: 0.75rem;
  border-radius: 0.75rem;

  background: var(--card);
  border: 1px solid var(--line);

  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.modal__input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}

/* آیکون ابتدای فیلد */
.modal__input-icon {
  font-size: 0.95rem;
  font-family: "Awesome" !important;
  color: var(--muted);
}



/* =========================
   فراموشی رمز
   ========================= */

.modal__forgot {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 6px 0 10px;
  font-size: 0.78rem;
  color: var(--muted);
}

.modal__forgot-link {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  gap: 0.35rem;

  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);

  position: relative;
}


.modal__forgot-link i {
  font-size: 0.85rem;
  font-family: "Awesome" !important;
}

/* هاور */
.modal__forgot-link:hover {
  text-decoration: underline;
}

/* =========================
   دکمه‌های پایین مودال
   ========================= */

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.btn__icon-left {
  margin-inline-end: 0.4rem;
  font-family: "Awesome" !important;
}

@media (max-width: 480px) {
  .modal__actions {
    flex-direction: row-reverse;
    flex-wrap: wrap;
  }

  .modal__actions .btn {
    flex: 1;
  }
}

/* =========================
   Alert داخل مودال
   ========================= */

.modal__alert {
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.8rem;
  margin: 6px 0 10px;
  line-height: 1.7;
}

.modal__alert--error {
  background: #fef2f2;
  color: #b91b1b;
  border: 1px solid #fecaca;
}

.modal__alert--ok {
  background: #ecfdf3;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* =========================
   واریانت احراز هویت (لاگین / فراموشی رمز)
   ========================= */

.modal--auth {
  max-width: 420px;
}

/* اگر متن خیلی زیاد شد، داخل بدنه اسکرول بخوره، نه کل صفحه */
.modal--scroll {
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.modal--scroll .modal__body {
  flex: 1 1 auto;
  overflow-y: auto;
  margin-top: 6px;
}


/* برای اینکه بتونیم چیزها رو داخلش absolute کنیم */
.modal {
  position: relative;
}

/* دکمه‌ای که data-modal-close دارد رو تبدیل می‌کنیم به آیکون بستن بالا-چپ */
.modal__actions [data-modal-close] {
  position: absolute;
  top: 10px;
  left: 12px;          /* همیشه سمت چپ، مستقل از RTL/LTR */

  width: 32px;
  height: 32px;
  padding: 0;

  border: none;
  border-radius: 999px;

  background: transparent;
  color: transparent;  /* متن "انصراف" دیده نشه */

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  box-shadow: none;

  /* استایل‌های btn/btn--ghost رو خنثی کنه */
  font-size: 0;        /* برای اینکه متن جا نگیره */

  z-index: 2;

  transition:
    background-color 0.18s ease,
    transform 0.12s ease,
    box-shadow 0.18s ease;
}

/* آیکون ضربدر با فونت Awesome فقط با CSS */
.modal__actions [data-modal-close]::before {
  content: "\f00d"; /* کد آیکون X توی Font Awesome (fa-times/fa-xmark قدیمی) */
  font-family: "Awesome" !important;
  font-weight: 900;
  font-size: 14px;
  color: var(--muted);
}

/* هاور روی آیکون */
.modal__actions [data-modal-close]:hover {
  background: rgba(148, 163, 184, 0.18);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.25);
  transform: translateY(-1px);
}

/* اگر روی نمایشگر خیلی کوچیک بود، یه ذره نزدیک‌ترش کن */
@media (max-width: 480px) {
  .modal__actions [data-modal-close] {
    top: 8px;
    left: 8px;
    width: 30px;
    height: 30px;
  }
}
.modal__input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(37,99,235,.25); }


/* لیست داخل مودال – با قاب ملایم و اسکرول داخلی */
.modal__list {
  padding: 8px 10px;
  border-radius: 12px;

  /*background: color-mix(in srgb, var(--bg-soft) 70%, var(--card) 30%);*/
  /*border: 1px solid color-mix(in srgb, var(--line) 70%, transparent 30%);*/

  overflow-y: auto;

  display: flex;
  flex-direction: column;
  gap: 8px;

  /* برای اینکه داخل مودال قشنگ بشینه */
  /*box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);*/
}

/* اگر از <ul> / <ol> استفاده می‌کنی، بولت‌ها رو بردار */
.modal__list {
  list-style: none;
}

/* آیتم‌های مستقیم داخل لیست (li / div / a ...) */
.modal__list > * {
  padding: 8px 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--card) 92%, var(--bg) 8%);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent 20%);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text);

  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.08s ease;
}

/* حالت هاور روی آیتم‌ها (اگه لینک/کلایبل باشن خیلی خوب می‌شه) */
.modal__list > *:hover {
  background: color-mix(in srgb, var(--primary) 6%, var(--card) 94%);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--line) 65%);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

/* نسخه تیره کمی پررنگ‌تر بشه */
/*html[data-theme="dark"] .modal__list {*/
/*  background: color-mix(in srgb, var(--card) 85%, var(--bg) 15%);*/
/*  border-color: color-mix(in srgb, var(--line) 80%, transparent 20%);*/
/*  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7);*/
/*}*/

/*html[data-theme="dark"] .modal__list > * {*/
/*  background: color-mix(in srgb, var(--card) 95%, var(--bg) 5%);*/
/*}*/


/* حالت لودینگ برای دکمه‌های پرداخت / شارژ */
.btn--loading {
  position: relative;
  pointer-events: none;
  opacity: 0.9;
}

/* اسپینر کوچیک کنار متن دکمه */
.btn--loading::after {
  content: "";
  position: absolute;
  left: 12px;          /* برای فارسی، سمت چپ دکمه */
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-right-color: transparent;
  animation: btn-spinner 0.6s linear infinite;
}

@keyframes btn-spinner {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}


.modal__illustration {
  margin: 4px 0 12px;
  text-align: center;
}

.modal__illustration img {
  width: 162px;
  height: 162px;
  object-fit: contain;
  display: inline-block;
}

.modal__illustrationwpa {
  margin: 4px 0 12px;
  text-align: center;
}

.modal__illustrationwpa img {
  width: 100%;
  object-fit: contain;
  display: inline-block;
  border-radius: 20px;
}


.fa-chart-line:before, .fa-line-chart:before {
    font-family: "Awesome" !important;
}


.plans-step-indicator {
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 10px;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plans-step-indicator.is-active {
  color: var(--text);
  background: linear-gradient(90deg, #1d4ed8, #0ea5e9);
}

.plans-step-indicator.is-done {
  border-color: #22c55e;
  color: #bbf7d0;
}

/* خود مراحل */
.plans-step {
  display: none;
}

.plans-step.is-active {
  display: block;
}

.plans-step__options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 10px;
}


.plans-step__option-btn:hover {
  border-color: var(--line);
}

.plans-step__option-btn.is-active {
  border-color: transparent;
}

/* فقط وقتی فیلتر شد نمایش */

#plansStep3 .plan-card {
  display: none;
}

#plansStep3.has-filter .plan-card.is-visible {
  display: block;
}

/* متای کوچک داخل کارت پلن */

.plan-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0 2px;
}

.plan-meta-tag {
  font-size: 10px;
  border-radius: 999px;
  padding: 2px 8px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.92);
}

/* متای چک‌اوت (نوع سرور + مدت) */

.chk-meta-row {
  margin-top: 4px;
  font-size: 11px;
  color: #9ca3af;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.chk-meta-label {
  font-weight: 500;
}

.chk-meta-value {
  color: #e5e7eb;
}

.chk-meta-sep {
  opacity: 0.6;
}


/* ===== Multi-step plans: option buttons (تک سرور / مولتی / مدت) ===== */

.plans-step__options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

@media (min-width: 690px) {
  .plans-step__options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* هدر بالا با آیکون و تیک سبز */

.plans-steps-header {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 12px;
}

.plans-step-indicator {
  flex: 1 1 0;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.plans-step-indicator__icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.plans-step-indicator__label {
  white-space: nowrap;
  color:var(--text);
  font-size: 0.9rem;
}

.plans-step-indicator__check {
  display: none;
  color: #22c55e;
  font-size: 13px;
}

.plans-step-indicator.is-active {
  background: rgba(37, 99, 235, 0.08);
  border-color: var(--color-primary, #2563eb);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}


.plans-step-indicator.is-done .plans-step-indicator__icon {
    color: var(--text);  
}

.plans-step-indicator.is-done .plans-step-indicator__check {
  display: inline-flex;
}


/* استپ‌ها داخل body – ما نمایش را با JS کنترل می‌کنیم */
.plans-step {
  /* حالت پایه: وقتی JS لود نشده، به صورت عادی زیر هم می‌افتند */
}

/* keyframes برای ورود/خروج افقی */
@keyframes step-enter-from-right {
  from {
    opacity: 0;
    transform: translateX(5px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes step-exit-to-left {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-5px);
  }
}

@keyframes step-enter-from-left {
  from {
    opacity: 0;
    transform: translateX(-5px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes step-exit-to-right {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(5px);
  }
}



/* گزینه‌های هر استپ (کارت انتخاب تک/مولتی و مدت) */

.plans-step__options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

@media (min-width: 690px) {
  .plans-step__options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.plans-step__option-btn {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  background: var(--card3);
  display: flex;
align-items: center;
gap: 10px;
  cursor: pointer;
  text-align: right;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.05s ease;
  flex-direction: row-reverse;
  justify-content: space-between;
}


.plans-step__option-flag-multi{
        max-width: 55px;
        display: flex;
        gap: 5px;
        flex-wrap: wrap;
}

1.plans-step__option-btn:hover {
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.plans-step__option-btn.is-active {
  border-color: var(--color-primary, #2563eb);
  background: rgba(37, 99, 235, 0.07);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.plans-step__option-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.05);
}

.plans-step__option-icon i {
  font-size: 17px;
}

.plans-step__option-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}



.plans-step__option-desc {
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-text-muted, #64748b);
}


.plans-multistep{
    background: var(--bg1);
    padding: 10px;
    border-radius: 10px;

}

/* ظرف اصلی مولتی‌استپ – شیشه‌ای */
.plans-multistep {
  position: relative;
  border-radius: 15px;
  backdrop-filter: blur(18px);
}

/* لایه برق‌زن دور کارت */
.plans-multistep {
  position: relative;
}

/* خط دور کارت – رنگین‌کمونی، فقط خود خط، باکس ثابت */
.plans-multistep::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;             /* ضخامت خط */
  border-radius: inherit;
  pointer-events: none;

  /* گرادیان رنگین‌کمونی که با زاویه می‌چرخه */
  background: conic-gradient(from var(--shine-angle), rgba(255, 99, 132, 0) 0deg, #2196f34d 30deg, #2196F3 90deg, #2196f35c 150deg, rgb(54 162 235 / 31%) 150deg, #2196f34f 230deg, #2196f34d 280deg, rgba(255, 99, 132, 0) 360deg);

  /* فقط دور تا دور دیده بشه، داخل خالی بمونه */
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;

  /* همون انیمیشن قبلی‌ات که --shine-angle رو عوض می‌کنه */
  animation: dimiBorderShine 3s linear infinite;
}

/* متغیر زاویه برای انیمیشن گرادیان */
@property --shine-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* خود انیمیشن – چرخش کامل ۳۶۰ درجه */
@keyframes dimiBorderShine {
  to {
    --shine-angle: 360deg;
  }
}



/* لازمه دکمه یه کانتینر نسبی باشه */
.plans-step__option-btn {
  position: relative;
  overflow: hidden;
}

/* نوار برق شیشه‌ای */
.plans-step__option-btn::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -60%;
  width: 160%;
  height: 180%;

  /* نور خیلی ملایم */
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.00) 30%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.00) 70%,
    transparent 100%
  );

  opacity: 0.45;           /* اگر خیلی کمرنگ بود بکن 0.6 برای تست */
  transform: translateX(-120%);
  pointer-events: none;
  animation: optionGlassShine 4.5s ease-in-out infinite;
}
/* نسخه مخصوص تم روشن برای افکت شاین روی گزینه‌های پلن */
html[data-theme="light"] .plans-step__option-btn::after {
  background: linear-gradient(120deg, transparent 0%, rgba(148, 163, 184, 0.00) 30%, /* slate-400 خیلی کم */ rgba(148, 163, 184, 0.28) 50%, /* نوار وسط تیره‌تر */ rgb(33 150 243 / 29%) 70%, transparent 100%);
  opacity: 0.35; /* اگه هنوز کم بود بکن 0.45 */
}

/* انیمیشن حرکت نور */
@keyframes optionGlassShine {
  0% {
    transform: translateX(-130%);
  }
  55% {
    transform: translateX(130%);
  }
  100% {
    transform: translateX(130%);
  }
}

.fa-check{
    font-size: 12px;
        background: #4CAF50;
    border-radius: 5px;
    color: #FFF;
    padding: 3px;
}


.view--panel-guest .card {
    background:transparent;
}

.plans-steps-loading {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
}

.plans-steps-loading__spinner {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 3px solid rgba(148, 163, 184, 0.4);
  border-top-color: #0ea5e9;
  animation: plansSpin 0.8s linear infinite;
}

@keyframes plansSpin {
  to {
    transform: rotate(360deg);
  }
}


.plans-steps-header {
  position: relative;
}

/* خط ۱ پیکسلی که از راست به چپ فید می‌شود */
.plans-steps-header::after {
  content: "";
  position: absolute;
  inset-inline: 0;       /* راست تا چپ */
  bottom: -10px;             /* چسبیده به پایین هدر استپ‌ها */
  height: 1px;
  background: linear-gradient(to left, rgba(56, 189, 248, 0), /* شفاف از سمت راست */ rgb(56 189 248 / 16%), /* وسط پررنگ‌تر */ rgba(56, 189, 248, 0) /* شفاف سمت چپ */);

  transform-origin: right center; /* از راست شروع شود */
  transform: scaleX(0);           /* اولش هیچ چیز دیده نشود */
  opacity: 0;
  animation: plansHeaderLine 1.1s ease-out forwards;
}

/* انیمیشن فید + حرکت از راست به چپ (اسکیل) */
@keyframes plansHeaderLine {
  0% {
    transform: scaleX(0);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: scaleX(1);
    opacity: 1;
  }
}




/* دکمه زنگوله – فقط استایل تکمیلی، استایل اصلی از .btn میاد */
.header-icon-btn {
  position: relative;
  padding-inline: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

/* آیکن زنگوله */
.header-icon-btn__icon {
  font-size: 1.15rem;
  transition:
    transform 0.18s ease-out,
    color 0.18s ease-out,
    opacity 0.18s ease-out;
  opacity: 0.9;
}

/* هاور ساده روی دکمه */
.header-icon-btn:hover .header-icon-btn__icon {
  transform: translateY(-1px);
  opacity: 1;
}

/* وقتی نوتیف داریم (کلاس روی دکمه) */
.header-icon-btn--active .header-icon-btn__icon {
  color: #ef4444; /* قرمز ملایم */
  animation: header-bell-ring 0.6s ease-out;
}

/* انیمیشن تکون خوردن زنگوله */
@keyframes header-bell-ring {
  0%   { transform: rotate(0deg); }
  15%  { transform: rotate(-15deg); }
  30%  { transform: rotate(12deg); }
  45%  { transform: rotate(-8deg); }
  60%  { transform: rotate(5deg); }
  75%  { transform: rotate(-3deg); }
  100% { transform: rotate(0deg); }
}

/* خود بج قرمز گوشه زنگوله */
.header-bell-badge {
  position: absolute;
  bottom: 10px;
  right:0px;
  inset-inline-end: -2px; /* با RTL هم اوکی می‌مونه */
  transform: translate(40%, -40%);

  max-width: 20px;
  height: 18px;
  padding: 0 4px;

  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #fee2e2, #ef4444);
  color: var(--text);
  font-size: 9px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;

  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.7),
    0 4px 8px rgba(15, 23, 42, 0.35);

  display: none;              /* JS می‌کنه inline-flex */
  align-items: center;
  justify-content: center;

  pointer-events: none;
  white-space: nowrap;
}

/* وقتی دکمه active باشه بج یه پاپ + پالس ملایم داره */
.header-icon-btn--active .header-bell-badge {
  animation:
    notif-pop 220ms ease-out,
    notif-pulse 1.6s ease-out 220ms infinite;
}

/* پاپ اولِ ظاهر شدن */
@keyframes notif-pop {
  0%   { transform: translate(40%, -40%) scale(0.5); opacity: 0; }
  60%  { transform: translate(40%, -40%) scale(1.1); opacity: 1; }
  100% { transform: translate(40%, -40%) scale(1);   opacity: 1; }
}

/* پالس دور بج */
@keyframes notif-pulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(248, 113, 113, 0.6),
      0 4px 8px rgba(15, 23, 42, 0.35);
  }
  70% {
    box-shadow:
      0 0 0 10px rgba(248, 113, 113, 0),
      0 4px 8px rgba(15, 23, 42, 0.35);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(248, 113, 113, 0),
      0 4px 8px rgba(15, 23, 42, 0.35);
  }
}

/* کمی هماهنگی با دارک‌مود اگر data-theme داری */
[data-theme="dark"] .header-bell-badge {
  background: radial-gradient(circle at 30% 30%, #fecaca, #b91c1c);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 4px 10px rgba(0, 0, 0, 0.5);
}


/* کارت خلاصه پنل: آماده برای افکت شاین */
.panel-summary {
  position: relative;
  overflow: hidden;        /* نذاره نور از باکس بزنه بیرون */
}

/* نوار نور روی خود کارت panel-summary */
.panel-summary::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -60%;
  width: 160%;
  height: 180%;
  border-radius: inherit;

  /* همون استایل نور، فقط یه ذره ملایم‌تر */
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.00) 30%,
    rgba(255, 255, 255, 0.14) 50%,  /* می‌تونی 0.10 یا 0.18 کنی */
    rgba(255, 255, 255, 0.00) 70%,
    transparent 100%
  );

  opacity: 0.55;
  transform: translateX(-130%);
  pointer-events: none;
  will-change: transform, opacity;

  /* می‌خوای روی کارت آروم‌تر باشه، یکم دیرترش کردم */
  animation: optionGlassShine 6s ease-in-out infinite;
}

html[data-theme="light"] .panel-summary::before {
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.00) 30%, rgb(33 150 243 / 19%) 50%, /* می‌تونی 0.10 یا 0.18 کنی */ rgba(255, 255, 255, 0.00) 70%, transparent 100%);
  opacity: 0.35; /* اگه هنوز کم بود بکن 0.45 */
}



/* حالت پیش‌فرض (بدون data-theme) و روشن */
.plans-multistep {
  background-color: #0f172a; /* یا یه رنگ میانه که تو هر دو تم اوکی باشه */
  background-image: radial-gradient(circle at top, rgb(56 189 248 / 7%), #00000012 55%);
}

/* اگه تم روشن مستقل داری */
html[data-theme="light"] .plans-multistep {
  background-color: #f9fafb;
  background-image: radial-gradient(circle at top, rgb(56 189 248 / 5%), #00000000 55%);
}

/* تم تیره */
html[data-theme="dark"] .plans-multistep {
  background-color: #11121300;
}








/* بکگراند مشترک (اختیاری) */
.checkout-box {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  /* اگه نمی‌خوای برای همه باشه، این دو تا رو هم می‌تونی حذف کنی */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* تم تیره */
html[data-theme="dark"] .checkout-box {

    border: 1px solid rgb(33 150 243 / 22%);}

/* تم روشن */
html[data-theme="light"] .checkout-box {
background: radial-gradient(circle at 0% 0%,
 color-mix(in srgb, #2d91af 14%, var(--card) 86%) 0, transparent 60%), radial-gradient(circle at 100% 0%,
 color-mix(in srgb, var(--ok) 10%, var(--card) 90%) 0, transparent 55%), var(--card)
#181818bd
;
border: 1px solid rgba(148, 163, 184, 0.5);
}




.plans-steps-body{
    padding: 5px;
}



/*

/* FAQ accordion */
.faq-box {
  margin-top: 0;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-item-wrap {
  border-radius: 12px;
  background-color: rgba(148, 163, 184, 0.08); /* slate-400 با شفافیت پایین */
  overflow: hidden;
  transition: background-color 0.2s ease;
}

.faq-item-wrap.is-open {
  background-color: rgba(59, 130, 246, 0.08); /* یه آبی خیلی ملایم وقتی بازه */
}

.faq-item__header {
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.faq-item__q {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: right;
}

.faq-item__icon {
  font-size: 14px;
  opacity: 0.9;
}

.faq-item__chevron {
  font-size: 11px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.faq-item-wrap.is-open .faq-item__chevron {
  transform: rotate(180deg);
}

.faq-item__body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.24s ease;
}

.faq-item__body-inner {
  padding: 0 12px 10px 12px;
  color: var(--text-muted, #64748b);
  line-height: 1.8;
}
.plan-meta-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.plans-step__option-flag img {
  width: 25px;
  height: 18px;
  border-radius: 999px;
  object-fit: cover;
}

.plans-step__option-flag-multi img {
  width: 25px;
  height: 18px;
  border-radius: 999px;
  object-fit: cover;
}

.service-card__flag-group img {
  width: 25px;
  height: 18px;
  border-radius: 999px;
  object-fit: cover;
}

.service-card__flag-group {
display: flex;
    gap: 5px;
}

    .checkout-box {
        border: 2px solid rgba(37, 99, 235, .2);
        box-shadow: 0 5px 20px rgba(37, 99, 235, .08), 0 4px 12px rgba(0, 0, 0, .05);
         background: radial-gradient(circle at 20% 0%,
 color-mix(in srgb, #2196F3 8%, var(--bg-soft) 92%) 0%, rgba(248, 250, 252, 0) 70%), var(--bg-soft);
    }
    
.service-card__flag{
      width: 25px;
  height: 18px;
  border-radius: 999px;
  object-fit: cover;
}

/* اگر به هر دلیلی کارت مولتی سرور بود، لوکیشنش رو نشون نده */
.plan-card[data-server-type="multi"] .plan-meta-tag--location {
  display: none;
}


.plan-meta-tag--direct {
  background-color: rgba(34, 197, 94, 0.08);
  color: #16a34a;
  border-color: rgba(34, 197, 94, 0.2);
}

.plan-meta-tag--tunnel {
  background-color: rgba(234, 179, 8, 0.08);
  color: #ca8a04;
  border-color: rgba(234, 179, 8, 0.2);
}

.plan-meta-tag--tunnel i {
  margin-left: 4px;
  font-size: 11px;
}


.plans-step__option-title{
    display: flex;
    gap: 5px;
    align-items: center;
        font-weight: 900;
    font-size: 15px;
}

.help-precheck-box {
  margin-top: 12px;
  margin-bottom: 4px;
  padding: 5px 5px;
      border: 1px var(--line) solid;
    background: var(--bg);
}

.help-precheck-list {
  margin: 6px 0 0;
  padding-right: 1.3rem;
  list-style: disc;
}

.help-precheck-list li {
  font-size: 0.85rem;
  line-height: 1.9;
}




.plans-step__back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 0.8rem;
    color: var(--primary);
  cursor: pointer;
}

.plans-step__back-btn i {
  font-size: 0.9rem;
}


.plan-card .info-price {
  position: relative;
  overflow: hidden;
}




.plan-card .info-price::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -60%;
  width: 160%;
  height: 180%;
  background: linear-gradient(120deg, #00000000 0%, rgb(251 255 0 / 0%) 20%, rgb(255 181 0 / 23%) 50%, rgba(255, 255, 255, 0.0) 70%, #00000000 100%);
  opacity: 0.45;
  transform: translateX(-120%);
  pointer-events: none;
  animation: optionGlassShine 4.5s ease-in-out infinite;
}



.plans-step__option-extra-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.plans-step__option-extra-desc {
  opacity: .8;
}























