:root {
    --accent: #f14635;
    --accent-light: #f9ecec;
    --blue: #005cff;
    --bg: #f2f3f5;
    --border: #ebebeb;
}

* {
    -webkit-tap-highlight-color: transparent;
}

body,
html {
    overscroll-behavior-y: contain;
    user-select: none;
    background-color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
}

.screen-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.safe-top {
    padding-top: env(safe-area-inset-top, 0px) !important;
}

.screen-hidden-right {
    transform: translateX(100%);
}

.screen-hidden-left {
    transform: translateX(-30%);
}

.screen-active {
    transform: translateX(0);
    z-index: 20;
}

/* Bottom nav height compensation */
.has-bottom-nav {
    padding-bottom: 60px;
}

/* Bottom nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    height: 100%;
    font-size: 10px;
    color: #aaa;
    position: relative;
}

.bottom-nav-item.active {
    color: var(--accent);
}

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
}

.badge-dot {
    position: absolute;
    top: 8px;
    right: calc(50% - 16px);
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

/* Image zoom */
.image-zoom-container {
    width: 100%;
    overflow: hidden;
    background: transparent;
    position: relative;
    touch-action: none;
    border-radius: 0;
}

.image-zoom-container img {
    width: 100%;
    height: auto;
    position: relative;
    transform-origin: 0 0;
    will-change: transform;
    display: block;
}

/* ID Card thumbnail in gov screen */
.id-card-thumb {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(135deg, #c8e6c4 0%, #b2dfdb 50%, #e0f2f1 100%);
    display: flex;
    flex-direction: column;
    padding: 4px;
    gap: 2px;
    overflow: hidden;
}

.id-card-thumb-flag {
    display: flex;
    gap: 2px;
    align-items: center;
}

.id-card-thumb-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.id-card-thumb-line {
    height: 2px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 1px;
}

/* Avatar initials */
.avatar-circle {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #555 0%, #333 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.hide {
    display: none !important;
}

/* NEW badge */
.new-badge {
    background: #e84135;
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.active-press {
    transition: transform 0.12s;
}

.active-press:active {
    transform: scale(0.94);
}

/* Tab pill bg */
#tab-bg {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(50% - 4px);
    height: calc(100% - 4px);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Service grid icon containers */
.svc-icon {
    color: var(--accent);
}

.admin-filter-btn {
    background: #fff;
    color: #9ca3af;
    border: 1px solid #f3f4f6;
    transition: all 0.2s;
}

.admin-filter-btn.active {
    background: #005cff;
    color: #fff;
    border-color: #005cff;
    box-shadow: 0 4px 12px rgba(0, 92, 255, 0.2);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}