* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    width: 100%;
}

.image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -2;
}

.image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.2) 35%,
        rgba(0, 0, 0, 0.75) 70%,
        rgba(0, 0, 0, 0.92) 100%
    );
    pointer-events: none;
}

#image-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    display: flex;
    justify-content: center;
    z-index: 10;
    background: rgba(0, 0, 0, 0.85);
}

.center-text {
    text-align: center;
    font-size: 14px;
    letter-spacing: 1px;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

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

.content-panel {
    width: 100%;
    max-width: 1100px;
    padding: 36px 28px 32px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

.hero-content {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 32px;
    animation: fadeUp 1s ease 0.2s both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-badge i {
    font-size: 10px;
}

.denied-badge {
    border-color: rgba(248, 113, 113, 0.35);
    background: rgba(248, 113, 113, 0.12);
}

.hero-tagline {
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.75;
    letter-spacing: 0.3px;
}

.auth-section,
.lk-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 20px 90px;
    z-index: 1;
}

.auth-panel {
    max-width: 640px;
}

.auth-title {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 700;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.auth-actions {
    display: flex;
    justify-content: center;
    margin: 28px 0 24px;
}

.btn-discord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    background: #5865F2;
    border: 1px solid #5865F2;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(88, 101, 242, 0.35);
}

.auth-note {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.auth-note p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
}

.auth-steps {
    max-width: 520px;
    margin: 0 auto 24px;
    padding-left: 20px;
    text-align: left;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.8;
}

.auth-steps a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.alert-error {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.25);
    color: rgba(255, 255, 255, 0.9);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.card-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.15);
}

.card-link-muted {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.75);
}

.card-link-danger {
    border-color: rgba(248, 113, 113, 0.35);
    color: rgba(255, 255, 255, 0.85);
}

.lk-panel {
    animation: fadeUp 0.8s ease both;
}

.lk-panel-wide {
    max-width: 1280px;
}

.lk-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.lk-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: sticky;
    top: 120px;
}

.lk-sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lk-sidebar-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    object-fit: cover;
    flex-shrink: 0;
}

.lk-sidebar-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.lk-sidebar-name {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lk-sidebar-username {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lk-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lk-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lk-nav-item i {
    width: 16px;
    text-align: center;
    font-size: 14px;
    opacity: 0.75;
}

.lk-nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.lk-nav-item.is-active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.lk-sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lk-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.lk-sidebar-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.lk-sidebar-link-danger:hover {
    background: rgba(248, 113, 113, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.lk-main {
    min-width: 0;
}

.lk-main-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.lk-main-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
    margin-bottom: 6px;
}

.lk-main-title {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.lk-main-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.lk-main-badge i {
    font-size: 7px;
    color: #8dffb0;
}

.lk-section-panel {
    display: none;
}

.lk-section-panel.is-active {
    display: block;
    animation: fadeUp 0.35s ease both;
}

.lk-feed-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.lk-feed-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-card-full {
    margin-bottom: 20px;
    padding: 24px;
    border-radius: 16px;
    background: rgba(12, 12, 12, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contracts-calendar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.calendar-toolbar-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.calendar-month {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.calendar-nav-btn,
.calendar-today-btn {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-nav-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.calendar-today-btn {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.calendar-nav-btn:hover,
.calendar-today-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
}

.calendar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
    gap: 16px;
    align-items: start;
}

.calendar-board,
.calendar-day-panel {
    padding: 20px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

.calendar-weekdays span {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
    padding: 4px 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.calendar-cell {
    min-height: 72px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.calendar-cell-empty {
    border-color: transparent;
    background: transparent;
}

.calendar-day {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.calendar-day.is-today {
    border-color: rgba(141, 255, 176, 0.45);
    box-shadow: inset 0 0 0 1px rgba(141, 255, 176, 0.15);
}

.calendar-day.is-selected {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
}

.calendar-day-number {
    font-size: 14px;
    font-weight: 700;
}

.calendar-day-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: auto;
}

.calendar-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.calendar-dot-active {
    background: #8dffb0;
    box-shadow: 0 0 8px rgba(141, 255, 176, 0.45);
}

.calendar-dot-pending {
    background: #ffd98a;
    box-shadow: 0 0 8px rgba(255, 217, 138, 0.35);
}

.calendar-dot-completed {
    background: rgba(255, 255, 255, 0.55);
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.calendar-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
}

.calendar-day-panel {
    min-height: 100%;
}

.calendar-day-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
    margin-bottom: 8px;
}

.calendar-day-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.calendar-day-events {
    min-height: 120px;
}

.calendar-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    color: rgba(255, 255, 255, 0.55);
}

.calendar-empty i {
    font-size: 18px;
    opacity: 0.6;
}

.calendar-empty p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
}

.calendar-empty-note {
    font-size: 12px;
    line-height: 1.5;
}

.calendar-event-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calendar-event-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.calendar-event-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.calendar-event-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.calendar-event-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.lk-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lk-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.18);
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.profile-name {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.profile-username {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 12px;
}

.role-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.role-tag {
    padding: 6px 12px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.roles-live-note {
    margin-top: 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.42);
    letter-spacing: 0.3px;
}

.roles-live-note i {
    margin-right: 4px;
    font-size: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: rgba(12, 12, 12, 0.95);
    border-radius: 16px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.22);
}

.stat-card.featured {
    grid-column: span 3;
}

.stat-card.accent-gold .card-icon {
    background: linear-gradient(145deg, rgba(255, 215, 100, 0.15), rgba(255, 255, 255, 0.04));
    border-color: rgba(255, 215, 100, 0.25);
}

.stat-card-label {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 14px;
    margin-bottom: 8px;
}

.stat-card-value {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
}

.stat-card-note {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}

.progress-bar {
    margin-top: 16px;
    width: 100%;
    height: 8px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), #fff);
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
}

.card-icon-coin {
    background: rgba(233, 30, 140, 0.08);
    border-color: rgba(233, 30, 140, 0.18);
}

.bcoin-icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
    vertical-align: middle;
}

.bcoin-icon--xs {
    width: 14px;
    height: 14px;
    margin-right: 4px;
}

.bcoin-icon--sm {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.bcoin-icon--md {
    width: 26px;
    height: 26px;
}

.bcoin-icon--input {
    width: 30px;
    height: 30px;
}

.bcoin-icon--lg {
    width: 34px;
    height: 34px;
}

.lk-stat-label-coins {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.metric-value .bcoin-icon--xs {
    margin-right: 4px;
    margin-left: 2px;
}

.family-card,
.placeholder-panel {
    background: rgba(12, 12, 12, 0.95);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.family-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.22);
}

.placeholder-panel {
    margin-bottom: 28px;
}

.placeholder-panel .card-icon {
    margin-bottom: 16px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.card-text {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
}

.card-text code {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.coming-soon-grid,
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.data-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.data-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.data-list-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.data-list-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.data-list-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.status-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.status-completed,
.status-open {
    color: #8dffb0;
    background: rgba(80, 200, 120, 0.12);
    border-color: rgba(80, 200, 120, 0.25);
}

.status-pending {
    color: #ffd98a;
    background: rgba(255, 200, 80, 0.12);
    border-color: rgba(255, 200, 80, 0.25);
}

.status-closed,
.status-cancelled {
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.info-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.metric-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.metric-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-list li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.metric-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.metric-value {
    font-size: 13px;
    font-weight: 600;
    text-align: right;
}

.card-link-inline {
    margin-top: auto;
    align-self: flex-start;
}

/* --- Home dashboard --- */
.lk-profile-hero {
    position: relative;
    margin-bottom: 24px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lk-profile-banner {
    position: relative;
    width: 100%;
    height: clamp(168px, 24vw, 220px);
    overflow: hidden;
    background: #0a0a0a;
}

.lk-profile-banner-image,
.lk-profile-banner-fallback {
    width: 100%;
    height: 100%;
    display: block;
}

.lk-profile-banner-image {
    object-fit: cover;
    object-position: center center;
    image-rendering: auto;
}

.lk-profile-banner.is-default {
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 140, 80, 0.28), transparent 42%),
        radial-gradient(circle at 82% 0%, rgba(88, 101, 242, 0.22), transparent 38%),
        linear-gradient(135deg, rgba(255, 215, 100, 0.12), rgba(255, 255, 255, 0.02) 48%, rgba(0, 0, 0, 0.35));
}

.lk-profile-panel {
    position: relative;
    padding: 0 22px 20px;
}

.lk-profile-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-top: -42px;
    margin-bottom: 12px;
}

.lk-profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.lk-profile-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(8, 8, 8, 0.92);
    background: rgba(8, 8, 8, 0.92);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.lk-profile-status {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #23a559;
    border: 4px solid rgba(8, 8, 8, 0.92);
    box-shadow: 0 0 10px rgba(35, 165, 89, 0.45);
}

.lk-profile-details {
    min-width: 0;
}

.lk-profile-name {
    font-size: clamp(24px, 3.5vw, 30px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 4px;
}

.lk-profile-handle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.48);
    margin-bottom: 12px;
}

.lk-profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lk-profile-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lk-profile-tag-accent {
    color: #ffe08a;
    background: rgba(255, 215, 100, 0.08);
    border-color: rgba(255, 215, 100, 0.18);
}

.lk-profile-roles {
    margin-top: 14px;
}

.lk-profile-roles-label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
}

.lk-profile-role-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lk-profile-tag-role {
    color: rgba(255, 255, 255, 0.82);
    background: rgba(88, 101, 242, 0.12);
    border-color: rgba(88, 101, 242, 0.22);
}

.lk-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.lk-home-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.lk-home-greeting {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.lk-home-title {
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 6px;
}

.lk-home-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

.lk-home-header-aside {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lk-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lk-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.lk-pill-success {
    color: #9dffc0;
    border-color: rgba(80, 200, 120, 0.25);
    background: rgba(80, 200, 120, 0.08);
}

.lk-pill-success .lk-pill-dot {
    background: #8dffb0;
    box-shadow: 0 0 8px rgba(141, 255, 176, 0.6);
}

.lk-pill-muted {
    color: rgba(255, 255, 255, 0.55);
}

.lk-pill-live {
    color: #b8d4ff;
    border-color: rgba(120, 160, 255, 0.25);
    background: rgba(80, 120, 255, 0.08);
}

.lk-pill-live .lk-pill-dot {
    background: #7aa8ff;
    box-shadow: 0 0 8px rgba(122, 168, 255, 0.5);
}

.lk-pill-warn {
    color: #ffe08a;
    border-color: rgba(255, 200, 80, 0.3);
    background: rgba(255, 200, 80, 0.1);
}

.lk-home-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.lk-stat-tile {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.lk-stat-tile:hover {
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.lk-stat-tile-accent {
    background: linear-gradient(145deg, rgba(255, 215, 100, 0.1), rgba(255, 255, 255, 0.02));
    border-color: rgba(255, 215, 100, 0.2);
}

.lk-stat-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.lk-stat-value {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.lk-stat-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.lk-home-bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
    align-items: stretch;
}

.lk-home-card {
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lk-home-card-wide {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
}

.lk-home-card-phoenix {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.lk-home-card-rank {
    grid-column: 1 / -1;
    grid-row: 2;
}

.lk-home-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.lk-home-card-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.lk-home-card-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.lk-home-link {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.lk-home-link:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
}

.lk-home-link-muted {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}

.lk-progress {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.lk-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffd86b, #fff);
    box-shadow: 0 0 16px rgba(255, 216, 107, 0.35);
    transition: width 0.6s ease;
}

.lk-home-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: auto;
}

.lk-stats-updated {
    margin: 12px 0 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.38);
}

.lk-stats-updated i {
    margin-right: 4px;
    font-size: 10px;
}

.lk-mini-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}

.lk-mini-stat i {
    width: 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

.lk-server-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lk-server-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.lk-server-name {
    font-size: 13px;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lk-server-online {
    font-size: 13px;
    font-weight: 700;
    color: #9dffc0;
    flex-shrink: 0;
}

.lk-server-max {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
}

.lk-phoenix-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lk-home-card-phoenix {
    position: relative;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(255, 140, 80, 0.22);
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 120, 60, 0.16), transparent 42%),
        radial-gradient(circle at 0% 100%, rgba(255, 200, 80, 0.08), transparent 40%),
        rgba(18, 14, 12, 0.92);
}

.lk-phoenix-glow {
    position: absolute;
    inset: -40% -20% auto;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 130, 70, 0.22), transparent 68%);
    pointer-events: none;
}

.lk-phoenix-top,
.lk-phoenix-hero,
.lk-phoenix-footer {
    position: relative;
    z-index: 1;
}

.lk-phoenix-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 20px 0;
}

.lk-phoenix-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.lk-phoenix-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(255, 120, 60, 0.22), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 140, 80, 0.28);
    box-shadow: 0 8px 24px rgba(255, 100, 40, 0.12);
    flex-shrink: 0;
    overflow: hidden;
}

.lk-phoenix-icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(226, 124, 105, 0.35));
}

.lk-phoenix-name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 3px;
}

.lk-phoenix-region {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.42);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lk-phoenix-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #ff8a4c, #ff5e3a);
    border: 1px solid rgba(255, 180, 120, 0.35);
    box-shadow: 0 8px 20px rgba(255, 90, 40, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.lk-phoenix-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(255, 90, 40, 0.32);
}

.lk-phoenix-link i {
    font-size: 10px;
    opacity: 0.85;
}

.lk-phoenix-hero {
    padding: 18px 20px 16px;
    flex: 1;
}

.lk-phoenix-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 8px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.lk-phoenix-status-text {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.02em;
}

.lk-phoenix-count-wrap {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.lk-phoenix-main {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.lk-phoenix-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.55);
    flex-shrink: 0;
    animation: lk-phoenix-pulse 2s ease-in-out infinite;
}

.lk-phoenix-dot.is-offline {
    background: #f87171;
    box-shadow: 0 0 8px rgba(248, 113, 113, 0.55);
    animation: none;
}

@keyframes lk-phoenix-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.92); }
}

.lk-phoenix-count {
    font-size: clamp(34px, 5vw, 42px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    background: linear-gradient(135deg, #fff 0%, #ffd2a8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
}

.lk-phoenix-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.38);
}

.lk-phoenix-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
    padding: 14px 20px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.18);
}

.lk-phoenix-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lk-phoenix-chip-muted {
    color: rgba(255, 255, 255, 0.45);
}

.lk-phoenix-chip-warn {
    color: #ffe08a;
    border-color: rgba(255, 200, 80, 0.25);
    background: rgba(255, 200, 80, 0.08);
}

.lk-phoenix-queue {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.lk-phoenix-source {
    margin-left: auto;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.28);
    letter-spacing: 0.04em;
    text-transform: lowercase;
}

.lk-phoenix-source a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.lk-phoenix-source a:hover {
    color: #fff;
}

.lk-pill-dot.is-offline {
    background: #f87171;
    box-shadow: 0 0 8px rgba(248, 113, 113, 0.55);
}

.lk-rank-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    counter-reset: none;
}

.lk-rank-item {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.2s ease;
}

.lk-rank-item.is-you {
    border-color: rgba(255, 215, 100, 0.35);
    background: rgba(255, 215, 100, 0.06);
}

.lk-rank-item.is-first .lk-rank-pos {
    color: #ffd86b;
}

.lk-rank-pos {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
}

.lk-rank-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lk-rank-name {
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lk-rank-name em {
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffd86b;
    margin-left: 6px;
}

.lk-rank-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.lk-rank-xp {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.65);
    flex-shrink: 0;
}

.lk-home-empty {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
}

.lk-home-empty-state {
    padding: 48px 32px;
    border-radius: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lk-home-empty-state-error {
    border-color: rgba(248, 113, 113, 0.2);
    background: rgba(248, 113, 113, 0.05);
}

.lk-home-empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
}

.lk-home-empty-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.lk-home-empty-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto;
}

.lk-news-section {
    margin-top: 16px;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.lk-news-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.lk-news-head-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.lk-news-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9dffc0;
    background: rgba(80, 200, 120, 0.1);
    border: 1px solid rgba(80, 200, 120, 0.22);
    box-shadow: 0 0 14px rgba(80, 200, 120, 0.12);
    flex-shrink: 0;
}

.lk-news-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6dff9a;
    box-shadow: 0 0 8px rgba(109, 255, 154, 0.8);
    animation: lk-live-pulse 1.8s ease-in-out infinite;
}

@keyframes lk-live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.85); }
}

.lk-news-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.lk-news-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.42);
}

.lk-news-discord-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.28), rgba(88, 101, 242, 0.12));
    border: 1px solid rgba(88, 101, 242, 0.35);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.12);
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lk-news-discord-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(88, 101, 242, 0.2);
}

.lk-embed-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lk-embed {
    position: relative;
    display: flex;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
    animation: lk-embed-in 0.45s ease backwards;
    content-visibility: auto;
    contain-intrinsic-size: auto 280px;
}

.lk-embed:nth-child(1) { animation-delay: 0.04s; }
.lk-embed:nth-child(2) { animation-delay: 0.1s; }
.lk-embed:nth-child(3) { animation-delay: 0.16s; }
.lk-embed:nth-child(4) { animation-delay: 0.22s; }
.lk-embed:nth-child(5) { animation-delay: 0.28s; }

@keyframes lk-embed-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.lk-embed:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 14px 32px rgba(0, 0, 0, 0.2);
}

.lk-embed-featured {
    background:
        linear-gradient(145deg, rgba(255, 140, 80, 0.07), rgba(255, 255, 255, 0.02)),
        rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 140, 80, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 14px 34px rgba(0, 0, 0, 0.22);
}

.lk-embed-accent {
    width: 5px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #ffffff 0%, #b4b4b8 100%);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
}

.lk-embed-featured .lk-embed-accent {
    background: linear-gradient(180deg, #ffb07a 0%, #ff7a3d 100%);
    box-shadow: 0 0 20px rgba(255, 122, 61, 0.35);
}

.lk-embed-content {
    flex: 1;
    min-width: 0;
    padding: 16px 18px 14px;
}

.lk-embed-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.lk-embed-author-block {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.lk-embed-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: contain;
    background: rgba(255, 120, 60, 0.1);
    border: 1px solid rgba(255, 140, 80, 0.22);
    padding: 4px;
    flex-shrink: 0;
    box-shadow: 0 0 16px rgba(255, 120, 60, 0.12);
}

.lk-embed-author-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.lk-embed-author {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.lk-embed-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.38);
}

.lk-embed-thumb {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.lk-embed-body {
    margin-bottom: 4px;
}

.lk-embed-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #fff;
}

.lk-embed-featured .lk-embed-title {
    font-size: 17px;
}

.lk-embed-title a {
    color: #fff;
    text-decoration: none;
}

.lk-embed-title a:hover {
    color: #ffd2a8;
}

.lk-embed-description {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.76);
}

.lk-embed-line {
    margin: 0 0 6px;
}

.lk-embed-line:last-child {
    margin-bottom: 0;
}

.lk-embed-bullets {
    margin: 0 0 4px 18px;
    padding: 0;
}

.lk-embed-bullets li {
    margin-bottom: 6px;
    padding-left: 2px;
}

.lk-embed-bullets li::marker {
    color: rgba(255, 255, 255, 0.35);
}

.lk-embed-description a {
    color: #8ab4ff;
    text-decoration: none;
    word-break: break-word;
}

.lk-embed-description a:hover {
    text-decoration: underline;
}

.lk-embed-image {
    display: block;
    margin-top: 12px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.18);
}

.lk-embed-attachments {
    display: grid;
    gap: 4px;
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.18);
}

.lk-embed-attachments[data-count="1"] {
    grid-template-columns: 1fr;
}

.lk-embed-attachments[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lk-embed-attachments[data-count="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lk-embed-attachments[data-count="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lk-embed-attachments[data-count="5"],
.lk-embed-attachments[data-count="6"],
.lk-embed-attachments[data-count="7"],
.lk-embed-attachments[data-count="8"],
.lk-embed-attachments[data-count="9"],
.lk-embed-attachments[data-count="10"] {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.lk-embed-attachments.is-featured[data-count="1"] .lk-embed-attachment.is-primary img,
.lk-embed-attachments.is-featured[data-count="1"] .lk-embed-attachment.is-primary video {
    max-height: 420px;
}

.lk-embed-attachment {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    appearance: none;
    cursor: zoom-in;
    aspect-ratio: 1;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    color: inherit;
    font: inherit;
}

.lk-embed-attachments[data-count="1"] .lk-embed-attachment {
    aspect-ratio: auto;
}

.lk-embed-attachment img,
.lk-embed-attachment video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lk-embed-attachments[data-count="1"] .lk-embed-attachment img,
.lk-embed-attachments[data-count="1"] .lk-embed-attachment video {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.12);
}

.lk-embed-attachment-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 14px;
}

.lk-embed-attachment-play i {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.lk-embed-attachment-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.lk-embed-featured .lk-embed-attachments {
    margin-top: 14px;
}

.lk-media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lk-media-lightbox[hidden] {
    display: none;
}

.lk-media-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
}

.lk-media-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(96vw, 1100px);
    max-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lk-media-lightbox-close {
    position: absolute;
    top: -12px;
    right: -12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.92);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lk-media-lightbox-close:hover {
    background: rgba(40, 40, 40, 0.96);
    transform: scale(1.04);
}

.lk-media-lightbox-content {
    width: 100%;
    max-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lk-media-lightbox-content img,
.lk-media-lightbox-content video {
    display: block;
    max-width: 100%;
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.lk-media-lightbox-content video {
    background: #000;
}

body.lk-lightbox-open {
    overflow: hidden;
}

.lk-embed-featured .lk-embed-image {
    margin-top: 14px;
}

.lk-embed-image.is-static {
    pointer-events: none;
}

.lk-embed-image img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.12);
}

.lk-embed-featured .lk-embed-image img {
    max-height: 420px;
}

.lk-embed-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.lk-embed-source,
.lk-embed-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
}

.lk-embed-source {
    color: rgba(255, 255, 255, 0.34);
}

.lk-embed-source i {
    font-size: 10px;
    opacity: 0.7;
}

.lk-embed-link {
    padding: 6px 10px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    background: rgba(88, 101, 242, 0.12);
    border: 1px solid rgba(88, 101, 242, 0.22);
    transition: background 0.2s ease, color 0.2s ease;
}

.lk-embed-link:hover {
    color: #fff;
    background: rgba(88, 101, 242, 0.22);
}

@media (prefers-reduced-motion: reduce) {
    .lk-embed,
    .lk-news-badge::before {
        animation: none;
    }

    .lk-sidebar,
    .lk-profile-hero,
    .lk-news-section {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

.lk-news-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.18);
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    line-height: 1.5;
}

.lk-news-empty i {
    font-size: 18px;
    opacity: 0.45;
}

@media (max-width: 900px) {
    .stats-grid,
    .coming-soon-grid,
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-card.featured {
        grid-column: span 2;
    }

    .lk-home-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lk-home-bento {
        grid-template-columns: 1fr;
    }

    .lk-home-card-wide,
    .lk-home-card-phoenix,
    .lk-home-card-rank {
        grid-column: auto;
        grid-row: auto;
        height: auto;
    }

    .lk-home-card-rank {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .auth-section,
    .lk-section {
        padding: 100px 16px 100px;
    }

    .content-panel {
        padding: 24px 16px 20px;
    }

    .lk-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .lk-sidebar {
        position: static;
        padding: 16px;
    }

    .lk-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .lk-nav-item {
        flex: 1 1 calc(33.333% - 8px);
        justify-content: center;
        padding: 10px 8px;
        font-size: 11px;
    }

    .lk-nav-item i {
        display: none;
    }

    .lk-sidebar-footer {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .lk-sidebar-link {
        flex: 1 1 auto;
        justify-content: center;
    }

    .lk-feed-grid {
        grid-template-columns: 1fr;
    }

    .lk-home-stats {
        grid-template-columns: 1fr 1fr;
    }

    .lk-home-header,
    .lk-profile-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .lk-profile-banner {
        height: clamp(150px, 34vw, 190px);
    }

    .lk-profile-top {
        margin-top: -34px;
    }

    .lk-profile-avatar {
        width: 76px;
        height: 76px;
        border-width: 5px;
    }

    .lk-profile-status {
        width: 18px;
        height: 18px;
        border-width: 3px;
    }

    .lk-profile-panel {
        padding: 0 16px 16px;
    }

    .lk-home-mini-grid {
        grid-template-columns: 1fr;
    }

    .lk-news-head {
        flex-direction: column;
        align-items: stretch;
    }

    .lk-news-discord-link {
        align-self: flex-start;
    }

    .lk-embed-header {
        flex-direction: column-reverse;
    }

    .lk-embed-thumb {
        width: 100%;
        height: 140px;
    }

    .lk-embed-attachments[data-count="3"],
    .lk-embed-attachments[data-count="4"],
    .lk-embed-attachments[data-count="5"],
    .lk-embed-attachments[data-count="6"],
    .lk-embed-attachments[data-count="7"],
    .lk-embed-attachments[data-count="8"],
    .lk-embed-attachments[data-count="9"],
    .lk-embed-attachments[data-count="10"] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .calendar-layout {
        grid-template-columns: 1fr;
    }

    .calendar-cell {
        min-height: 56px;
    }

    .calendar-day {
        padding: 8px;
    }

    .calendar-day-number {
        font-size: 12px;
    }

    .profile-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .lk-header {
        flex-direction: column;
    }

    .stats-grid,
    .coming-soon-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .stat-card.featured {
        grid-column: span 1;
    }
}

/* ── Roulette (Majestic-style) ── */

.lk-section-panel[data-lk-panel="roulette"] {
    --rl-bg: #101014;
    --rl-surface: #16161c;
    --rl-surface-2: #1c1c24;
    --rl-border: rgba(255, 255, 255, 0.06);
    --rl-pink: #e91e8c;
    --rl-pink-dim: #9c1458;
    --rl-green: #2ecc71;
    --rl-green-dim: #1a7a42;
    --rl-yellow: #f5c518;
    --rl-yellow-dim: #9a7a0a;
    --rl-white: #d8d8dc;
    --rl-white-dim: #8a8a90;
}

body.lk-roulette-mode .lk-section {
    justify-content: flex-start;
    align-items: stretch;
    padding: 96px 16px 24px;
}

body.lk-roulette-mode .content-panel {
    max-width: none;
    width: 100%;
    padding: 20px 16px 16px;
}

body.lk-roulette-mode .lk-panel-wide {
    max-width: none;
}

body.lk-roulette-mode .rl-page {
    min-height: calc(100vh - 200px);
}

body.lk-roulette-mode .rl-shell-grid {
    min-height: calc(100vh - 280px);
}

.rl-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 520px;
}

.rl-topbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.rl-topbar-eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
    margin-bottom: 4px;
}

.rl-topbar-name {
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}

.rl-balance-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(12, 12, 16, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.rl-balance-value {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.rl-balance-label {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
}

.rl-coin {
    display: inline-block;
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.rl-coin-input {
    width: 30px;
    height: 30px;
}

.rl-coin-xs {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 4px;
}

.rl-shell {
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(22, 22, 28, 0.96), rgba(14, 14, 18, 0.98));
    border: 1px solid var(--rl-border);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.rl-shell-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    min-height: 460px;
}

.rl-stage {
    display: flex;
    flex-direction: column;
    padding: 22px 24px 20px;
    border-right: 1px solid var(--rl-border);
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(233, 30, 140, 0.06), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.rl-phase {
    text-align: center;
    margin-bottom: 14px;
    min-height: 22px;
}

.rl-phase-text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.3s ease;
}

.rl-phase.is-spinning .rl-phase-text {
    color: rgba(255, 255, 255, 0.85);
    animation: rlPulse 1.2s ease-in-out infinite;
}

.rl-phase.is-result .rl-phase-text {
    color: var(--rl-green);
}

@keyframes rlPulse {
    0%, 100% { opacity: 0.65; }
    50% { opacity: 1; }
}

.rl-ribbon-zone {
    position: relative;
    overflow: hidden;
    height: 92px;
    margin-bottom: 22px;
    border-radius: 14px;
    background: #0a0a0e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 2px 20px rgba(0, 0, 0, 0.6);
}

.rl-ribbon-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 3;
    pointer-events: none;
}

.rl-ribbon-fade-left {
    left: 0;
    background: linear-gradient(90deg, #0a0a0e 0%, transparent 100%);
}

.rl-ribbon-fade-right {
    right: 0;
    background: linear-gradient(270deg, #0a0a0e 0%, transparent 100%);
}

.rl-ribbon-indicator {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: #fff;
    box-shadow:
        0 0 8px rgba(255, 255, 255, 0.9),
        0 0 20px rgba(255, 255, 255, 0.35);
    z-index: 4;
    pointer-events: none;
    border-radius: 1px;
}

.rl-ribbon-indicator::before,
.rl-ribbon-indicator::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
}

.rl-ribbon-indicator::before {
    top: -2px;
    border-bottom: 8px solid #fff;
}

.rl-ribbon-indicator::after {
    bottom: -2px;
    border-top: 8px solid #fff;
}

.rl-ribbon-track {
    display: flex;
    gap: 6px;
    height: 100%;
    align-items: center;
    padding: 10px 12px;
    will-change: transform;
}

.rl-timer-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 5;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
}

.rl-seg {
    flex: 0 0 76px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.06em;
    user-select: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.35);
}

.rl-seg-white {
    background: linear-gradient(180deg, #f0f0f4 0%, #a8a8b0 100%);
    color: #1a1a1e;
}

.rl-seg-pink {
    background: linear-gradient(180deg, #ff5eb8 0%, #a8125a 100%);
    color: #fff;
}

.rl-seg-green {
    background: linear-gradient(180deg, #45d67a 0%, #157a3a 100%);
    color: #fff;
}

.rl-seg-yellow {
    background: linear-gradient(180deg, #ffe04a 0%, #c49a08 100%);
    color: #1a1400;
}

.rl-controls {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rl-bet-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.rl-bet-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    outline: none;
    width: 100%;
    font-family: inherit;
    letter-spacing: 0.02em;
}

.rl-bet-input::-webkit-outer-spin-button,
.rl-bet-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.rl-bet-buttons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.rl-bet-btn {
    position: relative;
    border: none;
    border-radius: 12px;
    padding: 16px 8px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    font-family: inherit;
    overflow: hidden;
}

.rl-bet-btn span {
    position: relative;
    z-index: 1;
}

.rl-bet-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 55%);
    pointer-events: none;
}

.rl-bet-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.rl-bet-btn:active:not(:disabled) {
    transform: translateY(0);
}

.rl-bet-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(0.3);
}

.rl-bet-btn.has-bet {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.rl-bet-btn-white {
    background: linear-gradient(180deg, #ececf0, #94949c);
    color: #141418;
}

.rl-bet-btn-pink {
    background: linear-gradient(180deg, #ff52a8, #8e1048);
    color: #fff;
}

.rl-bet-btn-green {
    background: linear-gradient(180deg, #3ecf6e, #126832);
    color: #fff;
}

.rl-bet-btn-yellow {
    background: linear-gradient(180deg, #ffd633, #a07800);
    color: #141000;
}

.rl-bet-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.42);
    min-height: 18px;
    text-align: center;
    letter-spacing: 0.02em;
}

.rl-bet-hint-win {
    color: var(--rl-green);
    font-weight: 600;
}

.rl-bet-hint-loss {
    color: #e87070;
}

.rl-board {
    display: flex;
    flex-direction: column;
    padding: 18px 16px 16px;
    background: rgba(0, 0, 0, 0.18);
    min-height: 0;
}

.rl-board-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.rl-board-stat {
    flex: 1;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--rl-border);
}

.rl-board-stat-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
    margin-bottom: 4px;
}

.rl-board-stat strong {
    font-size: 17px;
    font-weight: 700;
}

.rl-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    flex: 1;
    min-height: 320px;
}

.rl-column {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--rl-border);
    min-width: 0;
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.rl-column.is-winner {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.12);
}

.rl-col-head {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

.rl-col-white .rl-col-head {
    background: linear-gradient(180deg, rgba(216, 216, 220, 0.95), rgba(138, 138, 144, 0.85));
    color: #141418;
}

.rl-col-pink .rl-col-head {
    background: linear-gradient(180deg, rgba(255, 82, 168, 0.95), rgba(142, 16, 72, 0.95));
    color: #fff;
}

.rl-col-green .rl-col-head {
    background: linear-gradient(180deg, rgba(62, 207, 110, 0.95), rgba(18, 104, 50, 0.95));
    color: #fff;
}

.rl-col-yellow .rl-col-head {
    background: linear-gradient(180deg, rgba(255, 214, 51, 0.95), rgba(160, 120, 0, 0.95));
    color: #141000;
}

.rl-col-mult {
    display: block;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.rl-col-meta {
    display: block;
    font-size: 10px;
    font-weight: 600;
    opacity: 0.75;
    margin-top: 2px;
}

.rl-col-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.rl-col-empty {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.28);
    text-align: center;
    padding: 20px 6px;
    line-height: 1.4;
}

.rl-col-bet {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 7px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.rl-col-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.rl-col-bet-body {
    min-width: 0;
    flex: 1;
}

.rl-col-name {
    display: block;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, 0.88);
}

.rl-col-user {
    display: block;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rl-col-amount {
    font-size: 11px;
    font-weight: 700;
    color: var(--rl-pink);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.rl-col-my-bet {
    padding: 7px 8px;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.04em;
    background: rgba(233, 30, 140, 0.12);
    border-top: 1px solid rgba(233, 30, 140, 0.2);
    color: #ff6eb4;
}

.rl-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 80px 20px;
    color: rgba(255, 255, 255, 0.45);
    flex: 1;
}

.rl-empty.is-visible,
.rl-empty:not([hidden]) {
    display: flex;
}

.rl-shell:not([hidden]) {
    display: block;
}

.rl-shell[hidden],
.rl-balance-pill[hidden] {
    display: none !important;
}

.rl-empty-spinner {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--rl-pink);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@media (max-width: 960px) {
    .rl-shell-grid {
        grid-template-columns: 1fr;
    }

    .rl-stage {
        border-right: none;
        border-bottom: 1px solid var(--rl-border);
    }

    .rl-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-height: 240px;
    }
}

@media (max-width: 560px) {
    .rl-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .rl-bet-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rl-columns {
        grid-template-columns: 1fr 1fr;
    }

    .rl-seg {
        flex-basis: 64px;
        height: 58px;
        font-size: 13px;
    }
}
