* {
    box-sizing: border-box;
}

:root {
    --bg: #f6f7f9;
    --white: #ffffff;
    --text: #111318;
    --muted: #858b96;
    --muted-2: #a2a7b0;
    --border: #e6e8ed;

    --purple: #635bff;
    --purple-dark: #5148e8;

    --red-bg: #fff0f1;
    --orange-bg: #fff5e8;
    --blue-bg: #eef7ff;

    --green: #20ad68;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Inter",
        "Segoe UI",
        Arial,
        sans-serif;
}

button,
input {
    font-family: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================
   NAVIGATION
========================= */

.navbar {
    height: 68px;
    background: rgba(255,255,255,.95);
    border-bottom: 1px solid var(--border);

    position: sticky;
    top: 0;
    z-index: 100;

    backdrop-filter: blur(16px);
}

.nav-inner {
    width: min(1040px, calc(100% - 32px));
    height: 100%;
    margin: auto;

    display: flex;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.7px;
}

.nav-links {
    display: flex;
    gap: 28px;
    margin-left: 38px;
}

.nav-links a {
    color: #777d87;
    font-size: 13px;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: #111318;
}

.nav-right {
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 13px;
}

.nav-online {
    display: flex;
    align-items: center;
    gap: 6px;

    color: #747b86;
    font-size: 10px;
}

.online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22b36d;
    box-shadow: 0 0 0 3px #e8f8ef;
}

.language-button {
    height: 32px;
    padding: 0 11px;

    border: 1px solid var(--border);
    border-radius: 7px;

    background: white;
    color: #555c67;

    font-size: 10px;
}

.language-button:hover {
    background: #f7f8fa;
}


/* =========================
   PAGE
========================= */

.container {
    width: min(1040px, calc(100% - 32px));
    margin: auto;
    padding: 30px 0 70px;
}


/* =========================
   BOOST CARD
========================= */

.boost-card {
    background: white;

    border: 1px solid var(--border);
    border-radius: 18px;

    padding: 27px;

    box-shadow:
        0 10px 30px rgba(25,32,45,.045);
}

.boost-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.boost-title h1 {
    margin: 0 0 7px;

    font-size: 27px;
    line-height: 1.15;

    letter-spacing: -1px;
}

.boost-title p {
    margin: 0;

    color: var(--muted);
    font-size: 13px;
}

.stats {
    display: flex;
    align-items: flex-start;
    gap: 42px;
}

.stat-item {
    min-width: 70px;
    text-align: right;
}

.stat-item strong {
    display: block;

    font-size: 21px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.6px;
}

.stat-item span {
    display: block;

    margin-top: 6px;

    color: #9298a2;
    font-size: 10px;
}


/* =========================
   FORM
========================= */

.form-row {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        190px
        150px;

    gap: 12px;

    margin-top: 27px;

    align-items: end;
}

.input-group label {
    display: block;

    margin-bottom: 7px;

    color: #727985;

    font-size: 11px;
    font-weight: 650;
}

.input-group input {
    width: 100%;
    height: 44px;

    padding: 0 13px;

    border: 1px solid #dfe2e7;
    border-radius: 9px;

    outline: none;

    background: white;

    color: #16191e;

    font-size: 13px;

    transition: .15s;
}

.input-group input::placeholder {
    color: #b2b6be;
}

.input-group input:focus {
    border-color: #9b96ff;

    box-shadow:
        0 0 0 3px #efedff;
}

.amount-wrapper {
    height: 44px;

    display: flex;
    align-items: center;

    padding-left: 12px;

    border: 1px solid #dfe2e7;
    border-radius: 9px;

    background: white;
}

.amount-wrapper > span {
    color: #898f99;
    font-size: 13px;
}

.amount-wrapper input {
    height: 42px;

    padding-left: 5px;

    border: 0;
    box-shadow: none;
}

.amount-wrapper input:focus {
    border: 0;
    box-shadow: none;
}

.boost-button {
    height: 44px;

    border: 0;
    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            var(--purple),
            var(--purple-dark)
        );

    color: white;

    font-size: 11px;
    font-weight: 700;

    box-shadow:
        0 8px 20px rgba(99,91,255,.20);

    transition: .15s;
}

.boost-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 11px 25px rgba(99,91,255,.27);
}


/* =========================
   BOTTOM FORM
========================= */

.boost-bottom {
    margin-top: 12px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    min-height: 26px;
}

.tag {
    padding: 5px 11px;

    border: 1px solid #e1e4e9;
    border-radius: 999px;

    background: white;

    color: #707782;

    font-size: 10px;
    transition: all .15s ease;
    user-select: none;
}

.tag:hover {
    border-color: #c4c0ff;
    color: var(--purple);
}

.tag.active {
    border-color: #d9d5ff;
    background: #f1efff;
    color: #574fff;
    font-weight: 600;
}

.estimated-rank {
    white-space: nowrap;

    color: #8d939d;

    font-size: 10px;
}

.estimated-rank strong {
    margin: 0 3px;

    color: #111318;

    font-size: 15px;
}


/* =========================
   TOP 5
========================= */

.top-section {
    margin-top: 18px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 16px;
}

.top-card {
    padding: 18px 20px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: white;

    box-shadow:
        0 7px 25px rgba(30,40,60,.025);
}

.clicks-card {
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f8fbff
        );
}

.funded-card {
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #fffaf5
        );
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 7px;
}

.top-header h2 {
    margin: 0;

    font-size: 14px;
    letter-spacing: -.2px;
}

.live {
    padding: 4px 7px;

    border-radius: 999px;

    background: #e9f8ef;
    color: #4a9b6e;

    font-size: 7px;
    font-weight: 800;
    letter-spacing: .5px;
}

.top-item {
    min-height: 45px;

    display: grid;

    grid-template-columns:
        26px
        30px
        1fr
        auto;

    align-items: center;

    gap: 7px;

    border-bottom: 1px solid #eff1f4;
}

.top-item:last-child {
    border-bottom: 0;
}

.top-rank {
    text-align: center;

    font-size: 13px;
}

.top-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-logo-box {
    width: 28px;
    height: 28px;

    padding: 4px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #e1e4e9;
    border-radius: 7px;

    background: #fff;

    overflow: hidden;
}

.top-logo-box img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
}

.top-domain {
    min-width: 0;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #24282f;

    font-size: 11px;
    font-weight: 650;
}

.top-value {
    color: #2d323a;

    font-size: 10px;
    font-weight: 700;
}

.top-time {
    color: #9ba0a8;
    font-size: 8px;
}


/* =========================
   LEADERBOARD
========================= */

.leaderboard {
    margin-top: 20px;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 17px;

    background: white;

    box-shadow:
        0 8px 28px rgba(30,40,60,.035);
}

.leaderboard-header {
    padding: 20px 22px 15px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    flex-wrap: wrap;
    gap: 15px;
}

.leaderboard-title h2 {
    margin: 0 0 4px;

    font-size: 17px;
}

.leaderboard-title p {
    margin: 0;

    color: #9a9fa8;

    font-size: 9px;
}

.leaderboard-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.keyword-search-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.combo-select-wrapper {
    position: relative;
    width: 170px;
}

.combo-input {
    width: 100%;
    height: 32px;
    padding: 0 28px 0 10px;
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 11px;
    outline: none;
    background: #fff;
}

.combo-input:focus {
    border-color: #9b96ff;
}

.combo-clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #a2a7b0;
    font-size: 15px;
    line-height: 1;
    font-weight: bold;
    user-select: none;
    transition: color .15s ease;
}

.combo-clear-btn:hover {
    color: #555;
}

.combo-dropdown {
    position: absolute;
    top: 36px;
    left: 0;
    right: 0;
    max-height: 160px;
    overflow-y: auto;
    background: white;
    border: 1px solid var(--border);
    border-radius: 7px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 200;
    display: none;
}

.combo-dropdown.show {
    display: block;
}

.combo-option {
    padding: 6px 10px;
    font-size: 11px;
    color: #444;
    cursor: pointer;
}

.combo-option:hover {
    background: #f1efff;
    color: #574fff;
}

.rank-switch {
    display: flex;

    padding: 3px;

    border-radius: 8px;

    background: #f1f2f5;
}

.switch-button {
    padding: 7px 12px;

    border: 0;
    border-radius: 6px;

    background: transparent;

    color: #777e89;

    font-size: 9px;
}

.switch-button.active {
    background: white;

    color: #22262d;

    font-weight: 700;

    box-shadow:
        0 1px 4px rgba(0,0,0,.08);
}


/* =========================
   RANK ITEM
========================= */

.ranking-item {
    margin: 0 12px 7px;
    padding: 14px;

    display: grid;

    grid-template-columns:
        34px
        44px
        minmax(0, 1fr)
        120px;

    gap: 11px;

    align-items: start;

    border: 1px solid transparent;
    border-radius: 11px;

    background: white;

    transition: .15s;
}

.ranking-item:hover {
    border-color: var(--purple);
    box-shadow:
        0 4px 14px rgba(30,40,60,.05);
}

.rank-one {
    background: var(--red-bg);
}

.rank-two {
    background: var(--orange-bg);
}

.rank-three {
    background: var(--blue-bg);
}

.rank-number {
    padding-top: 4px;

    text-align: center;

    font-size: 13px;
    font-weight: 750;
}

.project-logo-link {
    display: block;
}

.project-logo-box {
    width: 38px;
    height: 38px;

    padding: 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #dfe2e7;
    border-radius: 9px;

    background: rgba(255,255,255,.92);

    overflow: hidden;

    transition: .15s;
}

.project-logo-box:hover {
    border-color: #b9bdf0;

    transform: translateY(-1px);

    box-shadow:
        0 4px 10px rgba(30,40,60,.08);
}

.project-logo-box img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
}

.project-title {
    display: flex;

    align-items: center;

    gap: 7px;

    flex-wrap: wrap;
}

.project-title strong {
    font-size: 13px;
}

.project-title strong a:hover {
    color: var(--purple);
}

.project-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.project-tags span {
    padding: 3px 6px;

    border: 1px solid rgba(0,0,0,.045);
    border-radius: 5px;

    background: rgba(255,255,255,.70);

    color: #707782;

    font-size: 8px;
}

.project-description {
    margin: 6px 0 4px;

    color: #8a909a;

    font-size: 9px;

    line-height: 1.5;
}

.project-meta {
    color: #a0a5ad;

    font-size: 7px;
}

.click-num,
.project-meta .click-num {
    font-weight: 800 !important;
    color: #111318 !important;
}

.project-money {
    text-align: right;
}

.project-money strong {
    display: block;
    font-weight: 700;
    font-size: 14px;
}

.project-money span {
    display: block;

    margin-top: 4px;

    color: #9ca1aa;

    font-size: 7px;
}


/* =========================
   PAGINATION
========================= */

.pagination {
    padding: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    border-top: 1px solid var(--border);
}

.pagination button {
    min-width: 30px;
    height: 30px;

    padding: 0 8px;

    border: 1px solid var(--border);
    border-radius: 7px;

    background: white;

    color: #666d77;

    font-size: 9px;
}

.pagination button:hover {
    background: #f7f8fa;
}

.pagination button.active {
    background: #111318;
    border-color: #111318;

    color: white;
}


/* =========================
   ABOUT
========================= */

.about {
    padding: 45px 0;
}

.about h2 {
    margin-bottom: 8px;

    font-size: 18px;
}

.about p {
    color: var(--muted);

    font-size: 12px;
}


/* =========================
   PAYMENT MODAL
========================= */

.modal-overlay {
    position: fixed;

    inset: 0;

    z-index: 500;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(14,18,26,.44);

    backdrop-filter: blur(5px);
}

.modal-overlay.hidden {
    display: none;
}

.payment-modal {
    position: relative;

    width: min(430px, 100%);

    padding: 27px;

    border-radius: 18px;

    background: white;

    box-shadow:
        0 30px 90px rgba(0,0,0,.22);

    animation:
        modalShow .18s ease;
}

@keyframes modalShow {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;

    top: 10px;
    right: 13px;

    width: 30px;
    height: 30px;

    border: 0;

    background: transparent;

    color: #969ca6;

    font-size: 25px;
}

.payment-project {
    margin-top: 15px;
    padding: 14px;

    display: flex;
    align-items: center;

    gap: 11px;

    border: 1px solid var(--border);
    border-radius: 11px;
}

.payment-logo-box {
    width: 38px;
    height: 38px;

    padding: 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #dfe2e7;
    border-radius: 9px;

    background: #fff;

    overflow: hidden;

    flex-shrink: 0;
}

.payment-logo-box img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
}

.payment-project strong {
    display: block;

    font-size: 13px;
}

.payment-project span {
    display: block;

    margin-top: 3px;

    color: #9298a3;

    font-size: 9px;
}

.payment-form-group {
    margin-top: 15px;
}

.payment-form-group label {
    display: block;
    margin-bottom: 6px;
    color: #727985;
    font-size: 11px;
    font-weight: 650;
}

.payment-form-group input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #dfe2e7;
    border-radius: 8px;
    outline: none;
    font-size: 12px;
}

.payment-form-group input:focus {
    border-color: #9b96ff;
    box-shadow: 0 0 0 3px #efedff;
}

.payment-amount {
    padding: 14px 0;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 1px solid var(--border);
}

.payment-amount span {
    color: #777e89;

    font-size: 11px;
}

.payment-amount strong {
    font-size: 22px;
}

.paypal-box {
    margin: 15px 0;
    padding: 14px;

    border: 1px solid #e4e7ec;
    border-radius: 10px;
}

.paypal-brand {
    color: #003087;

    font-size: 19px;
    font-weight: 900;
    font-style: italic;
}

.paypal-box p {
    margin: 6px 0 0;

    color: #8b919c;

    font-size: 9px;

    line-height: 1.5;
}

.payment-button {
    width: 100%;
    height: 46px;

    border: 0;
    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            var(--purple),
            var(--purple-dark)
        );

    color: white;

    font-size: 11px;
    font-weight: 700;

    box-shadow:
        0 8px 20px rgba(99,91,255,.22);
}

.payment-security-row {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 8px;
}

.payment-security {
    color: #a0a5ae;
}

.skip-submit-btn {
    color: var(--purple);
    cursor: pointer;
    text-decoration: underline;
    font-weight: 600;
}

.skip-submit-btn:hover {
    color: var(--purple-dark);
}


/* =========================
   TOAST
========================= */

.toast {
    position: fixed;

    left: 50%;
    bottom: 25px;

    transform:
        translate(-50%, 20px);

    padding: 12px 17px;

    border-radius: 9px;

    background: #111318;

    color: white;

    font-size: 11px;

    opacity: 0;

    pointer-events: none;

    transition: .2s;

    z-index: 1000;
}

.toast.show {
    opacity: 1;

    transform:
        translate(-50%, 0);
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 760px) {

    .nav-links {
        display: none;
    }

    .boost-header {
        display: block;
    }

    .stats {
        margin-top: 22px;

        justify-content: space-between;

        gap: 15px;
    }

    .stat-item {
        text-align: left;
    }

    .form-row {
        grid-template-columns:
            1fr
            1fr;
    }

    .boost-button {
        grid-column: 1 / -1;
    }

    .top-section {
        grid-template-columns: 1fr;
    }

    .ranking-item {
        grid-template-columns:
            28px
            40px
            minmax(0,1fr)
            85px;
    }
}


@media (max-width: 500px) {

    .container {
        width: calc(100% - 20px);

        padding-top: 15px;
    }

    .boost-card {
        padding: 19px;
    }

    .boost-title h1 {
        font-size: 23px;
    }

    .stats {
        gap: 12px;
    }

    .stat-item strong {
        font-size: 16px;
        font-weight: 700;
    }

    .stat-item span {
        font-size: 8px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .boost-button {
        grid-column: auto;
    }

    .boost-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .leaderboard-header {
        align-items: flex-start;

        gap: 12px;
    }

    .ranking-item {
        grid-template-columns:
            24px
            36px
            minmax(0,1fr);
    }

    .project-money {
        grid-column: 3;

        text-align: left;

        margin-top: -4px;
    }

    .pagination {
        overflow-x: auto;
        justify-content: flex-start;
    }

    /* 弹窗遮罩 */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* 弹窗主体 */
.modal-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
}

.modal-title {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.modal-subtitle {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #6b7280;
}

.input-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.amount-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.currency-symbol {
    position: absolute;
    left: 12px;
    font-weight: 600;
    color: #6b7280;
}

.amount-input-wrapper input {
    width: 100%;
    padding: 10px 12px 10px 28px;
    font-size: 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    outline: none;
}

.amount-input-wrapper input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.paypal-container {
    min-height: 150px;
}
}