* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background-color: #fcfcfd;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Auth Container */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    flex-direction: row;
}

/* Header */
.auth-header {
    padding: 20px;
    border-bottom: 1px solid #eaecf0;
}

.header-content {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.header-content:hover {
    opacity: 0.8;
}

.logo-text {
    font-family: Inter;
    font-size: 32px;
    font-weight: 800;
    line-height: 48px;
    letter-spacing: -0.28px;
    margin-left: 8px;
    color: #101828;
}

/* Content Block */
.content-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 32px;
}

.content-container {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-title {
    font-size: 32px;
    font-weight: 600;
    /* line-height: 38px; */
    color: #101828;
    text-align: center;
}

/* Form Styles */
.form-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-label {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #344054;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-field {
    width: 100%;
    height: 44px;
    padding: 10px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 16px;
    line-height: 24px;
    color: #101828;
    background-color: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: #667085;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05), 0px 0px 0px 4px rgba(152, 162, 179, 0.14);
}

.input-field::placeholder {
    color: #667085;
}

.eye-button {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Button Styles */
.button {
    height: 44px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.button-blue {
    background-color: #175cd3;
    color: #ffffff;
}

.button-blue:hover:not(:disabled) {
    background-color: #7098e0;
}

.button-blue:disabled {
    background-color: #98a2b3;
    cursor: not-allowed;
}

.button-w100 {
    width: 100%;
}

/* Links */
.link {
    color: #175cd3;
    text-decoration: none;
    font-weight: 500;
}

.link:hover {
    text-decoration: underline;
}

/* Footer */
.auth-footer {
    padding: 32px;
    border-top: 1px solid #eaecf0;
    text-align: center;
}

.footer-text {
    font-size: 14px;
    line-height: 20px;
    color: #475467;
    text-align: center;
    margin-top: 32px;
}

.footer-text span {
    margin-right: 8px;
}

/* Registration Banner */
.banner {
    background: linear-gradient(135deg, #175cd3 0%, #7098e0 100%);
    border-radius: 12px;
    padding: 10px 16px;
    position: relative;
    overflow: hidden;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.banner-text {
    flex: 1;
}

.banner-title {
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.tokens-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.token-number {
    font-size: 32px;
    font-weight: 800;
    line-height: 40px;
    margin: 0;
}

.tokens-text {
    font-size: 16px;
    line-height: 24px;
    margin: 0;
}

.close-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    opacity: 0.7;
}

.close-button:hover {
    opacity: 1;
}

/* Agreement Text */
.agreement-text {
    font-size: 14px;
    line-height: 20px;
    color: #475467;
    text-align: center;
    margin-top: 16px;
}

/* Error/Success Messages */
.message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 16px;
}

.message-error {
    background-color: #fef3f2;
    border: 1px solid #fecdca;
    color: #b42318;
}

.message-success {
    background-color: #f6fef9;
    border: 1px solid #abefc6;
    color: #067647;
}

.success {
    background-color: #f6fef9;
    border: 1px solid #abefc6;
    color: #067647;
}

/* Layout with Sidebar */
.app-layout {
    display: flex;
    min-height: 100vh;
    background-color: #fcfcfd;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid #eaecf0;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 100;
}

.sidebar-logo {
    padding: 24px 20px;
    border-bottom: 1px solid #eaecf0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: opacity 0.2s ease;
}

.logo-container:hover {
    opacity: 0.8;
}

.logo-image {
    height: 32px;
    width: auto;
    border-radius: 6px;
}

.logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Обновленный стиль для .logo-text в сайдбаре */
.sidebar .logo-text,
.sidebar-logo .logo-text,
.site-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #101828;
    line-height: 28px;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 24px 0;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 32px;
}

.nav-section-title {
    font-size: 12px;
    font-weight: 600;
    color: #667085;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    padding: 0 20px;
}

.nav-separator {
    height: 1px;
    background: #eaecf0;
    margin: 24px 20px 16px;
}

.nav-list,
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #667085;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 0;
    position: relative;
}

.nav-link:hover {
    background: #f9fafb;
    color: #175cd3;
}

.nav-link.active {
    background: #f0f9ff;
    color: #175cd3;
    border-right: 3px solid #175cd3;
}

.nav-link svg {
    flex-shrink: 0;
}

.nav-text {
    font-size: 14px;
    font-weight: 500;
}

.nav-divider {
    margin: 24px 0 12px;
    padding: 0 20px;
}

/* Collapsible Navigation Items */
.collapsible-item {
    position: relative;
}

.collapsible-trigger {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    justify-content: space-between;
}

.collapsible-trigger .collapse-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    transform: rotate(0deg); /* Изначально стрелка смотрит вниз */
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    
    margin: 4px 16px 4px 20px;
    
}

.collapsible-content.expanded {
    /* Height will be set dynamically by JavaScript */
}

.nav-subitem {
    margin-bottom: 0;
}

.nav-subitem:first-child .nav-sublink {
    border-radius: 8px 8px 0 0;
    margin-top: 8px;
}

.nav-subitem:last-child .nav-sublink {
    border-radius: 0 0 8px 8px;
    margin-bottom: 8px;
}

.nav-subitem:first-child:last-child .nav-sublink {
    border-radius: 8px;
    margin: 8px 0;
}

.nav-sublink {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 0;
    position: relative;
    margin: 2px 8px;
    background: white;
    border: 1px solid transparent;
}

.nav-sublink:hover {
    background: #f1f5f9;
    color: #1e40af;
    border-color: #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transform: translateX(2px);
}

.nav-sublink.active {
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
    color: #1e40af;
    border-color: #3b82f6;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.15);
    font-weight: 600;
}

.nav-sublink.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #3b82f6;
    border-radius: 0 2px 2px 0;
}

.nav-sublink svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.nav-sublink:hover svg,
.nav-sublink.active svg {
    opacity: 1;
}

/* Ensure proper spacing for collapsible items */
.collapsible-item .nav-link {
    border-right: none;
}

.collapsible-item .nav-link.active {
    background: #f0f9ff;
    color: #175cd3;
    border-right: 3px solid #175cd3;
}

/* Sidebar Balance */
.sidebar-balance {
    padding: 20px;
    border-top: 1px solid #eaecf0;
}

.balance-card {
    background: linear-gradient(135deg, #175cd3 0%, #7098e0 100%);
    border-radius: 12px;
    padding: 16px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.balance-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.balance-icon svg {
    color: white;
    opacity: 0.9;
}

.balance-info {
    flex: 1;
    min-width: 0;
}

.balance-label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 2px;
}

.balance-amount {
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Sidebar Header Component */
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #eaecf0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.site-logo {
    height: 32px;
    width: auto;
    border-radius: 6px;
    flex-shrink: 0;
}

.site-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #101828;
    line-height: 28px;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: #667085;
    transition: all 0.2s ease;
}

.sidebar-close:hover {
    background: #f9fafb;
    color: #175cd3;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #eaecf0;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.user-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    position: relative;
}

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

.avatar-placeholder-small {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #175cd3 0%, #7098e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.user-info-compact {
    flex: 1;
    min-width: 0;
}

.user-name-small {
    font-size: 14px;
    font-weight: 600;
    color: #101828;
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role-small {
    font-size: 12px;
    color: #667085;
    line-height: 16px;
}

.user-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 12px;
    color: #175cd3;
    font-weight: 600;
}

.user-balance svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.balance-amount {
    font-weight: 600;
    color: #fff;
}

/* User Balance Card */
.user-balance-card {
    background: linear-gradient(135deg, #2972eb 0%, #7098e0 100%);
    border-radius: 12px;
    padding: 8px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transition: all 0.3s ease;
    width: 100%;
    text-decoration: none;
}

.user-balance-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.25);
}

/* Notification Badge Styles */
.notification-badge {
    background: #dc3545;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    position: relative;
    animation: pulse 2s infinite;
}

.notification-badge:empty {
    display: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Page Header */
.page-header {
    background: white;
    border-bottom: 1px solid #eaecf0;
    padding: 15px 32px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.page-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.page-title h1,
.page-title-section h1 {
    font-size: 28px;
    font-weight: 700;
    color: #101828;
    line-height: 36px;
    margin: 0;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: relative;
}

.avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eaecf0;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #175cd3 0%, #7098e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 2px solid #eaecf0;
}

.user-role {
    font-size: 12px;
    color: #667085;
    line-height: 16px;
}

/* User Info Section */
.user-info-section {
    display: flex;
    align-items: center;
}

.user-profile-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.user-profile-dropdown:hover {
    background: #f9fafb;
    border-color: #eaecf0;
}

.user-avatar-container {
    position: relative;
}

.user-avatar-placeholder-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #175cd3 0%, #7098e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid #eaecf0;
}

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #101828;
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.user-email {
    font-size: 12px;
    color: #667085;
    line-height: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.user-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667085;
    transition: transform 0.2s ease;
}

.user-profile-dropdown:hover .user-menu-button {
    transform: rotate(180deg);
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: none;
    border: 1px solid #eaecf0;
    color: #667085;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-toggle:hover {
    background: #f9fafb;
    border-color: #d0d5dd;
}

/* Dropdown Menus */
.user-dropdown-menu,
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #eaecf0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    margin-top: 32px;
}

.user-dropdown-menu.show,
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 14px;
    color: #344054;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
    text-decoration: none;
}

.dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

.dropdown-item:hover {
    background: #f9fafb;
}

.dropdown-item.logout-item,
.dropdown-item.text-danger {
    color: #dc2626;
}

.dropdown-item.logout-item:hover,
.dropdown-item.text-danger:hover {
    background: #fef2f2;
}

.dropdown-separator {
    height: 1px;
    background: #eaecf0;
    margin: 8px 0;
}

/* Page Content */
.page-content {
    flex: 1;
    padding: 32px 16px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Mobile Sidebar Toggle */
.mobile-sidebar-toggle {
    display: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
    min-height: 40px;
    min-width: 40px;
    align-items: center;
    justify-content: center;
}

.mobile-sidebar-toggle:hover {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

/* Navigation Badge for New Tickets */
.new-tickets-count {
    position: absolute;
    top: 14px;
    right: 16px;
    background: #dc2626;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.3);
    animation: pulse-notification 2s infinite;
}

@keyframes pulse-notification {
    0% {
        box-shadow: 0 1px 3px rgba(220, 38, 38, 0.3);
    }
    50% {
        box-shadow: 0 1px 3px rgba(220, 38, 38, 0.3), 0 0 0 4px rgba(220, 38, 38, 0.1);
    }
    100% {
        box-shadow: 0 1px 3px rgba(220, 38, 38, 0.3);
    }
}

/* Modal/Popup Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #fef3f2 0%, #fee2e2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 8px solid #fef2f2;
}

.modal-icon svg {
    color: #dc2626;
    width: 32px;
    height: 32px;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #101828;
    margin-bottom: 8px;
    line-height: 32px;
}

.modal-subtitle {
    font-size: 16px;
    color: #667085;
    line-height: 24px;
}

.modal-body {
    margin-bottom: 32px;
}

.modal-warning {
    background: #fffbeb;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.modal-warning-title {
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-warning-text {
    font-size: 14px;
    color: #92400e;
    line-height: 20px;
}

.modal-info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 16px;
}

.modal-info-title {
    font-size: 14px;
    font-weight: 600;
    color: #0369a1;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-info-text {
    font-size: 14px;
    color: #0369a1;
    line-height: 20px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal-btn {
    height: 44px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.modal-btn-secondary {
    background: white;
    color: #667085;
    border: 1px solid #d0d5dd;
}

.modal-btn-secondary:hover {
    background: #f9fafb;
    border-color: #98a2b3;
}

.modal-btn-danger {
    background: #dc2626;
    color: white;
}

.modal-btn-danger:hover {
    background: #b91c1c;
}

.modal-btn:disabled {
    background: #f9fafb;
    color: #98a2b3;
    border-color: #eaecf0;
    cursor: not-allowed;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    color: #667085;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f9fafb;
    color: #175cd3;
}

/* Loading state for modal buttons */
.modal-btn.loading {
    position: relative;
    color: transparent;
}

.modal-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    color: inherit;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Subscription Info Styles */
.page-title-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.subscription-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.subscription-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #000 0%, #2972eb 100%);
    border: 0;
    border-radius: 24px;
    padding: 8px 16px;
    box-shadow: 0 1px 3px rgba(34, 197, 94, 0.1);
    text-decoration: none;
}

.subscription-icon {
    font-size: 16px;
}

.subscription-text {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 20px;
}

.subscription-text small {
    font-weight: 500;
    color: #fff;
    margin-left: 4px;
}

.no-subscription-info {
    display: flex;
    align-items: center;
}

.trial-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, #2972eb 0%, #7098e0 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.trial-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
    background: linear-gradient(135deg, #2972eb 0%, #7098e0 100%);
    text-decoration: none;
    color: white;
}

.trial-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

/* Responsive adjustments for subscription info */
@media (max-width: 768px) {
    .page-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .subscription-info,
    .no-subscription-info {
        width: 100%;
        justify-content: flex-start;
    }
    
    .trial-button {
        width: 100%;
        text-align: center;
    }
}

/* Enhanced OAuth Button Styles */
.oauth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 44px;
    padding: 10px 18px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: white;
    color: #344054;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.oauth-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.oauth-button:hover::before {
    left: 100%;
}

.oauth-button:hover {
    background: #f9fafb;
    border-color: #98a2b3;
    text-decoration: none;
    color: #344054;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.oauth-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.oauth-button:focus {
    outline: none;
    border-color: #667085;
    box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05), 0px 0px 0px 4px rgba(152, 162, 179, 0.14);
}

.oauth-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    z-index: 1;
}

/* Google OAuth Button */
.oauth-button.google {
    border-color: #dadce0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.oauth-button.google:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8eaed 100%);
    border-color: #dadce0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.05);
}

.oauth-button.google svg {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Yandex OAuth Button */
.oauth-button.yandex {
    border-color: #ffcc00;
    background: linear-gradient(135deg, #ffdb4d 0%, #ffcc00 100%);
    color: #000;
    font-weight: 600;
}

.oauth-button.yandex:hover {
    background: linear-gradient(135deg, #ffd633 0%, #ffcc00 100%);
    border-color: #ffcc00;
    color: #000;
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
}

.oauth-button.yandex svg {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* OAuth Section Enhancements */
.oauth-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.oauth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0 20px;
    text-align: center;
}

.oauth-divider::before,
.oauth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #eaecf0, transparent);
}

.oauth-divider span {
    padding: 0 20px;
    font-size: 14px;
    color: #667085;
    background: #fcfcfd;
    font-weight: 500;
    position: relative;
}

.oauth-divider span::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 8px);
    height: calc(100% + 4px);
    background: #fcfcfd;
    border-radius: 12px;
    z-index: -1;
}

.oauth-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

/* OAuth Button Icons */
.oauth-button .google-icon {
    background: conic-gradient(from -45deg, #ea4335 110deg, #4285f4 90deg 180deg, #34a853 180deg 270deg, #fbbc05 270deg) 73% 55%/150% 150% no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 900;
}

.oauth-button .yandex-icon {
    color: #ff0000;
    font-weight: 900;
}

/* Loading state for OAuth buttons */
.oauth-button.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.oauth-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #d0d5dd;
    border-radius: 50%;
    border-top-color: #175cd3;
    animation: spin 1s linear infinite;
}

/* OAuth Error States */
.oauth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    color: #dc2626;
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.oauth-error svg {
    color: #dc2626;
    flex-shrink: 0;
}

/* OAuth Success States */
.oauth-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 12px 16px;
    color: #15803d;
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.oauth-success svg {
    color: #15803d;
    flex-shrink: 0;
}

/* Mobile Responsiveness for OAuth */
@media (max-width: 768px) {
    .oauth-button {
        font-size: 15px;
        height: 48px;
        padding: 12px 20px;
    }
    
    .oauth-divider {
        margin: 20px 0 16px;
    }
    
    .oauth-divider span {
        font-size: 13px;
        padding: 0 16px;
    }
    .page-title h1,
    .page-title-section h1 {
        font-size: 24px;
        line-height: 32px;
    }
}

@media (max-width: 480px) {
    .promocode-icon {
        display: none;
    }
    .promocode-input {
        min-width: 100%;
    }
    .oauth-button {
        font-size: 14px;
        height: 44px;
        padding: 10px 16px;
        gap: 10px;
    }
    
    .oauth-button svg {
        width: 18px;
        height: 18px;
    }
    .page-title h1,
    .page-title-section h1 {
        font-size: 14px;
        line-height: 28px;
        max-width: 110px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding-bottom: 2px;
    }
    .page-header-content {
        justify-content: normal;
    }
    .header-actions {
        margin-left: auto;
    }
}

/* Accessibility improvements */
.oauth-button:focus-visible {
    outline: 2px solid #175cd3;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .oauth-button,
    .oauth-button::before {
        transition: none;
    }
    
    .oauth-button.loading::after {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .oauth-button {
        border-width: 2px;
    }
    
    .oauth-button.google {
        border-color: #000;
    }
    
    .oauth-button.yandex {
        border-color: #000;
        background: #ffff00;
        color: #000;
    }
}

/* ============================================ */
/* RESPONSIVE DESIGN - MOBILE OPTIMIZATION */
/* ============================================ */

/* Tablet and Mobile Responsive Styles */
@media (max-width: 1024px) {
    /* Tablet and smaller screens */
    .main-content {
        margin-left: 0;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.sidebar-open {
        transform: translateX(0);
    }
    
    .sidebar-overlay {
        display: block;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .sidebar-close {
        display: block !important;
    }
    
    .mobile-sidebar-toggle {
        display: block !important;
        position: relative;
        z-index: 60;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        padding: 8px;
        border-radius: 8px;
        color: #64748b;
        margin-right: 12px;
    }
    
    .mobile-sidebar-toggle:hover {
        background: #f1f5f9;
        color: #475569;
        border-color: #cbd5e1;
    }
    
    .page-header {
        padding: 12px 16px;
    }
    
    .page-header-content {
        gap: 12px;
    }
    
    .page-title h1 {
        font-size: 24px;
        line-height: 32px;
    }
    
    .page-content {
        padding: 24px 16px;
    }
    
    /* Hide subscription/trial buttons on tablet and mobile */
    .header-actions .subscription-info,
    .header-actions .no-subscription-info {
        display: none !important;
    }
    
    /* Keep add appointment button as icon only on tablet */
    .add-appointment-btn span {
        display: none;
    }
    
    .add-appointment-btn {
        padding: 0.75rem;
        margin-right: 0.75rem;
        border-radius: 12px;
    }
    
    .add-appointment-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 768px) {
    .dropdown-toggle {
        display: none;
    }
    .user-info {
        gap: 0;
    }
    /* Mobile devices */
    .auth-container {
        flex-direction: column;
    }
    
    .auth-header {
        padding: 16px;
    }
    
    .logo-text {
        font-size: 24px;
        line-height: 32px;
    }
    
    .content-block {
        padding: 24px 16px;
    }
    
    .auth-title {
        font-size: 24px;
        line-height: 32px;
    }
    
    /* Dashboard Mobile Styles */
    .dashboard-content {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .stats-card {
        padding: 20px;
    }
    
    .stats-value {
        font-size: 28px;
    }
    
    .welcome-card {
        padding: 24px;
        margin-bottom: 24px;
    }
    
    .welcome-title {
        font-size: 24px;
        line-height: 32px;
    }
    
    .welcome-subtitle {
        font-size: 14px;
    }
    
    .actions-section {
        padding: 20px;
    }
    
    .section-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .action-btn {
        justify-content: center;
        padding: 14px 20px;
    }
    
    /* Header Mobile Improvements */
    .header-actions {
        gap: 8px;
    }
    
    .user-name,
    .user-email {
        max-width: 120px;
    }
    
    .user-dropdown-menu,
    .dropdown-menu {
        min-width: 210px;
        right: 0;
        left: auto;
    }
    
    /* Hide subscription info in header on mobile */
    .header-actions .subscription-info,
    .header-actions .no-subscription-info {
        display: none !important;
    }
    
    /* Make page title smaller on mobile */
    .page-title h1 {
        font-size: 20px !important;
        line-height: 28px !important;
    }
    
    /* Sidebar Mobile Improvements - Full width and height */
    .sidebar {
        width: 100vw !important;
        height: 100vh !important;
        box-shadow: none;
        border-right: none;
    }
    
    .sidebar-header {
        padding: 16px;
    }
    
    .site-logo-text {
        font-size: 18px;
    }
    
    .sidebar-nav {
        padding: 16px 0;
    }
    
    .nav-link {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .nav-sublink {
        padding: 10px 12px;
        margin: 2px 12px;
        font-size: 13px;
    }
    
    .sidebar-footer {
        padding: 16px;
    }
    
    .balance-amount {
        font-size: 13px;
    }
    
    /* Modal Mobile Improvements */
    .modal-content {
        width: 95%;
        max-width: 400px;
        padding: 24px;
        margin: 16px;
    }
    
    .modal-title {
        font-size: 20px;
        line-height: 28px;
    }
    
    .modal-actions {
        flex-direction: column-reverse;
        gap: 8px;
    }
    
    .modal-btn {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    /* Small mobile devices */
    .auth-header {
        padding: 12px;
    }
    
    .logo-text {
        font-size: 20px;
        line-height: 28px;
    }
    
    .content-block {
        padding: 20px 12px;
    }
    
    .content-container {
        gap: 16px;
    }
    
    .auth-title {
        font-size: 20px;
        line-height: 28px;
        text-align: left;
    }
    
    .input-field {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Dashboard Small Mobile */
    .dashboard-content {
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .stats-card {
        padding: 16px;
        text-align: left!important;
    }
    
    .stats-icon {
        margin: 0 0 12px 0!important;
    }
    
    .stats-value {
        font-size: 24px!important;
        margin-bottom: 4px;
    }
    
    .stats-title {
        font-size: 13px!important;
    }
    
    .stats-description {
        font-size: 11px!important;
    }
    
    .welcome-card {
        padding: 20px!important;
    }
    
    .welcome-title {
        font-size: 20px!important;
        line-height: 28px;
        margin-bottom: 8px;
    }
    
    .welcome-subtitle {
        font-size: 13px!important;
        margin-bottom: 12px;
    }
    
    .user-badge {
        font-size: 11px!important;
        padding: 4px 10px;
    }
    
    .actions-section {
        padding: 16px;
    }
    
    .section-title {
        font-size: 15px!important;
        margin-bottom: 10px;
    }
    
    .action-btn {
        padding: 12px 16px;
        font-size: 13px!important;
        gap: 6px;
    }
    
    .action-btn svg {
        width: 14px;
        height: 14px;
    }
    
    /* Page Header Small Mobile */
    .page-header {
        padding: 10px 12px;
    }
    
    .page-title h1 {
        font-size: 20px;
        line-height: 28px;
    }
    
    .page-content {
        padding: 20px 12px;
    }
    
    /* Sidebar Small Mobile */
    .sidebar {
        width: 260px;
    }
    
    .sidebar-header {
        padding: 12px;
    }
    
    .site-logo-text {
        font-size: 16px;
    }
    
    .nav-link {
        padding: 10px 12px;
        font-size: 13px;
        gap: 10px;
    }
    
    .nav-link svg {
        width: 18px;
        height: 18px;
    }
    
    .nav-sublink {
        padding: 8px 10px;
        margin: 2px 8px;
        font-size: 12px;
        gap: 8px;
    }
    
    .nav-sublink svg {
        width: 14px;
        height: 14px;
    }
    
    .sidebar-footer {
        padding: 12px;
    }
    
    .user-balance-card {
        padding: 8px 12px;
        gap: 8px;
    }
    
    .balance-icon {
        width: 32px;
        height: 32px;
    }
    
    .balance-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .balance-label {
        font-size: 11px;
    }
    
    .balance-amount {
        font-size: 12px;
    }
    
    /* User Info Small Mobile */
    .user-details {
        display: none; /* Hide user details on very small screens */
    }
    
    .header-actions {
        gap: 4px;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
    }
    
    .user-avatar-placeholder-small {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    /* Modal Small Mobile */
    .modal-content {
        width: 98%;
        padding: 20px;
        margin: 8px;
    }
    
    .modal-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }
    
    .modal-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .modal-title {
        font-size: 18px;
        line-height: 24px;
        margin-bottom: 6px;
    }
    
    .modal-subtitle {
        font-size: 14px;
        line-height: 20px;
    }
    
    .modal-btn {
        height: 40px;
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* Landscape orientation fixes for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .welcome-card {
        padding: 16px 24px;
    }
    
    .welcome-title {
        font-size: 20px;
        margin-bottom: 4px;
    }
    
    .welcome-subtitle {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .dashboard-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 12px;
    }
    
    .stats-card {
        padding: 16px;
    }
    
    .page-content {
        padding: 16px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .stats-icon,
    .balance-icon {
        /* Ensure crisp icons on retina displays */
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .action-btn,
    .nav-link,
    .nav-sublink {
        min-height: 44px; /* Minimum touch target size */
    }
    
    .mobile-sidebar-toggle {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .action-btn:hover,
    .nav-link:hover,
    .nav-sublink:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Print styles */
@media print {
    .sidebar,
    .page-header,
    .mobile-sidebar-toggle,
    .sidebar-overlay {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .page-content {
        padding: 0 !important;
    }
    
    .welcome-card,
    .actions-section {
        break-inside: avoid;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .sidebar,
    .sidebar-overlay,
    .modal-overlay,
    .modal-content,
    .stats-card,
    .action-btn,
    .nav-link,
    .nav-sublink {
        transition: none !important;
        animation: none !important;
    }
    
    .collapse-arrow {
        transition: none !important;
    }
}

/* Onboarding Modal Styles */
.onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.onboarding-overlay.show {
    opacity: 1;
    visibility: visible;
}

.onboarding-modal {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 95%;
    max-height: 100vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(1) translateY(0px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.onboarding-header {
    background: white;
    color: #101828;
    padding: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    display: none; 
}

.onboarding-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    pointer-events: none;
}

.header-content {
    display: none; /* Полностью скрываем header-content */
}

.welcome-emoji {
    font-size: 48px;
    animation: bounce 2s infinite;
    flex-shrink: 0;
}

.header-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.onboarding-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
}

.onboarding-subtitle {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.4;
    font-weight: 400;
    margin: 0;
}

.onboarding-close {
    position: relative;
    top: auto;
    right: auto;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #374151;
    transition: all 0.2s ease;
    z-index: 2;
}

.onboarding-close:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    transform: scale(1.1);
}

.onboarding-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    /* gap: 24px; */
    overflow-y: auto;
    flex: 1;
    /* max-height: calc(90vh - 140px); */
}

.welcome-section {
    text-align: center;
}

.welcome-message {
    font-size: 18px;
    font-weight: 600;
    color: #101828;
    margin-bottom: 12px;
    line-height: 1.3;
}

.welcome-description {
    font-size: 15px;
    color: #667085;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 8px 0;
}

.info-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    position: relative;
}

.info-card.bonus-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #bae6fd;
}

.info-card.video-card {
    background: linear-gradient(135deg, #fef7f0 0%, #fed7aa 100%);
    border-color: #fdba74;
}

.info-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.info-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bonus-card .info-title {
    color: #0369a1;
}

.video-card .info-title {
    color: #ea580c;
}

.info-description {
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.8;
}

.bonus-card .info-description {
    color: #0284c7;
}

.video-card .info-description {
    color: #c2410c;
}

.video-section {
    border-radius: 16px;
    padding: 8px;
    text-align: center;
}

.video-title {
    font-size: 20px;
    font-weight: 700;
    color: #101828;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* text-align: left; */
    gap: 10px;
    margin-top: 25px;
}

.video-description {
    font-size: 14px;
    color: #667085;
    margin-bottom: 20px;
    line-height: 1.5;
    /* text-align: left; */
}

.video-container {
    position: relative;
    width: 100%;
    /* max-width: 500px; */
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.1);
    background: #000;
}

.video-container::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.onboarding-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 20px 32px;
    padding-top: 0;
}

.onboarding-btn {
    height: 44px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
}

.onboarding-btn-primary {
    background: linear-gradient(135deg, #2972eb 0%, #7098e0 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(41, 114, 235, 0.3);
}

.onboarding-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(41, 114, 235, 0.4);
}

.onboarding-btn-secondary {
    background: white;
    color: #667085;
    border: 1px solid #d0d5dd;
}

.onboarding-btn-secondary:hover {
    background: #f9fafb;
    border-color: #98a2b3;
}

/* Responsive Design для онбоардинга */
@media (max-width: 768px) {
    .onboarding-modal {
        width: 98%;
        max-height: 95vh;
        border-radius: 16px;
    }

    .onboarding-header {
        padding: 20px 24px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .header-content {
        flex-direction: column;
        gap: 12px;
    }

    .onboarding-title {
        font-size: 24px;
    }

    .onboarding-subtitle {
        font-size: 14px;
    }

    .welcome-emoji {
        font-size: 40px;
    }

    .onboarding-content {
        padding: 24px 20px;
        gap: 20px;
        max-height: calc(95vh - 160px);
    }

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

    .info-card {
        padding: 16px;
    }

    .video-section {
        padding: 20px 16px;
    }

    .video-title {
        font-size: 18px;
        flex-direction: column;
        gap: 8px;
    }

    .onboarding-actions {
        flex-direction: column;
        gap: 10px;
        padding: 16px 20px;
    }

    .onboarding-btn {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .onboarding-modal {
        width: 95%;
        max-height: 98vh;
        border-radius: 18px;
    }

    .onboarding-header {
        padding: 16px 20px;
    }

    .onboarding-title {
        font-size: 20px;
    }

    .onboarding-subtitle {
        font-size: 13px;
    }

    .welcome-emoji {
        font-size: 36px;
    }

    .onboarding-content {
        padding: 8px;
        gap: 16px;
        /* max-height: calc(98vh - 140px); */
    }

    .welcome-message {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .welcome-description {
        font-size: 14px;
    }

    .info-card {
        padding: 14px;
    }

    .info-icon {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .info-title {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .info-description {
        font-size: 13px;
    }

    .video-section {
        padding: 0;
    }

    .video-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .video-description {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .onboarding-actions {
        padding: 12px 16px;
    }

    .onboarding-btn {
        height: 40px;
        font-size: 14px;
    }
}

/* Стили для секции приветственного бонуса в онбоардинге */
.bonus-info {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #bae6fd;
    border-radius: 16px;
    padding: 8px 12px;
    margin: 12px 0;
    position: relative;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
    display: none;
}

.bonus-title {
    font-size: 20px;
    font-weight: 700;
    color: #0369a1;
    margin-bottom: 12px;
    display: flex;
    /* align-items: center; */
    /* justify-content: center; */
    gap: 8px;
}

.bonus-amount {
    font-size: 16px;
    color: #0284c7;
    line-height: 1.5;
    margin: 0;
}

.bonus-amount strong {
    color: #0369a1;
    font-weight: 700;
    font-size: 18px;
}

.error {
    background: #ff000054;
}

.onboarding-modal .onboarding-header .header-content {
    display: none; /* Скрываем заголовок в модальном окне */
}

/* Анимация для элементов онбоардинга */
.onboarding-content > * {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s ease-out forwards;
}

.onboarding-content > *:nth-child(1) { animation-delay: 0.1s; }
.onboarding-content > *:nth-child(2) { animation-delay: 0.2s; }
.onboarding-content > *:nth-child(3) { animation-delay: 0.3s; }
.onboarding-content > *:nth-child(4) { animation-delay: 0.4s; }

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

/* Адаптивные классы для показа/скрытия элементов */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-grid {
    display: grid !important;
}

@media (min-width: 768px) {
    .d-md-none {
        display: none !important;
    }
    
    .d-md-block {
        display: block !important;
    }
    
    .d-md-grid {
        display: grid !important;
    }
}

@media (min-width: 992px) {
    .d-lg-none {
        display: none !important;
    }
    
    .d-lg-block {
        display: block !important;
    }
    
    .d-lg-grid {
        display: grid !important;
    }
}
