:root {
    --bg: #12151A;
    --surface: #1C2026;
    --surface-2: #262B32;
    --border: #383F47;
    --text: #F2EFEA;
    --text-muted: #98A1AA;
    --accent: #E2592F;
    --accent-2: #E5B23E;
    --success: #5FBE76;
    --topbar-h: 56px;
    --tabbar-h: 64px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Vazirmatn', sans-serif;
    min-height: 100%;
}

a {
    color: inherit;
}

.app-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient( rgba(0,0,0,.25), rgba(0,0,0,.35) ), url('/images/gym-hero-mobile.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (min-width: 768px) {
    .app-backdrop {
        background-image: linear-gradient(180deg, rgba(12,15,18,.60) 0%, rgba(12,15,18,.88) 55%, rgba(12,15,18,.97) 100%), url('/images/gym-hero-desktop.png');
    }
}

.app-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    padding-top: env(safe-area-inset-top);
    background: rgba(18, 21, 26, .55);
    backdrop-filter: blur(28px) saturate(1.6);
    -webkit-backdrop-filter: blur(28px) saturate(1.6);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    z-index: 50;
}
.topbar-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
}

    .topbar-brand .topbar-icon {
        width: 20px;
        height: 20px;
        color: var(--accent);
    }

.topbar-title {
    font-size: 12px;
    color: var(--text-muted);
}

.app-content {
    padding: calc(var(--topbar-h) + env(safe-area-inset-top) + 20px) 0 calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 24px);
    min-height: 100vh;
}

.app-tabbar {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    height: var(--tabbar-h);
    display: flex;
    background: rgba(18, 21, 26, .55);
    backdrop-filter: blur(28px) saturate(1.6);
    -webkit-backdrop-filter: blur(28px) saturate(1.6);
    border-top: 1px solid rgba(255, 255, 255, .07);
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 50;
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 11px;
}

    .tab-item svg {
        width: 21px;
        height: 21px;
    }

    .tab-item.active {
        color: var(--text);
    }

.tab-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    margin-top: 1px;
}

.tab-item.active .tab-dot {
    background: var(--accent);
    border-color: var(--accent);
}

.tab-item.disabled {
    opacity: .38;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

.dir-ltr {
    direction:ltr;
}