:root {
    --bg-soft: #f7f9fc;
    --card-bg: #ffffff;
    --text-main: #1d2433;
    --text-muted: #6c7890;
    --primary: #4f7cff;
    --primary-hover: #3f6df6;
    --primary-soft: #eef4ff;
    --border-soft: #e7edf5;
    --shadow-soft: 0 12px 30px rgba(43, 63, 116, 0.08);
    --shadow-card: 0 20px 50px rgba(59, 88, 157, 0.10);
}

html, body {
    min-height: 100%;
}

    body.app-body {
        background: radial-gradient(circle at top left, #eef5ff 0%, transparent 30%), radial-gradient(circle at top right, #f8f1ff 0%, transparent 28%), var(--bg-soft);
        color: var(--text-main);
        font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    }

.brand-badge {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #7aa7ff, #4f7cff);
    color: white;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(79, 124, 255, 0.24);
}

.auth-shell {
    min-height: calc(100vh - 74px);
    display: flex;
    align-items: center;
    padding: 48px 0;
}

.auth-card-wrap {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.auth-card {
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.auth-left {
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.98)), linear-gradient(135deg, #eef4ff, #f8f1ff);
    padding: 52px 40px;
    height: 100%;
}

.auth-right {
    background: #fff;
    padding: 52px 40px;
    height: 100%;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border-soft);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
}

.auth-title {
    font-size: 40px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 14px;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 520px;
}

.feature-list {
    display: grid;
    gap: 14px;
}

.feature-item {
    background: rgba(255,255,255,0.88);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    padding: 16px 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    box-shadow: var(--shadow-soft);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
}

.feature-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.feature-text {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.form-title {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 8px;
}

.form-subtitle {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
}

.form-control {
    border-radius: 16px;
    min-height: 54px;
    padding: 14px 16px;
    border: 1px solid var(--border-soft);
    background: #fbfcff;
    box-shadow: none !important;
}

    .form-control:focus {
        border-color: #9cb8ff;
        background: #fff;
        box-shadow: 0 0 0 0.2rem rgba(79,124,255,0.12) !important;
    }

.input-icon-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #8ea0be;
    z-index: 2;
}

.input-with-icon {
    padding-left: 46px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #8191ad;
    font-size: 18px;
    cursor: pointer;
    z-index: 3;
}

.btn-primary-soft {
    background: linear-gradient(135deg, #5d87ff, #4f7cff);
    border: 0;
    color: #fff;
    min-height: 54px;
    border-radius: 16px;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(79,124,255,0.24);
}

    .btn-primary-soft:hover {
        background: linear-gradient(135deg, #4e78f9, #3f6df6);
        color: #fff;
    }

.auth-footer-text {
    color: var(--text-muted);
    font-size: 14px;
}

.auth-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

    .auth-link:hover {
        text-decoration: underline;
    }

.alert-soft {
    border-radius: 16px;
    border: 1px solid #ffd7d7;
    background: #fff5f5;
    color: #a33a3a;
    padding: 14px 16px;
}

.text-danger.small {
    display: block;
    margin-top: 6px;
}

.validation-summary-errors ul,
.validation-summary-valid ul {
    margin: 0;
    padding-left: 18px;
}

.hero-box {
    background: white;
    border: 1px solid var(--border-soft);
    border-radius: 28px;
    box-shadow: var(--shadow-card);
    padding: 48px;
}

.hero-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 14px;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.7;
}

@media (max-width: 991.98px) {
    .auth-left,
    .auth-right {
        padding: 32px 22px;
    }

    .auth-title {
        font-size: 32px;
    }

    .form-title {
        font-size: 26px;
    }

    .hero-box {
        padding: 28px;
    }

    .hero-title {
        font-size: 32px;
    }
}
/*--------------------------------------------*/
.page-section {
    padding: 36px 0 56px;
}

.page-header-card {
    background: white;
    border: 1px solid var(--border-soft);
    border-radius: 28px;
    box-shadow: var(--shadow-card);
    padding: 32px;
    margin-bottom: 24px;
}

.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border-soft);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
}

.page-title {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 0;
}

.stat-card,
.content-card {
    background: white;
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.stat-card {
    padding: 22px;
    height: 100%;
}

.stat-label {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
}

.quick-card {
    background: white;
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    padding: 24px;
    height: 100%;
}

.quick-card-title {
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 8px;
}

.quick-card-text {
    color: var(--text-muted);
    margin-bottom: 18px;
}

.table-card {
    background: white;
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.table-card-header {
    padding: 22px 24px;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.table-card-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
}

.table-card-subtitle {
    color: var(--text-muted);
    margin: 4px 0 0;
    font-size: 14px;
}

.table-modern {
    margin: 0;
}

    .table-modern thead th {
        background: #f8faff;
        border-bottom: 1px solid var(--border-soft);
        color: #57647b;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: .04em;
        padding: 16px 18px;
    }

    .table-modern tbody td {
        padding: 18px;
        vertical-align: middle;
        border-top: 1px solid #f1f4f8;
    }

    .table-modern tbody tr:hover {
        background: #fafcff;
    }

.badge-soft {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--primary);
    font-weight: 700;
    font-size: 12px;
}

.empty-box {
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted);
}

.empty-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
}

.form-card {
    background: white;
    border: 1px solid var(--border-soft);
    border-radius: 28px;
    box-shadow: var(--shadow-card);
    padding: 32px;
}

.textarea-soft {
    min-height: 120px;
    resize: vertical;
}

@media (max-width: 991.98px) {
    .page-title {
        font-size: 28px;
    }

    .page-header-card,
    .form-card {
        padding: 24px;
    }
}
/*----------------------------------------------*/
.product-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    overflow: hidden;
}

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 35px rgba(43, 63, 116, 0.14) !important;
    }

.product-card-title {
    font-size: 15px;
    line-height: 1.45;
    min-height: 44px;
}

.product-details-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 28px;
    box-shadow: var(--shadow-card);
    padding: 28px;
}

.product-image-box {
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.product-details-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.product-info-box {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-article {
    color: var(--text-muted);
    font-size: 14px;
}

    .product-article span {
        color: var(--text-main);
        font-weight: 600;
    }

.product-details-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
}

.product-chip {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    background: #f3f7fd;
    color: #38507d;
    font-weight: 600;
    font-size: 14px;
}

.product-chip-primary {
    background: #eef4ff;
    color: var(--primary);
}

.price-block {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.product-price-current {
    font-size: 34px;
    font-weight: 800;
    color: #17824f;
    line-height: 1.1;
}

.product-price-old {
    font-size: 18px;
    color: #99a3b5;
    text-decoration: line-through;
}

.product-description-box {
    background: #fbfcff;
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    padding: 20px;
}

.product-section-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
}

.product-description-text {
    color: #4e5d76;
    line-height: 1.75;
}

@media (max-width: 991.98px) {
    .product-details-card {
        padding: 20px;
    }

    .product-image-box {
        min-height: 320px;
    }

    .product-details-title {
        font-size: 28px;
    }

    .product-price-current {
        font-size: 28px;
    }
}
.form-control,
.form-select {
    border-radius: 16px;
    min-height: 54px;
    padding: 14px 16px;
    border: 1px solid var(--border-soft);
    background: #fbfcff;
    box-shadow: none !important;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #9cb8ff;
        background: #fff;
        box-shadow: 0 0 0 0.2rem rgba(79,124,255,0.12) !important;
    }

.floating-cart-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1050;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #5d87ff, #4f7cff);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 16px 35px rgba(79,124,255,0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    min-width: 170px;
}

    .floating-cart-btn:hover {
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 20px 40px rgba(79,124,255,0.34);
    }

.floating-cart-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}

.floating-cart-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.floating-cart-count {
    font-size: 13px;
    opacity: 0.92;
}

.floating-cart-sum {
    font-size: 15px;
    font-weight: 800;
}

@media (max-width: 767.98px) {
    .floating-cart-btn {
        right: 16px;
        bottom: 16px;
        padding: 12px 14px;
        min-width: auto;
    }

    .floating-cart-meta {
        display: none;
    }
}