/* =========================================================
   BlueDesign — optimized stylesheet
   Same selectors as the original (drop-in replacement).
   Reduced via: CSS variables, shorthand, :is()/:where()
   grouping of duplicate blocks, and a minimal reset.
   ========================================================= */

@font-face { font-family: "BlueButterfly"; src: url("../fonts/BLUEBUTTERFLY-REGULAR.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "paeez"; src: url("../fonts/DigiPaeezProfesional.ttf") format("truetype"); font-display: swap; }

:root {
  /* ---- palette ---- */
  --purple-950: #190037;
  --purple-900: #1b0039;
  --purple-800: #2d0b5a;
  --purple-700: #3d0078;
  --violet: #8b5cf6;
  --violet-dark: #6d28d9;
  --violet-darker: #7c3aed;
  --violet-darkest: #5b21b6;
  --pink: #ec4899;
  --pink-accent: #e91e63;
  --rose: #f43f5e;
  --cyan: #06b6d4;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --yellow: #fde383;
  --cream: #ffefba;
  --green: #4caf50;
  --emerald: #10b981;
  --red: #dc3545;
  --red-alt: #f44336;
  --blue: #2196f3;
  --blue-accent: #3b82f6;
  --orange: #ff9800;
  --white: #fff;
  --black: #000;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e6;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --gray-light: #f5f5f5;
  --gray: #999;
  --gray-mid: #666;
  --gray-dark: #333;
  --ink: #1a1a2e;

  /* ---- type ---- */
  --font-display: "BlueButterfly";
  --font-paeez: "paeez";
  --font-system: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  /* ---- radii / shadow / motion ---- */
  --r-full: 9999px;
  --r-xl: 48px;
  --r-lg: 30px;
  --r-md: 16px;
  --r-sm: 10px;
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, .08);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, .15);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, .2);
  --ease-bounce: cubic-bezier(.68, -.55, .265, 1.55);
  --t-fast: .2s ease;
  --t: .3s ease;

  /* ---- shared blob keyframe distances ---- */
  --blob-dx: 40px;
  --blob-dy: -30px;
  --blob-scale: 1.1;
}

/* =========================================================
   RESET
   ========================================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font-display); }
*::-webkit-scrollbar { width: 5px; background-color: transparent; }
*::-webkit-scrollbar-thumb { background-color: #76ceff; }

/* =========================================================
   BLOBS (shared across .blob-bg-container / .about / .explore / .contact)
   ========================================================= */
@keyframes floatBlob {
  to { transform: translate(var(--blob-dx), var(--blob-dy)) scale(var(--blob-scale)); }
}

:is(.blob-bg-container, .about-blobs, .explore-blobs, .contact-blobs) {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

:is(.blob-bg-container, .about, .explore, .contact) .blob {
  position: absolute;
  filter: blur(60px);
  border-radius: 50%;
  opacity: .35;
  animation: floatBlob 16s infinite alternate ease-in-out;
  will-change: transform;
}
.blob-bg-container .blob { opacity: .4; }

.blob-1 { background: var(--violet); width: 550px; height: 550px; top: -200px; left: -200px; animation-duration: 14s; }
.blob-2 { background: var(--pink); width: 450px; height: 450px; bottom: 20%; right: -150px; animation-duration: 18s; animation-delay: 1s; }
.blob-3 { background: var(--cyan); width: 500px; height: 500px; top: 40%; left: 60%; animation-duration: 20s; animation-delay: .5s; opacity: .3; }
.blob-4 { background: var(--amber); width: 400px; height: 400px; bottom: -100px; left: 20%; animation-duration: 17s; animation-delay: 2s; opacity: .35; }
.blob-5 { background: var(--emerald); width: 350px; height: 350px; top: 60%; right: 30%; animation-duration: 22s; animation-delay: 3s; opacity: .25; }
.about .blob-1 { width: clamp(250px, 40vw, 550px); height: clamp(250px, 40vw, 550px); top: -100px; left: -100px; }
.about .blob-2 { width: clamp(200px, 35vw, 450px); height: clamp(200px, 35vw, 450px); bottom: 15%; right: -80px; }
.about .blob-3 { width: clamp(220px, 38vw, 500px); height: clamp(220px, 38vw, 500px); top: 40%; left: 50%; }
.about .blob-4 { width: clamp(180px, 30vw, 400px); height: clamp(180px, 30vw, 400px); bottom: -50px; left: 15%; }
.about .blob-5 { width: clamp(160px, 28vw, 350px); height: clamp(160px, 28vw, 350px); top: 60%; right: 25%; }
.contact .blob-4 { opacity: .3; }
.contact .blob-6 { background: var(--amber-light); width: 380px; height: 380px; top: 15%; left: 40%; animation-duration: 19s; animation-delay: 1.5s; opacity: .28; }

/* =========================================================
   NAVBAR
   ========================================================= */
.nav-wrapper { position: fixed; inset: 0 auto auto 0; width: 100%; z-index: 1000; padding: 1rem 2rem; pointer-events: none; }

nav:not(.dashboard nav):not(.index nav){
  pointer-events: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: rgba(255, 255, 255, .2);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 80px;
  padding: .1rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--t);
}

.glass { background: rgba(255, 255, 255, .1); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .2); }

.hamburger { display: none; z-index: 100; font-size: 28px; background: none; border: none; color: var(--black); cursor: pointer; transition: all var(--t); }
.hamburger.active { transform: rotate(90deg); }

.logo { font: 700 1.5rem var(--font-display); color: var(--white); letter-spacing: -.025em; margin: 10px -20px 0 0; }

.left_header { display: flex; align-items: center; gap: 15px; z-index: 998; }
.sign_log img { width: 50px; }

.nav-links { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 20px; border-radius: 60px; transition: all var(--t) var(--ease-bounce); transform-origin: top center; }

.nav-links a {
  position: relative;
  background: rgba(255, 255, 255, .3);
  border: 1px solid var(--white);
  border-radius: 30px;
  padding: 4px 30px;
  transition: all var(--t);
}
.nav-links a::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--purple-900);
  text-align: center;
  opacity: 0;
  transition: opacity .3s ease-in;
}
.nav-links a:nth-child(1)::after { content: "خانه"; }
.nav-links a:nth-child(2)::after { content: "اکسپلور"; }
.nav-links a:nth-child(3)::after { content: "درباره ما"; }
.nav-links a:nth-child(4)::after { content: "تماس با ما"; }
.nav-links a:nth-child(5)::after { content: "همکاری با ما"; }
.nav-links img { width: 30px; height: 30px; opacity: 1; transition: opacity .3s ease-in; }
.nav-links a:hover img { opacity: 0; }
.nav-links a:hover::after { opacity: 1; }

@media (max-width: 768px) {
  .nav-wrapper { background: rgba(255, 255, 255, .25); }
  .hamburger { display: block; z-index: 1001; }
  .nav-links {
    position: fixed; inset: 80px 20px auto 20px;
    flex-flow: row wrap; justify-content: center;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 60px;
    padding: 15px 20px; gap: 12px;
    box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-20px);
    transition: all .3s var(--ease-bounce);
    z-index: 1000;
  }
  .nav-links.active { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .nav-links a { flex-shrink: 0; background: rgba(0, 0, 0, .05); padding: 6px 16px; opacity: 0; transform: translateX(-20px); }
  .nav-links.active a { opacity: 1; transform: translateX(0); }
  .nav-links.active a:nth-child(1) { transition-delay: .05s; }
  .nav-links.active a:nth-child(2) { transition-delay: .1s; }
  .nav-links.active a:nth-child(3) { transition-delay: .15s; }
  .nav-links.active a:nth-child(4) { transition-delay: .2s; }
  .nav-links.active a:nth-child(5) { transition-delay: .25s; }
  .nav-links img { width: 24px; height: 24px; }
  .nav-links a::after { font-size: 14px; }
  nav { padding: .1rem 1.2rem; }
  .logo { font-size: 1.2rem; margin-right: 0; }
  .sign_log img { width: 40px; }
  .user-name { display: none; }
}
@media (max-width: 480px) {
  .nav-links { gap: 4px; }
  .nav-links a { padding: 4px 12px; }
  .nav-links img { width: 20px; height: 20px; }
  .nav-links a::after { font-size: 12px; }
}

/* =========================================================
   USER MENU (shared: default header + explore header)
   ========================================================= */
:is(.user-menu, .explore .user-menu) { position: relative; }
.user-dropdown { cursor: pointer; }
.user-info { display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .15); border-radius: 40px; padding: 5px 12px 5px 8px; transition: all var(--t-fast); }
.user-info:hover { background: rgba(255, 255, 255, .25); }
.user-avatar-mini { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.user-avatar-placeholder { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--violet-dark)); display: flex; align-items: center; justify-content: center; }
.user-avatar-placeholder svg { width: 18px; height: 18px; color: var(--white); }
.user-name { font-size: 13px; font-weight: 500; color: var(--white); max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-arrow { width: 14px; height: 14px; color: var(--white); transition: transform var(--t-fast); }
.user-dropdown.active .dropdown-arrow { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; margin-top: 8px;
  min-width: 200px; background: var(--white); border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
  opacity: 0; visibility: hidden; transition: all var(--t-fast); z-index: 1000;
}
.user-dropdown.active .dropdown-menu { opacity: 1; visibility: visible; }
.dropdown-menu a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--gray-dark); text-decoration: none; font-size: 13px; transition: background .2s; }
.dropdown-menu a:hover { background: var(--gray-light); }
.dropdown-menu svg { width: 18px; height: 18px; color: var(--gray-mid); }
.dropdown-menu .divider { height: 1px; background: #eee; margin: 5px 0; }
.dropdown-menu .logout, .dropdown-menu .logout svg { color: var(--red); }

.limit-selector { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .2); border-radius: 40px; padding: 5px 15px; backdrop-filter: blur(5px); }
.limit-selector label { font-size: 13px; color: var(--white); }
.limit-selector select { padding: 5px 10px; border-radius: 30px; border: none; background: rgba(0, 0, 0, .2); color: var(--white); cursor: pointer; font-size: 13px; }
.limit-selector select option { background: var(--purple-950); color: var(--white); }

/* =========================================================
   FOOTER
   ========================================================= */
footer { padding: 6rem 1.5rem; }
.footer-container { max-width: 1280px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: start; gap: 3rem; }
.footer-logo { font-size: 1.875rem; font-weight: 700; margin-bottom: 2rem; color: var(--slate-900); letter-spacing: -.05em; }
.col-span-2 { grid-column: span 2; }
.footer-col h4 { font-weight: 700; color: var(--slate-400); text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; -webkit-padding-start: .5rem; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: #ffa71a; text-decoration: none; transition: color .2s; }
.footer-col a:hover, .social-links a:hover { color: var(--rose); }
.footer-bottom { display: flex; flex-flow: row wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.7rem; padding-top: 2rem; border-top: 1px solid var(--slate-200); font-size: .875rem; color: var(--slate-500); }
.social-links { display: flex; gap: 1.5rem; margin-top: 1rem; }
.social-links a { color: var(--slate-500); text-decoration: none; transition: color .2s; }

@media (max-width: 1100px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  footer { padding: 3rem 1rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .social-links { justify-content: center; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ----------------------------------- INDEX ----------------------------------- */
body.index { direction: rtl; background: linear-gradient(to bottom, var(--purple-950) 22%, #fff, var(--purple-950)); color: var(--slate-900); }
.index .nav-wrapper { position: absolute; padding: .5rem .2rem; }
.index nav {
    pointer-events: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: .1rem 1.8rem;
  transition: all var(--t);
}

.index .parallax-wrapper { height: 100dvh; width: 100%; position: relative; overflow: hidden; }
.index .parallax { position: relative; height: 100%; width: 100%; }
.index .layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; pointer-events: none; }
.index .train { position: absolute; width: 800px; right: -500px; top: 60%; transform: translateY(-50%); z-index: 5; }
.index .tree { position: absolute; bottom: -10px; left: 0; width: 100dvw; z-index: 6; }
.index .sky { position: absolute; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.index .content-wrapper { position: relative; z-index: 1; }

.index .search-gif { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; justify-content: center; width: 600px; margin-top: -90px; z-index: 100; }
.index .gif { width: 100%; height: 100%; border: none; z-index: 0; }
.index .gif img { width: 100%; height: auto; opacity: .4; }
.index .search-section { position: relative; width: 100%; display: flex; justify-content: center; align-items: center; inset: unset; margin-top: -20px; z-index: 1; }
.index .search-container { width: 100%; max-width: 600px; padding: 0 1rem; }
.index .search-container .glass { display: flex; align-items: center; padding: .5rem; border-radius: var(--r-full); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25); }
.index .search-container img { margin: 0 13px; }
.index .search-container input { flex-grow: 1; background: transparent; border: none; outline: none; color: var(--white); padding: .75rem .5rem; font-size: 1.125rem; text-align: right; }
.index .search-container input::placeholder { color: rgba(255, 255, 255, .6); }
.index .search-container .glass button:first-child { background: none; border: none; outline: none; }
.index .search-container .glass button:last-child { background: var(--cream); color: var(--purple-950); border: none; border-radius: var(--r-full); padding: .75rem 1.5rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: opacity .2s; }
.index .search-container button:hover { opacity: .9; }
@media (max-width: 768px) {
  .index .search-gif { width: 300px; }
  .index .search-container .glass button:last-child { display: none; }
}

.index .services-section { max-width: 1380px; margin: 60px auto; padding: 6rem 1.5rem; }
.index .services-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.index .service-card { display: flex; flex-direction: column; align-items: center; text-align: center; border-radius: 1.5rem; padding: 3rem; transition: all .2s; }
.index .service-card img { width: 60px; }
.index .service-card:hover { background: rgba(255, 255, 255, .2); }
.index .icon-wrapper { width: 3rem; height: 3rem; border-radius: 1rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.index .service-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: .5rem; color: #95c1ff; }
.index .service-card p { color: #d4e6ff; }

.index .portfolio-section { padding: 6rem 1.8rem; }
.index .portfolio-container { max-width: 1300px; margin: 0 auto; }
.index .portfolio-header { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; }
.index .portfolio-header h2 { font-size: 2.25rem; font-weight: 700; margin-bottom: 1rem; }
.index .portfolio-header p { color: var(--slate-500); max-width: 28rem; }
.index .view-all { display: flex; align-items: center; gap: .5rem; background: none; border: none; color: var(--rose); font: 700 20px var(--font-display); margin-top: 1.5rem; cursor: pointer; transition: gap .2s; }
.index .view-all img { width: 25px; cursor: pointer; transition: all .3s ease; }
.index .view-all:hover img { transform: scaleX(1.3); transform-origin: left center; }

.index .masonry-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; gap: 1rem; }
.index .masonry-item { position: relative; border-radius: 1.5rem; overflow: hidden; cursor: pointer; transition: transform .3s cubic-bezier(.4, 0, .2, 1); }
.index .masonry-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.index .masonry-item:hover { transform: scale(1.02); }
.index .masonry-item:hover img { transform: scale(1.05); }
.index .bg-rose-400 { background-color: #fb7185; }
.index .md\:col-span-2 { grid-column: span 2; }
.index .md\:row-span-2 { grid-row: span 2; }
@media (max-width: 768px) {
  .index .masonry-grid { grid-template-columns: 1fr; grid-auto-rows: 250px; }
  .index .md\:col-span-2 { grid-column: span 1; }
  .index .md\:row-span-2 { grid-row: span 1; }
}

.index .about { position: relative; overflow: hidden; padding: 8rem 1.5rem; backdrop-filter: 15px; }
.index .about-container { max-width: 1300px; margin: 0 auto; display: grid; align-items: center; }
.index .blur-circle { position: absolute; top: -2.5rem; right: -2.5rem; width: 8rem; height: 8rem; background: var(--amber-light); border-radius: var(--r-full); opacity: .2; filter: blur(40px); }
.index .about-image img { width: 100%; height: 257px; max-width: 700px; transform: rotateY(180deg); }
.index .about-content { color: var(--white); }
.index .about-content h2 { font-size: 3rem; font-weight: 700; margin-bottom: 2rem; }
.index .about-text { font-size: 1.125rem; line-height: 1.8; color: #1B0039; opacity: .9; text-align: justify; margin-bottom: 30px; }
.index .about-text p:first-child { margin-bottom: 1rem; }
.index .about-button { background: var(--white); color: #2563eb; border: none; border-radius: var(--r-full); padding: 1rem 2.5rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .2s; }
.index .about-button:hover { background-color: #eff6ff; }

@media (min-width: 768px) {
  .index .services-grid { grid-template-columns: repeat(2, 1fr); }
  .index .portfolio-header { flex-direction: row; }
  .index .view-all { margin-top: 0; }
  .index .masonry-grid { grid-template-columns: repeat(4, 1fr); }
  .index .about-container { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .index .services-grid { grid-template-columns: repeat(4, 1fr); }
  .index .lg\:col-span-1 { grid-column: span 1; }
}
@media (max-width: 1024px) { .index .train { position: absolute; right: -700px; top: 56%; transform: translateY(-50%); } }
@media (max-width: 768px) {
  .index .portfolio-header { flex-direction: column; align-items: center; text-align: center; }
  .index .about-container { display: flex; flex-direction: column; gap: 2rem; }
  .index .about-content { padding: 0 1rem; }
  .index .about-content h2 { font-size: 2rem; text-align: center; }
  .index .about-text { font-size: 1rem; text-align: center; padding: 0 .5rem; }
  .index .about-button { display: block; margin: 2rem auto 0; width: fit-content; }
  .index .about-image img { width: 100%; max-width: 500px; height: 200px; margin-top: 70px; transform: rotate(90deg) !important; }
  .index .train { position: absolute; width: 600px; right: -500px; top: 57%; transform: translateY(-50%); z-index: 1; }
}
@media (max-width: 480px) {
  .index .search-gif { width: 90vw; }
  .index .search-container button { padding: .6rem 1rem; font-size: .9rem; }
}

/* ----------------------------------- ABOUT ----------------------------------- */
body.about { min-height: 100vh; direction: rtl; position: relative; overflow-x: hidden; background: linear-gradient(145deg, #f9fafc 0%, #eef2f5 100%); font-family: var(--font-paeez); }
body.about *:not(.title):not(.title *):not(.nav-wrapper):not(.nav-wrapper *) {
  font-family: var(--font-paeez), "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(16px, 4vw, 35px);
  text-shadow: .5px 0 0 var(--black);
}
body.about h1 { font-size: clamp(28px, 8vw, 50px); }

.about .container { width: 90%; max-width: 1400px; margin: 30px auto 0; display: flex; flex-direction: column; align-items: center; background: rgba(0, 0, 0, .06); border-radius: 50px; position: relative; z-index: 1; padding: 0 20px; }
.about .title { margin-top: 100px; display: flex; flex-flow: row wrap; align-items: center; justify-content: center; gap: clamp(15px, 4vw, 30px); }
.about .title img { width: clamp(40px, 8vw, 50px); }
.about .br-title-section1 { background-color: var(--black); width: 90%; max-width: 500px; height: 2px; border-radius: 50%; margin-top: 50px; }

.about .avatar-wrapper { width: clamp(120px, 25vw, 200px); }
.about .avatar-wrapper img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 30px; }
.about .bottom-team-section .avatar-wrapper { position: relative; }
.about .avatar-wrapper::after {
  content: attr(data-text);
  position: absolute; inset: 0 0 auto auto; top: 0; right: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, .75); color: var(--white);
  font-size: clamp(12px, 3vw, 18px); font-weight: bold;
  border-radius: 30px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s ease; cursor: pointer;
}
.about .avatar-wrapper:hover::after { opacity: 1; }

.about .stats { border-radius: 50%; display: flex; justify-content: center; align-items: center; }
.about .stats img { width: 70px; }

.about .inner-section2 { position: relative; width: 95%; margin: 20px auto; padding: 25px 0 15px; display: flex; flex-direction: column; align-items: center; background: rgba(106, 4, 101, .545); border-radius: 30px; }
.about .inner-section2 .title { margin-top: 0; }
.about .inner-section2 .title::after {
  content: "چه چیزی سایت ما رو متفاوت کرده؟";
  position: absolute; top: -25px; left: 50%; transform: translateX(-50%);
  background-color: var(--yellow);
  padding: clamp(8px, 2vw, 15px) clamp(15px, 5vw, 40px);
  border-radius: 20px; white-space: nowrap;
  font-size: clamp(12px, 3.5vw, 18px); font-weight: bold; z-index: 100;
}
.about .inner-section2 p { margin: 0 auto; padding: 20px 20px 30px; color: var(--white); text-align: justify; font-size: clamp(14px, 3.5vw, 20px); line-height: 1.6; }

.about .inner-section3 { padding: clamp(40px, 8vw, 80px) clamp(15px, 5vw, 50px); width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.about .inner-section3 h3 { font-size: clamp(24px, 7vw, 80px) !important; font-weight: 200; margin-bottom: 20px; text-align: center; }
.about .inner-section3 img { min-width: 150px; margin: 0 200px 20px 0; }
.about .inner-section3 button { margin: 0 auto; padding: 8px 40px; font-size: clamp(14px, 4vw, 20px); outline: none; border: none; border-radius: 40px; background-color: rgba(255, 255, 255, .05); backdrop-filter: blur(500px); transition: .1s; }
.about .inner-section3 button:hover { background-color: rgba(255, 255, 255, .2); }
.about .inner-section3 a { color: var(--black); text-decoration: none; }

.about .inner-section1 { display: flex; flex-flow: row wrap; align-items: center; justify-content: center; padding: clamp(20px, 5vw, 50px); gap: clamp(30px, 6vw, 100px); }
.about .inner-section1 .right_section1 { flex: 1; min-width: 260px; }
.about .inner-section1 .left_section1 { flex: 1; min-width: 220px; display: flex; justify-content: center; }
.about .inner-section1 .left_section1 img { width: 100%; max-width: 500px; height: auto; }
.about .inner-section1 p { font-size: clamp(14px, 3.5vw, 22px); line-height: 1.6; text-align: justify; }

.about .stat-section { width: 100%; background: rgba(0, 0, 0, .1); margin: 0 auto; }
.about .inner-stat-section ul { display: flex; flex-flow: row wrap; justify-content: space-around; align-items: center; list-style: none; padding: clamp(30px, 5vw, 40px) clamp(15px, 4vw, 30px); gap: clamp(25px, 5vw, 40px); }
.about .inner-stat-section li { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 100px; }
.about .inner-stat-section li div { width: clamp(60px, 12vw, 90px); height: clamp(60px, 12vw, 90px); }
.about .inner-stat-section .stats img { width: 100%; height: auto; }

.about .inner-team-section { display: flex; flex-direction: column; align-items: center; width: 100%; padding: clamp(40px, 8vw, 80px) clamp(15px, 5vw, 50px); }
.about .top-team-section { width: 100%; text-align: justify; }
.about .top-team-section p { font-size: clamp(14px, 3.5vw, 20px); line-height: 1.6; }
.about .bottom-team-section { width: 100%; margin: 50px 0 20px; }
.about .bottom-team-section ul { display: flex; flex-flow: row wrap; justify-content: center; align-items: center; gap: clamp(25px, 6vw, 60px); list-style: none; }
.about .bottom-team-section li { display: flex; flex-direction: column; align-items: center; gap: 10px; }

.about .inner-logo-section { display: grid; place-items: center; gap: 30px; padding: 50px 20px; text-align: center; width: 100%; }
.about .top-logo-section img { max-width: 300px; width: 100%; }
.about .bottom-logo-section h2 { font-size: clamp(18px, 5vw, 32px); }

@media (max-width: 992px) {
  .about .container { width: 95%; margin-top: 20px; padding: 0 12px; }
  .about .inner-section1 { flex-direction: column; text-align: center; }
  .about .inner-section1 .right_section1 p { text-align: center; }
}
@media (max-width: 768px) {
  .about .title { margin-top: 70px; }
  .about .br-title-section1 { margin-top: 30px; }
  .about .inner-stat-section ul, .about .bottom-team-section ul { gap: 20px; }
  .about .inner-section3 h3 { line-height: 1.3; }
  .about .inner-logo-section { padding: 30px 15px; }
}
@media (max-width: 580px) {
  .about .inner-section2 .title::after { white-space: normal; text-align: center; width: 90%; font-size: 14px; top: -35px; }
  .about .inner-section2 { margin-top: 45px; }
}
@media (max-width: 576px) {
  .about .container { width: 98%; }
  .about .title h1 { font-size: 24px; }
  .about .title img { width: 35px; }
  .about .inner-section1 { padding: 25px 12px; }
  .about .inner-team-section { padding: 30px 12px; }
  .about .inner-section2 p { padding: 15px 15px 25px; }
  .about .avatar-wrapper { width: 110px; }
  .about .bottom-team-section ul { gap: 20px; }
}
@media (max-width: 420px) {
  .about .avatar-wrapper { width: 90px; }
  .about .inner-stat-section li div { width: 55px; height: 55px; }
  .about .inner-stat-section li p { font-size: 12px; }
}

/* ----------------------------------- JOIN ----------------------------------- */
.join .main-content { position: relative; z-index: 2; padding-top: 100px; }
.join .join-us-section { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 4rem 2rem; }
.join .join-us { max-width: 1000px; width: 100%; margin: 0 auto; }
.join .join-us-inner {
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}
.join .join-us-inner p { line-height: 1.9; text-align: justify; font-size: 1rem; color: var(--ink); margin-bottom: 2rem; max-height: 500px; overflow-y: auto; padding-left: 15px; }
.join .join-us-inner p::-webkit-scrollbar { width: 4px; }
.join .join-us-inner button {
  display: inline-block;
  background: linear-gradient(105deg, var(--violet), var(--violet-dark));
  border: none; border-radius: 60px;
  padding: 14px 40px; font-size: 1.1rem; font-weight: 700; color: var(--white);
  cursor: pointer; box-shadow: 0 6px 14px rgba(0, 0, 0, .2);
  transition: all .25s;
}
.join .join-us-inner button:hover { transform: scale(.98); background: linear-gradient(105deg, var(--violet-darker), var(--violet-darkest)); }

.join .forest-section { position: relative; width: 100%; line-height: 0; }
.join .tree-layer { width: 100%; display: block; }
.join .tree-layer img, .join .bridge-layer img, .join .train-layer img { width: 100%; height: auto; display: block; }
.join .train-layer { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 700px; pointer-events: none; z-index: -1; }
.join .bridge-layer { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 90%; pointer-events: none; z-index: -1; }
.join footer { position: relative; z-index: 10; background-color: #54125a; }
.join .about-blobs { z-index: 0; }

@media (max-width: 768px) {
  .join .join-us-section { padding: 2rem 1rem; min-height: auto; }
  .join .join-us-inner { padding: 1.5rem; }
  .join .join-us-inner p { font-size: .85rem; max-height: 350px; }
  .join .join-us-inner button { padding: 10px 30px; font-size: 1rem; }
  .join .train-layer { width: 479px; top: 50%; }
}
@media (max-width: 480px) {
  .join .join-us-inner { padding: 1.2rem; }
  .join .join-us-inner p { font-size: 1rem; max-height: 280px; }
  .join .train-layer { width: 200px; top: 50%; }
}

/* ----------------------------------- EXPLORE ----------------------------------- */
.explore { position: relative; overflow-x: hidden; }
body.explore { display: flex; margin: 0; min-height: 100vh; position: relative; background: transparent; }
.explore .container::before { content: ""; position: fixed; inset: 0; background: rgba(255, 239, 186, .1); z-index: -1; pointer-events: none; }
.explore .container { margin-right: 0 !important; width: 100% !important; max-width: 100% !important; transition: none !important; }

.explore .explore-blobs { position: fixed; inset: 0; padding: 8px 10px; z-index: 5; display: flex; justify-content: space-between; align-items: center; border-radius: 8px; }
.explore .designer-name { color: var(--white); text-decoration: none; font-size: 12px; cursor: pointer; display: flex; align-items: center; gap: 5px; }
.explore .designer-name:hover { color: var(--orange); }
.explore .design-price { color: var(--green); font-size: 11px; font-weight: bold; }
.explore .image-wrapper { position: relative; padding: 10px; background: var(--gray-light); border: 5px solid; border-radius: 15px; transition: border-color var(--t); }
.explore .load-more-btn { text-align: center; margin: 30px 0; }
.explore .load-more-btn button { background: var(--purple-900); color: var(--white); border: none; border-radius: 30px; padding: 12px 30px; font-size: 14px; cursor: pointer; }
.explore .load-more-btn button:hover { background: var(--purple-800); }
.explore .loading { text-align: center; padding: 20px; color: var(--gray-mid); }
.explore .image-card-link, .image-card-link { display: block; text-decoration: none; color: inherit; }
.image-card-link:hover .image-wrapper { transform: translateY(-3px); transition: transform var(--t); }

.explore .image-actions { position: absolute; inset: 10px 10px auto 10px; display: flex; justify-content: space-between; opacity: 0; transition: opacity var(--t); z-index: 10; }
.explore .image-wrapper:hover .image-actions, .explore .image-card:hover .image-actions { opacity: 1; }
.explore .image-card .image-actions { top: auto; bottom: 20px; left: 0; right: 0; padding: 0 15px; }

.explore .action-btn { background: rgba(0, 0, 0, .7); border: none; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.explore .action-btn:hover { transform: scale(1.1); }
.explore .download-btn:hover { background: var(--green); }
.explore :is(.save-btn:hover, .save-btn.saved) { background: var(--pink-accent); }

.explore .right_header { display: flex; flex-direction: row; gap: 10px; }
.explore .filter-select { padding: 8px 15px; border-radius: 8px; border: 1px solid #ddd; background: var(--white); }
.explore .no-results { text-align: center; padding: 50px; color: var(--gray); }

.explore-blobs { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

/* sidebar */
.explore .sidebar { position: fixed; top: 0; right: -300px; /* حالت بسته */ width: 280px; height: 100vh; background: rgba(255, 255, 255, .98); backdrop-filter: blur(10px); box-shadow: -2px 0 20px rgba(0, 0, 0, .15); overflow-y: auto; z-index: 1000; transition: right var(--t); }
.explore .sidebar.open { right: 0; }
.sidebar-close-btn { position: absolute; top: 15px; left: 15px; width: 35px; height: 35px; border-radius: 50%; background: var(--purple-900); color: var(--white); border: none; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--t); }
.sidebar-close-btn:hover { background: var(--red); transform: scale(1.05); }
.explore .sidebar .logo { padding: 20px; text-align: center; border-bottom: 1px solid #eee; }
.explore .sidebar-logo { width: 120px; }
.explore .mobile-logo { display: none !important; }
.explore .sidebar-nav { display: flex; flex-direction: column; align-items: flex-start; padding: 20px 0; background: none; box-shadow: none; }
.explore .nav-item { display: flex; align-items: center; width: 100%; padding: 15px 10px; color: var(--gray-dark); text-decoration: none; background: transparent; border-right: 4px solid transparent; transition: all var(--t); }
.explore .nav-item:hover { background-color: var(--gray-light); border-right-color: var(--purple-900); }
.explore .nav-item.active { background-color: #fff3e0; border-right-color: var(--purple-900); color: #400088; }
.explore .nav-item svg { width: 20px; height: 20px; margin-left: 15px; }
.explore .nav-item span { font-size: 14px; }

.explore .toggle-sidebar { position: fixed; top: 20px; right: 20px; width: 45px; height: 45px; background: var(--purple-900); border: none; border-radius: 50%; cursor: pointer; display: flex !important; /* همیشه نمایش داده شود */ align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0, 0, 0, .2); transition: all var(--t); z-index: 1001; }
.explore .toggle-sidebar:hover { background: var(--purple-800); transform: scale(1.05); }
.explore .toggle-sidebar svg { width: 24px; height: 24px; stroke: var(--white); stroke-width: 2; }
.explore .sidebar.open ~ .toggle-sidebar { right: 310px; }

#sidebar-overlay { display: none; position: fixed; inset: 0; z-index: 998; }
#sidebar-overlay.active { display: block; }

.explore .header { display: flex; justify-content: space-between; align-items: center; padding: 20px 80px 20px 30px; box-shadow: 0 2px 10px rgba(0, 0, 0, .05); top: 0; z-index: 99; }
.explore .middle_header { flex: .5; display: flex; justify-content: center; }
.explore .left_header { display: flex; align-items: center; }
.explore .left_header img { width: 150px; margin-right: 50px; }
.explore .wrap { width: 100%; max-width: 500px; }
.explore .search { position: relative; display: flex; width: 100%; }
.explore .searchTerm { width: 100%; padding: 12px 15px; border: 2px solid var(--purple-900); border-left: none; border-radius: 0 30px 30px 0; outline: none; font-size: 14px; background: transparent; }
.explore .searchTerm::placeholder { color: #c6d5ce; }
.explore .searchButton { background: transparent; border: 2px solid var(--purple-900); border-right: none; border-radius: 30px 0 0 30px; padding: 0 15px; cursor: pointer; display: flex; align-items: center; }
.explore .searchButton svg { width: 18px; height: 18px; }

.explore .categories { display: flex; flex-direction: column; justify-content: space-between; width: 100%; padding: 20px 30px; margin-bottom: 20px; }
.explore .popular { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.explore .left_popular { font-size: 18px; font-weight: bold; }
.explore .left_popular span { font-size: 14px; color: var(--gray); font-weight: normal; }
.explore .category { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.explore .right_category { display: flex; flex-flow: row wrap; gap: 10px; }

.explore .combo-box { position: relative; width: 140px; transition: all var(--t); }
.explore .combo-header { display: flex; justify-content: space-between; align-items: center; min-height: 40px; padding: 10px 15px; border: 1px solid var(--purple-900); border-radius: 30px; cursor: pointer; transition: all var(--t); }
.explore .combo-options {
  position: absolute; inset: 100% 0 auto 0;
  background-color: transparent; backdrop-filter: blur(30px);
  border: 2px solid #ddd; border-top: none; border-radius: 0 0 10px 10px;
  display: none; max-height: 250px; overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1); z-index: 1000;
}
.explore .combo-box.active .combo-options { display: block; }
.explore .combo-box.active .arrow { transform: rotate(180deg); }
.explore .arrow { transition: transform var(--t); font-size: 12px; color: var(--purple-900); }
.explore .option { padding: 10px 15px; cursor: pointer; border-bottom: 1px solid #f0f0f0; transition: all .2s; }
.explore .option:last-child { border-bottom: none; }
.explore .option:hover { background-color: var(--gray-light); padding-right: 20px; }

.explore .gallery { column-count: 4; column-gap: 20px; padding: 20px 30px; }
.explore .image-card { break-inside: avoid; margin-bottom: 20px; }
.explore .gallery-image { width: 100%; height: auto; display: block; border-radius: 10px; cursor: pointer; }

.explore .modal { display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(0, 0, 0, .95); cursor: pointer; }
.explore .modal-content { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.explore .modal-image { max-width: 90%; max-height: 80%; object-fit: contain; border: 5px solid; border-radius: 10px; }
.explore .modal-info { margin-top: 20px; color: var(--white); text-align: center; }
.explore .close-modal { position: absolute; top: 20px; right: 40px; color: var(--white); font-size: 40px; cursor: pointer; }

@keyframes fadeInOut {
  0%   { opacity: 0; transform: translateX(-50%) translateY(20px); }
  15%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  85%  { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

@media (max-width: 1200px) { .explore .gallery { column-count: 3; } }
@media (max-width: 768px) {
  .explore .gallery { column-count: 2; }
  .explore .header { flex-wrap: wrap; gap: 10px; padding: 15px; }
  .explore .middle_header { order: 3; width: 100%; flex: auto; }
  .explore .left_header img { width: 100px; margin-right: 10px; }
  .explore .category { flex-direction: column; }
  .explore .right_category { align-items: center; justify-content: center; }
  .explore .sidebar { width: 260px; }
  .explore .sidebar.open ~ .toggle-sidebar { right: 280px; }
  .explore .wrap { max-width: 100%; }
}
@media (max-width: 480px) {
  .explore .gallery { column-count: 1; }
  .explore .toggle-sidebar { width: 40px; height: 40px; top: 15px; right: 15px; }
  .explore .toggle-sidebar svg { width: 20px; height: 20px; }
  .explore .header { padding: 12px 60px 12px 12px; }
  .explore .sidebar.open ~ .toggle-sidebar { right: 270px; }
}

@media (min-width: 769px) {
    .explore .sidebar {
        right: -300px;
        position: fixed;
    }
    .explore .sidebar.open {
        right: 0;
    }
    .explore .sidebar.open ~ .toggle-sidebar {
        right: 310px;
    }
}
/* ----------------------------------- DASHBOARD ----------------------------------- */
body.dashboard { display: flex; align-items: stretch; min-height: 100vh; overflow-x: hidden; background: var(--slate-100); font-family: var(--font-system); }
.dashboard .dashboard-layout { display: flex; width: 100%; min-height: 100vh; position: relative; }

.dashboard .dashboard-sidebar {
  width: 280px; height: 100vh; flex-shrink: 0;
  display: flex; flex-direction: column;
  background: var(--purple-900);
  box-shadow: 4px 0 20px rgba(0, 0, 0, .08);
  overflow-y: auto; position: relative; z-index: 100;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.dashboard .sidebar-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 1.25rem 1.25rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.dashboard .logo-area { display: flex; align-items: center; gap: 8px; color: var(--white); flex: 1; }
.dashboard .logo { display: flex; align-items: center; justify-content: center; padding-right: 20px; }
.dashboard .logo img { width: 42px; }
.dashboard .logo-area span { font-weight: 500; color: var(--white); }

.dashboard .home-icon { width: 38px; height: 38px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .1); border-radius: 12px; cursor: pointer; transition: all .2s ease; }
.dashboard .home-icon:hover { background: rgba(59, 130, 246, .5); transform: scale(1.05); }
.dashboard .home-icon svg { width: 20px; height: 20px; stroke: var(--white); stroke-width: 1.8; fill: none; }

.dashboard .nav-menu { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 1.5rem .75rem 1rem; }
.dashboard .nav-item {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: transparent; border: none; text-align: right;
  font: 500 .95rem inherit; color: var(--slate-300);
  border-radius: 16px; padding: .75rem 1.2rem;
  text-decoration: none; position: relative; cursor: pointer;
  transition: all .2s ease;
}
.dashboard .nav-item svg { width: 22px; height: 22px; flex-shrink: 0; stroke: currentColor; stroke-width: 1.7; fill: none; }
.dashboard .nav-item svg[fill="currentColor"] { fill: currentColor; stroke: none; }
.dashboard .nav-item:hover:not(.active) { background: rgba(255, 255, 255, .08); color: var(--slate-100); }
.dashboard .nav-item.active { background: rgba(59, 130, 246, .2); color: var(--white); box-shadow: inset 3px 0 0 var(--blue-accent); }

.dashboard :is(.badge-notif, .admin-badge) { font-size: 10px; padding: 2px 8px; border-radius: 20px; margin-right: auto; font-weight: 600; }
.dashboard .badge-notif { background: var(--red); color: var(--white); min-width: 20px; text-align: center; }
.dashboard .admin-badge { background: var(--orange); color: var(--purple-900); }
.dashboard .nav-item.admin-item { border-right: 3px solid var(--orange); }
.dashboard .admin-divider { height: 1px; background: rgba(255, 255, 255, .08); margin: 6px 15px; }
.dashboard .nav-item.disabled { opacity: .6; cursor: default; }
.dashboard .nav-item.disabled:hover { background: transparent; color: var(--slate-300); }

.dashboard .sidebar-footer { margin-top: auto; padding: .75rem 1rem; border-top: 1px solid rgba(255, 255, 255, .05); }
.dashboard .sidebar-footer .nav-item { opacity: .8; }
.dashboard .sidebar-footer .nav-item:hover { opacity: 1; }

.dashboard .dashboard-content { flex: 1; min-height: 100vh; display: flex; flex-direction: column; overflow-y: auto; background: var(--slate-50); }
.dashboard .top-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; min-height: 64px; background: var(--white); border-bottom: 1px solid var(--slate-200); padding: .75rem 2rem; }
.dashboard .page-title-placeholder { font-size: 1.3rem; font-weight: 600; color: var(--slate-900); letter-spacing: -.2px; }
.dashboard .page-viewport { flex: 1; position: relative; background: var(--slate-100); padding: 24px; }
.dashboard .switch-indicator { background: rgba(0, 0, 0, .03); border: 1px dashed #cbd5e1; border-radius: 48px; padding: 12px 28px; font: 500 .95rem monospace; letter-spacing: .3px; color: var(--slate-700); }

.dashboard .hamburger-btn { display: none; position: fixed; top: 12px; right: 12px; z-index: 200; width: 46px; height: 46px; align-items: center; justify-content: center; background: var(--purple-900); border: none; border-radius: 12px; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); transition: all .2s ease; }
.dashboard .hamburger-btn:hover { background: var(--purple-800); transform: scale(1.02); }
.dashboard .hamburger-btn svg { width: 26px; height: 26px; stroke: var(--white); stroke-width: 2; fill: none; }

.dashboard .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .5); backdrop-filter: blur(2px); z-index: 90; }
.dashboard .sidebar-overlay.active { display: block; }

.dashboard .alert {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  border-radius: 30px; padding: 12px 28px; font: inherit; font-size: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
  animation: fadeInOut 3s ease forwards; z-index: 1000;
}
.dashboard .alert-success { background: var(--green); color: var(--white); }
.dashboard .alert-error { background: var(--red-alt); color: var(--white); }
.dashboard .alert-info { background: var(--blue); color: var(--white); }
.dashboard .alert-warning { background: var(--orange); color: var(--white); }

.dashboard .text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard .flex-shrink-0 { flex-shrink: 0; }
.dashboard .nav-item .icon-fill { fill: currentColor; stroke: none; }
.dashboard .dashboard-sidebar::-webkit-scrollbar { width: 4px; }
.dashboard .dashboard-sidebar::-webkit-scrollbar-track { background: transparent; }
.dashboard .dashboard-sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .2); border-radius: 10px; }
.dashboard .dashboard-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .3); }

@media (max-width: 992px) {
  .dashboard .dashboard-sidebar { width: 250px; }
  .dashboard .top-bar { padding: .75rem 1.25rem; }
  .dashboard .page-viewport { padding: 16px; }
}
@media (max-width: 768px) {
  .dashboard .hamburger-btn { display: flex; }
  .dashboard .dashboard-sidebar { position: fixed; top: 0; right: 0; height: 100vh; width: 280px; z-index: 100; transform: translateX(100%); box-shadow: -4px 0 24px rgba(0, 0, 0, .25); }
  .dashboard .dashboard-sidebar.mobile-open { transform: translateX(0); }
  .dashboard .top-bar { padding: .75rem 1rem .75rem 70px; min-height: 60px; }
  .dashboard .page-title-placeholder { font-size: 1.1rem; }
  .dashboard .page-viewport { padding: 12px; }
  .dashboard .sidebar-header { padding: 1.25rem 2.5rem 1rem 1.25rem; }
  .dashboard .logo-area span { font-size: .85rem; }
  .dashboard .nav-menu { padding: 1rem .5rem; gap: 2px; }
  .dashboard .nav-item { padding: .65rem 1rem; font-size: .9rem; gap: 12px; }
  .dashboard .nav-item svg { width: 20px; height: 20px; }
}
@media (max-width: 480px) {
  .dashboard .dashboard-sidebar { width: 260px; }
  .dashboard .logo-area span { display: none; }
  .dashboard .sidebar-header { justify-content: center; }
  .dashboard .top-bar { padding-right: 60px; }
  .dashboard .page-title-placeholder { font-size: 1rem; }
  .dashboard .nav-item { font-size: .85rem; padding: .6rem .9rem; }
  .dashboard :is(.badge-notif, .admin-badge) { font-size: 9px; padding: 1px 6px; }
  .dashboard .alert { font-size: 13px; padding: 10px 20px; bottom: 16px; max-width: 90%; }
}

/* ----------------------------------- CONTACT ----------------------------------- */
.contact footer, .about footer {
  position: relative;
  z-index: 10;
}
.contact .container { flex: 1 0 auto; display: flex; flex-direction: column; width: 100%; padding-top: 100px; position: relative; z-index: 2; }
.contact .title { text-align: center; font-size: 2.8rem; font-weight: 800; color: var(--black); text-shadow: 0 4px 12px rgba(0, 0, 0, .3); letter-spacing: -.02em; margin: 30px 0; }
.contact .inner-contact { max-width: 1300px; margin: 0 auto; padding: 0 2rem 3rem; width: 100%; }
.contact .contact-wrapper { display: flex; flex-flow: wrap; justify-content: center; gap: 2rem; margin-top: 1rem; }

.contact .right_contact {
  flex: 1; min-width: 280px;
  background: rgba(255, 255, 255, .2); backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--r-xl);
  padding: 2rem 1.8rem; box-shadow: 0 20px 35px -12px rgba(0, 0, 0, .2);
  transition: transform .25s ease;
}
.contact .right_contact:hover { transform: translateY(-5px); background: rgba(255, 255, 255, .28); }
.contact .apps { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.contact .apps p { font-weight: 700; font-size: 1.3rem; color: var(--white); text-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.contact .apps_icons { display: flex; gap: 1.2rem; }
.contact .apps_icons a { display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .3); border-radius: 60px; padding: 8px; transition: all .2s; }
.contact .apps_icons a:hover { transform: scale(1.08); background: rgba(255, 255, 255, .4); }
.contact .apps_icons img { width: 34px; height: 34px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .2)); }

.contact .support { margin-top: 1rem; background: rgba(255, 255, 255, .25); border-radius: 32px; padding: 1.2rem; }
.contact .support p:first-child { font-weight: 700; font-size: 1.1rem; margin-bottom: .6rem; color: #8f81c9; }
.contact .phone-part { display: flex; align-items: center; gap: 8px; }
.contact .support p:last-child { font-size: 1.2rem; font-weight: 800; letter-spacing: 1px; background: linear-gradient(135deg, #fff, #c7b9ff); background-clip: text; -webkit-background-clip: text; color: transparent; }

.contact .left_contact {
  flex: 1; min-width: 320px;
  background: rgba(255, 255, 255, .2); backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--r-xl);
  padding: 2rem; box-shadow: 0 20px 35px -12px rgba(0, 0, 0, .2);
  transition: transform .25s ease;
}
.contact .left_contact:hover { transform: translateY(-5px); }
.contact .left_contact label { display: block; text-align: center; font-size: 1.6rem; font-weight: 700; color: var(--white); text-shadow: 0 1px 3px rgba(0, 0, 0, .2); margin-bottom: 1.5rem; }
.contact .contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.contact .contact-form :is(input, textarea) {
  background: rgba(255, 255, 255, .25);
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 60px;
  padding: 14px 20px; font: 1rem inherit; color: var(--ink);
  outline: none; backdrop-filter: blur(4px); transition: all .2s;
}
.contact .contact-form :is(input, textarea):focus { border-color: #b794f4; background: rgba(255, 255, 255, .4); box-shadow: 0 0 0 3px rgba(183, 148, 244, .3); }
.contact .contact-form textarea { border-radius: 32px; resize: vertical; min-height: 110px; }
.contact .contact-form button {
  background: linear-gradient(105deg, var(--violet), var(--violet-dark));
  border: none; border-radius: 60px; padding: 14px;
  font-size: 1.1rem; font-weight: 700; color: var(--white);
  cursor: pointer; box-shadow: 0 6px 14px rgba(0, 0, 0, .2); transition: all .25s;
}
.contact .contact-form button:hover { transform: scale(.98); background: linear-gradient(105deg, var(--violet-darker), var(--violet-darkest)); box-shadow: 0 4px 10px rgba(0, 0, 0, .3); }

/* ----------------------------------- FX: leaves / hearts / logo ----------------------------------- */
:is(.falling-leaves, .floating-hearts) { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.falling-leaves { z-index: 999; }
.floating-hearts { z-index: 998; }
.leaf { position: absolute; font-size: 25px; opacity: .8; animation: fallLeaf linear forwards; }
@keyframes fallLeaf {
  0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}
.heart { position: absolute; font-size: 20px; color: #ff5722; opacity: .7; animation: floatHeart linear forwards; }
@keyframes floatHeart {
  0% { transform: translateY(100vh) scale(.5); opacity: 0; }
  20% { opacity: .8; }
  100% { transform: translateY(-10vh) scale(1.2); opacity: 0; }
}
.toggle-animation-btn {
  position: fixed; bottom: 20px; right: 20px; z-index: 1001;
  display: flex; align-items: center; gap: 8px;
  background: rgba(0, 0, 0, .6); backdrop-filter: blur(10px);
  color: var(--white); border: none; border-radius: 50px;
  padding: 10px 18px; font: 14px sans-serif; cursor: pointer; transition: all var(--t);
}
.toggle-animation-btn:hover { background: rgba(0, 0, 0, .8); transform: scale(1.05); }
.animations-off :is(.falling-leaves, .floating-hearts) { display: none; }

.animated-logo { position: relative; z-index: 10; min-height: 100px; text-align: center; margin: 20px 0; }
.logo-wrapper { display: inline-block; position: relative; direction: ltr; font-family: "Segoe UI", "Roboto", "Arial", sans-serif !important;font-size: 45px; }
.logo-letter {
  display: inline-block; font: bold 55px inherit;
  background: linear-gradient(135deg, #6a0465, #9b2a8c, #c75abf);
  background-clip: text; -webkit-background-clip: text; color: transparent;
  opacity: 0;
  transform: translate(var(--start-x, 0), var(--start-y, 0)) scale(0);
  animation: flyToCenter .8s var(--ease-bounce) forwards;
  text-shadow: 0 0 10px rgba(106, 4, 101, .3);
}
.logo-letter:nth-child(1)  { --start-x: -200px; --start-y: -100px; animation-delay: 0s; }
.logo-letter:nth-child(2)  { --start-x: 200px;  --start-y: -80px;  animation-delay: .05s; }
.logo-letter:nth-child(3)  { --start-x: -180px; --start-y: 120px;  animation-delay: .1s; }
.logo-letter:nth-child(4)  { --start-x: 180px;  --start-y: 100px;  animation-delay: .15s; }
.logo-letter:nth-child(5)  { --start-x: -150px; --start-y: -60px;  animation-delay: .2s; }
.logo-letter:nth-child(6)  { --start-x: 150px;  --start-y: -70px;  animation-delay: .25s; }
.logo-letter:nth-child(7)  { --start-x: -120px; --start-y: 150px;  animation-delay: .3s; }
.logo-letter:nth-child(8)  { --start-x: 120px;  --start-y: 130px;  animation-delay: .35s; }
.logo-letter:nth-child(9)  { --start-x: -100px; --start-y: -140px; animation-delay: .4s; }
.logo-letter:nth-child(10) { --start-x: 100px;  --start-y: -120px; animation-delay: .45s; }
.logo-letter:nth-child(11) { --start-x: -80px;  --start-y: 180px;  animation-delay: .5s; }
.logo-letter:nth-child(12) { --start-x: 80px;   --start-y: 160px;  animation-delay: .55s; }
@keyframes flyToCenter {
  0%  { opacity: 0; transform: translate(var(--start-x, 0), var(--start-y, 0)) scale(0); }
  30% { opacity: 1; }
  100% { opacity: 1; transform: translate(0, 0) scale(1); }
}
.logo-wrapper.loaded .logo-letter { animation: shimmerLetter 2s ease-in-out infinite; opacity: 1 !important; transform: scale(1) !important; }
@keyframes shimmerLetter {
  0%, 100% { text-shadow: 0 0 5px rgba(211, 84, 0, .3); }
  50% { text-shadow: 0 0 20px rgba(211, 84, 0, .7), 0 0 5px var(--orange); }
}

/* ----------------------------------- LOGIN / SIGNUP ----------------------------------- */
body.logsign { overflow: hidden; width: 100%; max-height: 100dvh; }
.logsign .parallax-wrapper { height: 100dvh; width: 100%; position: relative; }
.logsign .parallax { position: sticky; top: 0; height: 100dvh; overflow: hidden; }
.logsign .layer { position: absolute; inset: 0; pointer-events: none; background-repeat: no-repeat; background-position: center; background-size: cover; }
.logsign .sky { background-image: url("../img/sky.svg"); z-index: 1; }
.logsign .tree { background-image: url("../img/tree.svg"); z-index: 3; }
.logsign .train-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.logsign .train {
  position: absolute; width: clamp(260px, 70vw, 800px); height: 40vh; top: 45vh; right: -10vw;
  background: url("../img/train.svg") center / contain no-repeat;
  z-index: 2; animation: moveTrain 3s linear infinite;
}
@keyframes moveTrain { from { right: -20vw; } to { right: 120vw; } }

.logsign .container { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(95vw, 420px); min-height: 620px; padding: 10px; display: flex; justify-content: center; align-items: center; }
.logsign .form-wrapper { width: 100%; min-height: 420px; position: relative; transition: transform .6s; transform-style: preserve-3d; }
.logsign .form-wrapper.rotate { transform: rotateY(180deg); }
.logsign .form.login { min-height: 380px; }
.logsign .form.signup { min-height: 480px; transform: rotateY(180deg); }
.logsign .form {
  position: absolute; width: 100%; height: 100%; min-height: 420px;
  backface-visibility: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 10px 0;
  border-radius: 12px; padding: clamp(20px, 5vw, 40px);
  backdrop-filter: blur(10px); box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
}
.logsign .form a { margin: 0 auto; color: #fff3e0; }
.logsign h2 { margin-top: -20px; color: var(--white); text-align: center; font-weight: bold; }
.logsign .signup h2 { margin-top: 30px; }
.logsign .form-group { margin-bottom: 16px; text-align: right; }
.logsign label { display: block; margin-bottom: 5px; color: #dedede; font-weight: bold; font-size: 14px; }
.logsign input {
  width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 30px;
  font-size: 14px; background-color: transparent; text-align: right;
}
.logsign input:focus { outline: none; border: 1px solid #8a8a8a; }
.logsign input::placeholder { color: #434343; text-align: right; }
.logsign button {
  width: 100%; padding: 12px; margin-top: 10px;
  background: transparent; color: #760e36; border: none; border-radius: 50px;
  font-size: 16px; font-weight: bold; cursor: pointer;
}
.logsign .signup button { margin-top: -10px; }
.logsign button:hover { border: 1px solid var(--black); }
.logsign .toggle-link { text-align: center; margin-top: 18px; color: #c5c5c5; cursor: pointer; text-decoration: underline; font-weight: bold; font-size: 14px; }
.logsign .form.signup .toggle-link { padding-bottom: 10px; }

@media (max-width: 1300px) { .logsign .train { top: 39vh; } }
@media (max-width: 760px)  { .logsign .train { top: 40vh; } }
@media (max-width: 420px) {
  .logsign .container { min-height: 360px; }
  .logsign :is(.form-wrapper, .form) { min-height: 360px; }
  .logsign h2 { font-size: 18px; }
  .logsign :is(input, button) { padding: 10px; font-size: 13px; }
}

/* ----------------------------------- DESIGN DETAIL ----------------------------------- */
.design-detail-page { background: var(--slate-50); }
.design-detail { max-width: 1200px; margin: 100px auto 50px; padding: 0 20px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; font-size: 13px; color: var(--gray-mid); margin-bottom: 24px; }
.breadcrumb a { color: var(--purple-900); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.design-main { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: var(--white); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 50px; }
.design-image { min-height: 400px; display: flex; align-items: center; justify-content: center; background: var(--gray-light); padding: 30px; }
.design-image img { max-width: 100%; max-height: 500px; border-radius: 16px; object-fit: contain; }
.design-info { padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.design-category { display: inline-block; width: fit-content; background: var(--gray-light); border-radius: 20px; padding: 4px 14px; font-size: 12px; color: var(--gray-mid); }
.design-title { font-size: 26px; font-weight: bold; color: var(--purple-900); }
.design-description { color: #555; line-height: 1.8; font-size: 14px; }

.designer-box { display: flex; align-items: center; gap: 15px; padding: 15px; background: #f8f9fa; border-radius: 16px; }
.designer-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.designer-avatar.placeholder { display: flex; align-items: center; justify-content: center; background: #e9ecef; font-size: 24px; }
:is(.designer-name, .related-card .designer) { color: var(--purple-900); font-weight: 600; }
.designer-name { text-decoration: none; display: block; }
.designer-name:hover { text-decoration: underline; }
.designer-bio { color: #888; font-size: 12px; margin-top: 3px; }

.design-stats { display: flex; gap: 20px; }
.stat-item { text-align: center; }
.stat-value { font-size: 20px; font-weight: bold; color: var(--purple-900); }
.stat-label { font-size: 11px; color: #888; }
.design-price { font-size: 22px; font-weight: bold; color: var(--purple-900); }
.free-label { color: var(--green) !important; }

.design-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.download-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--purple-900), var(--purple-700));
  color: var(--white); border: none; border-radius: 50px;
  padding: 14px 28px; font-size: 16px; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: all .2s;
}
.download-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(27, 0, 57, .3); }
.save-design-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0, 0, 0, .06); color: #333;
  border: 2px solid #e0e0e0; border-radius: 50px;
  padding: 14px 24px; font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: all .2s;
}
.save-design-btn:hover { border-color: var(--pink-accent); color: var(--pink-accent); }
.save-design-btn.saved { background: var(--pink-accent); color: var(--white); border-color: var(--pink-accent); }

.design-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tag { background: var(--gray-light); border-radius: 20px; padding: 4px 14px; font-size: 12px; color: #555; }

.related-section { margin-top: 20px; }
.related-title { font-size: 22px; font-weight: bold; color: var(--purple-900); margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.related-card { display: block; background: var(--white); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); transition: transform .2s; }
.related-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0, 0, 0, .12); }
.related-card img { width: 100%; height: 160px; object-fit: cover; }
.related-card .info { padding: 12px; }
.related-card .title { font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--purple-900); }
.related-card .designer { font-size: 11px; margin-bottom: 6px; }
.related-card .price { font-size: 13px; font-weight: bold; color: var(--green); }

@media (max-width: 900px) {
  .design-main { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .design-detail { margin-top: 80px; }
  .design-title { font-size: 20px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .design-stats { flex-wrap: wrap; gap: 12px; }
}

/* ----------------------------------- MISC RESPONSIVE FIXES ----------------------------------- */
@media (max-width: 768px) { .dashboard .top-bar { padding-right: 72px; } }

/* ===== SR-ONLY (accessibility) ===== */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; white-space: nowrap; clip: rect(0, 0, 0, 0); border: 0; }
