/* ─── GLH Avatar Scroll — Frontend CSS ────────────────────────── */

/* ── Bar container ── */
.gas-scroll-bar {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 9999;
    box-sizing: border-box;
    /* Subtle separator lines */
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Top bar — fixed above everything */
.gas-position-top {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
}

/* Below logo bar */
.gas-position-below-logo {
    position: relative;
}

/* Inline / shortcode */
.gas-position-inline {
    border-radius: 10px;
    margin: 12px 0;
}

/* Preview (admin) */
.gas-position-preview {
    border-radius: 10px;
    min-height: 54px;
}

/* ── Scrolling track ── */
.gas-track-outer {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.gas-track {
    display: flex;
    align-items: center;
    width: max-content;
    will-change: transform;
    animation: gasScroll var(--gas-speed, 30s) linear infinite;
    padding: 6px 0;
}

.gas-track:hover {
    animation-play-state: var(--gas-pause, running);
}

@keyframes gasScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Individual avatar item ── */
.gas-item {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease;
    cursor: pointer;
}

.gas-item:hover {
    transform: scale(1.15);
    filter: brightness(1.1);
    z-index: 10;
}

.gas-item img {
    display: block;
    border-radius: 50%;
    object-fit: cover;
}

/* ── Country flag ── */
.gas-flag {
    position: absolute;
    bottom: -3px;
    left: -3px;
    font-size: 11px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
    pointer-events: none;
    z-index: 2;
}

/* ── Verification badge ── */
.gas-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #c9960c;
    color: #fff;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    font-weight: 800;
    border: 1.5px solid #fff;
    pointer-events: none;
    z-index: 3;
    line-height: 1;
}

/* ── Tooltip on hover (CSS only) ── */
.gas-item::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10,31,68,0.95);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 100;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.gas-item:hover::after {
    opacity: 1;
}

/* ── Fade edges for smooth feel ── */
.gas-scroll-bar::before,
.gas-scroll-bar::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 32px;
    z-index: 5;
    pointer-events: none;
}

.gas-scroll-bar::before {
    left: 0;
    background: linear-gradient(to right, var(--gas-bg, #0a1f44), transparent);
}

.gas-scroll-bar::after {
    right: 0;
    background: linear-gradient(to left, var(--gas-bg, #0a1f44), transparent);
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .gas-flag { font-size: 9px; }
    .gas-badge { width: 12px; height: 12px; font-size: 6px; }
}

/* ═══════════════════════════════════════════════════════
   SINGLE USER — no animation, centred
   ═══════════════════════════════════════════════════════ */
.gas-single-user .gas-track {
    animation: none !important;
    justify-content: center;
    width: 100% !important;
}
.gas-single-user .gas-track-outer {
    justify-content: center;
}

/* ═══════════════════════════════════════════════════════
   SUBSCRIBE BUTTON (shortcode [gas_subscribe_btn])
   ═══════════════════════════════════════════════════════ */
.gas-sub-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #0a1f44 0%, #1a3a6e 100%);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
    box-shadow: 0 3px 12px rgba(10,31,68,0.3);
}
.gas-sub-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(10,31,68,0.35); }
.gas-sub-cta-btn--active { background: linear-gradient(135deg,#9a6e05,#C9A84C); }

/* ═══════════════════════════════════════════════════════
   SUBSCRIBE MODAL
   ═══════════════════════════════════════════════════════ */
.gas-modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.52);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.gas-modal-box {
    background: #fff;
    border-radius: 22px;
    width: 100%;
    max-width: 390px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 26px 22px 22px;
    position: relative;
    box-shadow: 0 24px 80px rgba(0,0,0,0.35);
    animation: gas-pop 0.28s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes gas-pop {
    from { transform: scale(0.84) translateY(20px); opacity: 0; }
    to   { transform: scale(1)    translateY(0);    opacity: 1; }
}
.gas-modal-x {
    position: absolute; top: 14px; right: 16px;
    background: none; border: none;
    font-size: 26px; line-height: 1;
    color: #bbb; cursor: pointer; padding: 0;
    transition: color 0.15s;
}
.gas-modal-x:hover { color: #333; }
.gas-modal-hd { text-align: center; margin-bottom: 16px; }
.gas-modal-crown { font-size: 34px; display: block; margin-bottom: 5px; }
.gas-modal-hd h2 { font-size: 18px; font-weight: 800; color: #0a1f44; margin: 0 0 5px; }
.gas-modal-hd p  { font-size: 12px; color: #999; margin: 0; }
.gas-bal-bar {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    background: #f8f9ff; border: 1.5px solid #e8eaf6;
    border-radius: 9px; padding: 9px 13px;
    font-size: 12px; color: #555; margin-bottom: 14px;
}
.gas-bal-bar strong { color: #0a1f44; font-size: 13px; }
.gas-topup-link { margin-left: auto; font-size: 11px; font-weight: 700; color: #C9A84C; text-decoration: none; }
.gas-topup-link:hover { text-decoration: underline; }
.gas-feat-notice {
    display: flex; align-items: center; gap: 7px;
    background: #fffbea; border: 1.5px solid #f6d860;
    border-radius: 9px; padding: 9px 13px;
    font-size: 12px; color: #6b5900; margin-bottom: 13px;
}
.gas-feat-notice strong { color: #9a6e05; }
.gas-plan-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 14px; }
.gas-plan-opt {
    border: 2px solid #e8e8e8; border-radius: 12px;
    padding: 13px 9px; cursor: pointer; text-align: center;
    transition: all 0.2s; background: #fafafa; position: relative;
}
.gas-plan-opt:hover { border-color: #C9A84C; background: #fdf6e3; }
.gas-plan-opt.selected { border-color: #0a1f44; background: #0a1f44; color: #fff; }
.gas-plan-opt-lbl   { font-size: 11px; font-weight: 800; display: block; margin-bottom: 3px; }
.gas-plan-opt-price { font-size: 16px; font-weight: 900; display: block; color: #0a1f44; line-height: 1.1; }
.gas-plan-opt.selected .gas-plan-opt-price { color: #C9A84C; }
.gas-plan-opt-days  { font-size: 9px; color: #aaa; display: block; margin-top: 3px; }
.gas-plan-opt.selected .gas-plan-opt-days { color: rgba(255,255,255,0.55); }
.gas-plan-opt-save  { position: absolute; top: -1px; right: -1px; background: #1a7f3c; color: #fff; font-size: 8px; font-weight: 800; padding: 2px 7px; border-radius: 0 11px 0 8px; }
.gas-merr { background: #fff0f0; border: 1.5px solid #fcc; border-radius: 9px; padding: 9px 13px; font-size: 12px; color: #c0392b; margin-bottom: 13px; line-height: 1.5; }
.gas-pay-btn {
    width: 100%; padding: 13px;
    background: linear-gradient(135deg,#0a1f44,#1a3a6e);
    color: #fff; border: none; border-radius: 12px;
    font-size: 14px; font-weight: 700; cursor: pointer;
    font-family: inherit; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 7px;
}
.gas-pay-btn:hover:not(:disabled) { background: linear-gradient(135deg,#122b5e,#1f4a8c); }
.gas-pay-btn:disabled { opacity: 0.42; cursor: not-allowed; }
.gas-pay-btn.gas-pay-gold { background: linear-gradient(135deg,#9a6e05,#C9A84C); }
.gas-msuccess { text-align: center; padding: 8px 0; }
.gas-msuccess-icon { font-size: 48px; margin-bottom: 8px; }
.gas-msuccess h3 { font-size: 18px; font-weight: 800; color: #0a1f44; margin: 0 0 7px; }
.gas-msuccess p  { font-size: 12px; color: #666; margin: 0 0 6px; }
