/* GPL Times Support Portal v2.0 — Polished Design */

/* ── Reset & Base ── */
.gts-portal {
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    -webkit-font-smoothing: antialiased;
    color: var(--sec-color, #373b3f);
    line-height: 1.5;
}
.gts-portal *, .gts-portal *::before, .gts-portal *::after {
    box-sizing: border-box;
}

/* ── Login Notice ── */
.gts-login-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    padding: 24px;
    border-radius: 16px;
    font-size: 16px;
    color: var(--sec-color, #373b3f);
    line-height: 1.5;
}
.gts-login-notice svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    stroke: var(--main-color, #1a8fc4);
}
.gts-login-notice a {
    color: var(--main-color, #1a8fc4);
    font-weight: 600;
    text-decoration: none;
}
.gts-login-notice a:hover {
    text-decoration: underline;
}

/* ── Offline notice ── */
.gts-offline-notice {
    margin-bottom: 24px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(var(--main-color-rgb, 26,143,196), .12) 0%, rgba(var(--main-color-rgb, 26,143,196), .04) 50%, #f8fafc 100%);
    border: 1px solid rgba(var(--main-color-rgb, 26,143,196), .2);
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.gts-offline-notice.gts-hidden { display: none !important; }
.gts-offline-inner { padding: 24px 28px; }
.gts-offline-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.gts-offline-icon {
    font-size: 20px;
    color: var(--main-color, #1a8fc4);
    line-height: 1;
}
.gts-offline-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--sec-color, #373b3f);
}
.gts-offline-desc {
    margin: 0 0 18px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}
.gts-offline-we-back {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sec-color, #373b3f);
}
.gts-offline-countdown {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.gts-offline-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 64px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.gts-offline-num {
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--main-color, #1a8fc4);
    line-height: 1.2;
}
.gts-offline-label {
    font-size: 11px;
    text-transform: lowercase;
    color: #94a3b8;
    margin-top: 4px;
}
.gts-offline-refresh {
    margin: 16px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--main-color, #1a8fc4);
}
.gts-offline-refresh.gts-hidden { display: none !important; }

/* ── Support Gate ── */
.gts-gate { margin-top: 10px; margin-bottom: 24px; }
.gts-gate-inner {
    display: grid;
    grid-template-columns: 340px 1fr;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.gts-gate-left {
    background: linear-gradient(160deg, #eef6fc 0%, #e8f2f9 50%, #f0f7fc 100%);
    color: #334155;
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.gts-gate-left::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: rgba(var(--main-color-rgb, 26,143,196), .08);
}
.gts-gate-left::after {
    content: '';
    position: absolute;
    bottom: -30px; left: -30px;
    width: 90px; height: 90px;
    border-radius: 50%;
    background: rgba(var(--main-color-rgb, 26,143,196), .05);
}
.gts-gate-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 10px;
    background: rgba(var(--main-color-rgb, 26,143,196), .12);
    border: 1px solid rgba(var(--main-color-rgb, 26,143,196), .28);
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    color: var(--main-color, #1a8fc4);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 20px;
    width: fit-content;
    position: relative;
    z-index: 1;
}
.gts-gate-badge svg { flex-shrink: 0; color: var(--main-color, #1a8fc4); }
.gts-gate-left h3 {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: #1e293b;
    position: relative;
    z-index: 1;
}
.gts-gate-left p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.65;
    color: #475569;
    position: relative;
    z-index: 1;
}
.gts-gate-left p strong { color: #1e293b; font-weight: 600; }
.gts-gate-divider {
    width: 40px; height: 2px;
    background: rgba(var(--main-color-rgb, 26,143,196), .35);
    border-radius: 1px;
    margin: 22px 0;
    position: relative;
    z-index: 1;
}
.gts-gate-warn {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(var(--main-color-rgb, 26,143,196), .1);
    border: 1px solid rgba(var(--main-color-rgb, 26,143,196), .22);
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.55;
    color: #334155;
    position: relative;
    z-index: 1;
}
.gts-gate-warn svg { flex-shrink: 0; margin-top: 2px; color: var(--main-color, #1a8fc4); }
.gts-gate-warn strong { color: #1e293b; font-weight: 600; }
.gts-gate-right {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.gts-gate-rule {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border: 1.5px solid #f1f5f9;
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    transition: all .18s ease;
    background: #fafbfc;
}
.gts-gate-rule:hover {
    border-color: rgba(var(--main-color-rgb, 26,143,196), .3);
    background: var(--soft-main-light, rgba(26,143,196,.08));
}
.gts-gate-rule.gts-on {
    border-color: #86efac;
    background: #f0fdf4;
}
.gts-gate-cb {
    flex-shrink: 0;
    width: 22px; height: 22px;
    margin-top: 1px;
    position: relative;
}
.gts-gate-cb svg {
    width: 22px; height: 22px;
    display: block;
    position: absolute;
    top: 0; left: 0;
}
.gts-cb-on { opacity: 0; transform: scale(.8); transition: all .2s ease; }
.gts-cb-off { opacity: 1; transition: all .2s ease; }
.gts-gate-rule.gts-on .gts-cb-off { opacity: 0; transform: scale(.8); }
.gts-gate-rule.gts-on .gts-cb-on { opacity: 1; transform: scale(1); }
.gts-gate-input {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
.gts-gate-text {
    font-size: 15px;
    line-height: 1.55;
    color: var(--sec-color, #373b3f);
}
.gts-gate-text strong { font-weight: 600; color: #b91c1c; }
.gts-gate-rule.gts-on .gts-gate-text strong { color: #16a34a; }
.gts-gate-text a {
    color: var(--main-color, #1a8fc4);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}
.gts-gate-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}
.gts-portal .gts-gate-check-all,
.gts-portal button.gts-gate-check-all {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 16px 24px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #fff !important;
    background: var(--main-color, #1a8fc4) !important;
    border: none !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all .22s ease !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    letter-spacing: .08em !important;
    font-family: inherit !important;
    min-height: 0 !important;
    height: auto !important;
    width: auto !important;
    box-shadow: none !important;
    margin: 0 !important;
}
.gts-portal .gts-gate-check-all:hover {
    background: var(--soft-main-dark, rgba(26,143,196,.8)) !important;
    box-shadow: 0 4px 12px rgba(var(--main-color-rgb, 26,143,196), .25) !important;
}
.gts-portal .gts-gate-check-all svg { flex-shrink: 0; }
.gts-portal .gts-gate-check-all.gts-all-done { background: #16a34a !important; }
.gts-portal .gts-gate-check-all.gts-all-done:hover { background: #15803d !important; }
.gts-portal .gts-gate-proceed,
.gts-portal button.gts-gate-proceed {
    flex: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 16px 24px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #fff !important;
    background: #cbd5e1 !important;
    border: none !important;
    border-radius: 50px !important;
    cursor: not-allowed !important;
    transition: all .22s ease !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    text-transform: uppercase !important;
    letter-spacing: .08em !important;
    font-family: inherit !important;
    min-height: 0 !important;
    height: auto !important;
    box-shadow: none !important;
    margin: 0 !important;
}
.gts-portal .gts-gate-proceed svg { flex-shrink: 0; transition: transform .2s; }
.gts-portal .gts-gate-proceed.gts-ready {
    background: var(--sec-color, #373b3f) !important;
    cursor: pointer !important;
    box-shadow: 0 2px 10px rgba(0,0,0,.2) !important;
}
.gts-portal .gts-gate-proceed.gts-ready:hover {
    background: var(--main-light-color, #393E46) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.25) !important;
}
.gts-portal .gts-gate-proceed.gts-ready:active { transform: scale(.985); }
.gts-portal .gts-gate-proceed.gts-ready svg { transform: translateX(2px); }
.gts-portal .gts-gate-cancel,
.gts-portal button.gts-gate-cancel {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 16px 24px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    background: transparent !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all .18s ease !important;
    font-family: inherit !important;
    line-height: 1 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    min-height: 0 !important;
    height: auto !important;
    width: auto !important;
    box-shadow: none !important;
    margin: 0 !important;
    white-space: nowrap !important;
}
.gts-portal .gts-gate-cancel:hover {
    border-color: #94a3b8 !important;
    color: var(--sec-color, #373b3f) !important;
    background: #f8fafc !important;
}

/* ── Header ── */
.gts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 24px;
    margin-bottom: 24px;
    border-bottom: 2px solid #f1f5f9;
}
.gts-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--sec-color, #373b3f);
}

/* ── Buttons (high specificity to override theme) ── */
.gts-portal .gts-btn,
.gts-portal button.gts-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 16px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all .2s ease !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    font-family: inherit !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    min-height: 0 !important;
    width: auto !important;
    height: auto !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}
.gts-portal .gts-btn svg { flex-shrink: 0; }
.gts-portal .gts-btn-primary,
.gts-portal button.gts-btn-primary {
    color: #fff !important;
    background: var(--main-color, #1a8fc4) !important;
    box-shadow: 0 2px 8px rgba(var(--main-color-rgb, 26,143,196), .2) !important;
}
.gts-portal .gts-btn-primary:hover,
.gts-portal button.gts-btn-primary:hover {
    background: var(--soft-main-dark, rgba(26,143,196,.8)) !important;
    box-shadow: 0 4px 16px rgba(var(--main-color-rgb, 26,143,196), .3) !important;
    transform: translateY(-1px);
}
.gts-portal .gts-btn-primary:active { transform: translateY(0); }
.gts-portal .gts-btn-outline,
.gts-portal button.gts-btn-outline {
    color: var(--sec-color, #373b3f) !important;
    background: #fff !important;
    border: 1.5px solid #e2e8f0 !important;
}
.gts-portal .gts-btn-outline:hover,
.gts-portal button.gts-btn-outline:hover {
    border-color: rgba(var(--main-color-rgb, 26,143,196), .4) !important;
    background: var(--soft-main-light, rgba(26,143,196,.08)) !important;
}
.gts-portal .gts-btn-danger { color: #fff !important; background: #ef4444 !important; }
.gts-portal .gts-btn-danger:hover { background: #dc2626 !important; }
.gts-portal .gts-btn-success { color: #fff !important; background: #16a34a !important; }
.gts-portal .gts-btn-success:hover { background: #15803d !important; }
.gts-portal .gts-btn-sm { padding: 12px 20px !important; font-size: 13px !important; }
.gts-portal .gts-btn:disabled { opacity: .5 !important; cursor: not-allowed !important; transform: none !important; }

/* ── Filters (high specificity to override theme) ── */
.gts-portal .gts-filters {
    display: flex !important;
    gap: 6px !important;
    margin-bottom: 20px !important;
    padding: 6px !important;
    background: #f8fafc !important;
    border-radius: 50px !important;
    border: 1.5px solid #f1f5f9 !important;
    width: fit-content !important;
}
.gts-portal .gts-filter-btn,
.gts-portal button.gts-filter-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all .18s ease !important;
    font-family: inherit !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1 !important;
    min-height: 0 !important;
    width: auto !important;
    height: auto !important;
    box-shadow: none !important;
    margin: 0 !important;
}
.gts-portal .gts-filter-btn:hover,
.gts-portal button.gts-filter-btn:hover {
    color: var(--sec-color, #373b3f) !important;
    background: #fff !important;
}
.gts-portal .gts-filter-btn.gts-active,
.gts-portal button.gts-filter-btn.gts-active {
    background: var(--main-color, #1a8fc4) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(var(--main-color-rgb, 26,143,196), .25) !important;
}
.gts-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 99px;
    background: rgba(255,255,255,.3);
}
.gts-filter-btn:not(.gts-active) .gts-badge {
    background: #e2e8f0;
    color: #64748b;
}

/* ── Ticket Table ── */
.gts-ticket-list {
    width: 100%;
}
.gts-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1.5px solid #f1f5f9;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    font-size: 14px;
}
.gts-table thead th {
    padding: 20px 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .95);
    background: var(--sec-color, #373b3f);
    border-bottom: 2px solid rgba(0, 0, 0, .15);
    text-align: left;
}
.gts-th-replies, .gts-td-replies { text-align: center !important; width: 90px; }
.gts-th-status, .gts-td-status { width: 120px; }
.gts-th-lastreply, .gts-td-lastreply { width: 140px; }
.gts-th-date, .gts-td-date { width: 140px; }
.gts-table tbody tr {
    cursor: pointer;
    transition: background .15s;
}
.gts-table tbody tr:hover {
    background: var(--soft-main-light, rgba(26,143,196,.05));
}
.gts-table tbody td {
    padding: 16px 18px;
    border-bottom: 1px solid #f8fafc;
    vertical-align: middle;
    color: var(--sec-color, #373b3f);
}
.gts-table tbody tr:last-child td { border-bottom: none; }
.gts-td-subject {
    display: flex;
    align-items: center;
    gap: 14px;
}
.gts-table-row-initial {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--main-color, #1a8fc4);
    letter-spacing: 0;
}
.gts-td-subject .gts-table-title {
    flex: 1;
    min-width: 0;
}
.gts-table-title {
    display: block;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--sec-color, #373b3f);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 400px;
}
.gts-table-id {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}
/* Unread ticket: bold title + distinct background */
.gts-ticket-unread .gts-table-title {
    font-weight: 700;
    color: var(--sec-color, #373b3f);
}
.gts-ticket-unread td {
    background: #f1f5f9;
}
.gts-ticket-unread:hover td {
    background: #e2e8f0;
}
/* Keep ticket ID aligned in subject cell */
.gts-td-subject .gts-table-id {
    margin-top: 0;
    align-self: center;
}
.gts-td-replies {
    font-weight: 700;
    color: #64748b;
    font-size: 14px;
}
.gts-td-lastreply {
    font-size: 13px;
    color: #64748b;
}
.gts-td-date {
    font-size: 13px;
    color: #94a3b8;
}
.gts-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: .05em;
    flex-shrink: 0;
}
.gts-status-new {
    background: rgba(var(--main-color-rgb, 26,143,196), .1);
    color: var(--main-color, #1a8fc4);
}
.gts-status-active {
    background: #48bb78;
    color: #fff;
}
.gts-status-closed {
    background: #ed8936;
    color: #fff;
}

/* ── Ticket Detail ── */
.gts-back-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}
.gts-back-row-actions {
    display: flex;
    gap: 8px;
}
.gts-portal .gts-back-btn,
.gts-portal button.gts-back-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 16px 24px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #fff !important;
    background: #555 !important;
    border: none !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    font-family: inherit !important;
    transition: background .15s !important;
    min-height: 0 !important;
    height: auto !important;
    width: auto !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1 !important;
    margin: 0 !important;
    box-shadow: none !important;
}
.gts-portal .gts-back-btn:hover {
    background: #444 !important;
}

/* ── Ticket Detail 2-column layout (main 70% | sidebar 30%) ── */
.gts-ticket-detail-layout {
    display: grid;
    grid-template-columns: 1fr 30%;
    gap: 24px;
    align-items: start;
    margin-top: 16px;
}
.gts-ticket-detail-main {
    min-width: 0;
}
.gts-ticket-detail-sidebar {
    position: sticky;
    top: 24px;
}
.gts-sidebar-card {
    position: relative;
    background: linear-gradient(160deg, rgba(var(--main-color-rgb, 26,143,196), .06) 0%, rgba(var(--main-color-rgb, 26,143,196), .02) 50%, #f8fafc 100%);
    border: 1.5px solid rgba(var(--main-color-rgb, 26,143,196), .12);
    border-radius: 14px;
    padding: 20px 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    overflow: hidden;
}
.gts-sidebar-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(var(--main-color-rgb, 26,143,196), .08);
    pointer-events: none;
}
.gts-sidebar-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(var(--main-color-rgb, 26,143,196), .05);
    pointer-events: none;
}
.gts-sidebar-card .gts-sidebar-card-head,
.gts-sidebar-card .gts-sidebar-card-title,
.gts-sidebar-card .gts-sidebar-ticket-title,
.gts-sidebar-card .gts-sidebar-meta,
.gts-sidebar-card .gts-sidebar-ticket-links,
.gts-sidebar-card .gts-closed-notice,
.gts-sidebar-card .gts-btn {
    position: relative;
    z-index: 1;
}
.gts-sidebar-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.gts-sidebar-card-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #94a3b8;
    margin: 0;
}
.gts-sidebar-ticket-id {
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--main-color, #1a8fc4);
}
.gts-sidebar-ticket-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--sec-color, #373b3f);
    margin: 0 0 14px;
}
.gts-sidebar-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 16px;
}
.gts-sidebar-meta .gts-status {
    margin: 0;
}
.gts-sidebar-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
}
.gts-sidebar-meta-item svg {
    flex-shrink: 0;
    color: #94a3b8;
}
.gts-sidebar-closed-notice {
    margin-bottom: 16px;
}
.gts-btn-block {
    width: 100%;
    justify-content: center;
}

/* Other active tickets card – white bg, two-row layout per link */
.gts-sidebar-other-tickets {
    margin-top: 20px;
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    text-align: left;
}
.gts-sidebar-other-tickets::before,
.gts-sidebar-other-tickets::after {
    display: none;
}
.gts-sidebar-other-tickets .gts-sidebar-ticket-links {
    list-style: none;
    margin: 0;
    padding: 0;
    padding-left: 0;
    margin-left: 0;
    text-align: left;
}
.gts-sidebar-other-tickets .gts-sidebar-ticket-links li {
    margin: 0;
    padding: 0;
}
.gts-sidebar-ticket-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    color: var(--sec-color, #373b3f);
    text-decoration: none;
}
.gts-sidebar-ticket-link:last-of-type { border-bottom: none; }
.gts-sidebar-ticket-link-row1 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}
.gts-sidebar-ticket-link-meta {
    color: #64748b;
}
.gts-sidebar-ticket-link-id {
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--main-color, #1a8fc4);
}
.gts-sidebar-ticket-link-title {
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--sec-color, #373b3f);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Ticket Header (single ticket page) – main color background ── */
.gts-ticket-header {
    margin-bottom: 24px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--main-color, #1a8fc4);
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.gts-ticket-header-inner {
    position: relative;
    padding: 28px 32px 24px;
    background: var(--main-color, #1a8fc4);
    overflow: hidden;
}
.gts-ticket-header-inner::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    pointer-events: none;
}
.gts-ticket-header-inner::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    pointer-events: none;
}
.gts-ticket-header-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.gts-ticket-id-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--main-color, #1a8fc4);
    background: #fff;
    border: none;
    border-radius: 50px;
    letter-spacing: .02em;
}
.gts-ticket-header .gts-status {
    margin: 0;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,.4);
    color: #fff;
    background: rgba(255,255,255,.18);
}
.gts-ticket-header .gts-status-new {
    background: rgba(255,255,255,.25);
    color: #fff;
}
.gts-ticket-header .gts-status-active {
    background: #48bb78;
    color: #fff;
}
.gts-ticket-header .gts-status-closed {
    background: #ed8936;
    color: #fff;
}
.gts-ticket-created-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,.95);
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50px;
}
.gts-ticket-created-badge svg {
    flex-shrink: 0;
    color: rgba(255,255,255,.85);
}
.gts-ticket-detail-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.35;
    letter-spacing: -.01em;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.gts-ticket-detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: rgba(255,255,255,.85);
    flex-wrap: wrap;
}
.gts-ticket-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.gts-ticket-meta-item svg {
    flex-shrink: 0;
    color: rgba(255,255,255,.75);
}
/* Closed notice inside main-color header */
.gts-ticket-header .gts-closed-notice {
    background: rgba(255,255,255,.95);
    border: none;
    border-radius: 12px;
    color: #166534;
    margin-top: 18px;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.gts-ticket-header .gts-closed-notice strong {
    color: #15803d;
}
.gts-ticket-header .gts-closed-notice svg {
    color: #16a34a;
}
/* ── Closed Ticket Notice (standalone) ── */
.gts-closed-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 20px;
    padding: 16px 20px;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.55;
    color: #166534;
}
.gts-closed-notice svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #16a34a;
}
.gts-closed-notice strong {
    color: #15803d;
}

/* ── Messages / Conversation ── */
.gts-messages {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 24px;
    background: #fff;
    border: 1.5px solid #f1f5f9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.gts-message {
    display: flex;
    gap: 18px;
    padding: 24px 28px;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}
.gts-message:last-child { border-bottom: none; }

/* System notice (e.g. auto-closed) – not a conversation block */
.gts-message-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    margin: 12px 0;
    background: linear-gradient(135deg, rgba(var(--main-color-rgb, 26, 143, 196), .08) 0%, rgba(var(--main-color-rgb, 26, 143, 196), .04) 100%);
    border-top: 1px solid rgba(var(--main-color-rgb, 26, 143, 196), .2);
    border-bottom: 1px solid rgba(var(--main-color-rgb, 26, 143, 196), .2);
}
.gts-message-notice-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 16px;
    color: var(--main-color, #1a8fc4);
    line-height: 1;
}
.gts-message-notice-content {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    font-style: italic;
}
.gts-message-notice-time {
    flex-shrink: 0;
    font-size: 12px;
    color: #94a3b8;
}

/* Original ticket message – distinct warm highlight (not staff blue) */
.gts-message-first {
    padding: 28px 32px;
    background: linear-gradient(135deg, #fffbeb 0%, #fefce8 100%);
    border-left: 4px solid #eab308;
    border-bottom: 2px solid #fde68a;
    box-shadow: inset 0 1px 0 0 rgba(255,255,255,.8);
}
.gts-message-first .gts-message-body {
    max-width: 100%;
}
.gts-message-first .gts-message-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--sec-color, #373b3f);
}
.gts-message-admin {
    background: linear-gradient(135deg, rgba(var(--main-color-rgb, 26,143,196), .06) 0%, rgba(var(--main-color-rgb, 26,143,196), .02) 100%);
    border-left: 4px solid var(--main-color, #1a8fc4);
}
.gts-message-customer {
    border-left: 4px solid #e2e8f0;
}
.gts-message-first.gts-message-customer {
    border-left-color: #eab308;
}
.gts-message-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #f1f5f9;
}
.gts-message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gts-message-avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #64748b;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.gts-message-avatar-admin.gts-message-avatar-initials {
    background: var(--main-color, #1a8fc4);
    border-color: rgba(var(--main-color-rgb, 26,143,196), .3);
}
.gts-message-admin .gts-message-avatar {
    border-color: rgba(var(--main-color-rgb, 26,143,196), .2);
}
.gts-message-body { flex: 1; min-width: 0; }
.gts-message-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.gts-message-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--sec-color, #373b3f);
}
.gts-message-admin .gts-message-name {
    color: var(--main-color, #1a8fc4);
}
.gts-message-time {
    font-size: 12px;
    color: #94a3b8;
}
.gts-message-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-radius: 50px;
}
.gts-badge-staff {
    background: var(--main-color, #1a8fc4);
    color: #fff;
}
.gts-badge-customer {
    background: #f1f5f9;
    color: #64748b;
}
.gts-badge-original {
    background: #b45309;
    color: #fff;
    font-size: 10px;
    padding: 4px 12px;
    letter-spacing: .05em;
    border-radius: 50px;
}
.gts-message-first .gts-message-badge.gts-badge-original {
    background: #b45309;
    color: #fff;
}
.gts-message-content {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--sec-color, #373b3f);
    word-wrap: break-word;
}
.gts-message-content p { margin: 0 0 8px; }
.gts-message-content p:last-child { margin-bottom: 0; }
.gts-message-content a { color: var(--main-color, #1a8fc4); }
.gts-message-content h1,
.gts-message-content h2,
.gts-message-content h3,
.gts-message-content h4,
.gts-message-content h5 {
    font-size: inherit !important;
    font-weight: 700 !important;
    line-height: 1.4;
    margin: 0 0 8px;
    text-decoration: none !important;
}
.gts-message-content h1:last-child,
.gts-message-content h2:last-child,
.gts-message-content h3:last-child,
.gts-message-content h4:last-child,
.gts-message-content h5:last-child { margin-bottom: 0; }
.gts-message-content pre {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    background: #f1f5f9;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.5;
    overflow-x: auto;
    margin: 8px 0;
    border: 1px solid #e2e8f0;
}
.gts-message-content pre:first-child { margin-top: 0; }
.gts-message-content pre:last-child { margin-bottom: 0; }
.gts-message-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.gts-attachment-thumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--main-color, #1a8fc4);
    text-decoration: none;
    transition: all .15s;
}
.gts-attachment-thumb:hover {
    background: rgba(var(--main-color-rgb, 26,143,196), .06);
    border-color: rgba(var(--main-color-rgb, 26,143,196), .3);
}
/* Images inside a message: fit the column, never upscaled beyond their natural size.
   Emoji keep text size even if their class was stripped by the formatting cleaner. */
.gts-message-content img {
    max-width: 100%;
    max-height: 420px;
    width: auto;
    height: auto;
    border-radius: 8px;
    vertical-align: middle;
}
.gts-message-content img.emoji,
.gts-message-content img[src*="/core/emoji/"] {
    width: 1.25em;
    height: 1.25em;
    max-height: none;
    margin: 0 .07em;
    vertical-align: -.15em;
    border-radius: 0;
}

.gts-attachment-thumb img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
}

/* ── Reply Box ── */
.gts-reply-box {
    padding: 24px 28px;
    background: #fff;
    border: 1.5px solid #f1f5f9;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.gts-reply-actions {
    justify-content: space-between;
}
.gts-reply-file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.gts-reply-file-list:empty {
    display: none;
}

/* ── Create Ticket Card ── */
.gts-create-card {
    background: #fff;
    border: 1.5px solid #f1f5f9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.gts-create-section {
    padding: 20px 30px;
}
.gts-create-divider {
    height: 1px;
    background: #f1f5f9;
}
.gts-create-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}
.gts-create-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--main-color, #1a8fc4);
    border-radius: 50%;
    flex-shrink: 0;
}
.gts-create-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--sec-color, #373b3f);
}
.gts-create-section-desc {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 2px;
}

/* ── Rich Text Editor ── */
.gts-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}
.gts-portal .gts-toolbar-btn,
.gts-portal button.gts-toolbar-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    font-size: 14px !important;
    color: #64748b !important;
    background: transparent !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all .15s !important;
    min-height: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1 !important;
    font-family: inherit !important;
}
.gts-portal .gts-toolbar-btn:hover {
    background: #e2e8f0 !important;
    color: var(--sec-color, #373b3f) !important;
}
.gts-toolbar-sep {
    width: 1px;
    height: 20px;
    background: #e2e8f0;
    margin: 0 6px;
}
.gts-editor {
    width: 100%;
    min-height: 160px;
    padding: 16px 20px;
    font-size: 15px;
    font-family: inherit;
    color: var(--sec-color, #373b3f);
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    outline: none;
    line-height: 1.7;
    overflow-y: auto;
}
.gts-editor:focus {
    border-color: var(--main-color, #1a8fc4);
}
.gts-editor:empty::before {
    content: attr(data-placeholder);
    color: #94a3b8;
    pointer-events: none;
}
.gts-editor-sm {
    min-height: 100px;
}
.gts-editor p { margin: 0 0 8px; }
.gts-editor ul { margin: 0 0 8px 20px; padding: 0; }
.gts-editor a { color: var(--main-color, #1a8fc4); }
.gts-editor pre {
    background: #f1f5f9;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 13px;
    overflow-x: auto;
    margin: 8px 0;
    color: var(--sec-color, #373b3f);
}

/* ── Forms ── */
.gts-form {
    max-width: 720px;
}
.gts-form-group {
    margin-bottom: 22px;
}
.gts-form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--sec-color, #373b3f);
    margin-bottom: 10px;
}
.gts-required { color: #ef4444; }
.gts-hint { font-weight: 400; color: #94a3b8; font-size: 13px; }
.gts-form-group input[type="text"],
.gts-form-group textarea,
.gts-form-group select {
    width: 100%;
    padding: 20px;
    font-size: 15px;
    font-family: inherit;
    color: var(--sec-color, #373b3f);
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color .2s;
    outline: none;
}
.gts-form-group input:focus,
.gts-form-group textarea:focus,
.gts-form-group select:focus {
    border-color: var(--main-color, #1a8fc4);
}
.gts-form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.gts-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
}

/* ── Upload ── */
.gts-upload-area {
    position: relative;
    border: 1.5px dashed #d0d5dd;
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    transition: all .2s;
    background: #fafbfc;
    max-width: 360px;
}
.gts-upload-area:hover,
.gts-upload-area.gts-drag-over {
    border-color: var(--main-color, #1a8fc4);
    background: var(--soft-main-light, rgba(26,143,196,.08));
    border-style: solid;
}
.gts-upload-small {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}
.gts-upload-small:hover,
.gts-upload-small.gts-drag-over {
    border: none !important;
    background: transparent !important;
}
.gts-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.gts-upload-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #94a3b8;
    font-size: 13px;
}
.gts-upload-placeholder svg { color: #cbd5e1; }
.gts-upload-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.gts-upload-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--sec-color, #373b3f);
}
.gts-upload-remove {
    display: inline-flex;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #ef4444;
    font-size: 16px;
    line-height: 1;
    opacity: .7;
    transition: opacity .15s;
}
.gts-upload-remove:hover { opacity: 1; }

/* ── Pagination ── */
.gts-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}
.gts-portal .gts-page-btn,
.gts-portal button.gts-page-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    background: #fff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all .15s !important;
    font-family: inherit !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1 !important;
    margin: 0 !important;
    box-shadow: none !important;
}
.gts-portal .gts-page-btn:hover {
    border-color: var(--main-color, #1a8fc4) !important;
    color: var(--main-color, #1a8fc4) !important;
}
.gts-portal .gts-page-btn.gts-active {
    background: var(--main-color, #1a8fc4) !important;
    color: #fff !important;
    border-color: var(--main-color, #1a8fc4) !important;
    box-shadow: 0 2px 8px rgba(var(--main-color-rgb, 26,143,196), .25) !important;
}

/* ── Utilities ── */
.gts-hidden { display: none !important; }
.gts-loading {
    text-align: center;
    padding: 48px;
    color: #94a3b8;
    font-size: 14px;
}
.gts-ticket-header .gts-loading {
    color: rgba(255,255,255,.95);
    padding: 32px;
}
.gts-empty {
    text-align: center;
    padding: 64px 24px;
    color: #94a3b8;
}
.gts-empty svg { margin-bottom: 16px; color: #cbd5e1; }
.gts-empty p { margin: 0; font-size: 15px; }
.gts-toast {
    position: fixed;
    bottom: calc(84px + var(--gpl-top-lift, 0px)); /* 7.7.1: just above the back-to-top button */
    right: 24px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--sec-color, #373b3f);
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
    z-index: 99999;
    animation: gtsSlideUp .3s ease;
}
.gts-toast-success { background: #16a34a; }
.gts-toast-error { background: #ef4444; }

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

/* ── Responsive ── */
@media (max-width: 768px) {
    .gts-gate-inner { grid-template-columns: 1fr; }
    .gts-gate-left { padding: 24px 20px; }
    .gts-gate-left h3 { font-size: 18px; }
    .gts-gate-left h3 br { display: none; }
    .gts-gate-right { padding: 20px 18px; }
    .gts-gate-text { font-size: 14px; }
    .gts-gate-actions { flex-direction: column; }
    .gts-gate-check-all, .gts-gate-proceed { width: 100%; justify-content: center; }

    .gts-header { flex-direction: column; align-items: flex-start; gap: 14px; }
    .gts-filters { width: 100%; }
    .gts-filter-btn { flex: 1; justify-content: center; }
    .gts-th-replies, .gts-td-replies,
    .gts-th-lastreply, .gts-td-lastreply,
    .gts-th-date, .gts-td-date { display: none; }
    .gts-table-title { max-width: 200px; }
    .gts-ticket-detail-meta { flex-direction: column; gap: 6px; }
    .gts-message { flex-direction: column; gap: 12px; padding: 18px 20px; }
    .gts-message-content, .gts-message-attachments { padding-left: 0; }
    .gts-reply-actions { flex-direction: column; }
    .gts-form-actions { flex-direction: column; }
    .gts-btn { width: 100%; justify-content: center; }
    .gts-ticket-header-inner { padding: 22px 20px 20px; }
    .gts-ticket-detail-title { font-size: 18px; }
    .gts-reply-box { padding: 20px; }
    .gts-ticket-detail-layout { grid-template-columns: 1fr; gap: 20px; }
    .gts-ticket-detail-sidebar { position: static; }
}

/* Blocked user message (portal) — bluish theme + bg elements */
.gts-portal.gts-blocked {
    padding: 32px 24px;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gts-blocked-message {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(var(--main-color-rgb, 26, 143, 196), .12) 0%, rgba(var(--main-color-rgb, 26, 143, 196), .04) 50%, #eef6fc 100%);
    border: 1px solid rgba(var(--main-color-rgb, 26, 143, 196), .25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
}
.gts-blocked-message::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(var(--main-color-rgb, 26, 143, 196), .08);
    pointer-events: none;
}
.gts-blocked-message::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(var(--main-color-rgb, 26, 143, 196), .06);
    pointer-events: none;
}
.gts-blocked-inner {
    position: relative;
    z-index: 1;
    padding: 32px 36px;
    text-align: center;
}
.gts-blocked-inner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    margin: -100px 0 0 -100px;
    border-radius: 50%;
    background: rgba(var(--main-color-rgb, 26, 143, 196), .04);
    pointer-events: none;
}
.gts-blocked-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.gts-blocked-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(var(--main-color-rgb, 26, 143, 196), .12);
    color: var(--main-color, #1a8fc4);
}
.gts-blocked-icon svg {
    flex-shrink: 0;
}
.gts-blocked-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--sec-color, #373b3f);
    letter-spacing: -.02em;
}
.gts-blocked-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #64748b;
}
.gts-blocked-we-back {
    margin: 20px 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sec-color, #373b3f);
}
.gts-blocked-countdown {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 0;
}
.gts-blocked-countdown.gts-hidden { display: none !important; }
.gts-blocked-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 64px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid rgba(var(--main-color-rgb, 26, 143, 196), .2);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}
.gts-blocked-num {
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--main-color, #1a8fc4);
    line-height: 1.2;
}
.gts-blocked-label {
    font-size: 11px;
    text-transform: lowercase;
    color: #94a3b8;
    margin-top: 4px;
}
.gts-blocked-refresh {
    margin: 16px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--main-color, #1a8fc4);
}
.gts-blocked-refresh.gts-hidden { display: none !important; }
.gts-app.gts-blocked {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 24px;
}
.gts-app.gts-blocked .gts-blocked-message {
    margin: 0;
}

@media (max-width: 768px) {
    .gts-toast { left: 16px; right: 16px; bottom: calc(68px + var(--gpl-top-lift, 0px)); }
}
