:root {
    --app-blue: #0a5bd8;
    --app-blue-dark: #003e9a;
    --app-green: #159e69;
    --app-gold: #e2b400;
    --app-white: #f7fbff;
    --app-ink: #133150;
    --app-surface: rgba(255, 255, 255, 0.84);
    --app-border: rgba(19, 49, 80, 0.1);
    --app-shadow: 0 20px 50px rgba(8, 44, 99, 0.14);
}

body.app-body {
    background:
        radial-gradient(circle at top left, rgba(10, 91, 216, 0.26), transparent 28%),
        radial-gradient(circle at top right, rgba(226, 180, 0, 0.22), transparent 32%),
        linear-gradient(180deg, #eff8ff 0%, #f9fff5 100%);
    color: var(--app-ink);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

.app-shell {
    min-height: 100vh;
    padding-bottom: 5.5rem;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    backdrop-filter: blur(14px);
    background: rgba(8, 60, 145, 0.85);
    color: #fff;
    box-shadow: 0 8px 24px rgba(5, 25, 60, 0.15);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    opacity: 0.82;
}

.page-title {
    font-size: 1.35rem;
    font-weight: 800;
}

.hero-card,
.app-card,
.stat-card,
.list-card {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    box-shadow: var(--app-shadow);
    border-radius: 1.5rem;
}

.hero-card {
    overflow: hidden;
    position: relative;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: auto -10% -45% auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(226, 180, 0, 0.45), transparent 58%);
}

.hero-gradient {
    background: linear-gradient(135deg, var(--app-blue) 0%, var(--app-green) 100%);
    color: #fff;
}

.stat-card {
    padding: 1rem;
    height: 100%;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(19, 49, 80, 0.7);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
}

.progress-trophy {
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    overflow: hidden;
}

.progress-trophy > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffe267 0%, #ffd000 100%);
}

.filter-strip {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scrollbar-width: none;
}

.filter-strip::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    border-radius: 999px;
    border: 1px solid rgba(10, 91, 216, 0.12);
    padding: 0.65rem 0.95rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--app-ink);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.filter-chip.active {
    background: linear-gradient(135deg, var(--app-blue), var(--app-green));
    color: #fff;
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.35rem;
    padding: 0.75rem 0.9rem calc(0.75rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(19, 49, 80, 0.08);
    z-index: 1030;
}

.bottom-nav-link {
    text-align: center;
    color: rgba(19, 49, 80, 0.7);
    text-decoration: none;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.35rem 0.2rem;
    border-radius: 1rem;
}

.bottom-nav-link i {
    display: block;
    font-size: 1.15rem;
    margin-bottom: 0.15rem;
}

.bottom-nav-link.active {
    background: linear-gradient(135deg, rgba(10, 91, 216, 0.14), rgba(21, 158, 105, 0.14));
    color: var(--app-blue);
}

.sticker-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.sticker-tile {
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(19, 49, 80, 0.08);
    padding: 0.9rem;
    box-shadow: 0 12px 28px rgba(10, 60, 120, 0.08);
}

.sticker-number {
    font-size: 1.15rem;
    font-weight: 800;
}

.map-canvas {
    width: 100%;
    height: 380px;
    border-radius: 1.5rem;
}

.table-soft {
    --bs-table-bg: transparent;
}

.qr-card canvas,
.qr-card img {
    max-width: 100%;
}

@media (min-width: 768px) {
    .page-title {
        font-size: 1.65rem;
    }

    .sticker-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .sticker-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
