/*
  components.css - Styles for reusable UI components such as buttons, inputs, cards, and progress bars.
*/

/* ============================================= Buttons ============================================= */
button {
  background-color: #e41e26;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px;
  width: 100%;
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
}

button:disabled {
  background-color: #ccc;
}

.quiz-btn,
.start-btn {
  width: 321px;
  margin: 18px;
  padding: 10px;
  font-size: 15px;
  background-color: #e41e26;
  color: white;
  border: none;
  border-radius: 12px;
}

.btn-outline {
  display: block;
  width: 100%;
  height: 44%;
  border-radius: 14px;
  background: #d9d9dd;
  border: 1px solid #d9d9dd;
  color: #fff;
  font-weight: 500;
  font-size: 13px;
  margin-top: 5%;
}

.btn-lg-grey {
  width: 100%;
  height: 39px;
  border-radius: 14px;
  background: #e41e26;
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 500;
  margin-top: 35%;
}

.btn-outline-light {
  width: 100%;
  height: 39px;
  border-radius: 14px;
  background: #6f6f72;
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 500;
}

/* Top-left global back button */
#backBtnGlobal.top-back {
  position: fixed;
  top: 24px;
  left: 18px;
  z-index: 5001;
  margin: 0;
}

/* keyboard focus ring */
#backBtnGlobal:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* ============================================= Inputs & Forms ============================================= */
.fixed-input {
  display: block;
  padding: 10px;
  margin: 10px 0;
  width: 96.47%;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

select,
input {
  display: block;
  padding: 10px;
  margin: 10px 0;
  width: 100%;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 12px;
}

textarea {
  width: 100%;
  height: 80px;
  border-radius: 5px;
  padding: 5px;
  font-size: 14px;
  border: 1px solid #ccc;
  resize: none;
}

.form-field {
  position: relative;
}

/* ============================================= Cards ============================================= */
.card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.module-card {
  align-items: center;
}

.module-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 12px;
}

.module-info h3 {
  margin: 0;
  font-size: 16px;
}

.module-info p {
  font-size: 12px;
  color: #777;
  margin: 4px 0;
}

/* ============================================= Progress bars ============================================= */
.progress-bar {
  background: #eee;
  border-radius: 6px;
  height: 6px;
  margin: 6px 0;
  width: 100%;
}

.progress {
  background: #a18cff;
  height: 100%;
  border-radius: 6px;
}

.status {
  font-size: 12px;
  color: #777;
}

p.note {
  font-size: 12px;
  color: #666;
  text-align: center;
  margin-top: 10px;
}

/* ============================================= Headers & Toolbars ============================================= */
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  position: relative;
}

.header h3 {
  font-size: 16px;
  margin: 0 auto;
}

.header button {
  background: none;
  border: none;
  font-size: 16px;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  padding: 5px 10px;
  font-size: 16px;
}

.toolbar button {
  background: none;
  border: none;
  font-size: 16px;
  color: black;
}

.content-box {
  background: white;
  padding: 10px;
  margin: 5px;
  margin-left: 20px;
  border-radius: 5px;
  font-size: 14px;
  width: 300px;
}

.link {
  color: blue;
  text-decoration: underline;
}

/* ============================================= Quiz Components ============================================= */
body.quiz-mode {
  background-color: #f3f4f6;
}

.quiz-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.quiz-header {
  background: white;
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 10;
}

.quiz-header.small {
  padding: 8px;
  position: relative;
}

.quiz-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: start;
}

.quiz-header-row.centered {
  justify-content: center;
  position: relative;
}

.quiz-header-row.centered .back-icon {
  position: absolute;
  left: 10px;
  margin-top: 0px;
}

.quiz-header-row h2 {
  font-size: 16px;
  margin: 0;
}

.back-icon {
  background: none;
  border: none;
  font-size: 20px;
  color: black;
  cursor: pointer;
  padding: 0;
  width: auto;
  height: auto;
  line-height: 1;
}

.quiz-scroll {
  overflow-y: auto;
  flex-grow: 1;
  padding: 16px;
  margin-bottom: 50px;
}

.quiz-block {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 16px;
  margin-bottom: 20px;
}

.quiz-block p {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 15px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin: 2px 0;
  background: #f9f9f9;
  border-radius: 8px;
  font-size: 14px;
  text-align: left;
  color: #333;
  transition: background-color 0.2s;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 0;
}

.radio-label:hover {
  background-color: #eee;
}

.quiz-block label.correct {
  background-color: #e6f4ea;
  color: #1a7f37;
  font-weight: bold;
}

.quiz-block label.wrong {
  background-color: #fcebea;
  color: #d93025;
  font-weight: bold;
}

.quiz-footer {
  position: fixed;
  bottom: 0;
  z-index: 4000;
  width: 100%;
  background: #f3f4f6;
  padding: 10px 16px;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.quiz-footer .start-btn {
  background-color: var(--primary-color);
  color: white;
  border-radius: 12px;
  font-size: 14px;
  padding: 12px;
  width: 100%;
  max-width: 320px;
  margin: 2 auto;
  display: block;
  border: none;
}

#scoreResult {
  margin-top: 12px;
  font-size: 15px;
  text-align: center;
}

.quiz-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.quiz-modal-content {
  background: white;
  padding: 20px 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.quiz-modal-content button {
  margin-top: 16px;
  background-color: var(--primary-color);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  padding: 10px 16px;
  cursor: pointer;
}

.quiz-modal.hidden {
  display: none;
}

/* ============================================= Vertical Menu ============================================= */
.vertical-menu button {
  background-color: var(--card-bg);
  color: var(--font-color);
  border: 1px solid #ccc;
  padding: 14px 20px;
  font-size: 16px;
  margin-bottom: 10px;
  border-radius: 12px;
  text-align: center;
  width: 100%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  box-sizing: border-box;
}

/* ============================================= Atoms Card related components ============================================= */
.atoms-title-bar {
  height: 55px;
  background-color: #b4342a;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 4000;
}

#closeTOCBtn {
  position: fixed;
  top: calc(55px + 30vh);
  right: 10px;
  transform: translateY(-35%);
  width: clamp(2.5rem, 6vw, 3rem);
  height: clamp(2.5rem, 6vw, 3rem);
  font-size: clamp(1rem, 3vw, 1.25rem);
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4000;
}

.top-right-icons {
  position: fixed;
  top: 1px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2000;
  margin-top: 260px;
  margin-left: 300px;
}

.top-right-icons button {
  background: #b4342a;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 18px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#tocDropdown {
  position: fixed;
  top: 55px;
  right: 0;
  width: 100%;
  height: 30vh;
  background: white;
  border-bottom: 2px solid #b4342a;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  z-index: 2999;
  transform-origin: top;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#tocDropdown.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  top: 55px;
}

#tocDropdown.slide-up {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.toc-tab {
  display: flex;
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.toc-tab button {
  flex: 1;
  background: #b4342a;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px;
  font-size: 14px;
  cursor: pointer;
}

/* List styling */
#tocList {
  list-style: none;
  padding: 10px;
  margin: 0;
}

#tocList li {
  padding: 6px 4px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

#atomsImageContainer img {
  cursor: zoom-in;
  transition: transform 0.2s ease-in-out;
}

#atomsImageContainer img.zoomed {
  transform: scale(2);
  cursor: zoom-out;
}

#atomsImageContainer img {
  margin: 10px 0;
}

#atomsImageContainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 55px;
  gap: 20px;
}

.toc-tab button {
  flex: 1;
  background: #ccc;
  color: black;
  border: none;
  border-radius: 6px;
  padding: 6px;
  font-size: 14px;
  cursor: pointer;
}

.toc-tab button.active {
  background: var(--primary-color);
  color: white;
}

/* ============================================= Bottom Bar Navigation ============================================= */
#homeButtonContainer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
#backBtnGlobal {
  grid-column: 1;
  justify-self: start;
}
#homeBtn {
  grid-column: 2;
  justify-self: center;
}

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 10px;
  border-top: 1px solid #ccc;
  z-index: 9999;
}

.nav-icon {
  font-size: 24px;
  color: black;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 70px;
}

/* ============================================= Slide Toggle Switch ============================================= */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.install-button {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 28px;
  font-size: 16px;
  background-color: #b4342a;
  color: white;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 5000;
}

/* ============================================= Modals ============================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-box {
  width: 50%;
  height: 50%;
  background: white;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #555;
}

.modal-content {
  overflow-y: auto;
  flex-grow: 1;
  padding-right: 8px;
  text-align: left;
}

.modal-content label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
}

#offlineContentModal label {
  justify-content: flex-start;
  text-align: left;
  z-index: 20000;
}

/* ============================================= Tooltips ============================================= */
.tooltip {
  position: absolute;
  bottom: 100%;
  left: 2px;
  transform: translateY(-6px);
  background: #333;
  color: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.35;
  max-width: 280px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 14px;
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.option strong {
  font-weight: bold;
}

/* ============================================= Menu ============================================= */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10000;
  display: flex;
  justify-content: flex-end;
}

.menu-panel {
  width: 58%;
  margin-top: 8%;
  border-radius: 24px 0px 0px 24px;
  height: 84%;
  background: #f2f2f2;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 10500;
}

.menu-header {
  background: #c5c5c5;
  padding: 34px 20px 0px;
  border-top-left-radius: 22px;
  margin: -10%;
  margin-bottom: 11px;
}

.menu-close {
  position: absolute;
  width: 4%;
  height: 4%;
  top: 3%;
  right: 6%;
  font-size: 29px;
  border: none;
  background: none;
  color: #333;
  cursor: pointer;
}

.user-profile {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: #b4342a;
  margin-left: 6px;
  margin-bottom: 4px;
}

#menuUsername {
  font-weight: 500;
  font-size: 16px;
  margin-left: 34%;
  color: #111;
  margin-top: -21%;
}

.menu-sub {
  font-size: 11px;
  color: #666;
  margin-left: -2%;
  margin-top: -3%;
  background-color: #c5c5c500;
  margin-bottom: -6%;
}

/* Tabs with underlines */
/* ===== Menu search: dashboard look + overlay behaviour ===== */

/* Tabs bar: match old height/position but with valid CSS */
.menu-tabs {
  display: flex;
  align-items: center;
  gap: 0; /* same as old */
  padding: 0 10px; /* old negative padding behaved like 0 */
  border-bottom: 1px solid #ccc;
  background: #f2f2f2;
  margin-top: -5%; /* keep the old upward lift you liked */
  position: relative; /* REQUIRED for search overlay */
  height: 8%;
}

/* Keep search at far right when collapsed */
.menu-tabs .menu-search-wrap {
  margin-left: auto;
}

/* Collapsed: hide input, show icon only */
.menu-tabs .menu-search-wrap.search-collapsed input[type="search"] {
  width: 0;
  opacity: 0;
  padding: 0;
  border: none;
  pointer-events: none;
  transition: all 0.25s ease;
}

/* Expanded: overlay the whole tabs bar (covers Learning + Links) */
.menu-tabs .menu-search-wrap.search-expanded {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 5;
  margin-left: 0; /* override auto push */
}

/* Expanded input fills the tabs bar */
.menu-tabs .menu-search-wrap.search-expanded input[type="search"] {
  width: 100%;
  opacity: 1;
  height: 30px;
  font-size: 11px;
  border-radius: 12px;
  border: 1px solid #e5e5ea;
  padding: 0 36px 0 12px;
  background: #fff;
  pointer-events: auto;
  transition: all 0.25s ease;
}

/* Menu search icon: dashboard처럼 절대 위치로 고정 */
.menu-tabs .menu-search-wrap .search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto; /* 클릭 가능 */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* collapsed일 때 탭 바에서 아이콘이 너무 아래로 보이면
   wrap 자체를 살짝 올려서 ‘정렬된 느낌’만 주기 (아이콘은 안 움직임) */
.menu-tabs .menu-search-wrap.search-collapsed {
  padding-top: 7px; /* 너가 원했던 7px을 여기로 이동 */
  padding-bottom: 7px;
  margin-left: auto; /* Keep it at the right end when collapsed */
}
.menu-tabs .tab {
  background: none;
  border: none;
  font-size: 13px;
  color: #999;
  width: auto;
  margin-top: 0;
  padding: 8px 14px;
  border-bottom: 2px solid transparent;
}
.menu-tabs .tab.active {
  color: #000;
  font-weight: bold;
}

/* Sections with dividers */
.menu-section {
  padding: 13px 10px;
}
.menu-section strong {
  display: block;
  font-size: 9px;
  color: #c5c5c5;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

/* Menu items */
.menu-item {
  font-size: 12px;
  color: #111;
  padding: 4px 0;
  cursor: pointer;
  font-weight: 600;
}
.menu-item:hover {
  text-decoration: underline;
}

.menu-item a {
  font-size: 12px;
  color: #111;
  padding: 4px 0;
  cursor: pointer;
  font-weight: 600;
}
.menu-item a:hover {
  text-decoration: underline;
}

/* Menu item icon alignment */
.menu-item img {
  width: 20px;
  height: 15px;
  margin-right: 6px;
  vertical-align: text-bottom;
}

.profile-location {
  margin-bottom: 26px;
  font-size: 11px;
  color: #666;
  letter-spacing: 0.2px;
}

.check-location-btn.is-hidden + .menu-search-wrap {
  margin-top: 4px;
}

/* Language picker overlay */
.lang-install__overlay[hidden] {
  display: none;
}
.lang-install__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.lang-install__modal {
  background: var(--bg-color, #fff);
  border-radius: 16px;
  padding: 24px 28px;
  width: min(340px, 90vw);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  position: relative;
}
.lang-install__title {
  margin: 9 0 24px;
  font-weight: 600;
  font-size: 14px;
}
.close-btn {
  position: absolute;
  top: -10px;
  right: -145px;
  font-size: 24px;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

/* === Language Picker Select (Black Theme) === */
#languagePickerSelect.lang-install__select {
  color: #000;
  border: 1px solid #5a5a5a;
  border-radius: 10px;
  padding: 10px 36px 10px 12px;
  font-size: 13px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23000000' d='M6 8L0 0h12L6 8z'/%3E%3C/svg%3E"); /* black arrow */
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 8px;
}

/* On hover / focus for better UX */
#languagePickerSelect.lang-install__select:hover,
#languagePickerSelect.lang-install__select:focus {
  background-color: #111;
  outline: none;
}

/* Two-column language list (English | Native) */
.lang-install__list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  max-height: 50vh;
  overflow: auto;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.lang-install__item {
  display: grid;
  grid-template-columns: 1fr auto; /* English left, Native right */
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.lang-install__item:hover,
.lang-install__item:focus {
  background: rgba(0, 0, 0, 0.05);
  outline: none;
}

.lang-install__item-en {
  font-weight: 400;
  font-size: 14px;
}

.lang-install__item-native {
  font-weight: 600;
  font-size: 14px;
}

/* Collapsed bar (pic 1) */
.lang-picker__toggle {
  width: 100%;
  text-align: left;
  background: var(--bg-color);
  color: #000;
  border: 1px solid #5a5a5a;
  border-radius: 10px;
  padding: 10px 36px 10px 12px;
  font-size: 13px;
  position: relative;
  cursor: pointer;
}

/* White arrow on the bar (so it's visible on black) */
.lang-picker__toggle::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 8px;
  background-repeat: no-repeat;
  background-size: 12px 8px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23000000' d='M6 8L0 0h12L6 8z'/%3E%3C/svg%3E"); /* black arrow */
}

/* Open state rotates the arrow */
.lang-picker__toggle[aria-expanded="true"]::after {
  transform: translateY(-50%) rotate(180deg);
}

/* Dropdown (pic 2) — reuse your two-column list */
.lang-picker__dropdown {
  margin-top: 6px;
  position: relative; /* container context */
}

/* Absolute dropdown panel so it sits under the bar */
.lang-picker {
  position: relative;
}
.lang-picker__dropdown {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 10;
}

/* Keep your existing two-column list styles */
.lang-install__list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  max-height: 50vh;
  overflow: auto;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.lang-install__item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.lang-install__item:hover,
.lang-install__item:focus {
  background: rgba(0, 0, 0, 0.05);
  outline: none;
}

.lang-install__item-en {
  font-weight: 400;
  font-size: 14px;
}
.lang-install__item-native {
  font-weight: 600;
  font-size: 14px;
}

/* Responsive modal sizing stays as you set earlier */

/* ============================================= Catalog components ============================================= */
.catalog-h2 {
  font-size: 13px;
  font-weight: 600;
  margin: 38px 2px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.catalog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0 16px;
}

.catalog-card {
  background: #e0e0e0;
  border: none;
  border-radius: 16px;
  min-height: 120px;
  padding: 12px;
  text-align: left;
  position: relative;
  box-shadow: none;
}

.catalog-card .cc-title {
  font-size: 14px;
  color: #111;
  line-height: 1.2;
}

.catalog-card .cc-tags {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
}

.catalog-card .tag {
  display: inline-block;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #6f6f72;
  color: #fff;
  line-height: 1;
}

.catalog-h2 .see-all {
  color: #fff;
  font-weight: 500;
  font-size: 12px;
}

/* Dashboard: Recommended module cards */
.module-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 9px;
  margin-bottom: 9px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.module-card .module-info h3 {
  margin: 0;
  font-size: 13px;
  color: #111;
}

.module-card .module-info p {
  font-size: 12px;
  color: #777;
  margin: 4px 0;
}

/* A little spacing between image and text  */
.module-card .module-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ============================================= Eyes page components ============================================= */

/* Fix the Eyes top bar to the top on the Eyes catalog page only */
#eyesCatalogPage .eyes-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 83%;
  height: 62px;
  padding: 0 20px 0 56px;
  margin: 0;
}

/* Keep title aligned nicely inside the fixed bar */
#eyesCatalogPage .eyes-title {
  margin-left: 0; /* bar padding now handles left spacing */
  font-size: 14px;
  font-weight: 600;
  color: #000;
}

/* Make sure icons stay vertically centred */
#eyesCatalogPage .eyes-top .icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.eyes-top .icon {
  font-size: 19px;
}

.eyes-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 70%;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0px 0px 4px;
  margin: 6px 0 16px;
}
.eyes-carousel::-webkit-scrollbar {
  display: none;
}

.eyes-card {
  scroll-snap-align: center;
  background: #fff;
  border-radius: 18px;
  height: 148px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 25px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  border: none;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.eyes-card .eyes-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  pointer-events: none;
}

.eyes-card .eyes-card__title {
  color: #ffffff !important;
  position: relative;
  z-index: 1;
}

.eyes-card .tag-row {
  position: absolute;
  left: 18px;
  bottom: 12px;
  display: flex;
  gap: 6px;
  z-index: 1;
}
.eyes-card .tag {
  background: #e41e26;
  color: #fff;
  border-radius: 9px;
  padding: 6px 15px;
  font-size: 10px;
  font-weight: 200;
  z-index: 1;
}

.eyes-card .heart-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 1;
}
.eyes-card .heart-btn svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  stroke-width: 2;
  fill: none;
}
.eyes-card.liked .heart-btn svg {
  fill: #e41e26;
  stroke: #e41e26;
}

/* ============================================= My Learning (Liked) components ============================================= */
.ml-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 8px 12px 0;
  border-bottom: 1px solid #eee;
  max-width: 87vw;
  margin: 0 auto;
}

.ml-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 12px 6px;
}

.ml-title {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  margin-left: 28px;
}
.ml-tabs {
  display: flex;
  gap: 16px;
  justify-content: space-around;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}
.ml-tab {
  background: none;
  border: none;
  color: #9aa0a6;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  width: 33%;
}

.ml-tab.active {
  color: #e41e26;
  font-weight: 600;
}

.ml-chip-row {
  display: flex;
  gap: 10px;
  padding: 6px 2px 10px;
  flex-wrap: wrap;
}

.ml-chip {
  background: #fff;
  border: 1px solid #d9d9dd;
  border-radius: 13px;
  padding: 2px;
  font-size: 12px;
  max-width: 19vw;
  color: #111;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ml-chip.active {
  background: #949494;
  color: #fff;
}

.ml-container {
  background: #fff;
  padding-top: 6px;
}
.ml-section-title {
  font-size: 14px;
  font-weight: 600;
  margin: 10px 2px 8px;
}

.ml-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ml-tile {
  position: relative;
  background: #c5c5c5;
  border-radius: 16px;
  padding: 14px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ml-tile h4 {
  margin: 0;
  font-size: 13px;
  color: #111;
}
.ml-heart {
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 18px;
  color: #e11d48;
}
.ml-badges {
  display: flex;
  gap: 6px;
}
.ml-badge {
  background: #666;
  color: #fff;
  border-radius: 9999px;
  font-size: 11px;
  padding: 6px 8px;
}

/* My Learning polish */
#likedPage .ml-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#likedPage .ml-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

#likedPage .icon.menuBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

#likedPage .ml-tabs {
  position: relative;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}
#likedPage .ml-tab {
  position: relative;
  background: none;
  border: none;
  color: #9aa0a6;
  padding: 8px 0;
  width: 33%;
}
#likedPage .ml-tab.active {
  color: #e41e26;
  font-weight: 600;
}
#likedPage .ml-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: #e41e26;
  border-radius: 2px;
}

/* My Learning: Masonry layout */
.ml-masonry {
  column-count: 2;
  column-gap: 12px;
  padding-top: 6px;
}

/* Masonry card */
.ml-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  break-inside: avoid;
  background: #c5c5c5;
  border-radius: 16px;
  padding: 12px;
  margin: 0 0 12px;
  position: relative;
  color: #111;
  min-height: 140px;
}

/* Title row with heart icon */
.ml-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Random height buckets for variety */
.ml-card.size-s {
  min-height: 120px;
}
.ml-card.size-m {
  min-height: 160px;
}
.ml-card.size-l {
  min-height: 220px;
}

.ml-card h4 {
  margin-top: 4%;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
  text-align: left;
}

.ml-heart {
  font-size: 16px;
  color: #e11d48;
  margin-left: 6px;
}

/* Badges pinned at bottom */
.ml-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.ml-badge {
  background: #666;
  color: #fff;
  border-radius: 9999px;
  font-size: 11px;
  padding: 6px 8px;
}

#pupilsPage .eyes-topbar__title {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  top: 34px;
}
#pupilsPage .eyes-topbar__icons {
  display: flex;
  align-items: center;
  gap: 10px;
}
#pupilsPage .bell-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.tl-item {
  position: relative;
  margin: 14px 0;
}

.thumb {
  width: 42px;
  height: 30px;
  border-radius: 8px;
  background: #d3d3d3;
}

#pupilsPage .pupil-card h3 {
  margin: 8px 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #111;
}

#pupilsPage .lesson-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 12px;
  min-height: 51px;
  padding: 10px 12px;
  margin: 16px 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  width: 88%;
}

#pupilsPage .thumb {
  width: 47px;
  height: 48px;
  border-radius: 8px;
  background: #dcdcdc;
  border: 1px solid #e5e5ea;
}

#pupilsPage .lesson-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #777;
  margin-top: -11%;
  margin-left: 5%;
}
#pupilsPage .lesson-type {
  font-weight: 600;
  color: #111;
  font-size: 11px;
}
#pupilsPage .lesson-meta {
  color: #bbb;
  font-size: 11px;
}

#pupilsPage .lesson-progress {
  width: 100%;
  height: 6px;
  background: #e9e9e9;
  border-radius: 999px;
  margin-top: 5%;
  overflow: hidden;
  margin-left: 5%;
}
#pupilsPage .lesson-progress__fill {
  height: 100%;
  background: #111;
  border-radius: 999px;
  transition: width 0.25s ease;
}

#pupilsPage .lesson-cta {
  font-size: 11px;
  color: #bbb;
  margin-bottom: -103%;
}

#pupilsPage .eyes-topbar {
  position: fixed;
  top: 0;
  background: #fff;
  z-index: 1000;
}

.eyes-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 2px 6px;
}
.eyes-topbar__title {
  font-size: 13px;
  font-weight: 500;
  color: #111;
}
.eyes-topbar__icons {
  display: flex;
  gap: 10px;
}

.pupils-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: #111;
  margin: 21px 4px 12px;
}

.lesson-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  margin-top: 10px;
}
.lesson-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lesson-meta {
  opacity: 0.65;
}

/* ============================================= Pupils page ============================================= */
#pupilsPage .pupils-timeline {
  counter-reset: pupils-step;
}

#pupilsPage .pupils-timeline .tl-item {
  display: flex;
  gap: 10px;
  margin: 6px 0;
  counter-increment: pupils-step;
}

#pupilsPage .pupils-timeline .tl-item::before {
  content: counter(pupils-step);
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 3px;
  z-index: 500;
}

#pupilsPage .pupil-card {
  z-index: 1;
  position: relative;
  flex: 1;
  background: #f4f4f4;
  padding: 10px;
  border-radius: 8px;
}

/* ============================================= Canonical Eyes Topbar ============================================= */
.eyes-topbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  padding: 0 12px;
  margin: 0;
}

.eyes-topbar__title {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  line-height: 1;
}

.eyes-topbar__icons {
  display: flex;
  gap: 10px;
}

/* Any page using this topbar should add spacing for content below it */
.page.has-eyes-topbar {
  background: #fff;
  min-height: 100vh;
  padding-bottom: 100px;
  padding-top: 62px;
}

.video-container {
  padding: 20px;
  padding-bottom: 48px;
}

.video-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  background-color: white;
  position: sticky;
  top: 19px;
  width: 86%;
  left: 20px;
  height: 33px;
  z-index: 100;
  position: relative;
}

/* components.css */
#backBtnGlobal {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* draw the icon */
#backBtnGlobal::before {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor; /* uses .nav-icon color (black) */
  display: block;

  /* mask the SVG chevron */
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>')
    center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"/></svg>')
    center / contain no-repeat;
}

#backBtnGlobal:hover {
  background: rgba(255, 255, 255, 1);
}

#backBtnGlobal.top-back {
  position: fixed;
  top: 13px;
  left: max(18px, calc((100vw - var(--container-w, 92vw)) / 2 + 18px));
}

:root {
  --container-w: 100vw;
}

/* === Guest Mode Modal === */
#guestGateModal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: guestModalFadeIn 0.3s ease-out;
}

#guestGateModal.fade-out {
  animation: guestModalFadeOut 0.25s ease-in forwards;
}

@keyframes guestModalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes guestModalFadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

.guest-modal {
  background: #fff;
  max-width: 440px;
  width: 92%;
  border-radius: 14px;
  padding: 24px 28px 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  position: relative;
  text-align: left;
  font-family: system-ui, sans-serif;
  animation: guestModalCardIn 0.3s ease-out;
}

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

.guest-modal__close {
  position: absolute;
  top: -1px;
  right: -155px;
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  color: #666;
  transition: color 0.2s;
}

.guest-modal__close:hover {
  color: #000;
}

.guest-modal__title {
  margin: 12px 0 19px;
  font-size: 17px;
  font-weight: 600;
  color: #111;
}

.guest-modal__text {
  margin: 0 0 22px;
  color: #444;
  font-size: 14px;
  line-height: 1.45;
}

.guest-modal__cta {
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 12px;
  cursor: pointer;
}

/* Uses existing theme’s primary button colors */
/* ===== Location Buttons ===== */
/* Smaller circular i next to text */
.info-icon {
  margin-right: -94px;
  margin-top: -27px;
  padding: 0.15rem; /* small tappable area, tweak if wanted */
  background: #c5c5c500;
  color: #666666;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.info-icon:hover {
  background: #e0e0e000;
}

/* Check Location button (on its own row) */
.check-location-btn {
  display: block;
  margin: -6px 3px 11px 72px; /* aligns under Location */
  background-color: #8f8f8f;
  color: #fff;
  border: none;
  border-radius: 8px;
  height: 32px; /* consistent height */
  line-height: 9px; /* vertically centers text */
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.1s ease;

  width: 140px; /* slightly longer */
}

.check-location-btn:hover {
  background-color: #5a5a5a;
}

.check-location-btn:active {
  transform: translateY(1px);
}

/* Fade-out then hide after first successful precise location */
.check-location-btn.fading-out {
  opacity: 0;
  transform: translateY(-2px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  pointer-events: none;
}

.check-location-btn.is-hidden {
  display: none !important;
}

/* Put location text and info icon inline on one row */
.profile-location-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 15px; /* keep your current vertical spacing */
  margin-left: 73px; /* match the existing location indent */
}

/* === Info Modal (matches guest modal overlay) === */
#infoModalOverlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: guestModalFadeIn 0.3s ease-out; /* reuse existing keyframes */
}
#infoModalOverlay.fade-out {
  animation: guestModalFadeOut 0.25s ease-in forwards; /* reuse existing keyframes */
}

/* Language Install: hint + info icon row */
.lang-install__hint-row {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 6px;
}

.lang-install__hint-row .lang-install__hint {
  margin-top: 0;
}

/* Inline info icon next to hint text (language install only) */
.lang-install__info-icon {
  background: transparent;
  color: #c5c5c5;
  width: auto;
  padding: 0 4px;
  margin-top: -20px !important;
  border-radius: 999px;
  font-size: 14px;
  flex-shrink: 0;
}

.lang-install__info-icon:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Hint modal overlay (reuses guest modal animations) */
#hintModalOverlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: guestModalFadeIn 0.3s ease-out;
}

#hintModalOverlay.fade-out {
  animation: guestModalFadeOut 0.25s ease-in forwards;
}

/* === Location Button Animations === */
.check-location-btn.checking-location {
  background-color: #e41e26 !important; /* Use !important to override existing styles */
}

#profileLocation.highlighted {
  color: #e41e26 !important; /* Use !important to override existing styles */
}

/* Shared SVG sizing for info buttons */
.info-icon__svg {
  width: 0.9em;
  height: 1.1em;
  display: block;
}

/* If you want a consistent tappable area */
.info-icon,
.lang-install__info-icon {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: inherit; /* icon uses currentColor */
}

/* Optional hover/focus affordance */
.info-icon:hover,
.lang-install__info-icon:hover,
.info-icon:focus-visible,
.lang-install__info-icon:focus-visible {
  background: rgba(0, 0, 0, 0.06);
  outline: none;
}

/* myprofile.css
   Page-scoped styling so My Profile matches the clean mock (pic 2),
   while leaving global components alone.
*/

/* Page shell */
#myProfilePage {
  background: #fff;
  min-height: 100vh;
  padding: 31px;
  padding-bottom: 100px; /* keep clear of bottom bar */
  box-sizing: border-box;
  font-size: 14px;
  color: #111;
}

/* ---- Top bar ---- */
#myProfilePage .profile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0 14px;
  margin-top: -5%;
}

#myProfilePage .profile-topbar__title {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  margin-left: 13%;
}

#myProfilePage .profile-topbar__icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Override global button rule for icon buttons */
#myProfilePage .icon-btn {
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  color: #111;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  position: relative;
}

/* small red notification dot */
#myProfilePage .notif-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 7px;
  height: 7px;
  background: #e41e26;
  border-radius: 50%;
  display: block;
}

/* ---- Profile header row ---- */
#myProfilePage .profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0 18px;
}

#myProfilePage .profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #111; /* black placeholder like mock */
  flex: 0 0 auto;
}

#myProfilePage .profile-name {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin: 0;
}

#myProfilePage .profile-role {
  font-size: 12px;
  color: #444;
  margin-top: 2px;
}

/* ---- Sections ---- */
#myProfilePage .section {
  margin-top: 18px;
}

#myProfilePage .section-title {
  font-size: 13px;
  font-weight: 700;
  color: #111;
  margin-bottom: 15px;
  margin-top: 29px;
}

/* ---- Interest dropdown (pill style) ---- */
#myProfilePage .interest-select select {
  width: 100%;
  height: 38px;
  padding: 0 36px 0 12px;
  border-radius: 12px;
  border: 1px solid #e5e5ea;
  background: #fff;
  font-size: 12px;
  color: #111;
  outline: none;
  appearance: none;
}

/* subtle caret */
#myProfilePage .interest-select {
  position: relative;
}
#myProfilePage .interest-select::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M6 8L0 0h12L6 8z' fill='black'/></svg>")
    center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M6 8L0 0h12L6 8z' fill='black'/></svg>")
    center/contain no-repeat;
  opacity: 0.5;
  pointer-events: none;
}

/* ---- Achievements tiles ---- */
#myProfilePage .achievements-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 6px;
}

#myProfilePage .achievement-tile {
  height: 72px;
  border-radius: 14px;
  background: #e6e6e6;
}

/* ---- Settings list ---- */
#myProfilePage .settings-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 22px;
}

/* plain rows, not “menu” styled blocks */
#myProfilePage .settings-item,
#myProfilePage .settings-list .menu-item {
  display: flex;
  align-items: centre;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #111;
  padding: 6px 0;
  background: transparent;
}

#myProfilePage .settings-list .menu-item img {
  width: 23px;
  height: 17px;
  margin: 0;
}
