
/* =====================================================
   Logged-out Support top bar
   Matches the compact guest navigation used elsewhere.
   ===================================================== */

.support-guest-topbar-wrap {
    width: min(760px, calc(100% - 20px));
    margin: 10px auto 0;
}

.support-guest-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 10px 9px 13px;
    background:
        linear-gradient(
            145deg,
            rgba(30, 30, 39, .98),
            rgba(22, 22, 29, .98)
        );
    border: 1px solid rgba(245, 197, 66, .28);
    border-radius: 14px;
    box-shadow: 0 9px 26px rgba(0, 0, 0, .24);
}

.support-guest-brand {
    min-width: 0;
    color: #ffffff !important;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1;
    text-decoration: none !important;
}

.support-guest-brand span {
    color: #f5c542;
}

.support-guest-auth {
    display: flex;
    align-items: center;
    gap: 6px;
}

.support-guest-auth a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 9px;
    box-sizing: border-box;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
}

.support-guest-login {
    color: #e5e5e9 !important;
    background: #24242d;
    border: 1px solid #3a3a45;
}

.support-guest-login:hover {
    color: #ffffff !important;
    background: #2b2b35;
    border-color: #51515d;
}

.support-guest-join {
    color: #101014 !important;
    background: linear-gradient(135deg, #f5c542, #d9a01d);
    border: 1px solid #f5c542;
}

.support-guest-join:hover {
    color: #101014 !important;
    background: linear-gradient(135deg, #ffda61, #e7ad2a);
}

@media (max-width: 520px) {
    .support-guest-topbar-wrap {
        width: calc(100% - 12px);
        margin-top: 6px;
    }

    .support-guest-topbar {
        padding: 8px 8px 8px 11px;
        border-radius: 12px;
    }

    .support-guest-brand {
        font-size: 16px;
    }

    .support-guest-auth a {
        min-height: 32px;
        padding: 6px 10px;
        font-size: 10px;
    }
}

.support-page-body {
    background: #101014;
}

.support-shell {
    width: min(760px, calc(100% - 20px));
    margin: 0 auto;
    padding: 18px 0 40px;
}

.support-head {
    margin-bottom: 14px;
    text-align: center;
}

.support-head h1 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 23px;
    line-height: 1.2;
}

.support-head p {
    max-width: 560px;
    margin: 0 auto;
    color: #9d9da8;
    font-size: 12px;
    line-height: 1.5;
}

.support-card {
    margin-bottom: 12px;
    padding: 15px;
    background: #18181f;
    border: 1px solid #30303a;
    border-radius: 15px;
    box-shadow: 0 10px 32px rgba(0,0,0,.22);
}

.support-card-title {
    margin: 0 0 4px;
    color: #fff;
    font-size: 15px;
    font-weight: 650;
}

.support-card-copy {
    margin: 0;
    color: #9999a4;
    font-size: 11px;
    line-height: 1.45;
}

.support-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.support-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    color: #fff !important;
    background: #24242d;
    border: 1px solid #3a3a45;
    border-radius: 9px;
    font: inherit;
    font-size: 11px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
}

.support-button:hover {
    background: #2c2c36;
    border-color: rgba(245,197,66,.5);
}

.support-button-primary {
    color: #101014 !important;
    background: linear-gradient(135deg, #f5c542, #d99b1b);
    border-color: #f5c542;
}

.support-button-danger {
    color: #ffd7dc !important;
    background: rgba(214,72,88,.10);
    border-color: rgba(214,72,88,.35);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.support-field {
    display: grid;
    gap: 6px;
    margin-bottom: 11px;
}

.support-field label {
    color: #d7d7dd;
    font-size: 11px;
    font-weight: 600;
}

.support-field input,
.support-field select,
.support-field textarea {
    width: 100%;
    min-width: 0;
    padding: 10px 11px;
    color: #fff;
    background: #20202a;
    border: 1px solid #363641;
    border-radius: 9px;
    box-sizing: border-box;
    font: inherit;
    font-size: 12px;
}

.support-field textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.5;
}

.support-field input:focus,
.support-field select:focus,
.support-field textarea:focus {
    border-color: #d08a10;
    outline: 2px solid rgba(245,197,66,.12);
}

.support-error {
    margin-bottom: 12px;
    padding: 10px 12px;
    color: #ffd8de;
    background: rgba(214,72,88,.10);
    border: 1px solid rgba(214,72,88,.35);
    border-radius: 9px;
    font-size: 11px;
}

.support-ticket-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.support-ticket-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px;
    color: inherit;
    background: #20202a;
    border: 1px solid #30303a;
    border-radius: 11px;
    text-decoration: none !important;
}

.support-ticket-row:hover {
    background: #25252e;
    border-color: rgba(245,197,66,.38);
}

.support-ticket-main {
    min-width: 0;
}

.support-ticket-subject {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 12px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-ticket-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
    color: #8f8f99;
    font-size: 9px;
}

.support-ticket-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
}

.support-pill {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 4px 8px;
    color: #cfcfd6;
    background: #282832;
    border: 1px solid #3a3a45;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.support-pill-open,
.support-pill-waiting_support {
    color: #f5c542;
    border-color: rgba(245,197,66,.35);
}

.support-pill-answered {
    color: #7ee0a8;
    border-color: rgba(126,224,168,.32);
}

.support-pill-closed {
    color: #9b9ba5;
}

.support-unread {
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    color: #101014;
    background: #f5c542;
    border-radius: 999px;
    box-sizing: border-box;
    font-size: 8px;
    font-weight: 800;
}

.support-conversation {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.support-message {
    max-width: 88%;
    padding: 11px 12px;
    background: #20202a;
    border: 1px solid #30303a;
    border-radius: 13px;
}

.support-message-user {
    justify-self: end;
    background: #24242d;
    border-color: rgba(245,197,66,.20);
}

.support-message-staff {
    justify-self: start;
    background: linear-gradient(145deg, rgba(245,197,66,.08), #20202a 55%);
    border-color: rgba(245,197,66,.30);
}

.support-message-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.support-message-head strong {
    color: #fff;
    font-size: 10px;
}

.support-message-head span {
    color: #7f7f89;
    font-size: 8px;
}

.support-message-body {
    color: #d4d4da;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.support-ticket-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.support-ticket-number {
    color: #f5c542;
    font-size: 9px;
    font-weight: 700;
}

.support-guest-key {
    margin-top: 11px;
    padding: 11px;
    color: #d7d7dd;
    background: #20202a;
    border: 1px dashed rgba(245,197,66,.42);
    border-radius: 10px;
    font-size: 10px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.support-admin-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.support-admin-filter {
    padding: 6px 9px;
    color: #cfcfd6 !important;
    background: #22222a;
    border: 1px solid #34343e;
    border-radius: 999px;
    font-size: 9px;
    text-decoration: none !important;
}

.support-admin-filter.is-active {
    color: #101014 !important;
    background: #f5c542;
    border-color: #f5c542;
}

.support-admin-controls {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
    margin-top: 12px;
}

@media (max-width: 560px) {
    .support-grid,
    .support-admin-controls {
        grid-template-columns: 1fr;
    }

    .support-ticket-header {
        display: grid;
    }

    .support-message {
        max-width: 94%;
    }
}


/* =====================================================
   Guest 5-digit support CAPTCHA
   ===================================================== */

.support-captcha {
    margin: 12px 0;
    padding: 12px;
    background: #1d1d25;
    border: 1px solid #34343f;
    border-radius: 11px;
}

.support-captcha-copy {
    display: grid;
    gap: 2px;
    margin-bottom: 9px;
}

.support-captcha-copy label {
    color: #f0f0f3;
    font-size: 11px;
    font-weight: 650;
}

.support-captcha-copy span {
    color: #92929d;
    font-size: 9px;
    line-height: 1.35;
}

.support-captcha-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.support-captcha-code {
    min-width: 116px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    color: #f5c542;
    background:
        repeating-linear-gradient(
            -45deg,
            rgba(245,197,66,.025) 0,
            rgba(245,197,66,.025) 5px,
            transparent 5px,
            transparent 10px
        ),
        #15151c;
    border: 1px solid rgba(245,197,66,.42);
    border-radius: 9px;
    box-sizing: border-box;
    font-size: 20px;
    font-weight: 750;
    letter-spacing: .22em;
    line-height: 1;
    user-select: none;
}

.support-captcha-input {
    width: 100%;
    min-height: 44px;
    padding: 9px 11px !important;
    color: #fff !important;
    background: #20202a !important;
    border: 1px solid #3a3a45 !important;
    border-radius: 9px !important;
    box-sizing: border-box;
    font: inherit;
    font-size: 14px !important;
    letter-spacing: .08em;
}

.support-captcha-input:focus {
    border-color: #d08a10 !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(245,197,66,.10);
}

@media (max-width: 420px) {
    .support-captcha-row {
        grid-template-columns: 1fr;
    }

    .support-captcha-code {
        width: 100%;
    }
}
