/* ==========================================================================
   HELP - SUPPORT
   ========================================================================== */

/* SUPPORT PAGE STYLES */
.support-page {
    padding: 8rem 10% 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.support-header {
    text-align: center;
    margin-bottom: 5rem;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1100px;
    margin-bottom: 4rem;
    align-items: stretch; 
}

.support-card {
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%; 
}

.support-card p {
    margin-top: 10px;
    margin-bottom: 15px; 
    line-height: 1.4;
}

.support-card:hover {
    transform: translateY(-10px);
}

.support-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.support-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.support-btn {
    margin-top: auto; 
    background: var(--accent);
    color: white !important;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
    width: fit-content; 
}

.support-btn:hover {
    background: var(--button);
}

.emergency-box {
    width: 100%;
    max-width: 800px;
    padding: 2.5rem;
    border-radius: 25px;
    border: 2px solid rgba(59, 130, 246, 0.1);
    margin-top: 30px;
}

.emergency-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.emergency-content i {
    font-size: 3rem;
    color: var(--accent);
}

.emergency-content h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   SUPPORT BUG REPORT FLEXBOX
   ========================================================================== */

.support-btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.support-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.support-modal-overlay.hidden {
    display: none;
}

.support-modal-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.18), transparent 38%),
        radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.16), transparent 42%),
        rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(10px);
}

.support-modal {
    position: relative;
    z-index: 1;
    width: min(760px, 96vw);
    max-height: min(92vh, 900px);
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(21, 32, 56, 0.96)),
        radial-gradient(circle at 18% 12%, rgba(59, 130, 246, 0.22), transparent 42%),
        radial-gradient(circle at 84% 18%, rgba(139, 92, 246, 0.18), transparent 46%);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.42),
        0 0 44px rgba(59, 130, 246, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: #eaf1ff;
    animation: supportModalIn 0.18s ease;
}

.support-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 28px 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.support-modal-kicker {
    margin: 0 0 8px;
    color: #60a5fa;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.support-modal-header h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 900;
    color: #f8fbff;
}

.support-modal-subtitle {
    margin: 8px 0 0;
    color: #94a3b8;
    font-weight: 700;
    line-height: 1.45;
}

.support-modal-close {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.88);
    color: #cbd5e1;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.support-modal-close:hover {
    transform: translateY(-1px) scale(1.03);
    color: #ffffff;
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.support-modal-form {
    display: grid;
    gap: 18px;
    padding: 24px 28px 28px;
    max-height: calc(92vh - 130px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 rgba(15, 23, 42, 0.7);
}

.support-modal-form::-webkit-scrollbar {
    width: 8px;
}

.support-modal-form::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
    border-radius: 999px;
}

.support-modal-form::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.7);
}

.support-field {
    display: grid;
    gap: 8px;
}

.support-field label {
    color: #f8fbff;
    font-weight: 900;
}

.support-field input,
.support-field textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.76);
    color: #eaf1ff;
    font: inherit;
    font-weight: 700;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.support-field input {
    min-height: 48px;
    padding: 0 15px;
}

.support-field textarea {
    min-height: 190px;
    resize: vertical;
    padding: 14px 15px;
    line-height: 1.55;
}

.support-field input::placeholder,
.support-field textarea::placeholder {
    color: rgba(148, 163, 184, 0.72);
}

.support-field input:focus,
.support-field textarea:focus {
    border-color: rgba(96, 165, 250, 0.72);
    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.16),
        0 0 24px rgba(59, 130, 246, 0.12);
    background: rgba(15, 23, 42, 0.92);
}

.support-field-hint {
    color: #94a3b8;
    font-size: 0.86rem;
    font-weight: 700;
}

.support-field-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.support-counter {
    color: #94a3b8;
    font-size: 0.86rem;
    font-weight: 900;
}

.support-counter.limit-near {
    color: #f59e0b;
}

.support-counter.limit-hit {
    color: #ef4444;
}

.support-file-drop {
    min-height: 118px;
    border-radius: 18px;
    border: 1px dashed rgba(96, 165, 250, 0.46);
    background:
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.14), transparent 42%),
        rgba(15, 23, 42, 0.62);
    display: grid;
    place-items: center;
    gap: 6px;
    text-align: center;
    padding: 18px;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.support-file-drop i {
    font-size: 1.9rem;
    color: #60a5fa;
}

.support-file-drop span {
    color: #eaf1ff;
    font-weight: 900;
}

.support-file-drop small {
    color: #94a3b8;
    font-weight: 700;
}

.support-file-drop:hover {
    transform: translateY(-1px);
    border-color: rgba(139, 92, 246, 0.7);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
    background:
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.20), transparent 42%),
        rgba(15, 23, 42, 0.78);
}

.support-file-list {
    display: grid;
    gap: 8px;
}

.support-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.7);
    color: #dbe6fb;
    font-weight: 800;
}

.support-file-item span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-file-item small {
    color: #94a3b8;
    flex-shrink: 0;
}

.support-submit-status {
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 800;
    line-height: 1.4;
}

.support-submit-status.error {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.24);
}

.support-submit-status.success {
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.24);
}

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

.support-modal-btn {
    min-height: 44px;
    border-radius: 14px;
    padding: 0 18px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.support-modal-btn:hover {
    transform: translateY(-1px);
}

.support-modal-btn-secondary {
    background: rgba(15, 23, 42, 0.86);
    color: #dbe6fb;
}

.support-modal-btn-primary {
    border-color: rgba(96, 165, 250, 0.34);
    background: linear-gradient(125deg, #1d4ed8 0%, #3730a3 48%, #5b21b6 100%);
    color: #f8fbff;
    box-shadow:
        0 12px 26px rgba(30, 64, 175, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.support-modal-btn-primary:hover {
    filter: brightness(1.08);
    box-shadow:
        0 16px 34px rgba(30, 64, 175, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.support-modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.support-file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.support-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(59, 130, 246, 0.22);

    background:
        radial-gradient(circle at 8% 20%, rgba(59, 130, 246, 0.14), transparent 42%),
        rgba(15, 23, 42, 0.74);

    color: var(--text-main);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.support-file-info {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.support-file-name {
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-weight: 800;
    color: var(--text-main);
}

.support-file-size {
    flex-shrink: 0;
    color: var(--text-muted);
    font-weight: 800;
}

.support-file-remove {
    width: 28px;
    height: 28px;
    border-radius: 999px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(239, 68, 68, 0.28);
    background: rgba(239, 68, 68, 0.10);
    color: #ef4444;

    cursor: pointer;
    transition:
        transform 0.16s ease,
        background 0.16s ease,
        box-shadow 0.16s ease;
}

.support-file-remove:hover {
    transform: translateY(-1px) scale(1.06);
    background: rgba(239, 68, 68, 0.18);
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.14);
}

.support-file-remove:active {
    transform: scale(0.95);
}

@keyframes supportModalIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 700px) {
    .support-modal-overlay {
        padding: 14px;
    }

    .support-modal-header {
        padding: 22px 20px 16px;
    }

    .support-modal-form {
        padding: 20px;
    }

    .support-modal-actions {
        flex-direction: column-reverse;
    }

    .support-modal-btn {
        width: 100%;
    }
}