/* RunMoney UI revision: single-language balanced offer card + footer language picker */
.lang-select {
  max-width: 166px;
  width: min(166px, 43vw);
  padding: 10px 28px 10px 12px;
  border: 1px solid #f0d6c3;
  border-radius: 12px;
  background: #fffaf5;
  color: #57351f;
  font: 700 12px/1.2 var(--body);
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(100, 54, 25, .06);
}
.lang-select:focus { outline: 2px solid rgba(255, 122, 26, .35); outline-offset: 2px; }
.footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: 26px;
  padding: 22px 22px 40px;
}
.footer-row {
  display: flex;
  width: 100%;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  direction: ltr;
}
.footer-row .footer-brand { flex: 0 0 auto; }
.footer-row #languageSelect { margin-left: auto; }
.footer > p { width: 100%; margin: 0; text-align: left; }
[dir="rtl"] .footer-row #languageSelect { direction: rtl; text-align: right; }
.hero-phones.gift-phones { isolation: isolate; min-height: 470px; }
.hero-phones.gift-phones .phone-front { width: min(270px, 26vw); }
.hero-phones.gift-phones .phone-back { width: min(230px, 23vw); }
.gift-front-screen {
  display: flex;
  min-height: 400px;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 17px 14px 13px;
  background: linear-gradient(180deg, #fffaf5 0%, #fff2e7 100%);
}
.gift-front-brand {
  display: flex;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: #382116;
  font: 800 13px/1.2 var(--display);
  direction: ltr;
}
.gift-front-brand img { width: 30px; height: 30px; object-fit: cover; border-radius: 8px; }
.gift-front-title {
  flex: 0 0 auto;
  margin: 0 0 13px;
  color: #21160f;
  font: 800 17px/1.23 var(--display);
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
}
.gift-offer-list {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
}
.gift-offer {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 13px 11px;
  border: 1px solid #f3d9c4;
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 6px 16px rgba(116, 62, 29, .07);
}
.gift-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(145deg,#ff963f,#f26405);
  color: #fff;
  font: 800 14px/1 var(--display);
}
.gift-offer strong {
  display: block;
  color: #2c1d15;
  font: 700 12.5px/1.38 var(--body);
  overflow-wrap: anywhere;
}
.gift-front-cta {
  display: flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  margin-top: 13px;
  padding: 10px 12px;
  border: 1px solid rgba(227, 95, 9, .25);
  border-radius: 999px;
  background: linear-gradient(135deg,#ff8a27,#ef6506);
  box-shadow: 0 8px 18px rgba(223, 98, 14, .2);
  color: #fff;
  text-align: center;
  font: 800 12px/1.28 var(--body);
  overflow-wrap: anywhere;
}
.gift-front-screen > .sc-nav { flex: 0 0 auto; margin-top: 13px; }
.gift-back-screen {
  display: flex;
  min-height: 350px;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: 16px;
  padding: 20px 12px 12px;
  background: radial-gradient(circle at 50% 22%, #fff 0, #fff5ea 43%, #ffe4cc 100%);
  text-align: center;
}
.gift-back-orb {
  display: flex;
  width: 98px;
  height: 98px;
  align-items: baseline;
  justify-content: center;
  margin-top: 12px;
  border-radius: 50%;
  background: linear-gradient(145deg,#ffad5c,#f26708);
  box-shadow: 0 12px 22px rgba(226,99,17,.24);
  color: #fff;
  font: 800 32px/98px var(--display);
}
.gift-back-orb small { font: 800 13px/1 var(--display); }
.gift-back-star {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 13px rgba(116,62,29,.08);
  color: #f27b1e;
  font-size: 27px;
}
[dir="rtl"] .gift-offer { direction: rtl; text-align: right; }
[dir="rtl"] .gift-front-title, [dir="rtl"] .gift-offer-copy { text-align: right; }
[dir="rtl"] .gift-front-cta { direction: rtl; }
@media (max-width: 560px) {
  .footer { margin-top: 20px; padding: 20px 16px 32px; }
  .footer-row { gap: 10px; }
  .footer-row .lang-select { width: min(158px, 43vw); max-width: 158px; padding: 9px 24px 9px 10px; font-size: 11.5px; }
  .hero-phones.gift-phones { min-height: 430px; }
  .hero-phones.gift-phones .phone-front { width: min(258px, 66vw); }
  .hero-phones.gift-phones .phone-back { width: min(222px, 58vw); }
  .gift-front-screen { min-height: 400px; padding: 16px 13px 12px; }
  .gift-front-brand { min-height: 32px; margin-bottom: 11px; font-size: 12px; }
  .gift-front-brand img { width: 28px; height: 28px; }
  .gift-front-title { margin-bottom: 11px; font-size: 16px; }
  .gift-offer-list { gap: 11px; }
  .gift-offer { grid-template-columns: 30px minmax(0, 1fr); gap: 9px; padding: 12px 10px; }
  .gift-number { width: 28px; height: 28px; font-size: 13px; }
  .gift-offer strong { font-size: 12px; line-height: 1.36; }
  .gift-front-cta { min-height: 43px; margin-top: 11px; font-size: 11.5px; }
  .gift-front-screen > .sc-nav { margin-top: 11px; }
  .gift-back-screen { min-height: 340px; }
}

/* Visual refinement: increase offer legibility and remove dead space. */
.gift-front-title { font-size: 19px; margin-bottom: 12px; }
.gift-offer-list { justify-content: space-evenly; gap: 14px; }
.gift-offer { padding: 15px 12px; }
.gift-number { width: 32px; height: 32px; font-size: 15px; }
.gift-offer strong { font-size: 14px; line-height: 1.38; }
.gift-front-cta { min-height: 48px; margin-top: 12px; font-size: 14px; }
@media (max-width: 560px) {
  .gift-front-title { font-size: 18px; margin-bottom: 11px; }
  .gift-offer-list { gap: 13px; }
  .gift-offer { grid-template-columns: 32px minmax(0, 1fr); padding: 14px 11px; }
  .gift-number { width: 30px; height: 30px; font-size: 14px; }
  .gift-offer strong { font-size: 13.5px; line-height: 1.38; }
  .gift-front-cta { min-height: 47px; margin-top: 11px; font-size: 13px; }
}

/* Compact-phone safeguard for longer localized copy. */
@media (max-width: 360px) {
  .hero-phones.gift-phones { min-height: 420px; }
  .hero-phones.gift-phones .phone-front { width: min(258px, 72vw); }
  .gift-front-screen { padding: 14px 11px 10px; }
  .gift-front-brand { min-height: 30px; margin-bottom: 8px; font-size: 11.5px; }
  .gift-front-title { margin-bottom: 8px; font-size: 17px; line-height: 1.2; }
  .gift-offer-list { justify-content: space-evenly; gap: 9px; }
  .gift-offer { grid-template-columns: 28px minmax(0, 1fr); gap: 8px; padding: 10px 9px; }
  .gift-number { width: 28px; height: 28px; font-size: 13px; }
  .gift-offer strong { font-size: 12.5px; line-height: 1.3; }
  .gift-front-cta { min-height: 42px; margin-top: 9px; padding: 8px 10px; font-size: 12px; }
  .gift-front-screen > .sc-nav { margin-top: 8px; }
}
