﻿:root {
    --bg-body: #F3F5F9;
    --primary-navy: #0f172a;
    --secondary-navy: #1e293b;
    --accent-gold: #fbbf24;
    --accent-red: #ef4444;
    --accent-green: #10b981;
    --whatsapp-green: #22c55e;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --card-surface: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-glow: 0 0 15px rgba(251, 191, 36, 0.3);
    /* Added from Style 2 (non-conflicting) */
    --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    --gradient-navy: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    padding-bottom: 40px;
}

.app-container {
    /*max-width: 600px;*/
    margin: 0 auto;
    min-height: 100vh;
    background: #fff;
    box-shadow: 0 0 30px rgba(0,0,0,0.05);
}

/* --- Header --- */
header {
    background: #173B5C;
    background: radial-gradient(circle,rgba(23, 59, 92, 1) 0%, rgba(79, 137, 194, 1) 0%, rgba(23, 59, 92, 1) 85%);
    color: white;
    padding: 10px 10px 5px 5px;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    position: relative;
    overflow: hidden;
}

    header::before {
        content: '';
        position: absolute;
        top: -50px;
        right: -50px;
        width: 150px;
        height: 150px;
        background: rgba(255,255,255,0.05);
        border-radius: 50%;
    }

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .logo i {
        color: var(--accent-red);
    }

.refresh-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

    .refresh-btn:hover {
        background: rgba(255,255,255,0.2);
    }

/* --- Lucky Section --- */
.lucky-card-wrapper {
    margin-top: 25px;
    padding: 0 20px;
    margin-bottom: 20px;
}

.lucky-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    font-weight: 700;
    text-align: center;
    margin-bottom: 5px;
}

.golden-ank-display {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.g-number {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-navy);
    color: var(--accent-gold);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: var(--shadow-glow);
}

.divider {
    height: 1px;
    background: #eee;
    width: 100%;
}

.final-ank-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.final-ank-item {
    text-align: center;
    flex: 1;
}

    .final-ank-item span {
        display: block;
        font-weight: 700;
        color: var(--primary-navy);
        margin-top: 2px;
    }

/* --- Ticker --- */
.ticker-wrap {
    background: #fff4e5;
    color: #d97706;
    padding: 10px;
    margin: 0 20px 20px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border-left: 4px solid #d97706;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Results Feed --- */
.results-list {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.market-card {
    background: white;
    border-radius: 16px;
    padding: 0;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.2s;
}

    .market-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.market-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
}

.market-name {
    font-weight: 700;
    color: var(--primary-navy);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Live Dot */
.live-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--whatsapp-green);
    border-radius: 50%;
    position: relative;
}

    .live-indicator::after {
        content: '';
        position: absolute;
        top: -4px;
        left: -4px;
        bottom: -4px;
        right: -4px;
        border-radius: 50%;
        border: 2px solid var(--whatsapp-green);
        animation: pulse 1.5s infinite;
        opacity: 0.5;
    }

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.market-time {
    font-size: 0.75rem;
    color: var(--text-light);
    background: #f8fafc;
    padding: 4px 8px;
    border-radius: 6px;
}

.market-body {
    padding: 20px;
    text-align: center;
    background: radial-gradient(circle at center, #fff 0%, #fcfcfc 100%);
}

.result-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -1px;
}

    .result-number span {
        color: var(--primary-navy);
    }

    .result-number .middle {
        /*color: var(--accent-red);*/
        font-size: 2rem;
    }

    .result-number .middle.red {
        color: var(--accent-red);      
    }

/* --- Actions --- */
.market-actions {
    display: flex;
    border-top: 1px solid #f1f5f9;
}

.action-btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-chart {
    background: #b6b9ef;
    color: var(--primary-navy);
    border-right: 1px solid #f1f5f9;
}

    .btn-chart:hover {
        background: #353fff;
        color:white;
        font-weight: 800;
        font-size:1.1rem;
    }

.btn-wa {
    background: #a1ecb8;
    color: #000000;
}

    .btn-wa:hover {
        background: #00be3a;
        color: white;
        font-weight: 800;
        font-size: 1.1rem;
    }

/* --- Added Components from Style 2 (Not Overriding) --- */

.section-title {
    text-align: center;
    font-weight: 800;
    color: var(--primary-navy);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 30px 0 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .section-title::before,
    .section-title::after {
        content: '';
        height: 2px;
        width: 30px;
        background: var(--accent-gold);
    }

/* Promo Banner */
.promo-banner {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: white;
    margin: 20px;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

    .promo-banner h3 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .promo-banner p {
        font-size: 0.8rem;
        opacity: 0.9;
        margin-bottom: 15px;
    }

.promo-btn {
    background: white;
    color: #b91c1c;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 20px;
}

.menu-item {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--primary-navy);
    font-weight: 600;
    transition: 0.2s;
}

    .menu-item:hover {
        transform: translateX(5px);
        border-color: var(--accent-gold);
    }

    .menu-item i {
        color: var(--accent-gold);
    }

/* Table / Charts */
.table-container {
    overflow-x: auto;
    margin: 0 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: white;
}

th {
    background: var(--primary-navy);
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
}

td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-dark);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
}

tr:nth-child(even) {
    background-color: #f8fafc;
}

tr:hover {
    background-color: #f1f5f9;
}

.highlight-num {
    color: var(--accent-red);
    font-size: 1.1em;
}

/* Game Cards */
.game-card {
    margin: 0 20px 20px 20px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: white;
    border: 1px solid #e2e8f0;
}

.game-card-header {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-name {
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-card-body {
    padding: 15px;
    text-align: center;
}

.prediction-text {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 5px;
    word-break: break-all;
}

.prediction-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
}

/* Text Block */
.text-block-card {
    background: white;
    margin: 0 20px 20px 20px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--accent-red);
}

.text-block-header {
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.text-content {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Wheel */
.wheel-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    position: relative;
    width: auto;
    height: auto;
}

.wheel-simulation {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient( #ef4444 0% 12.5%, #fbbf24 12.5% 25%, #3b82f6 25% 37.5%, #10b981 37.5% 50%, #8b5cf6 50% 62.5%, #f472b6 62.5% 75%, #06b6d4 75% 87.5%, #248cdb 87.5% 100% );
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border: 5px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-center {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.wheel-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-navy);
}

/* Floating Button */
.refresh-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-navy);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.4);
    cursor: pointer;
    z-index: 100;
}






.clock-2 {
    display: none;
}
header {
    margin-bottom: auto;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    flex-wrap: wrap;
}

/* Logo image */
.logo-img {
    max-width: 120px;
    width: 100%;
    height: auto;
}

/* Name image */
.name-img {
    max-width: 520px;
    width: 100%;
    height: auto;
}

@media (max-width: 805px) {
   /* .logo-img {
        max-width: 80px;
    }*/

    .name-img {
        max-width: 400px;
    }

   /* #clock {
        font-size: 0.9rem;
    }*/
}

/* Mobile adjustments */
@media (max-width: 700px) {
    .logo-img {
        max-width: 80px;
    }

    .name-img {
        max-width: 350px;
    }

  /*  #clock {
        font-size: 0.9rem;
    }*/
}

@media (max-width: 595px) {
    .logo-img {
        max-width: 80px;
    }

    .name-img {
        max-width: 300px;
    }

    /*  #clock {
        font-size: 0.9rem;
    }*/
}
@media (max-width: 545px) {

    .clock-1 {
        display: none;
    }
    .clock-2{
        display:block;
    }
    .logo-img {
        max-width: 80px;
    }

    .name-img {
        max-width: 250px;
    }

    .tagline {
        display: flex;
        justify-content: space-between;
    }
    /*  #clock {
        font-size: 0.9rem;
    }*/
}

@media (max-width: 495px) {
    .logo-img {
        max-width: 80px;
    }

    .name-img {
        max-width: 250px;
    }

    /*  #clock {
        font-size: 0.9rem;
    }*/
}

@media (max-width: 375px) {
    .top-bar {
        justify-content: center;
        text-align: center;
    }

    .logo-img {
        max-width: 80px;
    }

    .name-img {
        max-width: 200px;
    }
}
@media (max-width: 325px) {
    .top-bar {
        justify-content: center;
        text-align: center;
    }

    .logo-img {
        max-width: 70px;
    }

    .name-img {
        max-width: 200px;
    }
}

/* Tagline */
.tagline {
    text-align: center;
    margin-bottom: 20px;
}

    .tagline p {
        opacity: 0.8;
        font-size: 0.9rem;
        color: white;
    }



.lucky-card.lucky-card-hide {
    /* background-color:greenyellow;*/
    /*display: none;*/
  

    visibility: hidden;
    position: absolute;
    left: -9999px;
    pointer-events: none;
}
