body {
    background: linear-gradient(135deg, #000000, #22009f, #d10000);
    margin: 0;
    padding: 0;
    color: white;
    font-family: 'Open Sans', sans-serif;
    min-height: 100vh;
}

.support-container {
    max-width: 1200px;
    margin: 100px auto 0;
    padding: 40px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
}

/* Header */
.support-header {
    text-align: center;
    margin-bottom: 50px;
}

.support-header h1 {
    font-family: 'Teko', sans-serif;
    font-size: 3rem;
    color: white;
    margin-bottom: 15px;
}

.support-header h1 i {
    margin-right: 15px;
    color: #ff6b6b;
}

.support-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Search */
.support-search {
    margin-bottom: 50px;
}

.search-box {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white;
    font-size: 1rem;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-box input:focus {
    outline: none;
    border-color: #ff6b6b;
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #ff6b6b;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
}

/* Categories */
.support-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.category-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.category-card:hover {
    background: rgba(255, 255, 255, 0.15);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: #ff6b6b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.category-icon i {
    font-size: 1.5rem;
    color: white;
}

.category-card h3 {
    font-family: 'Teko', sans-serif;
    font-size: 1.3rem;
    color: white;
    margin-bottom: 10px;
}

.category-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* FAQ Section */
.faq-section {
    margin-bottom: 50px;
}

.faq-section h2 {
    font-family: 'Teko', sans-serif;
    font-size: 2.5rem;
    color: white;
    text-align: center;
    margin-bottom: 30px;
}

.faq-categories {
    display: grid;
    gap: 25px;
}

.faq-category {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
}

.faq-category h3 {
    font-family: 'Teko', sans-serif;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 20px;
    border-bottom: 2px solid #ff6b6b;
    padding-bottom: 10px;
}

.faq-items {
    display: grid;
    gap: 15px;
}

.faq-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question h4 {
    font-size: 1rem;
    color: white;
    margin: 0;
}

.faq-question i {
    color: #ff6b6b;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 15px;
    max-height: 500px;
}

.faq-answer p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.faq-answer ol {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    padding-left: 20px;
    font-size: 0.9rem;
}

.faq-answer li {
    margin-bottom: 5px;
}

/* Contact Support Section */
.contact-support {
    margin-bottom: 50px;
}

.contact-support h2 {
    font-family: 'Teko', sans-serif;
    font-size: 2.5rem;
    color: white;
    text-align: center;
    margin-bottom: 40px;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.contact-method {
    text-align: center;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
}

.method-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.contact-method:nth-child(1) .method-icon {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
}

.contact-method:nth-child(2) .method-icon {
    background: linear-gradient(135deg, #0088cc, #005580);
    color: white;
}

.contact-method:nth-child(3) .method-icon {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
}

.contact-method:nth-child(4) .method-icon {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
}

.contact-method:hover .method-icon {
    transform: scale(1.1);
}

.method-info h3 {
    font-family: 'Teko', sans-serif;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 10px;
}

.method-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.method-info .btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-success {
    background: #25d366;
    color: white;
}

.btn-success:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-primary {
    background: #0088cc;
    color: white;
}

.btn-primary:hover {
    background: #005580;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3);
}

.btn-secondary {
    background: #ff6b6b;
    color: white;
}

.btn-secondary:hover {
    background: #ee5a52;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.btn-info {
    background: #4ecdc4;
    color: white;
}

.btn-info:hover {
    background: #44a08d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

/* Support Ticket Section */
.support-ticket {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 50px;
}

.support-ticket h2 {
    font-family: 'Teko', sans-serif;
    font-size: 2.5rem;
    color: white;
    text-align: center;
    margin-bottom: 30px;
}

/* Плашка «войдите для заявки» — без фона и градиента */
.support-login-prompt {
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 24px;
}

.support-login-prompt-text {
    margin: 0 0 16px 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
}

/* Кнопка «Авторизоваться» — явный стиль кнопки, по центру */
.support-login-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #e53935 100%);
    color: #fff !important;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none !important;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.support-login-btn:hover {
    color: #fff !important;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

.ticket-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff6b6b;
    background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-group small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.ticket-form .btn-primary {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.ticket-form .btn-primary:hover {
    background: #ee5a52;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .support-container {
        margin: 80px 15px 0;
        padding: 20px;
    }
    
    .support-header h1 {
        font-size: 2rem;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .support-header h1 {
        font-size: 1.8rem;
    }
    
    .contact-method {
        padding: 20px;
    }
    
    .method-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Toast-уведомление — в стиле карточек категорий (как детали турнира) */
.support-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    max-width: 380px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    transform: translateX(120%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.support-toast.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.support-toast i.fa-check-circle {
    color: #ff6b6b;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.support-toast span {
    flex: 1;
}

.support-toast-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 4px;
    font-size: 1rem;
    line-height: 1;
    border-radius: 4px;
}

.support-toast-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Скрываем стандартные Django messages на странице поддержки */
.support-container .container.mt-3 .alert-success,
.support-ticket .container.mt-3 .alert-success,
main .container.mt-3 .alert-success,
.alert-success {
    display: none !important;
} 