html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 .1rem white, 0 0 0 .25rem rgba(145, 67, 84, .25);
}

body {
    background: #1d1b20;
    color: #222;
    font-size: 13px;
    letter-spacing: 0;
}

.login-body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 18% 18%, rgba(210, 90, 42, .16), transparent 34%), #f2eee5;
}

.login-shell {
    width: 100%;
    max-width: 360px;
    padding: 28px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 28px;
    box-shadow: 0 24px 80px rgba(79, 42, 112, .18);
    backdrop-filter: blur(12px);
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-logo {
    text-align: center;
    margin-bottom: 18px;
}

.login-logo img {
    width: 260px;
    max-width: 100%;
    height: auto;
}

.login-form .form-control,
.login-form .form-select,
.login-form .form-check-input,
.login-form .btn {
    border-radius: 999px;
}

.auth-shell-wide {
    max-width: 560px;
}

.auth-title {
    color: #2c173f;
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 6px;
}

.auth-help {
    color: #766b75;
    text-align: center;
    margin-bottom: 18px;
}

.auth-links a {
    color: #6b3476;
    font-weight: 700;
}

.marketplace-auth-button {
    border-radius: 999px;
    min-height: 44px;
    font-weight: 700;
}

.marketplace-auth-button.ml {
    color: #2d3277;
    background: #ffe600;
}

.marketplace-auth-button.gs {
    color: #fff;
    background: #6e508f;
}

.marketplace-account-summary {
    display: grid;
    gap: 4px;
    padding: 18px;
    margin-bottom: 20px;
    border-radius: 18px;
    background: #f5efe7;
    color: #2c173f;
}

.login-form .form-control {
    min-height: 44px;
    border-color: rgba(79, 42, 112, .2);
    box-shadow: 0 8px 20px rgba(79, 42, 112, .06);
}

.btn-primary {
    background: linear-gradient(135deg, #4f2a70, #d25a2a);
    border: 0;
    box-shadow: 0 12px 24px rgba(153, 64, 80, .22);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #5d337f, #df6635);
}

.admin-body {
    padding-top: 64px;
}

#wrapper {
    min-height: 100vh;
}

.admin-navbar {
    min-height: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
}

.admin-brand {
    width: auto;
    display: flex;
    align-items: center;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .2px;
}

.admin-brand img {
    width: 128px;
    height: auto;
    filter: brightness(1.15);
}

#page-wrapper {
    min-height: calc(100vh - 64px);
    background: #f6f3ec;
    padding: 24px;
}

.side-nav {
    background: #1e1727;
    color: #fff;
    z-index: 1020;
}

.side-menu .nav-link {
    color: #d7cedf;
    border-radius: 16px;
}

.side-menu .nav-link:hover,
.side-menu .nav-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.page-title {
    margin-bottom: 18px;
    border-bottom: 0;
    background: #fff;
    border-radius: 24px;
    padding: 20px 24px;
    box-shadow: 0 14px 36px rgba(38, 28, 42, .08);
}

.page-title h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    color: #2c173f;
}

.page-title p {
    color: #777;
    margin: 4px 0 12px;
}

@media (min-width: 992px) {
    #wrapper {
        padding-left: 252px;
    }

    .side-nav {
        position: fixed;
        top: 64px;
        left: 0;
        width: 252px;
        height: calc(100vh - 64px);
        padding: 18px 14px 14px;
        display: block;
        border-right: 1px solid rgba(255, 255, 255, .08);
        box-shadow: 18px 0 36px rgba(38, 28, 42, .18);
        overflow-y: auto;
    }

    .side-brand {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 104px;
        margin-bottom: 12px;
        border-radius: 24px;
        background: #f2eee5;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65);
    }

    .side-brand img {
        width: 176px;
        height: auto;
        display: block;
    }

    .side-menu {
        display: block;
    }

    .side-menu .nav-item {
        width: 100%;
    }

    .side-menu .nav-link {
        padding: 12px 18px;
        margin-bottom: 4px;
    }
}

@media (max-width: 991.98px) {
    .side-brand {
        display: none;
    }

    .side-nav {
        width: 100%;
        padding: 10px 16px;
        box-shadow: 0 14px 30px rgba(38, 28, 42, .16);
    }

    .side-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .side-menu .nav-link {
        padding: 9px 12px;
        background: rgba(255, 255, 255, .08);
    }

    .table-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .parameters-filters {
        grid-template-columns: 1fr;
        max-width: none;
    }
}

.admin-panel {
    min-height: 126px;
    border-radius: 24px;
    padding: 22px;
    color: #fff;
    box-shadow: 0 18px 34px rgba(38, 28, 42, .16);
    position: relative;
    overflow: hidden;
}

.admin-panel::after {
    content: "";
    position: absolute;
    right: -34px;
    top: -34px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
}

.metric-value {
    font-size: 42px;
    line-height: 1;
    font-weight: 700;
}

.metric-label {
    font-size: 15px;
    font-weight: 700;
}

.admin-panel small {
    opacity: .85;
}

.panel-primary {
    background: linear-gradient(135deg, #4f2a70, #74335f);
}

.panel-green {
    background: linear-gradient(135deg, #31785a, #59a676);
}

.panel-yellow {
    background: linear-gradient(135deg, #d25a2a, #e2843f);
}

.panel-red {
    background: linear-gradient(135deg, #994050, #c54f43);
}

.admin-card {
    background: #fff;
    border: 1px solid rgba(38, 28, 42, .06);
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(38, 28, 42, .1);
    overflow: hidden;
}

.admin-tabs {
    padding: 14px 18px 0;
    border-bottom-color: #eadfd6;
}

.admin-tabs .nav-link {
    border-radius: 999px;
    color: #6a5d68;
    margin-right: 8px;
    border: 1px solid transparent;
}

.admin-tabs .nav-link.active {
    color: #4f2a70;
    background: #f3e8e3;
    border-color: #eadfd6;
    font-weight: 700;
}

.admin-tab-content {
    border: 0;
    padding: 20px;
    background: #fff;
}

.table-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.table-toolbar h4 {
    margin: 0;
}

.table-filter {
    max-width: 320px;
    border-radius: 999px;
    min-height: 42px;
    border-color: #eadfd6;
    box-shadow: 0 8px 18px rgba(79, 42, 112, .05);
}

.parameters-filters {
    display: grid;
    grid-template-columns: minmax(150px, 190px) minmax(150px, 220px) minmax(190px, 260px) auto;
    gap: 10px;
    align-items: end;
    max-width: 820px;
    width: 100%;
}

.parameters-filters .form-label {
    margin-bottom: 4px;
    color: #6c5f72;
    font-size: 12px;
    font-weight: 700;
}

.parameters-filters .form-control,
.parameter-clear-filters {
    border-radius: 999px;
    min-height: 42px;
}

.parameters-filters .table-filter {
    max-width: none;
}

.parameter-clear-filters {
    padding-inline: 18px;
    border-color: #eadfd6;
}

.section-help {
    margin: 2px 0 0;
    color: #766b75;
}

.admin-table {
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table thead th {
    color: #5f5160;
    background: #fbf8f4;
    border-bottom: 1px solid #eadfd6;
    font-size: 12px;
    text-transform: uppercase;
}

.admin-table tbody tr {
    transition: background .15s ease, transform .15s ease;
}

.admin-table tbody tr:hover {
    background: #fff7f2;
}

.admin-table td,
.admin-table th {
    padding: 12px 14px;
}

.modal-content {
    border: 0;
}

.modal-header,
.modal-footer {
    border-color: #f0e7df;
}

.form-control,
.form-select {
    border-radius: 14px;
    border-color: #e3d8cf;
}

.parameters-table-wrap {
    max-height: 58vh;
    overflow: auto;
}

.parameters-table-wrap thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.seller-publications-card {
    overflow: visible;
}

.seller-posts-table th:first-child,
.seller-posts-table td:first-child {
    width: 104px;
}

.post-image-button,
.post-image-placeholder {
    width: 84px;
    height: 84px;
    border-radius: 18px;
    border: 1px solid #eadfd6;
    background: #f7f2ea;
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(38, 28, 42, .08);
}

.post-image-button {
    padding: 0;
    cursor: zoom-in;
}

.post-image-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-image-placeholder img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: .58;
}

.seller-post-title {
    min-width: 240px;
    max-width: 440px;
}

.klipia-action-button {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid #eadfd6;
    background: #f5efe7;
    display: inline-grid;
    place-items: center;
    padding: 6px;
    box-shadow: 0 10px 20px rgba(38, 28, 42, .08);
}

.klipia-action-button:hover,
.klipia-action-button:focus {
    border-color: #d46336;
    background: #fff7f0;
}

.klipia-action-button img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.image-zoom-modal .modal-body {
    background: #1e1727;
    border-radius: 0 0 24px 24px;
    display: grid;
    place-items: center;
    min-height: 360px;
}

.image-zoom-modal .modal-body img {
    max-width: 100%;
    max-height: 72vh;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .32);
}

.empty-state {
    min-height: 320px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 42px 18px;
    color: #766b75;
}

.empty-state img {
    width: 82px;
    height: 82px;
    object-fit: contain;
    margin-bottom: 14px;
    opacity: .78;
}

.empty-state h5 {
    color: #2c173f;
    font-weight: 800;
    margin-bottom: 6px;
}
