.products-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 56px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(23, 19, 49, 0.72);
    border: 1px solid rgba(166, 136, 255, 0.28);
    box-shadow: 0 10px 24px rgba(4, 6, 18, 0.42);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-page-name {
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #eef1ff;
    text-decoration: none;
}

.products-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.products-shell {
    position: relative;
    z-index: 1;
    padding: 20px 12px 34px;
}

.products-top-glass {
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 20px;
    box-shadow: 0 16px 32px rgba(21, 45, 79, 0.12);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.products-title-block {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.products-title {
    font-family: 'Syne', sans-serif;
    font-size: 30px;
    line-height: 1;
    letter-spacing: -0.03em;
}

.products-add-btn {
    width: 100%;
    justify-content: center;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
}

.products-sub {
    color: #5f6f8a;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.viewer-badge {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.82);
    color: #415272;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.products-search-wrap {
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(21, 45, 79, 0.1);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    padding: 10px 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.products-search-wrap i {
    font-size: 16px;
    color: #5f6f8a;
}

.products-search-wrap input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #1e2e4b;
}

.chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.chip {
    border: 1px solid rgba(255, 255, 255, 0.74);
    background: rgba(255, 255, 255, 0.56);
    color: #425372;
    font-weight: 700;
    font-size: 12px;
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(21, 45, 79, 0.08);
}

.chip.active {
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #f5576c 100%);
    border-color: transparent;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.product-card {
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 18px;
    box-shadow: 0 16px 28px rgba(21, 45, 79, 0.11);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    overflow: hidden;
}

.product-media-wrap {
    position: relative;
}

.product-media {
    aspect-ratio: 16/10;
    width: 100%;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #dce7ff, #ffdce6);
}

.product-price-pill {
    position: absolute;
    top: 10px;
    right: 10px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.38);
    color: #fff;
    font-weight: 800;
    font-size: 11px;
    border-radius: 999px;
    padding: 8px 12px;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.product-status-pill {
    position: absolute;
    top: 10px;
    left: 10px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(16, 24, 38, 0.45);
    color: #fff;
    font-weight: 800;
    font-size: 10px;
    border-radius: 999px;
    padding: 7px 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.product-status-pill i {
    font-size: 10px;
}

.product-status-pill.status-active {
    background: rgba(20, 140, 84, 0.55);
}

.product-status-pill.status-maintenance {
    background: rgba(204, 131, 16, 0.58);
}

.product-status-pill.status-risky {
    background: rgba(171, 37, 57, 0.6);
}

.add-cart-btn {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: rgba(20, 26, 40, 0.45);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    border-radius: 12px;
    padding: 9px 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.client-card-actions {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.client-card-actions .add-cart-btn,
.client-card-actions .buy-now-btn {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.64);
    color: #fff;
    font-weight: 800;
    font-size: 11px;
    border-radius: 12px;
    padding: 9px 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.client-card-actions .add-cart-btn {
    background: rgba(20, 26, 40, 0.45);
}

.client-card-actions .buy-now-btn {
    background: linear-gradient(135deg, rgba(95, 122, 233, 0.9), rgba(237, 91, 127, 0.88));
    border-color: rgba(255, 255, 255, 0.74);
}

.add-cart-btn:disabled {
    opacity: 0.62;
    cursor: not-allowed;
    background: rgba(16, 22, 34, 0.36);
}

.client-card-actions .add-cart-btn:disabled,
.client-card-actions .buy-now-btn:disabled {
    opacity: 0.62;
    cursor: not-allowed;
    background: rgba(16, 22, 34, 0.36);
}

.admin-card-actions {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    gap: 8px;
}

.card-btn {
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: rgba(20, 26, 40, 0.45);
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.card-btn-delete {
    background: rgba(173, 36, 58, 0.55);
}

.product-body {
    padding: 12px;
    display: grid;
    gap: 10px;
}

.product-heading {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px;
    align-items: center;
}

.product-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 16px rgba(16, 36, 66, 0.16);
}

.product-heading-text {
    min-width: 0;
}

.product-category-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 800;
    color: #365280;
    background: linear-gradient(140deg, rgba(240, 247, 255, 0.96), rgba(232, 242, 255, 0.78));
    border: 1px solid rgba(167, 192, 226, 0.56);
    border-radius: 999px;
    padding: 6px 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.product-category-chip i {
    font-size: 11px;
    color: #4d69a3;
}

.product-meta {
    display: grid;
    gap: 7px;
}

.product-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
    color: #2a3f63;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(199, 214, 236, 0.8);
    border-radius: 10px;
    padding: 8px 10px;
}

.product-meta-item i {
    color: #5a78ad;
    font-size: 14px;
    flex: none;
}

.product-meta-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-meta-item.key-item {
    border-color: rgba(185, 204, 233, 0.88);
    background: linear-gradient(145deg, rgba(245, 249, 255, 0.9), rgba(238, 245, 255, 0.84));
    color: #32507d;
}

.product-meta-item.key-item i {
    color: #4f6ca5;
}

.status-item.status-active {
    border-color: rgba(158, 220, 184, 0.8);
    background: rgba(227, 250, 237, 0.74);
    color: #1f7d4e;
}

.status-item.status-active i {
    color: #1f7d4e;
}

.status-item.status-maintenance {
    border-color: rgba(242, 213, 156, 0.85);
    background: rgba(255, 246, 224, 0.78);
    color: #9b6916;
}

.status-item.status-maintenance i {
    color: #9b6916;
}

.status-item.status-risky {
    border-color: rgba(245, 184, 196, 0.82);
    background: rgba(255, 238, 243, 0.8);
    color: #b53e59;
}

.status-item.status-risky i {
    color: #b53e59;
}

.products-empty {
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 16px;
    color: #5f6f8a;
    text-align: center;
    font-weight: 600;
    padding: 18px;
}

.hidden {
    display: none !important;
}

@media (max-width: 767px) {
    .products-top-glass {
        align-items: flex-start;
    }

    .viewer-badge {
        margin-top: 2px;
    }

    .client-card-actions .add-cart-btn,
    .client-card-actions .buy-now-btn {
        font-size: 10px;
        padding: 8px 7px;
    }
}

@media (min-width: 640px) {
    .products-shell {
        padding: 24px;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .products-title-block {
        gap: 6px;
    }

    .products-add-btn {
        width: auto;
        justify-content: center;
        align-self: flex-start;
    }
}

@media (min-width: 1200px) {
    .products-shell {
        padding: 26px;
    }

    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Final dark-neon balance pass */
.admin-page-name,
.products-title {
    color: #eef1ff;
}

.products-sub {
    color: #aeb6e3;
}

.products-top-glass,
.products-search-wrap,
.chip,
.product-card,
.products-empty {
    background: rgba(23, 19, 49, 0.7);
    border-color: rgba(166, 136, 255, 0.3);
    box-shadow: 0 14px 30px rgba(4, 6, 18, 0.5);
}

.viewer-badge {
    background: rgba(92, 74, 196, 0.28);
    border-color: rgba(186, 151, 255, 0.45);
    color: #ece7ff;
}

.products-search-wrap i {
    color: #acb4e2;
}

.products-search-wrap input {
    color: #eef1ff;
}

.products-search-wrap input::placeholder {
    color: #97a2d7;
}

.chip {
    color: #cad2f5;
}

.chip.active {
    background: linear-gradient(135deg, rgba(106, 80, 255, 0.92), rgba(159, 74, 255, 0.88));
}

.product-body {
    background: rgba(20, 16, 42, 0.78);
}

.product-category-chip,
.product-meta-item,
.product-meta-item.key-item {
    background: rgba(34, 28, 69, 0.72);
    border-color: rgba(166, 136, 255, 0.4);
    color: #dde2ff;
}

.product-category-chip i,
.product-meta-item i {
    color: #b9c2f3;
}

.products-empty {
    color: #b8c0ec;
}

/* Mobile dark-neon guard */
@media (max-width: 767px) {
    .products-top-glass,
    .products-search-wrap,
    .product-card,
    .product-body,
    .products-empty,
    .product-meta-item,
    .product-category-chip {
        background: rgba(23, 19, 49, 0.78) !important;
        color: #eef1ff !important;
        border-color: rgba(166, 136, 255, 0.28) !important;
    }
}

