#ptr-indicator {
    position: fixed;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 10000;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#ptr-indicator.visible {
    pointer-events: auto;
}

.ptr-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(6,182,212,0.3);
    border-top-color: #06b6d4;
    border-radius: 50%;
    transition: transform 0.1s ease;
}

#ptr-indicator.refreshing .ptr-spinner {
    animation: ptr-spin 0.8s linear infinite;
}

@keyframes ptr-spin {
    to { transform: rotate(360deg); }
}

.ptr-text {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
}

#ptr-indicator.ready .ptr-text {
    color: #06b6d4;
}

#offline-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    text-align: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    z-index: 10001;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
}

#offline-banner.visible {
    transform: translateY(0);
}

.native-transition-ready {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.page-exit {
    opacity: 0;
    transform: translateX(-8px);
}

.native-enhanced {
    -webkit-tap-highlight-color: transparent;
}

.is-native-app {
    -webkit-touch-callout: none;
    overscroll-behavior-y: none;
}

.is-native-app button,
.is-native-app a,
.is-native-app [role="button"] {
    -webkit-tap-highlight-color: transparent;
}

.is-native-app button:active,
.is-native-app [role="button"]:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
}

@supports (padding-top: env(safe-area-inset-top)) {
    .is-native-app nav:first-of-type,
    .is-native-app .fixed.top-0 {
        padding-top: calc(env(safe-area-inset-top) + 8px);
    }

    .is-native-app .fixed.bottom-0 {
        padding-bottom: env(safe-area-inset-bottom);
    }
}
