/* Shared screen styles for the public storefront and both workspaces. */
@media screen {
    .jastip {
        --jastip-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        --jastip-ink: #182722;
        --jastip-muted: #50635a;
        --jastip-surface: #f4f7f5;
        --jastip-line: #dce6e0;
        --jastip-accent: #087557;
        --jastip-strong: #075942;
        --jastip-tint: #e5f5ec;
        --jastip-gradient: linear-gradient(135deg, #087557, #075942);
        --jastip-radius: 16px;
        --jastip-shadow: 0 2px 4px rgb(19 36 29 / 4%), 0 10px 26px rgb(19 36 29 / 5%);
        --jastip-nav-height: 68px;
        --jastip-gutter: clamp(16px, 4vw, 32px);
        background: var(--jastip-surface);
        color: var(--jastip-ink);
        font-family: var(--jastip-font);
        overflow-wrap: anywhere;
    }

    .jastip-admin {
        --jastip-ink: #26223a;
        --jastip-muted: #5f5873;
        --jastip-surface: #f6f5fa;
        --jastip-line: #e4e0ef;
        --jastip-accent: #5943a6;
        --jastip-strong: #453180;
        --jastip-tint: #efebfa;
        --jastip-gradient: linear-gradient(135deg, #4f57ad, #704693);
    }

    .jastip :is(button, input, select, textarea) { font-family: inherit; }
    .jastip :is(img, video, canvas, input, select, textarea) { max-inline-size: 100%; }
    .jastip :is(.container, .container-fluid, .main-content, .row > *, .grid > *, .stats-grid > *, .card, .card-body, .modal-body) {
        min-inline-size: 0;
    }

    .jastip :is(a, button, input, select, textarea, [tabindex]):focus-visible {
        outline: 2px solid var(--jastip-accent);
        outline-offset: 3px;
    }

    .jastip :is(.card, .table-card, .product-card, .trip-card, .stat-card, .hero-product, .filter-section) {
        border-radius: var(--jastip-radius);
        box-shadow: var(--jastip-shadow);
    }

    .jastip :is(.card-title, .page-title, .section-title) {
        letter-spacing: -.025em;
    }

    .jastip :is(.btn, .btn-login, .btn-install-nav, .tab-btn) {
        border-radius: 10px;
        font-weight: 600;
        max-inline-size: 100%;
    }

    .jastip :is(.btn-primary, .btn-login) {
        background: var(--jastip-accent);
        color: white;
        border-color: transparent;
    }

    .jastip :is(.btn-primary, .btn-login):hover {
        background: var(--jastip-strong);
        color: white;
    }

    .jastip .btn-primary {
        --bs-btn-active-bg: var(--jastip-strong);
        --bs-btn-active-border-color: var(--jastip-strong);
        --bs-btn-disabled-bg: var(--jastip-accent);
        --bs-btn-disabled-border-color: var(--jastip-accent);
    }

    .jastip :is(.form-control, .form-select, .form-group input:not([type="checkbox"], [type="radio"], [type="hidden"]), .form-group select, .form-group textarea) {
        border-color: var(--jastip-line);
        border-radius: 10px;
        min-block-size: 44px;
        font-size: 1rem;
    }

    .jastip :is(.form-control, .form-select, .form-group input, .form-group select, .form-group textarea):focus {
        border-color: var(--jastip-accent);
        box-shadow: 0 0 0 3px var(--jastip-tint);
    }

    .jastip :is(.form-control, .form-select).is-invalid { border-color: #b42318; }

    .jastip :is(.jastip-table-scroll, .table-responsive, .table-responsive-mobile) {
        max-inline-size: 100%;
        overflow-x: auto;
    }

    .jastip .jastip-table-scroll > table {
        inline-size: 100%;
        min-inline-size: 32rem;
    }

    .jastip .jastip-table-scroll > table :is(th, td) { overflow-wrap: normal; }

    .jastip-legacy > .container { padding-inline: var(--jastip-gutter); }

    .jastip-legacy > .navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 6px 16px;
        padding: calc(10px + env(safe-area-inset-top)) var(--jastip-gutter) 10px;
        background: white;
        color: var(--jastip-ink);
        border-bottom: 1px solid var(--jastip-line);
        box-shadow: 0 2px 8px rgb(19 36 29 / 5%);
    }

    .jastip-legacy > .navbar h1 {
        min-inline-size: 0;
        margin: 0;
        font-size: clamp(1rem, 3vw, 1.25rem);
        font-weight: 750;
        line-height: 1.25;
        color: var(--jastip-ink);
        background: none;
        -webkit-text-fill-color: currentColor;
    }

    .jastip-legacy > .navbar :is(h1 i, h1 a) {
        color: var(--jastip-accent);
        background: none;
        -webkit-text-fill-color: currentColor;
    }

    .jastip-legacy > .navbar > div {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 8px;
        min-inline-size: 0;
        max-inline-size: 100%;
    }

    .jastip-legacy > .navbar a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-block-size: 44px;
        margin: 0;
        padding: 8px 10px;
        color: var(--jastip-accent);
        text-decoration: none;
    }

    .jastip-legacy > .navbar h1 a { padding-inline: 0; }
    .jastip-legacy > .navbar a:not(.btn-login):hover { color: var(--jastip-strong); background: var(--jastip-tint); }
    .jastip-legacy > .navbar a.btn-login { background: var(--jastip-accent); color: white; box-shadow: none; }
    .jastip-legacy > .navbar a.btn-login:hover { background: var(--jastip-strong); transform: none; }

    .jastip-legacy > .navbar .btn-install-nav {
        min-block-size: 44px;
        padding-inline: 10px;
        border: 1px solid var(--jastip-line);
        background: white;
        color: var(--jastip-accent);
    }

    .jastip-public > .navbar {
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .jastip-public > .navbar > .navbar-right {
        width: auto;
        margin-inline-start: auto;
        justify-content: flex-end;
    }

    .jastip-public > .navbar h1 a { font: inherit; }
    .jastip-public > .navbar h1 i { color: var(--jastip-accent); }
    .jastip-catalog > .navbar a.btn-login:last-child:not(:only-child) {
        background: var(--jastip-tint);
        color: var(--jastip-strong);
    }

    .jastip-public .hero {
        padding: clamp(36px, 8vw, 96px) var(--jastip-gutter);
        background: radial-gradient(ellipse at 85% 0%, #147c61, transparent 68%), #064836;
        box-shadow: none;
    }

    .jastip-public .hero::before,
    .jastip-public .hero::after { content: none; }

    .jastip-public .hero h2 {
        color: #fff;
        background: none;
        -webkit-text-fill-color: currentColor;
        font-size: clamp(1.9rem, 6vw, 3.75rem);
        letter-spacing: -.05em;
        line-height: 1.1;
    }

    .jastip-public .hero p { color: #e6f5ec; }

    .jastip-home {
        --primary: var(--jastip-accent);
        --primary-dark: var(--jastip-strong);
        --primary-light: #208263;
        --secondary: #187556;
        --accent: #d7eee1;
        --dark: #152d24;
        --dark-light: #1e3e32;
        --gray-50: #f4f7f5;
        --gray-100: #e5f0e9;
        --gray-200: #dce6e0;
        --gray-300: #c3d3c9;
        --gray-400: #a1b7aa;
        --gray-500: #657d70;
        --gray-600: #50635a;
        --gray-700: #3f534a;
        --gray-800: #283e34;
        --gray-900: #182722;
        --gradient-primary: var(--jastip-gradient);
        --gradient-card: linear-gradient(145deg, white, #f4faf6);
    }

    .jastip-home .stats { gap: 12px; }
    .jastip-home .stat-card { padding: 14px; }
    .jastip-home .stat-card .stat-info { min-inline-size: 0; }
    .jastip-home .stat-card .stat-info h3 { line-height: 1.2; }
    .jastip-home .stat-icon { flex: none; }
    .jastip-catalog :is(.hero-product-price, .hero-product-trip, .price, .card-trip) { color: var(--jastip-accent); }
    .jastip-catalog .login-prompt { background: var(--jastip-tint); border: 1px solid var(--jastip-line); }
    .jastip-catalog .login-prompt h3 { color: var(--jastip-strong); }
    .jastip-catalog .login-prompt p { color: var(--jastip-muted); }
    .jastip-catalog .btn-outline { color: var(--jastip-accent); border-color: var(--jastip-accent); }

    .jastip-auth, .jastip-auth * { box-sizing: border-box; }

    .jastip-auth {
        margin: 0;
        line-height: 1.45;
        display: grid;
        place-items: center;
        min-block-size: 100svh;
        padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
        background: radial-gradient(ellipse at top, var(--jastip-tint), transparent 75%), var(--jastip-surface);
    }

    .jastip-auth .box {
        inline-size: 100%;
        max-inline-size: 440px;
        background: white;
        padding: clamp(22px, 6vw, 36px);
        border: 1px solid var(--jastip-line);
        border-radius: 22px;
        box-shadow: var(--jastip-shadow);
    }

    .jastip-auth .logo { margin-block-end: 22px; text-align: center; }
    .jastip-auth .logo h1 { margin: 0; font-size: 1.4rem; letter-spacing: -.04em; }
    .jastip-auth .logo p { margin: 4px 0 0; color: var(--jastip-muted); }

    .jastip-auth .logo-icon {
        width: 56px;
        height: 56px;
        display: grid;
        place-items: center;
        margin: 0 auto 12px;
        border-radius: 16px;
        background: var(--jastip-tint);
        color: var(--jastip-accent);
        font-size: 1.4rem;
    }

    .jastip-auth .badge {
        display: inline-block;
        margin-top: 10px;
        padding: 5px 12px;
        border-radius: 100px;
        background: var(--jastip-tint);
        color: var(--jastip-strong);
        font-size: .75rem;
        font-weight: 700;
    }

    .jastip-auth :is(.alert, .warning) {
        padding: 12px;
        border-radius: 10px;
        font-size: .875rem;
    }

    .jastip-auth .alert { margin-bottom: 16px; background: #fee2e2; color: #991b1b; }
    .jastip-auth .alert-success { background: #d1fae5; color: #065f46; }
    .jastip-auth .warning { margin-top: 16px; background: #fef3c7; color: #92400e; text-align: center; }

    .jastip-auth .form-group { margin-block-end: 16px; }
    .jastip-auth .form-group label { display: block; margin-bottom: 6px; font-size: .875rem; font-weight: 600; }
    .jastip-auth .form-group input { width: 100%; border: 1px solid var(--jastip-line); padding: 10px 12px; }
    .jastip-auth .form-group small { display: block; margin-top: 4px; color: var(--jastip-muted); }
    .jastip-auth .input-wrap { position: relative; }
    .jastip-auth .input-wrap input { padding-inline-start: 40px; }
    .jastip-auth .password-wrap input { padding-inline-end: 50px; }

    .jastip-auth .input-wrap > i {
        position: absolute;
        inset-inline-start: 13px;
        inset-block-start: 50%;
        transform: translateY(-50%);
        color: var(--jastip-muted);
        pointer-events: none;
    }

    .jastip-auth .toggle-password {
        position: absolute;
        inset-inline-end: 2px;
        inset-block-start: 50%;
        transform: translateY(-50%);
        inline-size: 44px;
        min-block-size: 44px;
        border: 0;
        background: transparent;
        color: var(--jastip-muted);
        cursor: pointer;
        font-size: 1rem;
    }

    .jastip-auth .remember-me { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
    .jastip-auth .remember-me input { inline-size: 18px; block-size: 18px; accent-color: var(--jastip-accent); }
    .jastip-auth .remember-me label { padding-block: 8px; cursor: pointer; font-size: .875rem; }

    .jastip-auth :is(.btn, .install-btn) {
        inline-size: 100%;
        min-block-size: 46px;
        padding: 10px 16px;
        border: 0;
        border-radius: 10px;
        background: var(--jastip-accent);
        color: white;
        cursor: pointer;
        font-size: 1rem;
        font-weight: 650;
    }

    .jastip-auth :is(.btn, .install-btn):hover {
        background: var(--jastip-strong);
        box-shadow: none;
        transform: none;
    }

    .jastip-auth :is(.links a, .alert a) { color: var(--jastip-accent); }
    .jastip-auth .links { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--jastip-line); text-align: center; line-height: 2; }
    .jastip-auth .links a { display: inline-block; padding: 6px; text-decoration: none; font-weight: 600; }

    .jastip .jastip-address-fields {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .jastip .sidebar.d-flex {
        background: var(--jastip-gradient);
        height: 100dvh;
        max-height: 100dvh;
    }

    .jastip .sidebar.d-flex .nav-link { color: white; gap: 6px; }
    .jastip .sidebar.d-flex .nav-link.active { background: rgb(255 255 255 / 22%); font-weight: 700; }
    .jastip .mobile-header { background: var(--jastip-gradient); }
    .jastip .bottom-nav-item.active, .jastip .more-menu-item.active {
        color: var(--jastip-strong);
        background: var(--jastip-tint);
        font-weight: 700;
    }

    .jastip:not(.jastip-legacy, .jastip-auth) { padding-bottom: 0; }
}

@media screen and (max-width: 991.98px) {
    .jastip:has(.bottom-nav) {
        padding-bottom: calc(var(--jastip-nav-height) + 12px + env(safe-area-inset-bottom));
    }

    .jastip .d-flex:has(> .mobile-header) { flex-direction: column; }

    .jastip .mobile-header {
        gap: 12px;
        padding: calc(12px + env(safe-area-inset-top)) var(--jastip-gutter) 12px;
    }

    .jastip .bottom-nav {
        padding: 5px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
        min-block-size: calc(var(--jastip-nav-height) + env(safe-area-inset-bottom));
        box-shadow: 0 -6px 22px rgb(19 36 29 / 8%);
    }

    .jastip .bottom-nav-items { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }

    .jastip .bottom-nav-item {
        justify-content: center;
        block-size: calc(var(--jastip-nav-height) - 12px);
        padding: 4px 2px;
        font-size: .6875rem;
        line-height: 1.2;
        text-align: center;
    }

    .jastip .bottom-nav-item i { font-size: 1.25rem; line-height: 1; margin-block-end: 5px; }
    .jastip .more-menu { max-block-size: calc(100dvh - var(--jastip-nav-height) - env(safe-area-inset-bottom) - 24px); overflow-y: auto; }
    .jastip:has(.bottom-nav) .main-content { min-height: auto; }
    .jastip .table-responsive > .table { min-inline-size: 28rem; }
    .jastip .main-content > .d-flex:first-child { flex-wrap: wrap; gap: 12px; }
}

@media screen and (max-width: 575.98px) {
    .jastip .btn:not(.btn-sm) { min-block-size: 44px; }
    .jastip .btn-sm { min-block-size: 36px; }
    .jastip form :is(button.btn-primary, input.btn-primary):not(.btn-sm, .input-group *) { inline-size: 100%; }
    .jastip :is(.form-group, .filter-row, .card-header, .login-prompt) { min-inline-size: 0; }
    .jastip :is(.card-header, .login-prompt, .hero-product-actions) { flex-wrap: wrap; }
    .jastip :is(.grid, .trip-list, .trip-cards, .hero-product-inner) { grid-template-columns: minmax(0, 1fr); }
    .jastip .jastip-address-fields { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .jastip .hero-product-body { padding: 18px; }
    .jastip .hero-product-img { height: auto; aspect-ratio: 1; }
    .jastip-home .stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jastip-home .stat-card { min-inline-size: 0; display: grid; gap: 8px; }
    .jastip-home .stat-icon { inline-size: 38px; block-size: 38px; font-size: 16px; }
    .jastip-home .stat-card .stat-info h3 { font-size: 1rem !important; }
    .jastip-public .hero h2,
    .jastip-public .hero p {
        max-inline-size: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        text-wrap: balance;
    }
    .jastip-public .hero h2 {
        font-size: clamp(1.45rem, 7vw, 2.25rem);
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        row-gap: 6px;
    }
    .jastip-public .hero p { font-size: 0.95rem; line-height: 1.5; }
    .jastip-home .stat-card .stat-info,
    .jastip-home .stat-card .stat-info h3,
    .jastip-home .stat-card .stat-info p,
    .jastip-home .wa-group-banner,
    .jastip-home .wa-group-info,
    .jastip-home .wa-group-text,
    .jastip-catalog .login-prompt-text {
        min-inline-size: 0;
        max-inline-size: 100%;
        overflow-wrap: anywhere;
        white-space: normal;
    }
    .jastip-home .wa-group-banner,
    .jastip-home .wa-group-info { flex-wrap: wrap; }
    .jastip-home .wa-group-text h3 { font-size: 1.1rem !important; }
    .jastip-catalog .login-prompt { align-items: flex-start; }
    .jastip-catalog .login-prompt > div { flex-wrap: wrap; min-inline-size: 0; max-inline-size: 100%; }
    .jastip-catalog .login-prompt-text { flex: 1 1 100%; }
    .jastip-catalog .header,
    .jastip-catalog .filter { display: flex; flex-wrap: wrap; gap: 10px; min-inline-size: 0; }
    .jastip-catalog .header h2 { flex: 1 1 auto; margin: 0; }
    .jastip-catalog .filter select { max-inline-size: 100%; }
}

@media screen and (max-width: 479.98px) {
    .jastip-home .stats { grid-template-columns: minmax(0, 1fr); }
    .jastip-home .stat-card { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
    .jastip-home .wa-group-info,
    .jastip-home .wa-group-banner { text-align: center; }
}

    .jastip .visually-hidden {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .jastip-home .lacak-home-box {
        display: grid;
        gap: 16px;
        padding: 20px;
        margin: 0 0 24px;
        align-items: center;
    }
    .jastip-home .lacak-home-copy h3 { margin: 0 0 6px; }
    .jastip-home .lacak-home-copy p { margin: 0; color: var(--jastip-muted); }
    .jastip-home .lacak-home-form {
        display: grid;
        grid-template-columns: minmax(0, 1.4fr) minmax(0, .7fr) auto;
        gap: 10px;
        align-items: center;
    }
    .jastip-home .lacak-home-form input {
        min-inline-size: 0;
        min-block-size: 44px;
        padding: 10px 12px;
        border: 1px solid var(--jastip-line);
        border-radius: 10px;
        font: inherit;
    }

    .jastip-auth .lacak-nota-card {
        width: min(100%, 420px);
        padding: 28px 24px;
        background: white;
        border-radius: 20px;
        box-shadow: var(--jastip-shadow);
    }
    .jastip-auth .lacak-nota-card .logo { text-align: center; margin-bottom: 20px; }
    .jastip-auth .lacak-nota-card .logo h1 { font-size: 1.5rem; margin: 0 0 8px; }
    .jastip-auth .lacak-nota-card .logo p { margin: 0; color: var(--jastip-muted); }
    .jastip-auth .lacak-nota-card .alert {
        background: #fee2e2;
        color: #991b1b;
        padding: 12px;
        border-radius: 10px;
        margin-bottom: 16px;
        font-size: 14px;
    }
    .jastip-auth .lacak-nota-card .form-group { margin-bottom: 14px; }
    .jastip-auth .lacak-nota-card label { display: block; margin-bottom: 6px; font-weight: 600; }
    .jastip-auth .lacak-nota-card input {
        width: 100%;
        min-block-size: 44px;
        padding: 10px 12px;
        border: 1px solid var(--jastip-line);
        border-radius: 10px;
        font: inherit;
    }
    .jastip-auth .lacak-nota-card .btn { width: 100%; min-block-size: 44px; }
    .jastip-auth .lacak-nota-card .links { text-align: center; margin-top: 18px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
    .jastip-auth .lacak-nota-card .links a { color: var(--jastip-accent); font-weight: 600; text-decoration: none; }

    .jastip-track { background: var(--jastip-surface); }
    .jastip-track > .navbar {
        position: sticky;
        top: 0;
        z-index: 100;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px var(--jastip-gutter);
        background: white;
        box-shadow: var(--jastip-shadow);
    }
    .jastip-track > .navbar h1 { margin: 0; font-size: 1.05rem; }
    .jastip-track > .navbar h1 a { color: inherit; text-decoration: none; }
    .jastip-track > .navbar > .navbar-right { margin-inline-start: auto; display: flex; gap: 10px; align-items: center; }
    .jastip-track > .hero {
        padding: clamp(28px, 6vw, 56px) var(--jastip-gutter);
        background: radial-gradient(ellipse at 85% 0%, #147c61, transparent 68%), #064836;
        color: white;
        text-align: center;
    }
    .jastip-track > .hero h2 { margin: 0 0 8px; }
    .jastip-track > .hero p { margin: 0; color: #e6f5ec; font-weight: 700; letter-spacing: .04em; }
    .jastip-track .lacak-wrap { display: grid; gap: 16px; padding: 20px var(--jastip-gutter) 40px; max-width: 960px; margin: 0 auto; }
    .jastip-track .lacak-summary, .jastip-track .card { background: white; border-radius: var(--jastip-radius); box-shadow: var(--jastip-shadow); padding: 18px; }
    .jastip-track .lacak-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
    .jastip-track .muted, .jastip-track .lacak-meta .muted { display: block; color: var(--jastip-muted); font-size: .8rem; margin-bottom: 4px; }
    .jastip-track .lacak-meta small { display: block; color: var(--jastip-muted); }
    .jastip-track .lacak-status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .jastip-track .lacak-status-grid .card h3 { margin: 0 0 8px; font-size: 1rem; }
    .jastip-track .lacak-status-grid .card p { margin: 0; }
    .jastip-track .lacak-status-grid .card.is-done { border: 1px solid #b7e4c7; background: #f3fbf6; }
    .jastip-track .resi { margin-top: 8px; }
    .jastip-track .lacak-timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--jastip-line); }
    .jastip-track .lacak-timeline li { padding: 0 0 16px 16px; position: relative; }
    .jastip-track .lacak-timeline li::before {
        content: "";
        position: absolute;
        left: -7px;
        top: 4px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--jastip-accent);
    }
    .jastip-track .lacak-timeline time { display: block; color: var(--jastip-muted); font-size: .8rem; }
    .jastip-track .lacak-timeline strong { display: block; }
    .jastip-track .lacak-help { text-align: center; }
    .jastip-track .lacak-help a { color: var(--jastip-accent); font-weight: 600; }

@media screen and (min-width: 720px) {
    .jastip-home .lacak-home-box { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
}

@media screen and (max-width: 719.98px) {
    .jastip-home .lacak-home-form { grid-template-columns: minmax(0, 1fr); }
    .jastip-track .lacak-status-grid { grid-template-columns: minmax(0, 1fr); }
}
