/* Loja de gemas — cabeçalho padrão do site + slots compactos */
.gs-head { overflow-x: hidden; }
.gs-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}
.gs-head-copy { min-width: 0; flex: 1 1 280px; }
.gs-head-copy h1 { margin: 0 0 8px; }
.gs-head-copy .sub { margin: 0; max-width: 46ch; }
.gs-head-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}
.gs-history-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.gs-history-badge {
    min-width: 18px; height: 18px; border-radius: 999px;
    background: #fff; color: var(--accent-deep, #9a3412);
    font-size: 11px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 6px;
}
.gs-history-badge.is-empty { display: none; }
.gs-balance-sync { display: none !important; }

.gs-shop { padding-top: 28px; padding-bottom: 64px; overflow-x: hidden; }

.gs-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}
.gs-tab {
    appearance: none;
    border: 1px solid var(--line, #e5e7eb);
    background: #fff;
    color: var(--muted, #6b7280);
    border-radius: 999px;
    padding: 7px 12px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.gs-tab span { color: #9ca3af; font-size: 12px; }
.gs-tab.is-on {
    color: #fff;
    background: var(--accent, #e8590c);
    border-color: transparent;
}
.gs-tab.is-on span { color: rgba(255,255,255,.8); }

.gs-board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 12px;
}

.gs-slot {
    --gs-accent: #e8590c;
    --gs-gold: #d97706;
    position: relative;
    min-width: 0;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 14px;
    background: #fff;
    color: #111827;
    padding: 10px 10px 11px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.gs-slot:hover {
    transform: translateY(-2px);
    border-color: #f0c4a8;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}
.gs-slot.is-hidden { display: none; }
.gs-slot-media {
    position: relative;
    height: 78px;
    border-radius: 10px;
    background:
        radial-gradient(circle at 50% 30%, rgba(232, 89, 12, .08), transparent 55%),
        #f8fafc;
    border: 1px solid #eef2f7;
    display: grid;
    place-items: center;
}
.gs-slot-media img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}
.gs-slot-fallback { color: var(--gs-accent); font-size: 22px; }
.gs-slot-qty,
.gs-slot-extra {
    position: absolute;
    top: 6px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    line-height: 1.3;
}
.gs-slot-qty { right: 6px; background: #111827; color: #fff; }
.gs-slot-extra { left: 6px; background: #fff7ed; color: var(--gs-accent); border: 1px solid #fed7aa; }
.gs-slot h3 {
    margin: 0;
    font-size: 12.5px;
    font-weight: 650;
    letter-spacing: -.01em;
    line-height: 1.25;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}
.gs-slot-desc {
    margin: 0;
    color: #9ca3af;
    font-size: 10px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}
.gs-slot-desc.is-empty { visibility: hidden; }
.gs-slot-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: auto;
    padding-top: 4px;
}
.gs-price {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    font-weight: 700;
    color: var(--gs-gold);
}
.gs-price .icon-gem,
.icon-gem {
    width: 14px;
    height: 14px;
    display: block;
    flex: 0 0 auto;
}
.gs-slot-foot.is-short .gs-price { display: none; }
.gs-slot-foot.is-short .gs-slot-btn {
    flex: 1 1 auto;
    justify-content: center;
    width: 100%;
}
.gs-slot-btn {
    appearance: none;
    border: 0;
    border-radius: 8px;
    padding: 6px 9px;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: none;
    background: linear-gradient(180deg, #ff7a2f, var(--gs-accent));
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.gs-slot-btn:hover { filter: brightness(1.06); }
.gs-slot-btn:disabled,
.gs-slot-btn.is-short {
    background: #eef1f5;
    color: #6b7280;
    cursor: not-allowed;
    filter: none;
}
.gs-slot-lock { flex: 0 0 auto; opacity: .85; }

.gs-earn-note {
    margin-top: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #f0c4a8;
    border-radius: 14px;
    background: #fff7f1;
    color: #3f3f46;
}
.gs-earn-icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #ffe8d8;
    color: var(--accent, #e8590c);
}
.gs-earn-note p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
}
.gs-earn-note strong {
    color: var(--accent-deep, #9a3412);
    font-weight: 800;
}
.gs-earn-sep {
    margin: 0 .35em;
    color: #c4c4c4;
}

.gs-modal { max-width: 480px; }
.gs-modal-head-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}
.gs-modal-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    border: 1px solid var(--line, #e5e7eb);
    background: #f8fafc;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
}
.gs-modal-icon-wrap img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.gs-modal-icon-fallback { color: var(--accent, #e8590c); font-size: 18px; }
.gs-modal-desc {
    margin: 4px 0 0;
    color: var(--muted, #6b7280);
    font-size: 13px;
    line-height: 1.35;
}
.gs-modal-lead {
    margin: 0 0 12px;
    color: var(--muted, #6b7280);
    font-size: 14px;
    line-height: 1.45;
}
.gs-server-pick {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.gs-server-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.gs-server-option:hover { border-color: #f0c4a8; }
.gs-server-option:has(input:checked) {
    border-color: #f0c4a8;
    background: #fff7f1;
    box-shadow: 0 0 0 1px rgba(232, 89, 12, .18);
}
.gs-server-option.is-preferred:has(input:checked) {
    border-color: #f0c4a8;
}
.gs-server-option.is-disabled {
    opacity: .55;
    cursor: not-allowed;
    background: #f8fafc;
}
.gs-server-option input {
    margin-top: 3px;
    accent-color: var(--accent, #e8590c);
}
.gs-server-option-body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.gs-server-option-body strong {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}
.gs-server-compat {
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
}
.gs-server-compat.is-ok { color: #146c3a; }
.gs-server-compat.is-bad { color: #a32020; }
.gs-server-hint {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--muted, #6b7280);
    line-height: 1.4;
}
.gs-modal .v3-price {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gs-history-modal {
    max-width: min(720px, calc(100vw - 32px));
    width: 100%;
    max-height: min(88vh, 820px);
}
.gs-history-body { max-height: min(72vh, 680px); }
.gs-history-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gs-history-item {
    border: 1px solid var(--line, #e5e7eb);
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.gs-history-main {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.gs-history-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    border: 1px solid #eef2f7;
    background: #f8fafc;
    object-fit: contain;
    padding: 6px;
    flex: 0 0 auto;
    box-sizing: border-box;
}
.gs-history-icon.is-fallback {
    display: grid;
    place-items: center;
    color: var(--accent, #e8590c);
    font-size: 18px;
}
.gs-history-copy { min-width: 0; flex: 1; }
.gs-history-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}
.gs-history-copy strong {
    display: block;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.25;
}
.gs-history-copy > em {
    display: block;
    font-style: normal;
    color: var(--muted, #6b7280);
    font-size: 12px;
    margin-top: 4px;
}
.gs-history-chip {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
    border-radius: 999px;
    padding: 4px 8px;
}
.gs-history-item.is-pending .gs-history-chip,
.gs-history-item.is-processing .gs-history-chip { background: #fff4ea; color: var(--accent-deep, #9a3412); }
.gs-history-item.is-delivered .gs-history-chip { background: #eaf8ef; color: #146c3a; }
.gs-history-item.is-refunded .gs-history-chip { background: #f3f4f6; color: #4b5563; }
.gs-history-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}
.gs-history-foot b {
    color: var(--accent-deep, #9a3412);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.gs-history-empty { color: var(--muted); font-size: 14px; padding: 8px 0 4px; text-align: center; }
.gs-history-item .gs-steps { margin: 10px 0 0; grid-template-columns: 1fr; gap: 6px; }
.gs-history-item .gs-step { min-height: 0; padding: 7px 8px; }
.gs-btn-sm { padding: 6px 10px !important; font-size: 12px !important; }

.gs-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
}
.gs-step {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 12px;
    padding: 8px 10px;
}
.gs-step b {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
    background: #c5ccd6;
}
.gs-step span { font-size: 12px; line-height: 1.35; color: var(--muted); }
.gs-step.is-wait { opacity: .7; }
.gs-step.is-active { border-color: #f0c4a8; background: #fff7f1; }
.gs-step.is-active b { background: var(--accent); }
.gs-step.is-active span { color: var(--accent-deep); font-weight: 700; }
.gs-step.is-done { border-color: #cde8d4; background: #f3fbf5; }
.gs-step.is-done b { background: #1f9d55; }
.gs-step.is-done span { color: #146c3a; }
.gs-step.is-fail { border-color: #f3c2c2; background: #fff5f5; }
.gs-step.is-fail b { background: #d64545; }
.gs-step.is-fail span { color: #a32020; font-weight: 700; }

@media (max-width: 640px) {
    .gs-head-actions { width: 100%; }
    .gs-board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .gs-slot-media { height: 68px; }
    .gs-slot-media img { width: 44px; height: 44px; }
    .gs-history-item .gs-steps { grid-template-columns: 1fr; }
}
