:root {
    color-scheme: dark;
    --fp-bg-deep: #0a0d11; /* Углубил черный для контраста */
    --fp-bg: #141920; /* Чуть темнее фон */
    --fp-surface: #1c242c;
    --fp-surface-raised: #232d36;
    --fp-surface-soft: rgba(255, 255, 255, 0.04);
    --fp-border: rgba(174, 197, 218, 0.08); /* Чуть мягче бордеры */
    --fp-border-strong: rgba(174, 197, 218, 0.15);
    --fp-text: #ffffff;
    --fp-text-soft: #cbd7e3;
    --fp-muted: #8794a1;
    --fp-muted-deep: #657687;
    --fp-blue: #4db2ff;
    --fp-blue-strong: #1d82d4; /* Сделал насыщеннее */
    --fp-blue-dark: #125e96;
    --fp-blue-soft: rgba(77, 178, 255, 0.12);
    --fp-green: #4dcc9a;
    --fp-green-soft: rgba(77, 204, 154, 0.15);
    --fp-red: #ff5863;
    --fp-red-soft: rgba(255, 88, 99, 0.15);
    --fp-gold: #f0c56e;
    --fp-radius-sm: 8px;
    --fp-radius: 14px; /* Чуть более скругленные углы */
    --fp-radius-lg: 20px;
    --fp-radius-xl: 28px;
    --fp-shadow: 0 32px 90px rgba(0, 0, 0, 0.4); /* Усилил премиум-тень */
    --fp-container: 1080px;
    --fp-ease: cubic-bezier(0.25, 1, 0.35, 1); /* Еще более шелковая анимация */
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.fp-page {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 50% -100px, rgba(77, 178, 255, 0.15), transparent 40%),
        linear-gradient(180deg, var(--fp-bg) 0%, #11151a 50%, var(--fp-bg-deep) 100%);
    color: var(--fp-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body.fp-page.is-modal-open {
    overflow: hidden;
}

.fp-page button,
.fp-page a {
    -webkit-tap-highlight-color: transparent;
}

.fp-page button {
    color: inherit;
    font: inherit;
}

.fp-page button:focus-visible,
.fp-page a:focus-visible {
    outline: 2px solid var(--fp-blue);
    outline-offset: 3px;
}

.fp-page a,
.fp-page a:hover {
    color: inherit;
    text-decoration: none;
}

.fp-page svg {
    display: block;
}

.fp-page [hidden] {
    display: none !important;
}

.fp-noise,
.fp-ambient {
    position: fixed;
    pointer-events: none;
}

.fp-noise {
    z-index: 30;
    inset: 0;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}

.fp-ambient {
    z-index: 0;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    opacity: 0.18;
    filter: blur(110px);
}

.fp-ambient--left {
    top: 420px;
    left: -450px;
    background: #258fe0;
}

.fp-ambient--right {
    top: 950px;
    right: -450px;
    background: #235f91;
}

.fp-header {
    position: sticky;
    z-index: 20;
    top: 0;
    height: 82px;
    border-bottom: 1px solid var(--fp-border);
    background: rgba(20, 25, 30, 0.75); /* Делаем шапку более прозрачной */
    backdrop-filter: saturate(180%) blur(30px); /* Усиливаем блюр */
    -webkit-backdrop-filter: saturate(180%) blur(30px);
}

.fp-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: min(calc(100% - 40px), var(--fp-container));
    height: 100%;
    margin: 0 auto;
}

.fp-brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 10px;
    width: max-content;
}

.fp-brand__mark {
    display: grid;
    width: 38px; /* Увеличили размер коробки */
    height: 38px;
    place-items: center;
    border: 1px solid rgba(77, 178, 255, 0.28);
    border-radius: 9px;
    background:
        radial-gradient(circle at 30% 20%, rgba(118, 203, 255, 0.2), transparent 45%),
        #263541;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 7px 18px rgba(9, 25, 38, 0.25);
}

/* Скрываем старую контурную SVG в футере */
.fp-brand__mark svg {
    display: none;
}

/* И ставим туда настоящую белую иконку Fragment */
.fp-brand__mark::after {
    content: '';
    display: block;
    width: 22px;
    height: 22px;
    background-image: url('data:image/svg+xml,%3Csvg%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20width%3D%22512%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M%20126.3%20153.6%20L%20252%20209.2%20C%20255.2%20210.7%20259.2%20210.5%20264.2%20208.2%20L%20388%20153.5%20C%20394.6%20151.1%20390.9%20143.7%20385.7%20144.5%20L%20129.1%20143.4%20C%20121.9%20143.7%20119.9%20150.9%20126.3%20153.6%20Z%20M%20116.2%20182.1%20L%20234.6%20366.1%20C%20238.3%20372.1%20247.7%20368.7%20247.4%20363.3%20L%20247.2%20237.1%20C%20247.1%20230%20245.3%20228.4%20240.8%20226.5%20L%20122.4%20173.8%20C%20118.1%20171.4%20112.3%20175.4%20116.2%20182.1%20Z%20M%20267.5%20234.8%20L%20267.8%20361.8%20C%20267.9%20370.3%20276.4%20371.9%20281.3%20364.7%20L%20384.2%20205.3%20L%20386.4%20201.9%20L%20388.3%20199%20L%20388.3%20198.9%20L%20399.1%20182.3%20C%20402.4%20176.8%20397.2%20170.5%20389.4%20174.2%20L%20272%20227.1%20C%20271.8%20227.2%20271.6%20227.3%20271.4%20227.4%20C%20269.9%20228.3%20268.9%20229.2%20268.4%20230.3%20C%20267.7%20231.5%20267.5%20233%20267.5%20234.8%20Z%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.fp-brand__text {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.fp-nav {
    display: flex;
    align-self: stretch;
    align-items: center;
    gap: 3px;
}

.fp-nav__link {
    position: relative;
    display: inline-flex;
    height: 100%;
    align-items: center;
    padding: 0 13px;
    color: var(--fp-text-soft) !important;
    font-size: 12px;
    font-weight: 600;
    transition: color 180ms ease;
}

.fp-nav__link::after {
    position: absolute;
    right: 13px;
    bottom: -1px;
    left: 13px;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: transparent;
    content: "";
    transition: background 180ms ease, box-shadow 180ms ease;
}

.fp-nav__link:hover,
.fp-nav__link.is-active {
    color: var(--fp-text) !important;
}

.fp-nav__link.is-active::after {
    background: var(--fp-blue);
    box-shadow: 0 -2px 10px rgba(77, 178, 255, 0.4);
}

.fp-header__actions {
    display: flex;
    align-items: center;
    justify-self: end;
}

.fp-demo-badge {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid var(--fp-border);
    border-radius: 8px;
    background: rgba(20, 27, 33, 0.3);
    color: var(--fp-muted);
    font-size: 10px;
    font-weight: 600;
}

.fp-demo-badge svg {
    width: 15px;
    fill: none;
    stroke: var(--fp-green);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.4;
}

/* ============================================================
   Fragment-style header (точная копия структуры fragment.com)
   ============================================================ */

.tm-header.fp-header {
    display: flex;
    margin: 0 auto;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 100;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    background-color: rgba(20, 25, 30, 0.75); /* Синхронизируем с обычной шапкой */
    backdrop-filter: saturate(180%) blur(30px);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    height: 98px;
    border-bottom: 1px solid var(--fp-border);
}

.tm-header-logo {
    display: inline-flex;
    align-items: center;
    padding: 15px 14px;
    height: 56px;
}

.tm-logo {
    display: inline-flex;
    align-items: center;
    gap: 2px; /* Придвинул почти вплотную */
}

/* Настоящий Fragment logo icon (diamond) — SVG data URI с fragment.com */
.tm-logo-icon {
    display: inline-block;
    width: 34px; /* Делаем значок БОЛЬШИМ (было 22px) */
    height: 34px;
    background-image: url('data:image/svg+xml,%3Csvg%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20width%3D%22512%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M%20126.3%20153.6%20L%20252%20209.2%20C%20255.2%20210.7%20259.2%20210.5%20264.2%20208.2%20L%20388%20153.5%20C%20394.6%20151.1%20390.9%20143.7%20385.7%20144.5%20L%20129.1%20143.4%20C%20121.9%20143.7%20119.9%20150.9%20126.3%20153.6%20Z%20M%20116.2%20182.1%20L%20234.6%20366.1%20C%20238.3%20372.1%20247.7%20368.7%20247.4%20363.3%20L%20247.2%20237.1%20C%20247.1%20230%20245.3%20228.4%20240.8%20226.5%20L%20122.4%20173.8%20C%20118.1%20171.4%20112.3%20175.4%20116.2%20182.1%20Z%20M%20267.5%20234.8%20L%20267.8%20361.8%20C%20267.9%20370.3%20276.4%20371.9%20281.3%20364.7%20L%20384.2%20205.3%20L%20386.4%20201.9%20L%20388.3%20199%20L%20388.3%20198.9%20L%20399.1%20182.3%20C%20402.4%20176.8%20397.2%20170.5%20389.4%20174.2%20L%20272%20227.1%20C%20271.8%20227.2%20271.6%20227.3%20271.4%20227.4%20C%20269.9%20228.3%20268.9%20229.2%20268.4%20230.3%20C%20267.7%20231.5%20267.5%20233%20267.5%20234.8%20Z%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

/* Настоящий Fragment text (FRAGMENT wordmark) — SVG data URI с fragment.com */
.tm-logo-text {
    display: inline-block;
    width: 110px; /* Увеличиваем текст (было 90px) */
    height: 24px; /* Увеличиваем текст (было 20px) */
    background-image: url('data:image/svg+xml,%3Csvg%20height%3D%2253%22%20viewBox%3D%220%200%20226%2053%22%20width%3D%22226%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22m%2023.84%2048%20h%206.82%20v%20-18.91%20h%208.8%20v%20-6.2%20h%20-8.8%20v%20-12.09%20h%2011.22%20v%20-6.2%20h%20-18.04%20z%20m%2021.81%200%20h%206.82%20v%20-18.6%20h%202.36%20c%203.1%200%204.28%201.3%204.28%205.33%20v%207.94%20c%200%203.53%200.24%204.21%200.62%205.33%20h%206.94%20c%20-0.68%20-1.61%20-0.74%20-3.16%20-0.74%20-5.27%20v%20-7.63%20c%200%20-4.89%20-1.12%20-8.12%20-4.53%20-9.17%20v%20-0.13%20c%203.04%20-1.24%204.46%20-4.09%204.46%20-8.55%20v%20-2.67%20c%200%20-6.69%20-3.03%20-9.98%20-10.1%20-9.98%20h%20-10.11%20z%20m%206.82%20-24.8%20v%20-12.4%20h%203.1%20c%202.42%200%203.47%201.36%203.47%204.46%20v%203.35%20c%200%203.47%20-1.55%204.59%20-4.09%204.59%20z%20m%2016.86%2024.8%20h%206.32%20l%201.24%20-8.49%20h%207.75%20v%20-0.13%20l%201.24%208.62%20h%206.82%20l%20-7.07%20-43.4%20h%20-9.23%20z%20m%208.37%20-14.38%20l%202.97%20-21.46%20h%200.13%20l%203.04%2021.46%20z%20m%2028.32%2015%20c%206.7%200%2010.17%20-3.97%2010.17%20-10.91%20v%20-14.2%20h%20-9.86%20v%206.2%20h%203.41%20v%208.49%20c%200%203.1%20-1.36%204.22%20-3.53%204.22%20s%20-3.53%20-1.12%20-3.53%20-4.22%20v%20-23.74%20c%200%20-3.1%201.36%20-4.28%203.53%20-4.28%20s%203.53%201.18%203.53%204.28%20v%204.15%20h%206.45%20v%20-3.72%20c%200%20-6.94%20-3.47%20-10.91%20-10.17%20-10.91%20c%20-6.69%200%20-10.16%203.97%20-10.16%2010.91%20v%2022.82%20c%200%206.94%203.47%2010.91%2010.16%2010.91%20z%20m%2015.06%20-0.62%20h%205.95%20v%20-32.86%20h%200.13%20l%204.96%2032.86%20h%205.7%20l%204.96%20-32.86%20h%200.13%20v%2032.86%20h%206.44%20v%20-43.4%20h%20-9.73%20l%20-4.34%2031.06%20h%20-0.12%20l%20-4.34%20-31.06%20h%20-9.74%20z%20m%2033.85%200%20h%2018.6%20v%20-6.2%20h%20-11.78%20v%20-13.33%20h%209.36%20v%20-6.2%20h%20-9.36%20v%20-11.47%20h%2011.78%20v%20-6.2%20h%20-18.6%20z%20m%2022.99%200%20h%206.08%20v%20-31.68%20h%200.12%20l%208.18%2031.68%20h%207.01%20v%20-43.4%20h%20-6.08%20v%2025.98%20h%20-0.12%20l%20-6.63%20-25.98%20h%20-8.56%20z%20m%2032.29%200%20h%206.82%20v%20-37.2%20h%207.13%20v%20-6.2%20h%20-21.08%20v%206.2%20h%207.13%20z%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E');
    background-position: left center;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

.tm-header-body {
    flex-grow: 1;
}

.tm-header-tabs-wrap {
    position: absolute;
    left: 0;
    right: 0;
    top: 56px;
    bottom: 0;
    background-color: transparent; /* Убираем сплошной цвет, чтобы блюр работал */
    border-bottom: 1px solid var(--fp-border);
}

.tm-header-tabs {
    display: flex;
    padding: 0 17px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tm-header-tabs::-webkit-scrollbar {
    display: none;
}

.tm-header-tab {
    font-size: 14px;
    line-height: 18px;
    font-weight: 700;
    padding: 12px 0;
    white-space: nowrap;
    color: rgba(203, 215, 227, 0.7);
    transition: color 180ms ease;
    position: relative;
    text-decoration: none;
}

.tm-header-tab + .tm-header-tab {
    margin-left: 17px;
}

a.tm-header-tab:hover,
a.tm-header-tab:focus {
    text-decoration: none;
    color: rgba(203, 215, 227, 0.95);
}

.tm-header-tab.tab-active,
a.tm-header-tab.tab-active:hover,
a.tm-header-tab.tab-active:focus {
    color: var(--fp-text);
}

.tm-header-tab.tab-active:after {
    content: '';
    display: block;
    position: absolute;
    height: 4px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--fp-blue);
    border-radius: 3px 3px 0 0;
    box-shadow: 0 -2px 10px rgba(77, 178, 255, 0.4);
}

.tm-header-actions {
    display: flex;
    align-items: center;
    align-self: flex-start;
    margin: 0 16px;
    gap: 14px;
    height: 56px;
}

.tm-header-actions-thin {
    margin-right: 0;
}

.tm-header-action + .tm-header-action {
    margin-left: 14px;
}

/* Connect TON button (replaces demo badge) */
.fp-connect-button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Добавляем тонкий блик по краям */
    border-radius: 12px;
    background: linear-gradient(135deg, #329af0 0%, #1573c2 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--fp-ease);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 6px 18px rgba(36, 139, 218, 0.4);
}

.fp-connect-button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #42a4f5 0%, #1a81d4 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 10px 24px rgba(36, 139, 218, 0.55);
}

.fp-connect-button:active {
    transform: translateY(0);
}

.fp-connect-button.is-connected {
    background: linear-gradient(135deg, var(--fp-green) 0%, #3bb588 100%);
    box-shadow: 0 6px 18px rgba(77, 204, 154, 0.32);
}

.fp-connect-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

/* Hamburger menu button */
.tm-header-menu-button.fp-menu-button {
    display: none;
    width: 44px;
    height: 56px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 0;
    margin-right: 4px;
    cursor: pointer;
    background: transparent;
    border: none;
    align-self: flex-start;
}

.tm-header-menu-button.fp-menu-button span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--fp-text-soft);
    border-radius: 2px;
    transition: transform 180ms ease, opacity 180ms ease;
}

/* ============================================================
   Responsive: Fragment-style
   ============================================================ */

@media (max-width: 991px) {
    .tm-header-actions-wide {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .tm-header-actions-thin {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .tm-header-menu-button.fp-menu-button {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .tm-header-menu-button.fp-menu-button {
        display: flex;
    }
}

@media (max-width: 767px) {
    .tm-header.fp-header {
        height: 90px;
    }
    .tm-header-tabs-wrap {
        top: 48px;
    }
    .tm-header-logo {
        height: 48px;
        padding: 12px 14px;
    }
    .tm-header-actions {
        height: 48px;
        margin: 0 12px;
    }
    .tm-header-menu-button.fp-menu-button {
        height: 48px;
        width: 40px;
    }
    .fp-main {
        padding-top: 90px;
        min-height: calc(100vh - 90px);
    }
}

.fp-menu-button {
    display: none;
    width: 36px;
    height: 36px;
    padding: 9px;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
    border: 1px solid var(--fp-border);
    border-radius: 8px;
    background: var(--fp-surface-soft);
}

.fp-menu-button span {
    height: 1px;
    border-radius: 2px;
    background: var(--fp-text-soft);
}

.fp-mobile-nav {
    position: fixed;
    z-index: 19;
    top: 70px;
    right: 12px;
    left: 12px;
    padding: 8px;
    border: 1px solid var(--fp-border-strong);
    border-radius: 12px;
    background: rgba(33, 42, 51, 0.97);
    box-shadow: var(--fp-shadow);
    backdrop-filter: blur(20px);
    animation: fpMenuIn 220ms var(--fp-ease) both;
}

.fp-mobile-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 7px;
    color: var(--fp-muted) !important;
    font-size: 12px;
}

.fp-mobile-nav a.is-active {
    background: var(--fp-blue-soft);
    color: var(--fp-blue) !important;
}

.fp-main {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 98px);
    padding-top: 98px;
}

.fp-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    align-items: center;
    width: min(calc(100% - 40px), var(--fp-container));
    min-height: 580px;
    margin: 0 auto;
    padding: 62px 0 52px;
    scroll-margin-top: 100px;
}

.fp-hero__content {
    position: relative;
    z-index: 3;
    padding-left: 18px;
}

.fp-kicker,
.fp-section-label {
    color: var(--fp-blue);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.fp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border: 1px solid rgba(77, 178, 255, 0.17);
    border-radius: 999px;
    background: rgba(77, 178, 255, 0.055);
}

.fp-kicker--success {
    border-color: rgba(77, 204, 154, 0.19);
    background: var(--fp-green-soft);
    color: var(--fp-green);
}

.fp-live-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--fp-green);
    box-shadow: 0 0 0 4px rgba(77, 204, 154, 0.09), 0 0 13px rgba(77, 204, 154, 0.45);
}

.fp-hero h1 {
    max-width: 640px;
    margin: 24px 0 17px;
    color: var(--fp-text);
    font-size: clamp(43px, 5vw, 66px);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1.02;
}

.fp-hero h1 span {
    background: linear-gradient(95deg, #ffffff 10%, #85c8fb 92%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.fp-hero__description {
    max-width: 520px;
    margin: 0;
    color: var(--fp-muted);
    font-size: 15px;
    line-height: 1.7;
}

.fp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 27px;
}

.fp-button {
    position: relative;
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08); /* Светящийся кант */
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s var(--fp-ease);
}

.fp-button:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
}

.fp-button:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

.fp-button svg {
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    transition: transform 0.3s var(--fp-ease);
}

.fp-button:hover svg {
    transform: translateX(3px); /* Легкий сдвиг стрелочки */
}

.fp-button--primary {
    background: linear-gradient(135deg, #248bda 0%, #176fae 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 12px 28px rgba(23, 111, 174, 0.4);
    color: #ffffff;
}

.fp-button--primary::before,
.fp-button--claim::before {
    position: absolute;
    top: -100%;
    left: -55%;
    width: 38%;
    height: 300%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    content: "";
    transform: rotate(22deg);
    transition: left 600ms var(--fp-ease);
}

.fp-button--primary:hover::before,
.fp-button--claim:hover::before {
    left: 125%;
}

.fp-button--primary > *,
.fp-button--claim > * {
    position: relative;
    z-index: 1;
}

.fp-button--primary:hover {
    background: #2e97e6;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 30px rgba(23, 111, 174, 0.3);
}

.fp-button--secondary {
    border-color: var(--fp-border);
    background: rgba(255, 255, 255, 0.025);
    color: var(--fp-text-soft);
}

.fp-button--secondary:hover {
    border-color: var(--fp-border-strong);
    background: rgba(255, 255, 255, 0.045);
}

.fp-button--claim {
    min-width: 220px;
    padding: 0 28px;
    border: 1px solid rgba(255, 255, 255, 0.15); /* Светящийся кант */
    background: linear-gradient(135deg, #4dcc9a 0%, #31a879 100%); /* Сочный неоновый градиент */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 12px 30px rgba(77, 204, 154, 0.4); /* Глубокая тень и блик */
    color: #0d2a21;
    font-size: 15px; /* Крупнее шрифт */
    font-weight: 700;
    transition: all 0.3s var(--fp-ease);
}

.fp-button--claim:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(135deg, #5de3b0 0%, #3ebd8a 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 18px 40px rgba(77, 204, 154, 0.5), 0 0 20px rgba(77, 204, 154, 0.4); /* Эффект сильного свечения при наведении */
}

.fp-button--claim:disabled {
    border-color: rgba(255,255,255,0.05);
    background: #2a343e;
    box-shadow: none;
    color: #6e7b87;
    cursor: not-allowed;
}

.fp-safety-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: var(--fp-muted-deep);
    font-size: 9px;
}

.fp-safety-line svg {
    width: 14px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--fp-green);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.4;
}

.fp-safety-line svg {
    width: 18px;
    height: 18px; /* Жестко фиксируем размер */
    flex: 0 0 18px; /* Запрещаем иконке сжиматься или растягиваться */
    fill: none;
    stroke: var(--fp-green);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.fp-number-visual {
    position: relative;
    display: grid;
    min-height: 430px;
    place-items: center;
    perspective: 1200px;
}

.fp-number-visual::before {
    position: absolute;
    width: 340px;
    height: 230px;
    border-radius: 50%;
    background: rgba(47, 135, 204, 0.16);
    content: "";
    filter: blur(65px);
}

.fp-orbit {
    position: absolute;
    border: 1px solid rgba(77, 178, 255, 0.11);
    border-radius: 50%;
}

.fp-orbit span {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fp-blue);
    box-shadow: 0 0 13px rgba(77, 178, 255, 0.75);
}

.fp-orbit--outer {
    width: 470px;
    height: 330px;
    transform: rotate(-12deg);
    animation: fpOrbitOuter 8s ease-in-out infinite;
}

.fp-orbit--outer span {
    top: 39px;
    right: 70px;
    box-shadow: 0 0 18px rgba(77, 178, 255, 0.9), 0 0 35px rgba(77, 178, 255, 0.5); /* Более сильное свечение шарика */
}

.fp-orbit--inner {
    width: 350px;
    height: 250px;
    transform: rotate(14deg);
    animation: fpOrbitInner 6.5s ease-in-out infinite;
}

.fp-orbit--inner span {
    right: 20px;
    bottom: 62px;
    width: 4px;
    height: 4px;
    background: var(--fp-green);
    box-shadow: 0 0 16px rgba(77, 204, 154, 0.8), 0 0 30px rgba(77, 204, 154, 0.4);
}

.fp-number-card {
    position: relative;
    z-index: 2;
    width: min(390px, 78%);
    aspect-ratio: 1.58;
    overflow: hidden;
    padding: 28px; /* Чуть больше воздуха */
    border: 1px solid rgba(116, 190, 245, 0.3); /* Ярче граница */
    border-radius: 22px;
    background:
        radial-gradient(circle at 90% 10%, rgba(77, 178, 255, 0.25), transparent 45%),
        linear-gradient(145deg, #24313d, #141a21 72%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 45px 90px rgba(0, 0, 0, 0.5); /* Более глубокая тень */
    transform: rotateY(-6deg) rotateX(3deg) rotateZ(-1.5deg);
    transition: transform 0.6s var(--fp-ease), box-shadow 0.6s var(--fp-ease);
}

.fp-number-card:hover {
    transform: rotateY(-1deg) rotateX(1deg) rotateZ(0) translateY(-8px) scale(1.02);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3),
        0 55px 110px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(77, 178, 255, 0.2); /* Неоновое свечение под картой */
}

.fp-number-card::before {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(112deg, transparent 0 29px, rgba(255, 255, 255, 0.014) 30px 31px),
        linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.055) 49%, transparent 61%);
    content: "";
}

.fp-number-card__glow {
    position: absolute;
    top: -120%;
    left: -65%;
    width: 45%;
    height: 350%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.055), transparent);
    transform: rotate(25deg);
    animation: fpCardShine 7s 2s ease-in-out infinite;
}

.fp-number-card__header,
.fp-number-card__footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fp-number-card__header > span:first-child,
.fp-number-card__footer span,
.fp-number-card__footer strong {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.fp-number-card__header > span:first-child,
.fp-number-card__footer span {
    color: var(--fp-muted);
}

.fp-rarity {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    padding: 0 8px;
    border: 1px solid var(--fp-border);
    border-radius: 999px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fp-rarity--rare {
    border-color: rgba(77, 178, 255, 0.25);
    background: var(--fp-blue-soft);
    color: #8dceff;
}

.fp-rarity--legendary {
    border-color: rgba(240, 197, 110, 0.27);
    background: rgba(240, 197, 110, 0.08);
    color: var(--fp-gold);
}

.fp-number-card__value {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: baseline;
    gap: 11px;
    margin: 52px 0 49px;
    white-space: nowrap;
}

.fp-number-card__value small {
    color: var(--fp-blue);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.fp-number-card__value strong {
    font-size: clamp(27px, 3vw, 34px);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-shadow: 0 0 30px rgba(77, 178, 255, 0.17);
}

.fp-number-card__footer strong {
    color: var(--fp-text-soft);
}

.fp-floating-stat {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px; /* Чуть больше отступ */
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08); /* Светящийся кант */
    border-radius: 14px;
    background: rgba(22, 28, 34, 0.7); /* Более прозрачный */
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.fp-floating-stat > span:last-child {
    display: flex;
    flex-direction: column;
}

.fp-floating-stat small {
    color: var(--fp-muted);
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.fp-floating-stat strong {
    margin-top: 2px;
    font-size: 10px;
    font-weight: 600;
}

.fp-floating-stat__icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid rgba(77, 178, 255, 0.17);
    border-radius: 8px;
    background: var(--fp-blue-soft);
}

.fp-floating-stat__icon svg {
    width: 14px;
    fill: none;
    stroke: var(--fp-blue);
    stroke-linejoin: round;
    stroke-width: 1.3;
}

.fp-floating-stat--points {
    top: 64px;
    right: -1px;
    animation: fpFloat 5s ease-in-out infinite;
}

.fp-floating-stat--supply {
    bottom: 59px;
    left: 15px;
    animation: fpFloat 5.5s 0.5s ease-in-out infinite;
}

.fp-drop-status {
    display: grid;
    grid-template-columns: 0.75fr 1.2fr 0.75fr;
    align-items: center;
    gap: 30px;
    width: min(calc(100% - 40px), var(--fp-container));
    margin: 0 auto 52px;
    padding: 24px 28px; /* Увеличили отступы для воздуха */
    border: 1px solid rgba(255, 255, 255, 0.06); /* Тонкий светящийся кант */
    border-radius: 20px; /* Более округлый */
    background: linear-gradient(180deg, rgba(30, 38, 46, 0.6) 0%, rgba(20, 26, 32, 0.8) 100%); /* Красивый градиентный фон */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 25px 50px rgba(0, 0, 0, 0.4); /* Блик сверху + глубокая тень */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.fp-drop-status__item {
    display: flex;
    align-items: center;
    gap: 11px;
}

.fp-drop-status__item--right {
    justify-content: flex-end;
    text-align: right;
}

.fp-drop-status__icon {
    display: grid;
    width: 44px; /* Немного увеличили */
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(77, 178, 255, 0.15); /* Цветная граница */
    border-radius: 12px;
    background: radial-gradient(circle at top left, rgba(77, 178, 255, 0.12), transparent); /* Внутреннее свечение */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.fp-drop-status__icon svg {
    width: 20px;
    fill: none;
    stroke: var(--fp-blue);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
    filter: drop-shadow(0 0 5px rgba(77, 178, 255, 0.5)); /* Неоновая тень у иконки */
}

.fp-drop-status__item > span:not(.fp-drop-status__icon) {
    display: flex;
    flex-direction: column;
}

.fp-drop-status small,
.fp-drop-status__labels span {
    color: var(--fp-muted);
    font-size: 9px; /* Чуть крупнее */
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fp-drop-status strong {
    margin-top: 4px;
    font-size: 18px; /* Сильно увеличили размер цифр */
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.01em;
}

.fp-drop-status__labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.fp-drop-status__labels strong {
    margin: 0;
    color: var(--fp-blue);
    font-size: 11px;
    text-shadow: 0 0 10px rgba(77, 178, 255, 0.4); /* Неоновое свечение у процентов */
}

.fp-progress {
    height: 6px; /* Чуть толще полоска */
    overflow: hidden;
    border-radius: 99px;
    background: rgba(0, 0, 0, 0.4); /* Более темная подложка для контраста */
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5); /* Углубление */
}

.fp-progress i {
    display: block;
    width: 8%; /* Обновили ширину под 2000 из 25000 */
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #176fae, #4db2ff, #99d6ff); /* Яркий градиент */
    box-shadow: 0 0 15px rgba(77, 178, 255, 0.6), 0 0 5px rgba(77, 178, 255, 0.8); /* Мощное свечение */
    animation: fpProgressIn 1.2s var(--fp-ease) both;
}

.fp-results {
    width: min(calc(100% - 40px), var(--fp-container));
    margin: 0 auto 76px;
    scroll-margin-top: 105px;
    animation: fpSectionIn 650ms var(--fp-ease) both;
}

.fp-results__top {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 25px;
}

.fp-results__top h2 {
    margin: 11px 0 7px;
    color: var(--fp-text);
    font-size: clamp(31px, 4vw, 44px);
    font-weight: 600;
    letter-spacing: -0.04em;
}

.fp-results__top p {
    max-width: 540px;
    margin: 0;
    color: var(--fp-muted);
    font-size: 12px;
}

.fp-profile-switcher {
    flex: 0 0 auto;
}

.fp-profile-switcher > span {
    display: block;
    margin: 0 0 7px 3px;
    color: var(--fp-muted);
    font-size: 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fp-profile-switcher > div {
    display: flex;
    padding: 3px;
    border: 1px solid var(--fp-border);
    border-radius: 9px;
    background: rgba(17, 22, 27, 0.35);
}

.fp-profile-switcher button {
    min-height: 31px;
    padding: 0 11px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--fp-muted);
    cursor: pointer;
    font-size: 9px;
    font-weight: 600;
    transition: color 160ms ease, background 160ms ease;
}

.fp-profile-switcher button.is-active {
    background: var(--fp-surface-raised);
    color: var(--fp-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.fp-wallet-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 13px 15px;
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius);
    background: rgba(33, 42, 51, 0.72);
}

.fp-wallet-avatar {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border: 1px solid rgba(77, 178, 255, 0.18);
    border-radius: 9px;
    background: var(--fp-blue-soft);
}

.fp-wallet-avatar svg {
    width: 21px;
    fill: none;
    stroke: var(--fp-blue);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.25;
}

.fp-wallet-bar__identity {
    display: flex;
    flex-direction: column;
}

.fp-wallet-bar__identity span {
    color: var(--fp-muted);
    font-size: 8px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.fp-wallet-bar__identity strong {
    margin-top: 3px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-family: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
    color: var(--fp-text-soft);
    transition: color 0.2s var(--fp-ease);
}

.fp-wallet-bar__identity strong.is-clickable:hover {
    color: var(--fp-blue);
}

.fp-wallet-bar__status {
    display: flex;
    align-items: center;
    gap: 9px;
}

.fp-wallet-bar__status > button#disconnect-wallet {
    padding: 7px 14px;
    border: 1px solid rgba(255, 88, 99, 0.4);
    border-radius: 8px;
    background: rgba(255, 88, 99, 0.12);
    color: var(--fp-red);
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: background 0.2s var(--fp-ease), border-color 0.2s var(--fp-ease), transform 0.15s var(--fp-ease);
}

.fp-wallet-bar__status > button#disconnect-wallet:hover {
    background: rgba(255, 88, 99, 0.22);
    border-color: rgba(255, 88, 99, 0.65);
    transform: translateY(-1px);
}

.fp-wallet-bar__status > button#disconnect-wallet:active {
    transform: translateY(0);
}

.fp-wallet-bar__status > button {
    padding: 5px 2px;
    border: 0;
    background: transparent;
    color: var(--fp-blue);
    cursor: pointer;
    font-size: 9px;
    font-weight: 600;
}

.fp-status-pill {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    gap: 7px;
    padding: 0 9px;
    border: 1px solid var(--fp-border);
    border-radius: 999px;
    font-size: 8px;
    font-weight: 600;
}

.fp-status-pill i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.fp-status-pill--safe {
    border-color: rgba(77, 204, 154, 0.2);
    background: var(--fp-green-soft);
    color: var(--fp-green);
}

.fp-status-pill--safe i {
    background: var(--fp-green);
    box-shadow: 0 0 8px rgba(77, 204, 154, 0.5);
}

.fp-score-overview {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr;
    gap: 16px;
    margin-bottom: 28px;
}

.fp-score-card,
.fp-eligibility-card {
    border: 1px solid rgba(255, 255, 255, 0.06); /* Тонкий светлый кант */
    border-radius: 20px; /* Более мягкие углы */
    background: linear-gradient(180deg, rgba(30, 38, 46, 0.6) 0%, rgba(20, 26, 32, 0.8) 100%); /* Премиум стекло */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 25px 50px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

.fp-score-card {
    display: flex;
    flex-direction: column; /* На мобилке всё будет идти вертикально */
    align-items: center;
    text-align: center;
    gap: 16px; /* Более плотная компоновка */
    min-height: auto;
    padding: 32px 24px; /* Чуть больше воздуха внутри, но без пустых дыр */
    position: relative;
    overflow: hidden;
}

/* Добавляем легкое свечение на фон карточки */
.fp-score-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 30%, rgba(77, 178, 255, 0.05), transparent 60%);
    pointer-events: none;
}

@media (min-width: 700px) {
    .fp-score-card {
        display: grid;
        grid-template-columns: 152px 1fr;
        text-align: left;
        align-items: center;
        gap: 30px;
        padding: 28px 32px;
    }
}

.fp-score-ring {
    position: relative;
    display: grid;
    width: 140px; /* Чуть увеличили */
    height: 140px;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(77, 178, 255, 0.05), transparent 70%); /* Внутреннее свечение кольца */
}

.fp-score-ring svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    transform: rotate(-90deg);
}

.fp-score-ring circle {
    fill: none;
    stroke-width: 8; /* Сделали кольцо ЖИРНЕЕ */
}

.fp-score-ring__track {
    stroke: rgba(255, 255, 255, 0.04); /* Слегка подсветили фон кольца */
}

.fp-score-ring__value {
    stroke: var(--fp-blue);
    stroke-dasharray: 326.73;
    stroke-dashoffset: 326.73;
    stroke-linecap: round;
    filter: drop-shadow(0 0 8px rgba(77, 178, 255, 0.6)) drop-shadow(0 0 15px rgba(77, 178, 255, 0.4)); /* Двойной мощный неон */
    transition: stroke-dashoffset 1.1s var(--fp-ease), stroke 300ms ease;
}

.fp-score-ring.is-ineligible .fp-score-ring__value {
    stroke: var(--fp-red);
    filter: drop-shadow(0 0 8px rgba(255, 88, 99, 0.6)) drop-shadow(0 0 15px rgba(255, 88, 99, 0.4)); /* Красный неон при провале */
}

.fp-score-ring > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2; /* Текст поверх свечения */
}

.fp-score-ring strong {
    font-size: 38px; /* Огромные цифры поинтов */
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.fp-score-ring small {
    margin-top: -3px;
    color: var(--fp-muted);
    font-size: 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fp-score-card__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.fp-score-card__copy .fp-section-label {
    margin-bottom: 8px; /* Отрываем от заголовка */
    font-size: 10px; /* Чуть крупнее */
}

.fp-score-card__copy h3 {
    margin: 0 0 10px;
    font-size: 26px; /* Крупнее заголовок */
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Раскрашиваем заголовок при провале, чтобы било в глаза */
.is-ineligible .fp-score-card__copy h3 {
    color: var(--fp-red);
    text-shadow: 0 0 15px rgba(255, 88, 99, 0.2);
}

.fp-score-card__copy > p {
    max-width: 100%;
    margin: 0;
    color: var(--fp-text-soft); /* Делаем текст светлее, чтобы читался */
    font-size: 12px;
    line-height: 1.6;
}

.fp-tier-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08); /* Светлая линия */
}

.fp-tier-line span {
    color: var(--fp-muted);
    font-size: 8px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.fp-tier-line strong {
    color: var(--fp-blue);
    font-size: 10px;
    font-weight: 600;
}

.fp-eligibility-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px; /* Больше отступов */
    transition: all 0.4s var(--fp-ease);
}

.fp-eligibility-card.is-eligible {
    border-color: rgba(77, 204, 154, 0.3);
    background: radial-gradient(circle at 100% 0, rgba(77, 204, 154, 0.15), transparent 60%), rgba(20, 26, 32, 0.8);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 20px 40px rgba(77, 204, 154, 0.1);
}

.fp-eligibility-card.is-ineligible {
    border-color: rgba(255, 88, 99, 0.3);
    background: radial-gradient(circle at 100% 0, rgba(255, 88, 99, 0.15), transparent 60%), rgba(20, 26, 32, 0.8);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 20px 40px rgba(255, 88, 99, 0.1);
}

.fp-eligibility-card__state {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
}

.fp-state-icon {
    display: grid;
    width: 48px; /* Увеличили размер иконки статуса */
    height: 48px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--fp-border);
    border-radius: 14px;
    background: var(--fp-surface-soft);
}

.fp-state-icon svg {
    display: none;
    width: 26px; /* Увеличили саму SVG внутри */
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5; /* Сделали жирнее */
}

.fp-state-icon::before {
    width: 15px;
    height: 15px;
    border: 2px solid var(--fp-border-strong);
    border-top-color: var(--fp-blue);
    border-radius: 50%;
    animation: fpSpin 800ms linear infinite;
    content: "";
}

.fp-state-icon.is-success {
    border-color: rgba(77, 204, 154, 0.24);
    background: var(--fp-green-soft);
}

.fp-state-icon.is-success::before,
.fp-state-icon.is-failed::before {
    display: none;
}

.fp-state-icon.is-success .fp-state-icon__check {
    display: block;
    stroke: var(--fp-green);
}

.fp-state-icon.is-failed {
    border-color: rgba(255, 88, 99, 0.24);
    background: var(--fp-red-soft);
}

.fp-state-icon.is-failed .fp-state-icon__cross {
    display: block;
    stroke: var(--fp-red);
}

.fp-eligibility-card__state > span:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Центрируем текст по вертикали, раз убрали мелкий */
}

.fp-eligibility-card__state strong {
    font-size: 20px; /* Сделали статус КРУПНЫМ */
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Красим текст в зависимости от статуса для пущей наглядности */
.fp-eligibility-card.is-eligible .fp-eligibility-card__state strong {
    color: var(--fp-green);
    text-shadow: 0 0 15px rgba(77, 204, 154, 0.2);
}

.fp-eligibility-card.is-ineligible .fp-eligibility-card__state strong {
    color: var(--fp-red);
    text-shadow: 0 0 15px rgba(255, 88, 99, 0.2);
}

/* Полностью скрываем мелкий поясняющий текст */
.fp-eligibility-card__state small {
    display: none; /* Убрали мелкий текст */
}

.fp-minimum {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 13px;
    border-top: 1px solid var(--fp-border);
}

.fp-minimum span {
    color: var(--fp-muted);
    font-size: 8px;
    text-transform: uppercase;
}

.fp-minimum strong {
    font-size: 10px;
    font-weight: 600;
}

.fp-criteria-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin: 0 0 13px;
}

.fp-criteria-heading h3 {
    margin: 4px 0 0;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.fp-criteria-heading > span {
    color: var(--fp-muted);
    font-size: 9px;
}

.fp-criteria-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.fp-criterion {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 20px;
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius);
    background: rgba(33, 42, 51, 0.65);
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 400ms var(--fp-ease),
        transform 400ms var(--fp-ease),
        border-color 300ms ease,
        background 300ms ease,
        box-shadow 300ms ease;
}

.fp-criterion.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fp-criterion::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--fp-blue);
    content: "";
    opacity: 0.03;
    filter: blur(35px);
    transition: background 300ms ease, opacity 300ms ease;
}

.fp-criterion.is-success {
    border-color: rgba(77, 204, 154, 0.18);
    background:
        radial-gradient(circle at 100% 0, rgba(77, 204, 154, 0.065), transparent 42%),
        rgba(33, 42, 51, 0.72);
}

.fp-criterion.is-success::after {
    background: var(--fp-green);
    opacity: 0.045;
}

.fp-criterion.is-failed {
    border-color: rgba(255, 88, 99, 0.18);
    background:
        radial-gradient(circle at 100% 0, rgba(255, 88, 99, 0.06), transparent 42%),
        rgba(33, 42, 51, 0.72);
}

.fp-criterion.is-failed::after {
    background: var(--fp-red);
    opacity: 0.04;
}

.fp-criterion__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.fp-criterion__icon,
.fp-criterion__state {
    display: grid;
    place-items: center;
}

.fp-criterion__icon {
    width: 39px;
    height: 39px;
    border: 1px solid rgba(77, 178, 255, 0.15);
    border-radius: 9px;
    background: var(--fp-blue-soft);
}

.fp-criterion__icon svg {
    width: 20px;
    fill: none;
    stroke: var(--fp-blue);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.25;
}

.fp-criterion__state {
    width: 31px;
    height: 31px;
    border: 1px solid var(--fp-border);
    border-radius: 9px;
    background: var(--fp-surface-soft);
    transition: border-color 300ms ease, background 300ms ease;
}

.fp-criterion__state svg {
    display: none;
    width: 18px;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.fp-pending-ring {
    width: 13px;
    height: 13px;
    border: 2px solid var(--fp-border-strong);
    border-top-color: var(--fp-blue);
    border-radius: 50%;
    animation: fpSpin 800ms linear infinite;
}

.fp-criterion.is-success .fp-criterion__state {
    border-color: rgba(77, 204, 154, 0.24);
    background: var(--fp-green-soft);
}

.fp-criterion.is-success .fp-check-svg {
    display: block;
    stroke: var(--fp-green);
    stroke-dasharray: 26;
    stroke-dashoffset: 26;
    animation: fpDrawIcon 500ms 80ms var(--fp-ease) forwards;
}

.fp-criterion.is-failed .fp-criterion__state {
    border-color: rgba(255, 88, 99, 0.24);
    background: var(--fp-red-soft);
}

.fp-criterion.is-failed .fp-cross-svg {
    display: block;
    stroke: var(--fp-red);
    stroke-dasharray: 26;
    stroke-dashoffset: 26;
    animation: fpDrawIcon 500ms 80ms var(--fp-ease) forwards;
}

.fp-criterion.is-success .fp-pending-ring,
.fp-criterion.is-failed .fp-pending-ring {
    display: none;
}

.fp-criterion__eyebrow {
    color: var(--fp-muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fp-criterion h4 {
    margin: 5px 0 6px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.fp-criterion > p {
    max-width: 360px;
    margin: 0;
    color: var(--fp-muted);
    font-size: 10px;
    line-height: 1.55;
}

.fp-criterion__result {
    position: absolute;
    right: 20px;
    bottom: 16px;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px; /* Чуть больше отступ */
    border-top: 1px solid var(--fp-border);
}

.fp-criterion__detail {
    color: var(--fp-muted);
    font-size: 10px; /* Чуть крупнее подпись */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fp-criterion__points {
    color: var(--fp-text); /* По умолчанию белый, пока не сработает класс */
    font-size: 20px; /* Сильно увеличили размер поинтов */
    font-weight: 700; /* Сделали жирнее */
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Легкая тень для объема */
}

.fp-criterion.is-success .fp-criterion__points {
    color: var(--fp-green);
    text-shadow: 0 0 15px rgba(77, 204, 154, 0.4); /* Неоновое свечение для зеленых поинтов */
}

.fp-criterion.is-failed .fp-criterion__points {
    color: var(--fp-red);
    text-shadow: 0 0 15px rgba(255, 88, 99, 0.4); /* Неоновое свечение для красных поинтов (0) */
}

.fp-reward {
    margin-top: 24px; /* Чуть больше отступ */
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08); /* Светящийся кант */
    border-radius: 24px; /* Более округлый */
    background: linear-gradient(180deg, rgba(30, 38, 46, 0.7) 0%, rgba(15, 20, 25, 0.9) 100%); /* Премиум стекло */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 35px 80px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.fp-reward__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Легкий разделитель */
}

.fp-reward__header h3 {
    margin: 5px 0 5px;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.fp-reward__header p {
    margin: 0;
    color: var(--fp-muted);
    font-size: 10px;
}

.fp-reward-count {
    display: flex;
    min-width: 80px;
    min-height: 60px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(77, 178, 255, 0.25);
    border-radius: 12px;
    background: radial-gradient(circle at center, rgba(77, 178, 255, 0.15), rgba(77, 178, 255, 0.05));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 10px 20px rgba(0,0,0,0.2);
}

.fp-reward-count span {
    color: var(--fp-blue);
    font-size: 24px; /* Сделали цифру крупнее */
    font-weight: 700;
    text-shadow: 0 0 15px rgba(77, 178, 255, 0.6); /* Неоновое свечение */
}

.fp-reward-count small {
    color: var(--fp-muted);
    font-size: 7px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.fp-empty-reward {
    display: flex;
    min-height: 135px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 22px;
    text-align: left;
}

.fp-empty-reward > span {
    display: grid;
    width: 41px;
    height: 41px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--fp-border);
    border-radius: 10px;
    background: var(--fp-surface-soft);
}

.fp-empty-reward svg {
    width: 21px;
    fill: none;
    stroke: var(--fp-muted);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.25;
}

.fp-empty-reward div {
    display: flex;
    flex-direction: column;
}

.fp-empty-reward strong {
    font-size: 11px;
    font-weight: 600;
}

.fp-empty-reward small {
    margin-top: 3px;
    color: var(--fp-muted);
    font-size: 9px;
}

.fp-empty-reward.is-ineligible > span {
    border-color: rgba(255, 88, 99, 0.2);
    background: var(--fp-red-soft);
}

.fp-empty-reward.is-ineligible svg {
    stroke: var(--fp-red);
}

.fp-reward-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
    padding: 20px 24px 24px;
}

.fp-reward-number {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: 12px; /* Возвращаем компактные отступы */
    border: 1px solid rgba(77, 178, 255, 0.2); 
    border-radius: 12px; /* Меньше скругление */
    background: linear-gradient(135deg, rgba(30, 40, 50, 0.8) 0%, rgba(15, 20, 25, 0.9) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 15px 35px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateY(10px);
    animation: fpRewardIn 430ms calc(var(--reward-index) * 65ms) var(--fp-ease) forwards;
}

.fp-reward-number::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 0%, rgba(77, 178, 255, 0.15), transparent 60%);
    pointer-events: none;
}

.fp-reward-number__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--fp-muted);
    font-size: 7px; /* Возвращаем мелкий шрифт для шапки карточки */
    text-transform: uppercase;
}

.fp-reward-number__meta strong {
    color: var(--fp-blue);
    font-size: 7px;
}

.fp-reward-number__value {
    position: relative;
    z-index: 1;
    display: block;
    margin: 22px 0 6px; /* Меньше отступ */
    font-size: 13px; /* Оптимальный размер, чтобы влезло при 2 в ряд */
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em; /* Меньше межбуквенный интервал, чтобы экономить место */
    text-shadow: 0 0 15px rgba(77, 178, 255, 0.4); 
    white-space: nowrap; /* Все же лучше в одну строку */
    text-overflow: ellipsis; /* Если прям совсем не влезет (например узкий экран), то точки, чтобы не сломало карточку */
    overflow: hidden;
}

.fp-reward-number__pattern {
    color: var(--fp-muted);
    font-size: 7px;
}

.fp-reward-number__pattern {
    color: var(--fp-muted);
    font-size: 7px;
}

.fp-reward__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px; /* Чуть больше отступ */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(13, 17, 21, 0.4);
}

.fp-reward-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--fp-muted);
    font-size: 8px;
}

.fp-reward-notice svg {
    width: 15px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--fp-blue);
    stroke-linecap: round;
    stroke-width: 1.3;
}

.fp-reward-notice.is-warning {
    color: #bd8990;
}

.fp-reward-notice.is-warning svg {
    stroke: var(--fp-red);
}

.fp-claim-success {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    margin-top: 16px;
    padding: 22px;
    border: 1px solid rgba(77, 204, 154, 0.22);
    border-radius: var(--fp-radius-lg);
    background:
        radial-gradient(circle at 0 50%, rgba(77, 204, 154, 0.09), transparent 22%),
        rgba(33, 42, 51, 0.72);
    animation: fpSectionIn 500ms var(--fp-ease) both;
}

.fp-claim-success__icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
}

.fp-claim-success__icon svg {
    width: 50px;
    fill: none;
    stroke: var(--fp-green);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.fp-claim-success__icon circle {
    stroke-dasharray: 126;
    stroke-dashoffset: 126;
    animation: fpDrawIcon 800ms var(--fp-ease) forwards;
}

.fp-claim-success__icon path {
    stroke-dasharray: 32;
    stroke-dashoffset: 32;
    animation: fpDrawIcon 600ms 400ms var(--fp-ease) forwards;
}

.fp-claim-success h3 {
    margin: 4px 0;
    font-size: 18px;
    font-weight: 600;
}

.fp-claim-success p {
    margin: 0;
    color: var(--fp-muted);
    font-size: 9px;
}

.fp-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--fp-border);
    background: rgba(13, 17, 21, 0.42);
}

.fp-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: min(calc(100% - 40px), var(--fp-container));
    min-height: 105px;
    margin: 0 auto;
    color: var(--fp-muted-deep);
    font-size: 9px;
}

.fp-brand--footer {
    opacity: 0.55;
}

.fp-brand--footer .fp-brand__mark {
    width: 29px;
    height: 29px;
}

.fp-brand--footer .fp-brand__mark svg {
    width: 19px;
}

.fp-brand--footer .fp-brand__text {
    font-size: 12px;
}

.fp-footer nav {
    display: flex;
    gap: 18px;
}

.fp-footer nav a {
    color: var(--fp-muted) !important;
}

.fp-footer__inner > span {
    justify-self: end;
}

.fp-modal {
    position: fixed;
    z-index: 50;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    visibility: hidden;
}

.fp-modal.is-open {
    visibility: visible;
}

.fp-modal__backdrop {
    position: absolute;
    inset: 0;
    padding: 0;
    border: 0;
    background: rgba(7, 10, 13, 0.77);
    opacity: 0;
    cursor: default;
    backdrop-filter: blur(12px);
    transition: opacity 260ms ease;
}

.fp-modal.is-open .fp-modal__backdrop {
    opacity: 1;
}

.fp-wallet-modal {
    position: relative;
    z-index: 1;
    width: min(100%, 460px); /* Чуть шире */
    padding: 36px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 0, rgba(77, 178, 255, 0.12), transparent 40%),
        rgba(22, 28, 34, 0.85); /* Полупрозрачность для блюра */
    box-shadow: 0 45px 120px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    transition: opacity 0.3s var(--fp-ease), transform 0.4s var(--fp-ease);
}

.fp-modal.is-open .fp-wallet-modal {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.fp-modal__close {
    position: absolute;
    z-index: 2;
    top: 15px;
    right: 15px;
    display: grid;
    width: 33px;
    height: 33px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--fp-border);
    border-radius: 8px;
    background: var(--fp-surface-soft);
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease;
}

.fp-modal__close:hover {
    border-color: var(--fp-border-strong);
    background: rgba(255, 255, 255, 0.06);
}

.fp-modal__close svg {
    width: 15px;
    fill: none;
    stroke: var(--fp-muted);
    stroke-linecap: round;
    stroke-width: 1.5;
}

.fp-wallet-modal__choose,
.fp-wallet-modal__connecting {
    text-align: center;
    animation: fpSectionIn 380ms var(--fp-ease) both;
}

.fp-wallet-modal__icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 6px auto 22px;
    place-items: center;
    border: 1px solid rgba(77, 178, 255, 0.2);
    border-radius: 15px;
    background: var(--fp-blue-soft);
}

.fp-wallet-modal__icon svg {
    width: 27px;
    fill: none;
    stroke: var(--fp-blue);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.3;
}

.fp-wallet-modal h2 {
    margin: 7px 0 8px;
    font-size: 27px;
    font-weight: 600;
    letter-spacing: -0.035em;
}

.fp-wallet-modal p {
    max-width: 340px;
    margin: 0 auto;
    color: var(--fp-muted);
    font-size: 10px;
    line-height: 1.6;
}

.fp-wallet-options {
    display: grid;
    gap: 8px;
    margin: 25px 0 17px;
}

.fp-wallet-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px;
    border: 1px solid var(--fp-border);
    border-radius: 10px;
    background: rgba(17, 22, 27, 0.26);
    cursor: pointer;
    text-align: left;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.fp-wallet-option:hover {
    transform: translateY(-2px);
    border-color: rgba(77, 178, 255, 0.24);
    background: rgba(77, 178, 255, 0.045);
}

.fp-wallet-option__logo {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 9px;
}

.fp-wallet-option__logo--established {
    border: 1px solid rgba(77, 178, 255, 0.18);
    background: var(--fp-blue-soft);
}

.fp-wallet-option__logo--empty {
    border: 1px solid var(--fp-border);
    background: var(--fp-surface-soft);
}

.fp-wallet-option__logo svg {
    width: 21px;
    fill: none;
    stroke: var(--fp-blue);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.3;
}

.fp-wallet-option__logo--empty svg {
    stroke: var(--fp-muted);
}

.fp-wallet-option > span:nth-child(2) {
    display: flex;
    flex-direction: column;
}

.fp-wallet-option strong {
    font-size: 11px;
    font-weight: 600;
}

.fp-wallet-option small {
    margin-top: 2px;
    color: var(--fp-muted);
    font-size: 8px;
}

.fp-wallet-option__arrow {
    width: 16px;
    fill: none;
    stroke: var(--fp-muted);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.4;
}

.fp-wallet-modal__note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--fp-muted-deep);
    font-size: 8px;
}

.fp-wallet-modal__note svg {
    width: 14px;
    fill: none;
    stroke: var(--fp-green);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.3;
}

.fp-wallet-modal__connecting {
    padding: 35px 0 17px;
}

.fp-connect-animation {
    position: relative;
    display: grid;
    width: 108px;
    height: 108px;
    margin: 0 auto 29px;
    place-items: center;
}

.fp-connect-animation__ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(77, 178, 255, 0.16);
    border-top-color: var(--fp-blue);
    border-radius: 50%;
    animation: fpSpin 1.4s linear infinite;
}

.fp-connect-animation__ring::before,
.fp-connect-animation__ring::after {
    position: absolute;
    border: 1px solid rgba(77, 178, 255, 0.12);
    border-radius: 50%;
    content: "";
}

.fp-connect-animation__ring::before {
    inset: 11px;
    border-style: dashed;
    animation: fpSpin 4s linear infinite reverse;
}

.fp-connect-animation__ring::after {
    inset: 25px;
}

.fp-connect-animation__core {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(77, 178, 255, 0.22);
    border-radius: 13px;
    background: var(--fp-blue-soft);
    box-shadow: 0 0 30px rgba(77, 178, 255, 0.09);
}

.fp-connect-animation__core svg {
    width: 24px;
    fill: none;
    stroke: var(--fp-blue);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.25;
}

.fp-connect-progress {
    width: 100%;
    height: 3px;
    margin-top: 26px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.055);
}

.fp-connect-progress i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--fp-blue-dark), var(--fp-blue));
}

.fp-modal.is-connecting .fp-connect-progress i {
    animation: fpConnectProgress 1.35s var(--fp-ease) forwards;
}

.fp-toast {
    position: fixed;
    z-index: 70;
    top: 18px;
    right: 18px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    min-width: 265px;
    padding: 11px 13px;
    border: 1px solid rgba(77, 204, 154, 0.2);
    border-radius: 10px;
    background: rgba(33, 42, 51, 0.96);
    box-shadow: 0 17px 45px rgba(0, 0, 0, 0.32);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 220ms ease, transform 300ms var(--fp-ease);
}

.fp-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fp-toast__icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 8px;
    background: var(--fp-green-soft);
}

.fp-toast__icon svg {
    width: 16px;
    fill: none;
    stroke: var(--fp-green);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.fp-toast > span:last-child {
    display: flex;
    flex-direction: column;
}

.fp-toast strong {
    font-size: 9px;
    font-weight: 600;
}

.fp-toast small {
    margin-top: 2px;
    color: var(--fp-muted);
    font-size: 8px;
}

/* ============================================================
   SCANNING OVERLAY
   ============================================================ */

.fp-scan-overlay {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 340px;
    padding: 48px 24px;
    text-align: center;
    animation: fpSectionIn 600ms var(--fp-ease) both;
}

.fp-scan-overlay[hidden] { display: none; }

.fp-scan-spinner {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 32px;
}

.fp-scan-spinner__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    animation: fpSpin 1.8s linear infinite;
}

.fp-scan-spinner__ring:nth-child(1) {
    border-top-color: var(--fp-blue);
    border-right-color: var(--fp-blue);
    animation-duration: 1.8s;
}

.fp-scan-spinner__ring:nth-child(2) {
    inset: 8px;
    border-bottom-color: var(--fp-green);
    border-left-color: var(--fp-green);
    animation-duration: 2.4s;
    animation-direction: reverse;
}

.fp-scan-spinner__ring:nth-child(3) {
    inset: 16px;
    border-top-color: rgba(255, 255, 255, 0.12);
    animation-duration: 3.2s;
}

.fp-scan-spinner__dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: var(--fp-blue);
    box-shadow: 0 0 12px var(--fp-blue), 0 0 24px rgba(56, 139, 253, 0.3);
    animation: fpScanPulse 1.6s ease-in-out infinite;
}

.fp-scan-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--fp-heading);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.fp-scan-sub {
    font-size: 13px;
    color: var(--fp-muted);
    margin-bottom: 24px;
    max-width: 320px;
}

.fp-scan-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 300px;
}

.fp-scan-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--fp-muted);
    opacity: 0.35;
    transition: opacity 500ms ease, color 500ms ease;
}

.fp-scan-step.is-active {
    opacity: 1;
    color: var(--fp-body);
}

.fp-scan-step.is-done {
    opacity: 0.7;
    color: var(--fp-green);
}

.fp-scan-step__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    display: grid;
    place-items: center;
    transition: border-color 400ms ease, background 400ms ease;
}

.fp-scan-step.is-active .fp-scan-step__icon {
    border-color: var(--fp-blue);
    background: rgba(56, 139, 253, 0.1);
    animation: fpScanPulse 1.6s ease-in-out infinite;
}

.fp-scan-step.is-done .fp-scan-step__icon {
    border-color: var(--fp-green);
    background: rgba(77, 204, 154, 0.12);
}

.fp-scan-step.is-done .fp-scan-step__icon::after {
    content: "✓";
    font-size: 10px;
    color: var(--fp-green);
}

.fp-scan-shimmer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--fp-blue), transparent);
    animation: fpShimmerSlide 2s ease-in-out infinite;
}

@keyframes fpScanPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.6; }
}

@keyframes fpShimmerSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ============================================================
   END SCANNING OVERLAY
   ============================================================ */

@keyframes fpMenuIn {
    from { opacity: 0; transform: translateY(-7px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fpOrbitOuter {
    0%, 100% { transform: rotate(-12deg) translateY(0); }
    50% { transform: rotate(-9deg) translateY(-7px); }
}

@keyframes fpOrbitInner {
    0%, 100% { transform: rotate(14deg) translateY(0); }
    50% { transform: rotate(10deg) translateY(6px); }
}

@keyframes fpCardShine {
    0%, 65% { left: -65%; }
    85%, 100% { left: 125%; }
}

@keyframes fpFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes fpProgressIn {
    from { transform: scaleX(0); transform-origin: left; }
    to { transform: scaleX(1); transform-origin: left; }
}

@keyframes fpSpin {
    to { transform: rotate(360deg); }
}

@keyframes fpDrawIcon {
    to { stroke-dashoffset: 0; }
}

@keyframes fpSectionIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fpRewardIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fpConnectProgress {
    0% { width: 0; }
    70% { width: 82%; }
    100% { width: 100%; }
}

@media (max-width: 960px) {
    .fp-header__inner {
        grid-template-columns: 1fr auto;
    }

    .fp-nav {
        display: none;
    }

    .fp-hero {
        grid-template-columns: 1fr;
        padding-top: 82px;
        text-align: center;
    }

    .fp-hero__content {
        padding-left: 0;
    }

    .fp-hero__description {
        margin: 0 auto;
    }

    .fp-hero__actions {
        justify-content: center;
    }

    .fp-safety-line {
        justify-content: center;
    }

    .fp-number-visual {
        min-height: 475px;
    }

    .fp-floating-stat--points {
        right: 10%;
    }

    .fp-floating-stat--supply {
        left: 12%;
    }

    .fp-score-overview {
        grid-template-columns: 1fr;
    }

    .fp-eligibility-card {
        min-height: 170px;
    }

    .fp-reward-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* На планшете 2 в ряд */
    }
}

@media (max-width: 700px) {
    .fp-header {
        height: 70px;
    }

    .fp-header__inner,
    .fp-hero,
    .fp-drop-status,
    .fp-results,
    .fp-footer__inner {
        width: min(calc(100% - 28px), var(--fp-container));
    }

    .fp-demo-badge {
        display: none;
    }

    .fp-menu-button {
        display: flex;
    }

    .fp-hero {
        min-height: auto;
        padding: 20px 0 35px;
    }

    .fp-hero h1 {
        font-size: clamp(34px, 9vw, 60px);
        max-width: 100%;
        line-height: 1.05;
        letter-spacing: -0.04em;
    }

    .fp-hero__description {
        font-size: 13px;
    }

    .fp-number-visual {
        min-height: 405px;
        margin: 5px -5px 0;
    }

    .fp-orbit--outer {
        width: 400px;
        height: 280px;
    }

    .fp-orbit--inner {
        width: 310px;
        height: 220px;
    }

    .fp-number-card {
        width: min(355px, 84%);
        padding: 21px;
    }

    .fp-number-card__value {
        margin: 42px 0 39px;
    }

    .fp-floating-stat {
        padding: 8px 10px;
    }

    .fp-floating-stat--points {
        top: 51px;
        right: 0;
    }

    .fp-floating-stat--supply {
        bottom: 52px;
        left: 0;
    }

    .fp-drop-status {
        grid-template-columns: 1fr 1fr;
        gap: 20px; /* Немного раздвинем на мобильных */
        padding: 22px; /* Чуть больше отступ на мобильных */
        margin-bottom: 62px;
    }

    .fp-drop-status__progress {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .fp-results__top {
        display: block;
    }

    .fp-profile-switcher {
        margin-top: 17px;
    }

    .fp-wallet-bar {
        grid-template-columns: auto 1fr;
    }

    .fp-wallet-bar__status {
        grid-column: 1 / -1;
        justify-content: space-between;
        padding-top: 10px;
        border-top: 1px solid var(--fp-border);
    }

    .fp-score-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .fp-score-ring {
        margin: 0 auto;
    }

    .fp-score-card__copy > p {
        margin: 0 auto;
    }

    .fp-criteria-grid {
        grid-template-columns: 1fr;
    }

    .fp-reward__header {
        align-items: flex-start;
    }

    .fp-reward-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* Возвращаем 2 в ряд на мобилке! */
        gap: 9px; /* Возвращаем компактный отступ */
        padding-right: 16px;
        padding-left: 16px;
    }

    .fp-reward__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .fp-reward-notice {
        justify-content: center;
        text-align: center;
    }

    .fp-button--claim {
        width: 100%;
    }

    .fp-claim-success {
        grid-template-columns: auto 1fr;
    }

    .fp-claim-success .fp-button {
        grid-column: 1 / -1;
    }

    .fp-footer__inner {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 15px;
        padding: 28px 0;
        text-align: center;
    }

    .fp-brand--footer,
    .fp-footer__inner > span {
        justify-self: center;
    }

    .fp-modal {
        align-items: end;
        padding: 7px;
    }

    .fp-wallet-modal {
        width: 100%;
        max-height: calc(100vh - 14px);
        overflow-y: auto;
        padding: 29px 20px 23px;
        border-radius: 17px;
    }

    .fp-toast {
        right: 12px;
        left: 12px;
        min-width: 0;
    }
}

@media (max-width: 430px) {
    .fp-brand__text {
        font-size: 13px;
    }

    .fp-hero__actions {
        display: grid;
    }

    .fp-hero__actions .fp-button {
        width: 100%;
    }

    .fp-number-visual {
        min-height: 365px;
    }

    .fp-number-card {
        width: 91%;
    }

    .fp-number-card__value strong {
        font-size: 24px;
    }

    .fp-floating-stat--points {
        top: 28px;
    }

    .fp-floating-stat--supply {
        bottom: 28px;
    }

    .fp-drop-status {
        gap: 14px;
        padding: 15px;
    }

    .fp-drop-status__icon {
        display: none;
    }

    .fp-drop-status__item--right {
        text-align: right;
    }

    .fp-results__top h2 {
        font-size: 34px;
    }

    .fp-score-card {
        padding: 22px 18px;
    }

    .fp-reward__header {
        padding: 19px 16px;
    }

    .fp-reward__header h3 {
        font-size: 20px;
    }

    .fp-reward-number {
        padding: 11px;
    }

    .fp-reward-number__value {
        margin-top: 27px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
