/* Amber Sai — black canvas, amber brand bar, magenta/green live list. */

:root {
    --amber: #ffa000;
    --amber-lt: #ffc107;
    --ink: #000000;
    --pink: #ff2d95;
    --green: #22c55e;
    --purple: #4a1140;
    --purple-2: #6b1b52;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    padding-bottom: 24px;
    background: var(--ink);
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

a { color: var(--amber-lt); }

/* nav */
.topnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 12px 10px; background: var(--ink); }

.nav-pill {
    flex: 1 1 150px;
    max-width: 240px;
    padding: 9px 12px;
    background: var(--amber);
    border-radius: 6px;
    color: var(--ink);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: .5px;
    text-align: center;
    text-decoration: none;
}

.nav-pill.active { background: #ffffff; }

/* marquee */
.marquee-strip { padding: 5px 0; background: var(--amber-lt); color: #b30000; font-size: 12px; font-weight: bold; overflow: hidden; white-space: nowrap; }
.marquee-strip span { display: inline-block; padding-left: 100%; animation: slide 18s linear infinite; }
@keyframes slide { to { transform: translateX(-100%); } }

/* brand */
.brand-bar { padding: 18px 12px; background: var(--amber); text-align: center; }
.brand-bar h1 { font-size: 34px; font-weight: bold; color: var(--ink); letter-spacing: 1px; word-break: break-word; }

/* live list */
.live-block { padding: 20px 12px 26px; text-align: center; }
.live-date { margin-bottom: 10px; color: var(--amber-lt); font-size: 15px; font-weight: bold; }
.live-hindi { margin-bottom: 18px; color: var(--green); font-size: 17px; font-weight: bold; }
.live-row { margin-bottom: 14px; }
.live-name { font-size: 26px; font-weight: bold; color: var(--pink); letter-spacing: 1px; }
.live-value { font-size: 26px; font-weight: bold; color: var(--green); }
.live-value.is-wait { color: #ff5252; animation: flash 1.1s ease-in-out infinite; }
@keyframes flash { 50% { color: var(--amber-lt); } }

.guess-pill {
    display: inline-block;
    margin: 6px auto 0;
    padding: 9px 26px;
    background: var(--amber-lt);
    border-radius: 6px;
    color: var(--ink);
    font-size: 15px;
    font-weight: bold;
}

/* khaiwal card */
.khaiwal-card {
    max-width: 620px;
    margin: 20px auto;
    padding: 18px 16px 22px;
    background: linear-gradient(160deg, var(--purple-2), var(--purple));
    border: 2px solid var(--amber);
    border-radius: 10px;
    text-align: center;
}

.khaiwal-head { color: var(--amber-lt); font-size: 17px; font-weight: bold; letter-spacing: 1px; }
.khaiwal-sub { margin: 4px 0 12px; color: #ffffff; font-size: 15px; font-weight: bold; }
.khaiwal-rate { margin-bottom: 12px; color: var(--amber-lt); font-size: 13px; font-weight: bold; }

.khaiwal-list { list-style: none; max-width: 320px; margin: 0 auto; }
.khaiwal-list li { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; font-size: 14px; font-weight: bold; color: #ffffff; }
.khaiwal-list li i { flex: 1; border-bottom: 2px dotted rgba(255, 255, 255, .45); }

.khaiwal-note { margin-top: 12px; font-size: 11px; font-weight: bold; color: #f0d7e8; }

.wa-now {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 24px;
    background: var(--green);
    border-radius: 999px;
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
}

.tg-now { background: #29a9eb; margin-left: 8px; }

/* result table */
.result-wrap { max-width: 900px; margin: 22px auto; padding: 0 10px; }

.result-table { width: 100%; border-collapse: collapse; border: 2px solid var(--amber); }

.result-table th {
    padding: 11px 6px;
    background: var(--ink);
    border: 1px solid var(--amber);
    color: var(--amber-lt);
    font-size: 14px;
}

.result-table td { padding: 12px 6px; border: 1px solid var(--amber); text-align: center; }

.cell-name { width: 42%; background: var(--amber); }
.g-name { display: block; font-size: 21px; font-weight: 800; color: var(--ink); }
.g-time { display: block; font-size: 13px; font-weight: bold; color: #4a2c00; }
.g-link { display: block; margin-top: 2px; font-size: 11px; color: #6b3d00; text-decoration: underline; }

.cell-prev, .cell-today { background: #f7f7f7; color: var(--ink); }
.cell-prev { font-size: 22px; font-weight: bold; }
.today-num { font-size: 22px; font-weight: bold; color: #d10000; }

.wait-badge {
    display: inline-block;
    padding: 4px 14px;
    background: #d10000;
    border-radius: 4px;
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    animation: pulse 1.1s ease-in-out infinite;
}

@keyframes pulse { 50% { background: #ff7b00; } }

/* Table rows use a spinning clock instead of repeating the word on every line;
   the live block above still spells out WAIT. */
.wait-ico { display: inline-flex; color: #d10000; animation: spinClock 2.6s linear infinite; }

@keyframes spinClock { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .wait-badge, .live-value.is-wait, .marquee-strip span, .wait-ico { animation: none; }
}

.btn-block {
    display: block;
    max-width: 420px;
    margin: 16px auto 0;
    padding: 12px;
    background: var(--amber);
    border-radius: 6px;
    color: var(--ink);
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
}

/* faq */
.section-heading { margin-bottom: 14px; font-size: 20px; font-weight: bold; color: var(--amber-lt); text-align: center; }
.faq-section { max-width: 760px; margin: 26px auto; padding: 0 12px; }
.faq-item { margin-bottom: 8px; border: 1px solid var(--amber); border-radius: 6px; overflow: hidden; }

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    background: #1c1c1c;
    border: 0;
    color: var(--amber-lt);
    font-family: inherit;
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    cursor: pointer;
}

.faq-icon { font-style: normal; font-size: 18px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; padding: 11px 14px; background: #111111; font-size: 14px; color: #dddddd; }
.faq-item.open .faq-answer { display: block; }

/* footer */
.site-footer { padding: 22px 16px; background: #111111; border-top: 2px solid var(--amber); text-align: center; }
.footer-name { margin-bottom: 10px; font-size: 20px; font-weight: bold; color: var(--amber); }
.footer-desc, .footer-text { max-width: 780px; margin: 0 auto 10px; font-size: 13px; color: #cccccc; word-break: break-word; }
.footer-legal { max-width: 780px; margin: 14px auto 0; padding-top: 12px; border-top: 1px solid #333333; font-size: 12px; color: #999999; }

/* floating bar */





/* chart page */
.chart-wrap { max-width: 1100px; margin: 20px auto; padding: 0 12px; }
.back-link { margin-bottom: 14px; }

.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; padding: 12px; background: #1c1c1c; border: 1px solid var(--amber); border-radius: 8px; }
.filter-bar select, .filter-bar input { padding: 8px 10px; background: #ffffff; border: 1px solid var(--amber); border-radius: 5px; font-family: inherit; font-size: 14px; }

.btn-chart { display: inline-block; padding: 9px 18px; background: var(--amber); border: 0; border-radius: 5px; color: var(--ink); font-family: inherit; font-size: 14px; font-weight: bold; text-decoration: none; cursor: pointer; }

.table-scroll { overflow-x: auto; border: 2px solid var(--amber); }
.chart-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.chart-table th, .chart-table td { padding: 9px 8px; border: 1px solid var(--amber); text-align: center; white-space: nowrap; }
.chart-table thead th { background: var(--ink); color: var(--amber-lt); }
.chart-table .date-col { background: var(--amber); color: var(--ink); font-weight: bold; }
.chart-table tbody td { background: #f7f7f7; color: var(--ink); font-weight: bold; }
.chart-table tbody tr:nth-child(even) td { background: #e4e4e4; }

@media (max-width: 640px) {
    .brand-bar h1 { font-size: 25px; }
    .live-name, .live-value { font-size: 21px; }
    .nav-pill { flex: 1 1 40%; font-size: 12px; }
    .g-name { font-size: 18px; }
    .cell-prev, .today-num { font-size: 19px; }
}

/* about */
.about-section { max-width: 800px; margin: 26px auto; padding: 18px 16px; background: #111111; border: 1px solid var(--amber); border-radius: 8px; }
.about-section p { margin-bottom: 10px; font-size: 14px; color: #dddddd; }
.about-section p:last-child { margin-bottom: 0; }

/* Floating WhatsApp button (replaces the old bottom action bar). */
.float-wa {
    position: fixed;
    right: 16px;
    bottom: 18px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
    color: #ffffff;
}

/* Hindi content sections */
.info-wrap { max-width: 900px; margin: 26px auto; padding: 0 12px; }
.info-h { margin-bottom: 12px; font-size: 20px; font-weight: bold; color: var(--amber-lt); text-align: center; }

.recent-scroll { overflow-x: auto; border: 2px solid var(--amber); border-radius: 8px; }
.recent-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.recent-table th, .recent-table td { padding: 8px 10px; border: 1px solid rgba(255,160,0,.35); text-align: center; white-space: nowrap; font-weight: bold; }
.recent-table thead th { background: var(--ink); color: var(--amber-lt); }
.recent-table tbody td { background: #f7f7f7; color: var(--ink); }
.rt-date { background: var(--amber) !important; color: var(--ink); }
.rt-dash { color: #999999; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 18px 0; }
.step { padding: 14px; background: linear-gradient(160deg, var(--purple-2), var(--purple)); border: 1px solid var(--amber); border-radius: 10px; text-align: center; }
.step-ico { display: block; font-size: 24px; }
.step b { display: block; margin: 4px 0 2px; font-size: 15px; color: var(--amber-lt); }
.step span { font-size: 12px; color: #eddcea; }

.info-block { margin-bottom: 14px; padding: 16px; background: #111111; border: 1px solid var(--amber); border-radius: 8px; }
.info-block h3 { margin-bottom: 8px; font-size: 17px; color: var(--amber-lt); }
.info-block p { margin-bottom: 8px; font-size: 14px; color: #dddddd; }
.info-block p:last-child { margin-bottom: 0; }
