/* =====================================================
   Astro Marketplace Pro - Public CSS
   ===================================================== */

:root {
    --amp-primary: #6c3ce1;
    --amp-primary-dark: #5428c0;
    --amp-secondary: #f0a500;
    --amp-astro: #7b2ff7;
    --amp-tantra: #d63031;
    --amp-antique: #b7791f;
    --amp-success: #28a745;
    --amp-danger: #dc3545;
    --amp-bg: #f7f7ff;
    --amp-border: #e2e8f0;
    --amp-shadow: 0 4px 20px rgba(108, 60, 225, .12);
    --amp-radius: 14px;
    --amp-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ====== Base ====== */
.amp-listings-wrap,
.amp-packages-wrap,
.amp-auth-wrap,
.amp-dashboard-wrap,
.amp-submit-wrap {
    font-family: var(--amp-font);
}

/* ====== Search Bar ====== */
.amp-search-bar {
    display: flex;
    gap: 14px;
    margin-bottom: 28px;
    background: #fff;
    padding: 16px 20px;
    border-radius: var(--amp-radius);
    box-shadow: var(--amp-shadow);
    flex-wrap: wrap;
}

.amp-search-input {
    flex: 1;
    min-width: 200px;
    padding: 11px 16px;
    border: 2px solid var(--amp-border);
    border-radius: 8px;
    font-size: .95em;
    transition: border-color .2s;
}

.amp-search-input:focus {
    border-color: var(--amp-primary);
    outline: none;
}

.amp-select-filter {
    padding: 11px 16px;
    border: 2px solid var(--amp-border);
    border-radius: 8px;
    font-size: .95em;
    background: #fff;
    cursor: pointer;
}

/* ====== Listings Grid ====== */
.amp-listings-grid {
    display: grid;
    gap: 24px;
}

.amp-col-2 {
    grid-template-columns: repeat(2, 1fr);
}

.amp-col-3 {
    grid-template-columns: repeat(3, 1fr);
}

.amp-col-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ====== Card (antique still uses this) ====== */
.amp-card {
    background: #fff;
    border-radius: var(--amp-radius);
    overflow: hidden;
    box-shadow: var(--amp-shadow);
    border: 1px solid var(--amp-border);
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
}

.amp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 32px rgba(108, 60, 225, .2);
}

.amp-card-image {
    position: relative;
    overflow: hidden;
    height: 280px;
    background: linear-gradient(135deg, #6c3ce1 0%, #9b59b6 100%);
}

.amp-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.amp-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 4em;
}

.amp-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--amp-primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .78em;
    font-weight: 700;
}

.amp-badge-tantra {
    background: var(--amp-tantra);
}

.amp-badge-antique {
    background: var(--amp-antique);
}

.amp-badge-sale {
    background: var(--amp-success);
}

.amp-badge-purchase {
    background: var(--amp-secondary);
}

.amp-card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.amp-card-title {
    margin: 0 0 10px;
    font-size: 1.1em;
    font-weight: 700;
    color: #1a1a2e;
}

.amp-specialization {
    color: var(--amp-primary);
    font-weight: 600;
    font-size: .88em;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.amp-meta {
    color: #718096;
    font-size: .85em;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.amp-card-excerpt {
    color: #555;
    font-size: .87em;
    line-height: 1.5;
    margin-bottom: 14px;
    flex: 1;
}

.amp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--amp-border);
}

.amp-fee,
.amp-price {
    font-weight: 700;
    color: var(--amp-success);
    font-size: 1em;
}

.amp-card-actions {
    display: flex;
    gap: 8px;
}

/* ======================================================
   NEW EXPERT CARD  (Astro OPD & Tantra OPD — row style)
   ====================================================== */
.amp-expert-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.amp-expert-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border-radius: var(--amp-radius);
    padding: 18px 22px;
    box-shadow: 0 2px 14px rgba(108, 60, 225, .09);
    border: 1px solid #ede9ff;
    transition: transform .2s, box-shadow .2s;
    position: relative;
}

.amp-expert-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(108, 60, 225, .16);
}

/* Avatar column */
.amp-expert-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    min-width: 88px;
}

.amp-expert-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #f0a500;
    margin-bottom: 7px;
    background: linear-gradient(135deg, #f0e6ff, #fff3e0);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.amp-expert-avatar.amp-avatar-available {
    border-color: #f0a500;
}

.amp-expert-avatar.amp-avatar-busy {
    border-color: #ccc;
}

.amp-expert-avatar.amp-avatar-tantra {
    border-color: #d63031;
}

.amp-avatar-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.amp-avatar-placeholder {
    font-size: 2.2em;
    line-height: 1;
}

.amp-expert-rating {
    display: flex;
    gap: 1px;
    margin-bottom: 3px;
}

.amp-star {
    font-size: .95em;
    color: #ddd;
}

.amp-star.filled {
    color: #f0a500;
}

.amp-expert-orders {
    font-size: .72em;
    color: #718096;
    white-space: nowrap;
}

/* Info column */
.amp-expert-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.amp-expert-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.amp-expert-name {
    margin: 0 0 3px;
    font-size: 1em;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.amp-expert-spec {
    margin: 0 0 2px;
    color: #555;
    font-size: .86em;
}

.amp-expert-lang {
    margin: 0 0 2px;
    color: #555;
    font-size: .86em;
}

.amp-expert-exp {
    margin: 0;
    color: #555;
    font-size: .86em;
}

.amp-expert-status {
    flex-shrink: 0;
}

.amp-available-tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e8f8ee;
    color: #28a745;
    font-size: .9em;
    font-weight: 700;
    border: 2px solid #28a745;
}

.amp-busy-tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f8e8e8;
    color: #dc3545;
    font-size: .75em;
    font-weight: 700;
    border: 2px solid #dc3545;
}

/* Bottom: price + buttons */
.amp-expert-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0eeff;
}

.amp-expert-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 1em;
    color: #1a1a2e;
}

.amp-expert-price strong {
    font-size: 1.15em;
    color: #28a745;
}

.amp-price-old {
    color: #aaa;
    font-size: .86em;
    text-decoration: line-through;
}

.amp-price-unit {
    font-size: .76em;
    color: #aaa;
}

.amp-expert-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.amp-expert-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 15px;
    border-radius: 8px;
    font-size: .82em;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .2s;
    white-space: nowrap;
}

.amp-call-btn {
    background: #e8f2ff;
    color: #0077cc;
    border-color: #b3d4ff;
}

.amp-call-btn:hover {
    background: #0077cc;
    color: #fff !important;
    border-color: #0077cc;
}

.amp-chat-btn {
    background: #eef0ff;
    color: var(--amp-primary);
    border-color: #c4cbff;
}

.amp-chat-btn:hover {
    background: var(--amp-primary);
    color: #fff !important;
    border-color: var(--amp-primary);
}

.amp-wa-btn {
    background: #e8faf0;
    color: #25d366;
    border-color: #a8e6c1;
}

.amp-wa-btn:hover {
    background: #25d366;
    color: #fff !important;
    border-color: #25d366;
}

/* ====== Buttons ====== */
.amp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: .88em;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all .2s;
    white-space: nowrap;
}

.amp-btn-primary {
    background: var(--amp-primary);
    color: #fff !important;
}

.amp-btn-primary:hover {
    background: var(--amp-primary-dark);
}

.amp-btn-tantra {
    background: var(--amp-tantra);
    color: #fff !important;
}

.amp-btn-antique {
    background: var(--amp-antique);
    color: #fff !important;
}

.amp-btn-outline {
    background: transparent;
    color: var(--amp-primary) !important;
    border: 2px solid var(--amp-primary);
}

.amp-btn-outline:hover {
    background: var(--amp-primary);
    color: #fff !important;
}

.amp-btn-full {
    width: 100%;
    justify-content: center;
}

.amp-btn-lg {
    padding: 14px 24px;
    font-size: 1em;
}

.amp-btn-purchase {
    background: linear-gradient(135deg, var(--amp-primary), #9b59b6);
    color: #fff !important;
    width: 100%;
    justify-content: center;
    padding: 13px;
}

/* ====== No Listings ====== */
.amp-no-listings {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
}

.amp-no-listings-icon {
    font-size: 4em;
}

.amp-no-listings h3 {
    font-size: 1.3em;
    margin: 14px 0 8px;
    color: #555;
}

/* ====== Pagination ====== */
.amp-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
}

.amp-pagination a,
.amp-pagination span {
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid var(--amp-border);
    text-decoration: none;
    transition: all .2s;
}

.amp-pagination .current {
    background: var(--amp-primary);
    color: #fff;
    border-color: var(--amp-primary);
}

.amp-pagination a:hover {
    border-color: var(--amp-primary);
    color: var(--amp-primary);
}

/* ====== Packages ====== */
.amp-packages-hero {
    text-align: center;
    padding: 40px 20px 20px;
}

.amp-packages-hero h2 {
    font-size: 2em;
    margin: 0 0 8px;
    color: #1a1a2e;
}

.amp-packages-hero p {
    color: #718096;
}

.amp-packages-section {
    margin-bottom: 48px;
}

.amp-packages-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.amp-type-icon {
    font-size: 2em;
}

.amp-packages-section-title h3 {
    font-size: 1.5em;
    margin: 0;
    color: #1a1a2e;
}

.amp-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* Force exactly 3 columns on desktop */
.amp-pkg-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .amp-pkg-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .amp-pkg-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Guest note below package buy button */
.amp-pkg-guest-note {
    text-align: center;
    font-size: .8em;
    color: #718096;
    margin-top: 8px;
}
.amp-pkg-guest-note a {
    color: var(--amp-primary);
}

.amp-package-card.amp-pkg-astro .amp-package-header {
    background: linear-gradient(135deg, #6c3ce1, #9b59b6);
}

.amp-package-card.amp-pkg-tantra .amp-package-header {
    background: linear-gradient(135deg, #d63031, #e17055);
}

.amp-package-card.amp-pkg-antique .amp-package-header {
    background: linear-gradient(135deg, #b7791f, #d4a843);
}

.amp-package-card {
    border-radius: var(--amp-radius);
    overflow: hidden;
    box-shadow: var(--amp-shadow);
    border: 1px solid var(--amp-border);
    background: #fff;
    position: relative;
}

.amp-package-card.amp-popular {
    border: 2px solid var(--amp-primary);
    transform: scale(1.03);
}

.amp-popular-badge {
    background: var(--amp-secondary);
    color: #fff;
    text-align: center;
    padding: 6px;
    font-size: .82em;
    font-weight: 700;
}

.amp-package-header {
    padding: 24px;
    color: #fff;
    text-align: center;
}

.amp-package-header h4 {
    margin: 0 0 10px;
    font-size: 1.1em;
}

.amp-package-price-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
}

.amp-currency {
    font-size: 1.2em;
    font-weight: 700;
    margin-top: 6px;
}

.amp-price {
    font-size: 2.8em;
    font-weight: 800;
    line-height: 1;
}

.amp-duration {
    display: block;
    opacity: .85;
    font-size: .88em;
    margin-top: 8px;
}

.amp-package-features {
    padding: 20px;
}

.amp-package-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.amp-package-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: .88em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.amp-check {
    color: var(--amp-success);
    font-weight: 700;
}

.amp-package-action {
    padding: 16px 20px 20px;
}

/* ====== Auth Forms ====== */
.amp-auth-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 30px 16px;
}

.amp-auth-card {
    background: #fff;
    border-radius: var(--amp-radius);
    padding: 40px;
    box-shadow: var(--amp-shadow);
    width: 100%;
    max-width: 500px;
}

.amp-auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.amp-auth-logo {
    font-size: 3em;
}

.amp-auth-header h2 {
    margin: 10px 0 6px;
    font-size: 1.6em;
}

.amp-auth-header p {
    color: #718096;
    margin: 0;
}

.amp-form .amp-form-group {
    margin-bottom: 18px;
}

.amp-form label {
    display: block;
    font-weight: 600;
    font-size: .9em;
    color: #374151;
    margin-bottom: 6px;
}

.amp-form input,
.amp-form select,
.amp-form textarea {
    width: 100%;
    padding: 4px 14px;
    border: 2px solid var(--amp-border);
    border-radius: 8px;
    font-size: .95em;
    box-sizing: border-box;
    transition: border-color .2s;
}

.amp-form input:focus,
.amp-form select:focus,
.amp-form textarea:focus {
    border-color: var(--amp-primary);
    outline: none;
}

.amp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.amp-password-group {
    position: relative;
}

.amp-password-group input {
    padding-right: 48px;
}

.amp-password-toggle {
    position: absolute !important;
    right: 1px;
    top: 70%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.amp-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.amp-auth-divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
}

.amp-auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--amp-border);
}

.amp-auth-divider span {
    background: #fff;
    padding: 0 14px;
    position: relative;
    color: #aaa;
    font-size: .88em;
}

.amp-auth-switch {
    text-align: center;
    color: #718096;
    margin-top: 16px;
}

.amp-checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
}

.amp-checkbox-group input {
    width: auto;
    margin-top: 2px;
}

.amp-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-weight: 500;
}

.amp-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.amp-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.amp-notice {
    padding: 14px 18px;
    background: #fff3cd;
    border-left: 4px solid var(--amp-secondary);
    border-radius: 8px;
}

/* ====== Submit Listing ====== */
.amp-submit-wrap {
    padding: 20px;
   
    margin: 0 auto;
}

.amp-submit-card {
    background: #fff;
    border-radius: var(--amp-radius);
    padding: 36px;
    box-shadow: var(--amp-shadow);
}

.amp-submit-header {
    margin-bottom: 28px;
    border-bottom: 2px solid var(--amp-border);
    padding-bottom: 18px;
}

.amp-submit-header h2 {
    margin: 0;
    font-size: 1.5em;
}

/* ====== User Dashboard ====== */
.amp-dashboard-wrap {
    display: flex;
    gap: 24px;
    min-height: 70vh;
    font-family: var(--amp-font);
}

.amp-dashboard-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.amp-user-profile {
    background: linear-gradient(135deg, var(--amp-primary), #9b59b6);
    color: #fff;
    padding: 24px;
    border-radius: var(--amp-radius);
    text-align: center;
    margin-bottom: 12px;
}

.amp-avatar {
    border-radius: 50% !important;
    border: 3px solid rgba(255, 255, 255, .4);
}

.amp-user-profile h3 {
    margin: 10px 0 4px;
    font-size: 1em;
}

.amp-user-profile p {
    margin: 0;
    opacity: .8;
    font-size: .82em;
}

.amp-dashboard-nav {
    background: #fff;
    border-radius: var(--amp-radius);
    overflow: hidden;
    box-shadow: var(--amp-shadow);
}

.amp-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    text-decoration: none;
    color: #374151;
    transition: all .2s;
    border-left: 3px solid transparent;
}

.amp-nav-item:hover,
.amp-nav-item.active {
    background: #f0e6ff;
    color: var(--amp-primary);
    border-left-color: var(--amp-primary);
}

.amp-nav-logout {
    color: var(--amp-danger) !important;
}

.amp-dashboard-main {
    flex: 1;
}

.amp-tab-panel {
    display: none;
}

.amp-tab-panel.active {
    display: block;
}

.amp-tab-panel h2 {
    margin: 0 0 20px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.amp-stats-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.amp-stat-box {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--amp-shadow);
}

.amp-stat-num {
    display: block;
    font-size: 2em;
    font-weight: 800;
    color: var(--amp-primary);
}

.amp-stat-label {
    color: #718096;
    font-size: .85em;
}

.amp-user-packages {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.amp-user-package-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--amp-shadow);
    border: 1px solid var(--amp-border);
}

.amp-pkg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.amp-pkg-header h3 {
    margin: 0;
    font-size: 1em;
}

.amp-pkg-type {
    background: #f0e6ff;
    color: var(--amp-primary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .78em;
    font-weight: 600;
}

.amp-pkg-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: .85em;
    color: #555;
    margin-bottom: 10px;
}

.amp-pkg-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.amp-progress-bar {
    height: 6px;
    background: var(--amp-border);
    border-radius: 6px;
    overflow: hidden;
}

.amp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--amp-primary), var(--amp-secondary));
    border-radius: 6px;
}

.amp-my-listings-section {
    margin-bottom: 28px;
}

.amp-my-listings-section h3 {
    font-size: 1em;
    margin-bottom: 12px;
}

.amp-listings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9em;
}

.amp-listings-table th {
    background: var(--amp-bg);
    padding: 10px 14px;
    font-weight: 600;
    text-align: left;
}

.amp-listings-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--amp-border);
}

.amp-no-data {
    color: #aaa;
    font-style: italic;
}

.amp-status-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .8em;
    font-weight: 600;
}

.amp-status-publish {
    background: #d4edda;
    color: #155724;
}

.amp-status-draft {
    background: #e2e3e5;
    color: #495057;
}

.amp-empty-state {
    text-align: center;
    padding: 40px;
    color: #aaa;
}

.amp-listing-type-choose {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.amp-listing-type-card {
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px;
    background: #fff;
    border-radius: var(--amp-radius);
    box-shadow: var(--amp-shadow);
    text-decoration: none;
    color: #1a1a2e;
    border: 2px solid var(--amp-border);
    transition: all .2s;
}

.amp-listing-type-card:hover {
    border-color: var(--amp-primary);
    transform: translateY(-3px);
}

.amp-listing-type-card span {
    font-size: 2.5em;
}

/* ====== Modal ====== */
.amp-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.amp-modal-content {
    background: #fff;
    border-radius: var(--amp-radius);
    max-width: 460px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

.amp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--amp-border);
}

.amp-modal-header h3 {
    margin: 0;
}

.amp-modal-close {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #aaa;
}

.amp-modal-body {
    padding: 24px;
}

.amp-payment-info {
    background: var(--amp-bg);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.amp-payment-info p {
    margin: 4px 0;
    font-size: .95em;
}

/* Payment tabs inside modal */
.amp-pay-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 18px;
    border: 2px solid var(--amp-primary);
    border-radius: 8px;
    overflow: hidden;
}

.amp-pay-tab {
    flex: 1;
    padding: 10px;
    background: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: .88em;
    color: var(--amp-primary);
    transition: all .2s;
}

.amp-pay-tab.active {
    background: var(--amp-primary);
    color: #fff;
}

.amp-pay-section {
    min-height: 80px;
}

/* Offline/COD section */
.amp-offline-info ol {
    padding-left: 18px;
    margin: 10px 0;
    font-size: .9em;
    color: #555;
    line-height: 1.8;
}

.amp-bank-details {
    background: #f0f7ff;
    border: 1px solid #b3d4ff;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0;
    font-size: .88em;
    white-space: pre-line;
}

.amp-offline-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--amp-border);
    border-radius: 8px;
    font-size: .88em;
    resize: vertical;
    min-height: 70px;
    box-sizing: border-box;
    font-family: var(--amp-font);
}

.amp-offline-textarea:focus {
    border-color: var(--amp-primary);
    outline: none;
}

/* Pending badge on admin menu */
.amp-pending-badge {
    background: #dc3545;
    color: #fff;
    font-size: .72em;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
    vertical-align: middle;
}

.amp-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--amp-border);
    border-top-color: var(--amp-primary);
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin: 0 auto 14px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ====== Responsive ====== */
@media (max-width: 992px) {
    .amp-col-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .amp-col-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .amp-dashboard-wrap {
        flex-direction: column;
    }

    .amp-dashboard-sidebar {
        width: 100%;
    }

    .amp-dashboard-nav {
        display: flex;
        flex-wrap: wrap;
    }

    .amp-nav-item {
        flex: 1;
        min-width: 120px;
        justify-content: center;
        text-align: center;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .amp-nav-item.active {
        border-bottom-color: var(--amp-primary);
        border-left-color: transparent;
    }
}

@media (max-width: 640px) {

    .amp-col-2,
    .amp-col-3,
    .amp-col-4 {
        grid-template-columns: 1fr;
    }

    .amp-form-row {
        grid-template-columns: 1fr;
    }

    .amp-auth-card {
        padding: 24px 16px;
    }

    .amp-packages-grid {
        grid-template-columns: 1fr;
    }

    .amp-stats-row {
        flex-direction: column;
    }

    .amp-listing-type-choose {
        flex-direction: column;
    }

    .amp-form-grid {
        grid-template-columns: 1fr;
    }

    .amp-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .amp-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* ====== Single Listing Page ====== */
.amp-single-wrap {
    font-family: var(--amp-font);
    padding: 20px 0 40px;
}

.amp-single-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.amp-single-header {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 36px;
    background: #fff;
    border-radius: var(--amp-radius);
    padding: 30px;
    box-shadow: var(--amp-shadow);
    margin-bottom: 28px;
}

.amp-single-image {
    border-radius: 12px;
    overflow: hidden;
    height: 320px;
    background: linear-gradient(135deg, #f0e6ff, #fff3e0);
}

.amp-single-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Coin front + reverse side layout */
.amp-coin-images {
    display: flex;
    gap: 10px;
    width: 100%;
    flex-wrap: wrap;
}
.amp-coin-img-wrap {
    position: relative;
    flex: 1 1 calc(50% - 5px);
    min-width: 140px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f0ff;
}
.amp-coin-img-wrap .amp-single-thumb {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}
.amp-coin-label {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(60,20,120,0.72);
    color: #fff;
    font-size: .72em;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 20px;
    white-space: nowrap;
}
.amp-coin-label-back {
    background: rgba(20,100,60,0.72);
}

.amp-single-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 6em;
}

.amp-single-badge {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: .82em;
    font-weight: 700;
    margin-bottom: 12px;
    background: var(--amp-primary);
    color: #fff;
}

.amp-badge-tantra {
    background: var(--amp-tantra);
}

.amp-badge-antique {
    background: var(--amp-antique);
}

.amp-badge-sale {
    background: var(--amp-success);
}

.amp-badge-purchase {
    background: var(--amp-secondary);
    color: #333;
}

.amp-single-title {
    font-size: 1.8em;
    margin: 0 0 12px;
    color: #1a1a2e;
    line-height: 1.3;
}

.amp-single-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.amp-category-tag {
    background: #f0e6ff;
    color: var(--amp-primary);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: .82em;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}

.amp-category-tag:hover {
    background: var(--amp-primary);
    color: #fff;
}

.amp-single-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.amp-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .9em;
    color: #555;
}

.amp-meta-item strong {
    color: #1a1a2e;
}

.amp-fee-item strong,
.amp-price-value {
    color: var(--amp-success) !important;
    font-size: 1.3em;
}

.amp-price-big {
    font-size: 1em;
}

/* Availability badge */
.amp-availability {
    margin-bottom: 18px;
}

.amp-status-available {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #d4edda;
    color: #155724;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: .85em;
    font-weight: 700;
}

.amp-status-busy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff3cd;
    color: #856404;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: .85em;
    font-weight: 700;
}

.amp-status-sold {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8d7da;
    color: #721c24;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: .85em;
    font-weight: 700;
}

/* Contact Buttons */
.amp-contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.amp-btn-call {
    background: #0077cc;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 119, 204, .3);
}

.amp-btn-call:hover {
    background: #005fa3;
}

.amp-btn-whatsapp {
    background: #25d366;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, .3);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.amp-btn-whatsapp:hover {
    background: #128c4e;
}

.amp-btn-email {
    background: #e84393;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(232, 67, 147, .25);
}

.amp-btn-email:hover {
    background: #c73580;
}

.amp-btn-chat {
    background: var(--amp-primary);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(108, 60, 225, .3);
}

.amp-btn-chat:hover {
    background: var(--amp-primary-dark);
}

.amp-btn-buy {
    background: linear-gradient(135deg, #f0a500, #e07b00);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(240, 165, 0, .3);
    border: none;
}

.amp-btn-buy:hover {
    background: linear-gradient(135deg, #e07b00, #c56a00);
}

/* Seller info */
.amp-seller-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: var(--amp-bg);
    border-radius: 8px;
}

.amp-seller-avatar {
    border-radius: 50%;
}

.amp-seller-label {
    display: block;
    font-size: .75em;
    color: #aaa;
}

/* Content layout */
.amp-single-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
}

.amp-content-section {
    background: #fff;
    border-radius: var(--amp-radius);
    padding: 24px;
    box-shadow: var(--amp-shadow);
    margin-bottom: 24px;
}

.amp-content-section h2 {
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--amp-border);
    font-size: 1.2em;
}

.amp-content-text {
    line-height: 1.8;
    color: #444;
}

.amp-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.amp-gallery-img {
    border-radius: 8px;
    width: 100%;
    height: 120px;
    object-fit: cover;
    cursor: pointer;
}

/* Sidebar */
.amp-sidebar-card {
    background: #fff;
    border-radius: var(--amp-radius);
    padding: 20px;
    box-shadow: var(--amp-shadow);
    margin-bottom: 16px;
}

.amp-sidebar-card h3 {
    margin: 0 0 14px;
    font-size: 1em;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--amp-border);
}

.amp-sidebar-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.amp-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.amp-info-item .dashicons {
    color: var(--amp-primary);
    margin-top: 2px;
    flex-shrink: 0;
}

.amp-info-item strong {
    display: block;
    font-size: .85em;
    color: #888;
}

.amp-info-item p {
    margin: 0;
    font-weight: 600;
}

.amp-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.amp-services-list li {
    padding: 7px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: .9em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.amp-services-list li::before {
    content: '✦';
    color: var(--amp-primary);
    font-size: .7em;
}

.amp-price-card .amp-detail-table {
    width: 100%;
    border-collapse: collapse;
}

.amp-detail-table td {
    padding: 8px 0;
    border-bottom: 1px solid var(--amp-border);
    font-size: .9em;
}

.amp-detail-table td:first-child {
    color: #888;
}

.amp-detail-table td:last-child {
    font-weight: 600;
    text-align: right;
}

/* Chat modal sizing */
.amp-chat-modal-content {
    max-width: 500px;
}

.amp-modal {
    align-items: center;
}

/* Multiple select */
.amp-select-multiple {
    height: 120px;
}

/* Card category tags */
.amp-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

.amp-card-cat-tag {
    background: #f0e6ff;
    color: var(--amp-primary);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: .75em;
    font-weight: 600;
}

/* Responsive single */
@media (max-width: 900px) {
    .amp-single-header {
        grid-template-columns: 1fr;
    }

    .amp-single-image {
        height: 220px;
    }

    .amp-single-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .amp-contact-buttons .amp-btn {
        flex: 1;
        min-width: calc(50% - 5px);
        justify-content: center;
    }

    .amp-single-title {
        font-size: 1.4em;
    }
}

/* Expert card mobile */
@media (max-width: 700px) {
    .amp-expert-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }

    .amp-expert-avatar-wrap {
        margin: 0 auto 14px;
    }

    .amp-expert-top {
        flex-direction: column;
    }

    .amp-expert-status {
        position: absolute;
        top: 16px;
        right: 16px;
    }

    .amp-expert-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .amp-expert-btns {
        width: 100%;
        justify-content: center;
    }

    .amp-expert-btn {
        flex: 1;
        justify-content: center;
    }
}


/* ====================================================
   NEW USER DASHBOARD — amp-db-* styles
   ==================================================== */

.amp-db-wrap {
    display: flex;
    gap: 28px;
    min-height: 80vh;
    font-family: var(--amp-font);
    align-items: flex-start;
}

/* ─── SIDEBAR ─── */
.amp-db-sidebar {
    width: 270px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 90px;
}

/* Profile card */
.amp-db-profile-card {
    background: linear-gradient(145deg, #6c3ce1 0%, #9b59b6 60%, #f0a500 130%);
    border-radius: 18px;
    padding: 28px 20px 22px;
    text-align: center;
    color: #fff;
    box-shadow: 0 8px 32px rgba(108,60,225,.3);
    position: relative;
    overflow: hidden;
}

.amp-db-profile-card::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 130px; height: 130px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
}

.amp-db-avatar-ring {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}

.amp-db-avatar-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,.5);
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
}

.amp-db-avatar-badge {
    position: absolute;
    bottom: 4px; right: 2px;
    width: 22px; height: 22px;
    background: #28a745;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .65em;
    color: #fff;
    font-weight: 700;
}

.amp-db-profile-name {
    margin: 0 0 4px;
    font-size: 1.05em;
    font-weight: 700;
    letter-spacing: .02em;
}

.amp-db-profile-email {
    margin: 0 0 12px;
    font-size: .78em;
    opacity: .8;
    word-break: break-all;
}

.amp-db-profile-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.amp-db-meta-pill {
    background: rgba(255,255,255,.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .75em;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* Sidebar stats strip */
.amp-db-sidebar-stats {
    background: #fff;
    border-radius: 14px;
    padding: 16px 12px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: var(--amp-shadow);
    border: 1px solid var(--amp-border);
}

.amp-db-sstat {
    text-align: center;
}

.amp-db-sstat-num {
    display: block;
    font-size: 1.5em;
    font-weight: 800;
    color: var(--amp-primary);
    line-height: 1.1;
}

.amp-db-sstat-lbl {
    font-size: .72em;
    color: #718096;
    display: block;
}

.amp-db-sstat-divider {
    width: 1px;
    height: 32px;
    background: var(--amp-border);
}

/* Sidebar navigation */
.amp-db-nav {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--amp-shadow);
    border: 1px solid var(--amp-border);
}

.amp-db-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    text-decoration: none;
    color: #374151;
    transition: all .2s;
    border-left: 3px solid transparent;
    position: relative;
    cursor: pointer;
}

.amp-db-nav-item:hover,
.amp-db-nav-item.active {
    background: linear-gradient(90deg, #f0e6ff 0%, #faf7ff 100%);
    color: var(--amp-primary);
    border-left-color: var(--amp-primary);
}

.amp-db-nav-icon {
    font-size: 1.1em;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.amp-db-nav-txt {
    flex: 1;
    font-size: .92em;
    font-weight: 500;
}

.amp-db-nav-badge {
    background: #dc3545;
    color: #fff;
    font-size: .68em;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    min-width: 18px;
    text-align: center;
}

.amp-db-nav-divider {
    height: 1px;
    background: var(--amp-border);
    margin: 4px 0;
}

.amp-db-nav-logout {
    color: #dc3545 !important;
}

.amp-db-nav-logout:hover {
    background: #fff5f5 !important;
    border-left-color: #dc3545 !important;
}

/* ─── MAIN CONTENT ─── */
.amp-db-main {
    flex: 1;
    min-width: 0;
}

.amp-db-tab {
    display: none;
}

.amp-db-tab.active {
    display: block;
}

/* Tab header */
.amp-db-tab-header {
    margin-bottom: 24px;
}

.amp-db-tab-header h2 {
    margin: 0 0 4px;
    font-size: 1.4em;
    color: #1a1a2e;
}

.amp-db-tab-header p {
    margin: 0;
    color: #718096;
    font-size: .9em;
}

/* Welcome banner */
.amp-db-welcome-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 18px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 32px rgba(26,26,46,.3);
}

.amp-db-welcome-banner::after {
    content: '✨';
    position: absolute;
    right: 120px; top: 12px;
    font-size: 1.8em;
    opacity: .3;
}

.amp-db-welcome-left {}

.amp-db-welcome-title {
    margin: 0 0 6px;
    font-size: 1.5em;
    color: #fff;
    font-weight: 800;
}

.amp-db-welcome-sub {
    margin: 0;
    color: rgba(255,255,255,.65);
    font-size: .9em;
}

.amp-db-welcome-avatar img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid rgba(240,165,0,.6);
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
}

/* Stat cards */
.amp-db-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.amp-db-stat-card {
    border-radius: 16px;
    padding: 20px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
    transition: transform .2s, box-shadow .2s;
}

.amp-db-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,.15);
}

.amp-db-stat-purple { background: linear-gradient(135deg, #6c3ce1, #9b59b6); color: #fff; }
.amp-db-stat-gold   { background: linear-gradient(135deg, #f0a500, #f39c12); color: #fff; }
.amp-db-stat-blue   { background: linear-gradient(135deg, #2980b9, #3498db); color: #fff; }
.amp-db-stat-red    { background: linear-gradient(135deg, #c0392b, #e74c3c); color: #fff; }

.amp-db-stat-icon {
    font-size: 2em;
    flex-shrink: 0;
    opacity: .9;
}

.amp-db-stat-body {
    display: flex;
    flex-direction: column;
}

.amp-db-stat-num {
    font-size: 2em;
    font-weight: 800;
    line-height: 1;
    display: block;
}

.amp-db-stat-lbl {
    font-size: .78em;
    opacity: .85;
    margin-top: 3px;
}

.amp-db-stat-glow {
    position: absolute;
    top: -20px; right: -20px;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
}

/* Alert boxes */
.amp-db-alert {
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: .9em;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.amp-db-alert-warn {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    color: #78350f;
}

.amp-db-alert-link {
    color: var(--amp-primary);
    font-weight: 700;
    text-decoration: none;
    margin-left: 6px;
}

/* Section */
.amp-db-section {
    margin-bottom: 28px;
}

.amp-db-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.amp-db-section-head h3 {
    margin: 0;
    font-size: 1.05em;
    color: #1a1a2e;
}

.amp-db-see-all {
    font-size: .82em;
    color: var(--amp-primary);
    font-weight: 600;
    text-decoration: none;
    border: none !important;
    background: none !important;
    padding: 0 !important;
}

/* Package preview cards (overview) */
.amp-db-pkg-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.amp-db-pkg-preview {
    background: #fff;
    border-radius: 14px;
    padding: 16px 18px;
    border: 1px solid var(--amp-border);
    box-shadow: 0 2px 12px rgba(108,60,225,.07);
    transition: transform .2s;
}

.amp-db-pkg-preview:hover {
    transform: translateY(-3px);
}

.amp-db-pkg-prev-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.amp-db-pkg-prev-icon {
    font-size: 1.8em;
    flex-shrink: 0;
}

.amp-db-pkg-prev-top > div {
    flex: 1;
    min-width: 0;
}

.amp-db-pkg-prev-top strong {
    display: block;
    font-size: .92em;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.amp-db-pkg-prev-top small {
    color: #718096;
    font-size: .78em;
}

.amp-db-pkg-prev-meta {
    display: flex;
    gap: 12px;
    font-size: .8em;
    color: #555;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.amp-db-mini-progress {
    height: 5px;
    background: #f0e6ff;
    border-radius: 10px;
    overflow: hidden;
}

.amp-db-mini-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--amp-primary), var(--amp-secondary));
    border-radius: 10px;
    transition: width .4s ease;
}

/* Quick actions */
.amp-db-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.amp-db-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 14px;
    background: #fff;
    border-radius: 14px;
    border: 2px solid var(--amp-border);
    text-decoration: none;
    color: #1a1a2e;
    text-align: center;
    transition: all .2s;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(108,60,225,.06);
}

.amp-db-action-card:hover {
    border-color: var(--amp-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(108,60,225,.15);
    color: var(--amp-primary);
}

.amp-db-action-card span {
    font-size: 1.8em;
}

.amp-db-action-card strong {
    font-size: .9em;
    display: block;
}

.amp-db-action-card small {
    font-size: .75em;
    color: #718096;
    display: block;
    line-height: 1.3;
}

/* ─── PACKAGES TAB ─── */
.amp-db-pkg-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.amp-db-pkg-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 18px;
    border: 1px solid var(--amp-border);
    box-shadow: 0 2px 16px rgba(108,60,225,.07);
    transition: box-shadow .2s;
}

.amp-db-pkg-card:hover {
    box-shadow: 0 6px 28px rgba(108,60,225,.14);
}

.amp-db-pkg-card-left {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
}

.amp-db-pkg-type-icon {
    width: 52px;
    height: 52px;
    background: #f0e6ff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
}

.amp-db-pkg-card-body {
    flex: 1;
    min-width: 0;
}

.amp-db-pkg-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.amp-db-pkg-card-top h3 {
    margin: 0 0 4px;
    font-size: 1em;
    color: #1a1a2e;
}

.amp-db-pkg-type-tag {
    display: inline-block;
    background: #f0e6ff;
    color: var(--amp-primary);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: .75em;
    font-weight: 600;
}

.amp-db-pkg-info-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.amp-db-pkg-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.amp-db-info-icon {
    font-size: 1.1em;
}

.amp-db-pkg-info-item strong {
    display: block;
    font-size: .9em;
    color: #1a1a2e;
    line-height: 1.2;
}

.amp-db-pkg-info-item small {
    display: block;
    font-size: .75em;
    color: #718096;
}

.amp-db-progress-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.amp-db-progress-bar {
    flex: 1;
    height: 7px;
    background: #f0e6ff;
    border-radius: 10px;
    overflow: hidden;
}

.amp-db-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--amp-primary), var(--amp-secondary));
    border-radius: 10px;
    transition: width .5s ease;
}

.amp-db-progress-fill.amp-db-progress-danger {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.amp-db-progress-pct {
    font-size: .78em;
    color: #718096;
    white-space: nowrap;
}

.amp-db-pkg-pending-note,
.amp-db-pkg-rejected-note {
    font-size: .88em;
    color: #718096;
    margin: 0;
}

/* Status pills */
.amp-db-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .78em;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.amp-db-status-active   { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.amp-db-status-pending  { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }
.amp-db-status-rejected { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.amp-db-status-expired  { background: #e2e3e5; color: #495057; border: 1px solid #aaa; }
.amp-db-status-publish  { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.amp-db-status-draft    { background: #e2e3e5; color: #495057; border: 1px solid #aaa; }
.amp-db-status-pending  { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }

/* ─── LISTINGS TAB ─── */
.amp-db-listings-section {
    margin-bottom: 32px;
}

.amp-db-count-badge {
    display: inline-block;
    background: var(--amp-primary);
    color: #fff;
    font-size: .7em;
    padding: 2px 9px;
    border-radius: 20px;
    margin-left: 6px;
    vertical-align: middle;
    font-weight: 700;
}

.amp-db-listings-table-wrap {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--amp-border);
    box-shadow: 0 2px 14px rgba(108,60,225,.07);
}

.amp-db-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88em;
}

.amp-db-table thead tr {
    background: linear-gradient(90deg, #f8f5ff, #f0e6ff);
}

.amp-db-table th {
    padding: 12px 16px;
    font-weight: 700;
    text-align: left;
    color: #374151;
    border-bottom: 2px solid var(--amp-border);
    font-size: .85em;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.amp-db-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f5f0ff;
    vertical-align: middle;
    color: #374151;
}

.amp-db-table tbody tr:last-child td {
    border-bottom: none;
}

.amp-db-table tbody tr:hover td {
    background: #faf8ff;
}

.amp-db-listing-row-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.amp-db-listing-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--amp-border);
}

.amp-db-listing-thumb-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f0e6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    flex-shrink: 0;
}

.amp-db-td-date {
    color: #718096;
    white-space: nowrap;
}

.amp-db-table-actions {
    display: flex;
    gap: 8px;
}

.amp-db-tbl-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: .8em;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    cursor: pointer;
}

.amp-db-tbl-view {
    background: #f0e6ff;
    color: var(--amp-primary);
    border: 1px solid #d8c5ff;
}

.amp-db-tbl-view:hover {
    background: var(--amp-primary);
    color: #fff !important;
}

.amp-db-no-data {
    padding: 20px;
    color: #aaa;
    font-style: italic;
    font-size: .88em;
    background: #fff;
    border-radius: 14px;
    border: 1px dashed var(--amp-border);
    text-align: center;
}

/* ─── ADD LISTING TAB ─── */
.amp-db-add-listing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.amp-db-add-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 32px 20px;
    border-radius: 18px;
    text-decoration: none;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
    box-shadow: 0 6px 24px rgba(0,0,0,.15);
}

.amp-db-add-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(0,0,0,.22);
    color: #fff !important;
}

.amp-db-add-astro  { background: linear-gradient(145deg, #6c3ce1, #9b59b6); }
.amp-db-add-tantra { background: linear-gradient(145deg, #c0392b, #e74c3c); }
.amp-db-add-antique{ background: linear-gradient(145deg, #b7791f, #d4a843); }

.amp-db-add-icon {
    font-size: 2.8em;
    margin-bottom: 4px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.2));
}

.amp-db-add-card strong {
    font-size: 1.1em;
    font-weight: 800;
    letter-spacing: .03em;
}

.amp-db-add-card small {
    font-size: .8em;
    opacity: .85;
    text-align: center;
    line-height: 1.4;
}

.amp-db-add-arrow {
    position: absolute;
    bottom: 14px; right: 18px;
    font-size: 1.2em;
    opacity: .6;
}

/* Tips box */
.amp-db-tips-box {
    background: linear-gradient(135deg, #f0e6ff, #fff8e1);
    border-radius: 14px;
    padding: 20px 24px;
    border: 1px solid #ddd0ff;
}

.amp-db-tips-box h4 {
    margin: 0 0 12px;
    color: #1a1a2e;
    font-size: .95em;
}

.amp-db-tips-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.amp-db-tips-box li {
    font-size: .88em;
    color: #374151;
}

/* ─── EMPTY STATE ─── */
.amp-db-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 16px;
    border: 2px dashed var(--amp-border);
}

.amp-db-empty span {
    font-size: 4em;
    display: block;
    margin-bottom: 12px;
}

.amp-db-empty h3 {
    margin: 0 0 8px;
    color: #374151;
}

.amp-db-empty p {
    color: #718096;
    margin: 0 0 20px;
    font-size: .9em;
}

/* Buttons */
.amp-db-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: .88em;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all .2s;
}

.amp-db-btn-primary {
    background: var(--amp-primary);
    color: #fff !important;
}

.amp-db-btn-primary:hover {
    background: var(--amp-primary-dark);
    transform: translateY(-2px);
}

/* ─── RESPONSIVE — NEW DASHBOARD ─── */
@media (max-width: 1100px) {
    .amp-db-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .amp-db-quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .amp-db-wrap {
        flex-direction: column;
        gap: 20px;
    }
    .amp-db-sidebar {
        width: 100%;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }
    .amp-db-profile-card {
        flex: 1;
        min-width: 240px;
    }
    .amp-db-sidebar-stats {
        flex: 1;
        min-width: 160px;
    }
    .amp-db-nav {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
    }
    .amp-db-nav-item {
        flex: 1 0 auto;
        min-width: 80px;
        justify-content: center;
        flex-direction: column;
        text-align: center;
        gap: 4px;
        padding: 10px 8px;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    .amp-db-nav-item:hover,
    .amp-db-nav-item.active {
        border-left: none;
        border-bottom-color: var(--amp-primary);
        background: #f0e6ff;
    }
    .amp-db-nav-divider {
        display: none;
    }
    .amp-db-nav-txt {
        font-size: .75em;
    }
    .amp-db-add-listing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .amp-db-stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .amp-db-welcome-banner {
        padding: 20px;
        flex-direction: column-reverse;
        gap: 12px;
        text-align: center;
    }
    .amp-db-welcome-title {
        font-size: 1.2em;
    }
    .amp-db-welcome-avatar img {
        width: 52px;
        height: 52px;
    }
    .amp-db-quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    .amp-db-pkg-card {
        flex-direction: column;
        gap: 12px;
    }
    .amp-db-pkg-info-row {
        gap: 12px;
    }
    .amp-db-add-listing-grid {
        grid-template-columns: 1fr;
    }
    .amp-db-pkg-card-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .amp-db-table th:nth-child(3),
    .amp-db-table td:nth-child(3) {
        display: none;
    }
}

@media (max-width: 400px) {
    .amp-db-stat-grid {
        grid-template-columns: 1fr 1fr;
    }
    .amp-db-stat-num {
        font-size: 1.6em;
    }
}

/* ── Profile image upload button ── */
.amp-db-avatar-upload-btn {
    position: absolute;
    bottom: 2px; left: 2px;
    width: 26px; height: 26px;
    background: rgba(0,0,0,.65);
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7em;
    cursor: pointer;
    transition: background .2s;
    line-height: 1;
}

.amp-db-avatar-upload-btn:hover {
    background: var(--amp-primary);
}

/* ── Edit listing button ── */
.amp-db-tbl-edit {
    background: #fff8e1;
    color: #b7791f;
    border: 1px solid #f6d860;
    cursor: pointer;
    font-family: inherit;
}

.amp-db-tbl-edit:hover {
    background: #f0a500;
    color: #fff !important;
    border-color: #f0a500;
}

/* ── Edit listing modal ── */
.amp-db-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(3px);
}

.amp-db-modal-box {
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,.3);
}

.amp-db-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--amp-border);
    background: linear-gradient(90deg, #f8f5ff, #fff);
    flex-shrink: 0;
}

.amp-db-modal-head h3 {
    margin: 0;
    font-size: 1.1em;
    color: #1a1a2e;
}

.amp-db-modal-close {
    background: #f0e6ff;
    border: none;
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1em;
    color: var(--amp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    flex-shrink: 0;
}

.amp-db-modal-close:hover {
    background: #dc3545;
    color: #fff;
}

.amp-db-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.amp-db-modal-loading {
    text-align: center;
    padding: 40px 20px;
    color: #718096;
}

.amp-db-spinner {
    width: 36px; height: 36px;
    border: 4px solid #f0e6ff;
    border-top-color: var(--amp-primary);
    border-radius: 50%;
    animation: ampSpin .7s linear infinite;
    margin: 0 auto 12px;
}

@keyframes ampSpin { to { transform: rotate(360deg); } }

.amp-db-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid var(--amp-border);
    margin-top: 4px;
}

/* Edit form groups */
.amp-db-edit-form-group {
    margin-bottom: 14px;
}

.amp-db-edit-form-group label {
    display: block;
    font-weight: 600;
    font-size: .85em;
    color: #374151;
    margin-bottom: 5px;
}

.amp-db-edit-form-group input,
.amp-db-edit-form-group select,
.amp-db-edit-form-group textarea {
    width: 100%;
    padding: 9px 12px;
    border: 2px solid var(--amp-border);
    border-radius: 9px;
    font-size: .9em;
    box-sizing: border-box;
    font-family: var(--amp-font);
    transition: border-color .2s;
}

.amp-db-edit-form-group input:focus,
.amp-db-edit-form-group select:focus,
.amp-db-edit-form-group textarea:focus {
    border-color: var(--amp-primary);
    outline: none;
}

.amp-db-edit-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Thumbnail row in edit modal */
.amp-db-edit-img-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding: 14px;
    background: #f8f5ff;
    border-radius: 12px;
    border: 1px dashed #c4cbff;
}

.amp-db-edit-thumb-wrap {
    width: 70px; height: 70px;
    border-radius: 10px;
    overflow: hidden;
    background: #f0e6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.8em;
}

.amp-db-edit-thumb-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.amp-db-edit-upload-lbl {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--amp-primary);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: .85em;
    font-weight: 600;
    transition: background .2s;
    margin-bottom: 6px;
    display: block;
}

.amp-db-edit-upload-lbl:hover {
    background: var(--amp-primary-dark);
}

.amp-db-btn-outline {
    background: #fff;
    color: var(--amp-primary) !important;
    border: 2px solid var(--amp-primary);
}

.amp-db-btn-outline:hover {
    background: #f0e6ff;
}

/* Edit modal response message */
#amp-edit-response.amp-db-msg-success {
    background: #d4edda; color: #155724;
    padding: 10px 14px; border-radius: 8px;
    font-size: .88em;
}

#amp-edit-response.amp-db-msg-error {
    background: #f8d7da; color: #721c24;
    padding: 10px 14px; border-radius: 8px;
    font-size: .88em;
}

@media (max-width: 640px) {
    .amp-db-edit-form-row { grid-template-columns: 1fr; }
    .amp-db-modal-box { max-height: 95vh; }
    .amp-db-modal-body { padding: 16px; }
}


/* ================================================================
   ASTRO OPD LISTINGS — amp-lf-* + amp-xcard-* styles
   ================================================================ */

/* Hero banner */
.amp-listing-hero {
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.amp-listing-hero-astro {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #4a1fa8 100%);
    box-shadow: 0 8px 32px rgba(108,60,225,.3);
}

.amp-listing-hero-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.amp-listing-hero::after {
    content: '';
    position: absolute;
    right: -40px; top: -40px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
}

.amp-listing-hero-icon {
    font-size: 3em;
    filter: drop-shadow(0 2px 8px rgba(255,255,255,.3));
}

.amp-listing-hero h2 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 1.6em;
    font-weight: 800;
}

.amp-listing-hero p {
    margin: 0;
    color: rgba(255,255,255,.65);
    font-size: .9em;
}

/* Search & filter bar */
.amp-lf-bar {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.amp-lf-search-wrap {
    flex: 1;
    min-width: 220px;
    position: relative;
    display: flex;
    align-items: center;
}

.amp-lf-search-icon {
    position: absolute;
    left: 14px;
    font-size: 1em;
    pointer-events: none;
}

.amp-lf-search-input {
    width: 100%;
    padding: 13px 16px 13px 42px;
    border: 2px solid var(--amp-border);
    border-radius: 12px;
    font-size: .92em;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .2s, box-shadow .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.amp-lf-search-input:focus {
    border-color: var(--amp-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(108,60,225,.12);
}

.amp-lf-select {
    padding: 13px 16px;
    border: 2px solid var(--amp-border);
    border-radius: 12px;
    font-size: .92em;
    background: #fff;
    cursor: pointer;
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    transition: border-color .2s;
}

.amp-lf-select:focus {
    border-color: var(--amp-primary);
    outline: none;
}

/* Meta bar */
.amp-lf-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: .85em;
    color: #718096;
    padding: 0 4px;
}

/* ── Expert Card (new amp-xcard) ── */
.amp-expert-list {
    display: grid;
    flex-direction: column;
    gap: 16px;
    grid-template-columns: repeat(2, 1fr);
}


@media only screen and (min-width:100px) and (max-width:768px) {
    .amp-expert-list {
    display: block;
    flex-direction: column;
    gap: 16px;
    grid-template-columns: repeat(2, 1fr);
}
}


.amp-xcard {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #ede9ff;
    box-shadow: 0 3px 16px rgba(108,60,225,.09);
    transition: transform .22s, box-shadow .22s;
    position: relative;
}

.amp-xcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 36px rgba(108,60,225,.18);
}

/* Left column – avatar */
.amp-xcard-avatar-col {
    width: 120px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 22px 16px;
    background: linear-gradient(180deg, #f8f5ff 0%, #fff0f8 100%);
    border-right: 1px solid #f0e6ff;
}

.amp-xcard-avatar-ring {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #f0a500;
    background: linear-gradient(135deg, #f0e6ff, #fff3e0);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.amp-xcard-avail { border-color: #f0a500; }
.amp-xcard-busy  { border-color: #ccc; }

.amp-xcard-avatar-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.amp-xcard-avatar-ph {
    font-size: 2.2em;
}

.amp-xcard-dot {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .72em;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
}

.amp-xcard-dot-green { background: #d4edda; color: #155724; }
.amp-xcard-dot-red   { background: #f8d7da; color: #721c24; }

.amp-xcard-stars {
    display: flex;
    gap: 1px;
}

.amp-xstar { font-size: .88em; color: #ddd; }
.amp-xstar.filled { color: #f0a500; }

.amp-xcard-orders {
    font-size: .7em;
    color: #718096;
}

/* Right column – info */
.amp-xcard-info {
    flex: 1;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.amp-xcard-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.amp-xcard-name {
    margin: 0;
    font-size: 1.05em;
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.amp-xcard-badge-avail {
    display: inline-flex;
    align-items: center;
    background: #d4edda;
    color: #155724;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .72em;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.amp-xcard-badge-busy {
    display: inline-flex;
    align-items: center;
    background: #fff3cd;
    color: #856404;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .72em;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.amp-xcard-spec {
    margin: 0;
    color: var(--amp-primary);
    font-size: .85em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.amp-xcard-spec-icon { font-size: 1em; }

.amp-xcard-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 2px;
}

.amp-xcard-pill {
    background: #f8f5ff;
    border: 1px solid #e8e0ff;
    color: #374151;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: .78em;
    font-weight: 500;
}

/* Bottom row */
.amp-xcard-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 12px;
    margin-top: auto;
    border-top: 1px solid #f5f0ff;
}

.amp-xcard-price-label {
    display: block;
    font-size: .72em;
    color: #718096;
    margin-bottom: 2px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.amp-xcard-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.amp-xcard-fee {
    font-size: 1.3em;
    font-weight: 800;
    color: #28a745;
}

.amp-xcard-fee-old {
    color: #aaa;
    font-size: .82em;
    text-decoration: line-through;
}

.amp-xcard-discount {
    background: #d4edda;
    color: #155724;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: .72em;
    font-weight: 700;
}

.amp-xcard-fee-unit {
    color: #aaa;
    font-size: .78em;
}

/* Buttons */
.amp-xcard-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.amp-xcard-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: .82em;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .2s;
    white-space: nowrap;
    letter-spacing: .02em;
}

.amp-xbtn-call {
    background: #e8f2ff;
    color: #0055cc;
    border-color: #b3d4ff;
}

.amp-xbtn-call:hover {
    background: #0055cc;
    color: #fff !important;
    border-color: #0055cc;
}

.amp-xbtn-view {
    background: linear-gradient(135deg, #6c3ce1, #9b59b6);
    color: #fff !important;
    border-color: transparent;
}

.amp-xbtn-view:hover {
    background: linear-gradient(135deg, #5428c0, #7d3c98);
    transform: translateY(-1px);
}

.amp-xbtn-wa {
    background: #e8faf0;
    color: #128c45;
    border-color: #a8e6c1;
}

.amp-xbtn-wa:hover {
    background: #25d366;
    color: #fff !important;
    border-color: #25d366;
}

@media (max-width: 640px) {
    .amp-xcard { flex-direction: column; }
    .amp-xcard-avatar-col {
        width: 100%;
        flex-direction: row;
        padding: 16px 20px;
        border-right: none;
        border-bottom: 1px solid #f0e6ff;
        gap: 14px;
    }
    .amp-xcard-bottom { flex-direction: column; align-items: flex-start; }
    .amp-lf-bar { flex-direction: column; }
    .amp-listing-hero { padding: 20px; }
    .amp-listing-hero h2 { font-size: 1.2em; }
}


/* ================================================================
   SINGLE ASTRO OPD PAGE — amp-sp-* styles
   ================================================================ */

.amp-sp-wrap {
    font-family: var(--amp-font);
    background: #f7f7ff;
    padding: 30px 0 60px;
    min-height: 60vh;
}

.amp-sp-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Hero card ── */
.amp-sp-hero {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 32px rgba(108,60,225,.13);
    margin-bottom: 28px;
    border: 1px solid #ede9ff;
}

/* Image panel */
.amp-sp-img-panel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #1a1a2e 0%, #4a1fa8 100%);
    min-height: 320px;
    display: flex;
    align-items: stretch;
}

.amp-sp-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.amp-sp-thumb-ph {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6em;
    padding: 40px;
}

.amp-sp-avail-badge {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border-radius: 30px;
    font-size: .82em;
    font-weight: 700;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.3);
}

.amp-sp-avail-yes {
    background: rgba(40,167,69,.85);
    color: #fff;
}

.amp-sp-avail-no {
    background: rgba(220,53,69,.85);
    color: #fff;
}

.amp-sp-avail-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: ampPulse 1.4s ease infinite;
    flex-shrink: 0;
}

@keyframes ampPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(1.3); }
}

/* Info panel */
.amp-sp-info-panel {
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.amp-sp-category-pill {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #6c3ce1, #9b59b6);
    color: #fff;
    padding: 5px 18px;
    border-radius: 30px;
    font-size: .8em;
    font-weight: 700;
    letter-spacing: .05em;
    align-self: flex-start;
}

.amp-sp-title {
    margin: 0;
    font-size: 1.9em;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.2;
    letter-spacing: .02em;
}

.amp-sp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.amp-sp-tag {
    background: #f0e6ff;
    color: var(--amp-primary);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: .8em;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #ddd0ff;
    transition: all .2s;
}

.amp-sp-tag:hover {
    background: var(--amp-primary);
    color: #fff;
}

/* Rating row */
.amp-sp-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.amp-sp-stars { display: flex; gap: 2px; }
.amp-sp-rating-num { font-weight: 800; color: #1a1a2e; font-size: .95em; }
.amp-sp-orders-count { color: #718096; font-size: .85em; }

/* Stat pills */
.amp-sp-stat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.amp-sp-stat-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f5ff;
    border: 1px solid #ede9ff;
    border-radius: 12px;
    padding: 10px 16px;
}

.amp-sp-stat-icon { font-size: 1.3em; }

.amp-sp-stat-pill strong {
    display: block;
    font-size: .88em;
    color: #1a1a2e;
    line-height: 1.2;
}

.amp-sp-stat-pill small {
    display: block;
    font-size: .72em;
    color: #718096;
}

/* Fee block */
.amp-sp-fee-block {
    background: linear-gradient(135deg, #f0e6ff, #fff8e1);
    border: 1px solid #e8d5ff;
    border-radius: 14px;
    padding: 16px 20px;
}

.amp-sp-fee-label {
    display: block;
    font-size: .75em;
    color: #718096;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 6px;
}

.amp-sp-fee-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.amp-sp-fee-amount {
    font-size: 2em;
    font-weight: 900;
    color: #28a745;
    line-height: 1;
}

.amp-sp-fee-old {
    font-size: .95em;
    color: #aaa;
    text-decoration: line-through;
}

.amp-sp-fee-off {
    background: #d4edda;
    color: #155724;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .75em;
    font-weight: 700;
}

.amp-sp-fee-unit {
    font-size: .85em;
    color: #718096;
}

/* Action buttons */
.amp-sp-action-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.amp-sp-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: .9em;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .22s;
    white-space: nowrap;
}

.amp-sp-btn-call {
    background: #0055cc;
    color: #fff !important;
}

.amp-sp-btn-call:hover {
    background: #003d99;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,85,204,.3);
}

.amp-sp-btn-wa {
    background: #25d366;
    color: #fff !important;
}

.amp-sp-btn-wa:hover {
    background: #128c45;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,.3);
}

.amp-sp-btn-email {
    background: #fff;
    color: var(--amp-primary) !important;
    border-color: var(--amp-primary);
}

.amp-sp-btn-email:hover {
    background: var(--amp-primary);
    color: #fff !important;
}

.amp-sp-btn-chat {
    background: linear-gradient(135deg, #6c3ce1, #9b59b6);
    color: #fff !important;
    border: none;
    font-family: inherit;
}

.amp-sp-btn-chat:hover {
    background: linear-gradient(135deg, #5428c0, #7d3c98);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108,60,225,.3);
}

/* ── Body layout ── */
.amp-sp-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: flex-start;
}

/* Content sections */
.amp-sp-section {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(108,60,225,.07);
    border: 1px solid #ede9ff;
    margin-bottom: 20px;
}

.amp-sp-section-head {
    padding: 18px 24px 14px;
    border-bottom: 1px solid #f5f0ff;
    background: linear-gradient(90deg, #faf8ff, #fff);
}

.amp-sp-section-head h2 {
    margin: 0;
    font-size: 1.05em;
    color: #1a1a2e;
    font-weight: 700;
}

.amp-sp-content-body {
    padding: 20px 24px;
    color: #374151;
    font-size: .93em;
    line-height: 1.8;
}

.amp-sp-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    padding: 16px 24px 20px;
}

.amp-sp-gallery-img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    transition: transform .2s;
}

.amp-sp-gallery-img:hover { transform: scale(1.04); }

.amp-sp-services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 24px 20px;
}

.amp-sp-service-chip {
    background: linear-gradient(135deg, #f0e6ff, #fff0f8);
    color: var(--amp-primary);
    border: 1px solid #ddd0ff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: .85em;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}

.amp-sp-service-chip:hover {
    background: var(--amp-primary);
    color: #fff;
    border-color: var(--amp-primary);
}

/* Sidebar */
.amp-sp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 90px;
}

.amp-sp-sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 16px rgba(108,60,225,.07);
    border: 1px solid #ede9ff;
}

.amp-sp-sidebar-card h3 {
    margin: 0 0 16px;
    font-size: .95em;
    color: #1a1a2e;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0e6ff;
}

.amp-sp-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.amp-sp-ci-icon {
    font-size: 1.3em;
    flex-shrink: 0;
    margin-top: 2px;
}

.amp-sp-contact-item strong {
    display: block;
    font-size: .82em;
    color: #718096;
    font-weight: 600;
    margin-bottom: 2px;
}

.amp-sp-contact-item p {
    margin: 0;
    font-size: .88em;
    color: #1a1a2e;
    font-weight: 600;
}

.amp-sp-sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px;
    border-radius: 10px;
    font-size: .88em;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.amp-sp-sbtn-call {
    background: #0055cc;
    color: #fff !important;
}

.amp-sp-sbtn-call:hover { background: #003d99; }

.amp-sp-sbtn-wa {
    background: #25d366;
    color: #fff !important;
}

.amp-sp-sbtn-wa:hover { background: #128c45; }

/* Quick info rows */
.amp-sp-qi-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid #f5f0ff;
    font-size: .86em;
    gap: 8px;
}

.amp-sp-qi-row:last-child { border-bottom: none; }
.amp-sp-qi-row span { color: #718096; }
.amp-sp-qi-row strong { color: #1a1a2e; text-align: right; }

/* Responsive */
@media (max-width: 900px) {
    .amp-sp-hero { grid-template-columns: 1fr; }
    .amp-sp-img-panel { min-height: 220px; }
    .amp-sp-info-panel { padding: 24px 20px; }
    .amp-sp-body { grid-template-columns: 1fr; }
    .amp-sp-sidebar { position: static; }
    .amp-sp-title { font-size: 1.5em; }
}

@media (max-width: 560px) {
    .amp-sp-action-btns { flex-direction: column; }
    .amp-sp-btn { justify-content: center; }
    .amp-sp-stat-pills { flex-direction: column; }
    .amp-sp-fee-amount { font-size: 1.6em; }
}

/* ====== Tantra OPD Booking Form ====== */
.amp-booking-card {
    background: #fff;
    border: 2px solid #f8d7d7;
    border-radius: var(--amp-radius);
    padding: 22px;
}
.amp-booking-card h3 {
    color: var(--amp-tantra);
    margin-top: 0;
    font-size: 18px;
}
.amp-booking-subtitle {
    color: #888;
    font-size: 13px;
    margin-bottom: 14px;
}
.amp-booking-form .amp-form-group {
    margin-bottom: 12px;
}
.amp-booking-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 4px;
}
.amp-booking-form label .req {
    color: var(--amp-tantra);
}
.amp-booking-form input[type="text"],
.amp-booking-form input[type="tel"],
.amp-booking-form input[type="email"],
.amp-booking-form input[type="date"],
.amp-booking-form input[type="time"],
.amp-booking-form select,
.amp-booking-form textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--amp-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--amp-font);
    box-sizing: border-box;
    transition: border .2s;
}
.amp-booking-form input:focus,
.amp-booking-form select:focus,
.amp-booking-form textarea:focus {
    border-color: var(--amp-tantra);
    outline: none;
}
.amp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.amp-booking-submit {
    background: var(--amp-tantra) !important;
    border-color: var(--amp-tantra) !important;
    margin-top: 6px;
}
.amp-booking-submit:hover {
    background: #b52626 !important;
}
.amp-message {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
}
.amp-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.amp-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ====== Tantra OPD Booking Shortcode ====== */
.amp-tantra-booking-wrap {
    background: #fff;
    border: 2px solid #f8d7d7;
    border-radius: var(--amp-radius);
    padding: 28px 30px;
    margin: 20px auto;
    font-family: var(--amp-font);
}
.amp-tantra-booking-title {
    color: var(--amp-tantra-accent, #d63031);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
}
.amp-tantra-expert-name {
    font-weight: 400;
    font-size: 16px;
    color: #666;
}
.amp-form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 0;
}
.amp-tantra-sc-form .amp-form-group {
    margin-bottom: 14px;
}
.amp-tantra-sc-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 4px;
}
.amp-tantra-sc-form input,
.amp-tantra-sc-form select {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--amp-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--amp-font);
    box-sizing: border-box;
    transition: border .2s;
}
.amp-tantra-sc-form input:focus,
.amp-tantra-sc-form select:focus {
    border-color: var(--amp-tantra-accent, #d63031);
    outline: none;
}
@media (max-width: 640px) {
    .amp-form-row-3 {
        grid-template-columns: 1fr;
    }
    .amp-tantra-booking-wrap {
        padding: 18px 16px;
    }
}

/* =====================================================
   Astro OPD — Today's Day Card Layout
   ===================================================== */

/* ── Today Banner ── */
.amp-today-banner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background: linear-gradient(135deg, #1a0533 0%, #3d1d8a 60%, #6c3ce1 100%);
    border-radius: 14px;
    padding: 18px 24px;
    margin-bottom: 26px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(108,60,225,.35);
    position: relative;
    overflow: hidden;
}
.amp-today-banner::before {
    content: '🔮';
    position: absolute;
    right: -10px;
    top: -10px;
    font-size: 6em;
    opacity: .08;
    pointer-events: none;
}
.amp-today-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 160px;
}
.amp-today-icon {
    font-size: 2em;
    line-height: 1;
}
.amp-today-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.amp-today-day {
    font-size: 1.35em;
    font-weight: 800;
    letter-spacing: .03em;
    color: #f0c040;
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.amp-today-date {
    font-size: .82em;
    opacity: .85;
    letter-spacing: .02em;
}
.amp-today-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 10px;
    padding: 10px 20px;
    min-width: 150px;
}
.amp-today-clock-label {
    font-size: .72em;
    opacity: .8;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.amp-today-clock {
    font-size: 1.5em;
    font-weight: 800;
    letter-spacing: .06em;
    font-variant-numeric: tabular-nums;
    color: #f0c040;
}
.amp-today-tag {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    margin-left: auto;
    text-align: right;
}
.amp-today-tag span {
    font-size: .78em;
    opacity: .8;
}
.amp-today-tag strong {
    font-size: 1em;
    color: #a8f5c8;
    letter-spacing: .03em;
}

/* ── Day Filter Tabs ── */
.amp-day-filter-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 26px;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 2px 12px rgba(108,60,225,.10);
    border: 1px solid #ede9ff;
}
.amp-day-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 60px;
    padding: 9px 8px 8px;
    border-radius: 9px;
    text-decoration: none !important;
    color: #555;
    font-weight: 600;
    font-size: .82em;
    border: 1.5px solid transparent;
    background: #f7f5ff;
    transition: all .2s;
    text-align: center;
    gap: 2px;
    line-height: 1.2;
}
.amp-day-tab:hover {
    background: #ede8ff;
    color: #6c3ce1;
    border-color: #c9b8f8;
}
.amp-day-tab--active {
    background: linear-gradient(135deg, #6c3ce1, #9b59b6);
    color: #fff !important;
    border-color: #6c3ce1;
    box-shadow: 0 3px 12px rgba(108,60,225,.35);
}
.amp-day-tab--active:hover {
    background: linear-gradient(135deg, #5428c0, #8a45a5);
    color: #fff !important;
}
/* "Today" tab gets a small dot indicator */
.amp-day-tab--today .amp-day-tab-dot {
    position: absolute;
    top: 5px;
    right: 6px;
    width: 6px;
    height: 6px;
    background: #f0c040;
    border-radius: 50%;
}
.amp-day-tab--active.amp-day-tab--today .amp-day-tab-dot {
    background: #a8f5c8;
}
.amp-day-tab-short {
    display: none;    /* shown on mobile */
}
.amp-day-tab-full {
    display: block;   /* full name on desktop */
}
@media (max-width: 600px) {
    .amp-day-tab-short { display: block; }
    .amp-day-tab-full  { display: none; }
    .amp-day-tab       { min-width: 36px; font-size: .78em; padding: 8px 4px; }
    .amp-day-filter-wrap { gap: 5px; padding: 8px 8px; }
}

/* Today bar (legacy, keep for backward compat) */
.amp-today-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fff9e6, #fff3cd);
    border: 1px solid #f0c040;
    border-radius: 10px;
    padding: 10px 18px;
    margin-bottom: 20px;
    font-size: .95em;
    color: #7a5500;
}
.amp-today-icon { font-size: 1.1em; }

/* Section headings */
.amp-opd-section-header {
    margin: 28px 0 10px;
}
.amp-opd-section-sub {
    font-size: .83em;
    color: #888;
    margin: 0 0 14px;
}
.amp-opd-other-header .amp-opd-section-sub {
    color: #aaa;
}
.amp-opd-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
    font-weight: 700;
    margin: 0 0 4px;
    color: #3d1d8a;
    border-bottom: 2px solid #e0d5ff;
    padding-bottom: 8px;
}
.amp-opd-title-other {
    color: #555;
    border-bottom-color: #ddd;
}
.amp-opd-count-badge {
    background: #6c3ce1;
    color: #fff;
    border-radius: 20px;
    font-size: .78em;
    padding: 2px 10px;
    font-weight: 600;
}
.amp-badge-other { background: #888; }
.amp-opd-count-other { background: #888; }

/* Card head: title + category */
.amp-opd-card-head {
    margin-bottom: 8px;
}
.amp-opd-card-title {
    margin: 0 0 3px;
    font-size: .98em;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.35;
}
.amp-opd-card-title a {
    color: #3d1d8a;
    text-decoration: none;
}
.amp-opd-card-title a:hover {
    text-decoration: underline;
}
.amp-opd-card-cat {
    display: inline-block;
    font-size: .76em;
    color: #6c3ce1;
    font-weight: 600;
}

/* Chips (day availability + time) */
.amp-opd-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.amp-opd-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .73em;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.amp-day-today {
    background: #d4fce8;
    color: #1a7a45;
    border: 1px solid #8fe8bc;
}
.amp-day-daily {
    background: #e8f4ff;
    color: #0066cc;
    border: 1px solid #99ccff;
}
.amp-day-other {
    background: #f5f5f5;
    color: #777;
    border: 1px solid #ddd;
}
.amp-chip-time {
    background: #fff3e0;
    color: #a05000;
    border: 1px solid #ffd08a;
}

/* 2-column grid */
.amp-opd-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.amp-opd-grid-other { opacity: .85; }

/* Single OPD card */
.amp-opd-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fdf6e3;
    border: 1px solid #e8d98a;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
    transition: box-shadow .2s, transform .2s;
}
.amp-opd-card:hover {
    box-shadow: 0 6px 20px rgba(108,60,225,.15);
    transform: translateY(-2px);
}
.amp-opd-grid-other .amp-opd-card {
    background: #f9f9f9;
    border-color: #ddd;
}

/* Photo column */
.amp-opd-card-photo {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 96px;
}
.amp-opd-card-img {
    width: 88px;
    height: 108px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #c9a827;
    display: block;
}
.amp-opd-card-img-ph {
    width: 88px;
    height: 108px;
    background: #f0e8ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2em;
    border: 2px solid #d5c5f5;
}
.amp-opd-card-photo-name {
    font-size: .78em;
    color: #555;
    text-align: center;
    margin: 0;
    word-break: break-word;
    line-height: 1.3;
}
.amp-opd-fb-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #e7f0ff;
    border-radius: 50%;
    transition: background .2s;
}
.amp-opd-fb-link:hover { background: #cce0ff; }

/* Content column */
.amp-opd-card-content {
    flex: 1;
    min-width: 0;
}
.amp-opd-card-desc {
    font-size: .92em;
    color: #333;
    line-height: 1.75;
    margin: 0 0 10px;
    text-align: justify;
}
.amp-opd-name-link {
    color: #3d1d8a;
    font-weight: 700;
    text-decoration: none;
}
.amp-opd-name-link:hover { text-decoration: underline; }

/* Day pills */
.amp-opd-days-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}
.amp-day-pill {
    font-size: .68em;
    padding: 2px 7px;
    border-radius: 20px;
    background: #eee;
    color: #aaa;
    font-weight: 600;
}
.amp-day-pill-on {
    background: #d5efd5;
    color: #2a6b2a;
}
.amp-day-pill-today {
    background: #6c3ce1;
    color: #fff;
    box-shadow: 0 2px 6px rgba(108,60,225,.4);
}

/* Card action buttons */
.amp-opd-card-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.amp-xcard-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: .8em;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all .2s;
    border: 1.5px solid transparent;
    cursor: pointer;
}
.amp-xbtn-call {
    background: #e8f2ff;
    color: #0066cc !important;
    border-color: #b3d4ff;
}
.amp-xbtn-call:hover {
    background: #0066cc;
    color: #fff !important;
    border-color: #0066cc;
}
.amp-xbtn-wa {
    background: #e8faf0;
    color: #1a8f4a !important;
    border-color: #8fe8bc;
}
.amp-xbtn-wa:hover {
    background: #25d366;
    color: #fff !important;
    border-color: #25d366;
}
.amp-xbtn-view {
    background: #f0eaff;
    color: #6c3ce1 !important;
    border-color: #c8b0f5;
}
.amp-xbtn-view:hover {
    background: #6c3ce1;
    color: #fff !important;
    border-color: #6c3ce1;
}

/* Days checkboxes in submit form */
.amp-days-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}
.amp-day-cb-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.amp-day-cb-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #6c3ce1;
}
.amp-day-cb-label span {
    font-size: .8em;
    font-weight: 600;
    color: #444;
    background: #f0e8ff;
    border-radius: 6px;
    padding: 3px 8px;
}
.amp-day-cb-label input:checked + span {
    background: #6c3ce1;
    color: #fff;
}

/* Responsive — 1 column on mobile */
@media (max-width: 700px) {
    .amp-opd-grid {
        grid-template-columns: 1fr;
    }
    .amp-today-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .amp-today-tag {
        align-items: flex-start;
        text-align: left;
        margin-left: 0;
    }
    .amp-today-right {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}
@media (max-width: 480px) {
    .amp-opd-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .amp-opd-card-photo { width: auto; }
    .amp-opd-card-desc  { text-align: left; }
    .amp-opd-card-btns  { justify-content: center; }
    .amp-opd-days-pills { justify-content: center; }
    .amp-opd-card-chips { justify-content: center; }
}

/* =====================================================
   Tantra OPD Booking Form — Redesign
   ===================================================== */

.amp-tbf-outer {
    font-family: var(--amp-font);
    margin: 0 auto 40px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(214, 48, 49, .18), 0 2px 12px rgba(0,0,0,.10);
    border: 1px solid #f5d0d0;
    background: #fff;
}

/* Top color strip */
.amp-tbf-topstrip {
    height: 5px;
    background: linear-gradient(90deg, #d63031 0%, #e17055 40%, #f0a500 70%, #d63031 100%);
    background-size: 200% 100%;
    animation: amp-tbf-strip 3s linear infinite;
}
@keyframes amp-tbf-strip {
    0%   { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.amp-tbf-inner {
    padding: 32px 36px 36px;
    background: linear-gradient(160deg, #fff 70%, #fff5f5 100%);
}

/* Header */
.amp-tbf-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1.5px solid #fde8e8;
}
.amp-tbf-icon {
    font-size: 2.6em;
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(214,48,49,.25));
    flex-shrink: 0;
}
.amp-tbf-header-text {
    flex: 1;
}
.amp-tbf-title {
    margin: 0 0 4px;
    font-size: 1.25em;
    font-weight: 800;
    color: #c0392b;
    letter-spacing: .01em;
}
.amp-tbf-title span {
    color: #1a1a2e;
    font-weight: 700;
}
.amp-tbf-subtitle {
    margin: 0;
    font-size: .84em;
    color: #888;
}

/* Form rows */
.amp-tbf-row {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
}
.amp-tbf-row-3 {
    grid-template-columns: repeat(3, 1fr);
}
.amp-tbf-row-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Label */
.amp-tbf-label {
    display: block;
    font-size: .82em;
    font-weight: 700;
    color: #444;
    margin-bottom: 6px;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.amp-tbf-licon {
    margin-right: 3px;
}
.amp-tbf-req {
    color: #d63031;
    font-weight: 700;
    margin-left: 2px;
}

/* Inputs */
.amp-tbf-input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border: 1.8px solid #e8d5d5;
    border-radius: 10px;
    font-size: .93em;
    font-family: var(--amp-font);
    color: #222;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}
.amp-tbf-input:focus {
    border-color: #d63031;
    box-shadow: 0 0 0 3px rgba(214, 48, 49, .10);
}
.amp-tbf-input::placeholder {
    color: #bbb;
    font-size: .95em;
}

/* Textarea */
.amp-tbf-textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
}

/* Submit row */
.amp-tbf-submit-row {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Submit button */
.amp-tbf-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 34px;
    background: linear-gradient(135deg, #d63031 0%, #c0392b 100%);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-size: .96em;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .18s, box-shadow .18s, background .2s;
    box-shadow: 0 4px 16px rgba(214, 48, 49, .35);
    min-width: 200px;
}
.amp-tbf-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(214, 48, 49, .45);
}
.amp-tbf-submit-btn:disabled {
    opacity: .75;
    cursor: not-allowed;
}
.amp-tbf-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.amp-tbf-spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2.5px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: amp-tbf-spin .7s linear infinite;
    flex-shrink: 0;
}
@keyframes amp-tbf-spin {
    to { transform: rotate(360deg); }
}

/* Response message */
.amp-tbf-response {
    margin-top: 20px;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: .93em;
    line-height: 1.5;
}
.amp-tbf-resp-ok {
    background: linear-gradient(135deg, #d4fce8, #ecfdf5);
    border: 1.5px solid #6ee7b7;
    color: #065f46;
}
.amp-tbf-resp-err {
    background: #fff5f5;
    border: 1.5px solid #fca5a5;
    color: #7f1d1d;
}
.amp-tbf-resp-icon {
    font-size: 1.8em;
    flex-shrink: 0;
    line-height: 1;
}
.amp-tbf-resp-msg strong {
    display: block;
    font-size: 1em;
    margin-bottom: 3px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .amp-tbf-inner      { padding: 24px 20px 28px; }
    .amp-tbf-row-3      { grid-template-columns: 1fr; }
    .amp-tbf-row-2      { grid-template-columns: 1fr; }
    .amp-tbf-submit-btn { width: 100%; }
    .amp-tbf-submit-row { justify-content: center; }
    .amp-tbf-header     { flex-direction: column; text-align: center; gap: 10px; }
}
@media (max-width: 480px) {
    .amp-tbf-outer  { border-radius: 12px; }
    .amp-tbf-inner  { padding: 18px 14px 22px; }
    .amp-tbf-title  { font-size: 1.08em; }
}


/* =====================================================
   Antique Listings — New Filter Bar (Category Only)
   ===================================================== */

.amp-antique-filter-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #fffbf0 0%, #fff8e8 100%);
    border: 1.5px solid #e8d5a3;
    padding: 14px 22px;
    border-radius: 14px;
    box-shadow: 0 3px 16px rgba(183, 121, 31, .12);
    flex-wrap: wrap;
}

.amp-filter-label {
    font-size: .92em;
    font-weight: 700;
    color: #7a5500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.amp-filter-controls {
    flex: 1;
    min-width: 200px;
}

.amp-filter-select {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid #e8d5a3;
    border-radius: 10px;
    font-size: .94em;
    background: #fff;
    color: #3a2800;
    cursor: pointer;
    font-family: var(--amp-font);
    transition: border-color .2s, box-shadow .2s;
    appearance: auto;
}

.amp-filter-select:focus {
    border-color: #b7791f;
    outline: none;
    box-shadow: 0 0 0 3px rgba(183, 121, 31, .15);
}

@media (max-width: 600px) {
    .amp-antique-filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px 16px;
    }
    .amp-filter-controls {
        width: 100%;
    }
}

/* =====================================================
   Antique Card — Improved Design
   ===================================================== */

.amp-antique-card .amp-card-image {
    background: linear-gradient(135deg, #b7791f 0%, #d4a843 60%, #e8c97a 100%);
}

.amp-antique-card .amp-card-badge {
    background: linear-gradient(135deg, #28a745, #20c65a);
    border-radius: 20px;
    font-weight: 700;
    font-size: .75em;
    letter-spacing: .03em;
    padding: 5px 14px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, .35);
}

.amp-antique-card .amp-badge-purchase {
    background: linear-gradient(135deg, #e07b00, #f0a500);
}

.amp-antique-card {
    border: 1px solid #f0e5cc;
    box-shadow: 0 4px 20px rgba(183, 121, 31, .10);
    transition: transform .25s, box-shadow .25s;
}

.amp-antique-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 36px rgba(183, 121, 31, .20);
    border-color: #d4a843;
}

.amp-antique-card .amp-card-title {
    color: #2e1800;
    font-size: 1.05em;
    line-height: 1.4;
}

.amp-antique-card .amp-card-cat-tag {
    background: #fff3d6;
    color: #7a5500;
    border: 1px solid #e8d5a3;
    font-size: .72em;
    font-weight: 700;
}

.amp-antique-card .amp-meta {
    color: #6b5020;
    font-size: .84em;
}

.amp-antique-card .amp-card-excerpt {
    color: #5a4030;
    font-size: .86em;
    line-height: 1.6;
}

.amp-antique-card .amp-card-footer {
    border-top: 1px solid #f0e5cc;
    padding-top: 12px;
    margin-top: auto;
}

.amp-antique-card .amp-price {
    color: #1a7a3a;
    font-size: 1.05em;
    font-weight: 800;
}

.amp-btn-antique {
    background: linear-gradient(135deg, #b7791f, #d4a843);
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(183, 121, 31, .3);
    border-radius: 8px;
    font-size: .82em;
    font-weight: 700;
    padding: 8px 16px;
    transition: all .2s;
}

.amp-btn-antique:hover {
    background: linear-gradient(135deg, #9a6218, #b7791f);
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(183, 121, 31, .4);
    color: #fff !important;
}

.amp-antique-card .amp-btn-outline {
    border-color: #b7791f;
    color: #7a5500 !important;
    font-size: .82em;
    padding: 8px 14px;
}

.amp-antique-card .amp-btn-outline:hover {
    background: #b7791f;
    color: #fff !important;
}


/* ======================================================
   ANTIQUE CATEGORY GRID  [antique_category_grid]
   ====================================================== */

.amp-cat-grid-wrap {
    font-family: var(--amp-font);
    padding: 10px 0 20px;
}

/* Section heading */
.amp-cat-grid-header {
    text-align: center;
    margin-bottom: 32px;
}

.amp-cat-grid-title {
    font-size: 1.9em;
    font-weight: 800;
    color: #2d1a00;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.amp-cat-title-icon {
    font-size: 1em;
}

.amp-cat-grid-subtitle {
    color: #8a7050;
    font-size: .97em;
    margin: 0;
}

/* Grid layout */
.amp-cat-grid {
    display: grid;
    gap: 20px;
}

.amp-cat-cols-2 { grid-template-columns: repeat(2, 1fr); }
.amp-cat-cols-3 { grid-template-columns: repeat(3, 1fr); }
.amp-cat-cols-4 { grid-template-columns: repeat(4, 1fr); }
.amp-cat-cols-5 { grid-template-columns: repeat(5, 1fr); }
.amp-cat-cols-6 { grid-template-columns: repeat(6, 1fr); }

/* Category tile link */
.amp-cat-tile {
    text-decoration: none;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(183, 121, 31, .15);
    transition: transform .28s ease, box-shadow .28s ease;
}

.amp-cat-tile:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 36px rgba(183, 121, 31, .28);
}

/* Inner container — controls height */
.amp-cat-tile-inner {
    position: relative;
    height: 180px;
    overflow: hidden;
    border-radius: 16px;
}

/* Background image layer */
.amp-cat-tile-bg {
    position: absolute;
    inset: 0;
}

.amp-cat-tile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
    display: block;
}

.amp-cat-tile:hover .amp-cat-tile-img {
    transform: scale(1.07);
}

/* Dark overlay on image */
.amp-cat-tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30,10,0,.75) 0%, rgba(0,0,0,.18) 100%);
}

/* Gradient background when no image */
.amp-cat-tile-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #b7791f 0%, #d4a843 40%, #f0c060 100%);
}

/* Text content */
.amp-cat-tile-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 12px;
    text-align: center;
    z-index: 2;
}

.amp-cat-tile-icon {
    font-size: 2.4em;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
}

.amp-cat-tile-name {
    margin: 0;
    font-size: .97em;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,.6);
    letter-spacing: .02em;
    line-height: 1.3;
}

.amp-cat-tile-count {
    display: inline-block;
    background: rgba(255,255,255,.22);
    color: #fff;
    font-size: .75em;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.35);
    backdrop-filter: blur(4px);
}

/* Hover arrow */
.amp-cat-tile-arrow {
    position: absolute;
    bottom: 12px;
    right: 14px;
    color: rgba(255,255,255,.7);
    font-size: 1.2em;
    font-weight: 700;
    z-index: 3;
    transition: transform .25s ease, color .25s;
}

.amp-cat-tile:hover .amp-cat-tile-arrow {
    transform: translateX(4px);
    color: #fff;
}

/* ======================================================
   ANTIQUE FILTER BAR  (updated with active state)
   ====================================================== */

.amp-antique-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
    background: linear-gradient(135deg, #fff9ee, #fff);
    padding: 16px 20px;
    border-radius: var(--amp-radius);
    box-shadow: 0 3px 16px rgba(183, 121, 31, .12);
    border: 1px solid #f0e0b0;
}

.amp-filter-label {
    font-weight: 700;
    font-size: .95em;
    color: #7a5500;
    white-space: nowrap;
}

.amp-filter-controls {
    flex: 1;
    min-width: 180px;
}

.amp-filter-select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e8c97a;
    border-radius: 9px;
    font-size: .92em;
    background: #fff;
    color: #3d2600;
    cursor: pointer;
    transition: border-color .2s;
    font-family: var(--amp-font);
}

.amp-filter-select:focus {
    border-color: #b7791f;
    outline: none;
}

.amp-filter-active-info {
    font-size: .88em;
    color: #7a5500;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.amp-filter-active-info strong {
    color: #b7791f;
}

.amp-filter-clear {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #ffecd0;
    color: #b7791f;
    border: 1px solid #e8c97a;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: .82em;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}

.amp-filter-clear:hover {
    background: #b7791f;
    color: #fff;
    border-color: #b7791f;
}

/* ======================================================
   RESPONSIVE — Category Grid
   ====================================================== */

@media (max-width: 1100px) {
    .amp-cat-cols-6 { grid-template-columns: repeat(4, 1fr); }
    .amp-cat-cols-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
    .amp-cat-cols-4,
    .amp-cat-cols-5,
    .amp-cat-cols-6 { grid-template-columns: repeat(3, 1fr); }
    .amp-cat-tile-inner { height: 155px; }
}

@media (max-width: 600px) {
    .amp-cat-cols-2,
    .amp-cat-cols-3,
    .amp-cat-cols-4,
    .amp-cat-cols-5,
    .amp-cat-cols-6 { grid-template-columns: repeat(2, 1fr); }
    .amp-cat-tile-inner { height: 135px; }
    .amp-cat-grid-title { font-size: 1.4em; }
}

@media (max-width: 360px) {
    .amp-cat-cols-2,
    .amp-cat-cols-3,
    .amp-cat-cols-4,
    .amp-cat-cols-5,
    .amp-cat-cols-6 { grid-template-columns: 1fr; }
}


/* ======================================================
   TAXONOMY ARCHIVE HERO  (antique-category, etc.)
   ====================================================== */

.amp-tax-hero {
    background: linear-gradient(135deg, #3d1f00 0%, #7a4500 40%, #b7791f 100%);
    color: #fff;
    padding: 52px 20px 44px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle pattern overlay */
.amp-tax-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255,200,80,.08) 0%, transparent 60%),
                      radial-gradient(circle at 80% 30%, rgba(255,255,255,.05) 0%, transparent 50%);
    pointer-events: none;
}

.amp-tax-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.amp-tax-hero-icon {
    display: block;
    font-size: 3.2em;
    margin-bottom: 10px;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,.4));
}

.amp-tax-hero-title {
    font-size: 2.4em;
    font-weight: 900;
    margin: 0 0 10px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
    letter-spacing: .02em;
}

.amp-tax-hero-desc {
    color: rgba(255,255,255,.82);
    font-size: 1em;
    line-height: 1.6;
    margin: 0 0 18px;
}

.amp-tax-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: .9em;
}

.amp-tax-hero-count {
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 20px;
    padding: 5px 16px;
    font-weight: 600;
    color: #fff;
}

.amp-tax-hero-sep {
    color: rgba(255,255,255,.4);
    font-size: 1.2em;
}

.amp-tax-hero-all {
    color: rgba(255,255,255,.8);
    text-decoration: none;
    font-weight: 600;
    transition: color .2s;
}

.amp-tax-hero-all:hover {
    color: #fff;
    text-decoration: underline;
}

/* Listings container */
.amp-tax-listings-wrap {
    padding: 36px 20px 60px;
    background: #faf7f2;
    min-height: 60vh;
}

.amp-tax-listings-container {
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .amp-tax-hero-title { font-size: 1.7em; }
    .amp-tax-hero-icon  { font-size: 2.4em; }
    .amp-tax-listings-wrap { padding: 24px 12px 40px; }
}

/* User Type Badge for Registration */
.amp-user-type-badge {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fdfaf3;
    border: 1.5px solid #d4af37;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.08);
}
.amp-type-badge-icon {
    font-size: 2em;
    line-height: 1;
}
.amp-type-badge-info strong {
    display: block;
    font-size: 1.05em;
    color: #8a6208;
    margin-bottom: 3px;
}
.amp-type-badge-info small {
    display: block;
    color: #6b7280;
    font-size: 0.84em;
    line-height: 1.4;
}
