.statspro-site {
    background: #f4f8fc;
}

.statspro-nav {
    border-bottom: 1px solid rgba(15, 94, 215, 0.16);
}

.statspro-brand {
    text-transform: none;
    letter-spacing: 0;
}

.statspro-disabled-action {
    cursor: default;
    opacity: 0.78;
    user-select: none;
}

.statspro-member-badge {
    display: inline-flex;
    align-items: center;
    max-width: 240px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #c5daf7;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
    color: #123a73;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.statspro-home,
.statspro-simple-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px 0 44px;
    display: grid;
    gap: 24px;
}

.statspro-hero,
.statspro-panel,
.statspro-tool-card,
.statspro-setting-card {
    border: 1px solid rgba(125, 182, 255, 0.22);
    box-shadow: 0 24px 60px rgba(10, 37, 84, 0.14);
}

.statspro-hero {
    min-height: 430px;
    padding: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 28px;
    align-items: stretch;
    border-radius: 28px;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(88, 214, 255, 0.24), transparent 25%),
        linear-gradient(135deg, #0a2f6b 0%, #0f5ed7 58%, #a9d2ff 100%);
    color: #ffffff;
}

.statspro-kicker {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 16px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(8, 31, 73, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f8fbff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.statspro-hero h1,
.statspro-panel h1 {
    margin: 0;
    line-height: 0.95;
    letter-spacing: 0;
}

.statspro-hero h1 {
    font-size: clamp(2.8rem, 4.8vw, 5.2rem);
}

.statspro-lead,
.statspro-panel p,
.statspro-setting-card p,
.statspro-tool-card p {
    line-height: 1.7;
}

.statspro-lead {
    max-width: 720px;
    margin: 18px 0 0;
    color: rgba(240, 247, 255, 0.95);
    font-size: 17px;
}

.statspro-actions,
.statspro-panel-actions,
.statspro-login-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.statspro-actions {
    margin-top: 26px;
}

.statspro-panel-actions {
    margin-top: 24px;
}

.statspro-login-actions {
    margin-top: 6px;
}

.statspro-snapshot {
    display: grid;
    gap: 14px;
    align-content: center;
}

.statspro-snapshot div {
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.14);
}

.statspro-snapshot span,
.statspro-tool-card span,
.statspro-setting-card span {
    display: block;
    margin-bottom: 8px;
    color: #69d68d;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.statspro-snapshot strong {
    display: block;
    color: #ffffff;
    font-size: 1.45rem;
}

.statspro-tool-grid,
.statspro-settings-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.statspro-tool-card,
.statspro-setting-card,
.statspro-panel {
    border-radius: 22px;
    background: #ffffff;
    color: #163356;
}

.statspro-tool-card {
    min-height: 210px;
    padding: 22px;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.statspro-tool-card:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 197, 94, 0.38);
    box-shadow: 0 26px 64px rgba(10, 37, 84, 0.18);
}

.statspro-tool-card strong,
.statspro-setting-card h2 {
    display: block;
    margin: 0;
    color: #0a2f6b;
    font-size: 1.35rem;
}

.statspro-panel {
    padding: 34px;
}

.statspro-panel .statspro-kicker {
    background: #eaf3ff;
    border-color: #cfe2fb;
    color: #0f5ed7;
}

.statspro-panel h1 {
    color: #0a2f6b;
    font-size: clamp(2.2rem, 4vw, 4.2rem);
}

.statspro-panel p {
    max-width: 760px;
    color: #52667d;
    font-size: 16px;
}

.statspro-setting-card {
    padding: 24px;
}

.statspro-settings-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.statspro-login-page {
    max-width: 760px;
}

.statspro-login-form {
    display: grid;
    gap: 16px;
    max-width: 520px;
    margin-top: 12px;
}

.statspro-form-field {
    display: grid;
    gap: 8px;
    color: #174a86;
    font-weight: 900;
}

.statspro-form-field input {
    width: 100%;
    height: 46px;
    padding: 10px 12px;
    box-sizing: border-box;
    border: 1px solid #b9d0ec;
    border-radius: 10px;
    background: #ffffff;
    color: #00285c;
    font: inherit;
}

.statspro-form-field input:focus {
    border-color: #1d75df;
    box-shadow: 0 0 0 3px rgba(29, 117, 223, 0.14);
    outline: none;
}

.statspro-error-banner {
    max-width: 560px;
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid #ffb3c0;
    border-radius: 16px;
    background: #fff1f3;
    color: #991b1b;
    line-height: 1.6;
}

.statspro-login-note {
    margin-top: 22px;
}

@media (max-width: 980px) {
    .statspro-hero,
    .statspro-tool-grid,
    .statspro-settings-grid {
        grid-template-columns: 1fr;
    }
}

.statspro-site .fhg-list-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(15, 76, 129, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 36px rgba(17, 41, 77, 0.08);
}

.statspro-site .fhg-list-block .fhg-page-header {
    padding: 0;
}

.statspro-site .fhg-page-header h2 {
    margin: 0 0 6px;
    color: #0d2743;
    font-size: 1.25rem;
}

.statspro-site .fhg-page-header p {
    margin: 0;
    color: #4a6686;
}

.statspro-site .page-inline-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.statspro-fixtures-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.statspro-fixtures-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.statspro-fixtures-header .statspro-kicker {
    margin-bottom: 8px;
    color: #0f5ed7;
}

.statspro-fixtures-header h1 {
    margin: 0;
    color: #0a2f6b;
    font-size: clamp(2rem, 4vw, 3.6rem);
}

.statspro-fixtures-header p {
    max-width: 720px;
    margin: 10px 0 0;
    color: #52667d;
}

.statspro-fixtures-summary {
    min-width: 190px;
    padding: 18px 20px;
    border: 1px solid rgba(15, 76, 129, 0.12);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(17, 41, 77, 0.08);
}

.statspro-fixtures-summary span {
    display: block;
    color: #0f5ed7;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.statspro-fixtures-summary strong {
    display: block;
    margin-top: 7px;
    color: #0d2743;
    font-size: 1.25rem;
}

@media (max-width: 780px) {
    .statspro-fixtures-header {
        flex-direction: column;
        align-items: stretch;
    }
}

.statspro-site .fixture-header-actions,
.statspro-site .bookmaker-tabs,
.statspro-site #betting-panel,
.statspro-site #kelly-popup-trigger,
.statspro-site #kelly-popup {
    display: none !important;
}

.statspro-site #stats-panel {
    display: block !important;
}

.statspro-site .detail-page-layout {
    display: block;
}

.statspro-site .stats-panel {
    width: 100%;
    max-width: none;
}

.statspro-site .detail-top-bar {
    justify-content: flex-start;
}

.statspro-profile-page {
    display: grid;
    gap: 18px;
}

.statspro-profile-header,
.statspro-profile-card {
    padding: 22px;
    border: 1px solid rgba(15, 76, 129, 0.12);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(17, 41, 77, 0.08);
}

.statspro-profile-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.statspro-profile-header h1,
.statspro-profile-card h2 {
    margin: 0;
    color: #0a2f6b;
}

.statspro-profile-header p,
.statspro-profile-card p {
    margin: 8px 0 0;
    color: #52667d;
}

.statspro-profile-status,
.statspro-profile-detail {
    padding: 16px;
    border: 1px solid #dbe8fb;
    border-radius: 14px;
    background: #f8fbff;
}

.statspro-profile-status span,
.statspro-profile-detail span {
    display: block;
    color: #0f5ed7;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.statspro-profile-status strong,
.statspro-profile-detail strong {
    display: block;
    margin-top: 7px;
    color: #0d2743;
    overflow-wrap: anywhere;
}

.statspro-profile-card-head {
    margin-bottom: 16px;
}

.statspro-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.statspro-profile-field input,
.statspro-telegram-controls input[type="time"] {
    width: 100%;
    margin-top: 8px;
    padding: 10px 11px;
    border: 1px solid #c6d8f2;
    border-radius: 10px;
    background: #ffffff;
    color: #18375f;
}

.statspro-profile-field small {
    display: block;
    margin-top: 6px;
    color: #52667d;
}

.statspro-telegram-form {
    display: grid;
    gap: 16px;
}

.statspro-telegram-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.statspro-telegram-controls label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 13px;
    border: 1px solid #dbe8fb;
    border-radius: 13px;
    background: #f8fbff;
    color: #244a73;
    font-weight: 800;
}

.statspro-telegram-toggle {
    flex-direction: row !important;
    align-items: center;
}

.statspro-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.statspro-primary-action,
.statspro-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.statspro-primary-action {
    border: 1px solid #0b63ce;
    background: #0b63ce;
    color: #ffffff;
}

.statspro-secondary-action {
    border: 1px solid #c6d8f2;
    background: #ffffff;
    color: #18375f;
}

.statspro-secondary-action:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.statspro-profile-feedback {
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 800;
}

.statspro-profile-feedback-success {
    color: #17613b;
    background: #e8f8ef;
    border: 1px solid #bde7ce;
}

.statspro-profile-feedback-error {
    color: #8a1f1f;
    background: #fff1f1;
    border: 1px solid #f0c3c3;
}

@media (max-width: 760px) {
    .statspro-profile-header {
        flex-direction: column;
    }
}

.statspro-site .site-nav-button-row .site-join-button.active {
    box-shadow: 0 10px 22px rgba(15, 94, 215, 0.22);
}

.statspro-profile-page.page-shell {
    width: min(1120px, calc(100vw - 40px));
    max-width: 1120px;
    margin: 0 auto;
}

.statspro-profile-page {
    display: grid;
    gap: 20px;
    padding-bottom: 30px;
}

.statspro-profile-hero {
    min-height: 210px;
    padding: 32px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 250px);
    gap: 24px;
    align-items: center;
    border: 1px solid rgba(125, 182, 255, 0.32);
    border-radius: 22px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(3, 23, 56, 0.96) 0%, rgba(7, 48, 103, 0.9) 48%, rgba(15, 94, 215, 0.84) 100%),
        radial-gradient(circle at 82% 12%, rgba(116, 199, 255, 0.36), transparent 32%);
    color: #ffffff;
    box-shadow: 0 24px 60px rgba(10, 37, 84, 0.18);
}

.statspro-profile-hero > div:first-child {
    min-width: 0;
}

.statspro-profile-hero .statspro-kicker {
    margin-bottom: 14px;
}

.statspro-profile-hero h1 {
    max-width: 100%;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.1rem, 4vw, 3.7rem);
    line-height: 1.02;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.statspro-profile-hero p {
    max-width: 680px;
    margin: 14px 0 0;
    color: rgba(245, 249, 255, 0.94);
    font-size: 1rem;
    line-height: 1.65;
}

.statspro-profile-hero-status {
    min-height: 138px;
    padding: 24px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    text-align: center;
}

.statspro-profile-hero-status span,
.profile-detail-label,
.profile-action-label,
.profile-telegram-control-label {
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.statspro-profile-hero-status span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #eaf4ff;
    font-size: 0.68rem;
    font-weight: 900;
}

.statspro-profile-hero-status strong {
    color: #ffffff;
    font-size: 1.75rem;
    line-height: 1;
}

.statspro-profile-hero-status small {
    color: rgba(245, 249, 255, 0.92);
    font-weight: 800;
}

.statspro-profile-page .profile-feedback {
    padding: 16px 20px;
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(17, 41, 77, 0.08);
    text-align: center;
}

.statspro-profile-page .profile-feedback--success {
    border: 1px solid rgba(33, 114, 72, 0.28);
    background: #e9f8ef;
    color: #166534;
}

.statspro-profile-page .profile-feedback--error {
    border: 1px solid rgba(185, 28, 28, 0.24);
    background: #fff0f2;
    color: #991b1b;
}

.statspro-profile-page .profile-section-heading {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 auto;
    text-align: center;
}

.statspro-profile-page .profile-section-heading h2 {
    margin: 0;
}

.statspro-profile-page .profile-section-heading p {
    margin: 8px 0 0;
    color: #ffffff;
    font-size: 0.94rem;
    line-height: 1.55;
}

.statspro-profile-page .section-card {
    background: rgba(255, 255, 255, 0.36);
    box-shadow: 0 18px 44px rgba(10, 37, 84, 0.08);
}

.statspro-profile-page .section-card-header {
    background: linear-gradient(90deg, #153c78 0%, #0f5ed7 55%, #448de8 100%);
    color: #ffffff;
}

.statspro-profile-page .section-card-header h2,
.statspro-profile-page .profile-section-heading h2 {
    color: #ffffff;
}

.statspro-profile-page .section-card-body {
    max-width: none;
    background: rgba(255, 255, 255, 0.5);
}

.statspro-profile-page .profile-section-body {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    gap: 24px;
    justify-items: center;
    text-align: center;
}

.profile-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    width: min(960px, 100%);
    margin: 0 auto;
}

.profile-overview-grid--account,
.profile-overview-grid--telegram-top {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.profile-detail-card,
.profile-action-card,
.profile-telegram-control {
    border: 1px solid rgba(42, 96, 188, 0.24);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(243, 248, 255, 0.98) 100%);
    box-shadow: 0 16px 32px rgba(11, 36, 82, 0.08);
}

.profile-detail-card {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 22px 20px;
    text-align: center;
}

.profile-detail-card--compact {
    min-height: 164px;
    align-content: center;
}

.profile-detail-label,
.profile-action-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto;
    padding: 7px 12px;
    border: 1px solid rgba(97, 149, 231, 0.28);
    border-radius: 999px;
    background: rgba(237, 245, 255, 0.96);
    color: #28508d;
    font-size: 11px;
    font-weight: 900;
}

.profile-detail-value {
    color: #062f67;
    font-size: 1.1rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.profile-detail-note {
    margin: 0;
    color: #52667d;
    font-size: 0.92rem;
    line-height: 1.55;
}

.profile-telegram-form {
    width: min(980px, 100%);
    display: grid;
    gap: 18px;
    justify-items: center;
    text-align: center;
    padding: 20px;
}

.profile-region-card {
    cursor: text;
}

.profile-region-input {
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    color: #062f67;
    font: inherit;
    font-size: 1.1rem;
    font-weight: 900;
    text-align: center;
}

.profile-region-input:focus {
    outline: none;
}

.profile-region-time {
    color: #61708a;
    font-size: 0.92rem;
    font-weight: 700;
}

.profile-telegram-control-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: min(980px, 100%);
    align-items: stretch;
}

.profile-telegram-control {
    display: grid;
    gap: 12px;
    justify-items: center;
    align-content: center;
    min-height: 120px;
    padding: 18px 16px;
}

.profile-telegram-control-label {
    color: #28508d;
    font-size: 0.76rem;
    font-weight: 900;
}

.profile-switch {
    position: relative;
    width: 54px;
    height: 30px;
    display: inline-flex;
}

.profile-switch input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.profile-switch-track {
    width: 100%;
    border-radius: 999px;
    background: #d8e6f8;
    box-shadow: inset 0 0 0 1px rgba(42, 96, 188, 0.18);
    transition: background 0.16s ease;
}

.profile-switch-track::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 6px 14px rgba(11, 36, 82, 0.22);
    transition: transform 0.16s ease;
}

.profile-switch input:checked + .profile-switch-track {
    background: #0b63ce;
}

.profile-switch input:checked + .profile-switch-track::after {
    transform: translateX(24px);
}

.profile-telegram-control--time input {
    width: 100%;
    max-width: 170px;
    padding: 11px 14px;
    border: 1px solid rgba(42, 96, 188, 0.18);
    border-radius: 16px;
    background: #ffffff;
    color: #062f67;
    font: inherit;
    font-weight: 800;
    text-align: center;
}

.profile-telegram-control--time input:focus,
.auth-field input:focus {
    outline: none;
    border-color: rgba(15, 94, 215, 0.48);
    box-shadow: 0 0 0 4px rgba(15, 94, 215, 0.12);
}

.profile-telegram-control.is-muted {
    opacity: 0.58;
}

.profile-telegram-actions,
.profile-action-links,
.auth-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.profile-telegram-actions form {
    display: inline-flex;
}

.auth-form,
.profile-password-form {
    display: grid;
    gap: 16px;
}

.profile-password-form {
    width: min(640px, 100%);
    justify-items: center;
}

.auth-field {
    width: 100%;
    max-width: 520px;
    display: grid;
    gap: 8px;
    color: #174a86;
    font-weight: 900;
    text-align: left;
}

.auth-field input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #b9d0ec;
    border-radius: 12px;
    background: #ffffff;
    color: #00285c;
    font: inherit;
    box-sizing: border-box;
}

.profile-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    width: min(960px, 100%);
}

.profile-action-card {
    display: grid;
    align-items: center;
    justify-items: center;
    gap: 16px;
    padding: 22px 20px;
    color: #062f67;
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.profile-action-card:hover {
    transform: translateY(-2px);
    border-color: rgba(35, 86, 176, 0.36);
    box-shadow: 0 24px 40px rgba(11, 36, 82, 0.12);
}

.profile-action-card strong {
    color: #062f67;
    font-size: 1rem;
    line-height: 1.6;
}

.shared-button,
.statspro-profile-page .site-settings-save,
.statspro-profile-page .site-settings-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid #0b63ce;
    border-radius: 999px;
    background: linear-gradient(135deg, #0b63ce 0%, #1d75df 100%);
    color: #ffffff;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(15, 94, 215, 0.22);
    cursor: pointer;
}

.statspro-profile-page .site-settings-secondary {
    background: #ffffff;
    color: #18375f;
    border-color: #c6d8f2;
    box-shadow: 0 10px 20px rgba(11, 36, 82, 0.08);
}

.shared-button:hover,
.statspro-profile-page .site-settings-save:hover,
.statspro-profile-page .site-settings-secondary:hover {
    transform: translateY(-1px);
}

.statspro-profile-page .site-settings-secondary:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

@media (max-width: 900px) {
    .statspro-profile-hero,
    .profile-overview-grid--account,
    .profile-overview-grid--telegram-top,
    .profile-telegram-control-row {
        grid-template-columns: 1fr;
    }

    .statspro-profile-page.page-shell {
        width: min(100%, calc(100vw - 24px));
    }

    .statspro-profile-hero {
        padding: 24px;
    }
}

