body {
    background-color: #070707;
    color: #ffffff;
    overflow-x: hidden;
}

.gold-gradient-text {
    background: linear-gradient(135deg, #fff4cc 0%, #eeae00 45%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-panel {
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(238, 174, 0, 0.12);
}

.hover-gold-border {
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.1s ease-out;
    transform-style: preserve-3d;
}

.hover-gold-border:hover {
    border-color: rgba(238, 174, 0, 0.5);
    box-shadow: 0 0 30px rgba(238, 174, 0, 0.15);
}

/* Page 02 (Casino): accent #6BBBE4 — overrides gold-tinted shared utilities */
#page-casino .glass-panel {
    border-color: rgba(107, 187, 228, 0.12);
}

/* Industry Roulette widget — stronger cyan frame on the glass panel */
#page-casino .glass-panel.rl-industry-roulette {
    border-width: 2px;
    border-color: rgba(107, 187, 228, 0.5);
}

#page-casino .hover-gold-border:hover {
    border-color: rgba(107, 187, 228, 0.5);
    box-shadow: 0 0 30px rgba(107, 187, 228, 0.15);
}

#page-casino .border-text {
    -webkit-text-stroke: 1px #6BBBE4;
}

/* Casino flip cards - premium UX */
.casino-flip-card {
    perspective: 1200px;
    min-height: 180px;
}

.casino-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 180px;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.casino-flip-card.flipped .casino-flip-inner {
    transform: rotateY(180deg);
}

.casino-flip-front,
.casino-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 0.5rem;
    overflow: hidden;
}

.casino-flip-front {
    background: linear-gradient(145deg, #0f0f0f 0%, #0a0a0a 100%);
    border: 1px solid rgba(37, 99, 235, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
    cursor: pointer;
}

.casino-flip-front::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563EB, transparent);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.casino-flip-card:hover .casino-flip-front::after,
.casino-flip-card.flipped .casino-flip-front::after {
    width: 100%;
}

.casino-flip-front:hover {
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.08);
}

.casino-flip-back {
    transform: rotateY(180deg);
    background: linear-gradient(145deg, #0a0a0a 0%, #050505 100%);
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
}

.casino-flip-back:hover {
    border-color: rgba(37, 99, 235, 0.35);
}

.casino-flip-front h4 {
    position: relative;
    padding-bottom: 0.5rem;
}

.casino-flip-hint {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(37, 99, 235, 0.6);
    margin-top: 0.5rem;
}

/* Sportsbook parameter flip cards - premium UX, green accent, distinct design */
.sb-flip-card {
    perspective: 1400px;
    min-height: 160px;
}

.sb-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 160px;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
}

.sb-flip-card.flipped .sb-flip-inner {
    transform: rotateY(180deg);
}

.sb-flip-front,
.sb-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 0.75rem;
    overflow: hidden;
}

.sb-flip-front {
    background: linear-gradient(160deg, #051005 0%, #030803 50%, #020602 100%);
    border: 1px solid rgba(74, 222, 128, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.25rem;
    cursor: pointer;
}

.sb-flip-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #4ade80, transparent);
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sb-flip-card:hover .sb-flip-front::before,
.sb-flip-card.flipped .sb-flip-front::before {
    height: 100%;
}

.sb-flip-front:hover {
    border-color: rgba(74, 222, 128, 0.35);
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.08);
}

.sb-flip-back {
    transform: rotateY(180deg);
    background: linear-gradient(160deg, #030803 0%, #020602 100%);
    border: 1px solid rgba(74, 222, 128, 0.25);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
}

.sb-flip-back:hover {
    border-color: rgba(74, 222, 128, 0.4);
}

.sb-flip-front h4 {
    position: relative;
    padding-bottom: 0.25rem;
}

.sb-flip-hint {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(74, 222, 128, 0.5);
    margin-top: 0.5rem;
}

/* Services page flip cards - premium UX, gold accent, distinct from casino/sportsbook */
.svc-flip-card {
    perspective: 1500px;
    min-height: 220px;
}

.svc-flip-card.svc-flip-large {
    min-height: 280px;
}

.svc-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

.svc-flip-card.flipped .svc-flip-inner {
    transform: rotateY(180deg);
}

.svc-flip-front,
.svc-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 1rem;
    overflow: hidden;
}

.svc-flip-front {
    background: linear-gradient(165deg, #0c0c0c 0%, #080808 40%, #050505 100%);
    border: 1px solid rgba(37, 99, 235, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.75rem;
    cursor: pointer;
}

.svc-flip-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563EB, rgba(37, 99, 235, 0.4));
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.svc-flip-front::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 2px;
    height: 0;
    background: linear-gradient(0deg, #2563EB, rgba(37, 99, 235, 0.4));
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.svc-flip-card:hover .svc-flip-front::before,
.svc-flip-card.flipped .svc-flip-front::before {
    width: 100%;
}

.svc-flip-card:hover .svc-flip-front::after,
.svc-flip-card.flipped .svc-flip-front::after {
    height: 100%;
}

.svc-flip-front:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.svc-flip-back {
    transform: rotateY(180deg);
    background: linear-gradient(165deg, #080808 0%, #050505 100%);
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
}

.svc-flip-back:hover {
    border-color: rgba(37, 99, 235, 0.35);
}

.svc-flip-front .svc-num {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: rgba(37, 99, 235, 0.7);
    margin-bottom: 0.5rem;
}

.svc-flip-hint {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(37, 99, 235, 0.5);
    margin-top: 0.75rem;
}

/* Canvas backgrounds */
.canvas-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.content-layer {
    position: relative;
    z-index: 10;
}

/* Page transitions */
.page-view {
    display: none;
    opacity: 0;
}

.page-view.active {
    display: block;
}

/* Hide scrollbar for clean aesthetic */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #070707;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563EB;
}

/* Custom Scrollbar for sidebars */
.scrollbar-custom::-webkit-scrollbar {
    width: 6px;
}

.scrollbar-custom::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.scrollbar-custom::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.3);
    border-radius: 4px;
}

.scrollbar-custom::-webkit-scrollbar-thumb:hover {
    background: rgba(37, 99, 235, 0.6);
}

/* Custom Interactive Elements */
#cursor-glow {
    transition: top 0.1s ease-out, left 0.1s ease-out;
}

@keyframes rippleEffect {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
    }

    100% {
        width: 150px;
        height: 150px;
        opacity: 0;
        border-width: 2px;
    }
}

.animate-ripple {
    animation: rippleEffect 0.6s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

@keyframes shimmerBtn {
    0% {
        transform: translateX(-100%) skewX(-15deg);
    }

    100% {
        transform: translateX(200%) skewX(-15deg);
    }
}

.shimmer-element {
    animation: shimmerBtn 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

/* Form Tabs High End UI */
.form-tab-btn {
    position: relative;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(18, 18, 18, 0.5);
    transition: all 0.4s ease;
    overflow: hidden;
    z-index: 1;
}

.form-tab-btn:hover {
    color: #fff;
    border-color: rgba(37, 99, 235, 0.3);
}

.form-tab-btn.active {
    color: #000;
    border-color: #2563EB;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

.form-tab-btn.active::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #93C5FD 0%, #2563EB 50%, #1E40AF 100%);
    z-index: -1;
}

/* Form cards: card-style active state (no full gradient) */
.form-card.form-tab-btn.active::before {
    display: none;
}

.form-card.form-tab-btn.active {
    background: rgba(37, 99, 235, 0.12);
    border-color: #2563EB;
    color: #fff;
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.2);
}

.form-panel {
    display: none;
    opacity: 0;
}

.form-panel.active {
    display: block;
}

/* Floating Label Inputs */
.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-peer {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0 0.5rem 0;
    color: white;
    font-size: 0.875rem;
    transition: border-color 0.3s;
}

.input-peer:focus {
    outline: none;
    border-bottom-color: #2563EB;
}

.label-float {
    position: absolute;
    left: 0;
    top: 1rem;
    color: #6b7280;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-peer:focus~.label-float,
.input-peer:not(:placeholder-shown)~.label-float {
    top: -0.5rem;
    font-size: 0.65rem;
    color: #2563EB;
}

/* ==================== WIDGET SPECIFIC CSS ==================== */

/* Widget 1: Slot Machine Specifics */
.reel-strip {
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.slot-flash {
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0;
    pointer-events: none;
    z-index: 20;
}

/* Widget 2: Roulette Specifics */
.rl-chip {
    animation: chipDrop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes chipDrop {
    0% {
        transform: scale(3) translateY(-20px);
        opacity: 0;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.rl-zone:hover {
    box-shadow: inset 0 0 20px rgba(37, 99, 235, 0.3);
}

.rl-zone.bad-zone:hover {
    box-shadow: inset 0 0 20px rgba(239, 68, 68, 0.3);
}

/* Widget 3: Parlay Specifics */
.odds-flicker {
    animation: oddsFlicker 0.4s ease-out;
}

@keyframes oddsFlicker {
    0% {
        background-color: #3B82F6;
        color: black;
        transform: scale(1.05);
    }

    100% {
        background-color: transparent;
        color: white;
        transform: scale(1);
    }
}

.sb-odds-btn.selected {
    background-color: #4ade80 !important;
    transform: scale(1.05);
}

.sb-odds-btn.selected .text-gray-400 {
    color: rgba(0, 0, 0, 0.7) !important;
}

.sb-odds-btn.selected .text-white {
    color: black !important;
}

/* Widget 5: Ecosystem Drag Drop Specifics */
.drag-pill {
    cursor: grab;
    user-select: none;
}

.drag-pill:active {
    cursor: grabbing;
    transform: scale(0.98);
}

.orbit-slot {
    border: 2px dashed rgba(37, 99, 235, 0.35);
    border-radius: 50%;
    transition: all 0.2s;
    box-shadow: 0 0 14px rgba(37, 99, 235, 0.22), inset 0 0 10px rgba(37, 99, 235, 0.08);
}

.orbit-slot.drag-over {
    border-color: #2563EB;
    background: rgba(37, 99, 235, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 22px rgba(37, 99, 235, 0.45), inset 0 0 14px rgba(37, 99, 235, 0.15);
}

.orbit-svg-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 0.6s ease-out;
}

.orbit-svg-line.connected {
    stroke-dashoffset: 0;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* main_spa.html — hero animation delays */
.hero-anim-delay-1 {
    animation-delay: 0.1s;
}

.hero-anim-delay-2 {
    animation-delay: 0.2s;
}

.hero-anim-delay-3 {
    animation-delay: 0.3s;
}

.hero-anim-delay-4 {
    animation-delay: 0.4s;
}

.hero-anim-delay-5 {
    animation-delay: 0.5s;
}

/* main_spa.html — value prop card stagger (GSAP fade) */
.card-stagger-1 {
    transition-delay: 0.1s;
}

.card-stagger-2 {
    transition-delay: 0.2s;
}

.card-stagger-3 {
    transition-delay: 0.3s;
}

.card-stagger-4 {
    transition-delay: 0.4s;
}

.card-stagger-5 {
    transition-delay: 0.5s;
}

.card-stagger-6 {
    transition-delay: 0.6s;
}

.card-stagger-7 {
    transition-delay: 0.7s;
}

.border-text {
    -webkit-text-stroke: 1px #2563EB;
}
