/* Trang hướng dẫn cài app Lazo trên iPhone (/lazo/download-ios)
   Dựng lại từ NHTQ-PowerSearch: src/components/organisms/lazo/download-ios.tsx */

.dli-page {
  padding-top: 70px;
  padding-bottom: 100px; }
  @media screen and (max-width: 768px) {
    .dli-page {
      padding-top: 60px; } }

.dli,
.dli *,
.dli *::before,
.dli *::after {
  box-sizing: border-box; }

.dli {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 0;
  font-size: 16px;
  line-height: 24px;
  color: #101828; }
  .dli b {
    font-weight: 700; }
  .dli a,
  .dli a:hover {
    text-decoration: none; }
  @media (min-width: 768px) {
    .dli {
      gap: 32px;
      padding: 40px 0; } }

/* ---------- Nút ---------- */
.dli-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  line-height: 24px;
  transition: opacity 0.15s, background-color 0.15s; }
  .dli-btn:hover {
    opacity: 0.9; }
  .dli-btn img {
    display: block;
    width: 20px;
    height: 20px; }

.dli-btn--dark,
.dli-btn--dark:hover {
  background: #101828;
  color: #fff; }
  .dli-btn--dark img {
    filter: brightness(0) invert(1); }

.dli-btn--light,
.dli-btn--light:hover {
  background: #fff;
  color: #be1e2d; }
  .dli-btn--light img {
    filter: brightness(0); }

.dli-btn--pri,
.dli-btn--pri:hover {
  background: #be1e2d;
  color: #fff; }

.dli-btn--outline,
.dli-btn--outline:hover {
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-weight: 600;
  color: #fff; }
  .dli-btn--outline:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1); }

/* ---------- Hero ---------- */
.dli-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #be1e2d 0%, #d6352b 55%, #ef6a2c 100%);
  padding: 32px 20px;
  color: #fff; }
  @media (min-width: 768px) {
    .dli-hero {
      padding: 48px; } }

.dli-hero_circle {
  pointer-events: none;
  position: absolute;
  border-radius: 50%; }
  .dli-hero_circle--1 {
    right: -90px;
    top: -90px;
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.1); }
  .dli-hero_circle--2 {
    bottom: -120px;
    left: 30%;
    width: 240px;
    height: 240px;
    background: rgba(255, 255, 255, 0.05); }

.dli-hero_inner {
  position: relative;
  display: grid;
  align-items: center;
  gap: 32px; }
  @media (min-width: 1024px) {
    .dli-hero_inner {
      grid-template-columns: 1.15fr 1fr; } }

.dli-hero_badge {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600; }

.dli-hero_title {
  margin-top: 16px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2; }
  @media (min-width: 768px) {
    .dli-hero_title {
      font-size: 40px; } }

.dli-hero_desc {
  margin-top: 12px;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85); }
  @media (min-width: 768px) {
    .dli-hero_desc {
      font-size: 16px; } }

.dli-hero_actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px; }

.dli-hero_steps {
  display: grid;
  gap: 10px; }

.dli-hero_step,
.dli-hero_step:hover {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  padding: 14px;
  color: #fff;
  transition: background-color 0.15s; }
  .dli-hero_step:hover {
    background: rgba(255, 255, 255, 0.2); }

.dli-hero_num {
  display: flex;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  color: #be1e2d; }

.dli-hero_step-title {
  display: block;
  font-size: 15px;
  font-weight: 700; }

.dli-hero_step-short {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75); }

/* ---------- Các bước ---------- */
.dli-step {
  scroll-margin-top: 100px;
  border-radius: 24px;
  border: 1px solid #eaecf0;
  background: #fff;
  padding: 20px; }
  @media (min-width: 768px) {
    .dli-step {
      padding: 40px; } }

.dli-step_grid {
  display: grid;
  align-items: center;
  gap: 28px; }
  @media (min-width: 768px) {
    .dli-step_grid {
      grid-template-columns: 1fr auto;
      gap: 48px; } }

.dli-step_head {
  display: flex;
  align-items: center;
  gap: 12px; }

.dli-step_num {
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #be1e2d;
  font-size: 18px;
  font-weight: 700;
  color: #fff; }

.dli-step_label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #be1e2d; }

.dli-step_title {
  margin-top: 16px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: #101828; }
  @media (min-width: 768px) {
    .dli-step_title {
      font-size: 26px; } }

.dli-step_desc {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: #667085; }

.dli-step_items {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px; }

.dli-step_item {
  display: flex;
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: #1d2939; }

.dli-step_item-num {
  margin-top: 2px;
  display: flex;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f8f2eb;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #be1e2d; }

.dli-step_extra {
  margin-top: 24px; }
  .dli-step_extra > * + * {
    margin-top: 12px; }

.dli-step_visual {
  border-radius: 20px;
  background: #f8f2eb;
  padding: 28px 24px; }
  @media (min-width: 768px) {
    .dli-step_visual {
      padding: 28px 40px; } }

.dli-note {
  border-radius: 12px;
  background: #fef6e7;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.6;
  color: #7a4a00; }

/* ---------- Hình minh hoạ ---------- */
.dli-phone {
  position: relative;
  margin: 0 auto;
  width: 220px;
  height: 460px;
  flex-shrink: 0;
  border-radius: 40px;
  background: #101828;
  padding: 7px;
  box-shadow: 0 24px 48px -12px rgba(16, 24, 40, 0.35); }

.dli-phone_screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 33px;
  background: #f2f2f7; }
  .dli-phone_screen img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: top; }

.dli-phone_notch {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 64px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #101828; }

/* Chấm nhấp nháy chỉ vị trí cần bấm, vị trí đặt bằng style left/top */
.dli-tap {
  pointer-events: none;
  position: absolute;
  display: flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%); }
  .dli-tap::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(190, 30, 45, 0.6);
    animation: dli-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }
  .dli-tap::after {
    content: '';
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #be1e2d; }

@keyframes dli-ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0; } }

.dli-qr {
  margin: 0 auto;
  width: 240px;
  text-align: center; }

.dli-qr_box {
  border-radius: 20px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 24px 48px -12px rgba(16, 24, 40, 0.2); }
  .dli-qr_box img {
    display: block;
    width: 100%;
    aspect-ratio: 1; }

.dli-qr_title {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #101828; }

.dli-qr_note {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: #667085; }

/* ---------- Tài khoản Expo ---------- */
.dli-account {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #eaecf0;
  background: #fcfcfd; }

.dli-account_row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px; }
  .dli-account_row + .dli-account_row {
    border-top: 1px solid #eaecf0; }

.dli-account_info {
  min-width: 0;
  flex: 1; }

.dli-account_label {
  font-size: 12px;
  color: #667085; }

.dli-account_value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  color: #101828; }

.dli-account_empty {
  font-size: 14px;
  font-weight: 500;
  color: #be1e2d; }

.dli-account_toggle,
.dli-account_copy {
  cursor: pointer;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 24px; }

.dli-account_toggle {
  border: 0;
  background: transparent;
  padding: 6px 10px;
  color: #667085; }
  .dli-account_toggle:hover {
    background: #f2f4f7; }

.dli-account_copy {
  border: 1px solid #d0d5dd;
  background: #fff;
  padding: 6px 12px;
  color: #344054; }
  .dli-account_copy:hover {
    border-color: #be1e2d;
    color: #be1e2d; }

/* ---------- Mẹo & FAQ ---------- */
.dli-section_title {
  font-size: 22px;
  font-weight: 700;
  color: #101828; }
  @media (min-width: 768px) {
    .dli-section_title {
      font-size: 26px; } }

.dli-tips {
  border-radius: 24px;
  background: #f8f2eb;
  padding: 20px; }
  @media (min-width: 768px) {
    .dli-tips {
      padding: 40px; } }

.dli-tips_grid {
  margin-top: 20px;
  display: grid;
  gap: 12px; }
  @media (min-width: 768px) {
    .dli-tips_grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px; } }

.dli-tip {
  border-radius: 16px;
  background: #fff;
  padding: 18px; }

.dli-tip_title {
  font-size: 16px;
  font-weight: 700;
  color: #101828; }

.dli-tip_desc {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: #667085; }

.dli-faq {
  border-radius: 24px;
  border: 1px solid #eaecf0;
  background: #fff;
  padding: 20px; }
  @media (min-width: 768px) {
    .dli-faq {
      padding: 40px; } }

.dli-faq_list {
  margin-top: 16px; }

.dli-faq_item {
  padding: 16px 0; }
  .dli-faq_item + .dli-faq_item {
    border-top: 1px solid #eaecf0; }
  .dli-faq_item summary {
    display: flex;
    cursor: pointer;
    list-style: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #101828; }
    .dli-faq_item summary::-webkit-details-marker {
      display: none; }
  .dli-faq_item[open] .dli-faq_icon {
    transform: rotate(45deg); }

.dli-faq_icon {
  display: flex;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f8f2eb;
  font-size: 18px;
  line-height: 1;
  color: #be1e2d;
  transition: transform 0.15s; }

.dli-faq_answer {
  margin-top: 10px;
  padding-right: 44px;
  font-size: 15px;
  line-height: 1.6;
  color: #667085; }

/* ---------- Thông báo sao chép ---------- */
.dli-toast {
  pointer-events: none;
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 9999;
  transform: translate(-50%, 16px);
  opacity: 0;
  border-radius: 10px;
  background: #101828;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  transition: opacity 0.2s, transform 0.2s; }
  .dli-toast.is-show {
    transform: translate(-50%, 0);
    opacity: 1; }
  .dli-toast.is-error {
    background: #be1e2d; }
