:root {
    --primary: #1D5F9C;
    /* Brand Blue */
    --primary-light: #2F88D0;
    /* Lighter Blue */
    --secondary: #FBBF24;
    --dark: #121212;
    --light: #ffffff;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

body {
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Outfit', 'Quicksand', sans-serif !important;
}

/* Premium Header */
.header-nav {
    background: #000000 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
    position: sticky !important;
    top: 0;
    z-index: 1000;
}

.header-nav.navbar-sticky {
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

.nav-link {
    font-weight: 600 !important;
    color: #cbd5e1 !important;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff !important;
}

/* Premium Banner */
.banner {
    background:
        linear-gradient(180deg, rgba(240, 246, 255, 0.8) 0%, #ffffff 100%),
        radial-gradient(circle at top right, rgba(29, 95, 156, 0.15), transparent 50%),
        radial-gradient(circle at bottom left, rgba(47, 136, 208, 0.1), transparent 50%) !important;
    padding: 100px 0 60px !important;
}

.banner h1 strong {
    background: linear-gradient(135deg, #111111 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3.5rem;
    line-height: 1.2;
}

/* Premium Cards */
.border-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    overflow: hidden;
}

.border-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

.card-body h3 {
    font-weight: 700 !important;
    color: #1e293b;
    letter-spacing: -0.5px;
}

.card-body h1 {
    color: var(--primary);
    font-weight: 800 !important;
}

/* Winner Scrolling Cards */
.scrolling-wrapper {
    padding: 20px 0;
}

.card-container .card {
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%) !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 16px !important;
}

.card-container .card h3 {
    color: var(--primary) !important;
}

.card-container .card h1 {
    color: var(--primary-light) !important;
}

/* Download Button */
.download-block-div button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
    border: none !important;
    box-shadow: 0 10px 15px -3px rgba(29, 95, 156, 0.3) !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.download-block-div button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
}

.download-block-div button:hover::after {
    left: 100%;
}

.download-block-div button:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(29, 95, 156, 0.4) !important;
}

/* Game Status Indicators */
.green {
    background: #dcfce7;
    color: #166534 !important;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    margin-top: 10px;
}

.red {
    background: #fee2e2;
    color: #991b1b !important;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    margin-top: 10px;
}

/* Red filter for orange images */
a[href*="begambleaware"] img,
a[href*="gamblingtherapy"] img {
    filter: brightness(0.5) sepia(1) hue-rotate(-50deg) saturate(10) !important;
}

.star {
    filter: none !important;
    opacity: 1 !important;
    display: inline-block;
}

/* Premium Button Overrides */
.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background: var(--primary) !important;
    color: white !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
    border: none !important;
}

/* FAQ Icon Fix */
.faq-svg-arrow {
    color: var(--primary) !important;
    vertical-align: middle;
}

/* Rotate when expanded */
h4[aria-expanded="true"] .faq-svg-arrow {
    transform: rotate(180deg) !important;
}

/* Hide old logo if it's Rana567 */
img[src*="wide_logo.png"] {
    content: url("../images/ps999_logo.png");
    height: 60px !important;
}

/* Global Footer Override */
.footer-block {
    background: #000000 !important;
    color: #ffffff;
}

.footer-bottom .block {
    padding: 10px 0;
}

.max-50 {
    width: 50% !important;
}

/* Premium Chart Design */
.chart-table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(29, 95, 156, 0.1);
}
.chart-table th, .chart-table td {
    border: 1px solid rgba(29, 95, 156, 0.05);
    padding: 14px;
    text-align: center;
}
.chart-table th {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}
.chart-table tr:nth-child(even) {
    background-color: rgba(29, 95, 156, 0.02);
}
.chart-table tr:hover {
    background-color: rgba(29, 95, 156, 0.05);
}

/* Premium Market List */
.market-list {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.03);
}
.market-item {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    cursor: pointer;
    position: relative;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.1rem;
    color: #334155;
    transition: all 0.3s ease;
}
.market-item:last-child {
    border-bottom: none;
}
.market-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 4px;
    background-color: transparent;
    border-radius: 0 4px 4px 0;
    transition: all 0.3s ease;
}
.market-item:hover, .market-item.active {
    background-color: #f8fafc;
    color: var(--primary);
}
.market-item.active::before {
    background-color: var(--secondary);
}
@media (max-width: 800px) {
    .chart-table th, .chart-table td {
        padding: 10px 4px;
        font-size: 12px;
    }
}

/* -------------------------------------------
   WOW PREMIUM GLASSMORPHISM CHARTS DESIGN
------------------------------------------- */

/* Main Container */
.glass-chart-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(29, 95, 156, 0.2);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

/* Premium Title */
.premium-chart-title {
    font-weight: 700;
    color: #111111;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.premium-chart-title span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Premium Table */
.premium-chart-table {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.premium-chart-table thead th {
    background: linear-gradient(135deg, #111111 0%, var(--primary) 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 18px !important;
    font-weight: 700;
    letter-spacing: 1px;
}
.premium-chart-table thead th:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}
.premium-chart-table thead th:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.premium-chart-table tbody tr {
    background: transparent !important;
    transition: all 0.3s ease;
}
.premium-chart-table tbody td {
    border: none !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    padding: 10px !important;
    vertical-align: middle;
}

/* Glass Cells */
.glass-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 80px;
}
.glass-cell:hover {
    transform: translateY(-3px) scale(1.02);
}
.glow-blue:hover {
    box-shadow: 0 10px 25px rgba(29, 95, 156, 0.2);
    border-color: rgba(29, 95, 156, 0.3);
}
.empty-cell {
    background: transparent;
    border: 1px dashed rgba(0,0,0,0.1);
    box-shadow: none;
    color: #ccc;
}

/* Jodi Badges */
.jodi-badge {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 2px solid rgba(29, 95, 156, 0.1);
}
.jodi-badge-red {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 75, 43, 0.4);
}
.glow-red:hover {
    box-shadow: 0 10px 30px rgba(255, 75, 43, 0.6);
}

/* Pana Pills */
.pana-cell {
    gap: 8px;
}
.pana-pill {
    background: #f8fafc;
    border-radius: 12px;
    padding: 6px 12px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.03);
}
.pana-label {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.pana-val {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
}
.pana-jodi-badge {
    margin-top: 5px;
    background: var(--secondary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(47, 136, 208, 0.4);
}

/* Segmented Toggle (iOS Style) */
.segmented-control {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 30px;
    padding: 6px;
    position: relative;
}
.segmented-control__item {
    padding: 10px 30px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 14px;
    color: #64748b;
    text-decoration: none !important;
    transition: all 0.3s ease;
    z-index: 2;
}
.segmented-control__item:hover {
    color: #1e293b;
}
.segmented-control__item.active {
    background: #111111;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Responsive tweaks */
@media (max-width: 800px) {
    .glass-cell { padding: 5px; min-height: 50px; border-radius: 8px; }
    .jodi-badge { width: 35px; height: 35px; font-size: 14px; }
    .pana-pill { padding: 4px 6px; border-radius: 6px; }
    .pana-label { font-size: 8px; }
    .pana-val { font-size: 12px; }
    .pana-jodi-badge { padding: 2px 8px; font-size: 10px; }
    .premium-chart-table thead th { padding: 10px 4px !important; font-size: 11px; }
    .segmented-control__item { padding: 8px 15px; font-size: 12px; }
}

/* Scroll Stabilization: Prevent horizontal page wiggling/wobbling on scroll */
html, body {
    overflow-x: hidden !important;
}

/* Prevent footer trust logos from overflowing columns on small screens */
.max-50 img {
    max-width: 100% !important;
    height: auto !important;
}
