:root {
  --bg-grad: radial-gradient(circle at 20% 0%, #1d3557 0%, #0b1320 55%, #050811 100%);
  --bg-image: none;
  --surface: rgba(13, 23, 42, 0.84);
  --surface-2: rgba(23, 38, 68, 0.9);
  --text: #f8fafc;
  --muted: #a5b4fc;
  --accent: #38bdf8;
  --accent-2: #f59e0b;
  --neon: 0 12px 32px rgba(56, 189, 248, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --border: rgba(148, 163, 184, 0.22);
  --success: #10b981;
  --danger: #ef4444;
}

body[data-theme="gold"] {
  --bg-grad: radial-gradient(circle at 25% 0%, #3b2809 0%, #191205 55%, #080602 100%);
  --surface: rgba(33, 24, 8, 0.88);
  --surface-2: rgba(54, 39, 13, 0.94);
  --text: #fffbeb;
  --muted: #fcd34d;
  --accent: #fbbf24;
  --accent-2: #f97316;
  --neon: 0 12px 32px rgba(251, 191, 36, 0.26), inset 0 1px 0 rgba(251, 191, 36, 0.14);
  --border: rgba(251, 191, 36, 0.28);
}

body[data-theme="ocean"] {
  --bg-grad: radial-gradient(circle at 20% 0%, #093a4c 0%, #061c26 55%, #030d12 100%);
  --surface: rgba(8, 38, 52, 0.86);
  --surface-2: rgba(14, 58, 78, 0.92);
  --text: #ecfeff;
  --muted: #67e8f9;
  --accent: #2dd4bf;
  --accent-2: #38bdf8;
  --neon: 0 12px 32px rgba(45, 212, 191, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --border: rgba(45, 212, 191, 0.26);
}

body[data-theme="light"] {
  --bg-grad: radial-gradient(circle at 20% 0%, #e0e7ff 0%, #f1f5f9 55%, #ffffff 100%);
  --surface: rgba(255, 255, 255, 0.92);
  --surface-2: rgba(241, 245, 249, 0.98);
  --text: #0f172a;
  --muted: #475569;
  --accent: #0284c7;
  --accent-2: #d97706;
  --neon: 0 10px 26px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --border: rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "Tajawal", "Cairo", system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  color: var(--text);
  background-color: #070b14;
  background-image: var(--bg-image), var(--bg-grad);
  background-size: cover, cover;
  background-position: center, center;
  background-attachment: fixed, fixed;
  line-height: 1.7;
  overflow-x: hidden;
}

.svg-ico {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: currentColor;
}

.svg-ico-lg {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  fill: currentColor;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 900;
  font-size: 0.94rem;
  letter-spacing: 0.3px;
  direction: ltr;
  unicode-bidi: isolate;
}

.brand-harmonika-anim {
  background: linear-gradient(90deg, #38bdf8, #f59e0b, #ec4899, #10b981, #38bdf8);
  background-size: 260% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: none !important;
}

@keyframes rainbowText {
  0% { background-position: 0% center; }
  100% { background-position: 260% center; }
}

.brand-clef {
  color: var(--accent-2);
  font-size: 1.3rem;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.icon-btn:active {
  transform: scale(0.95);
}

.icon-btn.muted {
  opacity: 0.72;
  border-color: var(--danger);
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 18px 14px 44px;
}

.screen {
  display: none;
  animation: none !important;
}

.screen.active {
  display: block;
}

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

.hero-card {
  text-align: center;
  padding: 26px 18px;
  border-radius: 26px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  box-shadow: var(--neon);
}

.channel-avatar-wrap {
  position: relative;
  width: 146px;
  height: 146px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.channel-orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 5px;
  background: conic-gradient(
    from 0deg,
    #38bdf8,
    #f59e0b,
    #ec4899,
    #10b981,
    #8b5cf6,
    #38bdf8
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: none !important;
  pointer-events: none;
}

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

@keyframes hueShift {
  0%, 100% { filter: hue-rotate(0deg) drop-shadow(0 0 10px rgba(56, 189, 248, 0.5)); }
  50% { filter: hue-rotate(180deg) drop-shadow(0 0 14px rgba(245, 158, 11, 0.55)); }
}

.channel-avatar-inner {
  position: relative;
  z-index: 2;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.channel-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
  font-weight: 900;
  font-size: 0.95rem;
}

.hero-title {
  font-size: 1.55rem;
  font-weight: 900;
  margin-bottom: 6px;
  color: var(--accent);
}

.hero-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.primary-btn {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #ea580c, #be185d);
  color: #ffffff;
  font-family: inherit;
  font-size: 1.04rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(190, 24, 93, 0.28);
  transition: transform 0.15s ease;
}

.primary-btn:active {
  transform: scale(0.98);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.quick-card {
  padding: 15px 12px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.quick-card:active {
  transform: scale(0.97);
}

.dua-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--accent-2);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.28);
}

.quick-title {
  font-size: 0.98rem;
  font-weight: 900;
}

.quick-sub {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
}

.tg-accent {
  color: #29b6f6;
}

.panel {
  padding: 18px;
  border-radius: 22px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: var(--neon);
  margin-bottom: 14px;
}

.panel-title {
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--accent);
}

.subject-grid, .mode-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 600px) {
  .subject-grid, .mode-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.choice-btn {
  text-align: right;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.choice-btn:active {
  transform: scale(0.98);
}

.quiz-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

.timer-pill {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--accent);
  color: var(--accent);
}

.question-box {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.option-btn {
  width: 100%;
  text-align: right;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
}

.option-btn.correct {
  background: rgba(16, 185, 129, 0.22);
  border-color: var(--success);
  color: var(--text);
}

.option-btn.wrong {
  background: rgba(239, 68, 68, 0.22);
  border-color: var(--danger);
  color: var(--text);
}

.explain-box {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  border-right: 4px solid var(--accent-2);
  font-size: 0.9rem;
}

.char-card-img {
  width: 118px;
  height: 118px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--accent);
  margin: 10px auto;
  display: block;
}

.dua-stage {
  position: relative;
  min-height: 220px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  margin-bottom: 12px;
  background-color: #0b1320;
  background-size: cover;
  background-position: center;
}

.dua-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 20, 0.68) 0%, rgba(5, 10, 20, 0.82) 100%);
  z-index: 1;
}

.dua-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  text-align: center;
  font-size: 1.14rem;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.dua-bg-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.dua-thumb {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.7;
}

.dua-thumb.active {
  border-color: var(--accent-2);
  opacity: 1;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-sheet {
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 24px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--neon);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.theme-card {
  border: 2px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  text-align: right;
}

.theme-card.active {
  border-color: var(--accent);
  box-shadow: var(--neon);
}

.theme-preview {
  height: 74px;
  width: 100%;
  background-size: cover;
  background-position: center;
}

.theme-label {
  padding: 8px 10px;
  font-size: 0.88rem;
  font-weight: 800;
}

.footer-credit {
  margin-top: 18px;
  text-align: center;
  padding: 16px 14px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted);
}

.sig-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(127, 29, 29, 0.22);
  border: 1.5px solid #fbbf24;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.35);
  animation: none !important;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: pointer;
}

.dev-red-gold {
  color: #ff4d4d;
  font-weight: 900;
  font-size: 0.96rem;
  text-shadow: 0 0 10px rgba(255, 77, 77, 0.45), 0 1px 0 rgba(251, 191, 36, 0.65);
}

.dev-clef-gold {
  color: #fbbf24;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.7);
}

@keyframes devPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.3), 0 0 6px rgba(251, 191, 36, 0.35);
  }
  50% {
    transform: scale(1.035);
    box-shadow: 0 0 22px rgba(239, 68, 68, 0.55), 0 0 12px rgba(251, 191, 36, 0.65);
  }
}

.channels-circle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 10px;
}

@media (min-width: 520px) {
  .channels-circle-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.channel-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  gap: 6px;
  padding: 8px 4px;
  border-radius: 16px;
  transition: transform 0.16s ease, background 0.2s ease;
}

.channel-circle-item:active {
  transform: scale(0.95);
}

.channel-circle-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  background: var(--surface-2);
}

.channel-circle-name {
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
}

.channel-circle-handle {
  font-size: 0.68rem;
  color: var(--muted);
  direction: ltr;
  word-break: break-all;
}


/* === HARMONIKA THEMES (ZOOM / ABD EL FATTAH SET) === */
:root,
body[data-theme="neon-night"] {
  --bg-main: #060a14;
  --bg-card: rgba(12, 20, 38, 0.86);
  --text-main: #f1f5f9;
  --accent-color: #38bdf8;
  --border-glow: rgba(56, 189, 248, 0.45);
  background: radial-gradient(circle at top, #0f1c38 0%, #060a14 75%);
  color: #f1f5f9;
}

body[data-theme="day"] {
  --bg-main: #f4f7fb;
  --bg-card: rgba(255, 255, 255, 0.92);
  --text-main: #0f172a;
  --accent-color: #0284c7;
  --border-glow: rgba(2, 132, 199, 0.35);
  background: linear-gradient(180deg, #ffffff 0%, #e8eff8 100%);
  color: #0f172a;
}

body[data-theme="blood-moon"] {
  --bg-main: #140508;
  --bg-card: rgba(34, 8, 14, 0.88);
  --text-main: #ffe4e6;
  --accent-color: #f43f5e;
  --border-glow: rgba(244, 63, 94, 0.5);
  background: radial-gradient(circle at top, #450a14 0%, #140508 78%);
  color: #ffe4e6;
}

body[data-theme="cosmic"] {
  --bg-main: #090518;
  --bg-card: rgba(22, 12, 48, 0.88);
  --text-main: #ede9fe;
  --accent-color: #a855f7;
  --border-glow: rgba(168, 85, 247, 0.5);
  background: radial-gradient(circle at 20% 15%, #2e1065 0%, #090518 75%);
  color: #ede9fe;
}

body[data-theme="bonoti"] {
  --bg-main: #1b0914;
  --bg-card: rgba(46, 14, 34, 0.88);
  --text-main: #fce7f3;
  --accent-color: #ec4899;
  --border-glow: rgba(236, 72, 153, 0.5);
  background: radial-gradient(circle at top, #500724 0%, #1b0914 78%);
  color: #fce7f3;
}

.theme-preview-neon-night {
  background: linear-gradient(135deg, #091224, #1e3a8a, #0284c7);
}
.theme-preview-day {
  background: linear-gradient(135deg, #ffffff, #dbeafe, #bae6fd);
}
.theme-preview-blood-moon {
  background: linear-gradient(135deg, #1f060b, #7f1d1d, #e11d48);
}
.theme-preview-cosmic {
  background: linear-gradient(135deg, #0d0624, #4c1d95, #9333ea);
}
.theme-preview-bonoti {
  background: linear-gradient(135deg, #26091b, #831843, #ec4899);
}

/* === HARMONIKA IMAGE THEMES (FROM ARCHIVE) === */
html[data-theme="harmonika-base"],
body[data-theme="harmonika-base"],
body.harmonika-base-mode {
  --bg-main: #060b18 !important;
  --bg-card: rgba(8, 16, 34, 0.62) !important;
  --text-main: #f8fafc !important;
  --accent-color: #38bdf8 !important;
  background-color: #060b18 !important;
  background-image: linear-gradient(180deg, rgba(6, 12, 26, 0.42) 0%, rgba(5, 10, 22, 0.72) 100%), url("https://i.ibb.co/Q7cHRHr6/file-00000000a6c08210b0f036feacded412.png") !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  color: #f8fafc !important;
}

html[data-theme="night"],
body[data-theme="night"],
body.night-mode {
  --bg-main: #060811 !important;
  --bg-card: rgba(12, 16, 28, 0.64) !important;
  --text-main: #f1f5f9 !important;
  --accent-color: #60a5fa !important;
  background-color: #060811 !important;
  background-image: linear-gradient(180deg, rgba(8, 11, 22, 0.42) 0%, rgba(5, 7, 15, 0.74) 100%), url("https://i.ibb.co/XZ9C6cqS/file-0000000010748210bdf38db1f6b90454.png") !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  color: #f1f5f9 !important;
}

html[data-theme="day"],
body[data-theme="day"],
body.light-mode {
  --bg-main: #e8f3fa !important;
  --bg-card: rgba(255, 255, 255, 0.68) !important;
  --text-main: #0f172a !important;
  --accent-color: #0284c7 !important;
  background-color: #e8f3fa !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(224, 242, 254, 0.56) 100%), url("https://i.ibb.co/j9vfxMSV/file-00000000d7f882108cdddcb345ff3cd1.png") !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  color: #0f172a !important;
}

html[data-theme="bonoti"],
body[data-theme="bonoti"],
body.girly-mode {
  --bg-main: #24091a !important;
  --bg-card: rgba(54, 14, 40, 0.62) !important;
  --text-main: #fdf2f8 !important;
  --accent-color: #f472b6 !important;
  background-color: #24091a !important;
  background-image: linear-gradient(180deg, rgba(45, 10, 32, 0.36) 0%, rgba(28, 6, 20, 0.68) 100%), url("https://i.ibb.co/WvhML5tm/file-0000000035688210a1cb374a8901eb01.png") !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  color: #fdf2f8 !important;
}

html[data-theme="blood-moon"],
body[data-theme="blood-moon"],
body.blood-mode {
  --bg-main: #140205 !important;
  --bg-card: rgba(34, 6, 12, 0.64) !important;
  --text-main: #ffe4e6 !important;
  --accent-color: #f43f5e !important;
  background-color: #140205 !important;
  background-image: linear-gradient(180deg, rgba(24, 3, 7, 0.38) 0%, rgba(14, 2, 5, 0.72) 100%), url("https://i.ibb.co/RkC2Dn3Q/file-00000000dcf48210be7185c06bfb4535.png") !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  color: #ffe4e6 !important;
}

html[data-theme="cosmic"],
body[data-theme="cosmic"],
body.anime-mode {
  --bg-main: #0c061f !important;
  --bg-card: rgba(24, 13, 52, 0.64) !important;
  --text-main: #f5f3ff !important;
  --accent-color: #a855f7 !important;
  background-color: #0c061f !important;
  background-image: linear-gradient(180deg, rgba(16, 8, 38, 0.38) 0%, rgba(9, 4, 22, 0.72) 100%), url("https://i.ibb.co/274q5jdH/file-00000000fbd882108ab691ed41713b07.png") !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  color: #f5f3ff !important;
}

/* إبراز الصور خلف الكتابة والبطاقات لتظهر مثل منصة الأستاذ عبد الفتاح */
body[data-theme] main,
body[data-theme] .container,
body[data-theme] .app-container,
body[data-theme] .screen,
body[data-theme] section {
  background: transparent !important;
}

body[data-theme] .card,
body[data-theme] .box,
body[data-theme] .panel,
body[data-theme] .quiz-card,
body[data-theme] .dua-card,
body[data-theme] .hero-card,
body[data-theme] .subject-card {
  background: var(--bg-card) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

body[data-theme="day"] .card,
body[data-theme="day"] .box,
body[data-theme="day"] .panel,
body[data-theme="day"] .quiz-card,
body[data-theme="day"] .dua-card,
body[data-theme="day"] .hero-card {
  color: #0f172a !important;
}

/* === FIX THEME PICKER CARDS & BACKGROUNDS === */
.harmonika-theme-card {
  min-height: 112px !important;
  height: auto !important;
  padding: 12px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

.harmonika-theme-card .harmonika-theme-check {
  display: none !important;
}

.harmonika-theme-card.active .harmonika-theme-check {
  display: flex !important;
}

.harmonika-theme-card .harmonika-theme-row {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
}

.harmonika-theme-card .harmonika-theme-name {
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}

.harmonika-theme-card .harmonika-theme-tag {
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  opacity: 0.88 !important;
}

body[data-theme] .card,
body[data-theme] .box,
body[data-theme] .panel,
body[data-theme] .quiz-card,
body[data-theme] .dua-card,
body[data-theme] .hero-card,
body[data-theme] .home-card,
body[data-theme] .feature-card,
body[data-theme] .footer-card {
  background-color: var(--bg-card) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
}

/* === CLEAR THEME LABELS & UPDATED NAMES === */
.harmonika-theme-card {
  position: relative !important;
  min-height: 116px !important;
  padding: 12px 14px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
}

.harmonika-theme-card::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.35) 48%, rgba(0, 0, 0, 0.90) 100%) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

.harmonika-theme-card .harmonika-theme-row {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
  direction: rtl !important;
}

.harmonika-theme-card .harmonika-theme-name {
  color: #ffffff !important;
  opacity: 1 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95) !important;
  white-space: nowrap !important;
}

.harmonika-theme-card .harmonika-theme-tag {
  color: #f8fafc !important;
  opacity: 0.92 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95) !important;
  white-space: nowrap !important;
}

.harmonika-theme-card .harmonika-theme-check {
  z-index: 3 !important;
}

/* === HARMONIKA LONG SUBJECT PILLS + PULSING CIRCLES === */
.harmonika-subject-pill {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  width: 100% !important;
  min-height: 66px !important;
  padding: 14px 18px !important;
  margin-bottom: 12px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  background: linear-gradient(135deg, rgba(13, 23, 46, 0.9), rgba(24, 41, 78, 0.85)) !important;
  color: #f8fafc !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  text-align: right !important;
  cursor: pointer !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease !important;
}

.harmonika-subject-pill:hover {
  transform: translateY(-2px) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45), 0 0 16px rgba(56, 189, 248, 0.25) !important;
}

.harmonika-subject-left {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.harmonika-subject-icon {
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(56, 189, 248, 0.14) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  color: #38bdf8 !important;
  flex-shrink: 0 !important;
}

.harmonika-games-circles-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px !important;
  padding: 16px 8px !important;
}

@keyframes harmonikaPulseCircle {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38), 0 0 0 0 var(--circle-glow, rgba(56, 189, 248, 0.35));
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.48), 0 0 0 10px rgba(56, 189, 248, 0);
  }
}

.harmonika-game-circle {
  width: 124px !important;
  height: 124px !important;
  min-width: 124px !important;
  min-height: 124px !important;
  padding: 12px !important;
  margin: 0 !important;
  border-radius: 9999px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 8px !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  border: 2px solid rgba(255, 255, 255, 0.28) !important;
  cursor: pointer !important;
  animation: none !important;
}

.harmonika-game-circle:hover {
  animation-play-state: paused !important;
  transform: scale(1.08) !important;
}

.harmonika-back-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 14px !important;
  padding: 11px 18px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
  background: rgba(15, 23, 42, 0.85) !important;
  color: #f8fafc !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

/* === HARMONIKA HIDE CHANNEL HANDLES & STYLE DISCUSSION GROUP === */
#channelsModal [class*="handle"],
#channelsModal [class*="username"],
#channelsModal [class*="sub"],
#channelsModal [class*="link"],
#channelsModal small,
.channels-grid [class*="handle"],
.channels-grid [class*="username"],
.channels-grid [class*="sub"],
.channels-grid small,
.channel-card .channel-handle,
.channel-card .channel-sub,
.harmonika-hide-handle {
  display: none !important;
}

/* === HARMONIKA BIGGER SUBJECT CARDS + RICH ARTWORK BADGES === */
.harmonika-subject-pill {
  min-height: 84px !important;
  padding: 16px 18px !important;
  margin-bottom: 14px !important;
  border-radius: 18px !important;
  font-size: 16px !important;
}

.harmonika-subject-left {
  gap: 14px !important;
}

.harmonika-subject-icon {
  width: 56px !important;
  height: 56px !important;
  border-radius: 15px !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35) !important;
}

.harmonika-subject-icon svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

.harmonika-subject-label {
  font-size: 15.5px !important;
  font-weight: 800 !important;
  line-height: 1.38 !important;
  color: #f8fafc !important;
}

/* === HARMONIKA EXTRA LARGE SUBJECT CARDS + NEW 3D ARTWORK === */
.harmonika-subject-pill {
  min-height: 102px !important;
  padding: 18px 20px !important;
  margin-bottom: 16px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(125, 211, 252, 0.28) !important;
  background: linear-gradient(135deg, rgba(11, 20, 42, 0.92), rgba(22, 37, 72, 0.88)) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.harmonika-subject-left {
  gap: 16px !important;
}

.harmonika-subject-icon {
  width: 70px !important;
  height: 70px !important;
  border-radius: 18px !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45) !important;
}

.harmonika-subject-icon svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

.harmonika-subject-label {
  font-size: 16.5px !important;
  font-weight: 800 !important;
  line-height: 1.42 !important;
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

/* === HARMONIKA REFINED ARTWORK CARDS (SCALE + COMPASS + FINANCE) === */
.harmonika-subject-pill {
  min-height: 108px !important;
  padding: 18px 20px !important;
  margin-bottom: 16px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  background: linear-gradient(135deg, rgba(12, 21, 44, 0.94), rgba(24, 39, 76, 0.9)) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

.harmonika-subject-left {
  gap: 16px !important;
}

.harmonika-subject-icon {
  width: 76px !important;
  height: 76px !important;
  border-radius: 20px !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.48) !important;
}

.harmonika-subject-icon svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

.harmonika-subject-label {
  font-size: 16.5px !important;
  font-weight: 800 !important;
  line-height: 1.42 !important;
  color: #ffffff !important;
}

/* === HARMONIKA MODERN ULTRA QUIZ UI + QUIZ BACK BUTTON === */
#quizScreen .quiz-card,
#quizScreen .card,
#quizScreen .box,
#quizScreen > div {
  background: linear-gradient(155deg, rgba(10, 18, 38, 0.94), rgba(20, 32, 66, 0.9)) !important;
  border: 1px solid rgba(125, 211, 252, 0.24) !important;
  border-radius: 26px !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(14px) !important;
  padding: 20px 18px !important;
}

.harmonika-quiz-topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 14px !important;
}

.harmonika-quiz-back-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 14px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  background: rgba(30, 41, 59, 0.85) !important;
  color: #f8fafc !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: transform 0.18s ease, background 0.18s ease !important;
}

.harmonika-quiz-back-btn:active {
  transform: scale(0.96) !important;
}

#quizProgress,
#quizTimer,
#quizScore {
  font-weight: 800 !important;
  font-size: 13.5px !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, 0.78) !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
  color: #e2e8f0 !important;
}

#quizTimer {
  color: #fde047 !important;
  border-color: rgba(250, 204, 21, 0.4) !important;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.18) !important;
}

#quizScore {
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
}

.harmonika-quiz-meter {
  width: 100% !important;
  height: 7px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  overflow: hidden !important;
  margin-bottom: 16px !important;
}

.harmonika-quiz-meter-fill {
  height: 100% !important;
  width: 10% !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #f97316) !important;
  transition: width 0.35s ease !important;
}

#quizCaseBanner {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.55), rgba(15, 23, 42, 0.85)) !important;
  border: 1px solid rgba(96, 165, 250, 0.35) !important;
  border-right: 4px solid #38bdf8 !important;
  border-radius: 18px !important;
  padding: 14px 16px !important;
  margin-bottom: 14px !important;
  color: #f1f5f9 !important;
  line-height: 1.65 !important;
  font-size: 14.5px !important;
}

#questionText {
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.6 !important;
  color: #ffffff !important;
  margin-bottom: 16px !important;
}

#optionsContainer {
  display: flex !important;
  flex-direction: column !important;
  gap: 11px !important;
  margin-bottom: 16px !important;
}

#optionsContainer button,
#optionsContainer .option-btn {
  width: 100% !important;
  text-align: right !important;
  padding: 14px 16px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
  background: linear-gradient(135deg, rgba(22, 34, 62, 0.9), rgba(15, 23, 42, 0.92)) !important;
  color: #f8fafc !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  cursor: pointer !important;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28) !important;
}

#optionsContainer button:hover,
#optionsContainer .option-btn:hover {
  transform: translateY(-2px) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 10px 22px rgba(56, 189, 248, 0.18) !important;
}

#explainBox {
  border-radius: 16px !important;
  padding: 14px 16px !important;
  margin-bottom: 14px !important;
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(52, 211, 153, 0.35) !important;
  color: #ecfdf5 !important;
  line-height: 1.6 !important;
}

#quizScreen button[id*="next" i],
#quizScreen .next-btn {
  border-radius: 16px !important;
  padding: 14px 20px !important;
  font-size: 15.5px !important;
  font-weight: 800 !important;
  background: linear-gradient(90deg, #f97316, #ec4899) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35) !important;
}

/* === HARMONIKA PRO ORBITAL MODE CIRCLES === */
#modeScreen .card,
#modeScreen .box,
#modeScreen > div {
  background: radial-gradient(circle at top, rgba(30, 58, 138, 0.28), rgba(9, 15, 30, 0.94) 70%) !important;
  border: 1px solid rgba(125, 211, 252, 0.25) !important;
  border-radius: 28px !important;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(16px) !important;
  padding: 22px 18px !important;
}

.harmonika-mode-badge-top {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px !important;
  color: #7dd3fc !important;
  background: rgba(14, 165, 233, 0.14) !important;
  border: 1px solid rgba(125, 211, 252, 0.3) !important;
  margin-bottom: 10px !important;
}

.harmonika-games-circles-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 24px !important;
  padding: 18px 8px 22px !important;
}

.harmonika-game-circle {
  position: relative !important;
  width: 148px !important;
  height: 148px !important;
  border-radius: 50% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 16px !important;
  text-align: center !important;
  color: #ffffff !important;
  cursor: pointer !important;
  border: 2px solid rgba(255, 255, 255, 0.28) !important;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease !important;
  overflow: visible !important;
}

.harmonika-game-circle::before {
  content: "" !important;
  position: absolute !important;
  inset: -7px !important;
  border-radius: 50% !important;
  border: 1.5px dashed rgba(255, 255, 255, 0.38) !important;
  animation: none !important;
  pointer-events: none !important;
}

.harmonika-game-circle::after {
  content: "" !important;
  position: absolute !important;
  inset: 4px !important;
  border-radius: 50% !important;
  box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.28), inset 0 -10px 18px rgba(0, 0, 0, 0.35) !important;
  pointer-events: none !important;
}

.harmonika-game-circle:nth-child(odd) {
  background: radial-gradient(circle at 30% 25%, #38bdf8, #1d4ed8 65%, #0f172a 100%) !important;
  box-shadow: 0 14px 30px rgba(29, 78, 216, 0.45), 0 0 24px rgba(56, 189, 248, 0.25) !important;
}

.harmonika-game-circle:nth-child(even) {
  background: radial-gradient(circle at 30% 25%, #c084fc, #7e22ce 65%, #2e1065 100%) !important;
  box-shadow: 0 14px 30px rgba(126, 34, 206, 0.45), 0 0 24px rgba(192, 132, 252, 0.25) !important;
}

.harmonika-game-circle:nth-child(3n) {
  background: radial-gradient(circle at 30% 25%, #fbbf24, #d97706 65%, #451a03 100%) !important;
  box-shadow: 0 14px 30px rgba(217, 119, 6, 0.42), 0 0 24px rgba(251, 191, 36, 0.22) !important;
}

.harmonika-game-circle:hover,
.harmonika-game-circle:active {
  transform: translateY(-4px) scale(1.04) !important;
}

.harmonika-circle-kicker {
  font-size: 10.5px !important;
  font-weight: 800 !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  background: rgba(0, 0, 0, 0.28) !important;
  color: #fef08a !important;
}

.harmonika-circle-title {
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.32 !important;
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45) !important;
}

@keyframes harmonikaOrbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* === HARMONIKA LEGENDARY AURA MODE CIRCLES === */
@keyframes harmonikaRingCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes harmonikaRingCCW {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes harmonikaPulseGlow {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.35)); }
  50% { filter: drop-shadow(0 0 26px rgba(168, 85, 247, 0.55)); }
}

#modeScreen .card,
#modeScreen .box,
#modeScreen > div {
  position: relative !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 18% 12%, rgba(56, 189, 248, 0.22), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(168, 85, 247, 0.22), transparent 48%),
    linear-gradient(165deg, rgba(7, 13, 28, 0.96), rgba(15, 23, 48, 0.94)) !important;
  border: 1px solid rgba(125, 211, 252, 0.32) !important;
  border-radius: 30px !important;
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(18px) !important;
  padding: 24px 18px 22px !important;
}

.harmonika-mode-badge-top {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 7px 16px !important;
  border-radius: 999px !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.6px !important;
  color: #e0f2fe !important;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.22), rgba(139, 92, 246, 0.22)) !important;
  border: 1px solid rgba(186, 230, 253, 0.38) !important;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.2) !important;
  margin-bottom: 12px !important;
}

#modeScreenTitle {
  font-size: 20px !important;
  font-weight: 900 !important;
  background: linear-gradient(90deg, #ffffff, #bae6fd, #e9d5ff) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  margin-bottom: 8px !important;
}

.harmonika-games-circles-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 28px !important;
  padding: 22px 8px 24px !important;
}

.harmonika-game-circle {
  position: relative !important;
  width: 158px !important;
  height: 158px !important;
  border-radius: 50% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 16px 14px !important;
  text-align: center !important;
  color: #ffffff !important;
  cursor: pointer !important;
  border: 2px solid rgba(255, 255, 255, 0.42) !important;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease !important;
  overflow: visible !important;
  animation: none !important;
}

/* حلقة خارجية أولى تدور مع عقارب الساعة */
.harmonika-game-circle::before {
  content: "" !important;
  position: absolute !important;
  inset: -9px !important;
  border-radius: 50% !important;
  border: 2px dashed rgba(125, 211, 252, 0.58) !important;
  animation: none !important;
  pointer-events: none !important;
}

/* حلقة داخلية لامعة مع انعكاس زجاجي علوي */
.harmonika-game-circle::after {
  content: "" !important;
  position: absolute !important;
  inset: 5px !important;
  border-radius: 50% !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.03) 42%, transparent 65%) !important;
  box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.42) !important;
  pointer-events: none !important;
}

.harmonika-game-circle:nth-child(odd) {
  background: radial-gradient(circle at 30% 22%, #38bdf8 0%, #2563eb 52%, #09132b 100%) !important;
  box-shadow:
    0 18px 36px rgba(37, 99, 235, 0.52),
    0 0 28px rgba(56, 189, 248, 0.32) !important;
}

.harmonika-game-circle:nth-child(even) {
  background: radial-gradient(circle at 30% 22%, #e879f9 0%, #7e22ce 54%, #1e093d 100%) !important;
  box-shadow:
    0 18px 36px rgba(126, 34, 206, 0.52),
    0 0 28px rgba(232, 121, 249, 0.3) !important;
}

.harmonika-game-circle:nth-child(3n) {
  background: radial-gradient(circle at 30% 22%, #fde047 0%, #d97706 54%, #2d1203 100%) !important;
  box-shadow:
    0 18px 36px rgba(217, 119, 6, 0.48),
    0 0 28px rgba(253, 224, 71, 0.28) !important;
}

.harmonika-game-circle:hover,
.harmonika-game-circle:active {
  transform: translateY(-6px) scale(1.05) !important;
}

.harmonika-circle-kicker {
  position: relative !important;
  z-index: 2 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 2px 9px !important;
  border-radius: 999px !important;
  background: rgba(9, 13, 26, 0.46) !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  color: #fef08a !important;
}

.harmonika-circle-icon-svg {
  position: relative !important;
  z-index: 2 !important;
  width: 24px !important;
  height: 24px !important;
  color: #ffffff !important;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4)) !important;
}

.harmonika-circle-title {
  position: relative !important;
  z-index: 2 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6) !important;
}

.harmonika-circle-cta {
  position: relative !important;
  z-index: 2 !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  color: #e0f2fe !important;
  opacity: 0.92 !important;
}

/* === HARMONIKA GLOWING PROGRESS + RED PULSE TIMER + FX BURSTS === */
@keyframes harmonikaTimerDangerPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.75), inset 0 0 8px rgba(254, 202, 202, 0.35);
  }
  50% {
    transform: scale(1.12);
    box-shadow: 0 0 28px rgba(239, 68, 68, 1), inset 0 0 12px rgba(255, 255, 255, 0.45);
  }
}

@keyframes harmonikaProgressGlow {
  0%, 100% {
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.65), 0 0 26px rgba(16, 185, 129, 0.35);
  }
  50% {
    box-shadow: 0 0 22px rgba(52, 211, 153, 0.85), 0 0 34px rgba(250, 204, 21, 0.45);
  }
}

@keyframes harmonikaEmojiPopFloat {
  0% {
    opacity: 0;
    transform: translate(-50%, -20%) scale(0.4) rotate(-12deg);
  }
  20% {
    opacity: 1;
    transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, -40px))) scale(1.25) rotate(var(--rot, 10deg));
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx2, 0px)), calc(-50% + var(--dy2, -130px))) scale(0.85) rotate(var(--rot2, -14deg));
  }
}

@keyframes harmonikaWrongShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

.harmonika-quiz-meter-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 16px !important;
}

.harmonika-quiz-meter {
  flex: 1 !important;
  height: 13px !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, 0.9) !important;
  border: 1px solid rgba(148, 163, 184, 0.32) !important;
  overflow: hidden !important;
  margin-bottom: 0 !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.55) !important;
}

.harmonika-quiz-meter-fill {
  height: 100% !important;
  width: 5% !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #06b6d4 0%, #38bdf8 45%, #10b981 80%, #facc15 100%) !important;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1) !important;
  animation: none !important;
}

.harmonika-quiz-meter-pct {
  font-size: 12px !important;
  font-weight: 900 !important;
  color: #7dd3fc !important;
  min-width: 42px !important;
  text-align: center !important;
}

#quizTimer.harmonika-timer-danger {
  background: linear-gradient(135deg, #dc2626, #991b1b) !important;
  border-color: #fca5a5 !important;
  color: #ffffff !important;
  animation: none !important;
}

.harmonika-wrong-shake {
  animation: none !important;
}

.harmonika-fx-layer {
  position: fixed !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: 9999 !important;
  overflow: hidden !important;
}

.harmonika-burst-emoji {
  position: fixed !important;
  font-size: 28px !important;
  line-height: 1 !important;
  user-select: none !important;
  pointer-events: none !important;
  animation: none !important;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45)) !important;
}

/* === HARMONIKA EXACT QUIZ FEEDBACK (NO ROYAL CARD, RED WRONG + GREEN CORRECT, HARMONIKA FIX CARD ON WRONG) === */
@keyframes harmonikaFixCardPop {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#optionsContainer button.harmonika-opt-correct,
#optionsContainer .option-btn.harmonika-opt-correct,
#optionsContainer [class*="option" i].harmonika-opt-correct {
  border: 2px solid #10b981 !important;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.34), rgba(6, 78, 59, 0.65)) !important;
  color: #ecfdf5 !important;
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.55), inset 0 0 10px rgba(110, 231, 183, 0.25) !important;
}

#optionsContainer button.harmonika-opt-wrong,
#optionsContainer .option-btn.harmonika-opt-wrong,
#optionsContainer [class*="option" i].harmonika-opt-wrong {
  border: 2px solid #ef4444 !important;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.38), rgba(153, 27, 27, 0.72)) !important;
  color: #fef2f2 !important;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.68), inset 0 0 10px rgba(252, 165, 165, 0.28) !important;
}

.harmonika-fix-card {
  margin: 12px 0 14px !important;
  padding: 15px 16px !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg, rgba(24, 18, 8, 0.96), rgba(45, 31, 10, 0.94)) !important;
  border: 1.5px solid rgba(250, 204, 21, 0.75) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(250, 204, 21, 0.22) !important;
  animation: none !important;
}

.harmonika-fix-card-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 8px !important;
  padding-bottom: 6px !important;
  border-bottom: 1px solid rgba(250, 204, 21, 0.25) !important;
}

.harmonika-fix-card-title {
  font-size: 13.5px !important;
  font-weight: 900 !important;
  color: #fde047 !important;
  letter-spacing: 0.4px !important;
}

.harmonika-fix-card-tag {
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 2px 9px !important;
  border-radius: 999px !important;
  background: rgba(250, 204, 21, 0.16) !important;
  color: #fef08a !important;
}

.harmonika-fix-card-body {
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.65 !important;
  color: #f8fafc !important;
}

/* === HARMONIKA CENTER POPUP FIX CARD + CLEAN AUTO-DISMISS ON NEXT === */
@keyframes harmonikaModalPopIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -44%) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.harmonika-fix-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(2, 6, 23, 0.65) !important;
  backdrop-filter: blur(4px) !important;
  z-index: 9990 !important;
}

.harmonika-fix-card {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(90vw, 400px) !important;
  max-height: 75vh !important;
  overflow-y: auto !important;
  z-index: 9995 !important;
  margin: 0 !important;
  padding: 18px 18px 16px !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at top, rgba(250, 204, 21, 0.2), transparent 65%),
    linear-gradient(155deg, rgba(16, 13, 8, 0.98), rgba(34, 24, 9, 0.97)) !important;
  border: 2px solid rgba(250, 204, 21, 0.82) !important;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.82),
    0 0 32px rgba(250, 204, 21, 0.28) !important;
  animation: none !important;
}

.harmonika-fix-card-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-bottom: 10px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid rgba(250, 204, 21, 0.28) !important;
}

.harmonika-fix-card-title {
  font-size: 14px !important;
  font-weight: 900 !important;
  color: #fde047 !important;
}

.harmonika-fix-card-close {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(254, 240, 138, 0.45) !important;
  background: rgba(239, 68, 68, 0.22) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.harmonika-fix-card-body {
  font-size: 14.5px !important;
  font-weight: 700 !important;
  line-height: 1.68 !important;
  color: #f8fafc !important;
  margin-bottom: 14px !important;
}

.harmonika-fix-card-ok {
  width: 100% !important;
  padding: 10px 14px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(250, 204, 21, 0.55) !important;
  background: linear-gradient(90deg, rgba(217, 119, 6, 0.85), rgba(202, 138, 4, 0.9)) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

/* === HARMONIKA LEGENDARY PROGRESS BAR + RED PULSE TIMER + QUIZ BACK BTN === */
@keyframes harmonikaBarAura {
  0%, 100% {
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.7), 0 0 30px rgba(168, 85, 247, 0.35);
  }
  50% {
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.85), 0 0 38px rgba(250, 204, 21, 0.45);
  }
}

@keyframes harmonikaBarSweep {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes harmonikaRedCountdownPulse {
  0%, 100% {
    transform: scale(1);
    background: linear-gradient(135deg, #ef4444, #991b1b) !important;
    border-color: #fecaca !important;
    color: #ffffff !important;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.85), inset 0 0 8px rgba(255, 255, 255, 0.35) !important;
  }
  50% {
    transform: scale(1.14);
    background: linear-gradient(135deg, #f87171, #dc2626) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    box-shadow: 0 0 30px rgba(239, 68, 68, 1), inset 0 0 12px rgba(255, 255, 255, 0.55) !important;
  }
}

#quizScreen .harmonika-quiz-topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}

#quizScreen .harmonika-quiz-back-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 9px 15px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(125, 211, 252, 0.38) !important;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.95)) !important;
  color: #f8fafc !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35) !important;
}

#quizScreen .harmonika-legendary-progress-box {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 12px !important;
  margin-bottom: 16px !important;
  border-radius: 18px !important;
  background: rgba(9, 15, 32, 0.88) !important;
  border: 1px solid rgba(125, 211, 252, 0.28) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

#quizScreen .harmonika-legendary-track {
  position: relative !important;
  flex: 1 !important;
  height: 14px !important;
  border-radius: 999px !important;
  background: rgba(30, 41, 59, 0.85) !important;
  overflow: hidden !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
}

#quizScreen .harmonika-legendary-fill {
  height: 100% !important;
  
  border-radius: 999px !important;
  background: linear-gradient(90deg, #38bdf8, #a855f7, #10b981, #facc15, #38bdf8) !important;
  background-size: 200% 100% !important;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
  
}

#quizScreen .harmonika-legendary-percent {
  min-width: 48px !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  text-align: center !important;
  font-size: 12.5px !important;
  font-weight: 900 !important;
  color: #fef08a !important;
  background: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid rgba(250, 204, 21, 0.45) !important;
}

#quizTimer.harmonika-timer-countdown-red {
  animation: none !important;
}

/* === HARMONIKA FINAL RED TIMER COLOR + LIVE PROGRESS BAR FIX === */
#quizTimer.harmonika-timer-countdown-red,
#quizScreen #quizTimer.harmonika-timer-countdown-red {
  background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
  background-color: #dc2626 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: #fca5a5 !important;
  animation: none !important;
}

#quizScreen .harmonika-legendary-track {
  position: relative !important;
  flex: 1 !important;
  height: 14px !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, 0.92) !important;
  overflow: hidden !important;
  border: 1px solid rgba(125, 211, 252, 0.3) !important;
}

#quizScreen .harmonika-legendary-fill {
  height: 100% !important;
  min-width: 3% !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #06b6d4, #3b82f6, #a855f7, #10b981, #facc15) !important;
  transition: width 0.35s ease !important;
}

/* === HARMONIKA STEADY PROGRESS + END LEADERBOARD + ROYAL CRIMSON-GOLD CARD === */
@keyframes harmonikaCrimsonGoldGlow {
  0%, 100% {
    box-shadow:
      0 24px 65px rgba(0, 0, 0, 0.82),
      0 0 32px rgba(250, 204, 21, 0.45),
      inset 0 0 22px rgba(127, 29, 29, 0.55);
  }
  50% {
    box-shadow:
      0 28px 75px rgba(0, 0, 0, 0.9),
      0 0 46px rgba(251, 191, 36, 0.72),
      inset 0 0 30px rgba(153, 27, 27, 0.72);
  }
}

.harmonika-end-panel {
  margin-top: 16px !important;
  padding: 20px 18px !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.16), transparent 65%),
    linear-gradient(155deg, rgba(10, 17, 36, 0.96), rgba(18, 28, 56, 0.95)) !important;
  border: 1.5px solid rgba(125, 211, 252, 0.35) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65) !important;
  text-align: center !important;
}

.harmonika-end-badge {
  display: inline-block !important;
  padding: 5px 14px !important;
  border-radius: 999px !important;
  font-size: 11.5px !important;
  font-weight: 900 !important;
  color: #fde047 !important;
  background: rgba(250, 204, 21, 0.14) !important;
  border: 1px solid rgba(250, 204, 21, 0.35) !important;
  margin-bottom: 10px !important;
}

.harmonika-end-stats {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 14px 0 16px !important;
}

.harmonika-end-stat-box {
  padding: 12px 10px !important;
  border-radius: 16px !important;
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
}

.harmonika-end-stat-label {
  font-size: 12px !important;
  color: #94a3b8 !important;
  font-weight: 700 !important;
  margin-bottom: 4px !important;
}

.harmonika-end-stat-val {
  font-size: 17px !important;
  font-weight: 900 !important;
  color: #f8fafc !important;
}

.harmonika-end-stat-val.record {
  color: #fde047 !important;
}

.harmonika-end-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.harmonika-end-btn {
  width: 100% !important;
  padding: 12px 16px !important;
  border-radius: 15px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

.harmonika-end-btn.copy-btn {
  background: linear-gradient(90deg, #0284c7, #2563eb) !important;
}

.harmonika-end-btn.retry-btn {
  background: linear-gradient(90deg, #ea580c, #db2777) !important;
}

.harmonika-end-btn.tg-btn {
  background: linear-gradient(90deg, #0ea5e9, #14b8a6) !important;
}

.harmonika-royal-crimson-card {
  margin-bottom: 16px !important;
  padding: 20px 18px !important;
  border-radius: 24px !important;
  text-align: center !important;
  background:
    radial-gradient(circle at top, rgba(250, 204, 21, 0.24), transparent 62%),
    linear-gradient(155deg, rgba(82, 14, 28, 0.97), rgba(42, 7, 15, 0.98)) !important;
  border: 2px solid rgba(250, 204, 21, 0.9) !important;
  animation: none !important;
}

.harmonika-royal-crimson-crown {
  font-size: 28px !important;
  margin-bottom: 6px !important;
}

.harmonika-royal-crimson-title {
  font-size: 18px !important;
  font-weight: 900 !important;
  background: linear-gradient(90deg, #fef08a, #f59e0b, #fffbeb) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  margin-bottom: 10px !important;
}

.harmonika-royal-crimson-msg {
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.78 !important;
  color: #fef2f2 !important;
  padding: 12px 14px !important;
  border-radius: 16px !important;
  background: rgba(24, 4, 9, 0.55) !important;
  border: 1px solid rgba(250, 204, 21, 0.35) !important;
}

.harmonika-tg-modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(2, 6, 23, 0.72) !important;
  backdrop-filter: blur(5px) !important;
  z-index: 10010 !important;
}

.harmonika-tg-modal {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(92vw, 390px) !important;
  max-height: 78vh !important;
  overflow-y: auto !important;
  z-index: 10015 !important;
  padding: 18px !important;
  border-radius: 22px !important;
  background: linear-gradient(155deg, rgba(11, 19, 40, 0.98), rgba(22, 34, 68, 0.98)) !important;
  border: 1.5px solid rgba(125, 211, 252, 0.45) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8) !important;
  color: #f8fafc !important;
}

.harmonika-tg-link-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 12px !important;
  margin-bottom: 8px !important;
  border-radius: 13px !important;
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
  color: #e0f2fe !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

/* === HARMONIKA CYLINDRICAL PULSING STEADY PROGRESS BAR === */
@keyframes harmonikaCylindricalPulse {
  0%, 100% {
    filter: brightness(1) saturate(1.08);
    box-shadow:
      inset 0 2px 4px rgba(255, 255, 255, 0.45),
      inset 0 -3px 6px rgba(15, 23, 42, 0.55),
      0 0 14px rgba(56, 189, 248, 0.65),
      0 0 24px rgba(168, 85, 247, 0.35);
  }
  50% {
    filter: brightness(1.16) saturate(1.25);
    box-shadow:
      inset 0 2px 6px rgba(255, 255, 255, 0.65),
      inset 0 -3px 6px rgba(15, 23, 42, 0.5),
      0 0 22px rgba(16, 185, 129, 0.8),
      0 0 34px rgba(250, 204, 21, 0.45);
  }
}

#quizScreen .harmonika-legendary-progress-box {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 13px !important;
  margin-bottom: 16px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(7, 12, 26, 0.98)) !important;
  border: 1px solid rgba(125, 211, 252, 0.32) !important;
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.7),
    0 6px 18px rgba(0, 0, 0, 0.45) !important;
}

#quizScreen .harmonika-legendary-track {
  position: relative !important;
  flex: 1 !important;
  height: 16px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.92), rgba(30, 41, 59, 0.72)) !important;
  overflow: hidden !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.65) !important;
}

#quizScreen .harmonika-legendary-fill {
  position: relative !important;
  height: 100% !important;
  min-width: 4% !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #06b6d4, #3b82f6, #a855f7, #10b981, #facc15) !important;
  transition: width 0.32s ease-out !important;
  animation: none !important;
}

/* لمعة أسطوانية علوية ثابتة تمنح الشريط شكلاً أسطوانياً دائرياً فخماً */
#quizScreen .harmonika-legendary-fill::after {
  content: "" !important;
  position: absolute !important;
  top: 1px !important;
  left: 4px !important;
  right: 4px !important;
  height: 45% !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.04)) !important;
  pointer-events: none !important;
}

#quizScreen .harmonika-legendary-percent {
  min-width: 50px !important;
  padding: 4px 9px !important;
  border-radius: 999px !important;
  text-align: center !important;
  font-size: 12.5px !important;
  font-weight: 900 !important;
  color: #fef08a !important;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98)) !important;
  border: 1px solid rgba(250, 204, 21, 0.45) !important;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.25) !important;
}

/* === HARMONIKA FINAL CYLINDRICAL LOCKED PROGRESS BAR === */
@keyframes harmonikaCylindricalGlow {
  0%, 100% {
    filter: brightness(1) saturate(1.1);
    box-shadow:
      inset 0 2px 4px rgba(255, 255, 255, 0.5),
      inset 0 -3px 6px rgba(15, 23, 42, 0.6),
      0 0 14px rgba(56, 189, 248, 0.7),
      0 0 24px rgba(168, 85, 247, 0.35);
  }
  50% {
    filter: brightness(1.18) saturate(1.28);
    box-shadow:
      inset 0 2px 6px rgba(255, 255, 255, 0.7),
      inset 0 -3px 6px rgba(15, 23, 42, 0.5),
      0 0 22px rgba(16, 185, 129, 0.85),
      0 0 36px rgba(250, 204, 21, 0.5);
  }
}

#quizScreen .harmonika-legendary-progress-box {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 13px !important;
  margin-bottom: 16px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(7, 12, 26, 0.98)) !important;
  border: 1px solid rgba(125, 211, 252, 0.35) !important;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.7), 0 6px 18px rgba(0, 0, 0, 0.45) !important;
}

#quizScreen .harmonika-legendary-track {
  position: relative !important;
  flex: 1 !important;
  height: 16px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.94), rgba(30, 41, 59, 0.75)) !important;
  overflow: hidden !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.7) !important;
}

#quizScreen .harmonika-legendary-fill {
  position: relative !important;
  height: 100% !important;
  min-width: 4% !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #06b6d4, #3b82f6, #a855f7, #10b981, #facc15) !important;
  transition: width 0.28s ease-out !important;
  animation: none !important;
}

#quizScreen .harmonika-legendary-fill::after {
  content: "" !important;
  position: absolute !important;
  top: 1px !important;
  left: 4px !important;
  right: 4px !important;
  height: 45% !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.05)) !important;
  pointer-events: none !important;
}

#quizScreen .harmonika-legendary-percent {
  min-width: 50px !important;
  padding: 4px 9px !important;
  border-radius: 999px !important;
  text-align: center !important;
  font-size: 12.5px !important;
  font-weight: 900 !important;
  color: #fef08a !important;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98)) !important;
  border: 1px solid rgba(250, 204, 21, 0.45) !important;
}

/* === HARMONIKA CENTERED END SUMMARY + PRO SVG ICONS + TELEGRAM LOGO === */
.harmonika-center-result-stage {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 62vh !important;
  padding: 12px 4px !important;
}

.harmonika-final-summary-card {
  width: 100% !important;
  max-width: 440px !important;
  margin: 0 auto !important;
  padding: 22px 16px !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent 65%),
    linear-gradient(155deg, rgba(10, 18, 38, 0.98), rgba(18, 30, 62, 0.97)) !important;
  border: 1.5px solid rgba(125, 211, 252, 0.42) !important;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.75) !important;
  text-align: center !important;
}

.harmonika-final-summary-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 5px 14px !important;
  border-radius: 999px !important;
  font-size: 11.5px !important;
  font-weight: 900 !important;
  color: #fde047 !important;
  background: rgba(250, 204, 21, 0.14) !important;
  border: 1px solid rgba(250, 204, 21, 0.35) !important;
  margin-bottom: 10px !important;
}

.harmonika-final-summary-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 14px 0 16px !important;
}

.harmonika-final-summary-box {
  padding: 12px 10px !important;
  border-radius: 16px !important;
  background: rgba(15, 23, 42, 0.9) !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
}

.harmonika-final-summary-label {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  margin-bottom: 4px !important;
}

.harmonika-final-summary-value {
  font-size: 18px !important;
  font-weight: 900 !important;
  color: #f8fafc !important;
  direction: ltr !important;
}

.harmonika-final-summary-value.best {
  color: #fde047 !important;
}

.harmonika-final-summary-btns {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.harmonika-final-action-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  width: 100% !important;
  padding: 12px 15px !important;
  border-radius: 15px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  cursor: pointer !important;
}

.harmonika-final-action-btn.share {
  background: linear-gradient(90deg, #0284c7, #2563eb) !important;
}

.harmonika-final-action-btn.channels {
  background: linear-gradient(90deg, #0088cc, #2aabee) !important;
}

.harmonika-final-action-btn.retry {
  background: linear-gradient(90deg, #ea580c, #db2777) !important;
}

.harmonika-show-result-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: linear-gradient(90deg, #eab308, #f59e0b) !important;
  color: #090d16 !important;
  font-weight: 900 !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 11px 18px !important;
  cursor: pointer !important;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4) !important;
}

.harmonika-tg-channels-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(2, 6, 23, 0.74) !important;
  z-index: 10020 !important;
}

.harmonika-tg-channels-modal {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(92vw, 390px) !important;
  max-height: 78vh !important;
  overflow-y: auto !important;
  z-index: 10025 !important;
  padding: 18px !important;
  border-radius: 22px !important;
  background: linear-gradient(155deg, rgba(11, 19, 40, 0.98), rgba(22, 34, 68, 0.98)) !important;
  border: 1.5px solid rgba(125, 211, 252, 0.45) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85) !important;
  color: #f8fafc !important;
}

.harmonika-tg-channel-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 12px !important;
  margin-bottom: 8px !important;
  border-radius: 13px !important;
  background: rgba(15, 23, 42, 0.88) !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
  color: #e0f2fe !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

/* === HARMONIKA STEADY NON-BOUNCING PROGRESS LOCK === */
#quizScreen .harmonika-legendary-progress-box .harmonika-legendary-fill,
#quizScreen .harmonika-legendary-progress-box .progress-fill,
#quizScreen .harmonika-legendary-progress-box [class*="fill"] {
  transition: width 0.25s ease !important;
  animation: none !important;
}

/* === HARMONIKA STOP PROGRESS PULSE COMPLETELY === */
#quizScreen .harmonika-legendary-progress-box,
#quizScreen .harmonika-legendary-progress-box *,
#quizScreen .harmonika-legendary-track,
#quizScreen .harmonika-legendary-fill,
#quizScreen .harmonika-legendary-percent {
  animation: none !important;
  transition: width 0.2s ease !important;
  transform: none !important;
}

/* === HARMONIKA FIX PULSE + OPTION EMOJI SPACING === */
#quizScreen .harmonika-legendary-progress-box,
#quizScreen .harmonika-legendary-progress-box *,
#quizScreen .harmonika-legendary-progress-box *::before,
#quizScreen .harmonika-legendary-progress-box *::after {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

#optionsContainer button,
#optionsContainer .option-btn,
#optionsContainer [class*="option"] {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  line-height: 1.5 !important;
}

#optionsContainer button::before,
#optionsContainer button::after {
  position: static !important;
  transform: none !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

/* === HARMONIKA FINAL LOCK PROGRESS & CLEAN ANSWER MARKS === */
#quizScreen .harmonika-legendary-progress-box,
#quizScreen .harmonika-legendary-progress-box *,
#quizScreen .harmonika-legendary-progress-box *::before,
#quizScreen .harmonika-legendary-progress-box *::after {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

#optionsContainer button,
#optionsContainer .option-btn {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

.harmonika-mark-badge {
  flex-shrink: 0 !important;
  font-weight: 900 !important;
  font-size: 15px !important;
  line-height: 1 !important;
  margin-inline-start: 8px !important;
}

/* === HARMONIKA CLEAN OPTION BURSTS & STEADY BAR === */
#quizScreen .harmonika-legendary-progress-box,
#quizScreen .harmonika-legendary-progress-box *,
#quizScreen .harmonika-legendary-progress-box *::before,
#quizScreen .harmonika-legendary-progress-box *::after {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

#quizScreen [class*="burst"],
#quizScreen [class*="sparkle"],
#quizScreen [class*="confetti"],
#quizScreen [class*="fx-"],
#quizScreen .harmonika-fx {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* === HARMONIKA STEADY BAR & CLEAN BURST PARTICLES === */
#quizScreen .harmonika-legendary-progress-box,
#quizScreen .harmonika-legendary-progress-box *,
#quizScreen .harmonika-legendary-progress-box *::before,
#quizScreen .harmonika-legendary-progress-box *::after {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

#quizScreen [class*="burst"],
#quizScreen [class*="sparkle"] {
  pointer-events: none !important;
}

/* === HARMONIKA STEADY BAR & SAFE BURST LAYER === */
#quizScreen .harmonika-legendary-progress-box,
#quizScreen .harmonika-legendary-progress-box *,
#quizScreen .harmonika-legendary-progress-box *::before,
#quizScreen .harmonika-legendary-progress-box *::after {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

#quizScreen [class*="burst"],
#quizScreen [class*="sparkle"] {
  pointer-events: none !important;
  z-index: 2 !important;
}

/* === HARMONIKA SMOOTH EMOJI BURST ANIMATION === */
@keyframes harmonikaEmojiBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5) rotate(0deg);
  }
  25% {
    opacity: 1;
    transform: translate(calc(-50% + var(--dx, 40px)), calc(-50% + var(--dy, -40px))) scale(1.15) rotate(var(--rot, 15deg));
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx2, 95px)), calc(-50% + var(--dy2, -95px))) scale(0.75) rotate(var(--rot2, 35deg));
  }
}

.harmonika-burst-emoji {
  position: fixed !important;
  font-size: 26px !important;
  line-height: 1 !important;
  user-select: none !important;
  pointer-events: none !important;
  z-index: 9999 !important;
  transform: translate(-50%, -50%) !important;
  animation: harmonikaEmojiBurst 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45)) !important;
}

/* === HARMONIKA MULTI-PARTICLE CLEAR EMOJI BURST === */
.harmonika-burst-emoji {
  position: fixed !important;
  font-size: 24px !important;
  line-height: 1 !important;
  user-select: none !important;
  pointer-events: none !important;
  z-index: 9999 !important;
  will-change: transform, opacity !important;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.45)) !important;
}
