/* =========================================================
   1. OUTER WRAPPER & ALIGNMENT
   ========================================================= */
.gstb-outer-wrapper {
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    transition: all 0.2s ease-in-out;
}

/* Explicit Flexbox Alignment Controls */
.gstb-outer-wrapper.gstb-align-center {
    display: flex !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 24px;
    margin-bottom: 24px;
    align-items: center;
    justify-content: center;
}

.gstb-outer-wrapper.gstb-align-left {
    display: flex !important;
    margin-right: auto !important;
    margin-left: 0 !important;
    margin-top: 24px;
    margin-bottom: 24px;
    align-items: center;
    justify-content: center;
}

.gstb-outer-wrapper.gstb-align-right {
    display: flex !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    margin-top: 24px;
    margin-bottom: 24px;
    align-items: center;
    justify-content: center;
}

/* Outer Shapes */
.gstb-outer-shape-square {
    border-radius: 0 !important;
}

.gstb-outer-shape-rounded {
    border-radius: 24px;
}

.gstb-outer-shape-pill {
    border-radius: 9999px;
    padding-left: 48px !important;
    padding-right: 48px !important;
}

/* FULL CIRCLE: Fluid Responsive 1:1 Aspect Ratio */
.gstb-outer-shape-full-circle {
    border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    flex-shrink: 0;
    max-width: 92vw !important;
    box-sizing: border-box !important;
}

/* Outer Drop Shadows */
.gstb-outer-shadow-none {
    box-shadow: none;
}
.gstb-outer-shadow-subtle {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}
.gstb-outer-shadow-medium {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
}
.gstb-outer-shadow-deep {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25), 0 12px 16px -8px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   2. CONTENT LAYOUT & FLUID SCALING
   ========================================================= */
.gstb-content-inner {
    width: 84%;
    max-width: 84%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2vw, 16px);
    z-index: 1;
}

.gstb-count-container {
    display: flex;
    align-items: baseline;
    gap: clamp(6px, 1.5vw, 10px);
    justify-content: center;
    flex-wrap: wrap;
    line-height: 1;
}

.gstb-count-label {
    font-size: clamp(0.85rem, 2.2vw, 1.15rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.9;
}

.gstb-count-number {
    font-size: clamp(1.8rem, 5vw, 2.75rem);
    font-weight: 800;
}

/* =========================================================
   3. TICKER TRACK & SHADOWS
   ========================================================= */
.gstb-ticker-track-box {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 9999px;
    box-sizing: border-box;
    padding: clamp(6px, 1.5vw, 10px) 0;
    transition: box-shadow 0.2s ease-in-out;
}

/* Ticker Box Outer Drop Shadows */
.gstb-ticker-shadow-none { box-shadow: none; }
.gstb-ticker-shadow-subtle { box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); }
.gstb-ticker-shadow-medium { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); }
.gstb-ticker-shadow-deep { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); }

/* Ticker Box Inset / Inner Shadows */
.gstb-ticker-innershadow-subtle {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08), inset 0 -1px 2px rgba(0, 0, 0, 0.04) !important;
}
.gstb-ticker-innershadow-medium {
    box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.16), inset 0 -2px 4px rgba(0, 0, 0, 0.06) !important;
}
.gstb-ticker-innershadow-deep {
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.26), inset 0 -3px 6px rgba(0, 0, 0, 0.12) !important;
}

/* Combined Inset + Outer Drop Shadow Support */
.gstb-ticker-shadow-subtle.gstb-ticker-innershadow-subtle {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), inset 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}
.gstb-ticker-shadow-subtle.gstb-ticker-innershadow-medium {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), inset 0 3px 7px rgba(0, 0, 0, 0.16) !important;
}
.gstb-ticker-shadow-subtle.gstb-ticker-innershadow-deep {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), inset 0 4px 12px rgba(0, 0, 0, 0.26) !important;
}
.gstb-ticker-shadow-medium.gstb-ticker-innershadow-subtle {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), inset 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}
.gstb-ticker-shadow-medium.gstb-ticker-innershadow-medium {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), inset 0 3px 7px rgba(0, 0, 0, 0.16) !important;
}
.gstb-ticker-shadow-medium.gstb-ticker-innershadow-deep {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), inset 0 4px 12px rgba(0, 0, 0, 0.26) !important;
}
.gstb-ticker-shadow-deep.gstb-ticker-innershadow-subtle {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}
.gstb-ticker-shadow-deep.gstb-ticker-innershadow-medium {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), inset 0 3px 7px rgba(0, 0, 0, 0.16) !important;
}
.gstb-ticker-shadow-deep.gstb-ticker-innershadow-deep {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), inset 0 4px 12px rgba(0, 0, 0, 0.26) !important;
}

/* =========================================================
   4. TICKER TEXT DROP SHADOWS
   ========================================================= */
.gstb-ticker-textshadow-none .gstb-ticker-name,
.gstb-ticker-textshadow-none .gstb-bullet {
    text-shadow: none;
}

.gstb-ticker-textshadow-subtle .gstb-ticker-name,
.gstb-ticker-textshadow-subtle .gstb-bullet {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.gstb-ticker-textshadow-medium .gstb-ticker-name,
.gstb-ticker-textshadow-medium .gstb-bullet {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.32);
}

.gstb-ticker-textshadow-glow .gstb-ticker-name,
.gstb-ticker-textshadow-glow .gstb-bullet {
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.22), 0 1px 3px rgba(0, 0, 0, 0.28);
}

.gstb-ticker-wrapper {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.gstb-ticker-track {
    display: flex;
    flex-shrink: 0;
    min-width: 100%;
    animation: gstbScroll linear infinite;
}

.gstb-ticker-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.gstb-ticker-name {
    font-weight: 600;
    font-size: clamp(0.85rem, 2vw, 1rem);
    padding: 0 clamp(4px, 1vw, 8px);
    transition: text-shadow 0.2s ease-in-out;
}

.gstb-bullet {
    opacity: 0.4;
    padding: 0 clamp(6px, 1.5vw, 10px);
    font-size: 1.1rem;
    transition: text-shadow 0.2s ease-in-out;
}

@keyframes gstbScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.gstb-ticker-content.preview-mode {
    padding: 4px 16px;
    text-align: center;
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.85;
}