﻿@import url(fontiran.css); /* لینک فایلی که وظیفه بارگذاری فونت ها را برعهده دارد */
body {
  font-family: IRANSansX !important;
  /* direction: rtl; */
  background: #f5f5f5 !important;
  margin: 0;
}
h1,
h2,
h3,
h4,
h5,
h6,
input,
textarea {
  font-family: IRANSansX !important;
}
h1 {
  font-weight: bold;
}
.wrapper {
  max-width: 900px;
  margin: 0 auto;
}
.ltr {
  direction: ltr;
}
.text-right {
  text-align: right;
}
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-small {
  font-size: 0.8em;
}
.text-xsmall {
  font-size: 0.6em;
}
.text-large {
  font-size: 1.2em;
}
.text-xlarge {
  font-size: 1.4em;
}
.text-underline {
  text-decoration: underline;
}

.text-thin {
  font-weight: 100;
}
.text-UltraLight {
  font-weight: 200;
}
.text-light {
  font-weight: 300;
}
.text-regular {
  font-weight: normal;
}
.text-medium {
  font-weight: 500;
}
.text-demibold {
  font-weight: 600;
}
.text-bold {
  font-weight: bold;
}

.text-extrabold {
  font-weight: 800;
}
.text-black {
  font-weight: 900;
}

blockquote {
  font-weight: 700;
  padding: 10px;
  border: 1px dashed #666666;
}

.mainbox {
  width: 100%;
  background-color: #efefef;
  display: table;
  margin-bottom: 30px;
  border-right: 8px solid #df79ff;
}

.mainboxnegativ {
  width: 100%;
  background-color: #000000;
  display: table;
  margin-bottom: 30px;
  border-right: 8px solid #df79ff;
  color: #f9f9f9;
}

.mainbox2 {
  font-size: 1em;
  width: 90%;
  padding-right: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.mainboxitalic {
  font-size: 1em;
  font-style: italic;
  width: 90%;
  padding-right: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.mainbox3 {
  width: 100%;
  background-color: #dfdfdf;
  display: table;
  margin-bottom: 30px;
  border-right: 8px solid #ff5eaa;
}

.mainbox2negativ {
  font-size: 1em;
  color: #f9f9f9;
  background-color: #000000;
  padding-right: 20px;
}

.farsiparagraph {
  font-size: 1em;
  width: 47%;
  float: right;
  padding-right: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.farsiparagraph_negativ {
  font-size: 1em;
  color: #f9f9f9;
  background-color: #000000;
  width: 47%;
  float: right;
  padding-right: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.englishparagraph {
  font-size: 1em;
  width: 47%;
  float: left;
  direction: ltr;
  padding-left: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.englishparagraph_negativ {
  font-size: 1em;
  color: #f9f9f9;
  background-color: #000000;
  width: 47%;
  float: left;
  direction: ltr;
  padding-left: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.rightbox {
  width: 60%;
  padding-right: 20px;
  padding-left: 5px;
  float: right;
  margin-left: 10px;
  margin-bottom: 0px;
  min-width: 0px;
  background-color: #f7f7f7;
}

.titelbox {
  width: 60%;
  padding-right: 25px;
  padding-left: 0px;
  float: right;
  margin-left: 10px;
  margin-bottom: 0px;
  min-width: 0px;
  background-color: #d5d5d5;
  color: #4b4b4b;
}

.lefttbox {
  padding-right: 20px;
  padding-left: 4px;
  float: right;
  margin-bottom: 10px;
  min-width: 0px;
}

.alphabet {
  width: 35%;
  float: left;
  font-size: 20em;
  text-align: center;
  font-weight: 700;
  color: #999999;
}

.alphabet2 {
  width: 35%;
  float: left;
  direction: ltr;
  font-size: 1.6em;
  text-align: left;
  font-weight: 600;
  color: #333333;
  margin-top: 100px;
}
.footer {
  font-weight: 400;
  font-size: 0.7em;
  text-align: center;
  direction: ltr;
  margin-bottom: 0px;
  padding-bottom: 0px;
}

.C9 {
  background-color: #c9c9c9 !important;
}

.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-container {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1000;
}
.sidebar-container-fa {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  z-index: 1000;
  text-align: right;
  direction: rtl;
}

.filter-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(85vw, 360px);
  height: 100dvh; /* ✅ FIX FOR SAFARI */
  background: white;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
  padding: 20px;
  overflow-y: auto; /* ✅ enable scrolling */
  transition: right 0.3s ease-in-out;
  z-index: 1000;
}

.filter-drawer.open {
  right: 0;
}

.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 999;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 20px;
}

.close-btn {
  background: transparent;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
}

.noDecorationBtn {
  text-decoration: none !important;
}

/*
 * ReportModal.css
 * Final version: "Add details" field is now vertically centered on desktop.
 */

/* --- MOBILE & BASE STYLES --- */
.report-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 1000;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.report-modal-content {
  background-color: #ffffff;
  width: 100%;
  padding: 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.15);
  animation: slide-up-from-bottom 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.report-modal-header {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  margin-bottom: 12px;
}

.report-modal-title {
  grid-column: 2;
  font-size: 24px;
  font-weight: 700;
  color: #1c1c1e;
  margin: 0;
  text-align: center;
}

.report-modal-close-btn {
  grid-column: 3;
  justify-self: end;
  background: none;
  border: none;
  font-size: 28px;
  color: #333;
  cursor: pointer;
}

.report-modal-back-btn {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: transparent;
  border: 1px solid #000;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  padding: 0;
}
.report-modal-back-btn > .fa-chevron-left {
  font-size: 14px;
  color: black;
}

.report-modal-subtitle {
  font-size: 15px;
  color: #636366;
  margin-bottom: 24px;
  line-height: 1.5;
}

.report-options-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.report-option-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 4px;
  cursor: pointer;
  border-bottom: 1px solid #e5e5ea;
  font-size: 16px;
  color: #1c1c1e;
}
.report-option-item:last-child {
  border-bottom: none;
}
.report-option-item .arrow-icon {
  font-size: 20px;
  font-weight: bold;
  color: #000000;
}

.report-modal-body-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.details-input-container {
  border-bottom: 1.5px solid #333;
  margin-top: 20px;
}
.details-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 8px 0;
  background-color: transparent;
  resize: none;
}
.details-input::placeholder {
  color: #aaa;
}
.details-note {
  font-size: 13px;
  color: #888;
  margin-top: 8px;
}
.submit-button {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: none;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  background-color: #2c2c2e;
  color: white;
  margin-top: auto;
  margin-bottom: 10px;
}
.submit-button:disabled {
  background-color: #d1d1d6;
}

/* --- DESKTOP OVERRIDES (for screens wider than 768px) --- */
@media (min-width: 768px) {
  .report-modal-overlay {
    align-items: center;
  }

  .report-option-item {
    padding: 8px 4px;
  }

  .report-modal-content {
    max-width: 900px;
    width: 100%;
    height: 650px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid #e5e5ea;
    padding: 40px 60px;
    animation: fade-in-scale-up 0.3s ease-out;
  }

  .report-modal-header {
    display: block;
    position: relative;
    text-align: center;
    margin-bottom: 15px;
    flex-shrink: 0;
  }

  .report-modal-title {
    font-size: 32px;
  }

  .report-modal-subtitle {
    max-width: 450px;
    margin: 5px auto 10px auto;
    text-align: center;
  }

  .report-modal-close-btn {
    position: absolute;
    top: -25px;
    right: -45px;
    font-size: 26px;
  }

  .report-modal-back-btn {
    position: absolute;
    top: -5px;
    left: -45px;
  }

  .report-modal-body,
  .report-modal-body-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }

  .report-modal-body {
    justify-content: center;
  }
  .report-options-list {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
  }

  .report-modal-body-details {
    max-width: 550px;
    width: 100%;
    margin: 0 auto;
    /* 
     * THE FIX IS HERE
     * This vertically centers all the content (subtitle, input, note, button)
     * within the body of the modal.
    */
    justify-content: center;
  }
  .details-input-container {
    margin-top: auto;
  }
  .submit-button {
    max-width: 300px;
    align-self: center;
    /* margin-top: auto is no longer needed when centering the whole block */
    margin-bottom: 10px;
  }
}

/* --- ANIMATIONS --- */
@keyframes slide-up-from-bottom {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes fade-in-scale-up {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Styling for the Block Modal */

/* Style for the user's avatar in the center of the modal */
.block-user-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 20px auto;
  display: block;
}

/* Styling for the user's name and age */
.block-user-name {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 15px;
}

/* The confirmation text, e.g., "Do you really want to block this user?" */
.block-confirmation-prompt {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* Container for the action buttons */
.block-modal-actions {
  display: flex;
  justify-content: center;
  gap: 15px; /* Creates space between the buttons */
  width: 100%;
}

/* Generic styling for modal buttons, you might already have this */
.block-modal-actions button {
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  border: none;
  width: 150px; /* Or adjust as needed */
  border: 1px solid #000;
}

/* The cancel button style */
.cancel-button {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  color: #333;
}

.cancel-button:hover {
  background-color: #e0e0e0;
}

/* The "Yes, Block" button style (reusing .submit-button from your report modal) */
.submit-button {
  background-color: #333; /* Dark background */
  color: white;
}

.submit-button:hover {
  background-color: #555;
}

.popup-menu-item {
  padding: 8px 15px;
  cursor: pointer;
  font-size: 14px;
}

.popup-menu-item:hover {
  background-color: #f5f5f5;
}

.settings-menu {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 25px;
  padding: 10px;
  height: calc(-220px + 100vh);
}

.settings-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 15px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.settings-menu-item:last-child {
  border-bottom: none;
}

.settings-menu-item:hover {
  background-color: #f9f9f9;
}

.settings-menu-item span {
  font-family: "IRANSansX", sans-serif;
  font-weight: bold;
  font-size: 18px;
  transition: color 0.2s ease;
}

.settings-menu-item .chevron-icon {
  transition: color 0.2s ease;
}

.card-title-update {
  margin: 20px 25px;
  color: #000;
}

.subscription-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  font-family: sans-serif;
  font-size: 16px;
  gap: 8px;
  user-select: none;
  white-space: nowrap;
}

.subscription-badge.starter {
  background-color: #5bc0de;
}

.subscription-badge.explorer {
  background-color: #6a5acd;
}

.subscription-badge.elite {
  background-color: #e6b800;
}

.subscription-badge.free-trial {
  background-color: #d9534f;
  border-radius: 6px;
}

.badge-icon {
  display: flex;
  align-items: center;
  font-size: 1.1em;
}

.badge-text {
  line-height: 1;
}

/* activitsection */
.activity-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 5px;
}

.activity-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.activity-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.activity-text {
  font-size: 16px;
  color: #333;
  margin: 0;
}

.activity-text strong {
  color: #000;
  font-weight: bold;
  cursor: pointer;
}

.activity-text strong:hover {
  text-decoration: underline;
}

/* --- Global & Layout --- */
.page-container {
  background-color: #f5f5f5;
  min-height: 100vh;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.mobile-wrapper {
  background: #fff;
  min-height: 100vh;
  padding-bottom: 80px;
}

/* --- Typography --- */
.page-title {
  font-size: 50px;
  font-weight: bold;
  margin: 0;
}

.mobile-page-title {
  font-size: 35px;
  font-weight: bold;
  margin: 0;
}

.section-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
}

/* --- Common Card Styles --- */
.custom-card {
  background: #fff;
  border: 1px solid #000;
  border-radius: 35px;
  padding: 25px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-sizing: border-box;
}

/* --- Header Section --- */
.desktop-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 50px;
  margin-bottom: 50px;
  height: 60px;
}

.mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 15px;
}

/* --- Desktop Grid Layout --- */
.main-content-area {
  padding: 20px 40px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.updates-grid {
  display: grid;
  grid-template-columns: 360px 1fr 350px;
  grid-template-rows: 1fr;
  gap: 25px;
  height: calc(100vh - 140px);
  min-height: 500px;
  align-items: stretch;
}

.grid-col-activity {
  height: 100%;
}

.grid-col-flex {
  display: flex;
  flex-direction: column;
  gap: 25px;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

.flex-top-expand {
  flex: 1;
  min-height: 0;
}

.flex-bottom-fixed-quiz {
  height: 150px;
  flex-shrink: 0;
}

.flex-bottom-fixed-ads {
  height: 180px;
  flex-shrink: 0;
}

/* --- Mobile Tabs --- */
.mobile-tabs-container {
  display: flex;
  overflow-x: auto;
  padding: 0 15px;
  border-bottom: 1px solid #f0f0f0;
  scrollbar-width: none;
}

.mobile-tabs-container::-webkit-scrollbar {
  display: none;
}

.mobile-tab-item {
  padding: 15px 10px;
  font-size: 20px;
  font-weight: 500;
  color: #888;
  white-space: nowrap;
  margin: 0 15px;
  position: relative;
  cursor: pointer;
  text-align: center;
  flex: 1;
}

.mobile-tab-item.active {
  color: #000;
  font-weight: bold;
}

.mobile-tab-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #b22025;
  border-radius: 2px 2px 0 0;
}

.red-dot-badge {
  width: 6px;
  height: 6px;
  background-color: #b22025;
  border-radius: 50%;
  position: absolute;
  top: 12px;
  right: -2px;
}

.mobile-content-area {
  padding: 20px;
}

/* Remove borders on mobile for cleaner look */
.mobile-content-area .custom-card {
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* --- Activity List --- */
.activity-list {
  flex: 1;
  overflow-y: auto;
  padding-right: 5px;
}

/* --- Matches Section --- */
.matches-subsection {
  margin-bottom: 40px;
}

.subsection-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
}

.subsection-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 15px;
}

.horizontal-scroll-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
}

.scroll-items-container {
  display: flex;
  gap: 15px;
  overflow-x: hidden;
  justify-content: center;
  flex: 1;
  padding: 5px;
}

.scroll-nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #ccc;
  font-size: 18px;
  display: flex;
  align-items: center;
}

/* Avatars */
.avatar-circle {
  width: 120px;
  height: 120px;
  min-width: 120px;
  border-radius: 50%;
  background-color: #d9d9d9;
  position: relative;
}

.heart-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #000;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* --- Videos Section --- */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
  overflow-y: auto;
}

.video-placeholder {
  width: 100%;
  height: 140px;
  background-color: #d9d9d9;
  border-radius: 15px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.video-scroll-indicator {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 40px;
  background: #fff;
  border-radius: 2px;
}

.play-icon-circle {
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Quiz Banner --- */
.quiz-banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
}

.quiz-title {
  font-size: 32px;
  font-weight: bold;
  color: #4f4f4f;
  margin: 0;
}

.quiz-radio-item.disabled {
  pointer-events: none;
  opacity: 0.7;
}

.quiz-shimmer-wrapper {
  width: 100%;
  padding-top: 10px;
}

.quiz-shimmer-title {
  height: 28px;
  border-radius: 10px;
  margin-bottom: 30px;
  width: 85%;
}

.quiz-shimmer-option {
  height: 58px;
  border-radius: 18px;
  margin-bottom: 16px;
  width: 100%;
}

.shimmer {
  position: relative;
  overflow: hidden;
  background: #e5e7eb;
}

.shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.7),
    transparent
  );
  animation: shimmer 1s infinite;
}

@keyframes shimmer {
  100% {
    left: 150%;
  }
}
/* --- Ads Banner --- */
.ads-banner {
  height: 100%;
  background-color: #e0e0e0;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #555;
  /* Cross pattern */
  background:
    linear-gradient(
      to top right,
      transparent 49.5%,
      #aaa 50%,
      transparent 50.5%
    ),
    linear-gradient(
      to bottom right,
      transparent 49.5%,
      #aaa 50%,
      transparent 50.5%
    );
  background-color: #e0e0e0;
}

/* --- Responsive Adjustments --- */

/* Tablet/Small Desktop */
@media (max-width: 1300px) {
  .updates-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    height: auto;
  }
  .grid-col-3 {
    grid-column: span 2;
    flex-direction: row;
  }
  .flex-bottom-fixed-ads {
    height: 300px;
    width: 300px;
  }
}

/* Mobile Specific Overrides */
@media (max-width: 768px) {
  .scroll-nav-btn {
    display: none !important;
  }
  .scroll-items-container {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }
  .scroll-items-container::-webkit-scrollbar {
    display: none;
  }
  .section-title {
    display: none;
  }
}

.notfound-root {
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.spotlight-wrapper {
  position: relative;
  width: 85%;
  max-width: 800px;
  height: 90vh;
  display: flex;
  justify-content: center;
}

.beam-trapezoid {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #f6f6f6;
  clip-path: polygon(28% 0%, 72% 0%, 100% 100%, 0% 100%);
  z-index: 1;
}

.beam-floor-base {
  position: absolute;
  bottom: -25px;
  width: 100%;
  height: 50px;
  background-color: #e5e5e5;
  border-radius: 50%;
  z-index: 2;
}

.content-overlay {
  position: relative;
  z-index: 10;
  padding-top: 20vh;
}

.logo-404-red {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.digit-red {
  font-size: 160px;
  font-weight: 900;
  color: #b22025;
  font-family: Arial, sans-serif !important;
  line-height: 1;
}

.icon-red-center {
  width: 130px;
  height: 130px;
}

.ring-1 {
  border: 8px solid #b22025;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  padding: 8px;
}

.ring-2 {
  border: 4px solid #b22025;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  padding: 4px;
}

.ring-3 {
  border: 1px solid #b22025;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.magnifier-icon {
  font-size: 70px;
  color: #b22025;
}

.exclamation-point {
  position: absolute;
  top: 15%;
  font-weight: 900;
  font-size: 22px;
  color: #b22025;
}

.title-404 {
  font-family: "IRANSansX", sans-serif !important;
  font-weight: 800;
  color: #000;
  font-size: 32px;
  margin-bottom: 12px;
}

.desc-404 {
  font-family: "IRANSansX", sans-serif !important;
  color: #333;
  font-size: 17px;
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .spotlight-wrapper {
    width: 100%;
  }
  .beam-trapezoid {
    clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
  }
  .digit-red {
    font-size: 100px;
  }
  .icon-red-center {
    width: 90px;
    height: 90px;
  }
}

/* --- Compatibility Quiz Modal Styles --- */

.quiz-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  backdrop-filter: blur(3px); /* Blur effect behind modal */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.quiz-modal-content {
  background-color: #fff;
  width: 90%;
  max-width: 800px;
  min-height: 550px;
  border-radius: 20px;
  padding: 40px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: fadeInScale 0.3s ease-out;
}

.quiz-modal-header {
  position: relative;
  text-align: center;
  margin-bottom: 20px;
}

.quiz-modal-title {
  font-size: 24px;
  font-weight: bold;
  color: #000;
  margin: 0;
}

.quiz-close-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

.quiz-modal-description {
  text-align: center;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 40px;
  padding: 0 10px;
}

/* --- Quiz Steps Styles (Main Menu) --- */
.quiz-content-wrapper {
  padding: 10px 0;
  width: 100%;
}

.quiz-description {
  text-align: left;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Step Card Container */
.quiz-step-card {
  background: #fff;
  border: 1px solid #999;
  border-radius: 16px;
  padding: 25px 20px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  cursor: pointer;
}

.quiz-step-skeleton-card {
  height: 80px;
  border-radius: 14px;
  background: #e5e7eb;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.quiz-step-skeleton-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.7),
    transparent
  );
  animation: quiz-step-shimmer 1s infinite;
}

@keyframes quiz-step-shimmer {
  100% {
    left: 150%;
  }
}

.quiz-step-card.active:hover {
  background-color: #fafafa;
  border-color: #000;
}

.quiz-step-card.locked {
  border: 1px solid #e0e0e0;
  background-color: #fff;
  opacity: 0.6;
  cursor: default;
}

.quiz-step-title {
  font-size: 22px;
  font-weight: bold;
  color: #000;
}

.quiz-step-card.locked .quiz-step-title {
  color: #d3d3d3;
}

.quiz-step-action {
  display: flex;
  align-items: center;
}

/* RTL Support for Description */
[dir="rtl"] .quiz-description {
  text-align: right;
}

/* --- Quiz Step 1 Internal Styles (Categories) --- */

.quiz-step1-container {
  width: 100%;
  animation: fadeIn 0.3s ease;
}

.quiz-internal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 10px;
}

.quiz-internal-header .step-title {
  font-size: 22px;
  font-weight: bold;
  margin: 0;
}

.quiz-internal-header .back-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 5px;
  color: #333;
}

.quiz-categories-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.quiz-step1-card-skeleton {
  height: 160px;
  width: 140px;
  border-radius: 12px;
  background: #e5e7eb;
  position: relative;
  overflow: hidden;
}

.quiz-step1-card-skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.7),
    transparent
  );
  animation: quiz-step1-shimmer 1s infinite;
}

@keyframes quiz-step1-shimmer {
  100% {
    left: 150%;
  }
}

/* --- Category Card (Base/Desktop Style) --- */
.quiz-category-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: #fff;

  /* Desktop Layout: Vertical Box */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 160px;
  text-align: center;
}

.quiz-category-card:hover {
  border-color: #000;
  background-color: #f9f9f9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Specific styling for when card is filled/done */
.quiz-category-card.filled {
  border: 2px solid #000 !important;
}
.quiz-category-card.filled:hover {
  background-color: inherit;
  filter: brightness(0.95);
}

.cat-icon-wrapper {
  margin-bottom: 15px;
  color: #000;
}

.cat-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cat-title {
  font-weight: bold;
  font-size: 16px;
  color: #000;
}

.cat-status {
  font-size: 14px;
  color: #888;
}

.cat-status.done .check-icon {
  color: #000;
}

/* --- Quiz Question View Styles --- */

.quiz-q-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 400px;
}

/* Header Area */
.quiz-q-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  /* border-bottom: 1px solid #C5C5C5;
  border-top: 1px solid #C5C5C5; */
  margin-bottom: 25px;
  position: relative;
  padding-top: 10px;
}

.quiz-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #333;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #000;
}

.quiz-nav-btn:disabled {
  border-color: #e0e0e0;
  color: #ccc;
  cursor: not-allowed;
}

.quiz-nav-btn:hover:not(:disabled) {
  background-color: #f5f5f5;
}

.quiz-q-title-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quiz-q-category {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
  color: #000;
}

.quiz-q-progress {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
}

/* Question Text */
.quiz-q-text {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #000;
  text-align: left;
  padding: 0 10px;
}

/* Options List */
.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.quiz-radio-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px; /* Increased padding slightly for touch targets */
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}

.quiz-radio-item:hover {
  background-color: #f9f9f9;
}

/* Custom Radio Circle */
.radio-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #000;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.radio-circle.active {
  background-color: #000;
  box-shadow: inset 0 0 0 4px #fff;
}

.radio-label {
  font-size: 17px;
  color: #000;
}

/* Desktop Absolute Close Button */
.quiz-q-close-absolute {
  position: absolute;
  top: -20px;
  right: -20px;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  display: none;
}

/* Top Actions (Close Button for Mobile/Desktop internal) */
.quiz-top-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.quiz-close-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #000;
  padding: 5px;
}

/* Submit Button Wrapper */
.quiz-footer-action {
  width: 100%;
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 10px;
}

.quiz-submit-btn {
  width: 100%;
  padding: 15px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s;
}

.quiz-submit-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.quiz-submit-btn:not(:disabled) {
  background-color: #3b3b3b;
}

/* Loaders */
.quiz-loader {
  padding: 50px;
  text-align: center;
  color: #666;
  font-size: 16px;
}

/* Animations */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* --- Responsive Adjustments (Desktop) --- */
@media (min-width: 769px) {
  .quiz-q-close-absolute {
    display: block;
  }

  .quiz-q-header {
    margin-top: 0;
    border-bottom: 1px solid #c5c5c5;
    border-top: 1px solid #c5c5c5;
  }

  .quiz-q-text {
    text-align: left;
  }

  .quiz-mobile-modal-overlay {
    height: 100%;
    width: 100%;
  }

  .quiz-q-container {
    padding: 0;
    height: 100%;
    min-height: 500px;
  }

  .quiz-footer-action {
    margin-top: auto;
    margin-bottom: 20px;
  }
}

/* --- Responsive Adjustments (Mobile) --- */
@media (max-width: 768px) {
  .quiz-modal-content {
    padding: 25px;
    width: 95%;
  }
  .quiz-modal-title {
    font-size: 20px;
  }

  .quiz-categories-grid {
    flex-direction: column;
    gap: 15px;
  }

  .quiz-category-card {
    /* Mobile Layout: Horizontal List Item */
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 60px;
    padding: 0 20px;
  }

  .cat-icon-wrapper {
    display: none;
  }

  .cat-info {
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }

  .cat-title {
    font-size: 18px;
  }

  .cat-status {
    font-size: 16px;
  }

  .quiz-q-category {
    font-size: 20px;
  }

  /* Bottom Sheet Modal for Questions on Mobile */
  .quiz-mobile-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(2px);
  }

  .quiz-q-container {
    background-color: #fff;
    width: 100%;
    max-height: 70vh;
    min-height: 500px;
    overflow-y: auto;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1);
  }
}

.progress-circle-wrapper {
  width: 120px;
  height: 120px;
  min-width: 120px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-inner-avatar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 1;
}

.progress-inner-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background-color: #ccc;
  border-radius: 50%;
}

.progress-pct-badge {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: bold;
  z-index: 2;
  border: 1.5px solid #fff;
}
