/* App subdomains (app.job.net.pk / app.dailyjob.pk) — PWA-style mobile-first shell */
:root { --tab-h: 62px; }
body.app { background: var(--bg-soft); padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
.app-top { position: sticky; top: 0; z-index: 100; background: var(--nav-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); height: 56px; display: flex; align-items: center; padding: 0 16px; gap: 12px; }
.app-top .logo { font-size: 1.15rem; } .app-top .logo img { height: 32px; }
.app-top .right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.app-main { padding: 16px; max-width: 720px; margin: 0 auto; }
.app-tabs { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; z-index: 100; }
.app-tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .66rem; font-weight: 600; color: var(--muted); text-decoration: none !important; position: relative; }
.app-tabs a svg { width: 22px; height: 22px; } .app-tabs a.is-active { color: var(--primary); }
.app-tabs a .count { position: absolute; top: 6px; right: calc(50% - 18px); background: var(--danger); color: #fff; font-size: .6rem; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; }
.app-hero { background: linear-gradient(135deg, var(--primary), var(--primary-700)); color: #fff; border-radius: 18px; padding: 20px; margin-bottom: 16px; }
.app-hero h1 { color: #fff; font-size: 1.35rem; margin-bottom: 4px; } .app-hero p { margin: 0; opacity: .9; font-size: .9rem; }
.app-search { display: flex; gap: 8px; margin: 14px 0; } .app-search input { flex: 1; border-radius: 12px; }
.app-section { margin: 20px 0; } .app-section h2 { font-size: 1.05rem; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; } .app-section h2 a { font-size: .8rem; font-weight: 600; }
.app-list { display: flex; flex-direction: column; gap: 10px; }
.app-job { display: flex; gap: 12px; align-items: flex-start; padding: 14px; text-decoration: none !important; color: var(--ink); }
.app-job .title { font-weight: 700; font-size: .96rem; margin-bottom: 2px; } .app-job .sub { color: var(--muted); font-size: .82rem; } .app-job .meta { font-size: .78rem; color: var(--ink-2); margin-top: 6px; display: flex; gap: 10px; flex-wrap: wrap; }
.app-job .salary { color: var(--primary-700); font-weight: 700; }
.h-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; } .h-scroll::-webkit-scrollbar { display: none; } .h-scroll > * { flex: none; }
.app-detail h1 { font-size: 1.3rem; }
.app-sticky-cta { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding: 10px 16px; background: #fff; border-top: 1px solid var(--line); display: flex; gap: 8px; z-index: 90; } .app-sticky-cta .btn { flex: 1; }
.app-offline { text-align: center; padding: 60px 20px; } .app-offline svg { width: 64px; height: 64px; color: var(--muted-2); margin: 0 auto 16px; }
.install-banner { display: none; align-items: center; gap: 12px; padding: 12px 14px; background: var(--primary-50); border: 1px solid var(--primary-100); border-radius: 12px; margin-bottom: 14px; font-size: .85rem; } .install-banner.is-visible { display: flex; }
.pull-hint { text-align: center; color: var(--muted-2); font-size: .75rem; padding: 6px 0; }
@media (min-width: 900px) { .app-main { max-width: 900px; } .app-tabs { max-width: 900px; left: 50%; transform: translateX(-50%); border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }
