.ad-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.ad-overview-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    padding: 18px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 11px;
}

.ad-overview-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 11px;
    background: #DDF7F1;
    color: #0D9B88;
    font-size: 17px;
}

.ad-overview-icon.promotion {
    background: #FFF3D9;
    color: #B97C16;
}

.ad-overview-card div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ad-overview-card div span {
    color: var(--muted);
    font-size: 11px;
}

.ad-overview-card strong {
    color: var(--navy);
    font-family: "Manrope", sans-serif;
    font-size: 22px;
}

.ads-panel {
    padding: 22px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 11px;
}

.ads-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.ads-heading h2 {
    color: var(--navy);
    font-family: "Manrope", sans-serif;
    font-size: 17px;
    font-weight: 800;
}

.ads-heading p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

.ads-local-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 10px;
}

.ads-status {
    padding: 24px;
    border: 1px dashed var(--border);
    border-radius: 9px;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
}

.ads-status:empty {
    display: none;
}

.ads-status.error {
    border-color: #F1C2C2;
    background: #FFF7F7;
    color: #A63E3E;
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ad-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: white;
}

.ad-media {
    position: relative;
    background: #13293F;
}

.ad-primary-media {
    display: flex;
    width: 100%;
    aspect-ratio: 16 / 10;
    align-items: center;
    justify-content: center;
    background: #13293F;
}

.ad-primary-media video,
.ad-primary-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-image-gallery {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 9px;
    background: white;
}

.ad-image-gallery img {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    border-radius: 6px;
    object-fit: cover;
}

.ad-no-media {
    padding: 16px;
    color: white;
    font-size: 11px;
}

.ad-badge {
    position: absolute;
    top: 11px;
    left: 11px;
    padding: 6px 9px;
    border-radius: 20px;
    background: rgba(16, 36, 58, .86);
    color: white;
    font-size: 9px;
    font-weight: 800;
}

.ad-badge.promotion {
    background: #F59E0B;
    color: #392607;
}

.ad-details {
    padding: 15px;
}

.ad-details h3 {
    overflow: hidden;
    color: var(--navy);
    font-size: 14px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ad-category {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
}

.ad-description {
    display: -webkit-box;
    min-height: 34px;
    overflow: hidden;
    margin-top: 10px;
    color: #6D7B8A;
    font-size: 10px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ad-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 13px;
    margin-top: 12px;
    border-top: 1px solid #F0F3F6;
}

.ad-price {
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
}

.ad-stock {
    color: var(--muted);
    font-size: 10px;
}

.ad-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.ad-actions a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--text);
    font-size: 10px;
    font-weight: 700;
}

.ad-actions a:first-child {
    flex: 1;
    border-color: var(--teal);
    background: var(--teal);
    color: var(--navy);
}

.ad-actions a:hover {
    filter: brightness(.97);
}

@media (max-width: 1050px) {
    .ads-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .content {
        padding: 24px 18px;
    }

    .welcome {
        align-items: flex-start;
        flex-direction: column;
    }

    .ads-heading {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .ads-grid,
    .ad-overview {
        grid-template-columns: 1fr;
    }

    .ads-panel {
        padding: 16px;
    }
}
