:root {
    --app-bg: #f5f6f8;
    --app-surface: #ffffff;
    --app-text: #16181b;
    --app-muted: #70757d;
    --app-border: #e7e9ed;
    --app-radius: 18px;
    --app-shadow: 0 8px 30px rgba(0,0,0,.06);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--app-bg);
    color: var(--app-text);
}

.app-card {
    background: var(--app-surface);
    border: 0;
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow);
}

.app-button {
    min-height: 48px;
    border-radius: 12px;
    font-weight: 600;
}

.customer-mobile-header,
.mobile-bottom-nav {
    display: none;
}

.mobile-bottom-nav .nav-item-mobile {
    color: #73777f;
    text-decoration: none;
    text-align: center;
    flex: 1;
    font-size: 11px;
    line-height: 1.1;
    padding: 8px 2px 5px;
}

.mobile-bottom-nav .nav-item-mobile i {
    display: block;
    font-size: 21px;
    margin-bottom: 4px;
}

.mobile-bottom-nav .nav-item-mobile.active,
.mobile-bottom-nav .nav-item-mobile:hover {
    color: #111;
}

.book-card {
    overflow: hidden;
    border-radius: 16px;
}

.book-card .card-img-top {
    width: 100%;
    object-fit: cover;
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }

    .customer-desktop-nav {
        display: none !important;
    }

    .customer-mobile-header {
        display: flex;
        position: sticky;
        top: 0;
        z-index: 1030;
        height: calc(58px + env(safe-area-inset-top));
        padding-top: env(safe-area-inset-top);
        background: rgba(255,255,255,.96);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border-bottom: 1px solid var(--app-border);
        align-items: center;
    }

    .customer-mobile-header .inner {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
    }

    .customer-mobile-header .app-title {
        font-weight: 700;
        font-size: 18px;
        text-decoration: none;
        color: var(--app-text);
    }

    .customer-mobile-header .profile-button {
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #111;
        color: white;
        text-decoration: none;
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        z-index: 1040;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255,255,255,.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--app-border);
        padding:
            4px
            8px
            calc(5px + env(safe-area-inset-bottom));
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .card {
        border-radius: var(--app-radius);
    }

    .btn {
        min-height: 46px;
        border-radius: 12px;
    }

    .btn-sm {
        min-height: 36px;
    }

    .form-control,
    .form-select {
        min-height: 48px;
        border-radius: 12px;
        font-size: 16px;
    }

    textarea.form-control {
        min-height: 110px;
    }

    .book-cover {
        height: 260px;
    }

    .mobile-section {
        padding-top: 22px !important;
        padding-bottom: 22px !important;
    }

    .mobile-card-list .card {
        margin-bottom: 14px;
    }

    .table-responsive {
        border-radius: 16px;
    }
}
