body {
  touch-action: pan-y pinch-zoom;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
  :root {
    --bg: #0c0c0c;
    --panel: #0c0c0c;
    --panel-2: #0c0c0c;
    --card: #0c0c0c;

    --gold-deep: #F6AE22;
    --gold: #F6AE22;
    --gold-bright: #F6AE22;
    --text:#fff ;
    --text-dim: #A6A29B;
    --text-faint: #6C6862;
    
    --success: #4ADE80;
    --danger: #E15B54;
    --warn: #F0B429;
    --radius: 16px;
    --radius-sm: 10px;
    --sidebar-w: 312px;
    --shadow: 0 20px 50px -18px rgba(0, 0, 0, .65);
  }

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

  body {
    background: var(--bg);
  }
 
  
  body.search-mode {
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
  }

  body.search-mode::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 0;
    pointer-events: none;
  }

  body.search-mode .shell {
    position: relative;
    z-index: 1;
  }

 
  body.search-mode .stat-card {
    background: rgba(27, 27, 27, 0.6) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
  }

  body.search-mode .overview-head {
    background: rgba(27, 27, 27, 0.5) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
  }

  body.search-mode .info-grid {
    background: rgba(27, 27, 27, 0.5) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
  }

  body.search-mode .item-card {
    background: rgba(27, 27, 27, 0.5) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
  }

  body.search-mode .skill-item {
    background: rgba(27, 27, 27, 0.5) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
  }

  body.search-mode .table-wrap {
    background: rgba(27, 27, 27, 0.5) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
  }

  body.search-mode .g-card {
    background: rgba(27, 27, 27, 0.5) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
  }

  body.search-mode .f-card {
    background: rgba(27, 27, 27, 0.5) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
  }

  body.search-mode .sidebar {
    background: rgba(27, 27, 27, 0.8) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-left: 1px solid rgba(255,255,255,0.06) !important;
  }

  body.search-mode .sb-topbar {
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  }

  body.search-mode .profile-card {
    background: rgba(27, 27, 27, 0.5) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
  }

  body.search-mode .sb-footer {
    border-top: 1px solid rgba(255,255,255,0.06) !important;
  }
  body {
    font-family: 'Vazirmatn', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100svh;
    position: relative;
  }

  img,
  svg {
    display: block;
    max-width: 100%;
  }
  button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
  ::selection {
    background: var(--gold);
    color: #1a1206;
  }
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  ::-webkit-scrollbar-track {
    background: var(--panel);
  }
  ::-webkit-scrollbar-thumb {
    background: #45423d;
    border-radius: 10px;
  }
  :focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 2px;
    border-radius: 6px;
  }


  .skeleton-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
  }
  .skeleton-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }


  .loader-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--gold-bright);
    border-right-color: var(--gold-deep);
    animation: spin 0.9s cubic-bezier(0.6, 0, 0.4, 1) infinite;
    box-shadow: 0 0 30px rgba(243, 156, 18, 0.15);
  }

  .loader-ring::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-bottom-color: var(--gold);
    border-left-color: var(--gold-deep);
    animation: spin 0.6s cubic-bezier(0.6, 0, 0.4, 1) infinite reverse;
  }

  .loader-ring {
    position: relative;
  }

  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }

  .loader-text {
    color: var(--text-dim);
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .loader-text .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-bright);
    animation: pulse-dot 1.4s ease-in-out infinite;
  }
  .loader-text .dot:nth-child(2) {
    animation-delay: 0.2s;
  }
  .loader-text .dot:nth-child(3) {
    animation-delay: 0.4s;
  }

  @keyframes pulse-dot {
    0%,
    80%,
    100% {
      transform: scale(0.6);
      opacity: 0.2;
    }
    40% {
      transform: scale(1);
      opacity: 1;
    }
  }

  .loader-bar-track {
    width: 180px;
    height: 3px;
    background: var(--panel-2);
    border-radius: 6px;
    overflow: hidden;
    margin-top: -12px;
  }
  .loader-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
    border-radius: 6px;
    animation: fill-progress 2.2s ease-in-out forwards;
  }
  @keyframes fill-progress {
    0% {
      width: 0%;
    }
    30% {
      width: 28%;
    }
    65% {
      width: 62%;
    }
    90% {
      width: 88%;
    }
    100% {
      width: 100%;
    }
  }


  canvas#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }

  .shell {
    display: flex;
    min-height: 100svh;
    position: relative;
    z-index: 1;
  }


  .sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: #0c0c0c;
    backdrop-filter: blur(10px);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100svh;
    position: sticky;
    top: 0;
    overflow-y: auto;
  }
  .sb-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--border);
  }
  .sb-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    font-size: 1rem;
  }
  .sb-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(150deg, var(--gold-deep), var(--gold-bright));
    color: #1a1206;
    font-size: .95rem;
  }
  .sb-actions {
    display: flex;
    align-items: center;
    gap: 8px;
	color:#fff;
  }
  .sb-action-btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--panel-2);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: .85rem;
    position: relative;
  }
  .sb-action-btn.exit {
    width: auto;
    padding: 0 14px;
    gap: 7px;
    background: linear-gradient(95deg, var(--gold-deep), var(--gold-bright));
    color: #1a1206;
    font-weight: 700;
    font-size: .78rem;
  }
  .badge-dot {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--success);
    color: #06241a;
    font-size: .58rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--panel);
  }

  .profile-card {
    margin: 18px 16px;
    padding: 18px 16px;
    border-radius: var(--radius);
    background: linear-gradient(165deg, var(--panel-2), var(--panel));
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 9px;
  }
  .avatar-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(from 0deg, var(--gold-deep), var(--gold-bright), var(--gold-deep));
  }
  .avatar-ring .avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--panel);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--text-dim);
  }
  .profile-name {
    font-size: 1rem;
    font-weight: 800;
  }
  .profile-sub {
    font-size: .7rem;
    color: var(--text-faint);
  }
  .profile-chips {
    display: flex;
    gap: 8px;
    margin-top: 2px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .chip {
    font-size: .68rem;
    color: var(--text-dim);
    background: var(--card);
    border: 1px solid var(--border);
    padding: 5px 10px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .chip i {
    color: var(--gold);
    font-size: .7rem;
  }
  .level-pill {
    margin-top: 4px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #bb7d10;
    color:#fff;
    border: 1px solid #e5a627;
    font-size: .74rem;
    font-weight: 700;
    padding: 7px;
    border-radius: 10px;
  }

  .sb-nav {
    background-color: #0c0c0c;
    padding: 6px 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
  }
  .nav-group {
    border-radius: var(--radius-sm);
    overflow: hidden;
  }
  .nav-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    font-size: .84rem;
    color: var(--text-dim);
    font-weight: 600;
    border-radius: var(--radius-sm);
  }
  .nav-head:hover {
    background: var(--panel-2);
    color: var(--text);
  }
  .nav-head-left {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .nav-head i.chev {
    transition: transform .25s ease;
    font-size: .7rem;
    color: var(--text-faint);
  }
  .nav-group.open .nav-head i.chev {
    transform: rotate(180deg);
  }
  .nav-icon {
    width: 29px;
    height: 29px;
    border-radius: 8px;
    background: var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
  }
  .nav-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    display: flex;
    flex-direction: column;
    padding-inline-start: 12px;
  }
  .nav-group.open .nav-sub {
    max-height: 320px;
  }
  .sub-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px 9px 8px;
    font-size: .79rem;
    color: var(--text-dim);
    border-radius: var(--radius-sm);
  }
  .sub-link i {
    width: 16px;
    text-align: center;
    color: var(--text-faint);
    font-size: .78rem;
  }
  .sub-link:hover {
    color: var(--text);
    background: var(--panel-2);
  }
  .sub-link.active {
    color: var(--gold-bright);
    background: rgba(243, 156, 18, .09);
  }
  .sub-link.active i {
    color: var(--gold-bright);
  }

  .single-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    font-size: .84rem;
    color: var(--text-dim);
    font-weight: 600;
    border-radius: var(--radius-sm);
  }
  .single-link:hover {
    background: var(--panel-2);
    color: var(--text);
  }
  .single-link.active {
    background: var(--panel-2);
    color: var(--gold-bright);
  }
  .single-link.active .nav-icon {
    color: var(--gold-bright);
  }

  .sb-footer {
      
    padding: 14px 20px 20px;
    font-size: .66rem;
    color: var(--text-faint);
    text-align: center;
    border-top: 1px solid var(--border);
    line-height: 1.9;
  }

  .mobile-topbar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 45;
    height: 56px;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
  }
  .hamburger {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .scrim {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 55;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
  }
  .scrim.show {
    opacity: 1;
    visibility: visible;
  }

 
  .main {
    flex: 1;
    min-width: 0;
    padding: 24px 26px 90px;
  }
  .page-head {
    margin-bottom: 18px;
  }
  .breadcrumb {
    font-size: .75rem;
    color: var(--text-faint);
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .breadcrumb span.cur {
    color: var(--gold);
  }
  .page-head h1 {
    font-size: 1.24rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 9px;
  }
  .page-head p {
    font-size: .8rem;
    color: var(--text-dim);
    margin-top: 4px;
  }

  .content-section {
    display: none;
    animation: fade-in .35s ease;
  }
  .content-section.active {
    display: block;
  }
  @keyframes fade-in {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }


.overview-head {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  margin-bottom: 18px;
  direction: ltr;
  justify-content: flex-start;
}


.ov-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(from 0deg, var(--gold-deep), var(--gold-bright), var(--gold-deep));
  flex-shrink: 0;
  transition: transform 0.3s ease;
  position: relative;
}
.ov-avatar:hover {
  transform: scale(1.04);
}
.ov-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--panel-2);
  display: block;
}


.avatar-ref-wrapper {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}


.divider-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 2px;
}
.divider-line .line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  border-radius: 2px;
}
.divider-line .dots {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.divider-line .dots span {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.4;
}
.divider-line .dots span:nth-child(2) {
  opacity: 0.7;
  width: 5px;
  height: 5px;
}
.divider-line .dots span:nth-child(3) {
  opacity: 0.4;
}


.ov-name-block {
  text-align: right;
  flex-shrink: 0;
}
.ov-name-block h3 {
  font-size: 1.1rem;
  font-weight: 800;
}
.ov-name-block .ref {
  font-size: .72rem;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.ov-name-block .ref i {
  font-size: .6rem;
  opacity: 0.6;
}

.ov-level {
  flex: 1;
  min-width: 200px;
}
.ov-level-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  margin-bottom: 6px;
}
.ov-level-row .lv {
  color: var(--gold-bright);
  font-weight: 800;
}
.ov-level-row span:last-child {
  color: var(--text-dim);
}

.ov-track {
  height: 8px;
  border-radius: 6px;
  background: var(--panel-2);
  overflow: hidden;
  border: 1px solid var(--border);
}
.ov-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  border-radius: 6px;
  width: 40%;
  transition: width 0.5s ease;
}

.ov-track-icons {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  padding: 0 2px;
}
.ov-track-icons .dot-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.ov-track-icons .dot-icon i {
  font-size: .55rem;
  color: var(--text-faint);
  opacity: 0.4;
}
.ov-track-icons .dot-icon i.active {
  opacity: 1;
  color: var(--gold);
}
.ov-track-icons .dot-icon span {
  font-size: .5rem;
  color: var(--text-faint);
}

.ov-level-foot {
  display: flex;
  justify-content: space-between;
  font-size: .7rem;
  color: var(--text-faint);
  margin-top: 8px;
}
.ov-level-foot .need {
  color: var(--gold);
}
.ov-level-foot .next {
  color: var(--text-dim);
}


@media(max-width: 768px) {
  .overview-head {
    flex-direction: row;
    text-align: center;
    gap: 10px;
    padding: 12px 14px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  
  .avatar-ref-wrapper {
    flex-direction: row;
    gap: 8px;
    flex-shrink: 0;
  }
  
  .ov-avatar {
    width: 70px !important;
    height: 70px !important;
  }
  
  .divider-line .line {
    height: 20px;
    width: 40px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
  }
  .divider-line .dots {
    flex-direction: row;
  }
  .ov-name-block {
    text-align: center;
    flex-shrink: 0;
  }
  
  .ov-level {
    flex: 1;
    min-width: 100px;
    width: 100%;
  }
  
  .ov-track {
    width: 100%;
    min-width: 80px;
    height: 8px;
  }
  
  .ov-track-icons {
    gap: 2px;
    justify-content: space-between;
  }
  
  .ov-track-icons .dot-icon i {
    font-size: 0.5rem;
  }
  
  .ov-track-icons .dot-icon span {
    font-size: 0.4rem;
  }
  
  .ov-level-row {
    font-size: 0.65rem;
  }
  
  .ov-level-foot {
    font-size: 0.55rem;
  }
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media(min-width:640px) {
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: linear-gradient(145deg, #1B1B1B, #1f1a12);
  border: 1px solid rgba(243, 156, 18, 0.15);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(243, 156, 18, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.stat-card:hover::before {
  opacity: 1;
}


.stat-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(243, 156, 18, 0.03), transparent, rgba(243, 156, 18, 0.03), transparent);
  animation: rotate-glow 12s linear infinite;
  pointer-events: none;
}
@keyframes rotate-glow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.stat-card .wave-glow {
  position: absolute;
  bottom: -20px;
  left: -20px;
  right: -20px;
  height: 60px;
  background: radial-gradient(ellipse at center, rgba(243, 156, 18, 0.06), transparent 70%);
  filter: blur(12px);
  opacity: 0;
  transition: all 0.6s ease;
  pointer-events: none;
}
.stat-card:hover .wave-glow {
  opacity: 1;
  bottom: -10px;
}


.stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1206;
  font-size: .95rem;
  position: relative;
  z-index: 1;
  transition: all 0.4s ease;
}
.stat-card:hover .stat-icon {
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(243, 156, 18, 0.25);
}


.stat-val {
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 1;
  color: var(--text);
  transition: color 0.4s ease;
}
.stat-card:hover .stat-val {
  color: var(--gold-bright);
}

.stat-lbl {
  font-size: .72rem;
  color: var(--text-faint);
  margin-top: 3px;
  position: relative;
  z-index: 1;
  transition: color 0.4s ease;
}
.stat-card:hover .stat-lbl {
  color: var(--text-dim);
}


.stat-card:hover {
  border-color: rgba(243, 156, 18, 0.4);
  box-shadow: 
    0 0 30px rgba(243, 156, 18, 0.05),
    inset 0 0 30px rgba(243, 156, 18, 0.02);
  transform: translateY(-3px);
}


.stat-card .sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-bright);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}
.stat-card .sparkle:nth-child(1) {
  top: 15%;
  left: 15%;
  animation: sparkle-move 4s ease-in-out infinite;
}
.stat-card .sparkle:nth-child(2) {
  bottom: 20%;
  right: 15%;
  animation: sparkle-move 5s ease-in-out infinite reverse;
}
.stat-card .sparkle:nth-child(3) {
  top: 50%;
  right: 10%;
  animation: sparkle-move 3.5s ease-in-out infinite 1s;
}
@keyframes sparkle-move {
  0%, 100% { opacity: 0; transform: scale(0); }
  30% { opacity: 0.8; transform: scale(1.5); }
  70% { opacity: 0.4; transform: scale(1); }
}

  .info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
  }
  @media(min-width:760px) {
    .info-grid {
      grid-template-columns: 1fr 1fr;
    }
  }
  .info-row {
    background: var(--panel);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .info-row .ic {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: .85rem;
    flex-shrink: 0;
  }
  .info-row .txt {
    flex: 1;
    min-width: 0;
  }
  .info-row .val {
    font-size: .86rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }
  .info-row .val.good {
    color: var(--success);
  }
  .info-row .lbl {
    font-size: .7rem;
    color: var(--text-faint);
    margin-top: 2px;
  }

  .form-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    max-width: 520px;
  }
  .field {
    margin-bottom: 15px;
  }
  .field label {
    display: block;
    font-size: .78rem;
    color: var(--text-dim);
    margin-bottom: 7px;
  }
  .input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: 10px;
  }
  .input-wrap:focus-within {
    border-color: var(--border-strong);
    box-shadow: 0 0 0 3px rgba(243, 156, 18, .1);
  }
  .input-wrap i {
    padding: 0 13px;
    color: var(--text-faint);
    font-size: .85rem;
  }
  .input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    padding: 12px 4px;
    font-size: .85rem;
    font-family: inherit;
    min-width: 0;
  }
  .input-wrap input:disabled {
    color: var(--text-faint);
  }
  .form-submit {
    margin-top: 6px;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 800;
    font-size: .85rem;
    background: linear-gradient(95deg, var(--gold-deep), var(--gold-bright));
    color: #1a1206;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  
  .list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  @media(min-width:680px) {
    .list-grid.cols-2 {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  @media(min-width:900px) {
    .list-grid.cols-3 {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  .item-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 13px;
  }
  .item-card .ic {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: linear-gradient(150deg, var(--gold-deep), var(--gold-bright));
    color: #1a1206;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
  }
  .item-card .body {
    flex: 1;
    min-width: 0;
  }
  .item-card h4 {
    font-size: .86rem;
    font-weight: 700;
  }
  .item-card p {
    font-size: .72rem;
    color: var(--text-faint);
    margin-top: 2px;
  }
  .status-badge {
    font-size: .68rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    white-space: nowrap;
  }
  .status-badge.ok {
    background: rgba(74, 222, 128, .12);
    color: var(--success);
  }
  .status-badge.pending {
    background: rgba(240, 180, 41, .14);
    color: var(--warn);
  }
  .status-badge.fail {
    background: rgba(225, 91, 84, .14);
    color: var(--danger);
  }

  .skill-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 15px;
    margin-bottom: 12px;
  }
  .skill-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
    font-size: .85rem;
  }
  .skill-top .name {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
  }
  .skill-top .name i {
    color: var(--gold);
  }
  .skill-top .lv {
    color: var(--text-faint);
    font-size: .74rem;
  }
  .skill-track {
    height: 7px;
    border-radius: 6px;
    background: var(--panel-2);
    overflow: hidden;
  }
  .skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
    border-radius: 6px;
  }

  .table-wrap {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .t-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
  }
  .t-row:last-child {
    border-bottom: none;
  }
  .t-row .ic {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
  }
  .t-row .body {
    flex: 1;
    min-width: 0;
  }
  .t-row h4 {
    font-size: .83rem;
    font-weight: 700;
  }
  .t-row p {
    font-size: .7rem;
    color: var(--text-faint);
    margin-top: 2px;
  }
  .t-amount {
    font-size: .85rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    text-align: left;
    flex-shrink: 0;
  }
  .t-amount.pos {
    color: var(--success);
  }
  .t-amount.neg {
    color: var(--danger);
  }

  .referral-box {
    background: linear-gradient(120deg, var(--panel-2), var(--panel));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
  }
  .referral-code {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: .05em;
    color: var(--gold-bright);
    font-variant-numeric: tabular-nums;
  }
  .copy-btn {
    padding: 10px 18px;
    border-radius: 10px;
    background: linear-gradient(95deg, var(--gold-deep), var(--gold-bright));
    color: #1a1206;
    font-weight: 700;
    font-size: .8rem;
    display: flex;
    align-items: center;
    gap: 7px;
  }


  .card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* دو ستون با عرض مساوی */
  gap: 16px;
  padding: 0 4px;
  }
  @media(min-width:680px) {
    .card-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  @media(min-width:1100px) {
    .card-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  .g-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: background .2s, transform .2s;
  }
  .g-card:hover {
    background: var(--card-hover);
    transform: translateY(-2px);
  }
  .g-top {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .g-text {
    flex: 1;
    min-width: 0;
  }
  .g-text h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 3px;
  }
  .g-text p {
    font-size: .74rem;
    color: var(--text-faint);
  }
  .g-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: radial-gradient(circle at 30% 25%, var(--gold-bright), var(--gold-deep) 70%);
    color: #1a1206;
  }
  .g-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--panel-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 13px;
    font-size: .82rem;
  }
  .g-price-row span:first-child {
    color: var(--text-dim);
  }
  .g-price-row strong {
    font-variant-numeric: tabular-nums;
    font-size: .92rem;
  }
  .g-bonus {
    font-size: .68rem;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: -6px;
  }
  .buy-btn-sm {
    width: 100%;
    padding: 11px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: .84rem;
    background: linear-gradient(95deg, var(--gold-deep), var(--gold-bright));
    color: #1a1206;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
/* ===== گرید اصلی ===== */
.featured-row {
  display: grid;
  grid-template-columns: 1fr;  /* موبایل: یک ستون */
  gap: 12px;
  margin-bottom: 20px;
}

@media(min-width: 640px) {
  .featured-row {
    grid-template-columns: repeat(2, 1fr);  /* تبلت: دو ستون */
  }
}

@media(min-width: 900px) {
  .featured-row {
    grid-template-columns: repeat(3, 1fr);  /* دسکتاپ: سه ستون */
  }
}
/* ===== کارت ویژه با افکت‌های stat-card ===== */
.f-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius, 16px);
  border: 1px solid rgba(243, 156, 18, 0.15);
  background: linear-gradient(145deg, #1B1B1B, #1f1a12);
  padding: 20px 18px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== گرادیانت پس‌زمینه ===== */
.f-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(243, 156, 18, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.f-card:hover::before {
  opacity: 1;
}

/* ===== چرخش نور ===== */
.f-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(243, 156, 18, 0.03), transparent, rgba(243, 156, 18, 0.03), transparent);
  animation: rotate-glow 12s linear infinite;
  pointer-events: none;
}

@keyframes rotate-glow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== موج نور پایین ===== */
.f-card .wave-glow {
  position: absolute;
  bottom: -20px;
  left: -20px;
  right: -20px;
  height: 60px;
  background: radial-gradient(ellipse at center, rgba(243, 156, 18, 0.06), transparent 70%);
  filter: blur(12px);
  opacity: 0;
  transition: all 0.6s ease;
  pointer-events: none;
}

.f-card:hover .wave-glow {
  opacity: 1;
  bottom: -10px;
}

/* ===== آیکون سکه‌ها (عنصر تزئینی) ===== */
.f-coins {
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  font-size: 2.6rem;
  color: rgba(243, 156, 18, 0.10);
  pointer-events: none;
}

.f-coins i:nth-child(2) {
  margin-right: -16px;
  margin-top: 14px;
}

.f-coins i:nth-child(3) {
  margin-right: -16px;
  margin-top: -10px;
}

/* ===== بخش بالایی کارت ===== */
.f-head {
  position: relative;
  z-index: 1;
}

.f-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .68rem;
  font-weight: 700;
  background: rgba(243, 156, 18, 0.12);
  color: var(--gold-bright, #f7b731);
  border: 1px solid rgba(243, 156, 18, 0.25);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.f-ribbon i {
  font-size: .65rem;
}

.f-head h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 2px;
  color: var(--text, #f1f5f9);
  transition: color 0.4s ease;
}

.f-card:hover .f-head h3 {
  color: var(--gold-bright, #f7b731);
}

.f-head p {
  font-size: .72rem;
  color: var(--text-dim, #94a3b8);
  margin: 0;
}

/* ===== بخش پایینی کارت ===== */
.f-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ===== قیمت‌ها ===== */
.f-price {
  display: flex;
  flex-direction: column;
}

.f-price .old {
  font-size: .72rem;
  color: var(--text-faint, #64748b);
  text-decoration: line-through;
}

.f-price .new {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--gold-bright, #f7b731);
  font-variant-numeric: tabular-nums;
  transition: all 0.4s ease;
}

.f-card:hover .f-price .new {
  transform: scale(1.02);
}

/* ===== دکمه خرید ===== */
.f-buy {
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm, 12px);
  font-weight: 800;
  font-size: .82rem;
  background: linear-gradient(95deg, var(--gold-deep, #b87a0e), var(--gold-bright, #f7b731));
  color: #1a1206;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.4s ease;
  font-family: 'Vazirmatn', sans-serif;
  position: relative;
  z-index: 2;
}

.f-buy i {
  font-size: .85rem;
}

.f-buy:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(243, 156, 18, 0.25);
}

/* ===== اسپارکل‌ها (ذرات نور) ===== */
.f-card .sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-bright, #f7b731);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.f-card .sparkle:nth-child(1) {
  top: 15%;
  left: 15%;
  animation: sparkle-move 4s ease-in-out infinite;
}

.f-card .sparkle:nth-child(2) {
  bottom: 20%;
  right: 15%;
  animation: sparkle-move 5s ease-in-out infinite reverse;
}

.f-card .sparkle:nth-child(3) {
  top: 50%;
  right: 10%;
  animation: sparkle-move 3.5s ease-in-out infinite 1s;
}

@keyframes sparkle-move {
  0%, 100% { opacity: 0; transform: scale(0); }
  30% { opacity: 0.8; transform: scale(1.5); }
  70% { opacity: 0.4; transform: scale(1); }
}

/* ===== هاور کارت ===== */
.f-card:hover {
  border-color: rgba(243, 156, 18, 0.4);
  box-shadow: 
    0 0 30px rgba(243, 156, 18, 0.05),
    inset 0 0 30px rgba(243, 156, 18, 0.02);
  transform: translateY(-3px);
}
  .promo-row {
    display: flex;
    align-items: stretch;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    max-width: 520px;
  }
  .promo-row input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: inherit;
    padding: 13px 16px;
    font-size: .85rem;
    text-align: right;
  }
  .promo-row input::placeholder {
    color: var(--text-faint);
  }
  .promo-row button {
    padding: 0 18px;
    background: var(--panel-2);
    color: var(--text-dim);
    font-size: .8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 7px;
    border-left: 1px solid var(--border);
  }
  .promo-row button:hover {
    color: var(--gold);
  }

  /* modal */
  .modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(6, 6, 5, .68);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
  }
  .modal-overlay.show {
    opacity: 1;
    visibility: visible;
  }
  @media(min-width:640px) {
    .modal-overlay {
      align-items: center;
      padding: 20px;
    }
  }
  .modal {
    width: 100%;
    max-width: 420px;
    background: var(--panel);
    border: 1px solid var(--border-strong);
    border-radius: 20px 20px 0 0;
    padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
    transform: translateY(30px);
    transition: transform .35s ease;
    max-height: 88vh;
    overflow-y: auto;
  }
  @media(min-width:640px) {
    .modal {
      border-radius: 20px;
    }
  }
  .modal-overlay.show .modal {
    transform: none;
  }
  .modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
  }
  .modal-head h3 {
    font-size: 1rem;
    font-weight: 800;
  }
  .modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--panel-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
  }
  .modal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
    font-size: .85rem;
  }
  .modal-row span:first-child {
    color: var(--text-dim);
  }
  .modal-row strong {
    font-variant-numeric: tabular-nums;
  }
  .modal-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 6px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--gold-bright);
  }
  .pay-btn {
    width: 100%;
    margin-top: 14px;
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(95deg, var(--gold-deep), var(--gold-bright));
    color: #1a1206;
    font-weight: 800;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .modal-note {
    font-size: .7rem;
    color: var(--text-faint);
    text-align: center;
    margin-top: 10px;
    line-height: 1.8;
  }

  .toast {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 100;
    background: var(--panel);
    border: 1px solid var(--border-strong);
    color: var(--gold-bright);
    font-size: .82rem;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity .3s ease, transform .3s ease;
    box-shadow: var(--shadow);
    pointer-events: none;
    white-space: nowrap;
  }
  .toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  .toast i {
    color: var(--success);
  }

  @media(max-width:899px) {
    .sidebar {
      position: fixed;
      top: 0;
      right: 0;
      height: 100svh;
      width: 300px;
      max-width: 86vw;
      transform: translateX(100%);
      transition: transform .3s ease;
      z-index: 60;
    }
    .sidebar.open {
      transform: translateX(0);
      box-shadow: var(--shadow);
    }
    .mobile-topbar {
      display: flex;
    }
    .scrim {
      display: block;
    }
    .main {
      padding: 18px 16px 90px;
    }
    .overview-head {
      flex-direction: column;
      text-align: center;
    }
  }
 

  #searchInput:focus + div,
  #searchInput:focus ~ div {
    border-color: rgba(243,156,18,0.2) !important;
    background: linear-gradient(135deg, rgba(243,156,18,0.2), rgba(243,156,18,0.08)) !important;
  }

  #searchInput:focus + div i,
  #searchInput:focus ~ div i {
    color: var(--gold-bright) !important;
  }
  .stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(243,156,18,0.1) !important;
    box-shadow: 0 8px 40px rgba(0,0,0,0.2) !important;
  }




  #likeBtn:hover {
    transform: scale(1.03);
    border-color: rgba(243,156,18,0.15) !important;
    background: rgba(0,0,0,0.4) !important;
  }

  #likeBtn:active {
    transform: scale(0.95);
  }

  
  .ov-avatar {
    transition: transform 0.4s ease;
  }

  .ov-avatar:hover {
    transform: scale(1.05);
  }
  
  