/* ── Marketplace Dashboard ──────────────────────────────────────────────── */

#marketplace-app {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 40px 80px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ── Header ────────────────────────────────────────────────────────────── */

.mp-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mp-title {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #F5A623;
    text-shadow: 0 0 40px rgba(245, 166, 35, 0.2);
    margin: 0 0 8px;
}

.mp-subtitle {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.3);
}

/* ── Status Panel ──────────────────────────────────────────────────────── */

.mp-status-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}

.mp-status-panel--approved {
    border-color: rgba(76, 217, 100, 0.2);
    background: rgba(76, 217, 100, 0.03);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 16px;
}

.mp-status-panel--pending {
    border-color: rgba(245, 166, 35, 0.2);
}

.mp-status-panel--rejected {
    border-color: rgba(255, 107, 107, 0.2);
}

.mp-seller-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #4CD964;
}

.mp-seller-badge-icon {
    font-size: 20px;
}

.mp-seller-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    flex: 1;
}

.mp-status-icon {
    font-size: 40px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.3);
}

.mp-status-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 8px;
}

.mp-status-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 20px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */

.mp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.mp-btn--primary {
    background: #F5A623;
    color: #1a0a06;
}

.mp-btn--primary:hover:not(:disabled) {
    background: #ffba42;
    box-shadow: 0 4px 16px rgba(245, 166, 35, 0.25);
}

.mp-btn--primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.mp-btn--small {
    padding: 8px 16px;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mp-btn--small:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.mp-btn--danger {
    border-color: rgba(255, 107, 107, 0.2);
    color: #FF6B6B;
}

.mp-btn--danger:hover {
    background: rgba(255, 107, 107, 0.1);
}

.mp-btn--full {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 13px;
}

/* ── Toolbar ───────────────────────────────────────────────────────────── */

.mp-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mp-section-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ── Product Grid ──────────────────────────────────────────────────────── */

.mp-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

/* ── Product Card ──────────────────────────────────────────────────────── */

.mp-product-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color 0.2s;
}

.mp-product-card:hover {
    border-color: rgba(245, 166, 35, 0.2);
}

.mp-product-status {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
}

.mp-product-status--active { background: rgba(76, 217, 100, 0.85); color: #fff; }
.mp-product-status--pending { background: rgba(245, 166, 35, 0.85); color: #1a0a06; }
.mp-product-status--rejected { background: rgba(255, 107, 107, 0.85); color: #fff; }

.mp-product-vis {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}

.mp-product-vis--agent { background: rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.6); }
.mp-product-vis--public { background: rgba(90, 200, 250, 0.8); color: #fff; }
.mp-product-vis--both { background: rgba(76, 217, 100, 0.8); color: #fff; }

.mp-product-img {
    height: 160px;
    background: rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

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

.mp-product-info {
    padding: 14px 16px;
    flex: 1;
}

.mp-product-cat {
    font-size: 9px;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.mp-product-name {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 6px;
}

.mp-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #F5A623;
}

.mp-product-actions {
    display: flex;
    gap: 8px;
    padding: 0 16px 14px;
}

/* ── Empty State ───────────────────────────────────────────────────────── */

.mp-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.mp-empty-icon {
    font-size: 40px;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 12px;
}

.mp-empty-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 8px;
}

.mp-empty-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
}

/* ── Modal ─────────────────────────────────────────────────────────────── */

.mp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
}

.mp-modal {
    background: #1a0a06;
    border: 1px solid rgba(245, 166, 35, 0.15);
    border-radius: 20px;
    padding: 32px;
    max-width: 520px;
    width: 100%;
    position: relative;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.mp-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.mp-modal-close:hover { color: rgba(255, 255, 255, 0.8); }

.mp-modal-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #F5A623;
    margin: 0 0 24px;
    text-align: center;
}

/* ── Form ──────────────────────────────────────────────────────────────── */

.mp-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mp-field--row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.mp-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
}

.mp-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-family: inherit;
    padding: 10px 14px;
    outline: none;
    transition: border-color 0.2s;
}

.mp-input:focus {
    border-color: rgba(245, 166, 35, 0.4);
}

.mp-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.mp-textarea {
    resize: vertical;
    min-height: 60px;
}

.mp-checkbox {
    width: 20px;
    height: 20px;
    accent-color: #F5A623;
    cursor: pointer;
}

select.mp-input {
    cursor: pointer;
}

select.mp-input option {
    background: #1a0a06;
    color: #fff;
}

/* Image upload zone */
.mp-img-upload {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mp-img-upload:hover,
.mp-img-upload--hover {
    border-color: rgba(245, 166, 35, 0.3);
    background: rgba(245, 166, 35, 0.03);
}

.mp-img-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
}

.mp-img-preview {
    max-width: 120px;
    max-height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.mp-file-input {
    display: none;
}

/* Form message */
.mp-form-msg {
    font-size: 13px;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    min-height: 18px;
}

.mp-form-msg--success { color: #4CD964; background: rgba(76, 217, 100, 0.08); }
.mp-form-msg--error { color: #FF6B6B; background: rgba(255, 107, 107, 0.08); }

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
    #marketplace-app {
        padding: 24px 16px 60px;
        gap: 24px;
    }

    .mp-title { font-size: 24px; }
    .mp-status-panel { padding: 24px 16px; }
    .mp-status-panel--approved { flex-direction: column; text-align: center; }
    .mp-product-grid { grid-template-columns: 1fr; }
    .mp-toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
    .mp-modal { padding: 24px 16px; }
}
