/* Premium — Category, Product, Account, My Ads */

/* ── Page shell ── */
.am-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--am-text);
    margin: 0 0 1.5rem;
}

.am-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

.am-breadcrumb a {
    color: var(--am-text-muted);
    text-decoration: none;
}

.am-breadcrumb a:hover { color: var(--am-primary); }

.am-breadcrumb--page {
    margin-bottom: 1.25rem;
}

.am-breadcrumb span[aria-current="page"] {
    color: var(--am-text);
    font-weight: 600;
}

.am-breadcrumb > * + *::before {
    content: '›';
    margin-right: 0.35rem;
    color: var(--am-border);
}

.am-product-nav {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.am-product-page {
    max-width: var(--am-content-max);
    margin: 0 auto;
    padding: 0 var(--am-content-pad) 2rem;
}

.am-product-breadcrumb {
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.am-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--am-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0;
    opacity: 0.85;
    transition: color 0.15s, opacity 0.15s;
}

.am-back-link:hover {
    color: var(--am-text);
    opacity: 1;
}

.am-breadcrumb--end {
    margin-bottom: 0;
    margin-left: auto;
    justify-content: flex-end;
}

.am-product-nav .am-breadcrumb a {
    color: var(--am-text-muted);
    opacity: 0.8;
    font-weight: 500;
}

.am-product-nav .am-breadcrumb a:hover {
    color: var(--am-text);
    opacity: 1;
}

.am-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.5rem;
}

.am-product-actions .am-link-btn i {
    opacity: 0.7;
    font-size: 0.8rem;
}

/* ── Category layout ── */
.am-category-layout {
    display: grid;
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.am-category-layout--no-sidebar {
    grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 992px) {
    .am-category-layout { grid-template-columns: minmax(0, 1fr); }
}

.am-category-sidebar {
    min-width: 0;
    max-width: 260px;
}

@media (max-width: 992px) {
    .am-category-sidebar { max-width: none; }
}

.am-sidebar-card {
    background: var(--am-surface);
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius-lg);
    padding: 1.25rem;
    box-shadow: var(--am-shadow-sm);
}

@media (min-width: 993px) {
    .am-sidebar-card {
        position: sticky;
        top: calc(var(--am-header-h) + 1rem);
        z-index: 2;
    }
}

.am-sidebar-card + .am-sidebar-card { margin-top: 1rem; }

.am-sidebar-card__title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--am-text-muted);
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--am-border);
}

.am-cat-nav { display: flex; flex-direction: column; gap: 0.35rem; }

.am-cat-nav__link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: transform 0.15s, box-shadow 0.15s;
    border: 1px solid transparent;
}

.am-cat-nav__link:hover {
    transform: translateX(3px);
    box-shadow: var(--am-shadow-sm);
}

.am-cat-nav__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: rgba(12, 74, 92, 0.08);
    color: var(--am-primary, #0c4a5c);
    overflow: hidden;
}

.am-cat-nav__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.am-cat-nav__icon i {
    font-size: 0.95rem;
}

.am-category-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1rem;
    align-items: flex-end;
    margin-bottom: 1.25rem;
    padding: 1.15rem 1.25rem;
    background: var(--am-surface-2, #f4f7f9);
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius-lg);
}

.am-category-toolbar__group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 130px;
    flex: 1 1 130px;
}

.am-category-toolbar__group label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--am-text-muted);
}

.am-category-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-left: auto;
}

.am-cat-nav__price {
    margin-left: auto;
    font-size: 0.75rem;
    opacity: 0.85;
}

.am-filter .am-form-group { margin-bottom: 0.85rem; }

.am-filter .am-form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.am-filter .am-form-control,
.am-filter .am-form-select {
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
}

.am-category-main {
    min-width: 0;
    background: var(--am-surface);
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--am-shadow-sm);
}

.am-category-main__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    color: var(--am-text);
}

.am-category-top-section {
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--am-border);
}

.am-category-top-section__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--am-primary);
}

.am-category-top-section__title i {
    color: #e85d3a;
    font-size: 0.9rem;
}

.am-category-top-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.am-category-top-grid--count-1 {
    grid-template-columns: 1fr;
}

.am-category-top-grid--count-1 .am-category-top-card.am-gallery-card--featured .am-gallery-card__link {
    display: grid;
    grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
    align-items: stretch;
}

.am-category-top-grid--count-1 .am-category-top-card.am-gallery-card--featured .am-gallery-card__media {
    height: 100%;
}

.am-category-top-grid--count-1 .am-category-top-card.am-gallery-card--featured .am-gallery-card__img-frame {
    height: 100%;
    min-height: 180px;
    aspect-ratio: auto;
}

.am-category-top-grid--count-1 .am-category-top-card.am-gallery-card--featured .am-gallery-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.1rem 1.25rem;
}

.am-category-top-grid--count-1 .am-category-top-card.am-gallery-card--featured .am-gallery-card__title {
    font-size: 1.05rem;
    -webkit-line-clamp: 2;
}

.am-category-top-grid--count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.am-category-top-grid--count-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.am-category-top-card.am-gallery-card--featured {
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(12, 74, 92, 0.14);
    transition: transform 0.2s, box-shadow 0.2s;
}

.am-category-top-card.am-gallery-card--featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(12, 74, 92, 0.18);
}

.am-category-top-card .am-gallery-card__img-frame {
    aspect-ratio: 5 / 4;
}

.am-category-top-card .am-gallery-card__title {
    font-size: 0.88rem;
}

@media (max-width: 768px) {
    .am-category-top-grid--count-2,
    .am-category-top-grid--count-3 {
        grid-template-columns: 1fr;
    }

    .am-category-top-grid--count-1 .am-category-top-card.am-gallery-card--featured .am-gallery-card__link {
        grid-template-columns: 1fr;
    }
}

.am-listing-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--am-surface-alt);
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius);
    margin-bottom: 0.75rem;
    transition: transform 0.15s, box-shadow 0.15s;
}

.am-listing-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--am-shadow-sm);
    background: var(--am-surface);
}

.am-listing-card__img {
    width: 130px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.am-listing-card__body { flex: 1; min-width: 0; }

.am-listing-card__location {
    font-size: 0.8rem;
    color: var(--am-text-muted);
    margin-bottom: 0.25rem;
}

.am-listing-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    line-height: 1.35;
}

.am-listing-card__title a {
    color: var(--am-text);
    text-decoration: none;
}

.am-listing-card__title a:hover { color: var(--am-primary); }

.am-listing-card__desc {
    font-size: 0.85rem;
    color: var(--am-text-muted);
    margin: 0 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.am-listing-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.am-listing-card__action {
    flex-shrink: 0;
    margin-left: auto;
    align-self: center;
}

.am-listing-card__action .am-btn {
    white-space: nowrap;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    gap: 0.4rem;
}

@media (max-width: 768px) {
    .am-listing-card {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.85rem;
    }

    .am-listing-card > a:first-child {
        display: block;
        width: 100%;
    }

    .am-listing-card__img {
        width: 100%;
        height: 168px;
    }

    .am-listing-card__body {
        width: 100%;
    }

    .am-listing-card__title {
        font-size: 0.95rem;
    }

    .am-listing-card__action {
        width: 100%;
        margin-left: 0;
        margin-top: 0;
    }

    .am-listing-card__action .am-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .am-search-results {
        padding: 1rem 0.85rem;
        border-radius: var(--am-radius);
    }

    .am-search-results__title {
        font-size: 1.05rem;
        margin-bottom: 1rem;
    }

    .am-listings-page {
        padding: 0.85rem 0.65rem;
        border-radius: var(--am-radius);
    }

    .am-listings-page__title {
        font-size: 1.05rem;
        margin-bottom: 0.85rem;
        padding: 0 0.15rem;
    }

    .am-listings-page .am-listing-card {
        padding: 0;
        overflow: hidden;
        gap: 0;
    }

    .am-listings-page .am-listing-card > a:first-child {
        display: block;
    }

    .am-listings-page .am-listing-card__img {
        width: 100%;
        height: 180px;
        border-radius: 0;
    }

    .am-listings-page .am-listing-card__body,
    .am-listings-page .am-listing-card__action {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .am-listings-page .am-listing-card__body {
        padding-top: 0.75rem;
    }

    .am-listings-page .am-listing-card__action {
        padding-bottom: 0.85rem;
    }

    .am-listings-filter {
        grid-template-columns: 1fr;
        gap: 0.55rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .am-listings-filter .am-btn {
        width: 100%;
    }
}

.am-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
}

.am-tag--price {
    background: rgba(12, 74, 92, 0.1);
    color: var(--am-primary);
}

.am-tag--verified {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: linear-gradient(135deg, #0c4a5c 0%, #0f6278 55%, #138da6 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 2px 10px rgba(12, 74, 92, 0.28);
}

.am-tag--verified i {
    font-size: 0.85rem;
    opacity: 0.95;
}

.am-tag--seek {
    background: var(--am-surface-alt);
    color: var(--am-text-muted);
    border: 1px solid var(--am-border);
}

.am-tag--pending {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.95rem;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 55%, #fed7aa 100%);
    color: #9a3412;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 1px solid rgba(234, 88, 12, 0.22);
    box-shadow: 0 2px 10px rgba(234, 88, 12, 0.14);
}

.am-tag--pending i {
    font-size: 0.82rem;
    opacity: 0.9;
}

.am-verify-status {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
}

.am-verify-status__hint {
    margin: 0;
    max-width: 20rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--am-text-muted);
}

.am-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.am-empty-state p {
    font-weight: 600;
    color: var(--am-text-muted);
    margin: 0;
}

.am-empty-state--premium {
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.am-empty-state__icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0f2f4 0%, #f0f9fa 100%);
    color: var(--am-primary, #0c4a5c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    position: relative;
}

.am-empty-state__icon--compact {
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.am-empty-state__icon--inline {
    width: 3rem;
    height: 3rem;
    margin: 0 1rem 0 0;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.am-empty-state__icon .am-empty-state__icon-fb {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .am-empty-state__icon {
    background: linear-gradient(135deg, rgba(21, 105, 127, 0.22) 0%, rgba(12, 74, 92, 0.1) 100%);
    color: var(--am-link, #5ec4d8);
}

.am-empty-state__title {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--am-text);
}

.am-empty-state__desc {
    margin: 0 auto 1.25rem;
    max-width: 28rem;
    font-size: 0.92rem;
    color: var(--am-text-muted);
    line-height: 1.55;
    text-align: center;
}

.am-empty-state__brand {
    white-space: nowrap;
    font-weight: 600;
    color: var(--am-primary, #0c4a5c);
}

.am-empty-state__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

.am-empty-state--welcome .am-empty-state__icon {
    background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
    color: #047857;
}

.am-empty-state--welcome {
    text-align: left;
    padding: 1.75rem 1.5rem 1.5rem;
}

.am-welcome-pack {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 1.25rem;
    align-items: stretch;
}

.am-welcome-pack__left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem 0.75rem 0.5rem 0.25rem;
}

.am-welcome-pack__icon {
    margin: 0 0 1rem;
    width: 4rem;
    height: 4rem;
    font-size: 1.5rem;
}

.am-welcome-pack__title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.45rem, 2.5vw, 1.85rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--am-primary, #0c4a5c);
    letter-spacing: -0.02em;
}

.am-welcome-pack__subtitle {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--am-text);
}

.am-welcome-pack__right {
    display: flex;
    align-items: stretch;
}

.am-welcome-pack__card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.35rem 1.5rem;
    background: var(--am-surface);
    border: 1px solid var(--am-border);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(12, 74, 92, 0.08);
    border-left: 4px solid var(--am-primary, #0c4a5c);
}

.am-welcome-pack__card-label {
    display: inline-block;
    align-self: flex-start;
    padding: 0.2rem 0.55rem;
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--am-primary, #0c4a5c);
    background: rgba(12, 74, 92, 0.08);
}

.am-welcome-pack__card-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--am-text-muted);
}

.am-welcome-pack__actions {
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--am-border);
    justify-content: flex-start;
}

@media (max-width: 720px) {
    .am-welcome-pack {
        grid-template-columns: 1fr;
    }

    .am-welcome-pack__left {
        text-align: center;
        align-items: center;
        padding: 0.25rem 0;
    }

    .am-welcome-pack__icon {
        margin-left: auto;
        margin-right: auto;
    }

    .am-welcome-pack__actions {
        justify-content: center;
    }
}

.am-my-ads-empty-card {
    margin-top: 0.5rem;
    border: 1px dashed var(--am-border);
    background: linear-gradient(180deg, var(--am-surface) 0%, var(--am-surface-alt) 100%);
}

.am-my-ads-empty-card .am-empty-state--premium {
    padding: 2rem 1.25rem 1.5rem;
}

.am-my-ads-empty-card .am-empty-state--welcome {
    padding: 1.5rem 1.25rem 1.25rem;
}

/* User 2FA security */
.am-2fa-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #64748b;
}

.am-2fa-badge.is-active {
    background: #d1fae5;
    color: #047857;
}

.am-2fa-hint {
    font-size: 0.85rem;
}

.am-2fa-options {
    margin-top: 0.5rem;
}

.am-2fa-method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.am-2fa-method-card {
    padding: 1.25rem;
    text-align: center;
}

.am-2fa-method-card__icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background: var(--am-surface-alt);
    color: var(--am-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.am-2fa-method-card h3 {
    font-size: 1rem;
    margin: 0 0 0.35rem;
}

.am-2fa-method-card p {
    font-size: 0.85rem;
    color: var(--am-text-muted);
    margin: 0 0 1rem;
}

.am-2fa-setup {
    padding: 1.5rem;
    text-align: center;
    max-width: 420px;
}

.am-2fa-setup__title {
    font-size: 1.05rem;
    margin: 0 0 0.35rem;
}

.am-2fa-setup__desc {
    font-size: 0.88rem;
    color: var(--am-text-muted);
    margin: 0 0 1rem;
}

.am-2fa-setup__qr img {
    border-radius: 12px;
    border: 1px solid var(--am-border);
    margin-bottom: 1rem;
}

.am-2fa-setup__form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    align-items: stretch;
}

.am-2fa-email-form__row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.am-2fa-email-form__row .am-form-control {
    flex: 1;
    min-width: 120px;
}

.am-setting-card--2fa {
    margin-bottom: 0.5rem;
}

/* ── Product detail ── */
.am-product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 1.75rem;
    align-items: start;
    width: 100%;
}

@media (max-width: 992px) {
    .am-product-layout { grid-template-columns: 1fr; }
}

.am-product-gallery {
    width: 100%;
    background: var(--am-surface);
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius-lg);
    overflow: hidden;
    box-shadow: var(--am-shadow-sm);
    position: relative;
}

.am-product-gallery__badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 6;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    pointer-events: none;
}

.am-product-gallery__badges .am-thumb-badge {
    position: static;
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    font-size: 0.68rem;
}

.am-product-gallery.mp-gallery-wrap {
    padding: 0;
    background: var(--am-surface-alt);
}

.am-product-gallery .carousel-item img,
.am-product-gallery .adImgs {
    width: 100%;
    height: auto;
    max-height: min(52vh, 420px);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    background: var(--am-surface-alt);
}

.am-product-gallery .carousel-inner {
    background: var(--am-surface-alt);
}

.am-product-gallery__thumbs {
    display: flex;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    overflow-x: auto;
    border-top: 1px solid var(--am-border);
    background: var(--am-surface);
    scrollbar-width: thin;
}

.am-product-gallery__thumb {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--am-radius-sm);
    overflow: hidden;
    cursor: pointer;
    background: transparent;
    opacity: 0.72;
    transition: opacity 0.15s, border-color 0.15s;
}

.am-product-gallery__thumb.is-active {
    border-color: var(--am-accent);
    opacity: 1;
}

.am-product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 576px) {
    .am-product-gallery .carousel-item img,
    .am-product-gallery .adImgs {
        max-height: min(42vh, 260px);
    }

    .am-product-gallery__thumb {
        width: 52px;
        height: 52px;
    }
}

.am-product-gallery .carousel-control-prev,
.am-product-gallery .carousel-control-next {
    width: 48px;
    height: 48px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    opacity: 1;
    margin: 0 1rem;
}

.am-product-content {
    background: var(--am-surface);
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius-lg);
    padding: 1.5rem;
    margin-top: 0.75rem;
    box-shadow: var(--am-shadow-sm);
}

.am-product-content--head {
    padding: 1.15rem 1.25rem;
}

.am-product-content--head .am-product-title-row {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.am-product-content h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--am-text);
}

.am-product-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--am-accent);
    margin: 0 0 1.25rem;
}

.am-product-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--am-text);
}

.am-product-desc .cms-flow--rich p,
.am-product-desc .cms-flow--rich li {
    margin-bottom: 0.65rem;
}

.am-product-desc .cms-flow--rich p:last-child,
.am-product-desc .cms-flow--rich ul:last-child,
.am-product-desc .cms-flow--rich ol:last-child {
    margin-bottom: 0;
}

.am-product-desc .cms-flow--rich strong {
    font-weight: 700;
}

.am-vehicle-features.am-switch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.5rem 1rem;
}

.am-switch-grid--readonly .form-check-input:disabled {
    opacity: 1;
    cursor: default;
}

.am-switch-grid--readonly .form-check-input:checked {
    background-color: var(--am-accent);
    border-color: var(--am-accent);
}

.am-switch-grid--readonly .form-check-label {
    color: var(--am-text);
    opacity: 1;
}

.am-product-sidebar { display: flex; flex-direction: column; gap: 1rem; }

.am-seller-card,
.am-meta-card {
    background: var(--am-surface);
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius-lg);
    padding: 1.25rem;
    box-shadow: var(--am-shadow-sm);
}

.am-seller-card h3,
.am-meta-card h3 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--am-text-muted);
    margin: 0 0 0.75rem;
}

.am-seller-card__name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.am-seller-card .am-btn { margin-bottom: 0.5rem; }

.am-meta-list {
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.am-meta-list dt {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--am-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.am-meta-list dd {
    margin: 0;
    font-weight: 600;
    color: var(--am-text);
}

.am-product-main { min-width: 0; }

.am-product-carousel { position: relative; }

.am-gallery-preview__inner { cursor: zoom-in; }

.am-gallery-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--am-primary);
    font-size: 0.9rem;
}

.am-img-count {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 100px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border: 0;
    cursor: zoom-in;
    transition: background 0.15s;
}

.am-img-count:hover { background: rgba(0, 0, 0, 0.78); }

.am-gallery-nav {
    width: 32px;
    height: 32px;
    opacity: 1;
    margin: 0 0.5rem;
}

/* Lightbox */
.am-gallery-lightbox[hidden] { display: none !important; }

.am-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.am-gallery-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(4px);
}

.am-gallery-lightbox__panel {
    position: relative;
    z-index: 1;
    width: min(96vw, 1100px);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 3rem 1.25rem;
}

.am-gallery-lightbox__img {
    max-width: 100%;
    max-height: calc(92vh - 140px);
    object-fit: contain;
    border-radius: var(--am-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.am-gallery-lightbox__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
}

.am-gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
}

.am-gallery-lightbox__nav--prev { left: 0; }
.am-gallery-lightbox__nav--next { right: 0; }

.am-gallery-lightbox__footer {
    margin-top: 1rem;
    text-align: center;
    width: 100%;
}

.am-gallery-lightbox__count {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
}

.am-gallery-lightbox__thumbs {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
    flex-wrap: nowrap;
    margin-top: 0.75rem;
    max-width: min(100%, 720px);
    margin-left: auto;
    margin-right: auto;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
}

.am-gallery-lightbox__thumb {
    width: 56px;
    height: 56px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--am-radius-sm);
    overflow: hidden;
    cursor: pointer;
    background: transparent;
    opacity: 0.65;
    transition: opacity 0.15s, border-color 0.15s;
}

.am-gallery-lightbox__thumb.is-active {
    border-color: var(--am-accent);
    opacity: 1;
}

.am-gallery-lightbox__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.am-product-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--am-border);
}

.am-product-title-row h1 {
    margin: 0 0 0.35rem;
}

.am-product-fav {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 1px solid var(--am-border);
    border-radius: 50%;
    background: var(--am-surface-alt);
    color: var(--am-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
}

.am-product-fav:hover,
.am-product-fav.removeMerk {
    background: rgba(232, 93, 58, 0.12);
    transform: scale(1.05);
}

.am-product-blocks {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.am-product-sections {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.am-product-block {
    background: var(--am-surface);
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius-lg);
    padding: 1.15rem 1.25rem;
    box-shadow: var(--am-shadow-sm);
}

.am-product-block__title {
    margin: 0 0 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--am-text-muted);
}

.am-product-block__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.am-product-block__head .am-product-block__title {
    margin: 0;
}

.am-detail-type-badge--vehicle {
    background: color-mix(in srgb, #2563eb 12%, transparent);
    color: #1d4ed8;
    border-color: color-mix(in srgb, #2563eb 28%, transparent);
}

.am-detail-type-badge--immob {
    background: color-mix(in srgb, #059669 12%, transparent);
    color: #047857;
    border-color: color-mix(in srgb, #059669 28%, transparent);
}

.am-detail-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: color-mix(in srgb, var(--am-primary) 12%, transparent);
    color: var(--am-primary);
    border: 1px solid color-mix(in srgb, var(--am-primary) 28%, transparent);
    white-space: nowrap;
    margin-left: auto;
}

.am-ad-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid transparent;
    white-space: nowrap;
    line-height: 1.2;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.am-ad-type-badge--vehicle {
    background: #1e40af;
    color: #fff;
    border-color: #1e3a8a;
}

.am-ad-type-badge--immob {
    background: #059669;
    color: #fff;
    border-color: #047857;
}

.am-ad-type-badge--pill {
    font-size: 0.62rem;
    padding: 0.3rem 0.75rem;
}

.am-ad-type-badge--card {
    font-size: 0.6rem;
    padding: 0.24rem 0.6rem;
}

.am-ad-type-badge--overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
    max-width: calc(100% - 4.5rem);
    font-size: 0.58rem;
    padding: 0.24rem 0.5rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.am-gallery-card__media-wrap {
    position: relative;
}

.am-gallery-card__media-wrap .am-gallery-card__top {
    z-index: 3;
}

.am-ads-table__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.2rem 0 0.35rem;
}

.am-ads-table__badges:empty {
    display: none;
}

.am-product-block__head .am-ad-type-badge--pill {
    margin-left: auto;
    flex-shrink: 0;
}

.am-detail-grid--compact {
    margin-top: 1rem;
}

.am-seller-card__saved {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0.55rem 0 0;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--am-accent);
    background: rgba(232, 93, 58, 0.08);
    border: 1px solid rgba(232, 93, 58, 0.22);
}

.am-seller-card__saved i {
    font-size: 0.72rem;
}

.am-detail-grid {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    border: none;
    background: transparent;
    overflow: visible;
}

@media (max-width: 720px) {
    .am-detail-grid {
        grid-template-columns: 1fr;
    }
}

.am-detail-grid__item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.95rem 1.15rem;
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius);
    background: linear-gradient(180deg, var(--am-surface) 0%, var(--am-surface-alt) 100%);
    box-shadow: var(--am-shadow-sm);
    align-items: stretch;
}

.am-detail-grid__item:only-child {
    grid-column: 1 / -1;
}

.am-detail-grid__item:last-child {
    border-bottom: 1px solid var(--am-border);
}

.am-detail-grid__item:nth-child(even) {
    background: linear-gradient(180deg, var(--am-surface-alt) 0%, var(--am-surface) 100%);
}

.am-detail-grid__item dt {
    margin: 0;
    font-size: 0.72rem;
    color: var(--am-text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.am-detail-grid__item dd {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--am-text);
    word-break: break-word;
    line-height: 1.45;
}

.am-product-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.am-product-stat {
    background: var(--am-surface-alt);
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius);
    padding: 0.65rem 0.5rem;
    text-align: center;
}

.am-product-stat__val {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--am-text);
}

.am-product-stat__lbl {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.68rem;
    color: var(--am-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.am-product-map {
    height: 220px;
    border-radius: var(--am-radius);
    overflow: hidden;
    margin-bottom: 0.75rem;
    border: 1px solid var(--am-border);
}

.am-product-location {
    margin: 0 0 0.35rem;
    font-weight: 600;
}

.am-link,
.am-link-btn {
    color: var(--am-text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.9;
    transition: color 0.15s, opacity 0.15s;
}

.am-link:hover,
.am-link-btn:hover {
    color: var(--am-text);
    opacity: 1;
}

.am-business-links {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--am-border);
}

.am-legal-icons {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.am-legal-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid var(--am-border);
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.am-legal-icon:hover {
    transform: translateY(-2px);
    box-shadow: var(--am-shadow-sm);
}

.am-legal-icon--impressum {
    background: rgba(99, 102, 241, 0.12);
    color: #818cf8;
    border-color: rgba(99, 102, 241, 0.28);
}

.am-legal-icon--terms {
    background: rgba(12, 74, 92, 0.12);
    color: var(--am-primary);
    border-color: rgba(12, 74, 92, 0.25);
}

.am-legal-icon--privacy {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.25);
}

.am-legal-icon--link {
    background: rgba(232, 93, 58, 0.1);
    color: var(--am-accent);
    border-color: rgba(232, 93, 58, 0.25);
}

.am-seller-card--rich { padding: 0; overflow: hidden; }

.am-seller-card__header {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid var(--am-border);
}

.am-seller-card__avatar-wrap { position: relative; flex-shrink: 0; }

.am-seller-card__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--am-border);
}

.am-seller-card__verified {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 16px;
    height: 16px;
}

.am-seller-card__identity {
    flex: 1;
    min-width: 0;
}

.am-seller-card__name-block {
    position: relative;
    min-width: 0;
    max-width: 100%;
}

.am-seller-card__name-block--verified {
    padding-right: 1.35rem;
}

.am-user-verified-badge--corner {
    position: absolute;
    top: -0.35rem;
    right: 0;
    z-index: 1;
}

.am-seller-card__name-line {
    display: block;
    min-width: 0;
    max-width: 100%;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.am-seller-card__name-line .am-seller-card__name {
    display: inline;
    font-size: 1rem;
    font-weight: 700;
    vertical-align: baseline;
}

.am-seller-card__name-line .am-seller-card__stars {
    display: inline;
    font-size: 0.85rem;
    white-space: nowrap;
    vertical-align: baseline;
}

.am-seller-card__name-line .am-seller-card__stars a {
    color: var(--am-text-muted);
    text-decoration: none;
}

.am-seller-card__name-line .am-seller-card__stars i {
    margin-left: 0.1rem;
}

.am-profile-hero__name-block {
    position: relative;
    display: inline-block;
    max-width: 100%;
    vertical-align: top;
}

.am-profile-hero__name-block--verified {
    padding-right: 1.35rem;
}

.am-profile-hero__name-block .am-user-verified-badge--corner {
    top: -0.2rem;
}

.am-profile-hero__name-row {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.35rem;
    min-width: 0;
}

.am-profile-hero__rating {
    flex-shrink: 0;
    white-space: nowrap;
}

.am-profile-hero__name,
.am-profile-hero__name-row {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.35rem;
    min-width: 0;
}

.am-profile-hero__name-row,
.mp-seller-card__name-row {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.35rem;
}

.am-user-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(145deg, #38bdf8 0%, #2563eb 100%);
    color: #fff;
    font-size: 0.5rem;
    line-height: 1;
    flex-shrink: 0;
    cursor: help;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.35);
}

.am-user-verified-badge i {
    font-size: 0.48rem;
    line-height: 1;
}

.am-seller-card__since {
    display: flex;
    align-items: center;
    gap: 5px;
}

.am-seller-card__since-icon {
    color: #16a34a;
    font-size: 0.72rem;
    line-height: 1;
    flex-shrink: 0;
}

.am-verified-strip {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.15rem 0 0.35rem;
    line-height: 1.2;
    white-space: nowrap;
    min-width: 0;
}

.am-verified-strip__shield {
    color: #16a34a;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.am-verified-strip__label {
    font-weight: 700;
    font-size: 0.84rem;
    color: #166534;
    white-space: nowrap;
}

.am-profile-hero .am-verified-strip {
    margin: 0.2rem 0 0.55rem;
}

.mp-seller-card .am-verified-strip {
    margin: 0.35rem 0 0;
    padding: 0 0.75rem 0.65rem;
}

.am-seller-card__info { flex: 1; min-width: 0; }

.mp-seller-card__name-block {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.mp-seller-card__name-block--verified {
    padding-right: 1.35rem;
}

.mp-seller-card__name-block .am-user-verified-badge--corner {
    top: -0.25rem;
}

.mp-seller-card__rating-inline {
    font-size: 0.82rem;
    color: var(--am-text-muted);
    white-space: nowrap;
}

.mp-seller-card__rating-inline i {
    font-size: 0.72rem;
}

.am-seller-card__topline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.35rem;
}

.am-seller-card__topline > .am-seller-card__identity {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 2.5rem);
}

.am-seller-card--rich .am-seller-card__name {
    margin: 0;
}

.am-seller-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--am-text);
    text-decoration: none;
}

.am-seller-card__name:hover { color: var(--am-primary); }

.am-seller-card__stars {
    font-size: 0.85rem;
    white-space: nowrap;
}

.am-seller-card__stars a {
    color: var(--am-text-muted);
    text-decoration: none;
}

.am-seller-card__top-actions {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex-shrink: 0;
}

.am-seller-card__print {
    color: var(--am-text-muted);
    padding: 0.25rem;
    text-decoration: none;
    border-radius: var(--am-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    font-size: 0.95rem;
}

button.am-seller-card__print {
    border: none;
    background: transparent;
    cursor: pointer;
}

.am-seller-card__print:hover {
    color: var(--am-primary);
    background: var(--am-surface-alt);
}

.am-seller-card__type,
.am-seller-card__since {
    margin: 0.15rem 0 0;
    font-size: 0.85rem;
    color: var(--am-text-muted);
}

.am-seller-card__actions,
.am-seller-card__commercial {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--am-border);
    display: grid;
    gap: 0.5rem;
}

.am-seller-card--rich > .am-btn--ghost,
.am-seller-card--rich > .am-btn--outline {
    margin: 1rem 1.25rem;
    width: calc(100% - 2.5rem);
}

.am-seller-more {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--am-border);
}

.am-seller-more__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
}

.am-seller-more__title { font-weight: 700; color: var(--am-text); }

.am-seller-more__head a,
.am-seller-more__all {
    color: var(--am-primary);
    text-decoration: none;
    font-weight: 600;
}

[data-theme="dark"] .am-seller-more__all {
    color: #a8c8d6;
}

[data-theme="dark"] .am-seller-more__all:hover {
    color: var(--am-accent);
}

.am-seller-more__extra {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.am-seller-more__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.5rem 0.75rem;
    border: 1px dashed var(--am-border);
    border-radius: var(--am-radius-sm);
    background: transparent;
    color: var(--am-text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.am-seller-more__toggle:hover {
    color: var(--am-primary);
    border-color: var(--am-primary-light);
    background: var(--am-surface-alt);
}

.am-seller-more__toggle.is-expanded i {
    transform: rotate(180deg);
}

.am-seller-more__grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.am-seller-more__item {
    text-decoration: none;
    color: inherit;
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 0.6rem;
    align-items: center;
    padding: 0.45rem;
    border-radius: var(--am-radius);
    border: 1px solid var(--am-border);
    background: var(--am-surface-alt);
    transition: border-color 0.15s, background 0.15s;
}

.am-seller-more__item:hover {
    border-color: var(--am-primary-light);
    background: var(--am-surface);
}

.am-seller-more__item img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: var(--am-radius-sm);
    background: var(--am-surface);
}

.am-seller-more__item-body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.am-seller-more__item-title {
    display: -webkit-box;
    width: 100%;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--am-text);
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
}

.am-seller-more__item-price {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.75rem;
    color: var(--am-accent);
    font-weight: 700;
}

.am-product-sidebar {
    position: sticky;
    top: calc(var(--am-header-h, 72px) + 1rem);
    align-self: start;
    z-index: 10;
    max-height: calc(100vh - var(--am-header-h, 72px) - 2rem);
    overflow-y: auto;
    scroll-padding-bottom: 1.5rem;
}

.am-product-sidebar.is-seller-expanded {
    max-height: none;
    overflow-y: visible;
}

.am-seller-more.is-expanded {
    padding-bottom: 0.5rem;
}

.am-product-video {
    margin-top: 1rem;
    overflow: hidden;
    border-radius: var(--am-radius);
}

.am-imprint-pre {
    white-space: pre-wrap;
    font-family: inherit;
    margin: 0;
    font-size: 0.9rem;
}

.am-toast-msg {
    position: fixed;
    top: 5rem;
    right: 1rem;
    z-index: 1100;
    padding: 0.75rem 1rem;
    background: var(--am-primary);
    color: #fff;
    border-radius: var(--am-radius);
    box-shadow: var(--am-shadow-md);
    font-size: 0.875rem;
    font-weight: 600;
}

/* Product modals — must stay hidden until opened */
.am-modal.modal {
    display: none;
}

.am-modal.modal.show {
    display: block;
}

.am-modal .modal-content {
    background: var(--am-surface);
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius-lg);
    box-shadow: var(--am-shadow-md);
    color: var(--am-text);
}

.am-modal .modal-header {
    border-bottom: 1px solid var(--am-border);
    padding: 1rem 1.25rem;
}

[data-theme="dark"] .am-modal .am-modal__close,
[data-theme="dark"] .am-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.9;
}

[data-theme="dark"] .am-modal .am-modal__close:hover,
[data-theme="dark"] .am-modal .btn-close:hover {
    opacity: 1;
}

.am-modal .modal-body { padding: 1.25rem; }

.am-modal-form { display: grid; gap: 0.65rem; }

.am-modal-form__label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--am-text-muted);
    margin-top: 0.25rem;
}

.am-modal-form__hint {
    margin: 0;
    font-size: 0.8rem;
    color: var(--am-text-muted);
}

.am-modal-form__hint--small { font-size: 0.75rem; }

.am-modal-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.am-modal-form__row--single {
    grid-template-columns: 1fr;
}

.am-modal-form__field {
    display: grid;
    gap: 0.35rem;
}

.am-modal__heading {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.am-modal__heading-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--am-primary) 0%, var(--am-primary-dark, #04495e) 100%);
    color: #fff;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.am-modal__subtitle {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.8rem;
    color: var(--am-text-muted);
    font-weight: 500;
}

.am-modal-form__input-icon {
    position: relative;
}

.am-modal-form__input-icon > i {
    position: absolute;
    left: 0.9rem;
    color: var(--am-primary);
    opacity: 0.75;
    pointer-events: none;
    z-index: 1;
}

.am-modal-form__input-icon--single > i {
    top: 50%;
    transform: translateY(-50%);
}

.am-modal-form__input-icon--area > i {
    top: 0.9rem;
}

.am-modal-form__input-icon .am-input,
.am-modal-form__input-icon textarea.am-input {
    padding-left: 2.55rem;
}

.am-modal-form__context {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 0.25rem;
    padding: 0.75rem 0.9rem;
    border-radius: var(--am-radius);
    background: linear-gradient(135deg, rgba(4, 73, 94, 0.07) 0%, rgba(4, 73, 94, 0.03) 100%);
    border: 1px solid var(--am-border);
}

.am-modal-form__context-line {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.84rem;
    color: var(--am-text-muted);
    line-height: 1.4;
}

.am-modal-form__context-line i {
    color: var(--am-primary);
    width: 1rem;
    text-align: center;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.am-modal-form__context-line strong {
    color: var(--am-text);
    font-weight: 600;
}

.am-modal-form__recipient {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.55rem 0.75rem;
    border-radius: var(--am-radius);
    background: var(--am-surface-alt, rgba(4, 73, 94, 0.06));
    font-size: 0.82rem;
    color: var(--am-text-muted);
}

.am-modal-form__recipient i {
    color: var(--am-primary);
}

.am-modal-form .am-btn i {
    margin-right: 0.35rem;
}

.am-modal-empty {
    text-align: center;
    padding: 1rem 0;
}

.am-modal-empty .am-empty-state__icon {
    margin-bottom: 0.75rem;
}

.am-modal-empty p { margin: 0; font-weight: 600; color: var(--am-text-muted); }

.am-share-list { display: grid; gap: 0.5rem; }

.am-share-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius);
    background: var(--am-surface-alt);
    color: var(--am-text);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, border-color 0.15s;
}

.am-share-item:hover {
    background: var(--am-surface);
    border-color: var(--am-primary-light);
}

.am-share-item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.am-modal-action {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius);
    background: var(--am-surface-alt);
    text-decoration: none;
    color: inherit;
    margin-bottom: 0.75rem;
}

.am-modal-action__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.am-modal-action__icon--phone {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.am-modal-action__text strong { display: block; font-size: 1rem; }
.am-modal-action__text small { color: var(--am-text-muted); }

.am-modal-notice {
    display: flex;
    gap: 0.65rem;
    padding: 0.75rem;
    border-radius: var(--am-radius);
    background: var(--am-surface-alt);
    border: 1px solid var(--am-border);
    font-size: 0.85rem;
}

.am-modal-notice i { color: var(--am-primary); margin-top: 0.15rem; }
.am-modal-notice p { margin: 0.2rem 0 0; color: var(--am-text-muted); }

@media (max-width: 992px) {
    .am-product-sidebar { position: static; }
    .am-product-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .am-product-stats { grid-template-columns: 1fr 1fr; }
    .am-modal-form__row { grid-template-columns: 1fr; }
    .am-gallery-lightbox__panel { padding: 2.5rem 1rem 1rem; }
}

/* ── Dashboard (Account + My Ads) ── */
.am-dashboard {
    background: var(--am-surface);
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius-lg);
    padding: 1.75rem;
    box-shadow: var(--am-shadow-sm);
    width: 100%;
}

.am-main--panel .am-dashboard {
    border: 1px solid var(--am-border);
    box-shadow: var(--am-shadow-sm);
    padding: 1.5rem;
    background: var(--am-surface);
    border-radius: var(--am-radius-lg);
}

.am-main--panel .am-page-title {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.am-dash-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.5rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--am-border);
}

/* Account sidebar layout */
.am-account-layout {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.am-account-layout__main {
    min-width: 0;
}

.am-account-sidebar {
    position: sticky;
    top: calc(var(--am-header-h, 72px) + 1rem);
    align-self: start;
    z-index: 10;
    max-height: calc(100vh - var(--am-header-h, 72px) - 2rem);
    overflow-y: auto;
    scroll-padding-bottom: 1.5rem;
}

.am-account-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    padding: 1rem;
    background: var(--am-surface);
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius, 12px);
    box-shadow: var(--am-shadow-sm);
}

.am-account-sidebar__label {
    margin: 0 0 0.45rem;
    padding: 0 0.55rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--am-text-muted);
}

.am-account-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.am-account-sidebar__link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--am-text-muted);
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.am-account-sidebar__link:hover {
    color: var(--am-primary);
    background: var(--am-surface-alt);
    border-color: var(--am-border);
}

.am-account-sidebar__link--active {
    color: var(--am-primary);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(30, 58, 95, 0.06) 100%);
    border-color: rgba(37, 99, 235, 0.18);
    box-shadow: inset 3px 0 0 var(--am-primary);
}

.am-account-sidebar__icon {
    width: 1rem;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.85;
}

.am-account-sidebar__link--active .am-account-sidebar__icon {
    opacity: 1;
}

.am-account-sidebar__text {
    line-height: 1.35;
}

.am-account-sidebar__link--external .am-account-sidebar__icon {
    font-size: 0.78rem;
}

[data-theme="dark"] .am-account-sidebar__nav {
    background: var(--am-surface-alt);
}

[data-theme="dark"] .am-account-sidebar__link--active {
    background: rgba(37, 99, 235, 0.14);
}

@media (max-width: 991px) {
    .am-account-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .am-account-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    .am-account-sidebar__nav {
        padding: 0.85rem;
    }
}

@media (max-width: 640px) {
    .am-account-sidebar__nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem 1rem;
    }

    .am-account-sidebar__group {
        min-width: 0;
    }

    .am-account-sidebar__link {
        font-size: 0.8rem;
        padding: 0.45rem 0.5rem;
    }
}

.am-dash-nav__link {
    padding: 0.35rem 0.7rem;
    border-radius: 100px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--am-text-muted);
    text-decoration: none;
    border: 1px solid var(--am-border);
    background: var(--am-surface-alt);
    transition: all 0.15s;
    white-space: nowrap;
}

.am-dash-nav__link:hover {
    color: var(--am-primary);
    border-color: var(--am-primary-light);
}

.am-dash-nav__link--active {
    background: var(--am-primary);
    color: #fff;
    border-color: var(--am-primary);
}

.am-dash-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    color: var(--am-text);
}

.am-settings-form .am-settings-row {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    align-items: start;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--am-border);
}

@media (max-width: 768px) {
    .am-settings-form .am-settings-row { grid-template-columns: 1fr; }
}

.am-settings-form .am-settings-row:last-of-type { border-bottom: none; }

.am-settings-label {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.am-settings-hint {
    font-size: 0.8rem;
    color: var(--am-text-muted);
    margin: 0;
}

.am-settings-actions {
    text-align: center;
    padding-top: 1.5rem;
}

.am-profile-upload {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.am-profile-upload img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--am-border);
}

.am-danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    background: color-mix(in srgb, #ef4444 8%, var(--am-surface));
    border: 1px solid color-mix(in srgb, #ef4444 28%, var(--am-border));
    border-radius: var(--am-radius);
    flex-wrap: wrap;
}

.am-danger-zone__title {
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--am-text);
}

.am-danger-zone__hint { font-size: 0.85rem; color: var(--am-text-muted); margin: 0; }

[data-theme="dark"] .am-danger-zone {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.4);
}

[data-theme="dark"] .am-danger-zone__title {
    color: #fca5a5;
}

[data-theme="dark"] .am-danger-zone__hint {
    color: #fecaca;
}

[data-theme="dark"] .am-detail-type-badge {
    background: color-mix(in srgb, var(--am-primary) 28%, transparent);
    color: #7dd3fc;
    border-color: color-mix(in srgb, var(--am-primary) 50%, transparent);
}

/* My Ads tabs */
.am-ads-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.am-ads-tab {
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--am-text-muted);
    text-decoration: none;
    background: var(--am-surface-alt);
    border: 1px solid var(--am-border);
    transition: all 0.15s;
    white-space: nowrap;
}

.am-ads-tab:hover {
    color: var(--am-primary);
    border-color: var(--am-primary-light);
}

.am-ads-tab--active {
    background: var(--am-primary);
    color: #fff;
    border-color: var(--am-primary);
}

.am-ads-tab--has-count {
    font-weight: 700;
}

.am-ads-tab--active .am-ads-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    margin-right: 0.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    font-size: 0.72rem;
}

.am-ads-tab--has-count:not(.am-ads-tab--active) .am-ads-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    margin-right: 0.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.am-ads-tab--pending:not(.am-ads-tab--active) {
    color: #b45309;
    border-color: #fcd34d;
    background: #fffbeb;
}

.am-ads-tab--pending:not(.am-ads-tab--active) .am-ads-tab__count {
    background: #fde68a;
    color: #92400e;
}

.am-ads-tab--reserved:not(.am-ads-tab--active) {
    color: #6d28d9;
    border-color: #c4b5fd;
    background: #f5f3ff;
}

.am-ads-tab--reserved:not(.am-ads-tab--active) .am-ads-tab__count {
    background: #ddd6fe;
    color: #5b21b6;
}

.am-ads-tab--bought:not(.am-ads-tab--active) {
    color: #1d4ed8;
    border-color: #93c5fd;
    background: #eff6ff;
}

.am-ads-tab--bought:not(.am-ads-tab--active) .am-ads-tab__count {
    background: #bfdbfe;
    color: #1e40af;
}

.am-ads-tab--sold:not(.am-ads-tab--active) {
    color: #15803d;
    border-color: #86efac;
    background: #f0fdf4;
}

.am-ads-tab--sold:not(.am-ads-tab--active) .am-ads-tab__count {
    background: #bbf7d0;
    color: #166534;
}

.am-ads-tab--expired:not(.am-ads-tab--active) {
    color: #b91c1c;
    border-color: #fca5a5;
    background: #fef2f2;
}

.am-ads-tab--expired:not(.am-ads-tab--active) .am-ads-tab__count {
    background: #fecaca;
    color: #991b1b;
}

/* My Ads table → card style */
.am-ads-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.am-ads-table thead { display: none; }

.am-ads-table tbody {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.am-ads-table tr {
    background: var(--am-surface-alt);
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius);
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr) minmax(170px, 200px);
    grid-template-areas: "thumb body actions";
    gap: 0.85rem 1rem;
    padding: 1rem;
    width: 100%;
    align-items: start;
}

.am-ads-table__thumb {
    grid-area: thumb;
}

.am-ads-table__body {
    grid-area: body;
    min-width: 0;
}

.am-ads-table__actions {
    grid-area: actions;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    border-top: none;
    border-left: 1px solid var(--am-border);
    padding: 0 0 0 0.85rem;
    align-self: stretch;
}

.am-ads-table__actions .actBtn {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
}

@media (max-width: 720px) {
    .am-ads-table tr {
        grid-template-columns: 90px minmax(0, 1fr);
        grid-template-areas:
            "thumb body"
            "actions actions";
    }
    .am-ads-table__actions {
        border-left: none;
        border-top: 1px solid var(--am-border);
        padding: 0.75rem 0 0;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .am-ads-table__actions .actBtn {
        flex: 1 1 calc(50% - 0.35rem);
        min-width: 140px;
        width: auto;
    }
}

.am-ads-table td {
    border: none;
    padding: 0;
    vertical-align: top;
}

.am-ads-table .prodListImg {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
}

.am-thumb-wrap {
    display: flex;
    flex-direction: column;
    overflow: visible;
    border-radius: 10px;
}

.am-thumb-wrap .prodListImg {
    display: block;
    border-radius: 10px;
}

.am-thumb-wrap--badged .prodListImg {
    border-radius: 0 0 10px 10px;
}

.am-thumb-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
    padding: 0.3rem 0.45rem;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
    border-radius: 10px 10px 0 0;
    line-height: 1.1;
    pointer-events: none;
    flex-shrink: 0;
}

.am-thumb-badge--premium {
    background: linear-gradient(135deg, #f6c453 0%, #e85d3a 100%);
    box-shadow: 0 2px 8px rgba(232, 93, 58, 0.35);
}

.am-thumb-badge--top {
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
}

.am-thumb-badge--color {
    background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%);
}

.am-ads-table .adsTopIcon {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
}

.am-ads-table .font16 { font-size: 1rem; font-weight: 700; }

.am-ads-table .adsDes {
    font-size: 0.85rem;
    color: var(--am-text-muted);
    margin: 0.35rem 0;
    min-width: 0;
}

.am-ads-table .adsBtnsDiv {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.am-ads-table .greenInfo,
.am-ads-table .blueInfo,
.am-ads-table .violetInfo {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.am-ads-table .greenInfo { background: #dcfce7; color: #15803d; }
.am-ads-table .blueInfo { background: #dbeafe; color: #1d4ed8; }
.am-ads-table .violetInfo { background: #ede9fe; color: #6d28d9; }

.am-ads-table .adsPremStaus,
.am-ads-table .adsPremStatus {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.am-ads-table .statusPrem {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    background: #fff;
    border: 1px solid var(--am-border);
    line-height: 1.2;
}

.am-ads-table .statusPrem img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.am-ads-table .statusPrem--inactive {
    color: var(--am-text-muted);
    background: #f8fafc;
}

.am-ads-table .statusPrem--inactive i {
    color: #ef4444;
}

.am-ads-table .statusPrem--inactive.statusPrem--top i {
    color: #94a3b8;
}

.am-ads-table .statusPrem--inactive.statusPrem--gallery i {
    color: #c4b5fd;
}

.am-ads-table .statusPrem--active.statusPrem--top {
    color: #1d4ed8;
    border-color: #93c5fd;
    background: #eff6ff;
}

.am-ads-table .statusPrem--active.statusPrem--gallery {
    color: #6d28d9;
    border-color: #c4b5fd;
    background: #f5f3ff;
}

.am-ads-table .statusPrem__info {
    margin-left: 0.1rem;
    font-size: 0.72rem;
    opacity: 0.85;
}

.am-ads-table .statusPrem__info:hover {
    opacity: 1;
    color: var(--am-primary);
}

.am-ads-table .adsTopIcon {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: auto;
    z-index: 2;
}

.am-my-ads-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.am-my-ads-title-row .am-page-title {
    margin-bottom: 0;
}

.am-account-user-head {
    text-align: right;
    min-width: 0;
    max-width: 100%;
}

.am-account-user-head__name-line {
    white-space: nowrap;
    line-height: 1.35;
    margin-bottom: 0.15rem;
}

.am-account-user-head__name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--am-text);
}

.am-account-user-head__stars {
    font-size: 0.85rem;
    color: var(--am-text-muted);
}

.am-account-user-head__stars a {
    color: inherit;
    text-decoration: none;
}

.am-account-user-head__stars i {
    margin-left: 0.1rem;
}

.am-account-status-hint {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    flex-wrap: nowrap;
    font-size: 0.82rem;
    color: var(--am-text-muted);
    margin: 0;
    white-space: nowrap;
}

.am-account-status-hint a {
    color: var(--am-primary);
    font-weight: 600;
    text-decoration: none;
}

.am-account-status-hint--pending {
    color: #b45309;
}

.am-account-status-hint .am-verified-strip {
    margin: 0;
    justify-content: flex-end;
}

.am-account-user-head .am-verified-strip {
    justify-content: flex-end;
}

@media (max-width: 720px) {
    .am-my-ads-title-row {
        flex-direction: column;
    }

    .am-account-user-head {
        text-align: left;
        width: 100%;
    }

    .am-account-status-hint {
        justify-content: flex-start;
    }
}

.am-my-ads-premium-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.am-my-ads-premium-bar__card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius);
    background: var(--am-surface-alt);
}

.am-my-ads-premium-bar__icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.am-my-ads-premium-bar__icon--fa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--am-primary) 12%, transparent);
    color: var(--am-primary);
    font-size: 1.15rem;
}

.am-my-ads-premium-bar__icon--fa.am-my-ads-premium-bar__icon--gallery {
    background: color-mix(in srgb, #7c3aed 14%, transparent);
    color: #7c3aed;
}

.statusPrem i.fas {
    margin-right: 0.35rem;
    font-size: 0.95rem;
}

.statusPrem .fa-arrow-circle-up {
    color: var(--am-primary);
}

.statusPrem .fa-crown {
    color: #7c3aed;
}

.adsTopIcon.fas {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 0.85rem;
    color: #7c3aed;
}

.am-my-ads-premium-bar__label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--am-text);
}

.am-my-ads-premium-bar__label-row {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.am-prem-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--am-text-muted);
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
}

.am-prem-info-btn:hover,
.am-prem-info-btn:focus-visible {
    color: var(--am-primary);
}

.am-my-ads-premium-bar__value {
    font-size: 1rem;
    font-weight: 700;
}

.am-my-ads-premium-bar__action {
    margin-left: 0.35rem;
    border: none;
    background: none;
    color: var(--am-primary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.am-my-ads-premium-bar__action--gallery {
    color: #7c3aed;
}

.am-mahnbox {
    margin: 0 0 1.25rem;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    border: 1px solid #bfdbfe;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
}

.am-mahnbox--reminder {
    border-color: #93c5fd;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
}

.am-mahnbox--mahnung {
    border-color: #fca5a5;
    background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
}

.am-mahnbox__header {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin-bottom: 0.85rem;
}

.am-mahnbox__icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: #fff;
    font-size: 1rem;
}

.am-mahnbox--mahnung .am-mahnbox__icon {
    background: #dc2626;
}

.am-mahnbox__title {
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.am-mahnbox__hint {
    margin: 0;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.45;
}

.am-mahnbox__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.am-mahnbox__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.am-mahnbox__item-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.85rem;
    min-width: 0;
}

.am-mahnbox__item-title {
    font-weight: 600;
    color: #0f172a;
}

.am-mahnbox__item-amount {
    font-weight: 700;
    color: #0d6b6e;
}

.am-mahnbox__item-due {
    font-size: 0.85rem;
    color: #64748b;
}

.am-mahnbox__dunning-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}

.am-mahnbox__dunning-badge.am-dunning-badge--reminder {
    background: #dbeafe;
    color: #1d4ed8;
}

.am-mahnbox__dunning-badge.am-dunning-badge--mahnung {
    background: #fee2e2;
    color: #b91c1c;
}

.am-mahnbox__item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.am-mahnbox__footer {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
}

.am-mahnbox__footer a {
    color: #0d6b6e;
    font-weight: 600;
    text-decoration: none;
}

.am-mahnbox__footer a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .am-mahnbox__item {
        flex-direction: column;
        align-items: stretch;
    }

    .am-mahnbox__item-actions {
        width: 100%;
    }

    .am-mahnbox__item-actions .am-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

.am-prem-modal-list {
    padding: 1rem 1.25rem 1.25rem;
}

.am-prem-modal-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--am-border);
}

.am-prem-modal-list__head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.am-prem-modal-list__head img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.am-prem-modal-list__head span {
    font-weight: 600;
    font-size: 0.9rem;
}

.am-prem-feature-modal .modal-content {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.am-prem-feature-modal__hero {
    position: relative;
    padding: 1.75rem 1.5rem 1.35rem;
    color: #fff;
    text-align: center;
}

.am-prem-feature-modal__hero--top {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #38bdf8 100%);
}

.am-prem-feature-modal__hero--gallery {
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 55%, #a78bfa 100%);
}

.am-prem-feature-modal__hero--highlight {
    background: linear-gradient(135deg, #b45309 0%, #f59e0b 55%, #fcd34d 100%);
}

.am-prem-feature-modal__hero--pack {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 55%, #5eead4 100%);
}

.am-prem-feature-modal__hero .btn-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
}

.am-prem-feature-modal__hero-icon {
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 0.75rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1.45rem;
}

.am-prem-feature-modal__hero-title {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 700;
}

.am-prem-feature-modal__hero-lead {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    opacity: 0.95;
}

.am-prem-feature-modal__body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.am-prem-feature-modal__preview {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--am-border);
    margin-bottom: 1rem;
    background: var(--am-surface-alt);
}

.am-prem-feature-modal__preview img {
    display: block;
    width: 100%;
    height: auto;
}

.am-prem-feature-modal__subtitle {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--am-text);
}

.am-prem-feature-modal__checks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.am-prem-feature-modal__checks li {
    position: relative;
    padding-left: 1.65rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--am-text);
}

.am-prem-feature-modal__checks li::before {
    content: "\f058";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: #16a34a;
}

[data-theme="dark"] .am-prem-feature-modal .modal-content {
    background: var(--am-surface);
    border: 1px solid var(--am-border);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .am-prem-feature-modal__body {
    background: var(--am-surface);
}

[data-theme="dark"] .am-prem-feature-modal__hero--top {
    background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 48%, #1d4ed8 100%);
}

[data-theme="dark"] .am-prem-feature-modal__hero--gallery {
    background: linear-gradient(135deg, #100a1f 0%, #3b1d6e 48%, #5b21b6 100%);
}

[data-theme="dark"] .am-prem-feature-modal__hero--highlight {
    background: linear-gradient(135deg, #2a1604 0%, #78350f 48%, #b45309 100%);
}

[data-theme="dark"] .am-prem-feature-modal__hero--pack {
    background: linear-gradient(135deg, #042f2e 0%, #0f766e 48%, #14b8a6 100%);
}

[data-theme="dark"] .am-prem-feature-modal__hero .btn-close {
    filter: invert(1) grayscale(1);
}

[data-theme="dark"] .am-prem-feature-modal__subtitle,
[data-theme="dark"] .am-prem-feature-modal__checks li {
    color: var(--am-text);
}

[data-theme="dark"] .am-prem-feature-modal__preview {
    border-color: var(--am-border);
    background: var(--am-surface-alt);
}

.am-prem-picker-modal .modal-content {
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.am-prem-picker-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    color: #fff;
}

.am-prem-picker-modal__head--top {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.am-prem-picker-modal__head--gallery {
    background: linear-gradient(135deg, #5b21b6, #7c3aed);
}

.am-prem-picker-modal__head .modal-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.am-prem-picker-modal__head p {
    margin: 0.25rem 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    opacity: 0.92;
}

.am-prem-picker-modal__head .btn-close {
    filter: invert(1);
    opacity: 0.85;
}

/* ══════════ CONFIRM MODALS (My Ads etc.) ══════════ */
.am-confirm-modal .modal-content {
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.am-confirm-modal .modal-header {
    border-bottom: 1px solid var(--am-border);
    padding: 1rem 1.25rem;
    background: var(--am-surface);
}

.am-confirm-modal .modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--am-text);
}

.am-confirm-modal__body {
    padding: 1.5rem 1.25rem 1.25rem;
    text-align: center;
}

.am-confirm-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.25rem;
    height: 4.25rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    font-size: 1.65rem;
}

.am-confirm-modal__icon .fas {
    line-height: 1;
}

.am-confirm-modal__icon-fb {
    display: none;
}

.am-confirm-modal__icon--danger {
    background: color-mix(in srgb, #dc2626 12%, #fff);
    color: #dc2626;
}

.am-confirm-modal__icon--success {
    background: color-mix(in srgb, #059669 12%, #fff);
    color: #059669;
}

.am-confirm-modal__icon--warning {
    background: color-mix(in srgb, #d97706 12%, #fff);
    color: #d97706;
}

.am-confirm-modal__icon--primary {
    background: color-mix(in srgb, var(--am-primary, #0c4a5c) 12%, #fff);
    color: var(--am-primary, #0c4a5c);
}

.am-confirm-modal__question {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--am-text);
}

.am-confirm-modal__message {
    margin: 0;
    color: var(--am-text-muted);
    line-height: 1.55;
    font-size: 0.95rem;
}

.am-confirm-modal__extra {
    margin-top: 1.15rem;
    text-align: left;
}

.am-confirm-modal__label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--am-text);
}

.am-confirm-modal__hint {
    margin: 0.55rem 0 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--am-text-muted);
    text-align: left;
}

.am-confirm-modal__footer {
    border-top: 1px solid var(--am-border);
    padding: 0.9rem 1.25rem;
    gap: 0.6rem;
    justify-content: center;
    background: var(--am-surface-alt);
}

.am-confirm-modal__footer .am-btn {
    min-width: 7.5rem;
}

@supports not (color: color-mix(in srgb, red, blue)) {
    .am-confirm-modal__icon--danger { background: #fef2f2; }
    .am-confirm-modal__icon--success { background: #ecfdf5; }
    .am-confirm-modal__icon--warning { background: #fffbeb; }
    .am-confirm-modal__icon--primary { background: #f0f9fb; }
}

[data-theme="dark"] .am-confirm-modal .modal-header,
[data-theme="dark"] .am-confirm-modal__footer {
    background: var(--am-surface);
}

[data-theme="dark"] .am-confirm-modal__icon--danger {
    background: color-mix(in srgb, #dc2626 22%, var(--am-surface));
}

[data-theme="dark"] .am-confirm-modal__icon--success {
    background: color-mix(in srgb, #059669 22%, var(--am-surface));
}

[data-theme="dark"] .am-confirm-modal__icon--warning {
    background: color-mix(in srgb, #d97706 22%, var(--am-surface));
}

[data-theme="dark"] .am-confirm-modal__icon--primary {
    background: color-mix(in srgb, var(--am-primary-light, #38bdf8) 18%, var(--am-surface));
}

.am-empty-state--compact {
    padding: 1.5rem 1rem;
}

.am-ads-table .actBtn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--am-text);
    background: var(--am-surface);
    border: 1px solid var(--am-border);
    margin-bottom: 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
}

.am-ads-table .actBtn:hover {
    background: var(--am-surface-alt);
    border-color: var(--am-primary-light);
}

.am-ads-table .actBtnIcon {
    width: 18px;
    margin-right: 0;
    flex-shrink: 0;
}

.am-ads-table .actBtnIcon.fas,
.am-ads-table .actBtnIcon.fab {
    width: auto;
    font-size: 1rem;
}

.am-ads-table .actBtnIcon.fa-bolt {
    color: #ef4444;
}

.am-ads-table .actBtnIcon.fa-arrow-circle-up {
    color: var(--am-primary);
}

.am-ads-table tr.pack2ads {
    border-color: #fbbf24;
    background: #fffbeb;
}

.am-form-select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--am-border);
    border-radius: 10px;
    font-family: var(--am-font);
    font-size: 0.95rem;
    background: var(--am-surface-alt);
    color: var(--am-text);
    outline: none;
}

.am-form-select:focus {
    border-color: var(--am-primary-light);
    box-shadow: 0 0 0 3px rgba(12, 74, 92, 0.12);
}

.d-none { display: none !important; }

.mb-2 { margin-bottom: 0.5rem; }
.mt-2 { margin-top: 0.5rem; }

/* ── Account subpages: shared form overrides ── */
.am-dashboard .form-control,
.am-dashboard .form-select,
.am-dashboard textarea.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--am-border);
    border-radius: 10px;
    font-family: var(--am-font);
    font-size: 0.95rem;
    background: var(--am-surface-alt);
    color: var(--am-text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.am-dashboard .form-control:focus,
.am-dashboard .form-select:focus,
.am-dashboard textarea.form-control:focus {
    border-color: var(--am-primary-light);
    box-shadow: 0 0 0 3px rgba(12, 74, 92, 0.12);
    background: var(--am-surface);
}

.am-dashboard .form-control-sm {
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
}

/* Setting option cards (security, notify) */
.am-setting-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--am-surface-alt);
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius);
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.am-setting-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--am-surface);
    border: 1px solid var(--am-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.am-setting-card__icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.am-setting-card__icon i {
    font-size: 1.35rem;
    color: var(--am-primary);
}

.am-setting-card__body {
    flex: 1;
    min-width: 200px;
}

.am-setting-card__title {
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0 0 0.25rem;
    color: var(--am-text);
}

.am-setting-card__desc {
    font-size: 0.85rem;
    color: var(--am-text-muted);
    margin: 0;
}

.am-setting-card__action {
    flex-shrink: 0;
}

/* Toggle (notify, merchant shop) */
.am-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.am-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.am-toggle__slider {
    position: absolute;
    inset: 0;
    background: var(--am-border);
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s;
}

.am-toggle__slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.am-toggle input:checked + .am-toggle__slider {
    background: var(--am-primary-light);
}

.am-toggle input:checked + .am-toggle__slider::before {
    transform: translateX(20px);
}

.am-toggle input:disabled + .am-toggle__slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Data tables */
.am-table-wrap {
    overflow-x: auto;
    margin-bottom: 2rem;
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius);
    background: var(--am-surface);
}

.am-data-table {
    width: 100% !important;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.am-data-table thead th {
    background: var(--am-surface-alt);
    color: var(--am-text-muted);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--am-border);
    white-space: nowrap;
}

.am-data-table tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--am-border);
    color: var(--am-text);
    vertical-align: middle;
}

.am-data-table tbody tr:last-child td {
    border-bottom: none;
}

.am-data-table tbody tr:hover td {
    background: var(--am-surface-alt);
}

.am-status--ok {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    background: #dcfce7;
    color: #15803d;
}

.am-status--fail {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    background: #fef2f2;
    color: #b91c1c;
}

/* DataTables skin */
.am-table-wrap .dataTables_wrapper {
    padding: 1rem;
    font-size: 0.875rem;
}

.am-table-wrap .dataTables_filter input,
.am-table-wrap .dataTables_length select {
    border: 2px solid var(--am-border);
    border-radius: 8px;
    padding: 0.4rem 0.65rem;
    font-family: var(--am-font);
}

.am-table-wrap .dataTables_paginate .paginate_button {
    border-radius: 8px !important;
    border: 1px solid var(--am-border) !important;
    margin: 0 2px;
}

.am-table-wrap .dataTables_paginate .paginate_button.current {
    background: var(--am-primary) !important;
    color: #fff !important;
    border-color: var(--am-primary) !important;
}

/* Merchant form inside dashboard */
.am-settings-form--merchant hr {
    border: none;
    border-top: 1px solid var(--am-border);
    margin: 0;
}

.am-settings-form--merchant > .row {
    padding: 1.15rem 0;
    align-items: start;
}

.am-settings-form--merchant .fontBold {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--am-text);
}

.am-settings-form--merchant .shop_logo_img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 0;
    border-radius: 0;
    cursor: pointer;
}

.am-merchant-settings-card {
    padding: 0;
    overflow: hidden;
}

.am-merchant-settings-card .am-settings-form--merchant {
    padding: 0;
}

.am-merchant-logo-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 148px;
    height: 148px;
    padding: 0.85rem;
    background: #fff;
    border: 1px dashed var(--am-border);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.am-merchant-logo-preview:hover {
    border-color: color-mix(in srgb, var(--am-primary) 40%, var(--am-border));
    box-shadow: var(--am-shadow-sm);
}

.am-merchant-logo-preview__img {
    flex: 1;
    min-height: 0;
}

.am-merchant-logo-preview__hint {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--am-text-muted);
    text-align: center;
}

.am-settings-form--merchant .sliderItem {
    max-width: 80px;
    max-height: 60px;
    object-fit: cover;
    border-radius: 6px;
    margin: 4px;
    border: 1px solid var(--am-border);
}

.am-settings-form--merchant .mytb1 {
    width: 100%;
    font-size: 0.85rem;
}

.am-settings-form--merchant .mytb1 th,
.am-settings-form--merchant .mytb1 td {
    padding: 0.4rem;
    vertical-align: middle;
}

.am-merchant-section {
    padding: 1.25rem 1.25rem 0.5rem;
    border-bottom: 1px solid var(--am-border);
}

.am-merchant-section:last-of-type {
    border-bottom: none;
}

.am-merchant-section__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--am-primary);
}

.am-merchant-section__lead {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: var(--am-text-muted);
}

.am-settings-form--merchant .am-settings-row--editor {
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
}

.am-settings-form--merchant .am-settings-row--split .am-merchant-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.am-merchant-hours {
    overflow-x: auto;
    margin-bottom: 0.5rem;
}

.am-merchant-hours table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.45rem;
}

.am-merchant-hours th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--am-text-muted);
    padding: 0 0.5rem 0.25rem;
}

.am-merchant-hours td {
    background: var(--am-surface-alt);
    border: 1px solid var(--am-border);
    padding: 0.55rem 0.65rem;
    vertical-align: middle;
}

.am-merchant-hours tr td:first-child {
    border-radius: 10px 0 0 10px;
    width: 42%;
}

.am-merchant-hours tr td:last-child {
    border-radius: 0 10px 10px 0;
}

.am-merchant-hours__times {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.45rem;
    align-items: center;
}

.am-merchant-hours__times span {
    color: var(--am-text-muted);
    font-weight: 700;
}

.am-merchant-logo-dropzone {
    position: relative;
    display: grid;
    gap: 0.75rem;
    max-width: 280px;
}

.am-merchant-logo-dropzone__preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    padding: 1rem;
    background: var(--am-surface-alt);
    border: 1px dashed var(--am-border);
    border-radius: 14px;
}

.am-merchant-logo-dropzone__preview img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.am-merchant-logo-dropzone .am-dropzone__surface {
    pointer-events: auto;
    cursor: pointer;
}

.am-merchant-slider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 0.65rem;
    margin-top: 0.85rem;
}

.am-merchant-slider__item {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--am-border);
    background: var(--am-surface-alt);
}

.am-merchant-slider__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.am-merchant-slider__remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
}

.am-merchant-preview-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.am-merchant-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 1.25rem 1.75rem;
}

@media (max-width: 768px) {
    .am-settings-form--merchant .am-settings-row--editor,
    .am-settings-form--merchant .am-settings-row--split .am-merchant-grid-2 {
        grid-template-columns: 1fr;
    }
}

.am-btn--sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
}

.text-end { text-align: right; }

/* ── Search results ── */
.am-search-results {
    background: var(--am-surface);
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--am-shadow-sm);
}

.am-search-results__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    color: var(--am-text);
}

.am-search-results__title span {
    font-weight: 500;
    color: var(--am-text-muted);
    font-size: 0.95rem;
}

.am-search-results__count {
    font-size: 0.85rem;
    color: var(--am-text-muted);
    margin-top: 1rem;
}

/* ── Public profile ── */
.am-profile-card.am-panel-card {
    padding: 0;
    overflow: hidden;
}

.am-profile-card .am-profile-hero {
    margin-bottom: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.am-account-page > .am-breadcrumb,
.am-edit-ad-page > .am-breadcrumb,
.am-my-ads-page > .am-breadcrumb,
.am-profile-page > .am-breadcrumb,
.am-review-page > .am-breadcrumb {
    margin-bottom: 1rem;
}

/* Panel breadcrumb: bleibt beim Scrollen unter dem Site-Header sichtbar */
.am-main--panel .am-breadcrumb--page {
    position: sticky;
    top: var(--am-header-h, 72px);
    z-index: 20;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    margin-bottom: 1rem;
    background: var(--am-surface-alt);
    box-shadow: 0 1px 0 var(--am-border);
}

.am-main--panel .am-dashboard > .am-breadcrumb--page {
    background: var(--am-surface);
}

.am-main--panel .am-dashboard > .am-breadcrumb--page:first-child {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 992px) {
    .am-main--panel:has(.am-breadcrumb--page) .am-account-sidebar {
        top: calc(var(--am-header-h, 72px) + var(--am-panel-breadcrumb-h, 2.35rem) + 0.65rem);
        max-height: calc(100vh - var(--am-header-h, 72px) - var(--am-panel-breadcrumb-h, 2.35rem) - 1.65rem);
    }
}

.am-main--panel .am-account-layout {
    gap: 1.5rem;
}

.am-main--panel .am-account-sidebar__link {
    font-size: 0.82rem;
}

.am-account-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.am-account-overview__card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.1rem 1.15rem;
    border: 1px solid var(--am-border);
    border-radius: 14px;
    background: var(--am-surface-alt);
}

.am-account-overview__card--primary {
    border-color: var(--am-primary-light);
    background: linear-gradient(135deg, rgba(12, 74, 92, 0.08) 0%, rgba(12, 74, 92, 0.02) 100%);
}

.am-account-overview__value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    color: var(--am-primary);
}

.am-account-overview__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--am-text-muted);
}

.am-account-overview__action,
.am-account-overview__link {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--am-primary);
    text-decoration: none;
}

.am-account-overview__action:hover,
.am-account-overview__link:hover {
    color: var(--am-primary-dark);
}

.am-profi-steps {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.am-profi-steps__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--am-border);
    background: var(--am-surface-alt);
    color: var(--am-text-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.am-profi-steps__item--active {
    border-color: var(--am-primary);
    background: var(--am-primary);
    color: #fff;
}

.am-profi-steps__item--done {
    border-color: var(--am-primary-light);
    color: var(--am-primary);
}

.am-profi-steps__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    font-size: 0.75rem;
    font-weight: 700;
}

.am-profi-steps__item--active .am-profi-steps__num {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.am-profi-paket-page__lead {
    color: var(--am-text-muted);
    margin-bottom: 1.25rem;
}

.am-profi-packages-form__submit {
    margin-top: 1.25rem;
}

.am-payment-success__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (max-width: 992px) {
    .am-account-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .am-account-overview {
        grid-template-columns: 1fr;
    }

    .am-profi-steps {
        flex-direction: column;
        align-items: stretch;
    }
}

.am-profile-page {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

.am-profile-listings-card {
    padding: 1.25rem 1.5rem 1.5rem;
}

.am-profile-listings__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.am-profile-listings__head .am-section-title {
    margin: 0;
}

.am-profile-listings__count {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--am-text-muted);
    background: var(--am-surface-alt);
    border: 1px solid var(--am-border);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
}

.am-profile-listings__empty {
    padding: 0.5rem 0 0.25rem;
}

.am-profile-listings__empty .am-empty-state--premium {
    margin: 0;
}

.am-profile-listings__empty .am-empty-state--welcome {
    background: linear-gradient(160deg, rgba(12, 74, 92, 0.04) 0%, rgba(255, 255, 255, 0) 55%);
    border: 1px dashed color-mix(in srgb, var(--am-primary, #0c4a5c) 22%, var(--am-border, #e2e8f0));
    border-radius: 16px;
}

.am-empty-state--profile-guest {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(180deg, var(--am-surface-alt, #f8fafc) 0%, var(--am-surface, #fff) 100%);
    border: 1px solid var(--am-border);
    border-radius: 16px;
}

.am-empty-state--profile-guest .am-empty-state__icon {
    margin: 0 auto 1rem;
    width: 4.5rem;
    height: 4.5rem;
    font-size: 1.65rem;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    color: #0369a1;
}

.am-empty-state--profile-guest .am-empty-state__title {
    font-size: 1.15rem;
    margin-bottom: 0.45rem;
}

.am-empty-state--profile-guest .am-empty-state__desc {
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.am-profile-ads-table {
    margin-top: 0.25rem;
}

.am-profile-ad__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.am-profile-ad__link:hover .font16 {
    color: var(--am-primary);
}

.am-profile-ad__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0.5rem;
    white-space: nowrap;
    padding-top: 0.25rem !important;
}

.am-profile-ad__view {
    min-width: 9.5rem;
}

.am-profile-ad__fav {
    border: 1px solid var(--am-border);
    background: var(--am-surface-alt);
    color: #fbbf24;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.am-profile-ad__fav:hover,
.am-profile-ad__fav.removeMerk {
    background: #fffbeb;
    border-color: #fcd34d;
}

.am-profile-hero {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    margin-bottom: 0;
}

.am-profile-hero__main {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 1.5rem 1.25rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.am-profile-hero__avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.am-profile-hero__avatar {
    width: 108px;
    height: 108px;
    border-radius: 16px;
    object-fit: cover;
    border: 3px solid var(--am-border);
    box-shadow: var(--am-shadow-sm);
}

.am-profile-hero__verified {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(145deg, #38bdf8 0%, #2563eb 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    border: 2px solid var(--am-surface);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

.am-profile-hero__info { flex: 1; min-width: 220px; }

.am-profile-hero__name {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
    color: var(--am-text);
}

.am-profile-hero__name-row .am-profile-hero__rating {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0;
    border: none;
    background: none;
    color: var(--am-text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

.am-profile-hero__name-row .am-profile-hero__rating i {
    color: #f59e0b;
    font-size: 0.72rem;
}

.am-profile-hero__rating {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #b45309;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
}

.am-profile-hero__rating i {
    color: #f59e0b;
    font-size: 0.75rem;
}

.am-profile-hero__since {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.88rem;
    color: var(--am-text-muted);
    margin-bottom: 0.85rem;
}

.am-profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.am-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.75rem;
    background: var(--am-surface-alt);
    border: 1px solid var(--am-border);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--am-text);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
}

.am-profile-link:hover {
    border-color: var(--am-primary-light);
    color: var(--am-primary);
    background: #f0f9ff;
}

.am-profile-link i {
    font-size: 0.82rem;
    color: var(--am-primary);
}

.am-profile-social {
    display: flex;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.am-profile-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--am-border);
    background: var(--am-surface-alt);
    color: var(--am-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.15s;
}

.am-profile-social a:hover {
    color: var(--am-primary);
    border-color: var(--am-primary-light);
    transform: translateY(-1px);
}

.am-profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0;
    border-top: 1px solid var(--am-border);
    background: linear-gradient(180deg, var(--am-surface-alt) 0%, var(--am-surface) 100%);
}

.am-profile-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    border-right: 1px solid var(--am-border);
}

.am-profile-stat:last-child { border-right: none; }

.am-profile-stat__icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #ecfeff;
    color: var(--am-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.am-profile-stat__icon--blue { background: #eff6ff; color: #2563eb; }
.am-profile-stat__icon--green { background: #ecfdf5; color: #16a34a; }
.am-profile-stat__icon--orange { background: #fff7ed; color: #ea580c; }
.am-profile-stat__icon--pink { background: #fdf2f8; color: #db2777; }

.am-profile-stat__value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--am-text);
    line-height: 1.2;
}

.am-profile-stat__label {
    font-size: 0.72rem;
    color: var(--am-text-muted);
}

.am-profile-layout {
    display: block;
}

.am-profile-layout--with-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
    gap: 1.5rem 2rem;
    align-items: start;
}

.am-profile-layout__banner {
    position: relative;
    align-self: start;
    justify-self: end;
    width: 100%;
    max-width: 260px;
    min-height: 1px;
}

.am-profile-banner {
    border-radius: 0;
    overflow: visible;
    border: none;
    box-shadow: none;
    background: transparent;
    position: sticky;
    top: calc(var(--am-header-h, 72px) + 1rem);
    z-index: 20;
    max-height: calc(100vh - var(--am-header-h, 72px) - 2rem);
    overflow-y: auto;
}

.am-profile-banner.is-pinned {
    position: fixed;
    z-index: 30;
    max-height: calc(100vh - var(--am-header-h, 72px) - 2rem);
    overflow-y: auto;
}

.am-profile-banner.is-pinned-bottom {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
}

.am-profile-banner img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--am-radius-lg);
}

@media (max-width: 960px) {
    .am-profile-layout--with-banner {
        grid-template-columns: 1fr;
    }

    .am-profile-layout__banner {
        position: static;
        justify-self: center;
        max-width: 300px;
        margin: 0 auto;
    }
}

.am-profile-listings {
    background: var(--am-surface);
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--am-shadow-sm);
}

/* Profile legacy table fallback */
.am-profile-table .product td {
    padding: 0.85rem;
    vertical-align: top;
}

.am-profile-table .prodListImg {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

.am-profile-table .greenInfo,
.am-profile-table .blueInfo,
.am-profile-table .violetInfo {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    margin-right: 0.35rem;
}

.am-profile-table .greenInfo { background: #dcfce7; color: #15803d; }
.am-profile-table .blueInfo { background: #dbeafe; color: #1d4ed8; }
.am-profile-table .violetInfo { background: #ede9fe; color: #6d28d9; }

.am-profile-table .merkStar {
    color: #fbbf24;
    cursor: pointer;
    margin-top: 0.5rem;
}

/* ── Edit ad form ── */
.am-edit-ad .__Center {
    width: 100%;
    margin: 0;
}

.am-edit-ad .mRow.mobileMLR.border {
    border: none !important;
    margin: 0;
}

.am-edit-ad .border-bottom.padding13-20,
.am-edit-ad .padding13-20 {
    padding: 1.25rem 0;
    border-color: var(--am-border) !important;
}

.am-edit-ad .border-bottom.padding13-20.spaceBetween {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0;
}

.am-edit-ad .border-bottom.padding13-20.spaceBetween h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: var(--am-text);
}

.am-edit-ad .btn2,
.am-edit-ad .btn3,
.am-edit-ad .btn4 {
    background: var(--am-primary);
    color: #fff;
    border: none;
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.am-edit-ad .btn2:hover:not(:disabled),
.am-edit-ad .btn3:hover,
.am-edit-ad .btn4:hover {
    background: var(--am-primary-dark);
    color: #fff;
}

.am-edit-ad .btn3 {
    background: var(--am-surface-alt);
    color: var(--am-text);
    border: 1px solid var(--am-border);
}

.am-edit-ad .tipDiv {
    background: linear-gradient(135deg, var(--am-surface-alt), var(--am-surface));
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius);
    padding: 1rem;
    font-size: 0.875rem;
    color: var(--am-text-muted);
}

.am-edit-ad .error-message {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: var(--am-radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.am-edit-ad .input-group-text {
    background: var(--am-surface-alt);
    border: 2px solid var(--am-border);
    font-weight: 600;
    font-size: 0.8rem;
}

.am-edit-ad .col-form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--am-text);
}

/* ── Business info modal ── */
.am-info-modal {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.am-info-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem 1.1rem;
    background: linear-gradient(135deg, var(--am-primary) 0%, #0f766e 100%);
    color: #fff;
}

.am-info-modal__kicker {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 0.25rem;
}

.am-info-modal__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.am-info-modal__head .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.am-info-modal__body {
    padding: 1.25rem 1.5rem 1.5rem;
    background: var(--am-surface);
}

.am-info-modal__section + .am-info-modal__section {
    margin-top: 1.15rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--am-border);
}

.am-info-modal__section-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--am-text);
}

.am-info-modal__section-title i {
    color: var(--am-primary);
    width: 1rem;
    text-align: center;
}

.am-info-modal__text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--am-text-muted);
}

.am-info-modal__text--strong {
    font-weight: 600;
    color: var(--am-text);
}

.am-info-modal__hours {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.am-info-modal__hour-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.88rem;
    padding: 0.45rem 0.65rem;
    background: var(--am-surface-alt);
    border-radius: 10px;
}

.am-info-modal__hour-day {
    font-weight: 600;
    color: var(--am-text);
}

.am-info-modal__hour-time {
    color: var(--am-text-muted);
}

/* ── Review detail page ── */
.am-review-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .am-review-summary {
        grid-template-columns: 1fr;
    }
}

.am-review-summary__profile {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem 1.35rem;
}

.am-review-summary__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--am-border);
}

.am-review-summary__name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--am-text);
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.am-review-summary__stars {
    font-weight: 600;
    margin-left: 0.35rem;
}

.am-review-summary__meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.84rem;
    color: var(--am-text-muted);
}

.am-review-summary__detail {
    margin-top: 0.45rem;
    font-size: 0.84rem;
    color: var(--am-text-muted);
}

.am-review-summary__stats {
    padding: 1.1rem 1.25rem;
}

.am-review-summary__stats-title {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.am-review-stats-table {
    width: 100%;
    font-size: 0.84rem;
    border-collapse: collapse;
}

.am-review-stats-table th,
.am-review-stats-table td {
    padding: 0.45rem 0.35rem;
    text-align: center;
    border-bottom: 1px solid var(--am-border);
}

.am-review-stats-table th:first-child,
.am-review-stats-table td:first-child {
    text-align: left;
}

.am-review-stats-table thead th {
    font-weight: 600;
    color: var(--am-text-muted);
    font-size: 0.78rem;
}

.am-review-icon--pos { color: #16a34a; }
.am-review-icon--neu { color: #64748b; }
.am-review-icon--neg { color: #dc2626; }

.am-review-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.am-review-tabs {
    gap: 0.35rem;
    flex-wrap: wrap;
}

.am-review-tabs .nav-link {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    color: var(--am-text-muted);
    border: 1px solid transparent;
}

.am-review-tabs .nav-link.active {
    background: var(--am-primary);
    color: #fff;
}

.am-review-search {
    position: relative;
    min-width: min(100%, 280px);
    flex: 1;
}

.am-review-search__icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--am-text-muted);
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 2;
}

.am-review-search__input {
    padding-left: 2.65rem !important;
    padding-right: 1rem;
    border-radius: 999px;
    border: 1px solid var(--am-border);
    font-size: 0.88rem;
    min-height: 2.5rem;
}

.am-review-search__empty {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: var(--am-text-muted);
}

.am-review-list-wrap {
    background: var(--am-surface);
    border: 1px solid var(--am-border);
    border-radius: var(--am-radius-lg);
    padding: 0.75rem;
    box-shadow: var(--am-shadow-sm);
}

.am-review-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.am-review-card {
    display: flex;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: var(--am-surface-alt);
    border: 1px solid var(--am-border);
}

.am-review-card__icon {
    flex-shrink: 0;
    width: 2rem;
    text-align: center;
    font-size: 1.15rem;
    padding-top: 0.1rem;
}

.am-review-card__icon--pos { color: #16a34a; }
.am-review-card__icon--neu { color: #64748b; }
.am-review-card__icon--neg { color: #dc2626; }

.am-review-card__body {
    flex: 1;
    min-width: 0;
}

.am-review-card__product {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: var(--am-text);
}

.am-review-card__msg {
    margin: 0 0 0.45rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--am-text-muted);
}

.am-review-card__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--am-text-muted);
}

.am-review-card__meta a {
    color: var(--am-primary);
    text-decoration: none;
}

.am-review-empty {
    padding: 2rem 1rem;
}

/* ── User detail modal (buyer/seller) ── */
.am-user-detail-modal .modal-content {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.am-user-detail-modal .modal-header {
    background: linear-gradient(135deg, var(--am-primary) 0%, #0f4c5c 100%);
    color: #fff;
    border: none;
    padding: 1.1rem 1.25rem;
}

.am-user-detail-modal .modal-header .btn-close {
    filter: invert(1);
}

.am-user-detail-modal .modal-body {
    padding: 1.25rem;
    background: #f8fafc;
}

.am-user-detail-modal__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 120px;
    color: var(--am-text-muted);
}

.am-user-detail__hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: #fff;
    border-radius: 0.85rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.am-user-detail__avatar {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: rgba(15, 76, 92, 0.1);
    color: var(--am-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.am-user-detail__name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--am-text);
}

.am-user-detail__hint {
    font-size: 0.82rem;
    color: var(--am-text-muted);
    margin-top: 0.15rem;
}

.am-user-detail__grid {
    display: grid;
    gap: 0.65rem;
}

.am-user-detail__row {
    display: grid;
    grid-template-columns: minmax(110px, 34%) 1fr;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border-radius: 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.am-user-detail__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--am-text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
}

.am-user-detail__label i {
    color: var(--am-primary);
    margin-top: 0.1rem;
}

.am-user-detail__value {
    font-size: 0.95rem;
    color: var(--am-text);
    word-break: break-word;
}

/* ── Premium review form (eBay-style) ── */
.am-review-form-premium {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.am-review-form-premium__section {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.am-review-form-premium__section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.am-review-form-premium__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.am-review-form-premium__desc {
    font-size: 0.88rem;
    color: var(--am-text-muted);
    margin-bottom: 1rem;
}

.am-review-experience-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.am-review-experience-btn {
    flex: 1;
    min-width: 120px;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    border: 2px solid transparent;
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}

.am-review-experience-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.am-review-experience-btn.is-active {
    box-shadow: 0 0 0 3px rgba(15, 76, 92, 0.25);
    border-color: rgba(15, 76, 92, 0.35);
}

.am-review-experience-btn--pos { background: #dcfce7; color: #166534; }
.am-review-experience-btn--neu { background: #f1f5f9; color: #475569; }
.am-review-experience-btn--neg { background: #fee2e2; color: #991b1b; }

.am-review-textarea {
    min-height: 140px;
    resize: vertical;
    border-radius: 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    width: 100%;
}

.am-review-char-count {
    text-align: right;
    font-size: 0.78rem;
    color: var(--am-text-muted);
    margin-top: 0.35rem;
}

.am-review-star-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    flex-wrap: wrap;
}

.am-review-star-block__label {
    font-size: 0.9rem;
    color: var(--am-text);
    flex: 1;
    min-width: 180px;
}

.am-review-star-input {
    display: inline-flex;
    gap: 0.2rem;
}

.am-review-star-input .fa-star {
    font-size: 1.35rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.12s, transform 0.12s;
}

.am-review-star-input .fa-star.is-filled {
    color: #f59e0b;
}

.am-review-star-input .fa-star:hover:not(.is-disabled) {
    transform: scale(1.1);
}

.am-review-media-upload {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.am-review-media-drop {
    border: 2px dashed rgba(15, 76, 92, 0.25);
    border-radius: 0.85rem;
    padding: 1.25rem;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.am-review-media-drop:hover,
.am-review-media-drop.is-dragover {
    border-color: var(--am-primary);
    background: rgba(15, 76, 92, 0.04);
}

.am-review-media-drop__icon {
    font-size: 1.75rem;
    color: var(--am-primary);
    margin-bottom: 0.5rem;
}

.am-review-media-drop__title {
    font-weight: 600;
    font-size: 0.92rem;
}

.am-review-media-drop__hint {
    font-size: 0.78rem;
    color: var(--am-text-muted);
    margin-top: 0.25rem;
}

.am-review-media-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.85rem;
}

.am-review-media-preview__item {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 0.65rem;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.am-review-media-preview__item img,
.am-review-media-preview__item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.am-review-media-preview__remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.am-review-card__media {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.65rem;
}

.am-review-card__media img,
.am-review-card__media video {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

/* ── Merkliste ── */
.am-merkliste-page > .am-breadcrumb {
    margin-bottom: 1rem;
}

.am-merkliste-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.am-merkliste-head .am-page-title {
    margin: 0 0 0.2rem;
}

.am-merkliste-head__meta {
    margin: 0;
    font-size: 0.88rem;
    color: var(--am-text-muted);
}

.am-merkliste-search {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: min(100%, 300px);
    padding: 0 1rem 0 0.85rem;
    border: 1px solid var(--am-border);
    border-radius: 999px;
    background: var(--am-surface);
    min-height: 42px;
}

.am-merkliste-search__icon {
    flex-shrink: 0;
    color: var(--am-text-muted);
    font-size: 0.85rem;
    line-height: 1;
}

.am-merkliste-search__input {
    flex: 1;
    min-width: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.55rem 0 !important;
    font-size: 0.9rem;
}

.am-merkliste-search__input:focus {
    outline: none;
    box-shadow: none !important;
}

.am-merkliste-search .form-control {
    padding-left: 0 !important;
    background-image: none !important;
}

.am-merkliste-card {
    padding: 1.25rem 1.35rem 1.5rem;
}

.am-merkliste-card--empty {
    padding: 2.5rem 1.5rem;
}

.am-merkliste-table tr {
    grid-template-columns: 118px minmax(0, 1fr) minmax(120px, 150px);
}

.am-merkliste-row.is-hidden {
    display: none !important;
}

.am-merkliste-row.is-removing {
    opacity: 0;
    transform: translateX(12px);
    transition: opacity 0.25s, transform 0.25s;
}

.am-merkliste-ad__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.am-merkliste-ad__link:hover .font16 {
    color: var(--am-primary);
}

.am-merkliste-ad__location {
    color: var(--am-text-muted);
    margin-bottom: 0.2rem;
}

.am-merkliste-ad__location i {
    color: var(--am-primary-light);
    margin-right: 0.25rem;
}

.am-merkliste-ad__actions {
    justify-content: center;
    align-items: center !important;
    padding-top: 0 !important;
}

.am-merkliste-ad__remove {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    min-height: 90px;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    background: #fffbeb;
    color: #d97706;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.am-merkliste-ad__remove i {
    font-size: 1.25rem;
    color: #fbbf24;
}

.am-merkliste-ad__remove:hover {
    background: #fef3c7;
    border-color: #fbbf24;
    transform: scale(1.02);
}

.am-merkliste-empty__icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #fffbeb;
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.am-merkliste-empty__title {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.am-merkliste-card--empty .am-empty-state {
    padding: 1rem 0 0.5rem;
}

@media (max-width: 720px) {
    .am-merkliste-table tr {
        grid-template-columns: 90px minmax(0, 1fr);
        grid-template-areas:
            "thumb body"
            "actions actions";
    }

    .am-merkliste-ad__remove {
        min-height: auto;
        flex-direction: row;
        padding: 0.65rem 1rem;
    }
}

/* ══════════ SAVED SHOPS (premium) ══════════ */
.am-saved-shops-page > .am-breadcrumb {
    max-width: var(--am-content-max);
    margin: 0 auto 1rem;
    padding: 0 var(--am-content-pad);
}

.am-saved-shops-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.am-saved-shops-head .am-page-title {
    margin-bottom: 0.25rem;
}

.am-saved-shops-head__meta {
    margin: 0;
    color: var(--am-text-muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.am-saved-shops-sort {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--am-text-muted);
}

.am-saved-shops-sort select {
    min-width: 190px;
    border-radius: 10px;
    border: 2px solid var(--am-border);
    font-weight: 600;
}

.am-saved-shops-card {
    padding: 1rem;
}

.am-saved-shops-card--empty {
    padding: 2rem 1.5rem;
}

.am-saved-shops-list {
    display: grid;
    gap: 0.85rem;
}

.am-saved-shop-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1.15rem 1.25rem;
    background: var(--am-surface-alt);
    border: 1px solid var(--am-border);
    border-radius: 16px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.28s ease;
}

.am-saved-shop-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--am-shadow-sm);
}

.am-saved-shop-card.is-removing {
    opacity: 0;
    transform: translateY(6px);
}

.am-saved-shop-card__logo-wrap {
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem;
    background: var(--am-logo-bg);
    border: 1px solid var(--am-logo-border);
    border-radius: 14px;
    flex-shrink: 0;
    text-decoration: none;
}

.am-saved-shop-card__logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.am-saved-shop-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.am-saved-shop-card__title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
}

.am-saved-shop-card__title a {
    color: inherit;
    text-decoration: none;
}

.am-saved-shop-card__title a:hover {
    color: var(--am-primary);
}

.am-saved-shop-card__address {
    margin: 0 0 0.45rem;
    color: var(--am-text-muted);
    font-size: 0.88rem;
}

.am-saved-shop-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-bottom: 0.35rem;
}

.am-saved-shop-card__date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--am-text-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.am-saved-shop-card__note {
    margin: 0.35rem 0 0;
    padding: 0.55rem 0.75rem;
    background: var(--am-surface);
    border: 1px dashed var(--am-border);
    border-radius: 10px;
    color: var(--am-text-muted);
    font-size: 0.86rem;
    font-style: italic;
}

.am-saved-shop-card__note i {
    margin-right: 0.35rem;
    color: var(--am-primary);
}

.am-saved-shop-card__remove {
    border: 0;
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.am-saved-shop-card__remove:hover {
    background: rgba(220, 38, 38, 0.14);
    transform: scale(1.05);
}

.am-saved-shop-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
    min-width: 11rem;
}

.am-saved-shops-empty__icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(217, 119, 6, 0.08));
    color: #d97706;
    font-size: 1.65rem;
}

.am-saved-shops-empty__title {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 800;
}

.am-saved-shops-card--empty .am-empty-state {
    padding: 1rem 0 0.5rem;
}

.am-saved-shops-flash .success-message {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.2);
    color: #15803d;
    font-weight: 600;
}

@media (max-width: 900px) {
    .am-saved-shop-card {
        grid-template-columns: auto 1fr;
    }

    .am-saved-shop-card__actions {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        min-width: 0;
    }
}

@media (max-width: 560px) {
    .am-saved-shop-card__logo-wrap {
        width: 76px;
        height: 76px;
    }

    .am-saved-shops-sort {
        width: 100%;
    }

    .am-saved-shops-sort select {
        flex: 1;
        min-width: 0;
    }
}

/* ── Mobile product detail + dark polish ── */
@media (max-width: 768px) {
    .am-product-page {
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 1.5rem;
    }

    .am-product-nav {
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .am-product-content,
    .am-seller-card,
    .am-meta-card {
        padding: 1rem;
        border-radius: var(--am-radius);
    }

    .am-product-content h1 {
        font-size: 1.25rem;
    }

    .am-product-price {
        font-size: 1.45rem;
    }

    .am-seller-more {
        padding: 0.85rem 1rem;
    }

    .am-product-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .am-product-gallery .carousel-control-prev,
    .am-product-gallery .carousel-control-next {
        width: 36px;
        height: 36px;
        margin: 0 0.35rem;
    }

    .am-detail-grid__item {
        padding: 0.8rem 0.95rem;
    }
}

[data-theme="dark"] .am-product-gallery .carousel-control-prev,
[data-theme="dark"] .am-product-gallery .carousel-control-next {
    background: transparent;
}

[data-theme="dark"] .am-gallery-arrow {
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .am-product-gallery .carousel-control-prev:hover .am-gallery-arrow,
[data-theme="dark"] .am-product-gallery .carousel-control-next:hover .am-gallery-arrow,
[data-theme="dark"] .am-product-gallery .carousel-control-prev:focus .am-gallery-arrow,
[data-theme="dark"] .am-product-gallery .carousel-control-next:focus .am-gallery-arrow {
    background: rgba(21, 105, 127, 0.95);
    border-color: rgba(255, 255, 255, 0.38);
    color: #fff;
}

[data-theme="dark"] .am-product-gallery .carousel-item img,
[data-theme="dark"] .am-product-gallery .adImgs,
[data-theme="dark"] .am-product-gallery.mp-gallery-wrap {
    background: var(--am-surface-alt);
}

[data-theme="dark"] .am-detail-grid__item {
    background: var(--am-surface);
    border-color: var(--am-card-border, var(--am-border));
}

[data-theme="dark"] .am-detail-grid__item:nth-child(even) {
    background: var(--am-surface-2);
}

[data-theme="dark"] .am-category-toolbar {
    background: var(--am-surface-2);
    border-color: var(--am-card-border, var(--am-border));
}

[data-theme="dark"] .am-cat-nav__link {
    background-color: var(--am-surface-alt) !important;
    color: var(--am-text) !important;
    border-color: var(--am-border);
}

[data-theme="dark"] .am-cat-nav__link:hover {
    background-color: var(--am-surface-2) !important;
    color: var(--am-text) !important;
    border-color: var(--am-card-border, var(--am-primary-light));
    box-shadow: none;
}

[data-theme="dark"] .am-cat-nav__icon {
    background: rgba(21, 105, 127, 0.22);
    color: var(--am-link, #8eb4c0);
}

[data-theme="dark"] .am-sidebar-card {
    border-color: var(--am-card-border, var(--am-border));
}

[data-theme="dark"] .am-seller-more__item {
    background: var(--am-surface-alt);
    border-color: var(--am-card-border, var(--am-border));
}

[data-theme="dark"] .am-seller-more__item:hover {
    background: var(--am-surface-2);
}

[data-theme="dark"] .am-seller-more__item img {
    background: var(--am-surface-2);
}

/* ── Referral / Freunde einladen ── */
.am-referral-banner {
    background: linear-gradient(90deg, #ecfdf5 0%, #f0fdfa 100%);
    border-bottom: 1px solid #a7f3d0;
    padding: 0.65rem 1rem;
}
.am-referral-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.am-referral-banner__icon { color: #059669; font-size: 1.25rem; }
.am-referral-banner__text { flex: 1; min-width: 200px; }
.am-referral-banner__text p { margin: 0; font-size: 0.9rem; color: #065f46; }
.am-referral-reminders { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.25rem; }
.am-referral-reminder {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
}
.am-referral-reminder--reward { border-color: #a7f3d0; background: #ecfdf5; }
.am-referral-reminder--pending { border-color: #fde68a; background: #fffbeb; }
.am-referral-reminder__icon { font-size: 1.25rem; color: #059669; }
.am-referral-reminder--pending .am-referral-reminder__icon { color: #d97706; }
.am-referral-reminder__text { flex: 1; margin: 0; font-size: 0.92rem; }
.am-referral-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #0c4a5c 0%, #0f766e 100%);
    color: #fff;
    margin-bottom: 1.5rem;
}
.am-referral-hero__title { font-size: 1.35rem; font-weight: 800; margin: 0 0 0.5rem; }
.am-referral-hero__text { margin: 0; opacity: 0.92; line-height: 1.5; }
.am-referral-stats { display: grid; grid-template-columns: repeat(2, minmax(90px, 1fr)); gap: 0.75rem; }
.am-referral-stat {
    text-align: center;
    padding: 0.75rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.15);
}
.am-referral-stat__value { display: block; font-size: 1.5rem; font-weight: 800; }
.am-referral-stat__label { font-size: 0.72rem; opacity: 0.85; }
.am-referral-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.5rem; }
.am-referral-link-box { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.am-referral-link-box .am-form-control { flex: 1; }
.am-referral-share { display: flex; gap: 0.5rem; margin-top: 1rem; }
.am-referral-share__btn {
    width: 40px; height: 40px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #f1f5f9; color: #0f172a; text-decoration: none;
}
.am-referral-share__btn:hover { background: #0c4a5c; color: #fff; }
.am-tag--referral-rewarded { background: #dcfce7; color: #166534; }
.am-tag--referral-email_sent { background: #dbeafe; color: #1e40af; }
.am-tag--referral-pending_verify { background: #fef3c7; color: #92400e; }
@media (max-width: 768px) {
    .am-referral-hero { grid-template-columns: 1fr; }
    .am-referral-grid { grid-template-columns: 1fr; }
    .am-referral-link-box { flex-direction: column; }
}
