/* Public Attention Mining Ad Marketplace */
.ampa-mp {
    --ampa-mp-bg: #05080d;
    --ampa-mp-panel: rgba(11, 17, 27, 0.88);
    --ampa-mp-panel-strong: rgba(17, 25, 39, 0.96);
    --ampa-mp-line: rgba(148, 163, 184, 0.22);
    --ampa-mp-line-hot: rgba(255, 211, 74, 0.46);
    --ampa-mp-text: #f7fbff;
    --ampa-mp-muted: #9fb0c6;
    --ampa-mp-dim: #6f8197;
    --ampa-mp-gold: #ffd34a;
    --ampa-mp-green: #32f3a0;
    --ampa-mp-cyan: #39c7ff;
    --ampa-mp-red: #fb7185;
    max-width: 1220px;
    margin: 0 auto;
    padding: 10px 0 72px;
    color: var(--ampa-mp-text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ampa-mp * {
    box-sizing: border-box;
}

.ampa-mp a {
    color: inherit;
}

.ampa-mp-kicker {
    display: block;
    color: var(--ampa-mp-gold);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.ampa-mp-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 420px);
    gap: 24px;
    align-items: stretch;
    overflow: hidden;
    margin-bottom: 18px;
    padding: 28px;
    border: 1px solid var(--ampa-mp-line-hot);
    border-radius: 8px;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 195, 31, 0.22), transparent 36%),
        radial-gradient(circle at 8% 80%, rgba(50, 243, 160, 0.14), transparent 34%),
        linear-gradient(135deg, rgba(12, 18, 29, 0.98), rgba(5, 8, 13, 0.92));
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.34);
}

.ampa-mp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.18) 1px, transparent 1px);
    background-size: 48px 48px;
}

.ampa-mp-hero-copy,
.ampa-mp-hero-console {
    position: relative;
    z-index: 1;
}

.ampa-mp-hero h1 {
    max-width: 760px;
    margin: 10px 0 14px;
    color: #fff;
    font-size: clamp(2.1rem, 5vw, 4.7rem);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 0.96;
}

.ampa-mp-hero p {
    max-width: 720px;
    margin: 0;
    color: #d9e7f7;
    font-size: 1.02rem;
    font-weight: 650;
    line-height: 1.55;
}

.ampa-mp-hero-console {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-self: end;
    border: 1px solid var(--ampa-mp-line);
    border-radius: 8px;
    background: rgba(5, 8, 13, 0.62);
    backdrop-filter: blur(14px);
}

.ampa-mp-hero-console div {
    min-width: 0;
    padding: 18px 16px;
    border-right: 1px solid rgba(148, 163, 184, 0.16);
}

.ampa-mp-hero-console div:last-child {
    border-right: 0;
}

.ampa-mp-hero-console span,
.ampa-mp-rules span,
.ampa-mp-rules em,
.ampa-mp-price-row span,
.ampa-mp-price-row em {
    display: block;
    color: var(--ampa-mp-muted);
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 760;
    line-height: 1.35;
}

.ampa-mp-hero-console strong {
    display: block;
    margin-top: 5px;
    color: var(--ampa-mp-green);
    font-size: 1.58rem;
    font-weight: 950;
    line-height: 1;
}

.ampa-mp-rules {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.ampa-mp-rules > div,
.ampa-mp-section,
.ampa-mp-notice {
    border: 1px solid var(--ampa-mp-line);
    border-radius: 8px;
    background: var(--ampa-mp-panel);
}

.ampa-mp-rules > div {
    min-width: 0;
    padding: 15px 16px;
}

.ampa-mp-rules strong {
    display: block;
    margin: 5px 0 3px;
    color: #fff;
    font-size: 1.22rem;
    font-weight: 940;
}

.ampa-mp-rules em {
    font-weight: 650;
}

.ampa-mp-notice {
    margin-bottom: 18px;
    padding: 14px 16px;
    font-size: 0.94rem;
    line-height: 1.45;
}

.ampa-mp-notice-success {
    border-color: rgba(50, 243, 160, 0.44);
    background: rgba(9, 78, 51, 0.26);
    color: #caffea;
}

.ampa-mp-notice-error {
    border-color: rgba(251, 113, 133, 0.5);
    background: rgba(91, 16, 35, 0.28);
    color: #ffe4ea;
}

.ampa-mp-exchange {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
    gap: 18px;
    align-items: start;
}

.ampa-mp-section {
    padding: 20px;
}

.ampa-mp-section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
    margin-bottom: 16px;
}

.ampa-mp-section-head-stacked {
    display: block;
}

.ampa-mp-section h2 {
    margin: 4px 0 0;
    color: #fff;
    font-size: 1.28rem;
    font-weight: 940;
    line-height: 1.15;
}

.ampa-mp-section-head p {
    margin: 8px 0 0;
    color: var(--ampa-mp-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.ampa-mp-count {
    flex: 0 0 auto;
    padding: 6px 10px;
    border: 1px solid rgba(57, 199, 255, 0.24);
    border-radius: 999px;
    color: #dff8ff;
    background: rgba(57, 199, 255, 0.08);
    font-size: 0.78rem;
    font-weight: 850;
}

.ampa-mp-empty {
    display: grid;
    gap: 8px;
    padding: 36px 20px;
    border: 1px dashed rgba(148, 163, 184, 0.34);
    border-radius: 8px;
    color: var(--ampa-mp-muted);
    text-align: center;
    background: rgba(255, 255, 255, 0.035);
}

.ampa-mp-empty strong {
    color: #fff;
}

.ampa-mp-slot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ampa-mp-slot-card {
    position: relative;
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--ampa-mp-line);
    border-radius: 8px;
    cursor: pointer;
    background:
        radial-gradient(circle at 80% 14%, rgba(57, 199, 255, 0.1), transparent 30%),
        linear-gradient(180deg, rgba(18, 26, 40, 0.98), rgba(9, 14, 23, 0.98));
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.ampa-mp-slot-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 211, 74, 0.58);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.ampa-mp-slot-card:has(.ampa-mp-slot-pick:checked) {
    border-color: rgba(50, 243, 160, 0.72);
    box-shadow: 0 0 0 1px rgba(50, 243, 160, 0.22), 0 18px 44px rgba(0, 0, 0, 0.34);
}

.ampa-mp-slot-pick {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 18px;
    height: 18px;
    accent-color: var(--ampa-mp-green);
    cursor: pointer;
    z-index: 2;
}

.ampa-mp-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-right: 28px;
    color: var(--ampa-mp-dim);
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.ampa-mp-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ampa-mp-green);
}

.ampa-mp-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 12px currentColor;
}

.ampa-mp-status-paused,
.ampa-mp-status-suspended,
.ampa-mp-status-inactive {
    color: var(--ampa-mp-red);
}

.ampa-mp-slot-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 108px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 6px;
    color: rgba(247, 251, 255, 0.72);
    background:
        linear-gradient(135deg, rgba(255, 211, 74, 0.14), rgba(57, 199, 255, 0.08)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 12px);
    font-size: 0.8rem;
    font-weight: 900;
}

.ampa-mp-slot-name {
    overflow: hidden;
    margin-bottom: 3px;
    color: #fff;
    font-size: 1.02rem;
    font-weight: 940;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ampa-mp-slot-site {
    overflow: hidden;
    color: var(--ampa-mp-cyan);
    font-size: 0.84rem;
    font-weight: 760;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ampa-mp-slot-meta p {
    min-height: 54px;
    margin: 9px 0 11px;
    color: #bccbe0;
    font-size: 0.84rem;
    font-weight: 620;
    line-height: 1.45;
}

.ampa-mp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.ampa-mp-tags span {
    max-width: 100%;
    overflow: hidden;
    padding: 4px 7px;
    border: 1px solid rgba(255, 211, 74, 0.22);
    border-radius: 999px;
    color: #ffeaa2;
    background: rgba(255, 211, 74, 0.07);
    font-size: 0.7rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ampa-mp-slot-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 12px;
}

.ampa-mp-slot-stats span {
    min-width: 0;
    padding: 7px 6px;
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 6px;
    color: var(--ampa-mp-muted);
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.68rem;
    font-weight: 720;
    line-height: 1.25;
    text-align: center;
}

.ampa-mp-slot-stats strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 940;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ampa-mp-price-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ampa-mp-price-row > div {
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 6px;
    background: rgba(5, 8, 13, 0.52);
}

.ampa-mp-price-row strong {
    display: block;
    overflow: hidden;
    margin: 4px 0 2px;
    color: var(--ampa-mp-green);
    font-size: 0.94rem;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ampa-mp-buyer-panel {
    position: sticky;
    top: 24px;
}

.ampa-mp-form-card {
    border-color: rgba(255, 211, 74, 0.28);
    background:
        radial-gradient(circle at 100% 0, rgba(255, 211, 74, 0.12), transparent 35%),
        var(--ampa-mp-panel-strong);
}

.ampa-mp-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ampa-mp-fullwidth {
    grid-column: 1 / -1;
}

.ampa-mp-form label {
    display: block;
    margin-bottom: 6px;
    color: #d9e7f7;
    font-size: 0.8rem;
    font-weight: 820;
}

.ampa-mp-form input,
.ampa-mp-form select,
.ampa-mp-form textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 11px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 6px;
    color: #fff;
    background: rgba(5, 8, 13, 0.76);
    font: inherit;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.ampa-mp-form input::placeholder {
    color: rgba(159, 176, 198, 0.7);
}

.ampa-mp-form input:focus,
.ampa-mp-form select:focus,
.ampa-mp-form textarea:focus {
    border-color: rgba(57, 199, 255, 0.78);
    box-shadow: 0 0 0 3px rgba(57, 199, 255, 0.14);
    background: rgba(8, 13, 22, 0.96);
}

.ampa-mp-form input[readonly] {
    color: var(--ampa-mp-gold);
    border-color: rgba(255, 211, 74, 0.28);
}

.ampa-mp-form small {
    display: block;
    margin-top: 5px;
    color: var(--ampa-mp-muted);
    font-size: 0.75rem;
    line-height: 1.35;
}

.ampa-mp-form code {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    padding: 2px 6px;
    border: 1px solid rgba(255, 211, 74, 0.22);
    border-radius: 4px;
    color: #ffeaa2;
    background: rgba(255, 211, 74, 0.08);
    text-overflow: ellipsis;
    vertical-align: bottom;
}

.ampa-mp-summary {
    display: grid;
    gap: 4px;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid rgba(57, 199, 255, 0.24);
    border-radius: 6px;
    background: rgba(57, 199, 255, 0.07);
}

.ampa-mp-summary-label {
    color: var(--ampa-mp-muted);
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.ampa-mp-summary strong {
    color: #fff;
}

.ampa-mp-checkout-status {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid rgba(57, 199, 255, 0.24);
    border-radius: 6px;
    color: #cfe0f3;
    background: rgba(57, 199, 255, 0.08);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.45;
}

.ampa-mp-checkout-status.is-working {
    border-color: rgba(255, 211, 74, 0.48);
    color: #fff1b8;
    background: rgba(255, 211, 74, 0.1);
}

.ampa-mp-checkout-status.is-success {
    border-color: rgba(50, 243, 160, 0.48);
    color: #caffea;
    background: rgba(50, 243, 160, 0.1);
}

.ampa-mp-checkout-status.is-error {
    border-color: rgba(251, 113, 133, 0.5);
    color: #ffe1e8;
    background: rgba(251, 113, 133, 0.12);
}

.ampa-mp-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 14px;
    border: 1px solid rgba(255, 211, 74, 0.6);
    border-radius: 7px;
    color: #080b10;
    background: linear-gradient(180deg, #ffe481, #ffc21c);
    box-shadow: 0 12px 30px rgba(255, 194, 28, 0.18);
    cursor: pointer;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 950;
    transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.ampa-mp-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.ampa-mp-submit:disabled {
    cursor: not-allowed;
    filter: grayscale(0.8);
    opacity: 0.55;
}

.ampa-mp-hint {
    margin: 12px 0 0;
    color: var(--ampa-mp-muted);
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: center;
}

@media (max-width: 1120px) {
    .ampa-mp-exchange {
        grid-template-columns: 1fr;
    }

    .ampa-mp-buyer-panel {
        position: static;
    }
}

@media (max-width: 860px) {
    .ampa-mp {
        padding-bottom: 48px;
    }

    .ampa-mp-hero,
    .ampa-mp-rules {
        grid-template-columns: 1fr;
    }

    .ampa-mp-hero {
        padding: 22px;
    }

    .ampa-mp-hero-console {
        grid-template-columns: 1fr;
    }

    .ampa-mp-hero-console div {
        border-right: 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    }

    .ampa-mp-hero-console div:last-child {
        border-bottom: 0;
    }

    .ampa-mp-slot-grid,
    .ampa-mp-form-grid,
    .ampa-mp-rules {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .ampa-mp-section,
    .ampa-mp-hero {
        padding: 16px;
    }

    .ampa-mp-section-head {
        display: grid;
    }

    .ampa-mp-slot-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ampa-mp-price-row {
        grid-template-columns: 1fr;
    }
}
