* {
    box-sizing: border-box;
}

:root {
    --bg: #0b1020;
    --bg-soft: #121933;
    --card: rgba(20, 27, 52, 0.88);
    --card-2: rgba(16, 22, 43, 0.92);
    --border: rgba(255, 255, 255, 0.08);
    --text: #f5f7ff;
    --muted: #aab4d6;
    --primary: #6d52ff;
    --primary-2: #8f7cff;
    --success: #19c37d;
    --danger: #ff5b7f;
    --warning: #ffb84d;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    --radius: 20px;
}

html, body {
    margin: 0;
    padding: 0;
    background:
        radial-gradient(circle at top left, rgba(109, 82, 255, 0.18), transparent 30%),
        radial-gradient(circle at top right, rgba(66, 153, 225, 0.14), transparent 26%),
        linear-gradient(180deg, #0a1020 0%, #0b1122 45%, #0d1327 100%);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    min-height: 100%;
}

a {
    color: #c5bbff;
    text-decoration: none;
    transition: 0.2s ease;
}

a:hover {
    color: #ffffff;
}

.site-wrap {
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(14px);
    background: rgba(8, 12, 25, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.4px;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 10px 25px rgba(109, 82, 255, 0.35);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.logo-text strong {
    font-size: 20px;
    color: #fff;
}

.logo-text span {
    font-size: 12px;
    color: #b8c5ef;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav a {
    color: #dce3ff;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.nav a:hover,
.nav a.active {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.main-area {
    padding: 34px 20px 60px;
}

.alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 600;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(25, 195, 125, 0.12);
    color: #aff5d5;
    border-color: rgba(25, 195, 125, 0.22);
}

.alert-error {
    background: rgba(255, 91, 127, 0.12);
    color: #ffc0cf;
    border-color: rgba(255, 91, 127, 0.22);
}

.hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 48px;
    margin-bottom: 24px;
    background:
        radial-gradient(circle at 15% 20%, rgba(155, 122, 255, 0.28), transparent 24%),
        radial-gradient(circle at 85% 30%, rgba(86, 127, 255, 0.22), transparent 22%),
        linear-gradient(135deg, #6b4fff 0%, #3f35a7 40%, #182041 100%);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.08);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 80%);
    pointer-events: none;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin: 0 0 14px;
    font-size: 48px;
    line-height: 1.08;
    letter-spacing: -1px;
    max-width: 820px;
}

.hero p {
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
    max-width: 760px;
}

.muted {
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 18px;
}

.stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 24px;
}

.cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    background: linear-gradient(180deg, rgba(22, 29, 56, 0.95), rgba(13, 19, 39, 0.98));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}

.card h2,
.card h3 {
    margin-top: 0;
}

.stat-card {
    position: relative;
    overflow: hidden;
    min-height: 140px;
}

.stat-card::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -30px;
    top: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(143, 124, 255, 0.25), transparent 65%);
}

.stat-number {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.8px;
}

.stat-label {
    font-size: 15px;
    color: var(--muted);
    font-weight: 600;
}

.section-title {
    margin: 0 0 18px;
    font-size: 28px;
    letter-spacing: -0.6px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.badge-icon {
    font-size: 14px;
}

.badge-youtube {
    background: rgba(255, 0, 0, 0.14);
    border: 1px solid rgba(255, 0, 0, 0.22);
    color: #ffd4d4;
}

.badge-instagram {
    background: rgba(225, 48, 108, 0.14);
    border: 1px solid rgba(225, 48, 108, 0.24);
    color: #ffd2e2;
}

.badge-tiktok {
    background: rgba(0, 240, 255, 0.10);
    border: 1px solid rgba(0, 240, 255, 0.16);
    color: #c9fbff;
}

.badge-default {
    background: rgba(109, 82, 255, 0.16);
    border: 1px solid rgba(143, 124, 255, 0.18);
    color: #ddd5ff;
}

.task-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 280px;
    position: relative;
    overflow: hidden;
}

.task-card.platform-youtube::before,
.task-card.platform-instagram::before,
.task-card.platform-tiktok::before,
.task-card.platform-default::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    pointer-events: none;
}

.task-card.platform-youtube::before {
    background: radial-gradient(circle, rgba(255, 0, 0, 0.15), transparent 70%);
}

.task-card.platform-instagram::before {
    background: radial-gradient(circle, rgba(225, 48, 108, 0.18), transparent 70%);
}

.task-card.platform-tiktok::before {
    background: radial-gradient(circle, rgba(0, 240, 255, 0.12), transparent 70%);
}

.task-card.platform-default::before {
    background: radial-gradient(circle, rgba(109, 82, 255, 0.18), transparent 70%);
}

.task-card h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.task-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.task-points {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.6px;
    position: relative;
    z-index: 1;
}

.task-points span {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    margin-left: 6px;
}

.button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(109, 82, 255, 0.3);
}

.button:hover,
.btn:hover {
    transform: translateY(-1px);
    color: #fff;
}

.button-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.10);
    color: #dfe5ff;
    box-shadow: none;
}

.input,
.textarea,
.select {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(10, 15, 31, 0.95);
    color: #fff;
    padding: 14px 15px;
    margin-bottom: 14px;
    outline: none;
    transition: 0.2s ease;
    font-size: 14px;
}

.input:focus,
.textarea:focus,
.select:focus {
    border-color: rgba(143, 124, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(143, 124, 255, 0.10);
}

.textarea {
    min-height: 140px;
    resize: vertical;
}

.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: left;
    font-size: 14px;
}

.table th {
    color: #dbe2ff;
    font-weight: 700;
}

.table td {
    color: #b8c1e3;
}

.row-actions a {
    display: inline-block;
    margin-right: 10px;
    font-weight: 700;
}

.empty-box {
    padding: 30px;
    border-radius: 18px;
    text-align: center;
    color: var(--muted);
    background: rgba(255,255,255,0.02);
    border: 1px dashed rgba(255,255,255,0.08);
}

.form-card {
    max-width: 760px;
    margin: 0 auto;
}

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.page-head h1 {
    margin: 0;
    font-size: 34px;
    letter-spacing: -0.8px;
}

.info-line {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 14px;
}

hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin: 22px 0;
}

.layout-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    padding: 20px;
}

.sidebar-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3d1;
    margin-bottom: 14px;
    font-weight: 800;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    color: #dbe2ff;
    font-weight: 600;
    background: rgba(255,255,255,0.02);
    border: 1px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(109, 82, 255, 0.12);
    border-color: rgba(143, 124, 255, 0.18);
    color: #fff;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.sidebar-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #7c5cff, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: #fff;
}

.sidebar-user-info strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.sidebar-user-info span {
    color: var(--muted);
    font-size: 13px;
}

.kpi-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

.kpi-mini .mini-box {
    padding: 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

.kpi-mini .mini-box strong {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}

.kpi-mini .mini-box span {
    font-size: 12px;
    color: var(--muted);
}

@media (max-width: 1100px) {
    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .layout-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 900px) {
    .hero {
        padding: 34px 24px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .topbar-inner {
        align-items: flex-start;
        padding: 14px 0;
        flex-direction: column;
    }

    .nav {
        width: 100%;
    }

    .hero h1 {
        font-size: 28px;
    }

    .page-head h1 {
        font-size: 28px;
    }
}

@media (max-width: 1000px) {
    .grid[style*="1.2fr 0.8fr"],
    .grid[style*="1.1fr 0.9fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 700px) {
    form[style*="grid-template-columns: 1fr 220px"] {
        grid-template-columns: 1fr !important;
    }

    .grid[style*="repeat(3, 1fr)"],
    .grid[style*="1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

.landing-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 28px;
}

.landing-hero-content,
.landing-hero-side {
    min-width: 0;
}

.landing-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(109,82,255,.16);
    border: 1px solid rgba(143,124,255,.20);
    color: #ddd5ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .4px;
    margin-bottom: 16px;
}

.landing-hero-content h1 {
    margin: 0 0 18px;
    font-size: 56px;
    line-height: 1.04;
    letter-spacing: -1.4px;
}

.landing-hero-content p {
    margin: 0 0 20px;
    color: #c8d0ef;
    font-size: 18px;
    line-height: 1.8;
    max-width: 760px;
}

.landing-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.landing-mini-info {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: #aab4d6;
    font-size: 14px;
}

.hero-panel {
    background: linear-gradient(180deg, rgba(22,29,56,.96), rgba(13,19,39,.98));
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 18px 45px rgba(0,0,0,.35);
}

.hero-panel-top {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.hero-dot.red { background: #ff5f57; }
.hero-dot.yellow { background: #febc2e; }
.hero-dot.green { background: #28c840; }

.hero-panel-body {
    display: grid;
    gap: 14px;
}

.hero-panel-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
}

.hero-panel-card strong {
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
}

.hero-panel-card span,
.hero-panel-card small {
    color: #aab4d6;
}

.hero-panel-card.big {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-big-number {
    font-size: 42px;
    font-weight: 800;
    color: #fff;
}

.landing-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

.landing-section {
    margin-bottom: 32px;
}

.section-head-center {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 22px;
}

.section-head-center h2,
.section-head-between h2 {
    margin: 0 0 10px;
    font-size: 34px;
    letter-spacing: -.8px;
}

.section-head-center p,
.section-head-between p {
    margin: 0;
    color: #aab4d6;
    line-height: 1.8;
}

.section-head-between {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.landing-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.step-card {
    position: relative;
    overflow: hidden;
}

.step-no {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6d52ff, #3b82f6);
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 16px;
}

.step-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.step-card p {
    margin: 0;
    color: #aab4d6;
    line-height: 1.8;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.platform-box {
    text-align: left;
}

.platform-box .platform-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 16px;
}

.platform-box.youtube .platform-icon {
    background: rgba(255,0,0,.14);
    color: #ffd4d4;
    border: 1px solid rgba(255,0,0,.22);
}

.platform-box.instagram .platform-icon {
    background: rgba(225,48,108,.14);
    color: #ffd2e2;
    border: 1px solid rgba(225,48,108,.24);
}

.platform-box.tiktok .platform-icon {
    background: rgba(0,240,255,.10);
    color: #c9fbff;
    border: 1px solid rgba(0,240,255,.16);
}

.platform-box.default .platform-icon {
    background: rgba(109,82,255,.16);
    color: #ddd5ff;
    border: 1px solid rgba(143,124,255,.18);
}

.platform-box h3,
.trust-card h3,
.faq-card h3 {
    margin: 0 0 10px;
    font-size: 21px;
}

.platform-box p,
.trust-card p,
.faq-card p {
    margin: 0;
    color: #aab4d6;
    line-height: 1.8;
}

.trust-grid,
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.landing-cta {
    margin: 10px 0 0;
    padding: 34px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(109,82,255,.18), transparent 30%),
        linear-gradient(135deg, rgba(22,29,56,.98), rgba(13,19,39,.98));
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 18px 45px rgba(0,0,0,.35);
}

.landing-cta h2 {
    margin: 0 0 12px;
    font-size: 38px;
    letter-spacing: -.8px;
}

.landing-cta p {
    margin: 0 0 18px;
    color: #aab4d6;
    line-height: 1.8;
    max-width: 820px;
}

@media (max-width: 1100px) {
    .landing-hero,
    .landing-stats,
    .landing-steps,
    .platform-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 800px) {
    .landing-hero,
    .landing-stats,
    .landing-steps,
    .platform-grid,
    .trust-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .landing-hero-content h1 {
        font-size: 38px;
    }

    .section-head-center h2,
    .section-head-between h2,
    .landing-cta h2 {
        font-size: 28px;
    }
}

.cards-grid a.card {
    color: inherit;
    text-decoration: none;
}
.cards-grid a.card:hover {
    transform: translateY(-2px);
}