/* **************************** GENERAL - start   *********************************** */

@font-face{
    font-family: "BYekan";
    src: url("../fonts/BYekan/BYekan-webfont.eot") format("eot"),
        url("../fonts/BYekan/BYekan-webfont.woff") format("woff"),
        url("../fonts/BYekan/BYekan-webfont.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

:root {
  --bg-dark: #0b0f1a;
  --bg-light: #11162a;
  --primary: #6cf2c2;
  --secondary: #7aa2ff;
  --text: #eaeaf0;
  --muted: #a1a1b3;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "BYekan", sans-serif;
}

body {
  font-family: "BYekan", sans-serif;
  background: radial-gradient(circle at top, #121a3a, var(--bg-dark));
  color: var(--text);
  line-height: 1.8;
}

.border-error{
  border: 2px solid red !important;
}

/* **************************** GENERAL - end   *********************************** */

/* **************************** HEADER - start   *********************************** */

.header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
}

.logo a{
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img{
  width: 50px;
  height: auto;
  border-radius: 50%;
}

/* **************************** HEADER - end   *********************************** */

/* **************************** HERO - start   *********************************** */

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 6%;
  gap: 3rem;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
}

.hero h1 span {
  color: var(--primary);
  text-shadow: 0 0 20px rgba(108, 242, 194, 0.6);
}

.subtitle {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: var(--muted);
}

.highlight {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: var(--secondary);
}

.cta-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #000;
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(122, 162, 255, 0.4);
}

.btn.secondary {
  border: 1px solid var(--secondary);
  color: var(--secondary);
}

.btn.secondary:hover {
  background: var(--secondary);
  color: #000;
}

.btn.disabled {
  background: var(--muted);
  color: #fff;
  cursor:not-allowed;
}

.btn.disabled:hover{
  background: var(--muted);
  color: #fff;
  transform: unset;
}

.d-none{
  display: none;
}

.d-block{
  display: block;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  width: 400px;
  height: auto;
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(122, 162, 255, 0.25);
}

/* **************************** HERO - end   *********************************** */

/* **************************** FEATURES - start   *********************************** */

.features {
  padding: 4rem 6%;
  background: var(--bg-light);
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(108, 242, 194, 0.2);
}

.feature-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

/* **************************** FEATURES - end   *********************************** */

/* **************************** FOOTER - start   *********************************** */

.footer {
  padding: 0.5rem 6rem;
  font-size: 1rem;
  color: var(--muted);
  background: #0a0e18;
  display: flex;
  flex-direction: column;
}

.footer-social-enamad{
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 10px 0;
}

.footer-enamad a img{
  width: 100px;
  height: auto;
}

.footer-copyright{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}

/* **************************** FOOTER - end   *********************************** */

/* **************************** RESPONSIVE - start   *********************************** */

@media (max-width: 900px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-image{
    display: none;
  }

  .cta-buttons {
    justify-content: center;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .footer-social-enamad {
    flex-direction: column;
    gap: 30px;
  }
}

/* **************************** RESPONSIVE - end   *********************************** */

/* **************************** MODAL - start   *********************************** */

/* MODAL OVERLAY */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 20, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 999;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* MODAL BOX */
.modal {
  background: linear-gradient(180deg, #11162a, #0b0f1a);
  border-radius: 20px;
  padding: 2.5rem;
  width: 90%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 0 40px rgba(108, 242, 194, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: modalFade 0.4s ease;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modalFade {
  from {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal h2 {
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.modal-subtitle {
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* CONTACT INFO */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
}

.contact-item span {
  display: block;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.contact-item a {
  color: var(--secondary);
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* CLOSE BUTTON */
.modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--primary);
}

/* **************************** MODAL - end  *********************************** */

/* ================= AUTH PAGES - start ================= */

.auth-container {
  /* min-height: 100vh; */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-box {
  background: linear-gradient(180deg, #11162a, #0b0f1a);
  width: 100%;
  max-width: 420px;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(108, 242, 194, 0.25);
  text-align: center;
  min-height: 60vh;
}

.auth-box h2 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.otpForm{
  padding: 50px 0;
}

.otpForm>button{
  margin-top: 30px;
}

.auth-input {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  outline: none;
}

.auth-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(108, 242, 194, 0.2);
}

.otp-input {
  text-align: center;
  letter-spacing: 8px;
  font-size: 1.2rem;
}

.auth-btn {
  width: 100%;
}

.auth-back {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--secondary);
  text-decoration: none;
}

.auth-back:hover {
  text-decoration: underline;
}

.otp-timer {
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ================= AUTH PAGES - end ================= */

/* ================= HAMBURGER MENU - start ================= */

/* Header Fix */
.header {
  padding: 1.2rem 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Hamburger Icon */
.hamburger {
  width: 30px;
  height: 22px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background: var(--text);
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* ================= NAV DESKTOP - start ================= */

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

/* Navigation Links */
.nav-link {
  position: relative;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.3rem 0;
  transition: color 0.3s ease;
}

/* Hover color */
.nav-link:hover {
  color: var(--primary);
}

/* Neon underline effect */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  box-shadow: 0 0 10px rgba(108, 242, 194, 0.6);
  transition: width 0.35s ease;
}

/* Animate underline on hover */
.nav-link:hover::after {
  width: 100%;
}

/* Active page (optional – add class="active") */
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  width: 100%;
}

/* ================= NAV DESKTOP - end ================= */

/* authBtn */
.authBtn.active{
  color: var(--primary);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 20, 0.75);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 1000;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Menu Box */
.mobile-menu {
  position: absolute;
  top: 0;
  right: 0;
  width: 75%;
  max-width: 300px;
  height: 100%;
  background: linear-gradient(180deg, #11162a, #0b0f1a);
  padding: 2rem;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu {
  transform: translateX(0);
}

/* Menu Links */
.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu a.active {
  color: var(--primary);
}

/* Close Button */
.menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--muted);
  cursor: pointer;
  align-self: flex-end;
}

/* hamburger menu responsive */
@media (max-width: 900px) {
  .nav-desktop,
  #authBtn {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* ================= HAMBURGER MENU - end ================= */

/* ================= CART - start ================= */

.cart-box{
  position: relative;
  margin-right: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.cart-box img{
  width: 35px;
  height: auto;
  border-radius: 20%;
}

.cart-box.active img{
  border: 3px solid var(--primary);
}

.cart-count{
  position: absolute;
  top: -6px;
  left: -8px;
  background: #ff3b3b;
  color: #fff;
  font-size: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

@media (max-width: 900px){
  .cart-box{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ================= CART - end ================= */

/* ================= SUBSCRIPTION PAGE - start ================= */

.subscription {
  padding: 4rem 6%;
  text-align: center;
}

.subscription h1 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.subscription-subtitle {
  color: var(--muted);
  margin-bottom: 3rem;
}

.plans-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.plan-card {
  background: linear-gradient(180deg, #11162a, #0b0f1a);
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 25px rgba(108, 242, 194, 0.15);
  transition: all 0.35s ease;
}

.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 40px rgba(108, 242, 194, 0.35);
}

.plan-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.plan-messages {
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.plan-price {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

/* Featured plan */
.plan-card.featured {
  border: 1px solid var(--primary);
  box-shadow: 0 0 50px rgba(108, 242, 194, 0.45);
}

/* Responsive */
@media (max-width: 768px) {
  .subscription h1 {
    font-size: 1.9rem;
  }
}

/* ================= SUBSCRIPTION PAGE - end ================= */

/* **************************** USER PANEL - start   *********************************** */

/* جلوگیری از اسکرول هنگام باز بودن منو */
body.no-scroll {
  overflow: hidden;
  height: 100vh;
}

/* Toggle Button */
.menu-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 1.6rem;
  background: var(--primary);
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 6px 14px;
  cursor: pointer;
  z-index: 1100;
}

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 20, 0.75);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 1150;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100%;
  background: linear-gradient(180deg, #11162a, #0b0f1a);
  padding: 2rem 1.5rem;
  transition: right 0.4s ease;
  z-index: 1200;
  overflow-y: auto;
}

.sidebar.active {
  right: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--muted);
  cursor: pointer;
}

.close-btn:hover{
  color: var(--primary);
}

.sidebar h3 {
  margin: 1.5rem 0;
  color: var(--primary);
}

/* Menu */
.menu {
  list-style: none;
  padding: 0;
}

.menu li {
  padding: 0.8rem 0;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.menu li.active {
  color: var(--primary);
}

.menu li.logout {
  color: #ff6b6b;
}

/* Content */
.content {
  padding: 5rem 6%;
  padding-right: 100px;
}

/* section show/hide */
.section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.section.active {
  display: block;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(10px);}
  to   {opacity: 1; transform: translateY(0);}
}

/* my profile */
.profile-card {
  background: var(--panel);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(108,242,194,0.15);
  max-width: 600px;
  margin: auto;
}

.profile-card h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.profile-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.profile-info span {
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-info strong {
  display: block;
  margin-top: 0.3rem;
  color: var(--text);
}

/* my subscriptions */
/* Subscription Info */
.subscription-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  background: var(--panel);
  padding: 1.5rem;
  border-radius: 16px;
  margin-bottom: 2.5rem;
  box-shadow: 0 0 25px rgba(108,242,194,0.2);
}

.subscription-info span {
  color: var(--muted);
  font-size: 0.9rem;
}

.subscription-info strong {
  display: block;
  margin-top: 0.4rem;
}

/* Table */
.table-section h2{
  text-align: center;
  color: var(--primary);
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 1rem;
  text-align: center;
}

th {
  background: var(--panel);
}

tr {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.status.active {
  color: var(--primary);
}

.status.expired {
  color: #ff6b6b;
}

.status.passive {
  color: #ff0;
}

.status.paid {
  color: var(--primary);
}

.status.not_paid {
  color: #ff6b6b;
}

.status.not_defined {
  color: #ff0;
}

/* Mobile Table */
/* @media (max-width: 768px) { */
@media (max-width: 992px) {
  table thead {
    display: none;
  }

  table tr {
    display: block;
    margin-bottom: 1rem;
    background: var(--panel);
    border-radius: 12px;
  }

  table td {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 1rem;
  }

  table td::before {
    content: attr(data-label);
    color: var(--muted);
  }

  .invoice-table-operation,
  .order-table-operation{
    width: 60%;
  }
}

/* order detail modal - start */

.order-modal{
  max-width: 700px;
}

.order-items{
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;;
}

.order-item{
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  padding: 1.2rem;
  border: 1px solid rgba(255,255,255,0.05);
}

/* title + description rows */
.order-row{
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.order-row span{
  color: var(--muted);
  font-size: 0.9rem;
}

.order-row strong{
  color: var(--text);
  width: 80%;
  text-align: right;
}

/* flex instead of grid */
.order-flex{
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: 1rem;
}

.flex-col{
  flex: 1;
}

.flex-col span{
  color: var(--muted);
  font-size: 0.85rem;
  display: block;
}

.flex-col strong{
  display: block;
  margin-top: 0.3rem;
  color: var(--text);
}

/* responsive */
@media (max-width: 768px){

  .order-row{
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .order-row strong{
    width: 100%;
  }

  .order-flex{
    flex-direction: column;
    gap: 0.8rem;
  }

  .flex-col{
    width: 100%;
  }
}

/* order detail modal - end */

/* invoice detail modal - start */

.invoice-modal{
  max-width: 700px;
}

.invoice-items{
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;;
}

.invoice-item{
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  padding: 1.2rem;
  border: 1px solid rgba(255,255,255,0.05);
}

/* title + description rows */
.invoice-row{
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.invoice-row span{
  color: var(--muted);
  font-size: 0.9rem;
}

.invoice-row strong{
  color: var(--text);
  width: 80%;
  text-align: right;
}

/* flex instead of grid */
.invoice-flex{
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: 1rem;
}

.flex-col{
  flex: 1;
}

.flex-col span{
  color: var(--muted);
  font-size: 0.85rem;
  display: block;
}

.flex-col strong{
  display: block;
  margin-top: 0.3rem;
  color: var(--text);
}

/* responsive */
@media (max-width: 768px){

  .invoice-row{
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .invoice-row strong{
    width: 100%;
  }

  .invoice-flex{
    flex-direction: column;
    gap: 0.8rem;
  }

  .flex-col{
    width: 100%;
  }
}

/* invoice detail modal - end */

/* **************************** USER PANEL - end   *********************************** */

/* **************************** CHATBOT - start   *********************************** */

.chat-page {
  padding: 3rem 6%;
  max-width: 1100px;
  margin: auto;
}

.chat-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  background: var(--bg-light);
  padding: 1.2rem 1.5rem;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 25px rgba(108,242,194,0.15);
}

.chat-info span {
  font-size: 0.85rem;
  color: var(--muted);
}
.chat-info strong {
  display: block;
  margin-top: 0.3rem;
  color: var(--primary);
}

/* CHAT CONTAINER */
.chat-container {
  height: 420px;
  overflow-y: auto;
  background: linear-gradient(180deg, #11162a, #0b0f1a);
  border-radius: 18px;
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  box-shadow: inset 0 0 25px rgba(0,0,0,0.4);
}

/* MESSAGE */
.chat-message {
  max-width: 75%;
  padding: 0.9rem 1.2rem;
  border-radius: 14px;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.chat-message.user {
  margin-left: auto;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #000;
}

.chat-message.ai {
  margin-right: auto;
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

.chat-sender{
  color: var(--text);
  font-size: 0.7rem;
  text-align: right;
  padding-bottom: 20px;
}

.chat-message.user .chat-sender{
  color: #000;
}

.chat-datetime{
  color: var(--text);
  font-size: 0.7rem;
  text-align: left;
  padding-top: 20px;
}

.chat-message.user .chat-datetime{
  color: #000;
}

/* INPUT */
.chat-input {
  display: flex;
  gap: 0.8rem;
}

.chat-input input {
  flex: 1;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.05);
  color: var(--text);
}

.chat-input button {
  padding: 0 1.6rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #000;
}

/* code block */
.code-block{
  margin-top:30px;
  margin-bottom:30px;
  border-radius:12px;
  overflow:hidden;
  background:#0d1117;
  border:1px solid rgba(255,255,255,0.08);
}

.code-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:6px 12px;
  background:#161b22;
  font-size:12px;
}

.code-lang{
  color:#7aa2ff;
  font-weight:bold;
  text-transform:uppercase;
}

.copy-btn{
  background:none;
  border:none;
  color:#6cf2c2;
  cursor:pointer;
  font-size:12px;
}

.copy-btn:hover{
  opacity:0.8;
}

.code-block pre{
  margin:0;
  padding:14px;
  overflow-x:auto;
  direction:ltr;
}

.code-block code{
  font-family: Consolas, Monaco, monospace;
  font-size:13px;
  line-height:1.6;
  color:#e6edf3;
}

.katex {
  font-size: 1.1em !important;
  line-height: 1.4 !important;
  direction: ltr;
}

.katex-display {
  margin: 1em 0 !important;
  text-align: center !important;
}

.message .katex {
  background: rgba(255,255,255,0.5);
  padding: 10px;
  border-radius: 8px;
  display: inline-block;
}

/* MOBILE */
@media (max-width: 768px) {
  .chat-container {
    height: 360px;
  }
}

/* **************************** CHATBOT - end   *********************************** */

/* ================= LOADING SPINNER - start ================= */
.loading-spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
/* ================= LOADING SPINNER - end ================= */

/* ================= LOADING SPINNER FULLPAGE - start ================= */
.loading-spinner-fullpage {
  border: 6px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
/* ================= LOADING SPINNER FULLPAGE - end ================= */

/* ================= LOADING OVERLAY - start ================= */
.loading-overlay-wrapper {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 26, 0.9); /* Dark background, similar to --bg-dark */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1300; /* بالاتر از منوی کاربری (z-index: 1200) */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.loading-overlay-wrapper.active {
  opacity: 1;
  visibility: visible;
}
/* ================= LOADING OVERLAY - end ================= */

/* ================= LOADING - start ================= */

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1300;
}

.loading p {
    color: white;
    margin-top: 15px;
    font-size: 1.2rem;
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ================= LOADING - end ================= */

/* ================= PAY METHOD PAGE - start ================= */

.pay-method{
  padding: 4rem 6%;
  display: flex;
  justify-content: center;
}

.pay-box{
  width: 100%;
  max-width: 500px;
  background: linear-gradient(180deg, #11162a, #0b0f1a);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(108,242,194,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.pay-box h1{
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.selected-plan{
  background: rgba(255,255,255,0.04);
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.selected-plan span{
  color: var(--muted);
  display:block;
}

.selected-plan strong{
  font-size: 1.2rem;
  color: var(--secondary);
}


.selected-order{
  background: rgba(255,255,255,0.04);
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.selected-order span{
  color: var(--muted);
  display:block;
}

.selected-order strong{
  font-size: 1.2rem;
  color: var(--secondary);
}

.selected-order-price{
  background: rgba(255,255,255,0.04);
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.selected-order-price span{
  color: var(--muted);
  display:block;
}

.selected-order-price strong{
  font-size: 1.2rem;
  color: var(--secondary);
}

.pay-subtitle{
  margin-bottom: 1rem;
  color: var(--muted);
}

.pay-options{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.pay-option{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  background: rgba(255,255,255,0.03);
  padding: 0.9rem 1rem;
  border-radius: 10px;
  cursor: pointer;
}

.pay-option input{
  accent-color: var(--primary);
  transform: scale(1.2);
}

.pay-btn{
  width: 100%;
}

/* ================= PAY METHOD PAGE - end ================= */

/* ================= PAY INVOICE METHOD PAGE - start ================= */

.selected-invoice{
  background: rgba(255,255,255,0.04);
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.selected-invoice span{
  color: var(--muted);
  display:block;
}

.selected-invoice strong{
  font-size: 1.2rem;
  color: var(--secondary);
}

.selected-invoice-price{
  background: rgba(255,255,255,0.04);
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.selected-invoice-price span{
  color: var(--muted);
  display:block;
}

.selected-invoice-price strong{
  font-size: 1.2rem;
  color: var(--secondary);
}

/* ================= PAY INVOICE METHOD PAGE - end ================= */

/* ================= PRODUCTS PAGE - start ================= */

.products-section {
  padding: 4rem 6%;
  text-align: center;
}

.products-section-title {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.products-section-subtitle {
  color: var(--muted);
  margin-bottom: 3rem;
}

.products-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.product-card {
  background: linear-gradient(180deg, #11162a, #0b0f1a);
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 25px rgba(108, 242, 194, 0.15);
  transition: all 0.35s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 40px rgba(108, 242, 194, 0.35);
}

.product-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.product-description {
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.product-price {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

/* Featured plan */
.product-card.featured {
  border: 1px solid var(--primary);
  box-shadow: 0 0 50px rgba(108, 242, 194, 0.45);
}

/* Responsive */
@media (max-width: 768px) {
  .products-section-title {
    font-size: 1.9rem;
  }
}

/* ================= PRODUCTS PAGE - end ================= */

/* ================= CART PAGE - start ================= */

.cart-section {
  padding: 4rem 6%;
  text-align: center;
  min-height: 60vh;
}

.cart-wrapper {
  margin-top: 2rem;
}

.empty-cart {
  background: rgba(255,255,255,0.05);
  padding: 2rem;
  border-radius: 18px;
  color: var(--muted);
  font-size: 1.1rem;
  box-shadow: 0 0 25px rgba(108,242,194,0.15);
}

.cart-table-wrapper {
  overflow-x: auto;
  margin-bottom: 2rem;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  overflow: hidden;
}

.cart-table th {
  background: rgba(255,255,255,0.04);
  padding: 1rem;
  font-size: 1rem;
  color: var(--primary);
}

.cart-table td {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.95rem;
}

/* quantity box */
.quantity-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.quantity-btn {
  width: 28px;
  height: 28px;
  background: var(--secondary);
  color: #000;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
}

.quantity-btn:hover {
  background: var(--primary);
}

.quantity-number {
  min-width: 28px;
  text-align: center;
  font-weight: bold;
}

/* delete button */
.delete-btn {
  background: #ff4b4b;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: 0.2s;
}
.delete-btn:hover {
  background: #ff2d2d;
}

/* cart summary */
.cart-summary {
  background: linear-gradient(180deg, #11162a, #0b0f1a);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(108,242,194,0.20);
  max-width: 480px;
  margin: auto;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.summary-item strong {
  color: var(--secondary);
}

.cart-summary-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.cart-summary-buttons .btn {
  flex: 1;
}

/* confirm modal */
/* overlay */
.confirm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* active overlay */
.confirm-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* modal box */
.confirm-modal {
  background: #1f1f1f;  /* تیره */
  color: #fff;
  padding: 25px;
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  text-align: center;

  transform: scale(0.7);
  opacity: 0;
  transition: 0.25s ease;

  max-height: 90vh;
  overflow-y: auto;
}

/* active modal scale animation */
.confirm-modal-overlay.active .confirm-modal {
  transform: scale(1);
  opacity: 1;
}

.confirm-modal p {
  font-size: 17px;
  margin-bottom: 20px;
  line-height: 1.7;
}

.confirm-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.confirm-buttons button {
  min-width: 90px;
}


/* MOBILE RESPONSIVE TABLE */
@media (max-width: 768px) {
  .cart-table thead {
    display: none;
  }

  .cart-table tr {
    display: block;
    margin-bottom: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.25);
  }

  .cart-table td {
    display: flex;
    justify-content: space-between;
    border: none;
    padding: 0.6rem 0;
  }

  .cart-table td::before {
    content: attr(data-label);
    color: var(--muted);
  }
}

/* ================= CART PAGE - end ================= */
