* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "Vazir";
  src: url("../fonts/Vazir.ttf") format("truetype"),
       url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
}

body {
  font-family: "Vazir", Tahoma, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(0,255,170,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 15%, rgba(0,255,170,0.025) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 80%, rgba(0,255,200,0.02) 0%, transparent 45%),
    radial-gradient(ellipse at 30% 50%, rgba(96,165,250,0.015) 0%, transparent 40%),
    #0a0a12;
  color: #e0e0e0;
  text-align: center;
  transition: opacity 0.25s ease;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(0,255,170,0.015) 49px, rgba(0,255,170,0.015) 50px),
    repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(0,255,170,0.015) 49px, rgba(0,255,170,0.015) 50px);
  mask-image: radial-gradient(ellipse at 50% 0%, black 35%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 35%, transparent 72%);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 99px, rgba(0,255,170,0.01) 99px, rgba(0,255,170,0.01) 100px),
    repeating-linear-gradient(-45deg, transparent, transparent 99px, rgba(0,255,170,0.01) 99px, rgba(0,255,170,0.01) 100px);
  mask-image: radial-gradient(ellipse at 50% 0%, black 35%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 35%, transparent 72%);
}

body > :not(script) {
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5em;
  color: #f0f0f0;
  letter-spacing: 0.03em;
}

h1 { font-size: 2.8rem; margin-top: 1rem; }
h2 { font-size: 2rem; margin-top: 1rem; }
h3 { font-size: 1.4rem; }

p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #b0b0b0;
  line-height: 1.8;
}

a {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #93bbfc;
}

code, pre {
  font-family: "Source Code Pro", monospace;
  background: #1a1a2e;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #e0e0e0;
}

blockquote {
  border-right: 3px solid #60a5fa;
  padding-right: 1em;
  color: #999;
  font-style: italic;
  margin: 1rem 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 1rem;
  margin-left: auto;
  margin-right: auto;
}

header.site-header, header#site-header {
  background: #0f0f1a;
  color: white;
  padding: 0.8rem 0;
  border-bottom: 1px solid #1e1e30;
  opacity: 0;
  animation: fadeIn 1s ease forwards 0.3s;
  position: relative;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
  font-size: 1.4rem;
  letter-spacing: 1px;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav.main-nav a {
  color: #ccc;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  position: relative;
}
nav.main-nav a:hover {
  color: #60a5fa;
}

.header-actions-compact {
  display: none;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.menu-toggle:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #e0e0e0;
  border-radius: 2px;
  transition: all 0.2s;
}

.nav-auth-mobile,
.nav-divider,
.nav-lang-mobile {
  display: none;
}

@media (max-width: 1100px) {
  nav.main-nav ul {
    gap: 0.5rem;
  }
  nav.main-nav a {
    font-size: 0.8rem;
  }
}

@media (max-width: 992px) {
  nav.main-nav ul {
    gap: 0.3rem;
  }
  nav.main-nav a {
    font-size: 0.75rem;
  }
}

@media (max-width: 768px) {
  .header-actions {
    display: none !important;
  }

  .header-actions-compact {
    display: flex;
    align-items: center;
    gap: 0.3rem;
  }

  nav.main-nav {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 280px !important;
    height: 100vh !important;
    background: #0f0f1a !important;
    border-right: 1px solid #1e1e30;
    transform: translateX(100%) !important;
    transition: transform 0.3s ease-in-out !important;
    z-index: 2147483647 !important;
    padding: 70px 1rem 2rem 1rem !important;
    box-shadow: -5px 0 20px rgba(0,0,0,0.5) !important;
    visibility: visible !important;
  }
  nav.main-nav.active {
    transform: translateX(0) !important;
  }
  nav.main-nav ul {
    flex-direction: column;
    gap: 0.2rem;
  }
  nav.main-nav li {
    width: 100%;
  }
  nav.main-nav a {
    display: block;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    border-radius: 8px;
  }
  nav.main-nav a:hover {
    background: rgba(255,255,255,0.05);
  }

  .nav-divider {
    display: block;
    margin: 0.5rem 0;
    padding: 0 1rem;
  }
  .nav-divider hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .nav-lang-mobile {
    display: block;
    padding: 0.3rem 1rem;
  }
  .btn-lang-mobile {
    width: 100%;
    padding: 0.5rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: "Vazir", sans-serif;
    transition: background 0.2s;
  }
  .btn-lang-mobile:hover {
    background: rgba(255,255,255,0.12);
  }

  .nav-auth-mobile {
    display: block;
    padding: 0 1rem;
  }
  .nav-auth-mobile a {
    color: #e0e0e0;
    font-size: 0.9rem !important;
  }
  .nav-auth-mobile a:hover {
    color: #60a5fa;
  }
  .logout-item a {
    color: #f87171 !important;
  }

  .header-container {
    flex-direction: row !important;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }
  .header-container .logo a {
    gap: 4px;
  }
  .header-container .logo img {
    height: 34px !important;
    width: 34px !important;
  }
  .header-container .logo span {
    font-size: 1rem;
  }
  .menu-toggle {
    width: 36px;
    height: 36px;
  }
  .menu-toggle span {
    width: 18px;
    height: 2px;
  }

  .nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 100000;
  }
  .nav-backdrop.active {
    display: block;
  }
  body.menu-open {
    overflow: hidden !important;
  }
  html[dir="ltr"] nav.main-nav {
    right: auto !important;
    left: 0 !important;
    border-right: none !important;
    border-left: 1px solid #1e1e30;
    transform: translateX(-100%) !important;
    box-shadow: 5px 0 20px rgba(0,0,0,0.5) !important;
  }
  html[dir="ltr"] nav.main-nav.active {
    transform: translateX(0) !important;
  }
}

html[dir="ltr"] .cart-badge {
  right: auto !important;
  left: -10px !important;
}
html[dir="ltr"] blockquote {
  border-right: none;
  padding-right: 0;
  border-left: 3px solid #60a5fa;
  padding-left: 1em;
}
html[dir="ltr"] .btn-lang {
  direction: ltr;
}
html[dir="ltr"] p,
html[dir="ltr"] li:not(.nav-auth-mobile):not(.nav-lang-mobile) {
  text-align: left;
}



/* ====== Section Titles ====== */
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title h2 {
  font-size: 1.8rem;
  color: #f0f0f0;
  margin-bottom: 0.5rem;
}
.section-title p {
  color: #888;
  font-size: 0.9rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ====== Content Area ====== */
.content-area {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-grow: 1;
  padding: 2rem 0;
  text-align: right;
  align-items: center;
}

/* ====== Sidebar ====== */
aside.sidebar {
  width: 250px;
  background: #0f0f1a;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #1e1e30;
}
aside.sidebar h3 {
  font-size: 1.1rem;
  color: #f0f0f0;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #60a5fa;
}
aside.sidebar ul {
  list-style: none;
}
aside.sidebar li {
  margin-bottom: 0.8rem;
}
aside.sidebar a {
  color: #999;
  font-size: 0.9rem;
  transition: color 0.3s, padding-right 0.3s;
  display: block;
}
aside.sidebar a:hover {
  color: #60a5fa;
  padding-right: 5px;
}

/* ====== Main Content ====== */
section.main-content {
  flex-grow: 1;
}

/* ====== Card Grid ====== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
  width: 100%;
}

.card {
  background: #0f0f1a;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #1e1e30;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 0;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 1.2rem;
  flex-grow: 1;
  text-align: right;
}
.card-content h3 {
  font-size: 1.1rem;
  color: #f0f0f0;
  margin-bottom: 0.5rem;
}
.card-content p {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 0.8rem;
  line-height: 1.6;
}
.card-content strong {
  color: #60a5fa;
  font-size: 1rem;
}

.card-actions {
  padding: 0 1.2rem 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

/* ====== Buttons ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: "Vazir", sans-serif;
  text-align: center;
  user-select: none;
  white-space: nowrap;
  background: #1a1a2e;
  color: #ccc;
  will-change: transform;
}
.btn:hover {
  transform: translateY(-2px);
}

.btn-xs { padding: 0.2rem 0.5rem; font-size: 0.75rem; }
.btn-sm { padding: 0.35rem 0.8rem; font-size: 0.85rem; }
.btn-md { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn-lg { padding: 0.7rem 1.5rem; font-size: 1.05rem; }
.btn-xl { padding: 0.9rem 2rem; font-size: 1.2rem; }

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  border: none;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.btn-success {
  background: #059669;
  color: #fff;
  border: none;
}
.btn-success:hover { background: #047857; }

.btn-danger {
  background: #dc2626;
  color: #fff;
  border: none;
}
.btn-danger:hover { background: #b91c1c; }

.btn-warning {
  background: #d97706;
  color: #fff;
  border: none;
}
.btn-warning:hover { background: #b45309; }

.btn-info {
  background: #0284c7;
  color: #fff;
  border: none;
}
.btn-info:hover { background: #0369a1; }

.btn-dark {
  background: #1e1e30;
  color: #e0e0e0;
  border: none;
}
.btn-dark:hover { background: #2d2d44; }

.btn-outline-primary {
  background: transparent;
  color: #60a5fa;
  border: 2px solid #60a5fa;
}
.btn-outline-primary:hover {
  background: #60a5fa;
  color: #fff;
}

.btn-outline-success {
  background: transparent;
  color: #34d399;
  border: 2px solid #34d399;
}
.btn-outline-success:hover { background: #34d399; color: #fff; }

.btn-outline-danger {
  background: transparent;
  color: #f87171;
  border: 2px solid #f87171;
}
.btn-outline-danger:hover { background: #f87171; color: #fff; }

.btn-outline-warning {
  background: transparent;
  color: #fbbf24;
  border: 2px solid #fbbf24;
}
.btn-outline-warning:hover { background: #fbbf24; color: #212121; }

.btn-outline-info {
  background: transparent;
  color: #38bdf8;
  border: 2px solid #38bdf8;
}
.btn-outline-info:hover { background: #38bdf8; color: #fff; }

.btn-outline-dark {
  background: transparent;
  color: #ccc;
  border: 2px solid #555;
}
.btn-outline-dark:hover { background: #555; color: #fff; }

.btn:disabled, .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ====== Courses Section ====== */
.courses-section {
  padding: 3rem 1rem;
  background: #0a0a12;
}
.courses-section .card-grid {
  max-width: 1200px;
  margin: 0 auto;
}

/* ====== Articles Section ====== */
.articles-section {
  padding: 3rem 1rem;
  background: #0f0f1a;
  border-top: 1px solid #1e1e30;
}
.articles-grid-custom {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.article-card-custom {
  background: #0a0a12;
  border: 1px solid #1e1e30;
  border-radius: 16px;
  overflow: hidden;
  text-align: right;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article-card-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}
.article-card-custom .article-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.article-card-custom .article-body {
  padding: 1.2rem;
}
.article-card-custom .article-body h3 {
  font-size: 1.05rem;
  color: #f0f0f0;
  margin-bottom: 0.5rem;
}
.article-card-custom .article-body p {
  font-size: 0.85rem;
  color: #999;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}
.article-card-custom .article-meta {
  font-size: 0.75rem;
  color: #666;
  display: flex;
  gap: 1rem;
}

/* ====== CTA Section ====== */
.cta-section {
  padding: 4rem 1rem;
  text-align: center;
  background: linear-gradient(135deg, #0c0c1a, #141428);
  border-top: 1px solid #1e1e30;
}
.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.cta-section p {
  color: #888;
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* ====== Product / Profile Card ====== */
.product-card, .profile-card {
  background: #0f0f1a;
  border: 1px solid #1e1e30;
  border-radius: 16px;
  overflow: hidden;
  padding: 1rem;
}
.product-card { max-width: 600px; margin-inline: auto; }
.profile-card { max-width: 700px; width: 100%; margin: 2rem auto; padding: 2rem; }

.product-image { text-align: center; }
.product-image img { width: 50%; height: auto; border-radius: 12px; }

.badge {
  position: absolute;
  top: 8px;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 8px;
  color: #fff;
}
.discount { right: 8px; background: #059669; }
.new { left: 8px; background: #d97706; }

/* ====== Auth Forms ====== */
/* ====== Auth Pages (Login / Register) ====== */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}

.auth-wrapper::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
  border-radius: 50%;
  top: -150px;
  left: -150px;
  animation: authGlow 8s ease-in-out infinite alternate;
}
.auth-wrapper::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(96,165,250,0.1) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -100px;
  right: -100px;
  animation: authGlow 10s ease-in-out infinite alternate-reverse;
}

@keyframes authGlow {
  0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  100% { transform: translate(50px, 30px) scale(1.3); opacity: 1; }
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(124, 58, 237, 0.25);
  padding: 2.5rem 2rem;
  box-shadow:
    0 0 40px rgba(124, 58, 237, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.4);
  animation: cardFloat 0.6s ease-out;
}

@keyframes cardFloat {
  0% { opacity: 0; transform: translateY(30px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(124,58,237,0.4), transparent 40%, transparent 60%, rgba(96,165,250,0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.auth-card h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  background: linear-gradient(135deg, #a78bfa, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-form {
  font-family: "Vazir", sans-serif;
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group input {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  outline: none;
  background: rgba(10, 10, 18, 0.7);
  color: #e0e0e0;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.form-group input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15), 0 0 20px rgba(124, 58, 237, 0.05);
  background: rgba(15, 15, 26, 0.9);
}

.form-group label {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  color: #888;
  font-size: 0.9rem;
  pointer-events: none;
  transition: 0.3s ease all;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
  top: -0.5rem;
  right: 0.8rem;
  font-size: 0.72rem;
  color: #a78bfa;
  background: rgba(15, 15, 26, 0.9);
  padding: 0 0.4rem;
  border-radius: 4px;
}

.auth-form .btn {
  width: 100%;
  padding: 0.85rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.auth-form .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}

.auth-form .btn:active {
  transform: translateY(0);
}

.auth-form .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Login tabs */
.login-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(10, 10, 18, 0.6);
  border: 1px solid rgba(124, 58, 237, 0.15);
  padding: 3px;
}

.login-tab {
  flex: 1;
  padding: 0.6rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  font-weight: 600;
  background: transparent;
  color: #777;
}

.login-tab.active {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.3);
}

.login-tab:not(.active):hover {
  color: #a78bfa;
  background: rgba(124, 58, 237, 0.1);
}

.auth-form p {
  color: #888;
  margin-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
}

.auth-form p a {
  color: #a78bfa;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.auth-form p a:hover {
  border-bottom-color: #a78bfa;
}

/* Field validation */
.field-error {
  color: #ef4444;
  font-size: 0.78rem;
  margin-top: 4px;
  padding-right: 0.3rem;
}
.field-valid {
  color: #22c55e;
  font-size: 0.78rem;
  margin-top: 4px;
  padding-right: 0.3rem;
}

/* Password toggle (eye icon) */
.pwd-field {
  position: relative;
}
.pwd-field input {
  padding-right: 2.8rem !important;
}
html[lang="en"] .pwd-field input {
  padding-right: 1rem !important;
  padding-left: 2.8rem !important;
}
.pwd-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: opacity 0.2s;
  z-index: 2;
}
html[lang="en"] .pwd-toggle {
  right: auto;
  left: 0.5rem;
}
.pwd-toggle:hover { opacity: 1; }

/* OTP digit boxes */
.otp-digits {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  direction: ltr;
  margin-bottom: 0.5rem;
}
.otp-box {
  width: 3rem;
  height: 3.5rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.25);
  outline: none;
  background: rgba(10, 10, 18, 0.7);
  color: #e0e0e0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.15s ease;
  caret-color: #7c3aed;
}
.otp-box:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2), 0 0 15px rgba(124, 58, 237, 0.08);
  transform: translateY(-2px);
  background: rgba(15, 15, 26, 0.9);
}
.otp-box.filled {
  border-color: rgba(124, 58, 237, 0.5);
  background: rgba(124, 58, 237, 0.1);
}

/* Auth message */
#message, #phone-message, #email-message {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  padding: 0.5rem;
  border-radius: 8px;
}

/* ====== Header Actions ====== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cart-badge {
  background: #dc2626;
  color: white;
  border-radius: 50%;
  padding: 0 5px;
  font-size: 0.65rem;
  font-weight: bold;
  min-width: 16px;
  text-align: center;
}

/* ====== Footer ====== */
.site-footer {
  background: #0f0f1a;
  color: #888;
  padding: 1.5rem 0;
  font-size: 0.85rem;
  border-top: 1px solid #1e1e30;
  text-align: center;
}

/* ====== Animations ====== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====== Responsive ====== */
@media (max-width: 992px) {
  .container { padding: 0 0.8rem; }
  .content-area { padding: 1rem 0; }
}
@media (max-width: 768px) {
  .container { padding: 0 0.6rem; }
  .content-area { padding: 0.5rem 0; }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .articles-grid-custom { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
  body { font-size: 14px; }
  .container { padding: 0 0.4rem; }
  .card-grid { grid-template-columns: 1fr; gap: 0.8rem; }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.2rem; }
  .header-container .logo span {
    font-size: 0.85rem;
  }
  .header-container .logo img {
    height: 30px !important;
    width: 30px !important;
  }
}

html[lang="en"] {
  direction: ltr;
}
html[lang="en"] .header-container .logo span {
  font-size: 1rem;
  display: inline-block;
  vertical-align: middle;
}
html[lang="en"] nav.main-nav ul {
  gap: 0.8rem;
}
html[lang="en"] nav.main-nav a {
  font-size: 0.78rem;
}
@media (max-width: 1200px) and (min-width: 993px) {
  html[lang="en"] nav.main-nav ul { gap: 0.5rem; }
  html[lang="en"] nav.main-nav a { font-size: 0.72rem; }
}
@media (max-width: 992px) {
  html[lang="en"] nav.main-nav ul { gap: 0.3rem; }
  html[lang="en"] nav.main-nav a { font-size: 0.68rem; }
}
html[lang="en"] .btn-lang {
  direction: ltr;
}
html[lang="en"] .form-group label {
  right: auto;
  left: 1rem;
}
html[lang="en"] .form-group input:focus + label,
html[lang="en"] .form-group input:not(:placeholder-shown) + label {
  right: auto;
  left: 0.8rem;
}
html[lang="en"] .auth-card h2 {
  direction: ltr;
}
html[lang="en"] .otp-box {
  direction: ltr;
}

body.fade-out {
  opacity: 0;
}
