* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    
    /* Запрет выделения текста */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #030208;
    color: #ffffff;
    overflow-x: hidden;
}

#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* Переключение страниц с анимацией */
.page-view {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.page-hidden {
    display: none !important;
    opacity: 0;
    transform: translateY(15px);
}

.page-fade-out {
    opacity: 0;
    transform: translateY(-15px);
}

/* Glassmorphism панель */
.glass-panel {
    background: rgba(12, 10, 26, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(168, 85, 247, 0.18);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7),
                0 0 30px rgba(168, 85, 247, 0.15);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 50px;
    background: rgba(3, 2, 8, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(8, 5, 20, 0.85);
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(168, 85, 247, 0.2);
}

.nav-brand {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2px;
    cursor: pointer;
    transition: transform 0.2s ease, text-shadow 0.2s ease;
}

.nav-brand:hover {
    transform: scale(1.03);
}

.accent, .hero-title .accent {
    color: #a855f7;
    text-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
}

.nav-center {
    display: flex;
    gap: 35px;
}

.nav-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #a855f7;
    box-shadow: 0 0 8px #a855f7;
    border-radius: 2px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-dropdown-wrapper {
    position: relative;
}

.lang-select {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.lang-select:hover {
    color: #ffffff;
    border-color: rgba(168, 85, 247, 0.4);
}

.arrow-icon {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.lang-select.open .arrow-icon {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(13, 11, 24, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 10px;
    padding: 6px;
    width: 160px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    font-size: 13px;
    color: #94a3b8;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: rgba(168, 85, 247, 0.2);
    color: #ffffff;
}

.lang-option.active {
    color: #a855f7;
    font-weight: 700;
}

.check-icon {
    font-size: 11px;
    opacity: 0;
}

.lang-option.active .check-icon {
    opacity: 1;
}

.auth-btn {
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-ghost {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-accent {
    color: #ffffff;
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.btn-accent:hover {
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.7);
    transform: translateY(-2px);
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #c084fc;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 72px;
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 15px;
    background: linear-gradient(180deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 16px;
    color: #94a3b8;
    max-width: 620px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.btn-primary {
    display: inline-block;
    padding: 16px 44px;
    background: linear-gradient(135deg, #a855f7 0%, #6b21a8 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.8);
    transform: translateY(-3px) scale(1.02);
}

.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 90;
    transition: transform 0.4s ease;
}

.scroll-indicator.scrolled {
    transform: translateX(-50%) rotate(180deg);
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    background: rgba(3, 2, 8, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: #a855f7;
    border-radius: 2px;
    box-shadow: 0 0 8px #a855f7;
    animation: scrollAnim 1.8s infinite ease-in-out;
}

@keyframes scrollAnim {
    0% { opacity: 1; transform: translateY(0); }
    60% { opacity: 0; transform: translateY(14px); }
    100% { opacity: 1; transform: translateY(0); }
}

.product-section {
    height: 70vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
    z-index: 1;
}

.cs2-bg {
    background: linear-gradient(90deg, rgba(217, 119, 6, 0.12) 0%, rgba(3, 2, 8, 0.8) 100%);
    border-top: 1px solid rgba(245, 158, 11, 0.2);
}

.cg-bg {
    background: linear-gradient(270deg, rgba(234, 179, 8, 0.12) 0%, rgba(3, 2, 8, 0.8) 100%);
    border-top: 1px solid rgba(234, 179, 8, 0.2);
}

.product-container {
    max-width: 550px;
}

.left-aligned { margin-right: auto; text-align: left; }
.right-aligned { margin-left: auto; text-align: right; }

.product-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.cs2-tag { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.cg-tag { background: rgba(234, 179, 8, 0.2); color: #fde047; border: 1px solid rgba(234, 179, 8, 0.4); }

.product-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.product-desc {
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-product {
    padding: 14px 36px;
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    border-radius: 8px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-cs2 {
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.btn-cs2:hover {
    box-shadow: 0 0 35px rgba(245, 158, 11, 0.7);
    transform: translateY(-2px);
}

.btn-cg {
    background: linear-gradient(135deg, #eab308 0%, #a16207 100%);
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.4);
}

.btn-cg:hover {
    box-shadow: 0 0 35px rgba(234, 179, 8, 0.7);
    transform: translateY(-2px);
}

.features-section {
    padding: 100px 10%;
    position: relative;
    z-index: 1;
    background: rgba(3, 2, 8, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #64748b;
    font-size: 14px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(15, 12, 29, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(22, 17, 43, 0.8);
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(168, 85, 247, 0.15);
}

.feature-icon {
    font-size: 24px;
    color: #a855f7;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
}

.feature-card p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
}

.help-page-container {
    min-height: 100vh;
    padding: 130px 20px 60px 20px;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.help-card {
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    padding: 45px;
}

.help-title {
    text-align: center;
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 25px;
}

.help-divider {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 30px 0;
}

.faq-item {
    margin-bottom: 30px;
}

.faq-question {
    font-size: 16px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 10px;
}

.faq-answer {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
}

.faq-answer a, .help-docs-list a {
    color: #a855f7;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.faq-answer a:hover, .help-docs-list a:hover {
    text-decoration: underline;
    color: #c084fc;
}

.help-footer p {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.help-docs-list {
    list-style: disc;
    padding-left: 20px;
}

.help-docs-list li {
    font-size: 14px;
    margin-bottom: 6px;
}

/* ОБНОВЛЕННЫЙ СТЕКЛЯННЫЙ ДИЗАЙН МОДАЛЬНЫХ ОКНО */

.modal-overlay, .auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 1, 8, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

#termsModal {
    z-index: 1000 !important;
}

.modal-overlay.active, .auth-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content, .auth-modal-content {
    background: rgba(14, 11, 28, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 20px;
    padding: 40px;
    max-width: 440px;
    width: 92%;
    position: relative;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8),
                0 0 40px rgba(168, 85, 247, 0.2),
                inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.modal-overlay.active .modal-content, 
.auth-modal-overlay.active .auth-modal-content {
    transform: scale(1) translateY(0);
}

.terms-modal-content {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8),
                0 0 50px rgba(168, 85, 247, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.2);
    max-width: 520px;
}

.terms-text-body {
    text-align: left;
    margin: 25px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(0, 0, 0, 0.25);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-close, .auth-modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover, .auth-modal-close:hover {
    color: #ffffff;
    background: rgba(168, 85, 247, 0.3);
    border-color: rgba(168, 85, 247, 0.5);
    transform: rotate(90deg);
}

.modal-icon {
    font-size: 48px;
    color: #eab308;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(234, 179, 8, 0.5);
    text-align: center;
}

.modal-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
    text-align: center;
}

.modal-desc {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 30px;
    text-align: center;
}

.modal-btn {
    width: 100%;
    padding: 14px 36px;
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.modal-btn:hover {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.7);
    transform: translateY(-2px);
}

.auth-brand-logo {
    text-align: center;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 14px;
    transition: color 0.3s ease;
}

.auth-input-group input {
    width: 100%;
    padding: 14px 16px 14px 45px;
    background: rgba(5, 3, 14, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.auth-input-group input::placeholder {
    color: #64748b;
}

.auth-input-group input:focus {
    border-color: #a855f7;
    background: rgba(10, 6, 26, 0.8);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.auth-input-group input:focus + .input-icon, 
.auth-input-group:focus-within .input-icon {
    color: #a855f7;
}

.captcha-placeholder {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.captcha-placeholder input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #a855f7;
}

.captcha-placeholder label {
    flex-grow: 1;
    margin-left: 12px;
    color: #cbd5e1;
    cursor: pointer;
}

.recaptcha-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 9px;
    color: #64748b;
}

.recaptcha-logo i {
    font-size: 16px;
    color: #a855f7;
    margin-bottom: 2px;
}

.auth-checkbox-group {
    margin-top: 2px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #94a3b8;
    cursor: pointer;
}

.custom-checkbox input {
    margin-right: 8px;
    accent-color: #a855f7;
    cursor: pointer;
}

.custom-checkbox a {
    color: #a855f7;
    text-decoration: none;
    margin-left: 4px;
}

.custom-checkbox a:hover {
    text-decoration: underline;
}

.auth-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.auth-submit-btn:hover {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.7);
    transform: translateY(-2px);
}

.auth-links {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
    font-size: 13px;
}

.auth-links a {
    color: #a855f7;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-links a:hover {
    text-decoration: underline;
    color: #c084fc;
}

.auth-links p {
    color: #64748b;
}

.auth-feedback {
    display: none;
    font-size: 12.5px;
    line-height: 1.5;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    text-align: left;
}

.auth-feedback:not(:empty) {
    display: block;
}

.auth-feedback.error {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
}

.auth-feedback.success {
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

/* Состояние авторизованного пользователя */
.auth-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-actions[hidden],
.user-menu[hidden] {
    display: none;
}

.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 8px;
    padding: 9px 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.user-menu-toggle:hover,
.user-menu.open .user-menu-toggle {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.6);
}

.user-menu.open .user-menu-toggle .arrow-icon {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: rgba(13, 11, 24, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 10px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 110;
}

.user-menu.open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-email {
    font-size: 12px;
    color: #94a3b8;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 6px;
    word-break: break-all;
}

.user-dropdown-status {
    display: none;
    font-size: 11.5px;
    padding: 6px 10px;
    margin-bottom: 6px;
    border-radius: 6px;
    word-break: break-word;
}

.user-dropdown-status:not(:empty) {
    display: block;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
}

.user-dropdown-status.ok {
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
}

.user-dropdown-status.warn {
    color: #fcd34d;
    background: rgba(234, 179, 8, 0.12);
}

.user-dropdown-status.error {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.12);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    color: #e2e8f0;
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 9px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-dropdown-item[hidden] {
    display: none;
}

.user-dropdown-item:hover {
    background: rgba(168, 85, 247, 0.2);
    color: #ffffff;
}

.user-dropdown-item.danger {
    color: #fca5a5;
}

.user-dropdown-item.danger:hover {
    background: rgba(239, 68, 68, 0.18);
    color: #fecaca;
}

/* ─── USER DROPDOWN SUB BADGE ─────────────────────────────────────────────── */

.user-dropdown-sub {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    margin: 0 2px 6px;
    border-radius: 5px;
    text-align: center;
    border: 1px solid transparent;
}

.user-dropdown-sub:empty {
    display: none;
}

.user-dropdown-sub.sub-active {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.user-dropdown-sub.sub-frozen {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.3);
    color: #7dd3fc;
}

.user-dropdown-sub.sub-none {
    background: rgba(100, 116, 139, 0.1);
    border-color: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
}

/* ─── DASHBOARD ────────────────────────────────────────────────────────────── */

.dashboard-container {
    min-height: 100vh;
    padding: 110px 20px 60px;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    width: 100%;
    max-width: 900px;
    align-items: start;
}

.dash-card {
    border-radius: 16px;
    padding: 30px;
}

.dash-profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.dash-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.12);
    border: 2px solid rgba(168, 85, 247, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #a855f7;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
}

.dash-profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.dash-username {
    font-size: 17px;
    font-weight: 800;
    color: #f1f5f9;
    word-break: break-all;
}

.dash-email-text {
    font-size: 12px;
    color: #64748b;
    word-break: break-all;
}

.dash-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1px;
    border: 1px solid transparent;
}

.dash-status-badge.badge-active {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.4);
    color: #86efac;
}

.dash-status-badge.badge-frozen {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.4);
    color: #7dd3fc;
}

.dash-status-badge.badge-expired {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.dash-status-badge.badge-none {
    background: rgba(100, 116, 139, 0.12);
    border-color: rgba(100, 116, 139, 0.25);
    color: #94a3b8;
}

/* Sub card */

.dash-sub-card {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dash-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 800;
    color: #a855f7;
    margin-bottom: 22px;
}

.dash-sub-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dash-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: 14px;
    padding: 20px 0;
    justify-content: center;
}

.dash-sub-empty {
    text-align: center;
    padding: 24px 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.dash-progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-progress-bar {
    height: 5px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 3px;
    overflow: hidden;
}

.dash-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #a855f7, #6d28d9);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.45);
    transition: width 0.6s ease;
}

.dash-progress-fill.fill-frozen {
    background: linear-gradient(90deg, #38bdf8, #0284c7);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.45);
}

.dash-progress-label {
    font-size: 12px;
    color: #64748b;
    text-align: right;
}

.dash-sub-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.dash-sub-row:last-child {
    border-bottom: none;
}

.dash-sub-row-label { color: #64748b; }
.dash-sub-row-value { color: #f1f5f9; font-weight: 600; }

/* Actions */

.dash-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
}

.dash-action-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dash-action-btn[hidden] { display: none; }

.dash-action-btn:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none !important;
    box-shadow: none !important;
}

.dash-btn-purple {
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
    color: #fff;
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.4);
}
.dash-btn-purple:hover:not(:disabled) {
    box-shadow: 0 0 28px rgba(168, 85, 247, 0.65);
    transform: translateY(-2px);
}

.dash-btn-ice {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    color: #fff;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.35);
}
.dash-btn-ice:hover:not(:disabled) {
    box-shadow: 0 0 28px rgba(56, 189, 248, 0.6);
    transform: translateY(-2px);
}

.dash-btn-orange {
    background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
    color: #fff;
    box-shadow: 0 0 18px rgba(249, 115, 22, 0.35);
}
.dash-btn-orange:hover:not(:disabled) {
    box-shadow: 0 0 28px rgba(249, 115, 22, 0.6);
    transform: translateY(-2px);
}

.dash-btn-green {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    color: #fff;
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.35);
}
.dash-btn-green:hover:not(:disabled) {
    box-shadow: 0 0 28px rgba(34, 197, 94, 0.6);
    transform: translateY(-2px);
}

/* Feedback */

.dash-feedback {
    display: none;
    font-size: 12.5px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    margin-top: 8px;
    line-height: 1.5;
}

.dash-feedback:not(:empty) { display: block; }

.dash-feedback.error {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
}

.dash-feedback.success {
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.3);
}

@media (max-width: 680px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}