:root {
    --sc-bg: #eef3f8;
    --sc-bg-2: #e4ebf3;
    --sc-card: #ffffff;
    --sc-line: #d5dee8;
    --sc-text: #1c2a38;
    --sc-muted: #5b6d80;
    --sc-cyan: #2aa4d4;
    --sc-gold: #c9a227;
    --sc-white: #ffffff;
    --sc-chrome: #08111c;
    --sc-chrome-2: #0c1828;
}

a,
a:link,
a:visited,
a:hover,
a:focus,
a:active {
    text-decoration: none !important;
}

.sc-body {
    margin: 0;
    background: var(--sc-bg);
    color: var(--sc-text);
    font-family: 'Poppins', 'Open Sans', sans-serif;
}

.sc-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(8, 17, 28, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: var(--sc-white);
}

.sc-nav-inner,
.sc-footer-inner,
.sc-wrap,
.sc-hero-inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

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

.sc-logo {
    display: flex;
    align-items: center;
}

.sc-logo img {
    height: 42px;
    width: auto;
    display: block;
}

.sc-nav-home {
    position: relative;
}

.sc-logo-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: var(--sc-chrome);
    padding: 16px 24px 12px;
}

.sc-logo-banner a {
    display: flex;
    justify-content: center;
    width: min(1120px, 100%);
}

.sc-logo-banner img {
    display: block;
    width: 100%;
    max-width: 1120px;
    height: auto;
    margin: 0 auto;
}

.sc-nav-bar {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--sc-chrome-2);
    text-align: center;
}

.sc-nav-inner-home {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 58px;
    width: 100%;
    max-width: none;
}

.sc-nav-inner-home .sc-nav-toggle {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.sc-nav-inner-home .sc-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: auto;
    margin: 0 auto;
    gap: 22px;
}

.sc-nav-inner-home .sc-nav-actions {
    margin-left: 8px;
}

.sc-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.sc-links a {
    color: #c5d4e4 !important;
    font-size: 14px;
}

.sc-links a.is-active,
.sc-links a:hover {
    color: var(--sc-white) !important;
}

.sc-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 8px;
}

.sc-btn,
.sc-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 14px;
}

.sc-btn {
    background: var(--sc-cyan);
    color: #08202c !important;
}

.sc-btn:hover {
    background: #4ec3ea;
    color: #08202c !important;
}

.sc-btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: var(--sc-white) !important;
}

.sc-main .sc-btn-ghost,
.sc-portal-body .sc-btn-ghost,
.sc-admin-body .sc-btn-ghost {
    border: 1px solid var(--sc-line);
    color: var(--sc-text) !important;
    background: var(--sc-white);
}

.sc-portal-body .sc-btn-ghost:hover,
.sc-admin-body .sc-btn-ghost:hover {
    background: #f3f7fa;
    color: var(--sc-text) !important;
}

.sc-nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    background: transparent;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.sc-nav-toggle span {
    display: block;
    height: 2px;
    background: #fff;
}

.sc-hero {
    padding: 72px 0 40px;
    background:
        radial-gradient(circle at top right, rgba(42, 164, 212, 0.14), transparent 34%),
        linear-gradient(180deg, #f7fafc 0%, var(--sc-bg) 100%);
}

.sc-kicker {
    color: var(--sc-cyan);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.sc-hero h1,
.sc-page h1 {
    color: var(--sc-text);
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 16px;
}

.sc-lead,
.sc-hero p,
.sc-copy-block p,
.sc-card p {
    color: var(--sc-muted);
    font-size: 17px;
    line-height: 1.7;
}

.sc-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

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

.sc-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.sc-card,
.sc-event-card,
.sc-form,
.sc-price {
    background: var(--sc-card);
    border: 1px solid var(--sc-line);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(16, 38, 64, 0.06);
}

.sc-card h3,
.sc-event-card h3,
.sc-price h3,
.sc-copy-block h2 {
    color: var(--sc-text);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.sc-section {
    padding: 28px 0 64px;
}

.sc-event-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    color: inherit !important;
}

.sc-event-card img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    background: #e8eef4;
    border-radius: 12px;
    margin-bottom: 16px;
}

.sc-event-card span {
    margin-top: auto;
    color: var(--sc-cyan);
    font-weight: 600;
}

.sc-page {
    padding: 48px 0 24px;
}

.sc-form label {
    display: block;
    margin: 0 0 6px;
    color: var(--sc-text);
    font-weight: 600;
}

.sc-form input,
.sc-form select,
.sc-form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 16px;
    border: 1px solid var(--sc-line);
    background: #f7fafc;
    color: var(--sc-text);
    border-radius: 10px;
    padding: 12px 14px;
}

.sc-alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.sc-alert-error {
    background: #fde8eb;
    color: #9b1c2a;
}

.sc-alert-ok {
    background: #e4f7ea;
    color: #1d6b38;
}

.sc-price.featured {
    border-color: var(--sc-cyan);
    transform: translateY(-6px);
}

.sc-price ul {
    margin: 16px 0 24px;
    padding: 0;
}

.sc-price li {
    list-style: none;
    color: var(--sc-muted);
    padding: 6px 0;
}

.sc-footer {
    background: var(--sc-chrome);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 48px 0 24px;
    color: #c5d4e4;
}

.sc-footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 24px;
}

.sc-footer h4,
.sc-footer strong {
    color: var(--sc-white);
}

.sc-footer a,
.sc-footer p {
    display: block;
    color: #9aadc2;
    margin: 8px 0;
}

.sc-footer a:hover {
    color: var(--sc-white);
}

.sc-footer .sc-copy {
    width: 100%;
    margin: 24px 0 0;
    padding: 0;
    color: #7d8fa3;
    text-align: center;
}

.sc-topbar {
    background: #07101a;
    border-bottom: 3px solid var(--sc-cyan);
    font-family: 'Poppins', sans-serif;
}

.sc-topbar-inner {
    width: min(1200px, calc(100% - 24px));
    margin: 0 auto;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sc-topbar-brand,
.sc-topbar-nav a {
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
}

.sc-topbar-brand img {
    height: 28px;
    width: auto;
    display: block;
}

.sc-topbar-nav {
    display: flex;
    gap: 14px;
    align-items: center;
}

.sc-topbar-cta {
    background: var(--sc-cyan);
    color: #08202c !important;
    border-radius: 999px;
    padding: 6px 12px;
}

.sc-help {
    color: var(--sc-muted);
    font-size: 14px;
    margin: -8px 0 16px;
}

.sc-section-title {
    margin: 48px 0 20px;
    color: var(--sc-text);
    font-size: 28px;
    font-weight: 700;
}

.sc-winner-cell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sc-winner-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 10px;
    background: #0d1824;
    flex: 0 0 auto;
}

.sc-winner-cell span {
    font-weight: 600;
    font-size: 14px;
    color: var(--sc-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.sc-winner-link {
    color: inherit !important;
}

.sc-winner-link:hover .sc-winner-cell span {
    color: #0a4d66;
}

.sc-muted-dash {
    color: var(--sc-muted);
}

.sc-winner {
    display: grid;
    grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    margin-top: 24px;
    padding: 20px;
    background: var(--sc-card);
    border: 1px solid var(--sc-line);
    border-radius: 22px;
    box-shadow: 0 8px 24px rgba(16, 32, 51, 0.04);
}

.sc-winner img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    background: #0d1824;
}

.sc-winner-copy .sc-kicker {
    margin-bottom: 6px;
}

.sc-winner-copy h2 {
    margin: 0 0 8px;
    font-size: clamp(24px, 3vw, 32px);
    letter-spacing: -0.02em;
}

.sc-winner-copy p {
    margin: 0;
    color: var(--sc-muted);
}

@media (max-width: 720px) {
    .sc-winner {
        grid-template-columns: 1fr;
    }
}

.sc-portal-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #e8eef5;
}

.sc-portal-header {
    background: #0d1824;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 -2px 0 var(--sc-cyan);
    color: var(--sc-white);
}

.sc-portal-header-inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.sc-portal-cluster {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.sc-portal-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sc-white) !important;
    font-weight: 700;
    white-space: nowrap;
}

.sc-portal-brand img {
    height: 36px;
    width: auto;
    display: block;
}

.sc-portal-brand span {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9eb3c7;
}

.sc-portal-links {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    padding: 4px;
}

.sc-portal-header a,
.sc-portal-footer a {
    text-decoration: none !important;
}

.sc-portal-links a {
    color: #c5d4e4 !important;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    white-space: nowrap;
}

.sc-portal-links a:hover {
    color: var(--sc-white) !important;
    background: rgba(255, 255, 255, 0.08);
}

.sc-portal-links a.is-active {
    background: #fff;
    color: #102033 !important;
}

.sc-portal-create {
    display: inline-flex;
    align-items: center;
    background: var(--sc-cyan);
    color: #08202c !important;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 999px;
    white-space: nowrap;
}

.sc-portal-create:hover,
.sc-portal-create.is-active {
    background: #7fd3ee !important;
    color: #08202c !important;
}

.sc-account-menu {
    position: relative;
}

.sc-account-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 4px 10px 4px 4px;
    color: #d7e3ee;
    cursor: pointer;
    font: inherit;
}

.sc-account-trigger:hover,
.sc-account-menu.is-open .sc-account-trigger,
.sc-account-menu.is-current .sc-account-trigger {
    background: rgba(255, 255, 255, 0.12);
}

.sc-portal-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--sc-cyan);
    color: #08202c !important;
    font-weight: 700;
    font-size: 13px;
}

.sc-portal-username {
    color: #d7e3ee;
    font-weight: 600;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-account-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #fff;
    color: var(--sc-text);
    border: 1px solid var(--sc-line);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(8, 17, 28, 0.18);
    padding: 6px;
    z-index: 50;
}

.sc-account-menu.is-open .sc-account-dropdown {
    display: block;
}

.sc-account-dropdown a {
    display: block;
    color: var(--sc-text) !important;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 8px;
}

.sc-account-dropdown a:hover {
    background: #eef3f8;
}

.sc-portal-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 0;
    margin-left: auto;
    cursor: pointer;
}

.sc-portal-toggle span {
    display: block;
    height: 2px;
    width: 20px;
    background: #fff;
}

.sc-portal-main {
    flex: 1;
}

.sc-portal-page {
    width: min(960px, calc(100% - 32px));
    margin: 32px auto 48px;
}

.sc-portal-page.sc-board-page {
    width: min(1100px, calc(100% - 32px));
    margin-top: 24px;
}

.sc-board-hero {
    margin: 0 0 24px;
    padding: 22px 24px 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)),
        linear-gradient(135deg, #d9eef8 0%, transparent 42%, #f4e8c4 100%);
    border: 1px solid var(--sc-line);
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(16, 32, 51, 0.06);
    overflow: hidden;
}

.sc-board-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.sc-board-back {
    color: var(--sc-muted) !important;
    font-size: 13px;
    font-weight: 600;
}

.sc-board-back:hover {
    color: var(--sc-text) !important;
}

.sc-board-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sc-board-hero-copy {
    padding-bottom: 8px;
}

.sc-board-hero-copy .sc-kicker {
    margin-bottom: 8px;
}

.sc-board-hero-copy h1 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.sc-board-hero-copy .sc-lead {
    margin: 0 0 8px;
    max-width: 52rem;
}

.sc-board-meta {
    margin: 0;
    color: var(--sc-muted);
    font-size: 14px;
}

.sc-board-subnav-wrap {
    margin: 0 0 22px;
}

.sc-board-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    max-width: 100%;
    background: #0d1824;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(8, 17, 28, 0.18);
}

.sc-board-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 12px;
    color: #b7c7d8 !important;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.01em;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.sc-board-tabs a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}

.sc-board-tabs a.is-active {
    color: #102033 !important;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.sc-board-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #d5e2ef;
    font-size: 12px;
    font-weight: 700;
}

.sc-board-tabs a.is-active .sc-board-tab-count {
    background: rgba(42, 164, 212, 0.2);
    color: #0a4d66;
}

.sc-board-panel {
    background: var(--sc-card);
    border: 1px solid var(--sc-line);
    border-radius: 22px;
    box-shadow: 0 8px 24px rgba(16, 32, 51, 0.04);
    overflow: hidden;
}

.sc-board-panel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid var(--sc-line);
}

.sc-board-panel-head h2 {
    margin: 0 0 4px;
    font-size: 22px;
    letter-spacing: -0.01em;
}

.sc-board-panel-head p {
    margin: 0;
    color: var(--sc-muted);
    font-size: 14px;
}

.sc-board-panel-count {
    color: var(--sc-muted);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.sc-board-empty {
    padding: 36px 24px;
    color: var(--sc-muted);
}

.sc-board-table {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.sc-board-table .sc-table th {
    background: #f7fafc;
}

.sc-board-table .sc-table tr:last-child td {
    border-bottom: 0;
}

.sc-board-table .sc-table tbody tr:hover td {
    background: #f8fbfd;
}

.sc-board-actions {
    text-align: right;
    white-space: nowrap;
}

.sc-board-actions .sc-btn,
.sc-board-actions .sc-btn-ghost {
    padding: 8px 14px;
    font-size: 13px;
}

.sc-board-actions .sc-btn-ghost {
    margin-right: 6px;
}

.sc-board-edit-grid {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.sc-event-players .sc-form select,
.sc-event-players .sc-form input[type="text"],
.sc-event-players .sc-form input:not([type]) {
    min-width: 0;
    flex: 1;
}

@media (max-width: 900px) {
    .sc-board-edit-grid {
        grid-template-columns: 1fr;
    }
}

.sc-board-person {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sc-board-person .sc-avatar {
    width: 34px;
    height: 34px;
    font-size: 13px;
}

@media (max-width: 720px) {
    .sc-board-hero {
        padding: 18px 16px 0;
    }

    .sc-board-hero-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .sc-board-tabs {
        display: flex;
        width: 100%;
    }

    .sc-board-tabs a {
        flex: 1;
        justify-content: center;
        padding: 10px 12px;
    }

    .sc-board-panel-head {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 16px 16px;
    }
}

.sc-admin-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 24px;
}

.sc-admin-app {
    margin: 0;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    background: #eef1f4;
    color: var(--sc-text);
    font-family: 'Poppins', 'Open Sans', sans-serif;
}

.sc-admin-app *,
.sc-admin-app *::before,
.sc-admin-app *::after {
    box-sizing: border-box;
}

.sc-admin-sidebar a,
.sc-admin-top a {
    text-decoration: none !important;
}

.sc-admin-sidebar {
    background: #151b22;
    color: #d5dde6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: sticky;
    top: 0;
    border-right: 1px solid #2a3340;
}

.sc-admin-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 16px;
    text-align: center;
    color: #fff !important;
    font-weight: 700;
    border-bottom: 1px solid #2a3340;
}

.sc-admin-brand img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.sc-admin-brand span {
    display: block;
    width: 100%;
    text-align: center;
}

.sc-admin-sidenav {
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    gap: 4px;
    flex: 1;
}

.sc-admin-sidenav a {
    color: #c3ced9 !important;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    border-left: 3px solid transparent;
}

.sc-admin-sidenav a:hover {
    background: #1f2731;
    color: #fff !important;
}

.sc-admin-sidenav a.is-active {
    background: #24303c;
    color: #fff !important;
    border-left-color: var(--sc-gold);
}

.sc-admin-side-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px 24px;
    border-top: 1px solid #2a3340;
    font-size: 13px;
}

.sc-admin-side-meta span {
    color: #8b97a6;
    font-weight: 600;
}

.sc-admin-side-meta a {
    color: #d5dde6 !important;
}

.sc-admin-frame {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
}

.sc-admin-top {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 0 28px;
    background: #fff;
    border-bottom: 1px solid #d9e0e8;
}

.sc-admin-top h1 {
    margin: 0;
    font-size: 20px;
}

.sc-admin-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.sc-admin-toggle span {
    display: block;
    height: 2px;
    width: 20px;
    background: #151b22;
}

.sc-admin-main {
    flex: 1;
    padding: 28px 32px 16px;
}

.sc-admin-foot {
    padding: 12px 32px 20px;
    color: #6b7785;
    font-size: 13px;
}

.sc-admin-foot p {
    margin: 0;
}

.sc-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.sc-stat {
    background: var(--sc-card);
    border: 1px solid var(--sc-line);
    border-radius: 18px;
    padding: 18px 20px;
    color: inherit !important;
    display: block;
}

.sc-stat strong {
    display: block;
    font-size: 28px;
    color: var(--sc-text);
}

.sc-stat span,
.sc-stat em {
    display: block;
    color: var(--sc-muted);
    font-style: normal;
    font-size: 13px;
    margin-top: 4px;
}

.sc-dash .sc-lead {
    margin-bottom: 8px;
}

.sc-dash .sc-stats {
    margin: 0 0 20px;
}

.sc-dash .sc-stat {
    padding: 16px 18px 18px;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(16, 32, 51, 0.04);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.sc-dash .sc-stat:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(16, 32, 51, 0.08);
}

.sc-dash .sc-stat span {
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 11px;
}

.sc-dash .sc-stat strong {
    margin: 8px 0 4px;
    font-size: 30px;
    letter-spacing: -0.03em;
}

.sc-dash .sc-stat em {
    margin: 0;
}

.sc-dash .sc-chart-card {
    margin-bottom: 20px;
}

.sc-chart-compact {
    height: 160px;
}

.sc-dash-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.sc-dash-link {
    color: var(--sc-cyan) !important;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.sc-dash-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sc-dash-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f6;
}

.sc-dash-list li:last-child {
    border-bottom: 0;
    padding-bottom: 2px;
}

.sc-dash-list strong {
    display: block;
    font-size: 14px;
}

.sc-dash-list li > div span {
    display: block;
    color: var(--sc-muted);
    font-size: 13px;
    margin-top: 2px;
}

.sc-dash-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    color: var(--sc-muted);
    font-size: 12px;
}

.sc-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    font-style: normal;
    background: #e8eef4;
    color: #3d5164;
}

.sc-pill-ok {
    background: #e4f7ea;
    color: #1d6b38;
}

.sc-pill-wait {
    background: #fff4d6;
    color: #8a6100;
}

.sc-pill-gold {
    background: #f4ead0;
    color: #7a5b10;
}

.sc-chart-head .sc-admin-search {
    margin: 0;
}

.sc-chart-card .sc-form,
.sc-chart-card .sc-admin-form {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    max-width: 100%;
    width: 100%;
    margin: 0;
}

.sc-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1c2a38;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.sc-manage-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sc-manage-list li {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) minmax(180px, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #eef2f6;
}

.sc-manage-list li:last-child {
    border-bottom: 0;
}

.sc-manage-person {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sc-manage-person strong {
    display: block;
    font-size: 14px;
}

.sc-manage-person span {
    display: block;
    color: var(--sc-muted);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-manage-facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--sc-muted);
    font-size: 12px;
}

.sc-manage-amount {
    font-weight: 700;
    color: var(--sc-text) !important;
    font-size: 14px;
}

.sc-manage-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.sc-admin-select {
    border: 1px solid var(--sc-line);
    background: #fff;
    color: var(--sc-text);
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 13px;
}

.sc-manage-tools .sc-btn,
.sc-manage-tools .sc-btn-ghost {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
}

.sc-admin-edit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 18px;
    align-items: start;
}

.sc-admin-card-body {
    padding: 0 22px 22px;
}

.sc-admin-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

.sc-admin-field-grid label {
    margin-top: 0;
}

.sc-admin-field-span {
    grid-column: 1 / -1;
}

.sc-admin-field-check {
    display: flex;
    align-items: end;
    min-height: 68px;
}

.sc-admin-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--sc-line);
    color: var(--sc-muted);
    font-size: 13px;
}

.sc-check-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 8px 0 16px;
    font-weight: 600;
}

.sc-check-label input {
    width: auto !important;
    margin: 0;
}

@media (max-width: 900px) {
    .sc-admin-edit-grid,
    .sc-admin-field-grid {
        grid-template-columns: 1fr;
    }
}

.sc-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 180px;
    background: var(--sc-card);
    border: 1px solid var(--sc-line);
    border-radius: 18px;
    padding: 16px 12px 8px;
    margin: 12px 0 28px;
}

.sc-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    min-width: 0;
}

.sc-bar-fill {
    width: 100%;
    max-width: 28px;
    background: var(--sc-cyan);
    border-radius: 6px 6px 0 0;
}

.sc-bar-fill.is-gold {
    background: var(--sc-gold);
}

.sc-bar span,
.sc-bar em {
    font-size: 11px;
    color: var(--sc-muted);
}

.sc-analytics .sc-lead {
    margin-bottom: 8px;
}

.sc-analytics .sc-stats {
    margin: 0 0 24px;
}

.sc-analytics-charts,
.sc-analytics-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.sc-analytics-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sc-chart-card {
    background: #fff;
    border: 1px solid var(--sc-line);
    border-radius: 16px;
    padding: 18px 20px 16px;
    box-shadow: 0 1px 2px rgba(16, 32, 51, 0.04);
    min-width: 0;
}

.sc-chart-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.sc-chart-head h2 {
    margin: 0;
    font-size: 16px;
}

.sc-chart-head p {
    margin: 4px 0 0;
    color: var(--sc-muted);
    font-size: 13px;
}

.sc-chart-legend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--sc-muted);
    font-size: 12px;
    font-weight: 600;
}

.sc-chart-legend i {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--sc-cyan);
}

.sc-chart-legend i.is-gold {
    background: var(--sc-gold);
}

.sc-chart {
    display: flex;
    align-items: stretch;
    gap: 4px;
    height: 220px;
    padding: 4px 2px 0;
    background-image: repeating-linear-gradient(
        to top,
        #edf1f5 0,
        #edf1f5 1px,
        transparent 1px,
        transparent 25%
    );
    border-radius: 10px;
}

.sc-chart-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sc-chart-col span {
    font-size: 11px;
    font-weight: 600;
    color: var(--sc-text);
    line-height: 1;
    margin-bottom: 6px;
}

.sc-chart-track {
    flex: 1;
    width: 100%;
    max-width: 22px;
    display: flex;
    align-items: flex-end;
    background: #e8eef4;
    border-radius: 8px 8px 2px 2px;
}

.sc-chart-fill {
    width: 100%;
    background: linear-gradient(180deg, #4ec3e8 0%, #2aa4d4 100%);
    border-radius: 8px 8px 2px 2px;
}

.sc-chart-fill.is-gold {
    background: linear-gradient(180deg, #e0c15a 0%, #c9a227 100%);
}

.sc-chart-col em {
    margin-top: 8px;
    font-size: 10px;
    font-style: normal;
    color: var(--sc-muted);
}

.sc-meter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sc-meter-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 13px;
}

.sc-meter-label strong {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-meter-label span {
    color: var(--sc-muted);
    white-space: nowrap;
}

.sc-meter {
    height: 8px;
    background: #e8eef4;
    border-radius: 999px;
    overflow: hidden;
}

.sc-meter-fill {
    height: 100%;
    background: var(--sc-cyan);
    border-radius: 999px;
}

.sc-meter-fill.is-gold {
    background: var(--sc-gold);
}

.sc-meter-fill.is-slate {
    background: #4a6278;
}

.sc-analytics-empty {
    margin: 8px 0 4px;
    color: var(--sc-muted);
}

.sc-admin-search {
    display: flex;
    gap: 12px;
    margin: 16px 0 20px;
}

.sc-admin-search input {
    flex: 1;
    max-width: 360px;
    border: 1px solid var(--sc-line);
    background: #fff;
    color: var(--sc-text);
    border-radius: 10px;
    padding: 12px 14px;
}

.sc-admin-form {
    background: var(--sc-card);
    border: 1px solid var(--sc-line);
    border-radius: 18px;
    padding: 20px 24px;
    max-width: 520px;
}

.sc-table select {
    max-width: 140px;
}

.sc-portal-footer {
    background: #102033;
    color: #8ea0b3;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sc-portal-footer p {
    margin: 0;
    font-size: 13px;
}

.sc-portal-footer nav {
    display: flex;
    gap: 16px;
}

.sc-portal-footer a {
    color: #c5d4e4 !important;
    font-size: 13px;
    font-weight: 600;
}

.sc-table-wrap {
    overflow-x: auto;
    background: var(--sc-card);
    border: 1px solid var(--sc-line);
    border-radius: 18px;
}

.sc-table {
    width: 100%;
    border-collapse: collapse;
}

.sc-table th,
.sc-table td {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid var(--sc-line);
    vertical-align: top;
}

.sc-table th {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--sc-muted);
}

.sc-inline-form {
    display: inline;
}

.sc-link-btn {
    background: none;
    border: 0;
    color: #9b1c2a;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
}

@media (max-width: 900px) {
    .sc-analytics-charts,
    .sc-analytics-split,
    .sc-dash-split {
        grid-template-columns: 1fr;
    }
    .sc-dash-list li {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .sc-manage-list li {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }
    .sc-manage-tools {
        justify-content: flex-start;
    }
    .sc-chart-head {
        flex-wrap: wrap;
    }
    .sc-admin-app {
        grid-template-columns: 1fr;
    }
    .sc-admin-sidebar {
        display: none;
        position: fixed;
        z-index: 80;
        left: 0;
        top: 0;
        bottom: 0;
        width: 240px;
        min-height: 100%;
    }
    .sc-admin-nav-open .sc-admin-sidebar {
        display: flex;
    }
    .sc-admin-toggle {
        display: flex;
    }
    .sc-admin-main,
    .sc-admin-foot,
    .sc-admin-top {
        padding-left: 16px;
        padding-right: 16px;
    }
    .sc-portal-header-inner {
        flex-wrap: wrap;
        min-height: 56px;
        padding: 8px 0;
    }
    .sc-portal-toggle {
        display: flex;
        order: 2;
    }
    .sc-portal-cluster {
        order: 3;
        width: 100%;
        margin-left: 0;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .sc-account-menu {
        order: -1;
        margin-left: auto;
    }
    .sc-portal-links,
    .sc-portal-create {
        display: none;
        width: 100%;
        max-width: none;
    }
    .sc-portal-nav-open .sc-portal-links,
    .sc-portal-nav-open .sc-portal-create {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    .sc-portal-nav-open .sc-portal-links {
        border-radius: 14px;
        padding: 6px;
    }
    .sc-portal-nav-open .sc-portal-create {
        justify-content: center;
        margin: 4px 0;
    }
    .sc-portal-username {
        max-width: none;
    }
    .sc-portal-footer {
        justify-content: center;
        text-align: center;
    }
    .sc-grid,
    .sc-grid-2,
    .sc-footer-inner {
        grid-template-columns: 1fr;
    }
    .sc-nav-toggle {
        display: flex;
    }
    .sc-links {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        background: #0b1726;
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        z-index: 50;
    }
    .sc-nav:not(.sc-nav-home) .sc-links {
        top: 76px;
    }
    .sc-nav-home .sc-links {
        top: 100%;
    }
    .sc-nav-open .sc-links {
        display: flex;
    }
    .sc-price.featured {
        transform: none;
    }
}
