/* Dashboard sized to the available browser viewport, including mobile browser bars. */
.home-screen { background: radial-gradient(ellipse at 95% 0, #fff2e9, transparent 35%), var(--canvas); height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; padding-bottom: 0; }
.home-screen .main-shell { flex: 1 1 0; width: 100%; max-width: 600px; margin: 0 auto calc(80px + env(safe-area-inset-bottom, 0px)); overflow: hidden; padding: max(12px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); min-height: 0; }
.home-dashboard { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; min-height: 0; gap: 12px; }
.home-dashboard.home-without-carousel { grid-template-rows: auto minmax(0, 1fr); }
.home-identity { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 5px; }
.home-profile { display: flex; align-items: center; gap: 12px; min-width: 0; }
.home-avatar { display: grid; place-items: center; width: 60px; height: 60px; flex-shrink: 0; background: white; border-radius: 20px; box-shadow: 0 5px 18px rgb(0 26 112 / 6%); overflow: hidden; }
.home-avatar img { width: 100%; height: 100%; object-fit: cover; }
.home-avatar-brand img { object-fit: contain; padding: 8px; }
.home-profile-copy { min-width: 0; }
.home-profile-copy > span { color: var(--muted); font-size: var(--text-xs); }
.home-profile h1 { font-size: var(--text-xl); color: var(--primary); overflow-wrap: anywhere; margin: 3px 0 0; line-height: 1.4; }
.home-notifications { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-soft); border-radius: 15px; background: white; color: var(--primary); flex-shrink: 0; }
.home-carousel { min-width: 0; min-height: 0; position: relative; align-self: stretch; }
.home-slides { display: grid; height: 100%; min-height: 0; }
.home-slide { grid-area: 1 / 1; position: relative; isolation: isolate; border-radius: 26px; overflow: hidden; min-height: 0; background: linear-gradient(120deg, #083d9d, var(--primary) 70%); color: white; box-shadow: 0 12px 24px rgb(0 26 112 / 12%); }
.home-slide[hidden] { display: block; visibility: hidden; pointer-events: none; }
.home-slide:not([hidden]) { animation: banner-arrive .35s ease-out; }
@keyframes banner-arrive { from { transform: translateY(3px); } to { transform: translateY(0); } }
.home-slide.theme-orange { background: linear-gradient(120deg, #e5470b, #a82039); }
.home-slide-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; z-index: -2; }
.home-slide.has-slide-image::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgb(0 16 54 / 82%), rgb(0 16 54 / 24%)); }
.home-slide-copy { position: relative; z-index: 1; padding: 24px 24px 62px; width: 100%; max-width: 100%; }
.home-slide-kicker { display: block; font-size: var(--text-xs); color: #ffdabd; margin-bottom: 7px; }
.home-slide h2 { font-size: var(--text-xl); font-weight: 700; max-width: 90%; overflow-wrap: anywhere; }
.home-slide p { font-size: var(--text-sm); margin-top: 8px; max-width: 88%; line-height: 1.7; }
.home-slide-link { display: inline-flex; align-items: center; gap: 12px; border-radius: 12px; min-height: 44px; padding: 7px 14px; margin-top: 12px; background: white; color: var(--primary); font-weight: 700; font-size: var(--text-sm); }
.home-slide-link .icon { width: 18px; height: 18px; }
.home-slide-link:focus-visible { outline-color: var(--brand-yellow); }
.home-slide-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; opacity: .35; }
.home-slide-art span { position: absolute; width: 250px; height: 250px; border: 1px solid #ffffff55; border-radius: 50%; left: -145px; top: -45px; }
.home-slide-art span + span { width: 330px; height: 330px; top: -85px; left: -185px; }
.home-slide-art > .icon { width: 95px; height: 95px; position: absolute; left: 5px; bottom: 18px; transform: rotate(-18deg); stroke-width: 1; }
.home-slide-art b { position: absolute; left: 35px; top: 25px; color: var(--brand-yellow); font-size: var(--text-2xl); }
.home-carousel-controls { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); display: flex; align-items: center; justify-content: center; gap: 0; min-height: 44px; padding-inline: 4px; border-radius: 20px; background: #0014484d; backdrop-filter: blur(8px); direction: ltr; }
.home-carousel-controls[hidden] { display: none; }
.home-carousel-controls button { background: none; border: 0; color: white; min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border-radius: 12px; }
.carousel-arrow { font-size: var(--text-xl); }
.carousel-dots { display: flex; justify-content: flex-start; min-width: 0; max-width: 220px; overflow: auto; scrollbar-width: none; }
.carousel-dots button { min-width: 44px; flex: 0 0 44px; }
.carousel-dots button span { width: 6px; height: 6px; border-radius: 8px; background: #b9bfd2; transition: width .25s, background .25s; }
.carousel-dots button[aria-current] span { width: 22px; background: var(--accent); }
.carousel-pause { font-size: var(--text-base); }
.home-offerings-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.home-offerings-heading h2 { font-size: var(--text-lg); font-weight: 700; color: var(--primary); }
.home-offerings-heading > span { font-size: var(--text-xs); color: var(--muted); }
.home-offerings { min-height: 0; display: flex; flex-direction: column; }
.home-offerings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; }
.home-offering { display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; min-width: 0; padding: 18px 8px 14px; border-radius: 22px; border: 1px solid #eeedf4; background: white; box-shadow: 0 5px 15px rgb(0 26 112 / 3%); }
a.home-offering:hover { background: var(--blue); border-color: #b9c5ee; }
.offering-icon { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 9px; background: linear-gradient(145deg, #f0f5ff, #e0e8ff); color: var(--primary); box-shadow: inset 0 1px 0 #ffffffcc, 0 4px 8px #001a7008; }
.offering-icon .icon { width: 30px; height: 30px; stroke-width: 1.6; }
.clearance .offering-icon { background: #fff0e5; color: #b34500; }
.tour .offering-icon { background: #eaf6f2; color: #247560; }
.esim .offering-icon { background: #f3edff; color: #7751a5; }
.home-slide { background: radial-gradient(ellipse at 5% 90%, #216ce0, transparent 65%), linear-gradient(125deg, #0c3a99, #041a65); }
.home-slide.theme-orange { background: radial-gradient(ellipse at 5% 90%, #ff883d, transparent 65%), linear-gradient(125deg, #d7491a, #a52146); }
.home-slide-art { opacity: .22; }
.home-slide-art > .icon { width: 110px; height: 110px; bottom: 50px; }
.home-profile-copy > span { display: block; line-height: 1.7; }
.home-offering { transition: transform .18s, box-shadow .18s; }
a.home-offering:active { transform: scale(.98); }
.home-offering h3 { font-size: var(--text-base); font-weight: 700; }
.home-offering :is(h3, .offering-note) { max-width: 100%; min-width: 0; text-align: center; overflow-wrap: break-word; line-height: 1.4; }
.offering-note { font-size: var(--text-xs); color: var(--muted); margin-top: 3px; }
.offering-soon { order: 3; margin-top: 4px; background: var(--soft); color: var(--muted); border-radius: 7px; padding: 1px 8px; font-size: var(--text-xs); line-height: 1.5; }
.home-screen .mobile-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; bottom: 0; inset-inline: 0; max-width: 600px; margin-inline: auto; min-height: calc(76px + env(safe-area-inset-bottom, 0px)); padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); gap: 2px; background: white; border: 1px solid var(--line-soft); border-bottom: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -8px 30px rgb(0 26 112 / 5%); z-index: 30; }
.home-screen .mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 58px; padding: 4px 0; font-size: var(--text-xs); color: var(--muted); border-radius: 13px; line-height: 1.6; }
.home-screen .mobile-nav .icon { width: 23px; height: 23px; }
.home-screen .mobile-nav a.active { background: var(--blue); color: var(--primary); font-weight: 700; }
.home-screen .mobile-nav a:focus-visible { outline-offset: -3px; }
@media (max-width: 999px) {
  .home-screen { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  .home-identity { padding-block: 0; }
  .home-profile { flex: 1; }
  .home-profile-copy { flex: 1; }
  .home-profile h1 { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--text-lg); }
  .home-avatar { width: 52px; height: 52px; border-radius: 17px; }
  .home-slide-copy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 16px 18px 58px; }
  .home-slide-kicker { margin-bottom: 4px; flex: none; }
  .home-slide h2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-width: 100%; font-size: var(--text-xl); line-height: 1.4; flex: none; }
  .home-slide p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-width: 100%; font-size: var(--text-sm); line-height: 1.5; margin-top: 5px; flex: none; }
  .home-slide-link { flex: none; margin-top: 8px; min-height: 44px; padding: 6px 12px; }
  .home-offerings-heading { flex: none; margin-bottom: 8px; }
  .home-offerings-heading h2 { font-size: var(--text-base); }
  .home-offerings-heading > span { display: none; }
  .home-offerings-grid { height: clamp(180px, 29dvh, 240px); }
  .home-offering { min-height: 0; padding: 8px 6px; border-radius: 18px; }
  .home-offering h3 { font-size: var(--text-sm); }
  .offering-icon { flex: none; width: 38px; height: 38px; border-radius: 13px; margin-bottom: 5px; }
  .offering-icon .icon { width: 25px; height: 25px; }
  .home-offering .offering-note { display: none; }
  .offering-soon { font-size: 10px; margin-top: 3px; padding: 1px 6px; }
}
@media (max-width: 999px) and (max-height: 680px) {
  .home-dashboard { gap: 10px; }
  .home-slide-kicker { display: none; }
  .home-slide h2 { font-size: var(--text-lg); }
  .home-slide p { font-size: var(--text-xs); }
}
@media (max-width: 999px) and (max-height: 580px) {
  .home-screen .main-shell { padding-block: 8px; }
  .home-dashboard { gap: 8px; }
  .home-avatar { width: 44px; height: 44px; border-radius: 14px; }
  .home-profile-copy > span { font-size: 11px; }
  .home-profile h1 { font-size: var(--text-base); }
  .home-slide-copy { padding: 8px 14px 52px; }
  .home-slide h2 { -webkit-line-clamp: 1; font-size: var(--text-base); }
  .home-slide p { display: none; }
  .home-slide-link { margin-top: 4px; font-size: var(--text-xs); }
  .home-carousel-controls { bottom: 4px; }
  .home-offerings-grid { height: 160px; gap: 8px; }
  .home-offering { padding: 4px; }
  .home-offering h3 { font-size: var(--text-xs); }
  .offering-icon { width: 26px; height: 26px; margin-bottom: 2px; border-radius: 9px; }
  .offering-icon .icon { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) { .carousel-dots button span { transition: none; } .home-slide:not([hidden]) { animation: none; } }

html[dir="ltr"] .home-slide-art span { left: auto; right: -145px; }
html[dir="ltr"] .home-slide-art span + span { right: -185px; }
html[dir="ltr"] .home-slide-art > .icon { left: auto; right: 5px; transform: scaleX(-1) rotate(-18deg); }
html[dir="ltr"] .home-slide-art b { left: auto; right: 35px; }
@media (min-width: 1000px) {
  .home-screen .main-shell { max-width: 1200px; padding: 24px; }
  .home-dashboard { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 20px 24px; }
  .home-identity { grid-column: 1 / -1; padding-block: 4px 16px; border-bottom: 1px solid var(--line-soft); }
  .home-profile h1 { font-size: var(--text-xl); }
  .home-profile-copy > span { font-size: var(--text-sm); }
  .home-slide { min-height: 0; display: flex; align-items: center; }
  .home-slide-copy { padding: 24px 24px 64px; }
  .home-slide h2 { font-size: var(--text-2xl); }
  .home-slide p { font-size: var(--text-sm); }
  .home-slide-link { margin-top: 16px; font-size: var(--text-sm); padding: 8px 16px; }
  .home-offerings-grid { gap: 16px; flex: 1; min-height: 0; }
  .home-offering { min-height: 0; padding: 14px 12px; }
  .home-offering h3 { font-size: var(--text-base); }
  .offering-note { display: block; font-size: var(--text-xs); }
  .home-offerings-heading { margin-bottom: 16px; }
  .home-offerings-heading h2 { font-size: var(--text-lg); }
  .home-screen .mobile-nav { max-width: 720px; }
  .home-screen .mobile-nav a { flex-direction: row; gap: 10px; font-size: var(--text-sm); }
  .home-offerings:only-child { grid-column: 1 / -1; }
  .home-dashboard.home-without-carousel .home-offerings { grid-column: 1 / -1; }
  .home-dashboard.home-without-carousel .home-offerings-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

html[dir="ltr"] .home-slide.has-slide-image::after { background: linear-gradient(90deg, rgb(0 16 54 / 82%), rgb(0 16 54 / 24%)); }

/* Service cards grow with translated content; short screens scroll above navigation. */
@media (max-width: 1023px) {
  .home-screen .main-shell { overflow-y: auto; }
  .home-dashboard { height: auto; min-height: 100%; grid-template-rows: auto minmax(250px, 1fr) auto; }
  .home-dashboard.home-without-carousel { grid-template-rows: auto auto; }
  .home-offerings-grid { height: auto; grid-template-rows: none; grid-auto-rows: minmax(130px, auto); }
  .home-offering { min-height: 130px; padding: 12px 8px; }
  .home-offering > * { flex-shrink: 0; }
}
