@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --bg-0: #040a07;
    --bg-1: #09120d;
    --surface: rgba(11, 24, 18, 0.72);
    --surface-strong: rgba(13, 30, 22, 0.86);
    --line: rgba(174, 206, 183, 0.2);
    --line-strong: rgba(242, 202, 110, 0.44);
    --text-main: #ecf5ee;
    --text-soft: #b8cabd;
    --gold: #f2ca6e;
    --mint: #90dab2;
    --blue: #a7bfff;
    --green: #22c55e;
    --orange: #f59e0b;
    --red: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    background: var(--bg-0);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(1200px circle at 8% -8%, rgba(144, 218, 178, 0.24), transparent 56%),
        radial-gradient(1000px circle at 88% -10%, rgba(242, 202, 110, 0.2), transparent 58%),
        linear-gradient(155deg, var(--bg-0) 0%, var(--bg-1) 48%, #070e0b 100%);
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 3px 3px;
    opacity: 0.11;
    z-index: 1;
    pointer-events: none;
}

.list-shell {
    position: relative;
    z-index: 20;
    max-width: 1200px;
    margin: clamp(1rem, 2.5vw, 2rem) auto;
    padding: clamp(1rem, 2.5vw, 1.8rem);
}

.panel {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface-strong);
    backdrop-filter: blur(12px);
    padding: clamp(1rem, 2.2vw, 1.5rem);
}

.page-header {
    text-align: center;
    margin-bottom: 1.1rem;
}

.page-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.3rem;
}

.page-header p {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.fp-notice {
    max-width: 680px;
    margin: 0 auto 1rem;
    border: 1px solid rgba(242, 202, 110, 0.24);
    border-left: 4px solid var(--gold);
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    background: rgba(242, 202, 110, 0.08);
}

.fp-notice p {
    color: var(--text-soft);
    font-size: 0.86rem;
    line-height: 1.5;
}

.fp-notice strong,
.fp-notice a {
    color: var(--gold);
}

.fp-notice a {
    text-decoration: none;
    font-weight: 700;
}

.btc-ticker-wrap {
    text-align: center;
    margin-bottom: 1rem;
}

.btc-ticker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(8, 18, 13, 0.55);
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.btc-ticker .pulse {
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.35;
        transform: scale(0.55);
    }
}

.btc-ticker .lbl {
    color: var(--text-soft);
}

.btc-ticker .price {
    color: var(--gold);
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.filter-bar label {
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.filter-bar select {
    appearance: none;
    background: rgba(8, 18, 13, 0.55);
    border: 1px solid var(--line);
    color: var(--text-main);
    padding: 0.48rem 0.78rem;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
}

.filter-bar select:focus {
    outline: none;
    border-color: var(--line-strong);
}

.filter-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid rgba(174, 206, 183, 0.25);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 0.74rem;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.filter-link:hover {
    border-color: var(--line-strong);
    color: var(--gold);
}

.site-count {
    margin-left: auto;
    color: var(--text-soft);
    font-size: 0.78rem;
}

.table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.01);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

thead th {
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-soft);
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.82rem 0.95rem;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid var(--line);
}

tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s ease;
}

tbody tr:last-child {
    border-bottom: none;
}

tbody tr:hover {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.05) 0%, rgba(255, 215, 0, 0.02) 100%);
}

tbody td {
    padding: 0.86rem 0.95rem;
    vertical-align: middle;
}

.site-cell {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.site-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(242, 202, 110, 0.16), rgba(242, 202, 110, 0.04));
    border: 1px solid rgba(242, 202, 110, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    flex-shrink: 0;
}

.site-name {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.93rem;
}

.site-tags {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    margin-top: 0.22rem;
}

.tag {
    font-size: 0.62rem;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tag.btc {
    background: rgba(245, 158, 11, 0.12);
    color: var(--orange);
}

.tag.usd {
    background: rgba(52, 211, 153, 0.12);
    color: var(--green);
}

.tag.verified,
.tag.windowed,
.tag.iframe,
.tag.youtube {
    background: rgba(167, 191, 255, 0.12);
    color: var(--blue);
}

.reward-usd,
.earn-usd {
    color: var(--green);
    font-weight: 700;
    font-size: 0.93rem;
}

.reward-btc,
.earn-sat {
    color: var(--orange);
    font-weight: 700;
    font-size: 0.93rem;
}

.reward-sub,
.earn-sub,
.cpm-sub {
    font-size: 0.72rem;
    color: var(--text-soft);
    margin-top: 0.18rem;
}

.min-wd,
.cpm-val {
    color: var(--text-soft);
    font-size: 0.86rem;
    font-weight: 600;
}

.captcha-name {
    font-size: 0.8rem;
    color: var(--text-soft);
    font-weight: 600;
}

.captcha-diff {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 4px;
}

.captcha-diff .diff-label {
    font-size: 0.66rem;
    color: var(--text-soft);
    margin-right: 4px;
    font-weight: 500;
}

.diff-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
}

.diff-dot.active-1 {
    background: #34d399;
}

.diff-dot.active-2 {
    background: #a3e635;
}

.diff-dot.active-3 {
    background: #facc15;
}

.diff-dot.active-4 {
    background: #f97316;
}

.diff-dot.active-5 {
    background: #ef4444;
}

.preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(242, 202, 110, 0.09);
    border: 1px solid rgba(242, 202, 110, 0.2);
    color: rgba(242, 202, 110, 0.8);
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.preview-btn:hover {
    color: var(--gold);
    border-color: rgba(242, 202, 110, 0.35);
    background: rgba(242, 202, 110, 0.14);
}

.visit-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, var(--gold) 0%, #f0ba50 100%);
    color: #101810;
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.76rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(242, 202, 110, 0.18);
}

.visit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(242, 202, 110, 0.28);
}

.visit-btn svg {
    width: 13px;
    height: 13px;
}

.advertise-panel {
    margin-top: 1rem;
    border: 1px solid rgba(242, 202, 110, 0.2);
    border-radius: 14px;
    background: rgba(242, 202, 110, 0.06);
    padding: 0.9rem;
}

.advertise-panel h3 {
    color: var(--gold);
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
}

.advertise-panel p {
    color: var(--text-soft);
    font-size: 0.82rem;
    line-height: 1.55;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10040;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-frame {
    background: rgba(15, 16, 28, 0.98);
    border: 1px solid rgba(242, 202, 110, 0.22);
    border-radius: 20px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 64px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.modal-overlay.open .modal-frame {
    transform: scale(1) translateY(0);
}

.modal-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    align-self: flex-start;
}

.modal-img-wrap {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.6rem;
    line-height: 0;
    overflow: auto;
    max-height: calc(100vh - 200px);
}

.modal-img-wrap img {
    display: block;
    max-width: calc(100vw - 100px);
    height: auto;
    border-radius: 6px;
}

.modal-close {
    padding: 0.45rem 1.2rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.modal-close:hover {
    border-color: var(--line-strong);
    color: var(--gold);
}

.ad-section {
    max-width: 860px;
    margin: 2rem auto 0;
    padding: 0 16px;
}

.ad-divider {
    border: none;
    border-top: 1px solid var(--line);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .list-shell {
        margin: 0.8rem 0.6rem;
        padding: 0;
    }

    .panel {
        border-radius: 18px;
        padding: 0.8rem;
    }

    td,
    th {
        padding: 0.62rem 0.62rem;
    }

    .site-count,
    .cpm-sub {
        display: none;
    }
}

@media (max-width: 500px) {
    .filter-bar select {
        font-size: 0.76rem;
    }
}
