/* 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-wrap: wrap;
        align-items: flex-start;
    }

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

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

.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 img {
    max-width: 180px;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.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 .am-empty-state__icon-fb {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
}

.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: 260px;
    object-fit: contain;
    background: var(--am-surface-alt);
}

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

.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-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: center;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.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-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-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: -2px;
    bottom: -2px;
    width: 22px;
    height: 22px;
}

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

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

.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.2rem 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;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    text-align: right;
}

.am-seller-more__item-title {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--am-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.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 img { max-width: 120px; opacity: 0.6; 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: nowrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--am-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.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;
    flex-shrink: 0;
}

.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);
}

/* 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 .adsTopIcon {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: auto;
    z-index: 2;
}

.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-size: 0.78rem;
    color: var(--am-text-muted);
}

.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-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-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 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.5rem 1.25rem 1.25rem;
}

.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-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 {
    margin-bottom: 1rem;
}

.am-main--panel .am-dash-nav {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 0.45rem;
}

.am-main--panel .am-dash-nav__link {
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
}

.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%;
    max-width: none;
}

.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: -6px;
    right: -6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    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);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.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 {
    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-detail-page {
    max-width: 1100px;
    margin: 0 auto;
}

.am-review-page > .am-breadcrumb {
    margin-bottom: 1rem;
}

.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;
}

.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;
}

/* ── 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: #fff;
    border: 1px solid var(--am-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;
    }
}
