:root {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color-scheme: light;
    --nightfall: #080014;
    --lavender: #4c1d89;
    --deep-purple: #120224;
    --rich-purple: #2a0448;
    --accent-gold: #d9b650;
    --text: rgba(244, 237, 255, 0.92);
    --muted: rgba(207, 198, 232, 0.72);
}

*[hidden] {
    display: none !important;
}

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

.emoji {
    margin-right: 0.5rem;
    font-size: 1.1em;
    line-height: 1;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: linear-gradient(135deg, var(--nightfall) 0%, var(--deep-purple) 38%, var(--rich-purple) 72%, var(--lavender) 100%);
    color: var(--text);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(8, 0, 20, 0.8);
    border-bottom: 1px solid rgba(166, 143, 212, 0.25);
    backdrop-filter: blur(18px);
}

.nav {
    width: 100%;
    margin: 0;
    padding: 1.1rem 2.5rem 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(226, 203, 255, 0.85);
    text-decoration: none;
    transition: color 0.25s ease;
}

.nav-brand:hover,
.nav-brand:focus-visible {
    color: var(--accent-gold);
}

.nav-brand span {
    display: inline-block;
}

.nav-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}


.nav-links {
    list-style: none;
    display: flex;
    gap: 1.8rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-size: 0.92rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(226, 203, 255, 0.8);
    padding-bottom: 0.3rem;
    border-bottom: 2px solid transparent;
    transition: color 0.25s ease, border-bottom-color 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--accent-gold);
    border-bottom-color: rgba(217, 182, 80, 0.65);
}

.nav-links a.active {
    color: var(--accent-gold);
    border-bottom-color: rgba(217, 182, 80, 0.65);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.nav-login {
    padding: 0.55rem 1.65rem;
    border-radius: 999px;
    border: 1px solid rgba(217, 182, 80, 0.6);
    background: rgba(8, 0, 20, 0.6);
    color: rgba(255, 228, 134, 0.85);
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-login:hover,
.nav-login:focus-visible {
    transform: translateY(-1px);
    background: rgba(217, 182, 80, 0.18);
    color: rgba(255, 237, 170, 0.95);
    border-color: rgba(255, 237, 170, 0.6);
}

.nav-user {
    position: relative;
    display: none;
}

.nav-user:not([hidden]) {
    display: flex;
    align-items: center;
}

.nav-user-avatar-slot {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(217, 182, 80, 0.35);
    background: rgba(8, 0, 20, 0.55);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    padding: 0;
}

.nav-user-avatar-slot:focus-visible,
.nav-user-avatar-slot:hover {
    border-color: rgba(255, 228, 134, 0.75);
}

.nav-user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.nav-user-avatar--fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(217, 182, 80, 0.18);
    color: rgba(255, 228, 134, 0.85);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
}

.nav-avatar-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    min-width: 160px;
    background: rgba(12, 0, 32, 0.95);
    border: 1px solid rgba(166, 143, 212, 0.35);
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    padding: 0.4rem 0;
    display: flex;
    flex-direction: column;
    z-index: 25;
}

.nav-avatar-menu[hidden] {
    display: none;
}

.nav-avatar-menu a,
.nav-avatar-menu button {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    color: rgba(226, 203, 255, 0.88);
    text-decoration: none;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}

.nav-avatar-menu a:hover,
.nav-avatar-menu a:focus-visible,
.nav-avatar-menu button:hover,
.nav-avatar-menu button:focus-visible {
    background: rgba(76, 0, 110, 0.4);
    color: rgba(255, 228, 134, 0.95);
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem 5rem;
    gap: 2.5rem;
}

.intro {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

h1 {
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-gold);
}

.tagline {
    margin: 0;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: rgba(207, 198, 232, 0.68);
}

.description {
    margin: 0;
    max-width: 640px;
    font-size: clamp(1rem, 2.8vw, 1.15rem);
    line-height: 1.7;
    color: var(--text);
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2.2rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(230, 216, 255, 0.9);
    background: rgba(20, 0, 45, 0.75);
    border: 1px solid rgba(217, 182, 80, 0.45);
    box-shadow: 0 12px 30px rgba(20, 0, 45, 0.4);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    gap: 0.6rem;
}

.cta-button:hover,
.cta-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 24px 50px rgba(217, 182, 80, 0.35);
}

.cta-button--secondary {
    color: rgba(20, 10, 0, 0.95);
    background: linear-gradient(120deg, var(--accent-gold), rgba(255, 235, 165, 0.9));
    border: 1px solid rgba(255, 235, 165, 0.7);
    box-shadow: 0 18px 40px rgba(217, 182, 80, 0.25);
}

.cta-button--secondary:hover,
.cta-button--secondary:focus-visible {
    background: rgba(35, 5, 75, 0.85);
    box-shadow: 0 18px 40px rgba(35, 5, 75, 0.45);
}

.cta-button--primary:hover,
.cta-button--primary:focus-visible {
    background: rgba(35, 5, 75, 0.85);
    box-shadow: 0 18px 40px rgba(35, 5, 75, 0.45);
}

.news-spotlight {
    position: relative;
    width: min(100%, 980px);
    margin-inline: auto;
    padding: 2.8rem 2.6rem 3.1rem;
    text-align: left;
    background: linear-gradient(150deg, rgba(60, 2, 108, 0.92), rgba(12, 0, 40, 0.92));
    border-radius: 28px;
    border: 1px solid rgba(217, 182, 80, 0.42);
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.news-spotlight::before,
.news-spotlight::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.news-spotlight::before {
    width: 360px;
    height: 360px;
    top: -210px;
    right: -140px;
    background: radial-gradient(circle at center, rgba(217, 182, 80, 0.45), transparent 68%);
}

.news-spotlight::after {
    width: 280px;
    height: 280px;
    bottom: -160px;
    left: -120px;
    background: radial-gradient(circle at center, rgba(83, 0, 145, 0.55), transparent 72%);
}

.news-spotlight__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.45rem 1.3rem;
    font-size: 0.75rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(255, 240, 194, 0.95);
    background: rgba(217, 182, 80, 0.16);
    border: 1px solid rgba(255, 237, 170, 0.42);
    border-radius: 999px;
    position: relative;
    z-index: 1;
}

.news-spotlight__heading {
    margin: 1.2rem 0 0.6rem;
    font-size: clamp(2rem, 5vw, 2.8rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 240, 194, 0.98);
    position: relative;
    z-index: 1;
}

.news-spotlight__lead {
    margin: 0;
    max-width: 640px;
    font-size: clamp(1rem, 2.6vw, 1.15rem);
    line-height: 1.7;
    color: rgba(232, 224, 255, 0.88);
    position: relative;
    z-index: 1;
}

.news-spotlight__grid {
    margin-top: 2.4rem;
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    position: relative;
    z-index: 1;
}

.news-spotlight__status {
    margin: 1.8rem 0 0;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    color: rgba(242, 235, 255, 0.78);
    position: relative;
    z-index: 1;
}

.news-spotlight__status[data-state='loading'] {
    color: rgba(242, 235, 255, 0.64);
}

.news-spotlight__status[data-state='error'] {
    color: rgba(255, 164, 164, 0.88);
}

.news-spotlight__status[data-state='empty'] {
    color: rgba(242, 235, 255, 0.68);
}

.news-spotlight__noscript {
    margin-top: 1.6rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(232, 224, 255, 0.72);
}

.news-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.75rem 1.6rem;
    border-radius: 20px;
    background: rgba(8, 0, 28, 0.78);
    border: 1px solid rgba(166, 143, 212, 0.35);
    box-shadow: 0 24px 50px rgba(12, 0, 42, 0.48);
    min-height: 240px;
}

.news-card__date {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(217, 182, 80, 0.78);
}

.news-card__title {
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    color: rgba(255, 240, 194, 0.95);
}

.news-card__summary {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.6;
    color: rgba(228, 221, 250, 0.88);
    display: block;
}

.news-card__summary p,
.news-card__summary ul,
.news-card__summary ol,
.news-card__summary blockquote,
.news-card__summary h3,
.news-card__summary h4 {
    margin: 0 0 0.75rem;
}

.news-card__summary p:last-child,
.news-card__summary ul:last-child,
.news-card__summary ol:last-child,
.news-card__summary blockquote:last-child,
.news-card__summary h3:last-child,
.news-card__summary h4:last-child {
    margin-bottom: 0;
}

.news-card__summary ul,
.news-card__summary ol {
    padding-left: 1.2rem;
}

.news-card__summary span {
    display: inline;
}

.news-card__summary a {
    color: rgba(255, 235, 170, 0.92);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 235, 170, 0.5);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.news-card__summary a:hover,
.news-card__summary a:focus-visible {
    color: rgba(255, 237, 190, 1);
    border-bottom-color: rgba(255, 237, 190, 0.9);
}

.news-card__cta {
    margin-top: auto;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 240, 194, 0.95);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    width: fit-content;
    transition: color 0.22s ease, transform 0.22s ease, border-bottom-color 0.22s ease;
}

.news-card__cta:hover,
.news-card__cta:focus-visible {
    color: rgba(255, 228, 134, 0.98);
    border-bottom-color: rgba(255, 228, 134, 0.6);
    transform: translateY(-2px);
}

.news-spotlight__cta {
    margin-top: 2.6rem;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.news-spotlight__cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 2.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    font-size: 0.92rem;
    color: rgba(20, 10, 0, 0.95);
    background: linear-gradient(120deg, rgba(217, 182, 80, 0.96), rgba(255, 235, 170, 0.9));
    border: 1px solid rgba(255, 235, 170, 0.8);
    box-shadow: 0 28px 58px rgba(217, 182, 80, 0.35);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.news-spotlight__cta-button:hover,
.news-spotlight__cta-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 32px 62px rgba(217, 182, 80, 0.45);
    background: linear-gradient(120deg, rgba(255, 235, 170, 0.96), rgba(217, 182, 80, 0.95));
}

.news-spotlight__cta-button:focus-visible {
    outline: 2px solid rgba(255, 235, 170, 0.65);
    outline-offset: 4px;
}

@media (max-width: 820px) {
    .news-spotlight {
        padding: 2.6rem 2rem 2.8rem;
    }
}

@media (max-width: 540px) {
    .news-spotlight {
        padding: 2.2rem 1.6rem 2.6rem;
    }

    .news-spotlight__badge {
        letter-spacing: 0.22em;
    }

    .news-spotlight__grid {
        gap: 1.2rem;
    }
}

.admin-news-page {
    flex: 1;
    width: min(100%, 1000px);
    margin: 0 auto;
    padding: 4rem 1.5rem 5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.admin-news-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-news-header h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 2.6rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 240, 194, 0.95);
}

.admin-news-header p {
    margin: 0;
    font-size: 1rem;
    color: rgba(232, 224, 255, 0.8);
}

.admin-news-actions {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-news-add {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.8rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 235, 170, 0.6);
    background: rgba(12, 0, 40, 0.8);
    color: rgba(255, 235, 170, 0.92);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-news-add:hover,
.admin-news-add:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(255, 235, 170, 0.25);
}

.admin-news-add:focus-visible {
    outline: 2px solid rgba(255, 235, 170, 0.6);
    outline-offset: 3px;
}

.admin-news-emoji {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.8rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(166, 143, 212, 0.55);
    background: rgba(20, 0, 60, 0.65);
    color: rgba(226, 203, 255, 0.9);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-news-emoji:hover,
.admin-news-emoji:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(166, 143, 212, 0.3);
}

.admin-news-emoji:focus-visible {
    outline: 2px solid rgba(166, 143, 212, 0.6);
    outline-offset: 3px;
}

.admin-news-content {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.admin-news-status {
    text-align: center;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(242, 235, 255, 0.7);
    min-height: 1.4em;
}

.admin-news-status[data-state='loading'] {
    color: rgba(242, 235, 255, 0.6);
}

.admin-news-status[data-state='error'] {
    color: rgba(255, 164, 164, 0.88);
}

.admin-news-status[data-state='success'] {
    color: rgba(176, 255, 210, 0.88);
}

.admin-news-status[data-state='info'] {
    color: rgba(232, 224, 255, 0.78);
}

.admin-news-status[data-state='empty'] {
    color: rgba(242, 235, 255, 0.68);
}

.admin-news-noscript {
    text-align: center;
    color: rgba(232, 224, 255, 0.7);
    font-size: 0.9rem;
}

.admin-news-grid {
    display: grid;
    gap: 1.5rem;
}

.news-admin-card {
    background: rgba(10, 0, 32, 0.85);
    border: 1px solid rgba(166, 143, 212, 0.35);
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(12, 0, 45, 0.45);
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-admin-card__row {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.news-admin-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.news-admin-field--editor {
    gap: 0.9rem;
}

.news-editor {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border: 1px solid rgba(166, 143, 212, 0.35);
    border-radius: 16px;
    background: rgba(16, 0, 42, 0.8);
    padding: 0.9rem 1rem 1rem;
}

.news-editor__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.news-editor__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 0.45rem 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(166, 143, 212, 0.4);
    background: rgba(26, 0, 52, 0.75);
    color: rgba(226, 203, 255, 0.92);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.news-editor__button:hover,
.news-editor__button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(166, 143, 212, 0.25);
    border-color: rgba(217, 182, 80, 0.55);
}

.news-editor__select {
    padding: 0.45rem 0.8rem;
    border-radius: 10px;
    border: 1px solid rgba(166, 143, 212, 0.4);
    background: rgba(26, 0, 52, 0.75);
    color: rgba(226, 203, 255, 0.92);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.news-editor__content {
    min-height: 180px;
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(166, 143, 212, 0.28);
    background: rgba(12, 0, 34, 0.8);
    color: rgba(244, 237, 255, 0.92);
    font-size: 0.95rem;
    line-height: 1.6;
    overflow-y: auto;
}

.news-editor__content:focus-visible {
    outline: none;
    border-color: rgba(217, 182, 80, 0.6);
    box-shadow: 0 0 0 2px rgba(217, 182, 80, 0.2);
}

.news-editor__content p,
.news-editor__content ul,
.news-editor__content ol,
.news-editor__content h3,
.news-editor__content h4,
.news-editor__content blockquote {
    margin: 0 0 0.75rem;
}

.news-editor__content ul,
.news-editor__content ol {
    padding-left: 1.2rem;
}

.news-editor__content p:last-child,
.news-editor__content ul:last-child,
.news-editor__content ol:last-child,
.news-editor__content h3:last-child,
.news-editor__content h4:last-child,
.news-editor__content blockquote:last-child {
    margin-bottom: 0;
}

.news-admin-field__label {
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(232, 224, 255, 0.7);
}

.news-admin-field input,
.news-admin-field textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(166, 143, 212, 0.35);
    background: rgba(16, 0, 42, 0.85);
    color: rgba(244, 237, 255, 0.92);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.news-admin-field textarea {
    resize: vertical;
    min-height: 120px;
}

.news-admin-field input:focus-visible,
.news-admin-field textarea:focus-visible {
    outline: none;
    border-color: rgba(217, 182, 80, 0.6);
    box-shadow: 0 0 0 2px rgba(217, 182, 80, 0.2);
}

.news-admin-card__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 600;
    font-size: 0.78rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.admin-button--primary {
    background: linear-gradient(120deg, rgba(217, 182, 80, 0.96), rgba(255, 235, 170, 0.9));
    color: rgba(35, 5, 75, 0.95);
    border-color: rgba(255, 235, 170, 0.6);
}

.admin-button--primary:hover,
.admin-button--primary:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(217, 182, 80, 0.35);
}

.admin-button--danger {
    background: rgba(70, 0, 40, 0.8);
    color: rgba(255, 205, 205, 0.92);
    border-color: rgba(255, 126, 126, 0.45);
}

.admin-button--danger:hover,
.admin-button--danger:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(255, 126, 126, 0.35);
}

.admin-button--ghost {
    background: transparent;
    color: rgba(232, 224, 255, 0.78);
    border-color: rgba(232, 224, 255, 0.35);
}

.admin-button--ghost:hover,
.admin-button--ghost:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(232, 224, 255, 0.25);
}

.admin-button:focus-visible {
    outline: 2px solid rgba(255, 235, 170, 0.6);
    outline-offset: 3px;
}

.news-admin-card[data-state='saving'] {
    opacity: 0.65;
}

.news-admin-card[data-state='saving'] .admin-button {
    pointer-events: none;
}

.news-admin-card--draft {
    border-color: rgba(255, 235, 170, 0.6);
    box-shadow: 0 24px 55px rgba(217, 182, 80, 0.3);
}

.emoji-panel-backdrop[hidden] {
    display: none;
}

.emoji-panel-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 0, 20, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 2000;
}

.emoji-panel {
    width: min(640px, 100%);
    max-height: calc(100vh - 3rem);
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(166, 143, 212, 0.35);
    background: rgba(12, 0, 34, 0.95);
    box-shadow: 0 30px 75px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.8rem 1.8rem 1.6rem;
}

.emoji-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.emoji-panel__title {
    margin: 0;
    font-size: 1.15rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 235, 170, 0.9);
}

.emoji-panel__close {
    border: 1px solid rgba(166, 143, 212, 0.4);
    background: rgba(16, 0, 42, 0.8);
    color: rgba(226, 203, 255, 0.92);
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.45rem 1.2rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.emoji-panel__close:hover,
.emoji-panel__close:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(166, 143, 212, 0.3);
}

.emoji-panel__search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(166, 143, 212, 0.35);
    background: rgba(18, 0, 48, 0.85);
    color: rgba(244, 237, 255, 0.92);
    font-size: 0.95rem;
    font-family: inherit;
}

.emoji-panel__search-input:focus-visible {
    outline: none;
    border-color: rgba(217, 182, 80, 0.6);
    box-shadow: 0 0 0 2px rgba(217, 182, 80, 0.2);
}

.emoji-panel__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
    gap: 0.6rem;
    overflow: auto;
    padding-right: 0.2rem;
    max-height: min(360px, calc(100vh - 10rem));
    scroll-behavior: smooth;
}

.emoji-panel__emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem;
    border-radius: 14px;
    border: 1px solid transparent;
    background: rgba(24, 0, 60, 0.6);
    color: rgba(244, 237, 255, 0.92);
    font-size: 1.35rem;
    cursor: pointer;
    transition: transform 0.1s ease, border-color 0.15s ease, background 0.15s ease;
}

.emoji-panel__emoji:hover,
.emoji-panel__emoji:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(217, 182, 80, 0.5);
    background: rgba(35, 0, 75, 0.75);
}

.emoji-panel__empty {
    margin: 0;
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(226, 203, 255, 0.7);
    grid-column: 1 / -1;
}

@media (max-width: 680px) {
    .news-admin-card__row {
        grid-template-columns: 1fr;
    }

    .admin-news-page {
        padding: 3rem 1.2rem 4rem;
    }
}

.topgg-widget {
    margin-top: 3rem;
    padding: 1.4rem 1.6rem;
    border-radius: 24px;
    border: 1px solid rgba(166, 143, 212, 0.28);
    background: rgba(8, 0, 30, 0.6);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
}

.topgg-widget img {
    max-width: min(100%, 420px);
    height: auto;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(35, 0, 75, 0.45);
}

.topgg-note {
    margin: 1.2rem 0 0;
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: rgba(235, 227, 255, 0.82);
    text-transform: uppercase;
    display: flex;
    gap: 0.4rem;
    align-items: center;
    justify-content: center;
}

.vote-links {
    margin-top: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
}

.vote-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 280px;
}

.vote-links img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.cta-button-icon {
    height: 26px;
    width: auto;
    display: inline-block;
}

.contact-page {
    justify-content: center;
    padding-top: 5rem;
}

.contact-card {
    max-width: 520px;
    width: 100%;
    padding: 2.75rem 2.5rem;
    border-radius: 22px;
    background: rgba(8, 0, 20, 0.76);
    border: 1px solid rgba(166, 143, 212, 0.32);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    text-align: left;
}

.contact-card h1 {
    margin: 0 0 2rem;
    font-size: clamp(2rem, 5vw, 2.6rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(226, 203, 255, 0.92);
}

.contact-list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-item dt {
    font-size: 0.85rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(166, 143, 212, 0.85);
}

.contact-item dd {
    margin: 0;
    font-size: clamp(1.05rem, 3vw, 1.25rem);
    color: rgba(244, 237, 255, 0.92);
}

.contact-item a {
    color: var(--accent-gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(217, 182, 80, 0.35);
    padding-bottom: 0.08rem;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

.contact-item a:hover,
.contact-item a:focus-visible {
    color: rgba(255, 228, 134, 0.95);
    border-bottom-color: rgba(255, 228, 134, 0.65);
}

.about-page {
    flex: 1;
    width: min(1100px, calc(100% - 3.5rem));
    margin: 0 auto;
    padding: 5rem 0 5.5rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.about-hero h1 {
    font-size: clamp(2.6rem, 6vw, 3.6rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0;
    color: var(--accent-gold);
}

.about-tagline {
    margin: 0;
    max-width: 720px;
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    line-height: 1.7;
    color: rgba(230, 216, 255, 0.8);
}

.about-section {
    background: rgba(10, 0, 30, 0.55);
    border: 1px solid rgba(166, 143, 212, 0.28);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    padding: 2.6rem 2.4rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.about-section h2,
.about-section h3 {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(226, 203, 255, 0.9);
}

.about-section h2 {
    font-size: clamp(1.6rem, 4vw, 2.1rem);
}

.about-section h3 {
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    color: rgba(217, 182, 80, 0.85);
}

.about-section p {
    margin: 0;
    font-size: clamp(1rem, 2.6vw, 1.15rem);
    line-height: 1.75;
    color: rgba(235, 227, 255, 0.85);
}

.about-list {
    margin: 0;
    padding-left: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    color: rgba(235, 227, 255, 0.85);
    font-size: clamp(1rem, 2.6vw, 1.1rem);
    line-height: 1.7;
}

.about-list--ordered {
    padding-left: 1.6rem;
}

.about-section--split {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.about-section--split p {
    color: rgba(235, 227, 255, 0.8);
}

.guide-page {
    flex: 1;
    width: min(1100px, calc(100% - 3.5rem));
    margin: 0 auto;
    padding: 5rem 0 5.5rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.guide-hero {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
}

.guide-hero h1 {
    margin: 0;
    font-size: clamp(2.6rem, 6vw, 3.6rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-gold);
}

.guide-hero p {
    margin: 0;
    max-width: 760px;
    font-size: clamp(1.05rem, 2.8vw, 1.25rem);
    line-height: 1.8;
    color: rgba(234, 225, 255, 0.82);
}

.guide-section {
    background: rgba(9, 0, 30, 0.55);
    border: 1px solid rgba(166, 143, 212, 0.28);
    border-radius: 20px;
    padding: 2.5rem 2.4rem;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.guide-section h2 {
    margin: 0;
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(226, 203, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.guide-section p {
    margin: 0;
    font-size: clamp(1rem, 2.6vw, 1.15rem);
    line-height: 1.75;
    color: rgba(234, 225, 255, 0.85);
}

.guide-meta {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.guide-meta li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.98rem;
    color: rgba(234, 225, 255, 0.85);
    line-height: 1.5;
}

.guide-meta li strong {
    color: rgba(255, 228, 134, 0.95);
}

.guide-list {
    margin: 0;
    padding-left: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: rgba(234, 225, 255, 0.85);
    line-height: 1.75;
}

.guide-list--ordered {
    padding-left: 1.6rem;
}

.guide-note {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(166, 143, 212, 0.7);
}

.footer {
    text-align: center;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(186, 171, 219, 0.65);
    border-top: 1px solid rgba(166, 143, 212, 0.2);
    background: rgba(10, 1, 20, 0.65);
}

.footer-link {
    color: rgba(226, 203, 255, 0.75);
    text-decoration: none;
    letter-spacing: 0.12em;
    transition: color 0.2s ease;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    justify-content: center;
    align-items: center;
}

.footer-link:hover,
.footer-link:focus-visible {
    color: var(--accent-gold);
}

.profile-page {
    flex: 1;
    width: min(960px, calc(100% - 3rem));
    margin: 0 auto;
    padding: 5rem 0 5.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
}

.profile-card {
    padding: 2.8rem 2.5rem;
    border-radius: 24px;
    background: rgba(8, 0, 24, 0.72);
    border: 1px solid rgba(166, 143, 212, 0.28);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.profile-card__header {
    display: flex;
    gap: 1.6rem;
    align-items: center;
    flex-wrap: wrap;
}

.profile-card__avatar {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    background: rgba(217, 182, 80, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(217, 182, 80, 0.25);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.profile-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card__avatar--fallback {
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255, 228, 134, 0.88);
}

.profile-card__identity {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.profile-card__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    position: relative;
}

.profile-card__name {
    margin: 0;
    font-size: clamp(2rem, 5vw, 2.6rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 228, 134, 0.92);
}

.profile-card__username {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(226, 203, 255, 0.72);
}

.profile-card__id {
    margin: 0;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(166, 143, 212, 0.6);
}

.profile-card__stats {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.profile-summary__metrics {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.profile-summary__metrics--compact {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.profile-summary__metric {
    background: rgba(20, 2, 48, 0.65);
    border: 1px solid rgba(166, 143, 212, 0.3);
    border-radius: 18px;
    padding: 1.1rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.profile-summary__label {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(166, 143, 212, 0.76);
}

.profile-summary__value {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    letter-spacing: 0.08em;
    color: rgba(244, 237, 255, 0.95);
    font-variant-numeric: tabular-nums;
}
.profile-summary__dropdown {
    position: relative;
    display: inline-block;
}

.profile-summary__dropdown-toggle {
    margin-top: 0;
    padding: 1.2rem 3.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 228, 134, 0.45);
    background: rgba(20, 0, 45, 0.65);
    color: rgba(255, 228, 134, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.profile-summary__dropdown-toggle:hover,
.profile-summary__dropdown-toggle:focus-visible {
    background: rgba(255, 228, 134, 0.18);
    color: rgba(255, 240, 205, 0.95);
    border-color: rgba(255, 228, 134, 0.6);
}

.profile-summary__dropdown-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    min-width: 180px;
    background: rgba(12, 0, 32, 0.92);
    border: 1px solid rgba(166, 143, 212, 0.35);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
    padding: 0.35rem 0;
    z-index: 15;
}

.profile-summary__dropdown-menu a {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    color: rgba(226, 203, 255, 0.88);
    text-decoration: none;
    display: block;
    letter-spacing: 0.05em;
}

.profile-summary__dropdown-menu a:hover,
.profile-summary__dropdown-menu a:focus-visible {
    background: rgba(76, 0, 110, 0.4);
    color: rgba(255, 228, 134, 0.95);
}

.profile-summary__meta {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.profile-summary__meta-item {
    background: rgba(20, 2, 48, 0.65);
    border: 1px solid rgba(166, 143, 212, 0.3);
    border-radius: 18px;
    padding: 1.1rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.profile-summary__meta-item dt {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(166, 143, 212, 0.76);
}

.profile-summary__meta-item dd {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: rgba(234, 225, 255, 0.9);
}
.profile-summary__stat {
    display: block;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    color: rgba(234, 225, 255, 0.9);
}

.profile-summary__stat--gain {
    color: rgba(138, 255, 200, 0.95);
}

.profile-summary__stat--loss {
    color: rgba(255, 160, 160, 0.9);
}

.profile-section {
    padding: 2.6rem 2.4rem;
    border-radius: 22px;
    background: rgba(10, 2, 32, 0.7);
    border: 1px solid rgba(166, 143, 212, 0.28);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.profile-section h2,
.profile-empty h2,
.profile-error h2,
.profile-unauthenticated h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4.8vw, 2.3rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 228, 134, 0.88);
}

.profile-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.profile-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(12, 0, 32, 0.45);
    border: 1px solid rgba(166, 143, 212, 0.28);
    border-radius: 16px;
    overflow: hidden;
    font-size: 0.95rem;
}

.profile-table thead {
    background: rgba(18, 0, 36, 0.65);
}

.profile-table th,
.profile-table td {
    padding: 0.9rem 1.1rem;
    text-align: left;
    border-bottom: 1px solid rgba(166, 143, 212, 0.18);
    letter-spacing: 0.03em;
    color: rgba(234, 225, 255, 0.88);
    font-variant-numeric: tabular-nums;
}

.profile-table tr:last-child td {
    border-bottom: none;
}

.profile-table tr:nth-child(even) {
    background: rgba(12, 0, 32, 0.3);
}

.profile-table__amount {
    font-weight: 600;
}

.profile-job-grid {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.profile-job-card {
    background: rgba(14, 0, 32, 0.6);
    border: 1px solid rgba(166, 143, 212, 0.28);
    border-radius: 20px;
    padding: 1.6rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.profile-job-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.profile-job-card__header h3 {
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 228, 134, 0.85);
}

.profile-job-card__badge {
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 228, 134, 0.4);
    color: rgba(255, 228, 134, 0.85);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: rgba(255, 228, 134, 0.1);
}


.profile-job-card__metrics {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.profile-job-card__metrics div {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.profile-job-card__metrics dt {
    margin: 0;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(166, 143, 212, 0.7);
}

.profile-job-card__metrics dd {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: rgba(234, 225, 255, 0.9);
}

.profile-job-card__guilds ul {
    margin: 0;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    color: rgba(226, 203, 255, 0.78);
    font-size: 0.95rem;
}

.profile-interactions {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.profile-interactions div {
    background: rgba(20, 2, 48, 0.65);
    border: 1px solid rgba(166, 143, 212, 0.28);
    border-radius: 18px;
    padding: 1.1rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.profile-interactions dt {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(166, 143, 212, 0.76);
}

.profile-interactions dd {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: rgba(234, 225, 255, 0.9);
}

.profile-empty,
.profile-error,
.profile-unauthenticated {
    padding: 2.8rem 2.4rem;
    border-radius: 22px;
    background: rgba(8, 0, 24, 0.62);
    border: 1px solid rgba(166, 143, 212, 0.28);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    align-items: center;
}

.profile-empty p,
.profile-error p,
.profile-unauthenticated p {
    margin: 0;
    max-width: 540px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(226, 203, 255, 0.8);
}

.profile-loading {
    margin: 4rem auto;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    background: rgba(8, 0, 24, 0.55);
    border: 1px solid rgba(166, 143, 212, 0.28);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
    text-align: center;
}

.profile-loading__spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px solid rgba(166, 143, 212, 0.2);
    border-top-color: rgba(255, 228, 134, 0.85);
    animation: profile-spin 1s linear infinite;
}

.profile-loading p {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(226, 203, 255, 0.75);
}

.bot-status-widget {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 240px;
    max-width: calc(100% - 3rem);
    padding: 1.35rem 1.25rem 1.1rem;
    border-radius: 1rem;
    background: rgba(8, 0, 24, 0.82);
    border: 1px solid rgba(166, 143, 212, 0.3);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    color: rgba(234, 225, 255, 0.92);
}

.bot-status-widget__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(226, 203, 255, 0.75);
    margin-top: 0.35rem;
    padding-right: 1.1rem;
}

.bot-status-widget__indicator {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 206, 120, 0.85);
    box-shadow: 0 0 0 0 rgba(255, 206, 120, 0.55);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    margin-top: 0.2rem;
}

.bot-status-widget__metrics {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.bot-status-widget__metrics > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bot-status-widget__metrics dt {
    margin: 0;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(166, 143, 212, 0.72);
}

.bot-status-widget__metrics dd {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.bot-status-widget__meta {
    margin: 0;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(166, 143, 212, 0.66);
}

.bot-status-widget[data-state='ready'] .bot-status-widget__indicator {
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.35);
}

.bot-status-widget[data-state='loading'] .bot-status-widget__indicator {
    animation: bot-status-pulse 1.4s ease-in-out infinite;
}

.bot-status-widget[data-state='error'] .bot-status-widget__indicator {
    background: #f87171;
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.4);
}

.bot-status-widget[data-state='error'] .bot-status-widget__meta {
    color: rgba(255, 199, 199, 0.86);
}

@keyframes bot-status-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 206, 120, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 206, 120, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 206, 120, 0);
    }
}

.bot-status-widget__close {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(166, 143, 212, 0.35);
    background: rgba(16, 4, 32, 0.8);
    color: rgba(234, 225, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bot-status-widget__close:hover,
.bot-status-widget__close:focus-visible {
    background: rgba(255, 228, 134, 0.15);
    color: rgba(255, 228, 134, 0.95);
    border-color: rgba(255, 228, 134, 0.5);
}

.bot-status-widget__close:focus-visible {
    outline: 2px solid rgba(255, 228, 134, 0.65);
    outline-offset: 2px;
}

.bot-status-mini {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 31;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(166, 143, 212, 0.35);
    background: rgba(10, 2, 28, 0.82);
    color: rgba(226, 203, 255, 0.88);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.bot-status-mini:hover,
.bot-status-mini:focus-visible {
    background: rgba(16, 4, 34, 0.9);
    border-color: rgba(255, 228, 134, 0.45);
    color: rgba(255, 228, 134, 0.95);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.bot-status-mini:focus-visible {
    outline: 2px solid rgba(255, 228, 134, 0.65);
    outline-offset: 3px;
}

.bot-status-mini__indicator {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(166, 143, 212, 0.6);
    box-shadow: 0 0 0 0 rgba(166, 143, 212, 0.45);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.bot-status-mini[data-state='ready'] .bot-status-mini__indicator {
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.35);
}

.bot-status-mini[data-state='loading'] .bot-status-mini__indicator {
    animation: bot-status-pulse 1.4s ease-in-out infinite;
}

.bot-status-mini[data-state='error'] .bot-status-mini__indicator {
    background: #f87171;
    box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.4);
}

.bot-status-mini[data-state='error'] {
    border-color: rgba(248, 113, 113, 0.45);
    color: rgba(255, 204, 204, 0.9);
}

@media (max-width: 640px) {
    .bot-status-widget {
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
        bottom: 1rem;
    }
    .bot-status-mini {
        right: 0.75rem;
        left: 0.75rem;
        bottom: 0.75rem;
        justify-content: center;
    }
}

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

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