:root {
    --color-card:       #ffffff;
    --color-border:     var(--line);
    --color-text:       #2C3E50;
    --color-text-light: #576574;
    --color-ocean:      #0084B4;
    --color-ocean-hover:#00668F;
    --card-radius:      12px;
    --shadow-sm:        0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-lg:        0 24px 60px rgba(16, 30, 46, 0.14);
    --radius-lg:        20px;
}

/* --------------------------------- */
/* Animations */
/* --------------------------------- */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes ripple {
    to { transform: scale(2.5); opacity: 0; }
}

/* --------------------------------- */
/* Page layout */
/* --------------------------------- */

.support-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 2rem;
    align-items: start;
    max-width: var(--page-max);
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .support-layout {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------- */
/* Support grid */
/* --------------------------------- */

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.support-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg, var(--card-radius));
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.5s ease both;
    transition: box-shadow 0.22s, transform 0.22s;
}

.support-card:nth-child(1) { animation-delay: 0.05s; }
.support-card:nth-child(2) { animation-delay: 0.12s; }
.support-card:nth-child(3) { animation-delay: 0.19s; }

.support-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.09);
    transform: translateY(-3px);
}

/* --------------------------------- */
/* Icon area */
/* --------------------------------- */

.card-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}


.card-icon-wrap.ocean  { background: linear-gradient(135deg, rgba(0, 132, 180, 0.16), rgba(0, 132, 180, 0.06)); color: var(--color-ocean); }
.card-icon-wrap.palm,
.card-icon-wrap.gold   { background: linear-gradient(135deg, rgba(0, 132, 180, 0.16), rgba(0, 132, 180, 0.06)); color: var(--color-ocean); }

/* --------------------------------- */
/* Card content */
/* --------------------------------- */

.support-card h2 {
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 0.5rem;
}

.support-card p {
    font-size: 0.86rem;
    color: var(--color-text-light);
    line-height: 1.65;
    flex: 1;
    margin: 0 0 1.2rem;
}

/* --------------------------------- */
/* Buttons */
/* --------------------------------- */

.support-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
    align-self: flex-start;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Ripple effect on click */
.support-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.25);
    border-radius: inherit;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.4s, opacity 0.4s;
}

.support-btn:active::after {
    animation: ripple 0.4s ease;
}

.support-btn.ocean {
    background-color: var(--color-ocean);
    color: #fff;
}

.support-btn.ocean:hover {
    background-color: var(--color-ocean-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 132, 180, 0.35);
}

.support-btn.palm {
    background-color: var(--color-palm);
    color: #fff;
}

.support-btn.palm:hover {
    background-color: #088F6D;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(16, 172, 132, 0.35);
}

.support-btn.disabled {
    background-color: #EAEEF3;
    color: #9CA3AF;
    pointer-events: none;
    box-shadow: none;
}

/* --------------------------------- */
/* FAQ card */
/* --------------------------------- */

.faq-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg, var(--card-radius));
    padding: 1.5rem 1.6rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.5s 0.25s ease both;
}

.faq-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.faq-header h2 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.faq-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 22px;
    height: 3px;
    background: var(--color-gold);
    border-radius: 2px;
}

.faq-badge {
    font-size: 0.66rem;
    font-weight: 700;
    background: rgba(254, 202, 87, 0.18);
    color: #9A7B00;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    margin-top: -6px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 0.9rem 1.1rem;
    transition: border-color 0.18s, background-color 0.18s;
}

.faq-item[open] {
    background: #FAFAF8;
    border-color: var(--line-2);
}

.faq-item summary {
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    font-size: 0.72rem;
    color: var(--color-text-light);
    transition: transform 0.18s;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-item summary i {
    color: var(--color-ocean);
    width: 1.1rem;
    text-align: center;
    flex-shrink: 0;
}

.faq-item p {
    margin: 0.7rem 0 0.1rem 1.7rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* --------------------------------- */
/* Footer note */
/* --------------------------------- */

.support-footer-note {
    font-size: 0.86rem;
    color: var(--color-text-light);
    font-style: italic;
    text-align: center;
    padding: 0.5rem 0 2rem;
    animation: fadeInUp 0.5s 0.3s ease both;
}

/* --------------------------------- */
/* Sidebar column */
/* --------------------------------- */

.support-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeInUp 0.5s 0.15s ease both;
}

.side-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--card-radius);
    padding: 1.3rem 1.4rem;
    box-shadow: var(--shadow-sm);
}

.side-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(0, 132, 180, 0.1);
    color: var(--color-ocean);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.side-card h3 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 0.8rem;
}

.response-time {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text);
    margin: 0 0 0.3rem;
}

.response-caption {
    font-size: 0.82rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.55;
}

.checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.checklist li {
    font-size: 0.83rem;
    color: var(--color-text-light);
    line-height: 1.5;
    padding-left: 1.2rem;
    position: relative;
}

.checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-palm);
}

/* --------------------------------- */
/* Contact form (the "Write to us" card) */
/* --------------------------------- */

.contact-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg, var(--card-radius));
    padding: 1.6rem 1.7rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.5s 0.05s ease both;
    scroll-margin-top: 1.5rem;
}

.contact-head {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1.3rem;
}

.contact-head .card-icon-wrap { margin-bottom: 0; flex-shrink: 0; }

.contact-head h2 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
}

.contact-head p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--color-text-light);
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .contact-row { grid-template-columns: 1fr; }
}

.contact-field {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.contact-field label,
.contact-field legend,
.contact-label {
    display: block;
    margin-bottom: 0.35rem;
    padding: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text);
}

.contact-optional {
    font-weight: 500;
    color: var(--color-text-light);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.72rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #F8F9FA;
    color: var(--color-text);
    font: inherit;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.contact-form textarea {
    min-height: 9rem;
    resize: vertical;
    line-height: 1.55;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-ocean);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 132, 180, 0.12);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #ABA59C; }

.contact-reply-to {
    margin: 0;
    padding: 0.72rem 0.9rem;
    border: 1px dashed var(--color-border);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--color-text);
    overflow-wrap: anywhere;
}

.contact-reply-to i { color: var(--color-ocean); margin-right: 0.3rem; }

/* Topic: radio buttons shown as chips */
.topic-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.topic-chip {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    margin: 0 !important;
    cursor: pointer;
}

.topic-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.topic-chip span {
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: #fff;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--color-text-light);
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.topic-chip:hover span { border-color: rgba(0, 132, 180, 0.45); color: var(--color-text); }

.topic-chip input:checked + span {
    border-color: var(--color-ocean);
    background: rgba(0, 132, 180, 0.1);
    color: var(--color-ocean-hover);
}

.topic-chip input:focus-visible + span {
    outline: 2px solid var(--color-ocean);
    outline-offset: 2px;
}

.contact-error {
    margin: 0.3rem 0 0;
    font-size: 0.8rem;
    color: #C0392B;
}

.contact-alert {
    display: flex;
    gap: 0.6rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(212, 90, 80, 0.35);
    border-radius: 10px;
    background: #FDF3F2;
    font-size: 0.86rem;
    color: #8A2F27;
}

.contact-alert i { margin-top: 0.15rem; }
.contact-alert p { margin: 0; }

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.25rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-ocean), #0d97c8);
    color: #fff;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(18, 38, 63, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0, 132, 180, 0.22); }
/* Waiting for the "I'm not a robot" box (static/js/captcha-gate.js). */
.contact-btn:disabled { background: #9fb8c4; cursor: not-allowed; box-shadow: none; opacity: 0.78; transform: none; }

.contact-btn--secondary {
    background: #EAEFF3;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    box-shadow: none;
}

.contact-note {
    margin: 0;
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* After sending */
.contact-sent {
    text-align: center;
    padding: 0.8rem 0.5rem 0.4rem;
}

.contact-sent__icon {
    width: 3.2rem;
    height: 3.2rem;
    margin: 0 auto 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(18, 145, 110, 0.12);
    color: #12916E;
    font-size: 1.25rem;
}

.contact-sent h2 {
    margin: 0 0 0.4rem;
    font-size: 1.2rem;
    color: var(--color-text);
}

.contact-sent p {
    max-width: 34rem;
    margin: 0 auto 0.8rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-light);
}

.contact-sent__ref strong {
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    background: var(--surface);
    font-family: var(--font-mono, monospace);
    color: var(--color-text);
}

/* The player's latest requests (side column) */
.my-requests {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}

.my-requests li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.15rem 0.5rem;
    align-items: center;
    font-size: 0.8rem;
}

.my-requests__ref {
    font-family: var(--font-mono, monospace);
    font-weight: 700;
    color: var(--color-text);
}

.my-requests__status {
    justify-self: end;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(0, 132, 180, 0.1);
    color: var(--color-ocean-hover);
}

.my-requests__status--in_progress { background: rgba(226, 172, 63, 0.18); color: #8A6100; }
.my-requests__status--resolved { background: rgba(18, 145, 110, 0.14); color: #0E7458; }

.my-requests__subject {
    grid-column: 1 / -1;
    color: var(--color-text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-requests__date {
    grid-column: 1 / -1;
    font-size: 0.72rem;
    color: #9AA3AD;
}
