/* ALI TRADE product UI v3: compact signals, profile and education flows. */
:root {
  --omerta-gold: #ffc62f;
  --omerta-gold-soft: #ffe08a;
  --omerta-gold-pale: #fff4c8;
  --omerta-panel: rgba(18, 12, 3, 0.96);
  --omerta-panel-deep: rgba(8, 6, 2, 0.99);
  --omerta-border: rgba(255, 190, 32, 0.24);
  --omerta-border-strong: rgba(255, 190, 32, 0.48);
  --omerta-muted: rgba(255, 232, 170, 0.66);
}

.app-shell {
  padding-bottom: calc(104px + var(--app-safe-bottom)) !important;
  scroll-padding-bottom: calc(104px + var(--app-safe-bottom));
}

.screen {
  gap: 8px !important;
}

/* Signals: one composed hero, a two-column market console and a full-width Forex row. */
@keyframes omerta-signal-beacon {
  0%,
  100% {
    opacity: 0.36;
    transform: scale(0.94);
    filter: drop-shadow(0 0 10px rgba(255, 206, 47, 0.24));
  }

  50% {
    opacity: 0.66;
    transform: scale(1.06);
    filter: drop-shadow(0 0 22px rgba(255, 206, 47, 0.48));
  }
}

.hero-panel {
  min-height: 142px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 190, 32, 0.22) !important;
  border-radius: 16px !important;
  padding: 14px !important;
  background:
    radial-gradient(circle at 86% 40%, rgba(255, 190, 32, 0.11), transparent 31%),
    linear-gradient(135deg, rgba(26, 17, 3, 0.985), rgba(8, 6, 2, 0.995)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 243, 196, 0.03),
    0 14px 38px rgba(0, 0, 0, 0.24),
    0 0 28px rgba(255, 190, 32, 0.025) !important;
}

.hero-panel::before {
  top: 0 !important;
  right: 14% !important;
  bottom: auto !important;
  left: 14% !important;
  width: auto !important;
  height: 1px !important;
  border: 0 !important;
  background: linear-gradient(90deg, transparent, var(--omerta-gold), transparent) !important;
  box-shadow: 0 0 12px rgba(255, 190, 32, 0.34) !important;
}

.hero-panel::after {
  inset: 34px 27px auto auto !important;
  width: 66px !important;
  height: 66px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: url("/assets/bootstrap-icons/broadcast-pin.svg?v=20260824-omerta-gold-v2") center / contain no-repeat !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
  clip-path: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  opacity: 0.28;
  transform-origin: center;
  animation: omerta-signal-beacon 2.6s ease-in-out infinite;
  pointer-events: none;
  will-change: transform, opacity, filter;
}

.hero-panel > div {
  position: relative !important;
  z-index: 2 !important;
  max-width: 72% !important;
}

.hero-panel h1 {
  max-width: 205px !important;
  margin: 0 !important;
  color: var(--omerta-gold-pale) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(23px, 6.5vw, 28px) !important;
  line-height: 1.02 !important;
}

.hero-direction-title {
  max-width: 215px !important;
  margin: 12px 0 0 !important;
  color: #fff8e2 !important;
  font-family: "Manrope", "Segoe UI", sans-serif !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.025em !important;
}

.hero-panel .hero-direction-lead {
  max-width: 225px !important;
  margin-top: 4px !important;
  color: var(--omerta-muted) !important;
  font-size: 9.5px !important;
  line-height: 1.32 !important;
}

.market-section-heading {
  display: none !important;
}

.screen > .metric-row {
  margin-top: 10px !important;
}

.metric-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.metric-row > .metric.market-card,
.metric-row > .metric.market-card:nth-child(2) {
  grid-column: auto !important;
  min-height: 116px !important;
  align-content: end !important;
  gap: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--market-border) !important;
  border-radius: 14px !important;
  padding: 50px 27px 10px 10px !important;
  background:
    linear-gradient(112deg, color-mix(in srgb, var(--market-glow), transparent 18%), transparent 47%),
    linear-gradient(145deg, rgba(26, 17, 3, 0.98), rgba(8, 6, 2, 0.995)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 199, 0.025),
    0 10px 24px rgba(0, 0, 0, 0.2) !important;
}

.metric-row > .market-card > div:last-child {
  display: grid !important;
  min-width: 0 !important;
  align-content: end !important;
}

.metric-row > .market-card::before {
  content: "" !important;
  top: 10px !important;
  left: 10px !important;
  width: 35px !important;
  height: 35px !important;
  border: 1px solid var(--market-border) !important;
  border-radius: 10px !important;
  background-color: color-mix(in srgb, var(--market-accent) 7%, transparent) !important;
  background-image: var(--market-icon) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 24px 24px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 0 18px var(--market-glow) !important;
  transform: none !important;
}

.metric-row > .market-card::after {
  top: auto !important;
  right: 10px !important;
  bottom: 10px !important;
  color: var(--market-accent) !important;
  font-size: 24px !important;
  transform: none !important;
}

.metric-row > .market-card .market-kicker {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 3 !important;
  margin: 0 !important;
}

.metric-row > .market-card .market-badge {
  border-radius: 6px !important;
  padding: 3px 6px !important;
  font-size: 8px !important;
  line-height: 1 !important;
}

.metric-row > .market-card strong {
  min-height: 0 !important;
  color: #fff8e9 !important;
  font-size: 16px !important;
  line-height: 1.05 !important;
}

.metric-row > .market-card p {
  display: -webkit-box !important;
  max-width: 100% !important;
  margin-top: 3px !important;
  overflow: hidden !important;
  color: rgba(255, 229, 164, 0.7) !important;
  font-size: 8.5px !important;
  line-height: 1.28 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

.metric-row > .metric.market-card:nth-child(1) {
  grid-column: 1 / -1 !important;
  min-height: 78px !important;
  align-content: center !important;
  padding: 9px 38px 9px 58px !important;
}

.metric-row > .market-card:nth-child(1)::before {
  top: 50% !important;
  left: 11px !important;
  transform: translateY(-50%) !important;
}

.metric-row > .market-card:nth-child(1)::after {
  top: 50% !important;
  right: 12px !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
}

.metric-row > .market-card:nth-child(1) .market-kicker {
  top: 8px !important;
  right: 34px !important;
}

.metric-row > .market-card:nth-child(1) p {
  display: block !important;
  font-size: 9px !important;
}

.market-card:nth-child(1) {
  --market-icon: url("/assets/bootstrap-icons/currency-exchange.svg");
}

.market-card:nth-child(2) {
  --market-icon: url("/assets/bootstrap-icons/clock-history.svg");
}

.market-card:nth-child(3) {
  --market-icon: url("/assets/bootstrap-icons/gem.svg");
}

.market-card:nth-child(4) {
  --market-icon: url("/assets/bootstrap-icons/graph-up-arrow.svg");
}

.market-card:nth-child(5) {
  --market-icon: url("/assets/bootstrap-icons/currency-bitcoin.svg");
}

.empty-signals {
  min-height: 108px !important;
  margin-top: 2px !important;
  opacity: 0.62 !important;
}

.empty-signals .lottie-loader {
  width: min(138px, 38vw) !important;
  filter:
    sepia(0.92)
    saturate(2.2)
    hue-rotate(352deg)
    brightness(0.94)
    contrast(1.08)
    drop-shadow(0 0 13px rgba(255, 190, 32, 0.2)) !important;
}

/* Expiry choice: compact black-and-gold controls consistent with market cards. */
.pair-header .back-button {
  min-height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  border: 1px solid rgba(255, 190, 32, 0.28) !important;
  border-radius: 10px !important;
  padding: 7px 11px !important;
  background: rgba(255, 190, 32, 0.055) !important;
  color: #fff1bc !important;
  box-shadow: inset 0 1px 0 rgba(255, 240, 185, 0.025) !important;
  font-size: 12px !important;
  line-height: 1 !important;
}

.pair-header .back-button::before {
  content: "←";
  color: var(--omerta-gold) !important;
  font-size: 15px;
  line-height: 1;
}

.pair-header .back-button:hover {
  border-color: rgba(255, 214, 92, 0.52) !important;
  background: rgba(255, 190, 32, 0.1) !important;
  transform: translateY(-1px);
}

.expiry-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.expiry-button {
  position: relative !important;
  min-height: 86px !important;
  gap: 4px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 190, 32, 0.28) !important;
  border-radius: 13px !important;
  padding: 13px 34px 11px !important;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 190, 32, 0.09), transparent 34%),
    linear-gradient(145deg, rgba(25, 16, 3, 0.98), rgba(8, 6, 2, 0.995)) !important;
  color: #fff7db !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 242, 194, 0.03),
    0 10px 24px rgba(0, 0, 0, 0.2) !important;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease !important;
}

.expiry-button:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.expiry-button::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 20px;
  height: 20px;
  background: url("/assets/bootstrap-icons/clock-history.svg?v=20260824-omerta-gold-v2") center / contain no-repeat;
  opacity: 0.48;
  filter: drop-shadow(0 0 7px rgba(255, 190, 32, 0.18));
}

.expiry-button::after {
  content: "›" !important;
  position: absolute !important;
  top: 50% !important;
  right: 11px !important;
  bottom: auto !important;
  color: rgba(255, 208, 78, 0.65) !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  transform: translateY(-50%) !important;
}

.expiry-button strong {
  color: var(--omerta-gold-soft) !important;
  font-size: 27px !important;
  line-height: 1 !important;
  text-shadow: 0 0 14px rgba(255, 190, 32, 0.12);
}

.expiry-button span {
  color: rgba(255, 232, 170, 0.64) !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.expiry-button:hover,
.expiry-button:focus-visible {
  border-color: rgba(255, 214, 92, 0.58) !important;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 190, 32, 0.15), transparent 38%),
    linear-gradient(145deg, rgba(30, 19, 3, 0.99), rgba(10, 7, 2, 0.995)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 242, 194, 0.045), 0 12px 28px rgba(0, 0, 0, 0.28), 0 0 18px rgba(255, 190, 32, 0.05) !important;
  transform: translateY(-1px) !important;
}

.expiry-button:active {
  transform: scale(0.985) !important;
}

/* Profile: unified compact cards, clear statistics, VIP and learning blocks. */
.profile-hero,
.profile-language-card,
.profile-stats-card,
.profile-learning-card,
.education-hero,
.education-module-card,
.education-quiz-card {
  border: 1px solid var(--omerta-border) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 190, 32, 0.06), transparent 34%),
    linear-gradient(145deg, var(--omerta-panel), var(--omerta-panel-deep)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 240, 184, 0.026), 0 14px 36px rgba(0, 0, 0, 0.15) !important;
}

.profile-hero {
  padding: 14px !important;
  border-radius: 16px !important;
}

.profile-hero::before {
  background: linear-gradient(90deg, transparent, rgba(255, 190, 32, 0.48), transparent) !important;
}

.profile-main {
  grid-template-columns: 58px minmax(0, 1fr) !important;
  justify-items: stretch !important;
  gap: 12px !important;
  padding: 0 !important;
  text-align: left !important;
}

.profile-avatar {
  width: 58px !important;
  height: 58px !important;
  border: 1px solid rgba(255, 190, 32, 0.56) !important;
  border-radius: 15px !important;
  background: linear-gradient(145deg, rgba(255, 190, 32, 0.14), rgba(20, 13, 2, 0.98)) !important;
  box-shadow: inset 0 0 22px rgba(255, 190, 32, 0.08), 0 0 18px rgba(255, 190, 32, 0.07) !important;
  color: var(--omerta-gold-soft) !important;
  font-size: 22px !important;
}

.profile-name {
  min-width: 0 !important;
  align-content: center !important;
  justify-items: start !important;
  gap: 3px !important;
}

.profile-name .eyebrow {
  color: var(--omerta-gold) !important;
  font-size: 8px !important;
  letter-spacing: 0.14em !important;
}

.profile-name h2 {
  max-width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: #fff9e8 !important;
  font-size: 20px !important;
  line-height: 1.08 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.profile-trader {
  min-height: 29px !important;
  padding: 5px 8px !important;
  border: 1px solid rgba(255, 190, 32, 0.22) !important;
  border-radius: 8px !important;
  background: rgba(255, 190, 32, 0.055) !important;
  color: rgba(255, 232, 170, 0.76) !important;
  font-size: 10px !important;
}

.profile-language-card {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
}

.profile-language-copy {
  gap: 3px !important;
}

.profile-language-copy .eyebrow {
  color: var(--omerta-gold) !important;
  font-size: 8px !important;
}

.profile-language-copy h2 {
  font-size: 16px !important;
  line-height: 1.15 !important;
}

.profile-language-card .header-language-wrap {
  width: 132px !important;
}

.profile-language-card .header-language {
  min-height: 42px !important;
  padding: 8px 10px !important;
  border: 1px solid rgba(255, 190, 32, 0.2) !important;
  border-radius: 11px !important;
  background: rgba(255, 190, 32, 0.045) !important;
}

.profile-stats-card,
.profile-learning-card {
  gap: 10px !important;
  padding: 14px !important;
  border-radius: 16px !important;
}

.profile-stats-card > h2,
.profile-learning-card .section-heading > h2 {
  margin: 0 !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid rgba(255, 190, 32, 0.2) !important;
  color: #fff8e6 !important;
  font-size: 18px !important;
  line-height: 1.15 !important;
}

.profile-stats {
  gap: 8px !important;
}

.profile-stat {
  --profile-accent: #ffd04f;
  min-height: 78px !important;
  gap: 8px !important;
  padding: 10px !important;
  border: 1px solid rgba(255, 190, 32, 0.2) !important;
  border-radius: 12px !important;
  background: linear-gradient(145deg, rgba(32, 20, 3, 0.94), rgba(12, 8, 2, 0.98)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 240, 180, 0.025) !important;
}

.profile-stat:nth-child(2) {
  --profile-accent: #ffae45;
}

.profile-stat:nth-child(3) {
  --profile-accent: #ffe68f;
}

.profile-stat:nth-child(4) {
  --profile-accent: #d8ad57;
}

.profile-stat-head {
  gap: 6px !important;
}

.profile-stat-icon {
  width: 27px !important;
  height: 27px !important;
  border: 1px solid color-mix(in srgb, var(--profile-accent) 36%, transparent) !important;
  border-radius: 8px !important;
  background: color-mix(in srgb, var(--profile-accent) 8%, transparent) !important;
  color: var(--profile-accent) !important;
}

.profile-stat-head span {
  color: rgba(255, 232, 170, 0.62) !important;
  font-size: 9.5px !important;
}

.profile-stat strong {
  color: var(--profile-accent) !important;
  font-size: 22px !important;
  line-height: 1 !important;
}

.vip-channel-card {
  min-height: 78px !important;
  gap: 10px !important;
  padding: 11px 12px !important;
  border: 1px solid rgba(255, 190, 32, 0.34) !important;
  border-radius: 14px !important;
  background:
    radial-gradient(circle at 92% 15%, rgba(255, 190, 32, 0.13), transparent 36%),
    linear-gradient(145deg, rgba(32, 19, 2, 0.98), rgba(10, 7, 2, 0.99)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 238, 170, 0.04), 0 0 26px rgba(255, 190, 32, 0.04) !important;
}

.vip-channel-card::after {
  display: none !important;
}

.vip-channel-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 11px !important;
  background: linear-gradient(135deg, var(--omerta-gold), var(--omerta-gold-soft)) !important;
  box-shadow: 0 0 18px rgba(255, 190, 32, 0.16) !important;
  color: #160e01 !important;
  font-size: 13px !important;
}

.vip-channel-copy {
  gap: 3px !important;
}

.vip-channel-copy strong {
  color: #fff9e8 !important;
  font-size: 15px !important;
}

.vip-channel-copy small {
  color: rgba(255, 232, 170, 0.66) !important;
  font-size: 10px !important;
  line-height: 1.3 !important;
}

.vip-channel-action {
  min-height: 30px !important;
  padding: 6px 9px !important;
  border: 1px solid rgba(255, 190, 32, 0.3) !important;
  border-radius: 8px !important;
  background: rgba(255, 190, 32, 0.08) !important;
  color: var(--omerta-gold-soft) !important;
  font-size: 9.5px !important;
  white-space: nowrap !important;
}

.profile-learning-card .section-heading {
  gap: 5px !important;
  margin: 0 !important;
}

.profile-learning-card .section-heading > p {
  color: var(--omerta-muted) !important;
  font-size: 10.5px !important;
  line-height: 1.35 !important;
}

.profile-learning-metrics,
.profile-learning-achievements {
  gap: 8px !important;
}

.profile-learning-card > h3 {
  margin: 1px 0 0 !important;
  color: #fff8e6 !important;
  font-size: 15px !important;
}

/* Education: the same block rhythm, borders and control language as the other tabs. */
.education-hero {
  gap: 12px !important;
  padding: 14px !important;
  border-radius: 16px !important;
}

.education-hero .section-heading {
  gap: 4px !important;
  margin: 0 !important;
}

.education-hero .section-heading h2 {
  color: #fff8e6 !important;
  font-size: 20px !important;
  line-height: 1.08 !important;
}

.education-hero .section-heading p,
.education-section > .section-heading p {
  color: var(--omerta-muted) !important;
  font-size: 10.5px !important;
  line-height: 1.35 !important;
}

.education-progress {
  gap: 7px !important;
  padding: 10px !important;
  border: 1px solid rgba(255, 190, 32, 0.16) !important;
  border-radius: 11px !important;
  background: rgba(255, 190, 32, 0.035) !important;
}

.education-progress-head {
  color: rgba(255, 232, 170, 0.72) !important;
  font-size: 10px !important;
}

.education-progress-head strong {
  color: var(--omerta-gold-soft) !important;
}

.education-progress-track {
  height: 7px !important;
  border-color: rgba(255, 190, 32, 0.25) !important;
  background: rgba(5, 4, 2, 0.92) !important;
}

.education-stats,
.profile-learning-metrics {
  gap: 8px !important;
}

.education-stat {
  min-height: 62px !important;
  gap: 5px !important;
  padding: 9px !important;
  border: 1px solid rgba(255, 190, 32, 0.18) !important;
  border-radius: 11px !important;
  background: linear-gradient(145deg, rgba(30, 19, 3, 0.92), rgba(10, 7, 2, 0.98)) !important;
}

.education-stat span {
  color: rgba(255, 232, 170, 0.62) !important;
  font-size: 9px !important;
}

.education-stat strong {
  color: var(--omerta-gold-soft) !important;
  font-size: 19px !important;
  line-height: 1 !important;
}

.education-section {
  gap: 8px !important;
}

.education-section > .section-heading {
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end !important;
  gap: 10px !important;
  margin: 4px 2px 0 !important;
  padding: 0 2px 7px !important;
  border-bottom: 1px solid rgba(255, 190, 32, 0.18) !important;
}

.education-section > .section-heading h2 {
  color: #fff8e6 !important;
  font-size: 18px !important;
  line-height: 1.1 !important;
}

.education-modules {
  gap: 8px !important;
}

.education-module-card {
  border-radius: 14px !important;
}

.education-module-card::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 2px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--omerta-gold-soft), rgba(255, 190, 32, 0.18));
  box-shadow: 0 0 12px rgba(255, 190, 32, 0.2);
}

.education-module-card.done {
  border-color: rgba(255, 214, 92, 0.46) !important;
}

.education-module-card.expanded {
  border-color: var(--omerta-border-strong) !important;
}

.education-module-toggle {
  min-height: 76px !important;
  gap: 10px !important;
  padding: 12px 12px 12px 14px !important;
}

.education-module-toggle-main {
  gap: 4px !important;
}

.education-module-toggle-main h3 {
  color: #fff8e8 !important;
  font-size: 15px !important;
  line-height: 1.18 !important;
}

.education-module-kicker {
  color: var(--omerta-gold) !important;
  font-size: 8px !important;
  letter-spacing: 0.13em !important;
}

.education-module-status {
  border-color: rgba(255, 190, 32, 0.2) !important;
  background: rgba(255, 190, 32, 0.065) !important;
  color: var(--omerta-gold-soft) !important;
  padding: 4px 7px !important;
  font-size: 8.5px !important;
}

.education-module-status.passed {
  border-color: rgba(255, 221, 112, 0.38) !important;
  background: rgba(255, 190, 32, 0.1) !important;
  color: #fff0b0 !important;
}

.education-module-toggle-icon {
  width: 32px !important;
  height: 32px !important;
  border-color: rgba(255, 190, 32, 0.26) !important;
  border-radius: 9px !important;
  background: rgba(255, 190, 32, 0.065) !important;
  color: var(--omerta-gold-soft) !important;
}

.education-module-card.expanded .education-module-toggle-icon {
  background: linear-gradient(135deg, var(--omerta-gold), var(--omerta-gold-soft)) !important;
  color: #140d01 !important;
}

.education-module-content {
  gap: 10px !important;
  padding: 0 12px 12px 14px !important;
}

.education-module-content > p {
  color: var(--omerta-muted) !important;
  font-size: 11px !important;
  line-height: 1.42 !important;
}

.education-lessons {
  gap: 7px !important;
}

.education-lesson-item {
  gap: 8px !important;
  border-color: rgba(255, 190, 32, 0.15) !important;
  border-radius: 10px !important;
  background: rgba(7, 5, 2, 0.7) !important;
  padding: 9px !important;
}

.education-lesson-item.done {
  border-color: rgba(255, 214, 92, 0.34) !important;
  background: rgba(255, 190, 32, 0.055) !important;
}

.education-check {
  width: 23px !important;
  height: 23px !important;
  border-color: rgba(255, 190, 32, 0.28) !important;
  border-radius: 7px !important;
  color: var(--omerta-gold) !important;
}

.education-lesson-copy strong {
  color: #fff8e6 !important;
  font-size: 12px !important;
}

.education-lesson-copy span {
  color: var(--omerta-muted) !important;
  font-size: 9.5px !important;
}

.education-lesson-time {
  color: var(--omerta-gold) !important;
  font-size: 8px !important;
  white-space: nowrap !important;
}

.education-lesson-detail {
  gap: 8px !important;
  border-color: rgba(255, 190, 32, 0.17) !important;
  border-radius: 10px !important;
  background: rgba(7, 5, 2, 0.74) !important;
  padding: 10px !important;
}

.education-lesson-detail p,
.education-lesson-detail li {
  color: var(--omerta-muted) !important;
  font-size: 10.5px !important;
  line-height: 1.5 !important;
}

.education-quiz-card {
  gap: 10px !important;
  border-radius: 12px !important;
  padding: 11px !important;
}

.education-quiz-card .section-heading {
  gap: 4px !important;
  margin: 0 !important;
}

.education-quiz-card .section-heading h2 {
  font-size: 16px !important;
}

.education-quiz-summary,
.education-quiz-explain {
  border-color: rgba(255, 190, 32, 0.17) !important;
  border-radius: 9px !important;
  background: rgba(255, 190, 32, 0.055) !important;
  color: var(--omerta-muted) !important;
  font-size: 10px !important;
}

.education-question {
  gap: 8px !important;
  border-top-color: rgba(255, 190, 32, 0.15) !important;
  padding-top: 11px !important;
}

.education-question h3 {
  font-size: 13px !important;
  line-height: 1.3 !important;
}

.education-quiz-label {
  color: var(--omerta-gold) !important;
  font-size: 8px !important;
}

.education-quiz-option {
  min-height: 38px !important;
  border-color: rgba(255, 190, 32, 0.16) !important;
  border-radius: 9px !important;
  background: rgba(8, 6, 2, 0.78) !important;
  color: #fff5d6 !important;
  padding: 8px 10px !important;
  font-size: 11px !important;
}

.education-reset-button,
.education-restart-button {
  min-height: 38px !important;
  border-color: rgba(255, 190, 32, 0.26) !important;
  border-radius: 10px !important;
  background: rgba(255, 190, 32, 0.065) !important;
  color: var(--omerta-gold-soft) !important;
}

.education-course-actions {
  padding-bottom: 0 !important;
}

.education-achievement {
  min-height: 108px !important;
  gap: 5px 8px !important;
  padding: 10px 30px 10px 10px !important;
  border: 1px solid rgba(255, 190, 32, 0.17) !important;
  border-radius: 11px !important;
  background: linear-gradient(145deg, rgba(29, 18, 3, 0.9), rgba(9, 6, 2, 0.98)) !important;
}

.education-achievement .achievement-icon,
.education-achievement-icon {
  width: 34px !important;
  height: 34px !important;
  border: 1px solid rgba(255, 190, 32, 0.22) !important;
  border-radius: 9px !important;
  background: rgba(255, 190, 32, 0.06) !important;
  color: var(--omerta-gold-soft) !important;
}

.education-achievement strong {
  color: #fff8e6 !important;
  font-size: 13px !important;
  line-height: 1.08 !important;
}

.education-achievement p,
.education-achievement small,
.education-achievement .achievement-status {
  color: rgba(255, 232, 170, 0.58) !important;
  font-size: 9px !important;
  line-height: 1.3 !important;
}

.achievement-info-button {
  top: 8px !important;
  right: 8px !important;
  width: 24px !important;
  height: 24px !important;
  border: 1px solid rgba(255, 190, 32, 0.18) !important;
  background: rgba(8, 6, 2, 0.88) !important;
  color: var(--omerta-gold-soft) !important;
}

/* Navigation is identical on all three screens. */
.bottom-nav,
body.desktop .bottom-nav {
  right: calc(var(--safe-right) + 10px) !important;
  bottom: calc(var(--app-safe-bottom) + 8px) !important;
  left: calc(var(--safe-left) + 10px) !important;
  width: min(440px, calc(100vw - 20px)) !important;
  max-width: 440px !important;
  min-height: 56px !important;
  margin: 0 auto !important;
  gap: 4px !important;
  border: 1px solid rgba(255, 190, 32, 0.36) !important;
  border-radius: 16px !important;
  padding: 4px !important;
  background: rgba(12, 9, 3, 0.94) !important;
  box-shadow: inset 0 1px 0 rgba(255, 235, 167, 0.04), 0 18px 48px rgba(0, 0, 0, 0.66) !important;
  transform: none !important;
  backdrop-filter: blur(20px) saturate(120%);
}

.bottom-nav .nav-button {
  min-height: 46px !important;
  gap: 2px !important;
  border-radius: 12px !important;
  font-size: 10px !important;
}

.bottom-nav .nav-button svg {
  width: 17px !important;
  height: 17px !important;
}

.bottom-nav .nav-button.active {
  border-color: rgba(255, 190, 32, 0.46) !important;
  background: rgba(255, 190, 32, 0.1) !important;
  color: var(--omerta-gold) !important;
  box-shadow: inset 0 0 18px rgba(255, 190, 32, 0.05), 0 0 20px rgba(255, 190, 32, 0.07) !important;
}

/* ALI TRADE brightness pass v7: closer to the saturated black-and-gold reference. */
:root {
  --omerta-gold: #ffd21f;
  --omerta-gold-soft: #ffe477;
  --omerta-gold-pale: #fff7d2;
  --omerta-border: rgba(255, 205, 42, 0.31);
  --omerta-border-strong: rgba(255, 210, 55, 0.58);
  --omerta-muted: rgba(255, 235, 178, 0.74);
}

body {
  background:
    radial-gradient(circle at 12% -8%, rgba(255, 202, 25, 0.2), transparent 34%),
    radial-gradient(circle at 92% 18%, rgba(255, 220, 94, 0.13), transparent 31%),
    linear-gradient(160deg, #0b0802 0%, #1c1304 48%, #0a0702 100%) !important;
}

.app-shell,
.shell {
  background:
    radial-gradient(circle at 50% -4%, rgba(255, 200, 24, 0.14), transparent 31%),
    radial-gradient(circle at 100% 30%, rgba(255, 178, 0, 0.05), transparent 38%),
    linear-gradient(180deg, rgba(13, 9, 2, 0.985), rgba(8, 6, 2, 0.995)) !important;
}

.topbar {
  border-color: rgba(255, 208, 48, 0.25) !important;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 209, 40, 0.13), transparent 42%),
    linear-gradient(105deg, rgba(24, 16, 2, 0.99), rgba(8, 6, 2, 0.995) 58%, rgba(27, 17, 2, 0.99)) !important;
  box-shadow: 0 10px 28px rgba(255, 183, 0, 0.045) !important;
}

.brand::after {
  background: linear-gradient(180deg, #fffce8 0%, #ffe66f 38%, #ffc400 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  filter: drop-shadow(0 2px 0 rgba(72, 43, 0, 0.86)) drop-shadow(0 0 16px rgba(255, 202, 20, 0.34)) !important;
}

.brand-logo-img {
  filter: brightness(1.12) saturate(1.18) drop-shadow(0 0 16px rgba(255, 206, 38, 0.5)) !important;
}

.hero-panel {
  border-color: rgba(255, 207, 43, 0.38) !important;
  background:
    radial-gradient(circle at 86% 40%, rgba(255, 204, 31, 0.19), transparent 33%),
    linear-gradient(135deg, rgba(32, 21, 3, 0.99), rgba(10, 7, 2, 0.995)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 247, 210, 0.045),
    0 14px 38px rgba(0, 0, 0, 0.25),
    0 0 30px rgba(255, 190, 20, 0.055) !important;
}

.hero-panel h1,
.hero-direction-title {
  text-shadow: 0 0 16px rgba(255, 204, 38, 0.12) !important;
}

.hero-panel .hero-direction-lead {
  color: rgba(255, 236, 181, 0.78) !important;
}

.metric.market-card,
.metric.market-card:nth-child(1),
.metric.market-card:nth-child(2),
.metric.market-card:nth-child(3),
.metric.market-card:nth-child(4),
.metric.market-card:nth-child(5) {
  --market-accent: #ffd21f !important;
  --market-border: rgba(255, 205, 39, 0.47) !important;
  --market-glow: rgba(255, 179, 0, 0.16) !important;
}

.metric-row > .metric.market-card,
.metric-row > .metric.market-card:nth-child(2) {
  background:
    radial-gradient(circle at 4% 5%, rgba(255, 205, 35, 0.1), transparent 36%),
    linear-gradient(145deg, rgba(29, 19, 3, 0.99), rgba(9, 6, 2, 0.997)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 205, 0.04),
    0 10px 24px rgba(0, 0, 0, 0.23),
    0 0 18px rgba(255, 190, 18, 0.035) !important;
}

.metric-row > .market-card strong {
  color: #fffbe9 !important;
  text-shadow: 0 0 11px rgba(255, 211, 60, 0.08);
}

.metric-row > .market-card p {
  color: rgba(255, 235, 179, 0.76) !important;
}

.market-card .market-badge,
.status-pill,
.tag,
.access-badge {
  border-color: rgba(255, 211, 52, 0.35) !important;
  background: rgba(255, 196, 20, 0.1) !important;
  color: #ffe989 !important;
}

.profile-hero,
.profile-language-card,
.profile-stats-card,
.profile-learning-card,
.education-hero,
.education-module-card,
.education-quiz-card {
  border-color: rgba(255, 205, 42, 0.3) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 202, 28, 0.105), transparent 36%),
    linear-gradient(145deg, rgba(25, 16, 3, 0.98), rgba(9, 6, 2, 0.99)) !important;
}

.profile-stat,
.education-stat,
.education-achievement {
  border-color: rgba(255, 205, 42, 0.26) !important;
  background: linear-gradient(145deg, rgba(35, 22, 3, 0.95), rgba(11, 7, 2, 0.99)) !important;
}

.expiry-button {
  border-color: rgba(255, 207, 43, 0.4) !important;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 207, 35, 0.15), transparent 37%),
    linear-gradient(145deg, rgba(31, 20, 3, 0.99), rgba(9, 6, 2, 0.997)) !important;
}

.expiry-button strong,
.education-stat strong,
.profile-stat strong {
  text-shadow: 0 0 14px rgba(255, 204, 35, 0.16);
}

.empty-signals .lottie-loader {
  filter:
    sepia(0.92)
    saturate(2.5)
    hue-rotate(352deg)
    brightness(1.08)
    contrast(1.08)
    drop-shadow(0 0 16px rgba(255, 201, 28, 0.3)) !important;
}

.bottom-nav,
body.desktop .bottom-nav {
  border-color: rgba(255, 205, 40, 0.5) !important;
  background: rgba(16, 11, 2, 0.96) !important;
  box-shadow: inset 0 1px 0 rgba(255, 239, 177, 0.055), 0 18px 48px rgba(0, 0, 0, 0.66), 0 0 22px rgba(255, 190, 20, 0.045) !important;
}

.bottom-nav .nav-button.active {
  border-color: rgba(255, 213, 58, 0.62) !important;
  background: rgba(255, 198, 20, 0.15) !important;
  color: #ffdc3b !important;
  box-shadow: inset 0 0 20px rgba(255, 204, 35, 0.075), 0 0 22px rgba(255, 190, 20, 0.1) !important;
}

@media (prefers-reduced-motion: reduce) {
  .hero-panel::after {
    animation: none !important;
    opacity: 0.36 !important;
    transform: none !important;
    filter: drop-shadow(0 0 13px rgba(255, 190, 32, 0.22));
  }
}

@media (max-width: 380px) {
  .hero-panel {
    min-height: 138px !important;
    padding: 13px !important;
  }

  .hero-panel::after {
    right: 17px !important;
    width: 60px !important;
    height: 60px !important;
  }

  .hero-direction-title {
    margin-top: 10px !important;
    font-size: 15px !important;
  }

  .hero-panel .hero-direction-lead {
    max-width: 205px !important;
    font-size: 8.7px !important;
  }

  .metric-row > .metric.market-card,
  .metric-row > .metric.market-card:nth-child(2) {
    min-height: 112px !important;
    padding-right: 24px !important;
  }

  .profile-language-card {
    padding: 11px 12px !important;
  }

  .profile-language-card .header-language-wrap {
    width: 120px !important;
  }

  .profile-language-copy h2 {
    font-size: 15px !important;
  }

  .vip-channel-card {
    grid-template-columns: 40px minmax(0, 1fr) auto !important;
    padding: 10px !important;
  }

  .vip-channel-icon {
    width: 40px !important;
    height: 40px !important;
  }

  .vip-channel-copy small {
    font-size: 9px !important;
  }

  .vip-channel-action {
    padding-right: 7px !important;
    padding-left: 7px !important;
    font-size: 9px !important;
  }
}

/* Exact-reference ALI TRADE lockup: candle O + the original MERTA artwork. */
.topbar .brand,
.state-logo .brand {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  min-height: 56px !important;
  padding: 0 54px !important;
}

.state-logo .brand {
  min-height: 56px !important;
  padding: 0 !important;
}

.topbar .brand::after,
.state-logo .brand::after {
  content: none !important;
  display: none !important;
}

.topbar .brand-reference-o,
.state-logo .brand-reference-o,
.topbar .brand-reference-merta,
.state-logo .brand-reference-merta {
  position: relative;
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
  pointer-events: none;
}

.topbar .brand-reference-o,
.state-logo .brand-reference-o {
  width: 52px;
  height: 54px;
  margin-right: -5px;
  overflow: visible;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(201, 150, 34, 0.28));
}

.topbar .brand-reference-merta,
.state-logo .brand-reference-merta {
  width: 132px;
  height: 34px;
}

@media (max-width: 360px) {
  .topbar .brand {
    gap: 0 !important;
    padding: 0 48px !important;
  }

  .topbar .brand-reference-o {
    width: 48px;
    height: 50px;
    margin-right: -5px;
  }

  .topbar .brand-reference-merta {
    width: 122px;
    height: 32px;
  }
}
