/* Shared mobile design language derived from the Khatm app reference —
   يُطبَّق الآن على كل أحجام الشاشات (مو بس الجوال)، عشان يكون نفس التصميم
   تمامًا على سطح المكتب بدل تصميم "mobile-shell" الأساسي القديم. */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap') screen;
@media screen {
  :root {
    --bg: #F7F4EF;
    --panel: #fff;
    --panel-soft: #FFFFFF;
    --text: #1D3557;
    --muted: #5B6475;
    --line: #E4DED3;
    --primary: #1D3557;
    --primary-dark: #0F1F35;
    --primary-light: #F7F4EF;
    --grad-start: #1D3557;
    --grad-end: #1D3557;
    --accent: #F4A261;
    --accent-dark: #A0521A;
    --accent-light: #FAE7D4;
    --radius: 12px;
    --radius-lg: 18px;
    --shadow: none;
    --shadow-md: none;
  }

  html { background: var(--bg); }
  body { background: var(--bg) !important; color: var(--text); overflow-x: hidden; font-family: 'IBM Plex Sans Arabic', 'Thmanyah', Tahoma, sans-serif; }

  .mobile-shell,
  .app-shell {
    width: min(100%, 430px);
    max-width: 430px;
    margin-inline: auto;
    background: var(--bg);
  }

  .topbar,
  .sub-topbar,
  .app-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 62px;
    background: #fff !important;
    border-bottom: 1px solid var(--line) !important;
    box-shadow: none !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .topbar-inner { width: 100%; min-height: 62px; padding-inline: 17px; }
  .app-topbar { display: flex; align-items: center; justify-content: space-between; padding-inline: 17px; }
  .brand { gap: 10px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
  .brand span,
  .d-sidebar-brand > span:last-child,
  .nr-sidebar-brand > span:last-child {
    background: none;
    color: var(--text);
    -webkit-text-fill-color: currentColor;
    font-family: 'IBM Plex Sans Arabic', 'Thmanyah', Tahoma, sans-serif;
    font-size: 17px;
  }
  .logout-btn,
  .d-logout-btn {
    color: var(--primary) !important;
    background: var(--accent-light) !important;
    border: 1px solid #f3dec6 !important;
    border-radius: 10px !important;
    font-weight: 800 !important;
    padding: 7px 15px !important;
  }
  .app-notif-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary) !important;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
  }

  .sub-topbar { display: flex; align-items: center; gap: 12px; padding-inline: 16px; }
  .sub-back-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line) !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: var(--text) !important;
  }
  .sub-topbar-title,
  .toolbar h1,
  .panel-title,
  .form-card-title,
  .verify-title {
    color: var(--text);
    font-family: 'IBM Plex Sans Arabic', 'Thmanyah', Tahoma, sans-serif;
    letter-spacing: -.2px;
  }
  .sub-topbar-title { font-size: 17px; font-weight: 800; }

  .page,
  .sub-content {
    width: 100%;
    max-width: 430px;
    margin-inline: auto;
    padding: 18px 16px 104px;
  }
  .toolbar { gap: 12px; margin-bottom: 16px; }
  .toolbar h1 { font-size: 22px; line-height: 1.45; }

  .panel,
  .form-card,
  .verify-card,
  .notif-card,
  .req-card,
  .account-box,
  .d-profile-card {
    border: 1px solid var(--line) !important;
    border-radius: 14px !important;
    background: #fff;
    box-shadow: none !important;
  }
  .panel:hover { box-shadow: none !important; }
  .panel-header {
    border-color: var(--line) !important;
    border-radius: 14px 14px 0 0;
    background: var(--bg) !important;
  }
  .panel-body { padding: 18px; }
  .panel-title { font-size: 18px; font-weight: 800; }
  .panel-subtitle { color: var(--muted); }

  .field input,
  .field select,
  .field textarea,
  .f-input,
  .code-digit,
  .pay-discount-form input {
    border: 1px solid var(--line) !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: var(--text);
    min-height: 48px;
  }
  .field input:focus,
  .field select:focus,
  .field textarea:focus,
  .f-input:focus,
  .code-digit:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(244, 162, 97, .18) !important;
  }
  .button,
  button.button,
  .btn-main,
  .btn-verify,
  .pay-btn {
    min-height: 48px;
    border-radius: 10px !important;
    font-weight: 800;
  }
  .button-primary,
  .btn-main,
  .btn-verify {
    color: var(--primary) !important;
    background: var(--accent) !important;
    box-shadow: none;
  }
  .button-secondary {
    color: var(--primary-dark) !important;
    background: var(--bg) !important;
    border-color: var(--line) !important;
  }
  .pay-btn,
  .pay-btn-free {
    background: var(--accent) !important;
    color: var(--primary) !important;
    box-shadow: none !important;
  }

  .g-bottom-nav {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    min-height: 80px;
    transform: none !important;
    padding: 0 !important;
    border: 0 !important;
    border-top: 1px solid var(--line) !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: flex !important;
    justify-content: center;
  }
  .g-bn-inner {
    width: 100%;
    max-width: 430px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0 8px max(14px, env(safe-area-inset-bottom));
  }
  .g-bn-item {
    position: relative;
    min-height: 60px;
    gap: 4px;
    padding: 9px 4px !important;
    border-radius: 0 !important;
    color: var(--muted);
  }
  .g-bn-item svg { width: 21px; height: 21px; }
  .g-bn-item span { font-size: 10.5px; line-height: 1.2; font-weight: 700; }
  .g-bn-item.active {
    color: var(--primary) !important;
    background: transparent !important;
  }
  .g-bn-item.active::before { position: absolute; top: 0; left: 50%; width: 22px; height: 3px; background: var(--accent); content: ''; transform: translateX(-50%); }

  /* Signed-out landing and login */
  .m-hero {
    margin: 16px 16px 0;
    border-radius: 14px;
    padding: 30px 20px 25px;
    background: var(--primary) !important;
    box-shadow: none;
  }
  .m-hero-anim { display: none !important; }
  .m-hero h1 {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: 'IBM Plex Sans Arabic', 'Thmanyah', Tahoma, sans-serif;
    font-size: 22px;
    line-height: 1.55;
    text-shadow: none;
  }
  .m-stats { border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 13px 7px; }
  .m-auth-card { padding: 18px 16px 0; }
  .m-visa-banner { border-radius: 14px; }
  .m-visa-cta,
  .btn-outline.btn-request-accent {
    background: var(--accent) !important;
    color: var(--primary) !important;
    box-shadow: none !important;
  }
  .m-why-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff !important;
    box-shadow: var(--shadow);
  }
  .m-tab.active { color: var(--primary); box-shadow: none; }
  .m-input-wrap input {
    border-color: var(--line) !important;
    border-radius: 10px !important;
    background: #fff !important;
  }
  .m-input-wrap input:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(244, 162, 97, .18) !important;
  }
  .m-why-title { font-family: 'IBM Plex Sans Arabic', 'Thmanyah', Tahoma, sans-serif; }
  .m-lang-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line) !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--text) !important;
  }
  .m-sheet { border-radius: 14px 14px 0 0 !important; }

  /* Dashboard cards, account panel, and order flow */
  .home-hero {
    margin: 0;
    padding: 17px 18px 14px;
    color: var(--text);
    background: transparent !important;
    box-shadow: none;
  }
  .home-hero::before,
  .hero-anim { display: none !important; }
  .home-hero .greeting { color: var(--muted); opacity: 1; font-size: 12px; letter-spacing: 0; }
  .home-hero h1 { color: var(--text); font: 800 21px/1.45 'IBM Plex Sans Arabic', 'Thmanyah', Tahoma, sans-serif; text-shadow: none; }
  .home-hero .subtitle { color: var(--muted); opacity: 1; margin: 4px 0 16px; }
  .home-hero .hero-stats { display: none; }
  .hero-stats,
  .d-hero-stats {
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    box-shadow: none;
    backdrop-filter: none;
  }
  .hero-stat-num { color: var(--text); }
  .hero-stat-lbl { color: var(--muted); }
  .hero-stat-sep { background: var(--line); }
  .action-alert,
  .d-action-alert,
  .inline-draft-card,
  .draft-resume-card,
  .new-request-card,
  .d-action-card {
    border-radius: 14px !important;
    box-shadow: none;
  }
  .req-card { margin-bottom: 11px; overflow: hidden; border-radius: 14px !important; }
  .req-card-accent { border-radius: 0 14px 14px 0; background: var(--accent) !important; }
  .account-hero-strip {
    border-radius: 14px;
    margin: 16px 16px 18px;
    background: var(--primary) !important;
  }
  .account-menu { gap: 9px; }
  .menu-item { border-radius: 12px !important; }
  .notif-list { gap: 11px; }
  .notif-card { padding: 15px; }
  .account-section { padding: 16px 16px 20px; }
  .account-hero-strip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 2px 12px;
    padding: 15px;
    margin: 0;
    text-align: right;
  }
  .account-avatar {
    grid-row: 1 / span 3;
    width: 58px;
    height: 58px;
    border-radius: 12px;
    margin: 0;
    font-size: 22px;
  }
  .account-name { font-size: 16px; }
  .account-phone,
  .account-email { font-size: 11.5px; }
  .account-menu { margin-top: 0; }
  .filter-bar { gap: 7px; padding-inline: 16px; overflow-x: auto; }
  .filter-btn {
    flex: 0 0 auto;
    border: 1px solid var(--line) !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: var(--muted) !important;
  }
  .filter-btn.active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
  }
  .recent-list .req-card:first-child {
    color: #fff;
    background: var(--primary) !important;
    border-color: transparent !important;
  }
  .recent-list .req-card:first-child .req-card-id,
  .recent-list .req-card:first-child .req-card-country,
  .recent-list .req-card:first-child .req-card-info,
  .recent-list .req-card:first-child .req-card-country-icon svg,
  .recent-list .req-card:first-child .req-card-arrow svg { color: #fff !important; }
  .recent-list .req-card:first-child .req-card-id,
  .recent-list .req-card:first-child .req-card-country-icon,
  .recent-list .req-card:first-child .req-card-arrow { background: rgba(255,255,255,.14) !important; }
  .recent-list .req-card:first-child .req-card-footer { border-color: rgba(255,255,255,.2); }

  /* Home uses the active order as the first card below the greeting. */
  #panel_home.tab-panel { display: none; }
  #panel_home.tab-panel.active {
    display: flex;
    flex-direction: column;
  }
  #panel_home > .home-hero { order: 0; }
  #panel_home > .recent-section { order: 1; padding: 5px 16px 4px; }
  #panel_home > .action-alert { order: 2; margin: 10px 16px 0; }
  #panel_home > .inline-draft-card { order: 3; margin: 10px 16px 0; }
  #panel_home > .home-services { order: 4; }
  .recent-header { margin-bottom: 10px; }
  .recent-title,
  .home-section-heading h2 { color: var(--text); font-size: 16px; font-weight: 800; }
  .recent-all-btn { color: var(--primary); background: var(--accent-light); }
  .home-services { padding: 16px 16px 22px; }
  .home-section-heading { margin: 0 0 10px; }
  .home-section-heading h2 { margin: 0; font-family: 'IBM Plex Sans Arabic', 'Thmanyah', Tahoma, sans-serif; }
  .home-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .home-service-grid .new-request-card {
    min-width: 0;
    min-height: 118px;
    margin: 0 !important;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--text) !important;
    text-align: center;
    background: #fff !important;
    border: 1px solid var(--line);
    border-radius: 12px !important;
    box-shadow: none !important;
  }
  .home-service-grid .new-request-card .card-icon {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    color: var(--primary);
    background: var(--accent-light) !important;
  }
  .home-service-grid .new-request-card .card-icon svg { width: 22px; height: 22px; color: var(--primary) !important; }
  .home-service-grid .new-request-card .card-body { flex: 0 1 auto; }
  .home-service-grid .new-request-card .card-title { margin: 0; color: var(--text) !important; font-size: 13px; line-height: 1.5; }
  .home-service-grid .new-request-card .card-desc,
  .home-service-grid .new-request-card .arrow { display: none; }
  .home-service-grid .new-request-card:active { transform: scale(.98); }
  .home-service-grid .new-request-card[style*="cursor:default"] { background: #fff !important; }

  /* Account menu matches the separate, easy-to-scan cards in the reference. */
  .account-menu {
    display: grid;
    gap: 9px;
    overflow: visible;
    margin-top: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .account-menu .menu-item {
    min-height: 60px;
    border: 1px solid var(--line) !important;
    border-radius: 14px !important;
    background: #fff;
    box-shadow: none;
    color: var(--text);
  }
  .account-menu .menu-item:last-child { border-bottom: 1px solid var(--line); }
  .menu-item .mi-icon { border-radius: 11px; }
  .menu-item .mi-icon.mi-blue { background: var(--accent-light); color: var(--primary); }
  .menu-item .mi-icon.mi-yellow { background: var(--accent-light); color: var(--accent-dark); }
  .menu-item .mi-icon.mi-green { background: #e9f4ec; color: #397951; }

  .pay-step-banner,
  .req-hero,
  .pay-hero {
    border-radius: 14px !important;
    overflow: hidden;
    box-shadow: none;
  }
  .pay-step-banner,
  .req-hero { background: var(--primary) !important; }
  .nr-step-btn.active,
  .nr-step-btn.active .nr-step-num { color: var(--primary) !important; border-color: var(--accent) !important; background: var(--accent-light) !important; }
  .psb-seg.active,
  .psb-seg.done { background: var(--accent) !important; }
  .country-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .country-bento { gap: 10px; }
  .cb-card,
  .country-card,
  .city-card,
  .choice-button,
  .identity-traveler-btn {
    border-radius: 14px !important;
  }
  .country-card { height: 112px; box-shadow: none; }
  .guide-strip,
  .guide-intro,
  .passport-checklist,
  .info-chip,
  .appt-box,
  .appt-slot-box { border-radius: 14px; }
  .form-card { padding: 20px !important; }
  .verify-card { padding: 30px 22px 26px !important; }
  .code-wrap { gap: 7px; }
  .code-digit { width: min(13vw, 46px); height: 54px; }
  .app-shell > main.page { width: 100%; padding: 18px 16px 104px; }
  .app-shell > main.page .toolbar h1 { font-size: 22px; }
  .pay-step-banner { margin-bottom: 16px; }
  .flow-page { padding-bottom: 0 !important; }
  .flow-page .app-shell > main.page { padding-bottom: 24px; }
  .flow-page > .page { padding-bottom: 24px; }
  .flow-page .g-bottom-nav { display: none !important; }

  /* Mini header (help + back) replaces the logo topbar on phones in the wizard */
  .nr-mini-header { display: flex !important; }
  .flow-page .topbar { display: none !important; }
  .nr-mini-header {
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 0;
  }
  .nr-mini-help {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
  }
  .nr-mini-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
  }
}

@media (max-width: 360px) {
  .m-hero { margin-inline: 12px; padding-inline: 16px; }
  .page,
  .sub-content,
  .app-shell > main.page { padding-inline: 12px; }
  .g-bn-item { padding-inline: 5px !important; }
  .code-digit { width: 40px; }
}

/* Dashboard home artboard: Home 3 (destinations). */
@media screen {
  body.home3-page {
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    padding-bottom: 0 !important;
    background: #F7F4EF !important;
    color: #1D3557;
  }

  .home3-shell {
    width: min(100%, 430px);
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    background: #F7F4EF;
    color: #1D3557;
    font-family: 'IBM Plex Sans Arabic', 'Thmanyah', system-ui, sans-serif;
  }

  .home3-header {
    position: static;
    flex: none;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 20px 0;
    border: 0 !important;
    border-radius: 0;
    background: #F7F4EF !important;
    box-shadow: none !important;
    color: #1D3557;
  }
  .home3-greeting { display: flex; align-items: center; gap: 12px; min-width: 0; }
  .home3-greeting-logo { width: 40px; height: 40px; flex: none; object-fit: cover; border-radius: 8px; }
  .home3-greeting-copy { display: flex; flex-direction: column; }
  .home3-greeting-period { color: #5B6475; font-size: 12px; line-height: 1.4; }
  .home3-greeting-name { color: #1D3557; font-size: 18px; font-weight: 700; line-height: 1.3; }
  .home3-notification {
    position: relative;
    width: 44px;
    height: 44px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E4DED3;
    border-radius: 10px;
    background: #fff;
    color: #1D3557;
  }
  .home3-notification-dot { position: absolute; top: 10px; left: 11px; width: 7px; height: 7px; background: #F4A261; }

  .home3-shell .draft-bar {
    flex: none;
    margin: 10px 20px 0;
    padding: 10px 12px;
    border: 1px solid #E4DED3;
    border-radius: 10px;
    background: #fff;
    color: #1D3557;
    font-size: 12px;
  }
  .home3-shell .draft-bar .link-btn { color: #A0521A; font-weight: 700; }

  .home3-shell .tab-content {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
    background: #F7F4EF;
    scrollbar-width: none;
  }
  .home3-shell .tab-content::-webkit-scrollbar { display: none; }
  .home3-shell .home3-promos { display: none !important; }
  #panel_home.tab-panel.active {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px 20px 20px;
  }
  .home3-shell #panel_home > .home-hero,
  .home3-shell #panel_home > .home-services,
  .home3-shell #panel_home > .recent-section { display: none !important; }

  .home3-service-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border: 1px solid #E4DED3;
    border-radius: 12px;
    background: #fff;
  }
  .home3-service-item {
    min-width: 0;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 3px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #1D3557;
    font: 600 12px/1.2 'IBM Plex Sans Arabic', 'Thmanyah', system-ui, sans-serif;
    text-decoration: none;
    white-space: nowrap;
  }
  .home3-service-item.active { background: #1D3557; color: #fff; font-weight: 700; }
  .home3-service-item.is-disabled { color: #1D3557; cursor: default; }
  .home3-service-item.active svg { color: #fff; }

  .home3-country-search {
    height: 46px;
    flex: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid #E4DED3;
    border-radius: 10px;
    background: #fff;
    color: #5B6475;
    font-size: 14px;
    text-decoration: none;
  }
  .home3-country-search svg { flex: none; color: #1D3557; }
  .home3-country-search span { flex: 1; }

  .home3-order-card {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #E4DED3;
    border-radius: 10px;
    background: #fff;
    color: #1D3557;
    text-decoration: none;
  }
  .home3-order-icon {
    width: 40px;
    height: 40px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #1D3557;
    color: #F4A261;
  }
  .home3-order-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 5px; }
  .home3-order-head { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 7px; }
  .home3-order-title { overflow: hidden; color: #1D3557; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
  .home3-order-status { flex: none; color: #A0521A; font-size: 11px; font-weight: 600; white-space: nowrap; }
  .home3-order-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
  .home3-order-progress span { height: 4px; background: #ECE6DB; }
  .home3-order-progress .is-done { background: #1D3557; }
  .home3-order-progress .is-current { background: #F4A261; }
  .home3-order-chevron { flex: none; color: #8A93A3; }

  .home3-shell #panel_home > .action-alert,
  .home3-shell #panel_home > .inline-draft-card { order: 4; margin: 0; }
  .home3-shell #panel_home > .action-alert {
    padding: 10px 12px;
    border: 1px solid #E4DED3;
    border-radius: 10px !important;
    background: #fff;
    box-shadow: none;
  }
  .home3-shell #panel_home > .action-alert .action-alert-title { color: #1D3557; }
  .home3-shell #panel_home > .action-alert .action-alert-desc { color: #5B6475; }
  .home3-shell #panel_home > .action-alert .action-alert-btn { color: #A0521A; }
  .home3-shell #panel_home > .inline-draft-card {
    border: 1px solid #E4DED3;
    border-radius: 10px !important;
    background: #fff;
    color: #1D3557;
    box-shadow: none;
  }
  .home3-shell #panel_home > .inline-draft-card .idc-icon { background: #1D3557; color: #F4A261; }
  .home3-shell #panel_home > .inline-draft-card .idc-btn-resume { background: #F4A261; color: #1D3557; }

  .home3-start-card,
  .home3-maintenance {
    position: relative;
    flex: none;
    min-height: 74px;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    padding: 11px 18px;
    border: 0;
    border-radius: 14px;
    background: #F4A261;
    color: #1D3557;
    text-decoration: none;
  }
  .home3-start-card:active { filter: brightness(.97); }
  .home3-start-route { position: absolute; left: 0; top: 0; pointer-events: none; }
  .home3-start-copy { position: relative; flex: 1; display: flex; flex-direction: column; gap: 2px; }
  .home3-start-copy strong { font-size: 18px; font-weight: 700; line-height: 1.35; }
  .home3-start-copy > span { color: #4A3418; font-size: 12px; }
  .home3-start-icon {
    position: relative;
    width: 46px;
    height: 46px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #1D3557;
    color: #F4A261;
  }
  .home3-maintenance { flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; background: #fff; border: 1px solid #E4DED3; }
  .home3-maintenance strong { font-size: 14px; }
  .home3-maintenance span { color: #5B6475; font-size: 12px; }

  .home3-destinations { display: flex; flex-direction: column; gap: 12px; }
  .home3-destinations-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
  .home3-destinations-heading h2 { margin: 0; color: #1D3557; font-size: 18px; font-weight: 700; }
  .home3-destinations-heading a { color: #1D3557; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
  .home3-featured-destination {
    position: relative;
    height: 132px;
    overflow: hidden;
    display: flex;
    border-radius: 14px;
    background: #1D3557;
    color: #fff;
    text-decoration: none;
  }
  .home3-featured-ornament { position: absolute; left: -30px; bottom: -40px; width: 190px; height: 190px; border: 26px solid rgba(255,255,255,.05); pointer-events: none; }
  .home3-featured-copy { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 4px; padding: 18px; min-width: 0; }
  .home3-featured-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 5px; background: rgba(244,162,97,.16); color: #F4A261; font-size: 11px; font-weight: 600; }
  .home3-featured-badge > span { width: 5px; height: 5px; background: #F4A261; }
  .home3-featured-name { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 23px; font-weight: 700; line-height: 1.2; }
  .home3-featured-flag { display: inline-flex; align-items: center; font-size: 18px; }
  .home3-featured-landmark { color: #B9C4D6; font-size: 12px; }
  .home3-featured-link { display: inline-flex; align-items: center; gap: 6px; color: #F4A261; font-size: 13px; font-weight: 700; }
  .home3-featured-landmark-icon { position: relative; flex: none; align-self: flex-end; width: 100px; height: 125px; margin: 8px 18px 0 0; color: #F4A261; }
  .home3-destination-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .home3-destination-card {
    position: relative;
    min-width: 0;
    min-height: 102px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 10px 12px;
    border: 1px solid #E4DED3;
    border-radius: 12px;
    background: #fff;
    color: #1D3557;
    text-decoration: none;
  }
  .home3-destination-flag { position: absolute; top: 10px; left: 10px; font-size: 15px; line-height: 1; }
  .home3-destination-icon { width: 40px; height: 40px; color: #1D3557; }
  .home3-destination-labels { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
  .home3-destination-labels strong { overflow: hidden; color: #1D3557; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
  .home3-destination-labels span { overflow: hidden; color: #5B6475; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .home3-featured-flag svg { display: block; width: 27px; height: 18px; border-radius: 2px; }
  .home3-destination-flag svg { display: block; width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }

  .home3-shell > .g-bottom-nav {
    position: fixed;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 80px;
    min-height: 80px;
    flex: none;
    transform: none !important;
    display: flex !important;
    justify-content: center;
    padding: 0 !important;
    border: 0 !important;
    border-top: 1px solid #E4DED3 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    backdrop-filter: none;
    z-index: 40;
  }
  .home3-shell > .g-bottom-nav .g-bn-inner {
    width: 100%;
    max-width: 430px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0 8px max(14px, env(safe-area-inset-bottom));
  }
  .home3-shell .tab-content {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
  .home3-shell > .g-bottom-nav .g-bn-item {
    position: relative;
    min-height: 60px;
    gap: 4px;
    padding: 9px 4px !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #5B6475 !important;
    font-size: 11px;
    font-weight: 600;
  }
  .home3-shell > .g-bottom-nav .g-bn-item.active { color: #1D3557 !important; font-weight: 700; }
  .home3-shell > .g-bottom-nav .g-bn-item.active::before { position: absolute; top: 0; left: 50%; width: 22px; height: 3px; background: #F4A261; content: ''; transform: translateX(-50%); }
  .home3-shell > .g-bottom-nav .g-bn-item svg { width: 22px; height: 22px; }

  /* ── Home tab: iOS "Add to Home Screen" nudge (Safari visitors only) ── */
  .home3-ios-install[hidden] { display: none !important; }
  .home3-ios-install { position: relative; display: flex; align-items: flex-start; gap: 12px; background: #1D3557; border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; }
  .home3-ios-install-close { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; flex: none; display: flex; align-items: center; justify-content: center; border: none; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; padding: 0; cursor: pointer; }
  .home3-ios-install-icon { flex: none; width: 42px; height: 42px; border-radius: 11px; background: #F4A261; display: flex; align-items: center; justify-content: center; }
  .home3-ios-install-copy { flex: 1; min-width: 0; padding-left: 22px; }
  .home3-ios-install-title { display: block; color: #fff; font-size: 14.5px; font-weight: 700; }
  .home3-ios-install-sub { display: block; margin-top: 1px; color: #B9C4D6; font-size: 12px; }
  .home3-ios-install-steps { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 8px; color: #D6DDE8; font-size: 12px; line-height: 1.6; }
  .home3-ios-install-steps svg { flex: none; color: #F4A261; }
  .home3-ios-install-steps strong { color: #F4A261; font-weight: 700; }

  /* ── Home tab: header logout button ───────────────────────────── */
  .home3-header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
  .home3-logout-btn {
    width: 38px; height: 38px; flex: none; border: 1px solid #E4DED3; background: #fff;
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    color: #E5484D; text-decoration: none; padding: 0;
  }

  /* ── Home tab: current-request carousel (several open requests) ── */
  .home3-order-carousel { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
  .home3-order-carousel::-webkit-scrollbar { display: none; }
  .home3-order-carousel .home3-order-card { flex: 0 0 100%; scroll-snap-align: start; }
  .home3-order-dots { display: flex; align-items: center; justify-content: center; gap: 3px; margin-top: 8px; }
  .home3-order-dot { width: 6px; height: 6px; border-radius: 3px; background: rgba(29,53,87,.25); transition: width .18s, background .18s; }
  .home3-order-dot.active { width: 16px; background: #1D3557; }

  /* ── Home tab: service segmented panels ──────────────────────── */
  .home3-service-panel[hidden] { display: none !important; }

  /* ── Home tab: license segment (inline, matches license bottom-nav tab) ── */
  .home3-license-hero { position: relative; overflow: hidden; background: #1D3557; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
  .home3-license-hero-ring { position: absolute; left: -40px; top: -40px; width: 200px; height: 200px; border-radius: 50%; border: 28px solid rgba(255,255,255,.05); pointer-events: none; }
  .home3-license-hero-top { position: relative; display: flex; align-items: flex-start; gap: 12px; }
  .home3-license-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 5px; background: rgba(244,162,97,.16); color: #F4A261; font-size: 11px; font-weight: 600; }
  .home3-license-badge > span { width: 5px; height: 5px; background: #F4A261; }
  .home3-license-hero-title { margin: 6px 0 0; color: #fff; font-size: 22px; font-weight: 700; }
  .home3-license-hero-desc { margin: 4px 0 0; color: #D6DDE8; font-size: 13px; line-height: 1.7; }
  .home3-license-hero-btn { position: relative; display: flex; align-items: center; justify-content: center; height: 50px; border-radius: 10px; background: #F4A261; color: #1D3557; font-size: 15px; font-weight: 700; text-decoration: none; border: none; width: 100%; cursor: pointer; }
  .home3-license-steps { background: #fff; border: 1px solid #E4DED3; border-radius: 12px; overflow: hidden; }
  .home3-license-step { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #EFEAE1; }
  .home3-license-step:last-child { border-bottom: none; }
  .home3-license-step-num { width: 32px; height: 32px; flex: none; border-radius: 7px; background: #1D3557; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
  .home3-license-step.active .home3-license-step-num { background: #F4A261; color: #1D3557; }
  .home3-license-step-title { color: #1D3557; font-size: 14px; font-weight: 700; }
  .home3-license-step-desc { color: #5B6475; font-size: 12px; }
  .home3-license-chips { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .home3-chip { background: #fff; border: 1px solid #E4DED3; border-radius: 12px; padding: 12px 14px; }
  .home3-chip-label { display: block; color: #5B6475; font-size: 12px; }
  .home3-chip-value { display: block; color: #1D3557; font-size: 15px; font-weight: 700; }

  /* ── Home tab: eSIM segment (inline promo only, matches app) ────── */
  .home3-esim-search { height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: #fff; border: 1px solid #E4DED3; border-radius: 10px; color: #5B6475; font-size: 14px; text-decoration: none; }
  .home3-esim-promo { position: relative; overflow: hidden; height: 132px; border-radius: 14px; background: #1D3557; display: flex; text-decoration: none; }
  .home3-esim-promo-ring { position: absolute; left: -30px; bottom: -40px; width: 190px; height: 190px; border-radius: 50%; border: 26px solid rgba(255,255,255,.05); pointer-events: none; }
  .home3-esim-promo-copy { position: relative; flex: 1; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; }
  .home3-esim-promo-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 5px; background: rgba(244,162,97,.16); color: #F4A261; font-size: 11px; font-weight: 600; }
  .home3-esim-promo-badge > span:first-child { width: 5px; height: 5px; background: #F4A261; flex: none; }
  .home3-esim-promo-title { margin: 6px 0 0; color: #fff; font-size: 22px; font-weight: 700; }
  .home3-esim-promo-sub { margin: 0; color: #B9C4D6; font-size: 12px; }
  .home3-esim-promo-price { display: flex; align-items: center; gap: 6px; color: #F4A261; font-size: 13px; font-weight: 700; }
  .home3-esim-promo-icon { position: relative; flex: none; align-self: flex-end; margin: 12px 20px 0 0; }

  /* ── Home tab: eSIM ad banner (under the segmented tabs, every segment except eSIM itself) ── */
  .home3-esim-banner[hidden] { display: none !important; }
  .home3-esim-banner { position: relative; overflow: hidden; height: 128px; display: flex; align-items: center; gap: 14px; padding: 0 16px; margin-top: -8px; border-radius: 14px; background: #fff; border: 1px solid #E4DED3; text-decoration: none; }
  .home3-esim-banner-ring { position: absolute; left: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: #FDF1E6; }
  .home3-esim-banner-copy { position: relative; flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .home3-esim-banner-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 5px; background: #1D3557; color: #fff; font-size: 11px; font-weight: 600; }
  .home3-esim-banner-title { font-size: 19px; font-weight: 700; line-height: 1.3; color: #1D3557; }
  .home3-esim-banner-price { color: #C2652A; }
  .home3-esim-banner-sub { font-size: 12px; color: #5B6475; }
  .home3-esim-banner-icon { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .home3-esim-banner-cta { height: 30px; display: flex; align-items: center; padding: 0 12px; border-radius: 8px; background: #F4A261; color: #1D3557; font-size: 12px; font-weight: 700; }
}

@media (max-width: 360px) {
  #panel_home.tab-panel.active { padding-inline: 16px; }
  .home3-header { padding-inline: 16px; }
  .home3-destination-grid { gap: 7px; }
  .home3-destination-card { padding-inline: 8px; }
  .home3-service-item { font-size: 11px; }
}
