:root {
    --lkc-bg: #0b1020;
    --lkc-surface: #121a2f;
    --lkc-surface-2: #17213b;
    --lkc-card: #11192d;
    --lkc-card-2: #1a2440;
    --lkc-card-soft: rgba(255, 255, 255, 0.04);
    --lkc-border: rgba(255, 255, 255, 0.08);
    --lkc-border-strong: rgba(212, 187, 255, 0.18);
    --lkc-text: #f5f7ff;
    --lkc-text-soft: #d7def0;
    --lkc-text-muted: #aeb8d0;
    --lkc-text-dim: #8b97b3;
    --lkc-heading: #ffffff;
    --lkc-primary: #7c3aed;
    --lkc-primary-2: #2563eb;
    --lkc-primary-soft: #d4bbff;
    --lkc-accent: #22c55e;
    --lkc-warning: #f59e0b;
    --lkc-danger: #ef4444;
    --lkc-info: #06b6d4;
    --lkc-gold: #facc15;
    --lkc-shadow: 0 20px 40px rgba(3, 8, 20, 0.42);
    --lkc-shadow-soft: 0 12px 30px rgba(9, 14, 28, 0.28);
    --lkc-radius-xl: 24px;
    --lkc-radius-lg: 18px;
    --lkc-radius-md: 14px;
    --lkc-radius-sm: 10px;
    --lkc-sidebar-width: 306px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, 0.18), transparent 24%),
        radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.12), transparent 22%),
        linear-gradient(180deg, #09101e 0%, #0c1324 100%);
    color: var(--lkc-text);
    font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    color: var(--lkc-heading);
}

.page-shell {
    min-height: 100vh;
}

.text-muted,
.form-text,
small {
    color: var(--lkc-text-muted) !important;
}

.text-lkc {
    color: var(--lkc-text) !important;
}

.text-lkc-soft {
    color: var(--lkc-text-soft) !important;
}

.text-lkc-muted {
    color: var(--lkc-text-muted) !important;
}

.text-lkc-dim {
    color: var(--lkc-text-dim) !important;
}

.card-surface,
.lkc-card,
.lkc-glass-card {
    background: linear-gradient(180deg, rgba(24, 35, 63, 0.94), rgba(16, 24, 44, 0.92));
    border: 1px solid var(--lkc-border);
    border-radius: var(--lkc-radius-lg);
    box-shadow: var(--lkc-shadow);
    color: var(--lkc-text);
}

.lkc-glass-card {
    background: linear-gradient(180deg, rgba(20, 27, 49, 0.78), rgba(14, 20, 37, 0.8));
    backdrop-filter: blur(18px);
    border-color: rgba(212, 187, 255, 0.12);
}

.card-surface .list-group-item,
.lkc-card .list-group-item {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.06);
    color: var(--lkc-text);
}

.lkc-surface-soft {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--lkc-radius-md);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--lkc-primary-soft);
}

.section-kicker::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--lkc-primary), var(--lkc-accent));
    box-shadow: 0 0 18px rgba(124, 58, 237, 0.48);
}

.brand-mark {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #8b5cf6, #2563eb 55%, #22c55e);
    color: #fff;
    font-family: "Montserrat", "Inter", sans-serif;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    box-shadow: 0 18px 40px rgba(124, 58, 237, 0.4);
}

.btn {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.8rem 1.25rem;
    border-width: 1px;
}

.btn-primary,
.lkc-btn-primary {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--lkc-primary), #9b5cf8 55%, var(--lkc-primary-2));
    box-shadow: 0 12px 24px rgba(124, 58, 237, 0.28);
}

.btn-primary:hover,
.btn-primary:focus,
.lkc-btn-primary:hover,
.lkc-btn-primary:focus {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(124, 58, 237, 0.34);
}

.btn-outline-light,
.btn-outline-secondary,
.lkc-btn-secondary {
    border-color: rgba(34, 197, 94, 0.38);
    color: #dfffea;
    background: rgba(34, 197, 94, 0.08);
}

.btn-outline-light:hover,
.btn-outline-secondary:hover,
.lkc-btn-secondary:hover {
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.62);
    color: #fff;
}

.btn-outline-primary {
    border-color: rgba(124, 58, 237, 0.4);
    color: var(--lkc-primary-soft);
    background: rgba(124, 58, 237, 0.08);
}

.btn-outline-primary:hover {
    background: rgba(124, 58, 237, 0.16);
    color: #fff;
    border-color: rgba(124, 58, 237, 0.66);
}

.btn-outline-danger {
    border-color: rgba(239, 68, 68, 0.4);
    color: #ffc3c3;
    background: rgba(239, 68, 68, 0.08);
}

.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.16);
    color: #fff;
}

.form-control,
.form-select,
.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--lkc-radius-md);
    color: var(--lkc-text);
    box-shadow: none;
}

.form-control,
.form-select {
    padding: 0.9rem 1rem;
}

.form-control::placeholder {
    color: rgba(174, 184, 208, 0.78);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(124, 58, 237, 0.66);
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.14);
}

.form-label {
    color: #e7ebfb;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.form-select option {
    color: #0f172a;
}

textarea.form-control {
    min-height: 120px;
}

.table {
    color: var(--lkc-text);
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.015);
    --bs-table-hover-bg: rgba(124, 58, 237, 0.08);
    --bs-table-border-color: rgba(255, 255, 255, 0.07);
}

.table thead th {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 800;
    color: #f9e27d;
    border-bottom-width: 1px;
    padding-block: 1rem;
}

.table tbody tr {
    color: var(--lkc-text);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.table tbody tr:hover {
    color: var(--lkc-heading);
}

.table tbody td {
    padding-block: 1rem;
    vertical-align: middle;
    color: var(--lkc-text-soft);
}

.table td,
.table td span,
.table td strong,
.table td small,
.table td a,
.table td div,
.table td p,
.table td li {
    color: inherit;
}

.table td strong {
    color: var(--lkc-heading);
}

.table td a {
    color: var(--lkc-primary-soft);
    text-decoration: none;
    font-weight: 700;
}

.table td a:hover {
    color: #fff;
    text-decoration: underline;
}

.table td .text-muted,
.table td small,
.table td .small {
    color: var(--lkc-text-muted) !important;
}

.lkc-cell-main {
    color: var(--lkc-text-soft);
    font-weight: 600;
}

.lkc-team-identity {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.lkc-team-identity--vertical {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.lkc-team-identity__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.52);
    border: 1px solid rgba(148, 163, 184, 0.16);
    overflow: hidden;
}

.lkc-team-identity--sm .lkc-team-identity__logo {
    width: 36px;
    height: 36px;
    border-radius: 12px;
}

.lkc-team-identity--md .lkc-team-identity__logo {
    width: 50px;
    height: 50px;
}

.lkc-team-identity--lg .lkc-team-identity__logo {
    width: 84px;
    height: 84px;
    border-radius: 22px;
}

.lkc-team-identity__logo-img {
    width: auto;
    height: auto;
    max-width: 82%;
    max-height: 82%;
    object-fit: contain;
    display: block;
}

.lkc-team-identity__placeholder {
    color: #e0f2fe;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.lkc-team-identity--lg .lkc-team-identity__placeholder {
    font-size: 1.1rem;
}

.lkc-team-identity__text {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.lkc-team-identity__club {
    color: var(--lkc-heading);
    font-weight: 850;
    line-height: 1.15;
}

.lkc-team-identity__team,
.lkc-team-identity__city {
    color: var(--lkc-text-muted);
    font-size: 0.78rem;
    line-height: 1.25;
}

.lkc-cell-soft {
    color: var(--lkc-text-muted);
}

.lkc-cell-muted {
    color: var(--lkc-text-dim);
}

.table-responsive {
    border-radius: var(--lkc-radius-md);
}

.status-badge,
.lkc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.42rem 0.78rem;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
}

.status-badge::before,
.lkc-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.88;
}

.lkc-status-active,
.lkc-status-approved {
    background: rgba(34, 197, 94, 0.14);
    color: #b4ffd0;
    border-color: rgba(34, 197, 94, 0.22);
}

.lkc-status-inactive,
.lkc-status-draft,
.lkc-status-pending {
    background: rgba(148, 163, 184, 0.12);
    color: #dde6f7;
    border-color: rgba(148, 163, 184, 0.18);
}

.lkc-status-submitted,
.lkc-status-observed,
.lkc-status-registration_open {
    background: rgba(245, 158, 11, 0.14);
    color: #ffe1a8;
    border-color: rgba(245, 158, 11, 0.24);
}

.lkc-status-rejected,
.lkc-status-blocked {
    background: rgba(239, 68, 68, 0.14);
    color: #ffc2c2;
    border-color: rgba(239, 68, 68, 0.24);
}

.lkc-status-finished,
.lkc-status-archived {
    background: rgba(6, 182, 212, 0.12);
    color: #b4f3ff;
    border-color: rgba(6, 182, 212, 0.22);
}

.lkc-status-withdrawn,
.lkc-status-registration_closed {
    background: rgba(250, 204, 21, 0.12);
    color: #fff1ae;
    border-color: rgba(250, 204, 21, 0.24);
}

.lkc-page-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.lkc-page-title {
    font-family: "Montserrat", "Inter", sans-serif;
    font-size: clamp(1.7rem, 2.4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.25rem;
}

.lkc-page-subtitle {
    color: var(--lkc-text-muted);
    max-width: 640px;
}

.lkc-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.lkc-action-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.05rem;
    border-radius: var(--lkc-radius-lg);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.lkc-action-card:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 58, 237, 0.28);
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.08), rgba(255, 255, 255, 0.03));
}

.lkc-action-card__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--lkc-primary-soft);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lkc-action-card strong {
    color: #fff;
    font-size: 0.96rem;
}

.lkc-action-card small {
    color: var(--lkc-text-muted);
    line-height: 1.45;
}

.lkc-section-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border-radius: var(--lkc-radius-md);
    border: 1px solid rgba(245, 158, 11, 0.2);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(124, 58, 237, 0.08));
    color: var(--lkc-text-soft);
}

.lkc-section-note i {
    color: #ffd581;
    margin-top: 0.1rem;
}

.lkc-chip--soft {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--lkc-text-soft);
}

.lkc-hero-card {
    position: relative;
    overflow: hidden;
    padding: 1.7rem;
    border-radius: var(--lkc-radius-xl);
    background:
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.2), transparent 28%),
        radial-gradient(circle at left center, rgba(124, 58, 237, 0.24), transparent 32%),
        linear-gradient(135deg, rgba(22, 31, 59, 0.96), rgba(11, 17, 34, 0.98));
    border: 1px solid rgba(212, 187, 255, 0.12);
    box-shadow: var(--lkc-shadow);
}

.lkc-hero-card::after {
    content: "";
    position: absolute;
    inset: auto -12% -38% auto;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.2), transparent 64%);
}

.lkc-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.lkc-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--lkc-text);
    font-size: 0.84rem;
    font-weight: 600;
}

.lkc-empty-state {
    padding: 2.2rem 1.4rem;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--lkc-radius-lg);
    background: rgba(255, 255, 255, 0.025);
}

.lkc-empty-state__icon {
    width: 58px;
    height: 58px;
    margin-inline: auto;
    margin-bottom: 0.95rem;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(37, 99, 235, 0.18));
    color: var(--lkc-primary-soft);
    font-size: 1.35rem;
}

.lkc-alert-stack {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 1.4rem;
}

.lkc-alert-stack .alert {
    border-radius: var(--lkc-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.045);
    color: var(--lkc-text);
}

.lkc-alert-stack .alert-success {
    border-color: rgba(34, 197, 94, 0.24);
    background: rgba(34, 197, 94, 0.1);
}

.lkc-alert-stack .alert-danger {
    border-color: rgba(239, 68, 68, 0.24);
    background: rgba(239, 68, 68, 0.1);
}

.auth-body {
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, 0.24), transparent 26%),
        radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.16), transparent 22%),
        linear-gradient(135deg, #090f1d 0%, #11182b 100%);
}

.auth-shell {
    width: 100%;
    max-width: 560px;
}

.auth-card {
    width: 100%;
    padding: 2.25rem;
    background: linear-gradient(180deg, rgba(17, 25, 45, 0.94), rgba(10, 15, 29, 0.95));
}

.auth-logo {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--lkc-primary), #8b5cf6 55%, var(--lkc-accent));
    color: #fff;
    font-family: "Montserrat", "Inter", sans-serif;
    font-weight: 900;
    letter-spacing: 0.1em;
    box-shadow: 0 18px 34px rgba(124, 58, 237, 0.32);
}

.auth-form .form-control {
    border-radius: var(--lkc-radius-md);
    padding-block: 0.95rem;
}

.auth-link {
    color: var(--lkc-primary-soft);
    text-decoration: none;
    font-weight: 700;
}

.auth-link:hover {
    color: #fff;
    text-decoration: underline;
}

.auth-rules {
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.16);
    border-radius: var(--lkc-radius-md);
    padding: 1rem 1.1rem;
}

.auth-rules--panel {
    background: rgba(255, 255, 255, 0.045);
}

.password-hint-list {
    padding-left: 1rem;
    color: var(--lkc-text-muted);
}

@media (max-width: 767px) {
    .auth-card {
        padding: 1.6rem;
    }

    .lkc-page-header {
        flex-direction: column;
    }

    .lkc-page-header .lkc-card-header__actions,
    .lkc-page-header .lkc-card-header__actions .btn {
        width: 100%;
    }

    .lkc-page-header .lkc-card-header__actions {
        display: grid;
    }

    .lkc-action-grid {
        grid-template-columns: 1fr;
    }
}
