[x-cloak] { display: none !important; }
:root {
    --app-bg: #0B0F19;
    --app-fg: #F8FAFC;
    --app-muted: #94A3B8;
    --app-gold: #D4AF37;
}
body {
    background-color: var(--app-bg);
    color: var(--app-fg);
    -webkit-tap-highlight-color: transparent;
    font-size: clamp(16px, 1.1vw + 12px, 18px);
    line-height: 1.6;
}
.page-shell {
    width: min(1100px, 100%);
    margin-inline: auto;
}
.glass-panel { 
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.8));
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.btn-premium {
    background: linear-gradient(135deg, #D4AF37 0%, #C5A028 100%);
    color: #0B0F19; font-weight: 800; text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
.primary-btn {
    background: #D4AF37;
    color: #0B0F19;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(212, 175, 55, 0.35);
}
.rich-text h2 {
    margin-top: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #F8FAFC;
}
.rich-text h3 {
    margin-top: 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #E2E8F0;
}
.rich-text p {
    margin-top: 0.75rem;
    color: #CBD5E1;
}
.rich-text ul,
.rich-text ol {
    margin-top: 0.75rem;
    padding-left: 1.25rem;
    color: #CBD5E1;
}
.rich-text ul { list-style-type: disc; }
.rich-text ol { list-style-type: decimal; }
.rich-text li {
    margin-top: 0.5rem;
}
.rich-text a {
    color: #D4AF37;
    text-decoration: underline;
}
button, .btn-premium, a[role="button"] { min-height: 48px; }
.icon-btn { min-height: 0; height: 40px; line-height: 1; }
.klaro .cm-btn {
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #D4AF37 !important;
    color: #0B0F19 !important;
    font-weight: 700;
}
.breadcrumbs {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
}
.breadcrumbs { min-width: 0; width: 100%; }
.breadcrumbs > li {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 30%;
}
.breadcrumbs > li:first-child { flex-shrink: 0; }
.breadcrumbs > li:last-child { flex: 1 1 auto; max-width: none; }
.breadcrumbs > li > [aria-hidden] { flex-shrink: 0; }
.breadcrumbs a {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.breadcrumbs__title {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.klaro .cm-link,
.klaro .cn-ok .cm-link {
    color: #F8FAFC !important;
    text-decoration: underline;
}
.klaro .cookie-notice,
.klaro .cookie-modal {
    background: #0B0F19 !important;
    color: #F8FAFC !important;
}
.klaro .cookie-notice .cm-link,
.klaro .cookie-modal .cm-link {
    color: #D4AF37 !important;
}
.toastify {
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.toastify.toastify-right {
    right: 16px;
}
.toastify.toastify-top {
    top: 16px;
}
.app-dialog {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 60;
}
.app-dialog.hidden {
    display: none;
}
.app-dialog__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 15, 25, 0.72);
    backdrop-filter: blur(6px);
}
.app-dialog__panel {
    position: relative;
    z-index: 1;
    width: min(92vw, 420px);
    background: #151B2B;
    color: #F8FAFC;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    padding: 20px;
    text-align: left;
}
.app-dialog__title {
    font-size: 18px;
    font-weight: 700;
    color: #F8FAFC;
}
.app-dialog__message {
    margin-top: 8px;
    font-size: 14px;
    color: #CBD5E1;
    line-height: 1.5;
}
.app-dialog__actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.app-dialog__btn {
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #F8FAFC;
}
.app-dialog__btn--primary {
    background: #D4AF37;
    color: #0B0F19;
    border-color: transparent;
}
.app-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 15, 25, 0.88);
    backdrop-filter: blur(6px);
    z-index: 70;
}
.app-loader.hidden {
    display: none;
}
.app-loader__panel {
    text-align: center;
    padding: 20px 24px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #151B2B;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    width: min(88vw, 320px);
}
.app-loader__spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    border-radius: 999px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: #D4AF37;
    animation: spin 1s linear infinite;
}
.app-loader__title {
    font-weight: 700;
    color: #F8FAFC;
    font-size: 16px;
}
.app-loader__hint {
    margin-top: 6px;
    font-size: 12px;
    color: #94A3B8;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid rgba(212, 175, 55, 0.8);
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
