main > .container {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}

/* --------- Главная страница --------- */
.site-hero {
    background: linear-gradient(135deg, #e8f0ff, #f7fbff);
    padding: 48px 40px;
    border: 1px solid #e5eaf0;
}

.stats-card {
    border: 1px solid #e5eaf0;
}

.info-card {
    background: #fff;
    border: 1px solid #e5eaf0;
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.steps .step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.cta-panel {
    background: linear-gradient(135deg, #0d6efd, #5b9bff);
    color: #fff;
}

.cta-panel-simple {
    background: #f8fbff;
    border: 1px solid #e5eaf0;
}

.metric {
    padding: 16px 8px;
    border: 1px dashed #e5eaf0;
    border-radius: 14px;
    background: #fafcff;
}

.app-navbar {
    backdrop-filter: blur(6px);
    background: linear-gradient(90deg, #0d6efd, #2c7bff) !important;
}

.app-footer {
    border-top: 1px solid #e5eaf0;
    background: linear-gradient(180deg, #f7f9fc, #ffffff);
    box-shadow: 0 -6px 24px rgba(13, 110, 253, 0.05);
}

.brand-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.18));
}

.navbar-nav .nav-link {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    font-weight: 600;
}
.navbar-nav .nav-link:hover {
    opacity: 0.9;
}

.hover-lift {
    transition: transform 180ms ease, box-shadow 180ms ease;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.12);
}

.fade-in {
    animation: fadeIn 400ms ease both;
}
.fade-in-up {
    animation: fadeInUp 500ms ease both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
    .site-hero {
        padding: 32px 24px;
    }
}

/* --- Обновлённые блоки и мобильные стили --- */
.body-content {
    margin-bottom: 64px;
}

.card-glass {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
    border: 1px solid #e6ecf5;
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.08);
}

.auth-card, .form-card {
    max-width: 520px;
    margin: 0 auto;
}

.form-floating > label {
    color: #7b8aa0;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}
.status-new { background: #e8f0ff; color: #0d6efd; }
.status-work { background: #fff4e0; color: #c27c11; }
.status-done { background: #e6f4ea; color: #1b8f46; }
.status-cancel { background: #fde8e8; color: #c62828; }

.order-card {
    border: 1px solid #e6ecf5;
}

.order-meta {
    color: #6c7a92;
    font-size: 13px;
}

.mobile-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mobile-sticky {
    position: sticky;
    bottom: 12px;
    z-index: 9;
}

.badge-light {
    background: #f3f6fb;
    color: #0d6efd;
}

.form-note {
    color: #6c7a92;
    font-size: 13px;
}

.shake {
    animation: shake 220ms ease-in-out 2;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
    75% { transform: translateX(-2px); }
    100% { transform: translateX(0); }
}

@media (max-width: 767px) {
    .navbar-brand {
        font-weight: 700;
    }

    .mobile-scroll {
        overflow-x: auto;
    }

    .brand-logo {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 430px) {
    main > .container {
        padding: 72px 12px 24px;
    }

    .navbar-nav .nav-link {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .site-hero {
        padding: 26px 20px;
    }

    .auth-card, .form-card {
        padding: 20px 18px !important;
        border-radius: 14px !important;
    }

    .mobile-actions {
        flex-direction: column;
    }

    .order-card {
        border-radius: 14px !important;
    }
}