html {
    overflow-y: scroll;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
html::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
body::-webkit-scrollbar {
    display: none;
}

/* Форма входа */
.auth-form {
    max-width: 400px;
    margin: 100px auto;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    padding: 40px;
    border: 1px solid rgba(255, 51, 51, 0.2);
    text-align: center;
}

.auth-form h2 {
    margin-bottom: 30px;
    color: #ff6666;
    font-size: 24px;
}

.auth-form input {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 20px;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    color: #e0e0e0;
    font-size: 15px;
    box-sizing: border-box;
}

.auth-form input:focus {
    outline: none;
    border-color: #ff3333;
    box-shadow: 0 0 0 3px rgba(255, 51, 51, 0.2);
}

.auth-form button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff3333, #cc0000);
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 51, 51, 0.4);
}

.cabinet-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    gap: 40px;
}

.history-section {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 51, 51, 0.15);
}

.history-table {
    overflow-x: auto;
}

.history-table table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th {
    text-align: left;
    padding: 15px 10px;
    color: #888;
    font-weight: normal;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.history-table td {
    padding: 12px 10px;
    color: #e0e0e0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status-active {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.status-expired {
    background: rgba(255, 51, 51, 0.2);
    color: #ff6666;
    border: 1px solid #ff3333;
}

.empty-history {
    text-align: center;
    padding: 60px 20px;
}

.empty-history i {
    font-size: 64px;
    color: #ff6666;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-history p {
    color: #888;
    margin-bottom: 20px;
}

.empty-history .btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff3333, #cc0000);
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.empty-history .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 51, 51, 0.4);
}

/* Левая панель */
.cabinet-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 30px 20px;
    border: 1px solid rgba(255, 51, 51, 0.2);
    height: fit-content;
}

.sidebar-avatar {
    text-align: center;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.avatar-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff3333, #cc0000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    color: white;
    margin: 0 auto 15px;
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.3);
}

.sidebar-avatar h3 {
    font-size: 18px;
    color: #ff6666;
    margin-bottom: 5px;
}

.sidebar-avatar p {
    font-size: 12px;
    color: #888;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #b0b0b0;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.sidebar-menu li a i {
    width: 20px;
    font-size: 16px;
}

.sidebar-menu li a:hover {
    background: rgba(255, 51, 51, 0.1);
    color: #ff6666;
}

.sidebar-menu li.active a {
    background: rgba(255, 51, 51, 0.2);
    color: #ff3333;
}

/* Правая панель */
.cabinet-content {
    flex: 1;
}

.content-header {
    margin-bottom: 30px;
}

.content-header h2 {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
}

/* Профиль секция */
.profile-section {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 51, 51, 0.15);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-header i {
    font-size: 40px;
    color: #ff6666;
}

.profile-header-info h3 {
    font-size: 20px;
    color: #ff6666;
    margin-bottom: 5px;
}

.profile-header-info p {
    font-size: 12px;
    color: #888;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

/* Привилегия секция */
.rank-section {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 51, 51, 0.15);
}

.rank-section h3 {
    font-size: 16px;
    color: #888;
    margin-bottom: 15px;
    font-weight: normal;
}

.rank-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.rank-name {
    font-size: 18px;
    font-weight: bold;
    color: #ff6666;
}

.rank-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.rank-status.active {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.rank-status.inactive {
    background: rgba(255, 51, 51, 0.2);
    color: #ff6666;
    border: 1px solid #ff3333;
}

.rank-hint {
    font-size: 12px;
    color: #666;
    width: 100%;
    margin-top: 10px;
}

/* Доступные функции секция */
.info-section {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 51, 51, 0.15);
}

.info-section h3 {
    font-size: 16px;
    color: #888;
    margin-bottom: 15px;
    font-weight: normal;
}

.info-section > p {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

.functionality-warning {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255, 51, 51, 0.1);
    border-radius: 16px;
    padding: 20px;
    border-left: 3px solid #ff3333;
}

.functionality-warning i {
    font-size: 24px;
    color: #ff6666;
}

.functionality-warning strong {
    display: block;
    color: #ff6666;
    margin-bottom: 5px;
    font-size: 14px;
}

.functionality-warning p {
    font-size: 13px;
    color: #b0b0b0;
    margin: 0;
}

/* Сервисы секция */
.services-section {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 51, 51, 0.15);
}

.services-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.services-header i {
    font-size: 48px;
    color: #ff6666;
    margin-bottom: 10px;
}

.services-header h3 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 5px;
}

.services-header p {
    font-size: 14px;
    color: #888;
}

.converter-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.converter-input label,
.converter-output label {
    display: block;
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
    font-weight: bold;
}

.converter-input textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #e0e0e0;
    font-size: 16px;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
}

.converter-input textarea:focus {
    outline: none;
    border-color: #ff3333;
}

.output-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 15px;
    min-height: 100px;
    color: #ffcc00;
    font-size: 18px;
    word-break: break-word;
    margin-bottom: 15px;
    font-family: monospace;
}

.copy-btn {
    background: linear-gradient(135deg, #ff3333, #cc0000);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 51, 51, 0.4);
}

.converter-examples {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 15px;
}

.converter-examples p {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.converter-examples span {
    display: inline-block;
    background: rgba(255, 51, 51, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #ff6666;
    margin-right: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.converter-examples span:hover {
    background: rgba(255, 51, 51, 0.3);
    transform: scale(1.05);
}


@media (max-width: 768px) {
    .converter-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Адаптив */
@media (max-width: 900px) {
    .cabinet-wrapper {
        flex-direction: column;
    }
    
    .cabinet-sidebar {
        width: 100%;
    }
    
    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .sidebar-menu li {
        flex: 1;
        min-width: 120px;
        margin-bottom: 0;
    }
    
    .profile-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rank-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .profile-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cabinet-wrapper {
        padding: 20px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .functionality-warning {
        flex-direction: column;
        text-align: center;
    }
}

/* Админ панель стили */
.admin-panel-section {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 51, 51, 0.15);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 51, 51, 0.2);
}

.stat-card i {
    font-size: 40px;
    color: #ff6666;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
}

.stat-label {
    font-size: 12px;
    color: #888;
}

.admin-filters {
    margin-bottom: 25px;
}

.search-form {
    width: 100%;
}

.search-wrapper {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-wrapper i {
    position: absolute;
    left: 15px;
    color: #666;
}

.search-wrapper input {
    flex: 1;
    padding: 12px 15px 12px 40px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #e0e0e0;
    font-size: 14px;
}

.search-wrapper input:focus {
    outline: none;
    border-color: #ff3333;
}

.search-btn, .reset-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff3333, #cc0000);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.reset-btn {
    background: rgba(255, 255, 255, 0.1);
}

.search-btn:hover, .reset-btn:hover {
    transform: translateY(-2px);
}

.payments-table-wrapper {
    overflow-x: auto;
}

.payments-table table {
    width: 100%;
    border-collapse: collapse;
}

.payments-table th {
    text-align: left;
    padding: 15px 10px;
    color: #888;
    font-weight: normal;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.payments-table td {
    padding: 12px 10px;
    color: #e0e0e0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.payment-row:hover {
    background: rgba(255, 51, 51, 0.05);
}

.payment-amount {
    color: #4caf50;
    font-weight: bold;
}

.payment-method i {
    margin-right: 5px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-link {
    padding: 8px 16px;
    background: rgba(255, 51, 51, 0.2);
    color: #ff6666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: rgba(255, 51, 51, 0.4);
    transform: translateY(-2px);
}

.page-current {
    color: #888;
    font-size: 14px;
}

@media (max-width: 768px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .search-wrapper {
        flex-wrap: wrap;
    }
    
    .search-wrapper input {
        width: 100%;
    }
    
    .payments-table {
        font-size: 12px;
    }
    
    .payments-table td, 
    .payments-table th {
        padding: 8px 5px;
    }
}

/* Админ панель - вкладки */
.admin-panel-section {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 51, 51, 0.15);
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.admin-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    color: #b0b0b0;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-tab-btn i {
    font-size: 14px;
}

.admin-tab-btn:hover {
    background: rgba(255, 51, 51, 0.1);
    color: #ff6666;
}

.admin-tab-btn.active {
    background: linear-gradient(135deg, #ff3333, #cc0000);
    color: white;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 51, 51, 0.2);
}

.stat-card i {
    font-size: 40px;
    color: #ff6666;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
}

.stat-label {
    font-size: 12px;
    color: #888;
}

.admin-search-form {
    margin-bottom: 25px;
}

.search-wrapper {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-wrapper i {
    position: absolute;
    left: 15px;
    color: #666;
}

.search-wrapper input {
    flex: 1;
    padding: 12px 15px 12px 40px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #e0e0e0;
    font-size: 14px;
}

.search-wrapper input:focus {
    outline: none;
    border-color: #ff3333;
}

.search-wrapper button, .reset-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff3333, #cc0000);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.reset-btn {
    background: rgba(255, 255, 255, 0.1);
}

.payments-table-wrapper {
    overflow-x: auto;
}

.payments-table {
    width: 100%;
    border-collapse: collapse;
}

.payments-table th {
    text-align: left;
    padding: 15px 10px;
    color: #888;
    font-weight: normal;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.payments-table td {
    padding: 12px 10px;
    color: #e0e0e0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.payment-amount {
    color: #4caf50;
    font-weight: bold;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination a {
    padding: 8px 16px;
    background: rgba(255, 51, 51, 0.2);
    color: #ff6666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: rgba(255, 51, 51, 0.4);
}

/* RCON Консоль стили */
.rconsole-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    overflow: hidden;
}

.rconsole-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rconsole-header h3 {
    margin: 0;
    color: #ff6666;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.rconsole-status .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.status-online {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.status-offline {
    background: rgba(255, 51, 51, 0.2);
    color: #ff6666;
    border: 1px solid #ff3333;
}

.rconsole-output {
    height: 400px;
    overflow-y: auto;
    background: #0a0a0a;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

/* Стилизация скроллбара */
.rconsole-output::-webkit-scrollbar {
    width: 8px;
}

.rconsole-output::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 10px;
}

.rconsole-output::-webkit-scrollbar-thumb {
    background: #ff3333;
    border-radius: 10px;
}

.rconsole-output::-webkit-scrollbar-thumb:hover {
    background: #cc0000;
}

.rconsole-output .log-line {
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: pre-wrap;
    word-break: break-all;
    font-family: 'Courier New', monospace;
}

.rconsole-output .log-line.command {
    color: #ffcc00;
}

.rconsole-output .log-line.command::before {
    content: '> ';
    color: #ffcc00;
    font-weight: bold;
}

.rconsole-output .log-line.result {
    color: #00ff00;
}

.rconsole-output .log-line.result::before {
    content: '← ';
    color: #00ff00;
}

.rconsole-output .log-line.error {
    color: #ff6666;
}

.rconsole-output .log-line.error::before {
    content: '⚠ ';
    color: #ff6666;
}

.rconsole-output .log-line.system {
    color: #888;
    font-style: italic;
}

.rconsole-input {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rconsole-input input {
    flex: 1;
    padding: 12px 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.rconsole-input input:focus {
    outline: none;
    border-color: #ff3333;
}

.rconsole-input button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff3333, #cc0000);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rconsole-input button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

@media (max-width: 768px) {
    .admin-tabs {
        flex-direction: column;
    }
    
    .admin-tab-btn {
        justify-content: center;
    }
    
    .rconsole-output {
        height: 300px;
        font-size: 11px;
    }
    
    .rconsole-input {
        flex-direction: column;
    }
}

/* Улучшенная адаптация для телефонов */
@media (max-width: 768px) {
    /* Админ панель - платежи */
    .admin-panel-section {
        padding: 15px;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-value {
        font-size: 22px;
    }
    
    /* Таблица платежей - горизонтальная прокрутка с подсказкой */
    .payments-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -5px;
        padding: 0 5px;
    }
    
    .payments-table {
        min-width: 700px;
    }
    
    .payments-table th,
    .payments-table td {
        white-space: nowrap;
        padding: 10px 8px;
        font-size: 12px;
    }
    
    /* Подсказка о прокрутке */
    .payments-table-wrapper::before {
        content: "← Свайпните для просмотра всех колонок →";
        display: block;
        text-align: center;
        font-size: 10px;
        color: #666;
        margin-bottom: 10px;
        padding: 5px;
        background: rgba(0,0,0,0.3);
        border-radius: 20px;
    }
    
    /* Поиск */
    .search-wrapper {
        flex-wrap: wrap;
    }
    
    .search-wrapper input {
        width: 100%;
        font-size: 14px;
        padding: 10px 15px 10px 35px;
    }
    
    .search-wrapper i {
        left: 12px;
        top: 12px;
    }
    
    .search-wrapper button,
    .reset-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* Пагинация */
    .pagination {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .page-link {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .page-current {
        font-size: 12px;
    }
    
    /* Вкладки */
    .admin-tabs {
        flex-direction: row;
        justify-content: center;
    }
    
    .admin-tab-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .admin-tab-btn i {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .admin-panel-section {
        padding: 12px;
    }
    
    .stat-card {
        padding: 10px;
    }
    
    .stat-card i {
        font-size: 28px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .payments-table th,
    .payments-table td {
        padding: 8px 6px;
        font-size: 11px;
    }
    
    .admin-tab-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .search-wrapper button,
    .reset-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Стили для скроллбара таблицы (WebKit) */
.payments-table-wrapper::-webkit-scrollbar {
    height: 6px;
}

.payments-table-wrapper::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 10px;
}

.payments-table-wrapper::-webkit-scrollbar-thumb {
    background: #ff3333;
    border-radius: 10px;
}

.payments-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #cc0000;
}

/* Карточки платежей */
.payments-cards {
    margin-top: 20px;
}

.payments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.payments-header h3 {
    font-size: 18px;
    color: #ff6666;
    margin: 0;
}

.payments-total {
    font-size: 13px;
    color: #888;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
}

.payments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 51, 51, 0.1);
}

.payment-card:hover {
    border-color: rgba(255, 51, 51, 0.3);
    transform: translateX(5px);
}

.payment-card-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.payment-customer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.customer-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff3333, #cc0000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 18px;
}

.customer-info {
    display: flex;
    flex-direction: column;
}

.customer-name {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

.payment-method {
    font-size: 11px;
    color: #888;
}

.payment-amount-card {
    font-size: 22px;
    font-weight: bold;
    color: #4caf50;
}

.payment-card-product {
    padding: 10px 0;
    color: #b0b0b0;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-card-product i {
    color: #ff6666;
    width: 20px;
}

.payment-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #666;
}

.payment-date i, .payment-id i {
    margin-right: 5px;
}

/* Адаптация для телефонов */
@media (max-width: 600px) {
    .payment-card-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .payment-amount-card {
        font-size: 18px;
    }
    
    .payment-card {
        padding: 12px;
    }
    
    .customer-avatar {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .customer-name {
        font-size: 14px;
    }
    
    .payment-card-product {
        font-size: 12px;
    }
}

.search-info {
    background: rgba(76, 175, 80, 0.1);
    border-radius: 12px;
    padding: 10px 15px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #4caf50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-info.error {
    background: rgba(255, 51, 51, 0.1);
    color: #ff6666;
}

.search-info i {
    font-size: 16px;
}

.history-id {
    font-family: monospace;
    font-size: 12px;
    color: #ff6666;
    font-weight: bold;
}

/* Стили для скинов */
.avatar-skin {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 0 30px rgba(255, 51, 51, 0.3);
    margin: 0 auto 15px;
    display: block;
    background: #1a1a1a;
}

.customer-skin {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    background: #1a1a1a;
}

@media (max-width: 600px) {
    .customer-skin {
        width: 32px;
        height: 32px;
        border-radius: 6px;
    }
    
    .avatar-skin {
        width: 60px;
        height: 60px;
        border-radius: 6px;
    }
}

/* Поиск игрока */
.player-search-section {
    padding: 20px;
}

.player-search-header {
    text-align: center;
    margin-bottom: 30px;
}

.player-search-header h3 {
    font-size: 20px;
    color: #ff6666;
    margin-bottom: 10px;
}

.player-search-header p {
    color: #888;
    font-size: 14px;
}

.search-example {
    font-size: 12px;
    color: #666;
}

.search-example code {
    background: rgba(0,0,0,0.3);
    padding: 2px 6px;
    border-radius: 6px;
    color: #ffcc00;
}

.player-search-form {
    margin-bottom: 30px;
}

.player-result {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 25px;
    margin-top: 20px;
}

.player-result-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.player-result-skin {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(255, 51, 51, 0.3);
}

.player-result-info h2 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 8px;
}

.player-uuid {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #888;
}

.player-uuid code {
    background: rgba(0,0,0,0.5);
    padding: 4px 8px;
    border-radius: 6px;
    color: #ffcc00;
    font-family: monospace;
}

.copy-uuid-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-uuid-btn:hover {
    background: rgba(255,51,51,0.3);
}

.player-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.player-stat-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 51, 51, 0.2);
}

.player-stat-card i {
    font-size: 32px;
    color: #ff6666;
}

.player-stat-card .stat-info {
    display: flex;
    flex-direction: column;
}

.player-stat-card .stat-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
}

.player-stat-card .stat-value {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

.player-groups {
    margin-bottom: 25px;
}

.player-groups h4 {
    font-size: 14px;
    color: #888;
    margin-bottom: 12px;
}

.groups-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.group-badge {
    background: rgba(255, 51, 51, 0.15);
    border-radius: 20px;
    padding: 6px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.group-name {
    color: #ff6666;
    font-weight: bold;
}

.group-expiry {
    color: #888;
    font-size: 11px;
}

.player-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn {
    background: linear-gradient(135deg, #ff3333, #cc0000);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 51, 51, 0.4);
}

@media (max-width: 768px) {
    .player-result-header {
        flex-direction: column;
        text-align: center;
    }
    
    .player-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .player-stat-card {
        padding: 12px;
    }
    
    .player-actions {
        flex-direction: column;
    }
    
    .action-btn {
        text-align: center;
        justify-content: center;
    }
}

/* Вкладки сервисов */
.services-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.services-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    color: #b0b0b0;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.services-tab-btn:hover {
    background: rgba(255, 51, 51, 0.1);
    color: #ff6666;
}

.services-tab-btn.active {
    background: linear-gradient(135deg, #ff3333, #cc0000);
    color: white;
}

.services-tab-content {
    display: none;
}

.services-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Поиск скинов */
.skinsearch-container {
    padding: 20px 0;
}

.skinsearch-form {
    margin-bottom: 30px;
}

.skins-results {
    margin-top: 20px;
}

.skins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.skin-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 51, 51, 0.2);
    transition: all 0.3s ease;
}

.skin-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 51, 51, 0.5);
}

.skin-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.skin-card-header i {
    font-size: 20px;
    color: #ff6666;
}

.skin-card-header h4 {
    font-size: 16px;
    color: #fff;
    margin: 0;
}

.skin-card-preview {
    text-align: center;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.skin-3d {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
}

.skin-not-found {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.skin-not-found i {
    font-size: 48px;
    color: #ff6666;
    margin-bottom: 10px;
}

.skin-actions {
    margin-top: 15px;
}

.skin-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff3333, #cc0000);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.skin-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 51, 51, 0.4);
}

@media (max-width: 768px) {
    .services-tabs {
        flex-direction: column;
    }
    
    .services-tab-btn {
        justify-content: center;
    }
    
    .skins-grid {
        grid-template-columns: 1fr;
    }
}

/* Кнопка переключения модели */
.skin-model-toggle {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff3333, #cc0000);
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    font-size: 11px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.skin-model-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(255, 51, 51, 0.4);
}

.skin-card-preview {
    position: relative;
}

.skin-card-preview > div[id^="skin3d_"] {
    width: 200px;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
    margin: 0 auto;
}

/* Селектор базы скинов */
.skin-source-selector {
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
}

.skin-source-selector label {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.source-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.source-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    color: #b0b0b0;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.source-btn:hover {
    background: rgba(255, 51, 51, 0.2);
    color: #ff6666;
}

.source-btn.active {
    background: linear-gradient(135deg, #ff3333, #cc0000);
    color: white;
}

.skin-result {
    margin-top: 20px;
    text-align: center;
}

.skin-result-header {
    margin-bottom: 20px;
}

.skin-result-header h3 {
    font-size: 18px;
    color: #ff6666;
    margin-bottom: 5px;
}

.skin-result-header p {
    font-size: 14px;
    color: #888;
}

.skin-3d-viewer {
    margin-bottom: 15px;
}

@media (max-width: 600px) {
    .source-buttons {
        flex-direction: column;
    }
    
    .source-btn {
        justify-content: center;
    }
}

/* Селектор базы скинов */
.skin-source-selector {
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
}

.skin-source-selector label {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.source-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.source-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    color: #b0b0b0;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.source-btn:hover {
    background: rgba(255, 51, 51, 0.2);
    color: #ff6666;
}

.source-btn.active {
    background: linear-gradient(135deg, #ff3333, #cc0000);
    color: white;
}

.skin-result {
    margin-top: 20px;
    text-align: center;
}

.skin-result-header {
    margin-bottom: 20px;
}

.skin-result-header h3 {
    font-size: 18px;
    color: #ff6666;
    margin-bottom: 5px;
}

.skin-result-header p {
    font-size: 14px;
    color: #888;
}

.skin-3d-viewer {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 600px) {
    .source-buttons {
        flex-direction: column;
    }
    
    .source-btn {
        justify-content: center;
    }
    
    .skin-3d-viewer iframe {
        width: 260px;
        height: 300px;
    }
}

.recharge-btn {
    margin-top: 10px;
    background: linear-gradient(135deg, #ff3333, #cc0000);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.recharge-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 51, 51, 0.4);
}

/* Баланс в профиле */
.balance-item-profile {
    position: relative;
}

.recharge-btn {
    margin-top: 12px;
    background: transparent;
    border: 1px solid rgba(255, 51, 51, 0.5);
    color: #ff6666;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.recharge-btn i {
    font-size: 13px;
    transition: transform 0.3s ease;
}

.recharge-btn:hover {
    background: linear-gradient(135deg, #ff3333, #cc0000);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 51, 51, 0.3);
}

.recharge-btn:hover i {
    transform: scale(1.1);
}

.recharge-btn:active {
    transform: translateY(0);
}

/* Баланс в шапке */
.balance-item {
    margin-left: 15px;
}

.balance-item a {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 51, 51, 0.15);
    border-radius: 30px;
    padding: 6px 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 51, 51, 0.3);
    font-weight: 500;
}

.balance-item a:hover {
    background: rgba(255, 51, 51, 0.3);
    border-color: rgba(255, 51, 51, 0.6);
    transform: translateY(-1px);
}

.balance-item a i {
    color: #ffcc00;
    font-size: 13px;
}

/* Для мобильных устройств */
@media (max-width: 600px) {
    .balance-item {
        margin-left: 8px;
    }
    
    .balance-item a {
        padding: 4px 10px;
        font-size: 12px;
    }
    
    .recharge-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .recharge-btn i {
        font-size: 11px;
    }
}

/* Карточка баланса */
.balance-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 15px 20px;
    margin: 25px 0 0 0;
    border: 1px solid rgba(255, 51, 51, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    transition: all 0.3s ease;
}

.balance-card-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 51, 51, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.balance-card-icon i {
    font-size: 24px;
    color: #ff6666;
}

.balance-card-info {
    flex: 1;
}

.balance-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.balance-value {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
}

.balance-recharge-btn {
    background: rgba(255, 51, 51, 0.15);
    border: 1px solid rgba(255, 51, 51, 0.3);
    padding: 8px 20px;
    border-radius: 30px;
    color: #ff6666;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.balance-recharge-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.balance-recharge-btn:hover {
    background: rgba(255, 51, 51, 0.25);
    border-color: rgba(255, 51, 51, 0.5);
    color: #ff8888;
    transform: translateY(-1px);
}

.balance-recharge-btn:hover i {
    transform: scale(1.05);
}

.balance-recharge-btn:active {
    transform: translateY(0);
}

/* Для мобильных устройств */
@media (max-width: 600px) {
    .balance-card {
        flex-direction: row;
        padding: 12px 15px;
        margin-top: 20px;
    }
    
    .balance-card-icon {
        width: 38px;
        height: 38px;
    }
    
    .balance-card-icon i {
        font-size: 18px;
    }
    
    .balance-value {
        font-size: 18px;
    }
    
    .balance-recharge-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
}

/* Стили для пользователей в админ-панели */
.user-ip-badge {
    display: flex;
    align-items: center;
}

.rank-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}

.rank-default {
    background: rgba(255, 255, 255, 0.1);
    color: #b0b0b0;
}

.user-actions {
    display: flex;
    gap: 8px;
}

.action-btn-small {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    color: #e0e0e0;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.action-btn-small:hover {
    background: rgba(255, 51, 51, 0.2);
    border-color: rgba(255, 51, 51, 0.4);
    transform: translateY(-1px);
}

.action-btn-small i {
    font-size: 11px;
}

.register-user-btn {
    color: #4caf50;
    border-color: rgba(76, 175, 80, 0.3);
    background: rgba(76, 175, 80, 0.1);
}

.register-user-btn:hover {
    background: rgba(76, 175, 80, 0.2);
}

.unregister-user-btn {
    color: #ff6666;
    border-color: rgba(255, 51, 51, 0.3);
    background: rgba(255, 51, 51, 0.1);
}

.unregister-user-btn:hover {
    background: rgba(255, 51, 51, 0.2);
}

@media (max-width: 768px) {
    .payment-card-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .user-actions {
        margin-top: 5px;
        flex-wrap: wrap;
    }
    
    .action-btn-small {
        padding: 4px 10px;
        font-size: 11px;
    }
}

/* Панель инструментов форматирования */
.format-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    align-items: center;
}

.format-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.format-btn:hover {
    background: rgba(255, 51, 51, 0.3);
    transform: scale(1.05);
}

.format-btn.active {
    background: linear-gradient(135deg, #ff3333, #cc0000);
    color: white;
}

.toolbar-separator {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 5px;
}

.font-family-select,
.font-size-select {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 6px 10px;
    color: #e0e0e0;
    cursor: pointer;
    font-size: 13px;
}

.font-family-select:hover,
.font-size-select:hover {
    border-color: #ff6666;
}

/* Предпросмотр */
.live-preview-section {
    margin-top: 25px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
}

.live-preview-section h4 {
    font-size: 14px;
    color: #ff6666;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-preview {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    min-height: 100px;
    font-size: 16px;
    word-break: break-word;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* RGB палитра */
.rgb-palette {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

#customColorPicker {
    width: 50px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
}

#customColorHex {
    flex: 1;
    min-width: 100px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #e0e0e0;
    font-family: monospace;
    text-transform: uppercase;
}

.apply-color-btn {
    background: linear-gradient(135deg, #ff3333, #cc0000);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recent-colors {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.recent-label {
    font-size: 12px;
    color: #888;
}

.recent-colors-list {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.recent-color {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.recent-color:hover {
    transform: scale(1.1);
    border-color: white;
}

/* Текстовые эффекты */
.text-effects-section {
    margin-top: 25px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
}

.text-effects-section h4 {
    font-size: 14px;
    color: #ff6666;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.effects-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.effect-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
}

.effect-btn:hover {
    background: rgba(255, 51, 51, 0.3);
    transform: translateY(-2px);
}

/* Обновленные цвета в палитре */
.color-item {
    height: 60px;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.color-item:hover {
    transform: scale(1.05);
    border-color: white;
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

.color-name {
    font-size: 10px;
    background: rgba(0,0,0,0.8);
    padding: 3px 6px;
    border-radius: 4px;
    color: white;
    width: 100%;
    text-align: center;
    margin-bottom: 0;
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

.output-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

@media (max-width: 600px) {
    .format-toolbar {
        gap: 5px;
    }
    
    .format-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .font-family-select,
    .font-size-select {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .color-palette {
        grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
    }
    
    .color-item {
        height: 50px;
    }
}

/* Выпадающее меню цветов */
.color-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

.color-dropdown-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-dropdown-btn:hover {
    border-color: #ff6666;
    background: rgba(255, 51, 51, 0.1);
}

#selectedColorPreview {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.color-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    margin-top: 5px;
    z-index: 100;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.color-dropdown-menu.show {
    display: block;
}

.color-dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.color-dropdown-item:hover {
    background: rgba(255, 51, 51, 0.2);
    transform: translateX(5px);
}

.color-dropdown-name {
    color: #fff;
    font-size: 13px;
}

.color-dropdown-code {
    font-family: monospace;
    font-size: 11px;
    color: #888;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Остальные стили остаются без изменений */
.color-palette-section {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
}

.color-palette-section h4 {
    font-size: 14px;
    color: #ff6666;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rgb-palette {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

#customColorPicker {
    width: 50px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
}

#customColorHex {
    flex: 1;
    min-width: 100px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #e0e0e0;
    font-family: monospace;
    text-transform: uppercase;
}

.apply-color-btn {
    background: linear-gradient(135deg, #ff3333, #cc0000);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recent-colors {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.recent-label {
    font-size: 12px;
    color: #888;
}

.recent-colors-list {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.recent-color {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.recent-color:hover {
    transform: scale(1.1);
    border-color: white;
}

.gradients-section {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
}

.gradients-section h4 {
    font-size: 14px;
    color: #ff6666;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gradients-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.gradient-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gradient-item:hover {
    transform: translateY(-2px);
    border-color: #ff6666;
    background: rgba(255, 51, 51, 0.1);
}

.gradient-preview {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.gradient-preview span {
    height: 30px;
    width: 30px;
}

.gradient-name {
    font-size: 12px;
    color: #b0b0b0;
    display: block;
    text-align: center;
}

.live-preview-section {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
}

.live-preview-section h4 {
    font-size: 14px;
    color: #ff6666;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-preview {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    min-height: 80px;
    font-size: 16px;
    word-break: break-word;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Настройки цветов */
.color-settings-section {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
}

.color-settings-section h4 {
    font-size: 14px;
    color: #ff6666;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.color-count-control {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.color-count-control label {
    font-size: 14px;
    color: #b0b0b0;
}

.color-count-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.count-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.count-btn:hover {
    background: #ff3333;
    transform: scale(1.05);
}

#colorCountValue {
    font-size: 18px;
    font-weight: bold;
    color: #ff6666;
    min-width: 30px;
    text-align: center;
}

.color-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 300px;
    overflow-y: auto;
    padding: 5px;
}

.color-item-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.color-item-wrapper label {
    font-size: 13px;
    color: #b0b0b0;
    min-width: 60px;
}

.color-picker-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
}

.color-picker {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
}

.color-hex {
    flex: 1;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #e0e0e0;
    font-family: monospace;
    text-transform: uppercase;
    font-size: 13px;
}

.apply-gradient-btn {
    background: linear-gradient(135deg, #ff3333, #cc0000);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.apply-gradient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 51, 51, 0.4);
}

/* Остальные стили */
.format-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    align-items: center;
}

.format-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.format-btn:hover {
    background: rgba(255, 51, 51, 0.3);
    transform: scale(1.05);
}

.format-btn.active {
    background: linear-gradient(135deg, #ff3333, #cc0000);
    color: white;
}

.toolbar-separator {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 5px;
}

.font-family-select {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 6px 10px;
    color: #e0e0e0;
    cursor: pointer;
    font-size: 13px;
}

.converter-input textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #e0e0e0;
    font-size: 16px;
    resize: vertical;
    box-sizing: border-box;
}

.output-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 15px;
    min-height: 150px;
    color: #fff;
    font-size: 16px;
    word-break: break-word;
    margin-bottom: 15px;
    font-family: monospace;
    white-space: pre-wrap;
}

.output-actions {
    display: flex;
    gap: 10px;
}

.copy-btn {
    background: linear-gradient(135deg, #ff3333, #cc0000);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 51, 51, 0.4);
}

.live-preview-section {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
}

.live-preview-section h4 {
    font-size: 14px;
    color: #ff6666;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-preview {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    min-height: 80px;
    font-size: 18px;
    word-break: break-word;
    border: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1.5;
}

.gradients-section {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
}

.gradients-section h4 {
    font-size: 14px;
    color: #ff6666;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gradients-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.gradient-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gradient-item:hover {
    transform: translateY(-2px);
    border-color: #ff6666;
    background: rgba(255, 51, 51, 0.1);
}

.gradient-preview {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.gradient-preview span {
    height: 30px;
    width: 30px;
}

.gradient-name {
    font-size: 12px;
    color: #b0b0b0;
    display: block;
    text-align: center;
}

@media (max-width: 768px) {
    .converter-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .color-item-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .color-picker-wrapper {
        width: 100%;
    }
}