* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #333333;
    line-height: 1.5;
    padding: 40px 20px;
}

.support-container {
    max-width: 600px;
    margin: 0 auto;
}

.support-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.support-choices {
    display: grid;
    gap: 14px;
}

.support-choice {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    color: #1e293b;
    text-decoration: none;
    transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
}

.support-choice:hover {
    transform: translateY(-1px);
    border-color: #6366f1;
    background: #f8faff;
}

.support-choice strong,
.support-choice small {
    display: block;
}

.support-choice small {
    margin-top: 4px;
    color: #64748b;
}

.support-choice-icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 1.4rem;
}

.support-header {
    margin-bottom: 25px;
}

.btn-back {
    display: inline-block;
    color: #0066cc;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.btn-back:hover {
    text-decoration: underline;
}

.support-header h1 {
    font-size: 1.5rem;
    color: #111111;
    margin-bottom: 5px;
}

.support-header p {
    color: #666666;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-hint {
    margin-top: 10px;
    color: #64748b;
    font-size: 0.85rem;
}

.form-group label {
    display: block;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #444444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #333333;
    background-color: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0066cc;
    outline: none;
}

.btn-submit {
    width: 100%;
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 12px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: #0052a3;
}

.btn-submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

.ticket-feedback {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 0.95rem;
}

.ticket-feedback.success {
    color: #14532d;
    background: #dcfce7;
}

.ticket-feedback.error {
    color: #991b1b;
    background: #fee2e2;
}

.ticket-feedback[hidden] {
    display: none;
}

.ticket-success {
    padding: 18px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #f0fdf4;
    color: #14532d;
}

.ticket-success[hidden] {
    display: none;
}

.ticket-success h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.ticket-code-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 8px;
}

.ticket-access-code {
    flex: 1;
    padding: 12px;
    border: 1px dashed #16a34a;
    border-radius: 6px;
    background: white;
    color: #14532d;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-align: center;
}

.btn-copy-code,
.btn-chat-link {
    display: inline-block;
    padding: 11px 14px;
    border: 0;
    border-radius: 6px;
    background: #15803d;
    color: white;
    font: inherit;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.btn-chat-link {
    margin-top: 6px;
}

@media (max-width: 480px) {
    .ticket-code-row {
        align-items: stretch;
        flex-direction: column;
    }
}

.support-conversation {
    margin-top: 22px;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    overflow: hidden;
}

.support-conversation[hidden] {
    display: none;
}

.conversation-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #dbe2ea;
}

.conversation-heading span {
    color: #64748b;
    font-size: 0.9rem;
}

.conversation-messages {
    display: grid;
    align-content: start;
    gap: 12px;
    max-height: 420px;
    min-height: 140px;
    overflow-y: auto;
    padding: 16px;
}

.conversation-message {
    max-width: 90%;
    padding: 11px 13px;
    border-radius: 10px;
    background: #f1f5f9;
}

.conversation-message.from-user {
    justify-self: end;
    background: #e0e7ff;
}

.conversation-message.from-support {
    justify-self: start;
}

.conversation-message strong,
.conversation-message time {
    display: block;
    font-size: 0.78rem;
}

.conversation-message time {
    margin-top: 7px;
    color: #64748b;
    text-align: right;
}

.conversation-message p {
    margin: 5px 0 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.conversation-form {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid #dbe2ea;
}

.conversation-form textarea {
    width: 100%;
    min-height: 76px;
    resize: vertical;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font: inherit;
}

.conversation-form .btn-submit {
    justify-self: end;
    width: auto;
    min-width: 170px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.support-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
    text-align: center;
}

.support-footer p {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 10px;
}

.btn-discord {
    display: inline-block;
    background-color: #5865F2;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
}

.btn-discord:hover {
    background-color: #4752c4;
}