:root {
  --bg-1: #070f1f;
  --bg-2: #0a1630;
  --bg-3: #102248;
  --text: #e8efff;
  --muted: #9cb0d4;
  --line: #26497d;
  --panel-1: rgba(17, 34, 68, 0.82);
  --panel-2: rgba(12, 26, 53, 0.88);
  --card-1: rgba(16, 35, 71, 0.9);
  --card-2: rgba(11, 27, 56, 0.92);
  --input-bg: rgba(10, 24, 50, 0.94);
  --btn-bg: rgba(16, 36, 70, 0.94);
  --btn-border: #3663a4;
  --accent-blue: #4a86ff;
  --accent-cyan: #53c5ff;
  --accent-green: #43ddb4;
  --accent-contrast: #ffffff;
  --chip-bg: rgba(15, 36, 70, 0.92);
  --playing-border: #58a0ff;
  --playing-glow: rgba(88, 160, 255, 0.35);
  --shadow: 0 24px 52px rgba(0, 0, 0, 0.42);
  --radius: 18px;
  --arabic-font: "Amiri", "Noto Naskh Arabic", serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 0% 0%, rgba(83, 197, 255, 0.24), transparent 32%),
    radial-gradient(circle at 100% 0%, rgba(74, 134, 255, 0.18), transparent 36%),
    linear-gradient(160deg, var(--bg-1), var(--bg-2) 48%, var(--bg-3));
  background-color: var(--bg-1);
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Source Sans 3", "Avenir Next", "Segoe UI", sans-serif;
  background: transparent;
  background-color: var(--bg-1);
  min-height: 100dvh;
}

.app {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1rem;
}

.header {
  margin-bottom: 1.05rem;
}

.header h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #f4f8ff;
  text-shadow: 0 0 18px rgba(83, 197, 255, 0.25);
}

.header h3 {
  margin: 0.38rem 0 0;
  font-size: 1.1rem;
  color: #d3e1ff;
}

.header p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  max-width: 760px;
}

.header-actions {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.header-login-btn {
  margin-left: auto;
}

.profile-wrap {
  margin-left: auto;
  position: relative;
}

.profile-btn {
  min-width: 48px;
  width: 48px;
  height: 48px;
  padding: 0;
  justify-content: center;
}

.profile-btn .btn-icon {
  font-size: 1.05rem;
}

.profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  min-width: 240px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.65rem;
  background: linear-gradient(150deg, rgba(16, 33, 66, 0.98), rgba(12, 26, 53, 0.99));
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.42);
  z-index: 1200;
}

.profile-email {
  margin: 0 0 0.55rem;
  color: #bfd2f4;
  font-size: 0.86rem;
  word-break: break-all;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(4, 10, 22, 0.86);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.menu-panel {
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(17, 34, 68, 0.96), rgba(12, 26, 53, 0.97));
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.5);
  padding: 1rem;
}

.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.menu-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.menu-actions {
  display: grid;
  gap: 0.7rem;
}

.menu-item {
  width: 100%;
  justify-content: flex-start;
  padding: 0.75rem 0.9rem;
}

body.menu-open {
  overflow: hidden;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--panel-1), var(--panel-2));
  box-shadow: var(--shadow);
  padding: 1rem;
}

.settings-panel {
  margin-bottom: 1rem;
}

.seo-copy {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.surah-seo-card {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.home-seo-card {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.seo-copy h2 {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
}

.seo-copy h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.05rem;
}

.seo-copy p {
  margin: 0.45rem 0;
  color: #cfe0ff;
  line-height: 1.62;
}

.seo-copy ul {
  margin: 0.2rem 0 0;
  padding-left: 1.1rem;
}

.seo-copy li {
  margin: 0.3rem 0;
  color: #b8ccf4;
}

.settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.settings-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.settings-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.settings-grid label {
  display: grid;
  gap: 0.38rem;
}

.settings-grid span {
  font-size: 0.9rem;
  color: #c6d7f9;
  font-weight: 700;
}

.settings-grid select {
  border: 1px solid var(--btn-border);
  border-radius: 12px;
  background: var(--input-bg);
  color: var(--text);
  padding: 0.68rem 0.76rem;
  font: inherit;
}

.toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  border: 1px solid var(--btn-border);
  border-radius: 12px;
  padding: 0.68rem 0.78rem;
  background: var(--chip-bg);
  font-weight: 800;
}

.toggle-row input {
  accent-color: var(--accent-cyan);
}

.home-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.home-head h2 {
  margin: 0;
  font-size: 1.3rem;
}

.search-wrap {
  min-width: min(460px, 100%);
}

input[type="search"] {
  width: 100%;
  border: 1px solid var(--btn-border);
  border-radius: 14px;
  background: var(--input-bg);
  color: var(--text);
  padding: 0.8rem 0.95rem;
  font: inherit;
  outline: none;
}

input[type="search"]::placeholder {
  color: #84a0cd;
}

input[type="search"]:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(83, 197, 255, 0.24);
}

.surah-grid,
.ayah-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.surah-grid {
  display: grid;
  gap: 0.76rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.surah-btn {
  width: 100%;
  border: 1px solid #335d99;
  border-radius: 14px;
  text-align: left;
  padding: 0.9rem 0.9rem;
  cursor: pointer;
  color: var(--text);
  background: linear-gradient(150deg, var(--card-1), var(--card-2));
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.surah-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 24px rgba(74, 134, 255, 0.24);
}

.surah-btn strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1rem;
  font-weight: 800;
}

.surah-btn small {
  color: var(--muted);
}

.surah-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.surah-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.ghost-btn,
.accent-btn,
.play-btn {
  border-radius: 12px;
  border: 1px solid var(--btn-border);
  color: var(--text);
  background: var(--btn-bg);
  padding: 0.62rem 0.86rem;
  font: inherit;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.46rem;
  text-decoration: none;
  cursor: pointer;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25em;
  height: 1.25em;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
  color: color-mix(in srgb, var(--accent-cyan) 78%, white);
  text-shadow: 0 0 10px rgba(83, 197, 255, 0.4);
}

.ghost-btn:hover,
.accent-btn:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(83, 197, 255, 0.22);
}

.accent-btn {
  border-color: transparent;
  color: var(--accent-contrast);
  background: linear-gradient(120deg, var(--accent-blue), var(--accent-green));
}

.auto-scroll-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.46rem;
  font-weight: 800;
  border-radius: 999px;
  border: 1px solid var(--btn-border);
  background: var(--chip-bg);
  padding: 0.46rem 0.76rem;
}

.auto-scroll-toggle input {
  accent-color: var(--accent-cyan);
}

.surah-meta h2 {
  margin: 1rem 0 0.18rem;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
}

.surah-meta p {
  margin: 0;
  color: var(--muted);
}

.ayah-jump {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.ayah-jump label {
  color: #c6d7f9;
  font-size: 0.9rem;
  font-weight: 700;
}

.ayah-jump input {
  width: 98px;
  border: 1px solid var(--btn-border);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text);
  padding: 0.5rem 0.58rem;
  font: inherit;
}

.basmala {
  margin-top: 0.98rem;
  border-radius: 14px;
  border: 1px solid #31598f;
  background: linear-gradient(145deg, var(--card-1), var(--card-2));
  padding: 0.88rem 1rem;
}

.basmala-ar {
  margin: 0;
  text-align: center;
  line-height: 1.85;
  font-family: var(--arabic-font);
  font-size: clamp(1.48rem, 3.15vw, 2.02rem);
  color: #e7f2ff;
}

.ayah-item {
  border-radius: 14px;
  border: 1px solid #2f568d;
  padding: 0.9rem;
  background: linear-gradient(145deg, var(--card-1), var(--card-2));
}

.ayah-item + .ayah-item {
  margin-top: 0.78rem;
}

.ayah-item.playing {
  border-color: var(--playing-border);
  box-shadow: inset 0 0 0 1px var(--playing-glow);
}

.ayah-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 0.55rem;
  margin-bottom: 0.55rem;
  border-bottom: 1px solid rgba(65, 109, 173, 0.42);
}

.ayah-actions {
  display: inline-flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
}

.tafsir-mini-btn {
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid var(--btn-border);
  color: #9fe2ff;
  background: rgba(16, 36, 70, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.38rem 0.58rem;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.tafsir-mini-btn:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(83, 197, 255, 0.22);
}

.bookmark-btn {
  width: 47px;
  height: 47px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--btn-border);
  color: #9fe2ff;
  background: rgba(16, 36, 70, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
}

.bookmark-btn:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(83, 197, 255, 0.22);
}

.bookmark-btn.active {
  border-color: #52d9b7;
  box-shadow: 0 0 0 2px rgba(82, 217, 183, 0.22);
  color: #b7ffee;
}

.tafsir-mini-btn.unmapped {
  opacity: 0.75;
  border-style: dashed;
  text-decoration: none;
}

.ayah-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #4b79bd;
  background: rgba(20, 44, 85, 0.75);
  color: #d7e9ff;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(140, 189, 255, 0.12);
}

.ayah-arabic {
  margin: 0;
  text-align: right;
  line-height: 1.9;
  font-family: var(--arabic-font);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  width: 100%;
}

.ayah-phonetic {
  margin: 0.52rem 0 0;
  color: #96def8;
  font-style: italic;
  line-height: 1.52;
}

.ayah-fr {
  margin: 0.6rem 0 0;
  line-height: 1.68;
  color: #d7e4fb;
}

.play-btn {
  width: 47px;
  height: 47px;
  padding: 0;
  border-radius: 999px;
  color: #84dcff;
}

.play-btn svg {
  width: 19px;
  height: 19px;
}

.state {
  margin-top: 0.95rem;
  color: #aec2e5;
}

.hidden {
  display: none !important;
}

.toast-host {
  position: fixed;
  top: max(0.9rem, calc(env(safe-area-inset-top) + 0.4rem));
  left: 50%;
  transform: translateX(-50%);
  z-index: 2400;
  display: grid;
  gap: 0.5rem;
  width: min(94vw, 460px);
  pointer-events: none;
}

.toast {
  border: 1px solid #3d6baa;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(16, 35, 71, 0.98), rgba(11, 27, 56, 0.98));
  color: #e6efff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4);
  padding: 0.72rem 0.85rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  border-color: #59b386;
}

.toast.warning {
  border-color: #e6bf59;
}

.toast.error {
  border-color: #d56d6d;
}

.mobile-tuto-wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.tuto-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.tuto-head h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.18;
}

.tuto-intro {
  margin: 0;
  color: #cfe0ff;
  line-height: 1.62;
  max-width: 700px;
}

.tuto-shell {
  border-color: #3a669e;
  padding: 1.15rem;
}

.platform-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.platform-card {
  border: 1px solid #365f99;
  border-radius: 16px;
  padding: 1rem;
  background: linear-gradient(145deg, var(--card-1), var(--card-2));
}

.platform-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.12rem;
}

.mobile-guide-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.mobile-guide-card {
  border: 1px solid #365f99;
  border-radius: 16px;
  padding: 0.9rem;
  background: linear-gradient(145deg, var(--card-1), var(--card-2));
}

.mobile-guide-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.18rem;
}

.mobile-guide-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.mobile-guide-steps li {
  display: block;
  color: #d3e4ff;
  line-height: 1.55;
}

.mobile-guide-steps li i {
  display: inline-block;
  width: 18px;
  color: #7ed9ff;
  margin-right: 0.42rem;
  vertical-align: baseline;
}

.mobile-guide-note {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  color: #a9c3ea;
  line-height: 1.55;
}

.mobile-guide-extra {
  margin-top: 1rem;
  border: 1px solid #355f98;
  border-radius: 14px;
  background: rgba(13, 29, 59, 0.86);
  padding: 0.85rem;
}

.mobile-guide-extra h3 {
  margin: 0 0 0.5rem;
  font-size: 1.03rem;
}

.mobile-guide-extra ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.mobile-guide-extra li {
  display: block;
  color: #cde0ff;
  line-height: 1.5;
}

.mobile-guide-extra li i {
  display: inline-block;
  width: 16px;
  color: #80dfff;
  margin-right: 0.4rem;
  vertical-align: baseline;
}

.steps-list {
  list-style: none;
  counter-reset: step;
  margin: 0.3rem 0 0;
  padding: 0;
}

.steps-list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.52rem;
  align-items: start;
  color: #cfe0ff;
  margin: 0.5rem 0;
  line-height: 1.58;
}

.steps-list li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #4f82c8;
  background: rgba(20, 47, 92, 0.9);
  color: #b7deff;
  font-size: 0.85rem;
  font-weight: 800;
}

.shot-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.65rem;
  justify-items: center;
}

.shot-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.shot {
  border: 1px solid #3a689f;
  border-radius: 12px;
  overflow: hidden;
  background: #0b1d3e;
  width: 100%;
  max-width: 180px;
}

.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: linear-gradient(180deg, #0c1f41, #08142b);
  display: block;
}

.shot figcaption {
  padding: 0.48rem 0.56rem 0.58rem;
  color: #aecdff;
  font-size: 0.84rem;
  line-height: 1.35;
}

.tuto-note {
  margin: 0.25rem 0 0;
  color: #9bb7e6;
  font-size: 0.94rem;
  line-height: 1.55;
}

.settings-page-shell {
  max-width: 980px;
  margin: 0 auto;
}

.settings-grid-page {
  margin-top: 0.8rem;
}

.preview-shell {
  margin-top: 1rem;
  border: 1px solid #355f98;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--card-1), var(--card-2));
  padding: 0.95rem;
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.preview-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.preview-ar {
  margin-top: 0.2rem;
}

.preview-ph,
.preview-fr {
  margin-top: 0.45rem;
}

.settings-save-row {
  margin-top: 0.8rem;
  display: flex;
  justify-content: flex-start;
}

.notes-shell {
  max-width: 1080px;
  margin: 0 auto;
}

#notesHomeSection {
  display: grid;
  gap: 0.85rem;
}

.notes-create-grid {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

@media (min-width: 900px) {
  .notes-create-grid {
    grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
    grid-auto-flow: dense;
  }

  .notes-create-grid label:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .notes-create-grid label:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .notes-create-grid label:nth-child(3) {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
  }
}

.notes-create-grid label {
  display: grid;
  gap: 0.38rem;
}

.notes-create-grid span {
  font-size: 0.9rem;
  color: #c6d7f9;
  font-weight: 700;
}

.notes-create-grid select {
  border: 1px solid var(--btn-border);
  border-radius: 12px;
  background: var(--input-bg);
  color: var(--text);
  padding: 0.68rem 0.76rem;
  font: inherit;
}

.notes-create-actions {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.notes-list {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.75rem;
}

.notes-file-card {
  border: 1px solid #355f98;
  border-radius: 14px;
  padding: 0.85rem;
  background: linear-gradient(145deg, var(--card-1), var(--card-2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.notes-file-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.notes-file-card p {
  margin: 0;
  color: var(--muted);
}

.notes-file-date {
  margin-top: 0.28rem !important;
  font-size: 0.82rem;
  color: #9fb7de !important;
}

.notes-file-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.notes-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.notes-editor-head h2 {
  margin: 0;
  font-size: 1.12rem;
}

.notes-editor-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.notes-verses {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.8rem;
}

.notes-verse-item {
  border: 1px solid #335d99;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--card-1), var(--card-2));
  padding: 0.85rem;
}

.notes-verse-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  color: #b7d4ff;
  font-size: 0.94rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.notes-verse-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.notes-expand-btn {
  height: 34px;
  min-height: 34px;
  width: 34px;
  border-radius: 999px;
  min-width: 34px;
  padding: 0;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notes-expand-btn .btn-icon {
  width: 1em;
  height: 1em;
  font-size: 1rem;
}

.notes-verse-ar {
  margin-top: 0;
}

.notes-verse-fr {
  margin: 0.3rem 0 0;
}

.notes-textarea {
  margin-top: 0.6rem;
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: 1px solid var(--btn-border);
  border-radius: 12px;
  background: var(--input-bg);
  color: var(--text);
  padding: 0.75rem 0.82rem;
  font: inherit;
  line-height: 1.55;
  transition: min-height 0.2s ease;
}

.notes-textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(83, 197, 255, 0.22);
}

.notes-verse-item.expanded .notes-textarea {
  min-height: 320px;
}

.auth-shell {
  max-width: 760px;
  margin: 0 auto;
}

.auth-switch {
  margin-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.auth-form {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.7rem;
}

.auth-form label {
  display: grid;
  gap: 0.35rem;
}

.auth-form span {
  color: #c6d7f9;
  font-size: 0.9rem;
  font-weight: 700;
}

.auth-form input {
  border: 1px solid var(--btn-border);
  border-radius: 12px;
  background: var(--input-bg);
  color: var(--text);
  padding: 0.72rem 0.78rem;
  font: inherit;
}

.auth-register-cta {
  margin-top: 0.5rem;
  border: 1px solid #4f7ec2;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(16, 35, 71, 0.92), rgba(11, 27, 56, 0.94));
  padding: 0.85rem;
  display: grid;
  gap: 0.55rem;
}

.auth-register-cta p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #d8e9ff;
}

.auth-register-cta-btn {
  background: linear-gradient(145deg, #2a6fd9, #1f56b7);
  border: 1px solid #7bc8ff !important;
  color: #f2f8ff;
  box-shadow: 0 0 0 1px rgba(123, 200, 255, 0.25), 0 12px 24px rgba(7, 36, 92, 0.35);
}

.auth-register-cta-btn:hover {
  background: linear-gradient(145deg, #3181f1, #2563d0);
  border-color: #9ed9ff !important;
}

.auth-email-notice {
  margin-top: 0.9rem;
  border: 1px solid #5f93d6;
  border-radius: 14px;
  background: linear-gradient(145deg, #122a4f, #0f2244);
  padding: 0.9rem 1rem;
}

.auth-email-notice h3 {
  margin: 0 0 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1rem;
  color: #d7e8ff;
}

.auth-email-notice p {
  margin: 0;
  color: #bfd4f2;
}

.auth-email-notice ol {
  margin: 0.55rem 0 0;
  padding-left: 1.2rem;
  color: #d7e8ff;
  display: grid;
  gap: 0.22rem;
}

.auth-status {
  margin-top: 0.7rem;
  border: 1px solid #355f98;
  border-radius: 12px;
  background: rgba(19, 41, 76, 0.65);
  padding: 0.68rem 0.82rem;
}

.auth-status.is-warning {
  border-color: #e6bf59;
  background: rgba(86, 67, 22, 0.5);
  color: #ffe6a7;
}

.auth-status.is-error {
  border-color: #d56d6d;
  background: rgba(88, 30, 30, 0.5);
  color: #ffcdcd;
}

.auth-status.is-success {
  border-color: #59b386;
  background: rgba(17, 66, 46, 0.5);
  color: #c7f5de;
}

.auth-switch .active {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(83, 197, 255, 0.22);
}

@media (max-width: 760px) {
  #goBookmarkBtn {
    margin-top: 0.45rem;
  }

  .bookmark-btn {
    width: 42px;
    height: 42px;
  }

  .play-btn {
    width: 42px;
    height: 42px;
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

  .mobile-guide-grid {
    grid-template-columns: 1fr;
  }

  .shot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shot {
    max-width: 170px;
  }

  .platform-card {
    padding: 0.85rem;
  }

}
