:root {
    --ink: #14171f;
    --muted: #667085;
    --line: #d9dde5;
    --paper: #ffffff;
    --soft: #f7f8fb;
    --pink: #f23f82;
    --yellow: #ffbe2e;
    --cyan: #20bfd3;
    --green: #38a169;
}

body {
    background:
        linear-gradient(180deg, #fff 0, #f7f8fb 190px, #f1f3f7 100%);
    color: var(--ink);
}

.app-shell {
    min-height: 100vh;
}

.app-navbar {
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(20, 23, 31, .08);
    box-shadow: 0 10px 28px rgba(20, 23, 31, .05);
    backdrop-filter: blur(12px);
}

.navbar-brand {
    font-weight: 700;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: #fff;
    font-size: .85rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--pink), var(--yellow) 52%, var(--cyan));
    box-shadow: 0 8px 18px rgba(242, 63, 130, .25);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.app-main {
    max-width: 1480px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(20, 23, 31, .08);
    border-radius: 8px;
    padding: 1.25rem;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(20, 23, 31, .96), rgba(64, 50, 74, .96)),
        linear-gradient(90deg, var(--pink), var(--yellow), var(--cyan));
    box-shadow: 0 16px 44px rgba(20, 23, 31, .14);
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -70px;
    width: 220px;
    height: 220px;
    border: 30px solid rgba(255, 255, 255, .11);
    border-radius: 50%;
}

.page-hero > * {
    position: relative;
    z-index: 1;
}

.page-hero .text-secondary,
.page-hero .muted {
    color: rgba(255, 255, 255, .74) !important;
}

.metric-card,
.action-card,
.panel-card {
    background: var(--paper);
    border: 1px solid rgba(20, 23, 31, .08);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(20, 23, 31, .06);
}

.metric-card {
    padding: 1.1rem;
    min-height: 132px;
    border-top: 4px solid var(--cyan);
}

.metric-card.metric-pink {
    border-top-color: var(--pink);
}

.metric-card.metric-yellow {
    border-top-color: var(--yellow);
}

.metric-card.metric-green {
    border-top-color: var(--green);
}

.metric-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: #fff;
    background: var(--ink);
}

.metric-value {
    font-size: 2rem;
    line-height: 1;
    font-weight: 760;
}

.action-card {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem;
    color: var(--ink);
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.action-card:hover {
    color: var(--ink);
    border-color: rgba(242, 63, 130, .35);
    box-shadow: 0 16px 36px rgba(20, 23, 31, .1);
    transform: translateY(-2px);
}

.action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--cyan));
}

.panel-card {
    padding: 1rem;
}

.progress-thin {
    height: .55rem;
    background: #eceff4;
}

.table img.thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    background: #e9ecef;
}

.sortable-row {
    cursor: grab;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.image-item {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: .5rem;
}

.image-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
}

.catalog-page {
    background: #fff;
}

.catalog-hero {
    padding: 2rem 0 1rem;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1rem;
}

.catalog-card {
    border: 1px solid #e6e8eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.catalog-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #f1f3f5;
}

.catalog-card-body {
    padding: 1rem;
}

.catalog-card h2 {
    font-size: 1.05rem;
    margin: 0 0 .35rem;
}

.muted {
    color: #6c757d;
    font-size: .9rem;
}

.price-row {
    display: grid;
    gap: .35rem;
    margin-top: .75rem;
}

.price-row span {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.pdf-grid {
    display: block;
}

.pdf-grid .catalog-card {
    display: inline-block;
    vertical-align: top;
    width: 31%;
    margin: 0 1% 12px 0;
}
