:root {
    --bg-dark: #090d16;
    --card-bg: rgba(22, 28, 45, 0.6);
    --border-glass: rgba(255, 255, 255, 0.06);
    --accent-blue: #38bdf8;
    --accent-purple: #a855f7;
    --accent-warning: #f59e0b;
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: 80px; /* Safe padding for bottom menu navbar */
}

/* Header Navbar Layout */
.app-header {
    background: rgba(9, 13, 22, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-title {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Headline Marquee Component */
.headline-bar {
    background: rgba(168, 85, 247, 0.1);
    color: var(--accent-blue);
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-glass);
}

/* Image Slider Component */
.slider-container {
    width: 100%;
    overflow: hidden;
    padding: 15px;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Enables ultra smooth gliding animation movement */
    width: 100%;
}

.slide-item {
    flex: 0 0 100%;
    width: 100%; /* Ensures each slide spans the exact frame width constraint */
    border-radius: 16px;
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
    border: 1px solid var(--border-glass);
}

.slider-wrapper::-webkit-scrollbar {
    display: none;
}

.slide-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    border-radius: 16px;
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
    border: 1px solid var(--border-glass);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 15px;
    border-radius: 0 0 16px 16px;
}

/* Categories Dynamic Grid Layout */
.grid-title {
    padding: 15px 20px 5px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
}

.cat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s;
}

.cat-card:active {
    transform: scale(0.97);
}

.cat-card img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    margin-bottom: 12px;
}

.cat-card p {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Check Item List Design */
.items-container {
    padding: 15px;
}

.item-row {
    background: var(--card-bg);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item-main {
    display: flex;
    align-items: center;
    gap: 15px;
}

.item-row img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.item-info {
    flex: 1;
}

.item-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.item-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.action-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.vpn-badge {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--accent-warning);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    text-align: center;
}

/* Global Sticky Bottom Navigation Panel */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(13, 18, 30, 0.92);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    gap: 4px;
}

.nav-item.active {
    color: var(--accent-blue);
}

.nav-item svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}