:root {
    --bg: #070a12;
    --bg-soft: #0c1120;
    --surface: #111827;
    --surface-soft: #161e2e;
    --border: rgba(148, 163, 184, 0.16);
    --text: #f8fafc;
    --muted: #94a3b8;
    --primary: #6d5dfc;
    --primary-light: #8b7fff;
    --green: #22c55e;
    --danger: #ef4444;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(
            circle at 0 0,
            rgba(109, 93, 252, 0.08),
            transparent 28rem
        ),
        var(--bg);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: rgba(7, 10, 18, 0.85);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: white;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, #887bff, #4f46e5);
    box-shadow: 0 10px 30px rgba(109, 93, 252, 0.35);
    font-size: 15px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav > a,
.nav-link-button {
    border: 0;
    color: var(--muted);
    background: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
}

.main-nav > a:hover,
.main-nav > a.active,
.nav-link-button:hover {
    color: white;
}

.nav-form {
    margin: 0;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.mobile-menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: white;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

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

.button-primary {
    color: white !important;
    background: linear-gradient(
        135deg,
        var(--primary-light),
        var(--primary)
    );
    box-shadow: 0 12px 30px rgba(109, 93, 252, 0.24);
}

.button-secondary {
    border-color: var(--border);
    color: white;
    background: rgba(255, 255, 255, 0.03);
}

.button-light {
    color: #111827;
    background: white;
}

.button-small {
    min-height: 40px;
    padding: 0 16px;
}

.button-large {
    min-height: 54px;
    padding: 0 25px;
}

.button-block {
    width: 100%;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 95px 0 80px;
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
    pointer-events: none;
}

.hero-glow-one {
    top: 40px;
    left: -220px;
    width: 520px;
    height: 520px;
    background: rgba(109, 93, 252, 0.14);
}

.hero-glow-two {
    right: -160px;
    bottom: -160px;
    width: 430px;
    height: 430px;
    background: rgba(14, 165, 233, 0.1);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(370px, 0.72fr);
    gap: 70px;
    align-items: center;
}

.eyebrow,
.mini-label {
    color: #a99fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    border: 1px solid rgba(139, 127, 255, 0.24);
    border-radius: 999px;
    background: rgba(109, 93, 252, 0.08);
}

.eyebrow span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #8b7fff;
    box-shadow: 0 0 0 6px rgba(139, 127, 255, 0.1);
}

.hero h1 {
    max-width: 760px;
    margin: 24px 0 21px;
    font-size: clamp(44px, 6vw, 74px);
    line-height: 1.03;
    letter-spacing: -3.2px;
}

.hero-copy > p {
    max-width: 670px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 34px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    margin-top: 45px;
}

.hero-trust div {
    display: flex;
    flex-direction: column;
}

.hero-trust strong {
    font-size: 17px;
}

.hero-trust span {
    color: var(--muted);
    font-size: 12px;
}

.auth-card,
.auth-page-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        linear-gradient(
            150deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.015)
        ),
        var(--surface);
    box-shadow: var(--shadow);
}

.auth-card {
    padding: 30px;
}

.auth-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.auth-card h2,
.auth-page-card h1 {
    margin: 6px 0 0;
    font-size: 24px;
    letter-spacing: -0.6px;
}

.secure-badge {
    padding: 6px 10px;
    border: 1px solid rgba(34, 197, 94, 0.22);
    border-radius: 999px;
    color: #86efac;
    background: rgba(34, 197, 94, 0.08);
    font-size: 11px;
    font-weight: 700;
}

.auth-form {
    display: grid;
    gap: 17px;
}

.auth-form label:not(.checkbox-row),
.filter-field {
    display: grid;
    gap: 8px;
    color: #dbe5f3;
    font-size: 13px;
    font-weight: 700;
}

.auth-form input,
.filter-field input,
.filter-field select {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid var(--border);
    outline: none;
    border-radius: 11px;
    color: white;
    background: rgba(3, 7, 18, 0.62);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.auth-form input:focus,
.filter-field input:focus,
.filter-field select:focus {
    border-color: #8275ff;
    box-shadow: 0 0 0 4px rgba(109, 93, 252, 0.1);
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 13px;
}

.checkbox-row input {
    width: 16px;
    height: 16px;
}

.form-error {
    padding: 11px 13px;
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 10px;
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.08);
    font-size: 13px;
}

.auth-switch {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.auth-switch a {
    color: #a99fff;
    font-weight: 700;
}

.balance-preview {
    display: grid;
    gap: 4px;
    margin: 28px 0;
    padding: 23px;
    border: 1px solid rgba(139, 127, 255, 0.18);
    border-radius: 15px;
    background: rgba(109, 93, 252, 0.08);
}

.balance-preview span {
    color: var(--muted);
    font-size: 13px;
}

.balance-preview strong {
    font-size: 33px;
}

.account-card .button + .button {
    margin-top: 11px;
}

.stats-section {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.015);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-box {
    display: flex;
    min-height: 145px;
    flex-direction: column;
    justify-content: center;
    padding: 25px 35px;
    border-right: 1px solid var(--border);
}

.stat-box:last-child {
    border-right: 0;
}

.stat-box strong {
    font-size: 29px;
    letter-spacing: -1px;
}

.stat-box span {
    color: var(--muted);
    font-size: 13px;
}

.section {
    padding: 95px 0;
}

.section-soft {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
}

.section-heading {
    max-width: 700px;
    margin: 0 auto 45px;
    text-align: center;
}

.section-heading.align-left {
    margin-left: 0;
    text-align: left;
}

.section-heading h2 {
    margin: 8px 0 12px;
    font-size: clamp(31px, 4vw, 45px);
    line-height: 1.15;
    letter-spacing: -1.8px;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.platform-card {
    display: flex;
    min-height: 120px;
    align-items: center;
    gap: 17px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: var(--surface);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.platform-card:hover {
    transform: translateY(-3px);
    border-color: rgba(139, 127, 255, 0.42);
}

.platform-card > span {
    display: grid;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    place-items: center;
    border-radius: 15px;
    color: white;
    font-size: 14px;
    font-weight: 900;
}

.platform-card div {
    display: grid;
}

.platform-card small {
    color: var(--muted);
}

.instagram > span {
    background: linear-gradient(135deg, #fd1d1d, #833ab4);
}

.tiktok > span {
    background: linear-gradient(135deg, #111827, #14b8a6);
}

.youtube > span {
    background: #ef4444;
}

.facebook > span {
    background: #2563eb;
}

.telegram > span {
    background: #0ea5e9;
}

.twitter > span {
    background: #111827;
    border: 1px solid #334155;
}

.feature-grid,
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 17px;
}

.feature-card,
.step-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
}

.feature-icon,
.step-card > span {
    display: grid;
    width: 45px;
    height: 45px;
    place-items: center;
    border: 1px solid rgba(139, 127, 255, 0.22);
    border-radius: 13px;
    color: #b8b1ff;
    background: rgba(109, 93, 252, 0.09);
    font-size: 13px;
    font-weight: 800;
}

.feature-card h3,
.step-card h3 {
    margin: 22px 0 9px;
    font-size: 18px;
}

.feature-card p,
.step-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.faq-wrap {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 70px;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-list details {
    padding: 0 20px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface);
}

.faq-list summary {
    padding: 20px 0;
    cursor: pointer;
    font-weight: 700;
}

.faq-list p {
    margin: 0;
    padding: 0 0 20px;
    color: var(--muted);
}

.cta-section {
    padding: 70px 0;
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 45px;
    border-radius: 24px;
    background:
        radial-gradient(
            circle at 0 0,
            rgba(255, 255, 255, 0.13),
            transparent 25rem
        ),
        linear-gradient(135deg, #5847ee, #7b6dfb);
    box-shadow: 0 30px 70px rgba(87, 70, 238, 0.25);
}

.cta-box .mini-label {
    color: #dedaff;
}

.cta-box h2 {
    max-width: 680px;
    margin: 7px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.16;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: #05070d;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 0.75fr);
    gap: 50px;
    padding: 65px 0 45px;
}

.footer-grid > div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-grid p,
.footer-grid a {
    color: var(--muted);
    font-size: 13px;
}

.footer-grid h4 {
    margin: 0 0 7px;
}

.footer-brand {
    margin-bottom: 8px;
}

.footer-bottom {
    display: flex;
    min-height: 70px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
}

.system-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.system-status i {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.1);
}

.page-hero,
.dashboard-head {
    padding: 75px 0 60px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(
            circle at 20% 0,
            rgba(109, 93, 252, 0.15),
            transparent 30rem
        ),
        var(--bg-soft);
}

.page-hero h1,
.dashboard-title h1 {
    margin: 8px 0 12px;
    font-size: clamp(38px, 5vw, 58px);
    letter-spacing: -2.3px;
}

.page-hero p {
    max-width: 700px;
    margin: 0;
    color: var(--muted);
}

.service-filter {
    display: grid;
    grid-template-columns: 1.7fr 1fr auto auto;
    gap: 13px;
    align-items: end;
    margin-bottom: 25px;
    padding: 19px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.service-table-wrap,
.dashboard-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: var(--surface);
}

.service-table,
.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.service-table th,
.service-table td,
.dashboard-table th,
.dashboard-table td {
    padding: 17px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.service-table th,
.dashboard-table th {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
    font-size: 11px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.service-table td {
    font-size: 13px;
}

.service-table td:nth-child(2) {
    min-width: 360px;
}

.service-table td:nth-child(2) small,
.service-table td:nth-child(2) strong {
    display: block;
}

.service-table td:nth-child(2) small {
    margin-bottom: 4px;
    color: #9f96ff;
}

.service-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.018);
}

.service-tag,
.status-pill {
    display: inline-flex;
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.04);
    font-size: 10px;
    font-weight: 700;
}

.service-tag.success {
    border-color: rgba(34, 197, 94, 0.22);
    color: #86efac;
    background: rgba(34, 197, 94, 0.08);
}

.empty-state {
    padding: 45px !important;
    color: var(--muted);
    text-align: center !important;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}

.pagination a,
.pagination span {
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--muted);
    background: var(--surface);
    font-size: 12px;
}

.pagination a {
    color: white;
}

.pagination .disabled {
    opacity: 0.45;
}

.auth-page {
    display: grid;
    min-height: calc(100vh - 147px);
    place-items: center;
    padding: 70px 18px;
    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(109, 93, 252, 0.14),
            transparent 30rem
        );
}

.auth-page-card {
    width: min(100%, 470px);
    padding: 34px;
}

.auth-page-card > p {
    margin: 9px 0 25px;
    color: var(--muted);
}

.api-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.api-sidebar {
    position: sticky;
    top: 100px;
    display: grid;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface);
}

.api-sidebar a {
    padding: 14px 17px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.api-sidebar a:last-child {
    border-bottom: 0;
}

.api-content {
    display: grid;
    gap: 17px;
}

.api-card {
    padding: 27px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: var(--surface);
}

.api-card h2 {
    margin: 10px 0 15px;
}

.api-card p {
    color: var(--muted);
}

.api-card pre {
    overflow-x: auto;
    margin: 0;
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 11px;
    color: #c7d2fe;
    background: #050811;
}

.method-badge {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 7px;
    color: #86efac;
    background: rgba(34, 197, 94, 0.1);
    font-size: 11px;
    font-weight: 800;
}

.dashboard-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.dashboard-card {
    display: grid;
    gap: 4px;
    padding: 23px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: var(--surface);
}

.dashboard-card span,
.dashboard-card small {
    color: var(--muted);
    font-size: 12px;
}

.dashboard-card strong {
    font-size: 28px;
}

.balance-card {
    border-color: rgba(139, 127, 255, 0.28);
    background:
        linear-gradient(
            135deg,
            rgba(109, 93, 252, 0.15),
            rgba(109, 93, 252, 0.04)
        ),
        var(--surface);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
    gap: 19px;
}

.panel-card {
    padding: 23px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
}

.panel-card-head h2,
.quick-panel h2 {
    margin: 4px 0 19px;
}

.quick-panel > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 11px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: #dbe5f3;
    background: rgba(255, 255, 255, 0.025);
}

.account-info {
    display: grid;
    gap: 3px;
    margin-top: 19px;
    padding: 15px;
    border-radius: 12px;
    background: rgba(109, 93, 252, 0.07);
}

.account-info small {
    color: var(--muted);
}

.account-info strong {
    overflow-wrap: anywhere;
    font-size: 13px;
}

.alert {
    margin-top: 20px;
    padding: 13px 16px;
    border-radius: 11px;
}

.alert-success {
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #86efac;
    background: rgba(34, 197, 94, 0.08);
}

@media (max-width: 980px) {
    .mobile-menu-button {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 76px;
        right: 18px;
        left: 18px;
        display: none;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 15px;
        background: #0c1120;
        box-shadow: var(--shadow);
    }

    .menu-open .main-nav {
        display: grid;
    }

    .main-nav > a,
    .nav-link-button {
        display: flex;
        width: 100%;
        min-height: 45px;
        align-items: center;
        padding: 0 12px;
        text-align: left;
    }

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

    .hero-copy {
        text-align: center;
    }

    .hero-copy > p {
        margin-right: auto;
        margin-left: auto;
    }

    .eyebrow {
        margin: 0 auto;
    }

    .hero-actions,
    .hero-trust {
        justify-content: center;
    }

    .hero-card-wrap {
        width: min(100%, 530px);
        margin: 0 auto;
    }

    .stats-grid,
    .feature-grid,
    .steps-grid,
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-wrap,
    .dashboard-grid,
    .api-layout {
        grid-template-columns: 1fr;
    }

    .api-sidebar {
        position: static;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .hero {
        padding: 67px 0 55px;
    }

    .hero h1 {
        font-size: 43px;
        letter-spacing: -2px;
    }

    .hero-copy > p {
        font-size: 15px;
    }

    .hero-actions {
        display: grid;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-trust {
        gap: 20px;
    }

    .auth-card {
        padding: 22px;
    }

    .stats-grid,
    .feature-grid,
    .steps-grid,
    .platform-grid,
    .dashboard-cards,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stat-box {
        min-height: 105px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
        text-align: center;
    }

    .section {
        padding: 70px 0;
    }

    .section-heading h2 {
        font-size: 33px;
    }

    .cta-box {
        align-items: stretch;
        flex-direction: column;
        padding: 30px 24px;
        text-align: center;
    }

    .footer-bottom,
    .dashboard-title {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 20px 0;
    }

    .service-filter {
        grid-template-columns: 1fr;
    }

    .service-filter .button {
        width: 100%;
    }

    .service-table,
    .service-table tbody,
    .service-table tr,
    .service-table td {
        display: block;
        width: 100%;
    }

    .service-table thead {
        display: none;
    }

    .service-table tr {
        padding: 11px 0;
        border-bottom: 1px solid var(--border);
    }

    .service-table td {
        display: grid;
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 12px;
        padding: 8px 15px;
        border: 0;
    }

    .service-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .service-table td:nth-child(2) {
        min-width: 0;
    }

    .auth-page-card {
        padding: 25px 21px;
    }

    .dashboard-table th,
    .dashboard-table td {
        padding: 13px;
        white-space: nowrap;
    }
}
