/* Classic skin, "market" pages: /accounts, /ids, /sell-item, /ads, /channel-ads, /showcase and the member
   listing / ad booking pages. Styles the WordPress templates kept inline (page-ads.php, page-channel-ads.php)
   or never had (package cards of page-channel-ads.php, Laravel pagination, field errors). */

/* page-ads.php / page-channel-ads.php <style> */
.md411-disclaimer-box {
    background: rgba(212,175,55,.1);
    border: 1px solid var(--md411-gold);
    border-right: 4px solid var(--md411-gold);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 32px;
}
.md411-disclaimer-box h3 { color: var(--md411-gold); margin-bottom: 10px; }
.md411-disclaimer-box p { line-height: 1.8; margin: 0; }
.md411-ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.md411-ad-card {
    background: var(--md411-card-bg, rgba(255,255,255,.05));
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.md411-ad-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.md411-ad-header h4 { margin: 0; font-size: 1rem; }
.md411-ad-price { color: var(--md411-gold); font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.md411-ad-desc { color: var(--md411-muted); font-size: .9rem; margin: 0; line-height: 1.6; white-space: pre-line; }
.md411-ad-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.md411-ad-img { display: block; margin: -20px -20px 0; border-radius: 10px 10px 0 0; overflow: hidden; aspect-ratio: 16 / 9; background: var(--md411-bg-secondary); }
.md411-ad-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.md411-form-section .md411-form { max-width: none; }

/* page-channel-ads.php packages */
.md411-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    align-items: stretch;
}
.md411-packages-grid .md411-package-card { display: flex; flex-direction: column; padding-top: 36px; }
.md411-package-featured { border-color: var(--md411-gold); box-shadow: 0 8px 30px rgba(212,175,55,.15); }
.md411-package-featured::before { opacity: 1 !important; }
.md411-package-header h3 { font-size: 1.25rem; margin-bottom: 8px; }
.md411-package-price { color: var(--md411-gold); font-size: 1.6rem; font-weight: 800; margin-bottom: 16px; }
.md411-package-features { list-style: none; padding: 0; margin: 0 0 16px; text-align: start; }
.md411-package-features li { color: var(--md411-text-secondary); font-size: .9rem; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.md411-package-features li:last-child { border-bottom: 0; }
.md411-packages-grid .md411-package-card .md411-btn { margin-top: auto; }

/* Account cards: keep photos inside the fixed image box */
.md411-account-card .md411-account-img-wrap img.wp-post-image { width: 100%; height: 100%; object-fit: cover; }
.md411-account-card .md411-account-status + .md411-account-status { margin-inline-start: 6px; }
.md411-account-card .md411-btn { display: inline-flex; }
.md411-id-card .md411-btn { display: inline-flex; }

/* Showcase: uploaded videos */
.md411-showcase-file-video { width: 100%; max-height: 480px; border-radius: var(--md411-radius-sm); background: #000; }

/* Forms */
.md411-field-error { display: block; margin-top: 6px; color: #ff6b6b; font-size: .82rem; }
.md411-seller-form .md411-file-upload,
.md411-form .md411-file-upload { display: block; }
.md411-listing-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.md411-listing-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--md411-radius-sm); border: 1px solid var(--md411-border-gold); }
.md411-btn-danger { background: rgba(231,76,60,.15); color: #e74c3c; border: 1px solid rgba(231,76,60,.4); }
.md411-btn-danger:hover { background: #e74c3c; color: #fff; }

/* Member listings / ad bookings (page-my-orders.php look) */
.md411-market-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; color: var(--md411-text-secondary); font-size: .85rem; }
.md411-listing-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 12px;
    background: var(--md411-bg-card);
    border: 1px solid var(--md411-border-gold);
    border-radius: var(--md411-radius);
    padding: 16px 20px;
}
.md411-listing-thumb { width: 96px; height: 72px; object-fit: cover; border-radius: var(--md411-radius-sm); flex-shrink: 0; }
@media (max-width: 600px) {
    .md411-listing-row { flex-wrap: wrap; }
    .md411-listing-thumb { width: 100%; height: 160px; }
}
.md411-booking-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.md411-booking-summary { text-align: start; }
@media (max-width: 900px) { .md411-booking-grid { grid-template-columns: minmax(0, 1fr); } }

/* Laravel pagination under the classic grids */
.md411-market-pages { margin-top: 32px; }
.md411-file-upload svg { margin: 0 auto; }
.md411-form-section > h2 { font-size: 1.5rem; font-weight: 800; }
