/* CSS Reset & Variable Definitions */
:root {
    --bg-dark: #07080d;
    --bg-card: rgba(20, 22, 33, 0.7);
    --border-gold: rgba(212, 175, 55, 0.2);
    --border-gold-focus: rgba(212, 175, 55, 0.5);
    --text-white: #f5f5f7;
    --text-muted: #8e8e93;
    
    /* Gold Metallic Gradients */
    --gold-gradient: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%);
    --gold-solid: #d4af37;
    --gold-light: #f3e5ab;
    --gold-dark: #aa771c;
    --emerald-green: #00e676;
    --coral-red: #ff3860;
    
    /* Font Families */
    --font-head: 'Prompt', sans-serif;
    --font-body: 'Sarabun', sans-serif;
    --font-mystic: 'Sriracha', cursive;
}

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

body {
    background-color: var(--bg-dark);
    background: radial-gradient(circle at center, #141624 0%, #07080d 100%);
    color: var(--text-white);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Stars Animation */
.stars, .twinkling {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.stars {
    background: #000 url('https://raw.githubusercontent.com/AntigravityCoder/assets/main/stars.png') repeat top center;
    opacity: 0.3;
    z-index: -2;
}

.twinkling {
    background: transparent url('https://raw.githubusercontent.com/AntigravityCoder/assets/main/twinkling.png') repeat top center;
    z-index: -1;
    opacity: 0.4;
    animation: move-twink-back 200s linear infinite;
}

@keyframes move-twink-back {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-solid);
}

/* Typography and Utility Classes */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 600;
}

.font-sriracha {
    font-family: var(--font-mystic) !important;
}

.text-gold {
    color: var(--gold-solid);
}

.gold-gradient-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hidden {
    display: none !important;
}

/* App Container */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header styling */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.logo-icon {
    font-size: 2.2rem;
    position: relative;
    z-index: 1;
}

.logo-glow {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, rgba(212, 175, 55, 0) 70%);
    top: -10px;
    left: -10px;
    pointer-events: none;
}

.logo-text h1 {
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.logo-text .subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.draw-indicator {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-gold);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-family: var(--font-head);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(5px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--emerald-green);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(0, 230, 118, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
    }
}

/* Nav Tabs */
.main-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.4rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: #111;
    background: var(--gold-gradient);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Content Area */
.content-container {
    flex: 1;
    margin-bottom: 3rem;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Layout Grid */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .grid-layout {
        grid-template-columns: 1fr;
    }
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.card-header {
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Forms and Inputs */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-head);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.select-wrapper {
    position: relative;
}

select {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-gold);
    color: var(--text-white);
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    border-radius: 8px;
    appearance: none;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.3s;
}

select:focus {
    border-color: var(--border-gold-focus);
    outline: none;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

.select-icon {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-solid);
    pointer-events: none;
}

.ticket-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

input[type="text"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-gold);
    color: var(--text-white);
    padding: 1rem 5rem;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 8px;
    border-radius: 8px;
    font-family: var(--font-head);
    transition: all 0.3s;
    text-align: center;
}

input[type="text"]:focus {
    border-color: var(--border-gold-focus);
    outline: none;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

input[type="text"]::placeholder {
    letter-spacing: 8px;
    color: rgba(255, 255, 255, 0.15);
}

.clear-btn {
    position: absolute;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.clear-btn:hover {
    color: var(--coral-red);
}

.error-msg {
    display: block;
    color: var(--coral-red);
    font-size: 0.85rem;
    margin-top: 0.4rem;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.error-msg.show {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons */
.btn {
    font-family: var(--font-head);
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

.btn-primary {
    background: var(--gold-gradient);
    color: #111;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold-solid);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
}

.btn-gold {
    background: var(--gold-gradient);
    color: #111;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.glow-btn {
    position: relative;
}

.glow-btn::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 8px;
    box-shadow: 0 0 15px var(--gold-solid);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.glow-btn:hover::after {
    opacity: 0.5;
}

/* Quick Numbers Keyboard */
.quick-numbers {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.quick-num-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    font-family: var(--font-head);
    font-weight: 500;
    padding: 0.6rem 0;
    font-size: 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-num-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold-solid);
    color: var(--gold-light);
}

.quick-num-btn:active {
    transform: scale(0.95);
}

/* Results Display Area & Scanner */
.result-display-wrapper {
    margin-top: 1.5rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    padding-top: 1.5rem;
    position: relative;
    min-height: 120px;
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold-solid), transparent);
    box-shadow: 0 0 10px var(--gold-solid);
    animation: scan 1.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 5;
}

@keyframes scan {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Prize Board & Result Layout */
.check-result-container {
    animation: fadeIn 0.5s ease;
}

.win-banner {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 2px solid var(--gold-solid);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.win-banner h3 {
    color: var(--gold-solid);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.win-banner .prize-won {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 0.5rem 0;
}

.win-banner .prize-sum {
    font-size: 1.1rem;
    color: var(--emerald-green);
    font-weight: 600;
}

.lose-banner {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.lose-banner h3 {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.lose-banner p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Results Panel Board (Right Side) */
.results-panel-card {
    border-color: rgba(212, 175, 55, 0.3);
}

.draw-results-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.prize-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s;
}

.prize-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

.prize-title {
    font-family: var(--font-head);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    letter-spacing: 0.5px;
}

.prize-number {
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 2px;
}

.prize-amount {
    font-size: 0.8rem;
    color: var(--gold-solid);
    margin-top: 0.4rem;
}

/* 1st Prize Highlighting */
.prize-1st-card {
    background: linear-gradient(135deg, rgba(170, 119, 28, 0.15) 0%, rgba(20, 22, 33, 0.9) 100%);
    border: 1px solid var(--gold-solid);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
}

.prize-1st-card .prize-title {
    color: var(--gold-light);
    font-weight: 500;
}

.prize-1st-card .prize-number {
    font-size: 3rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 4px;
}

.prizes-sub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

@media (max-width: 500px) {
    .prizes-sub-grid {
        grid-template-columns: 1fr;
    }
}

.prizes-sub-grid .prize-number {
    font-size: 1.4rem;
}

.highlight-2digit {
    background: rgba(212, 175, 55, 0.05);
    border-color: rgba(212, 175, 55, 0.2);
}

.highlight-2digit .prize-number {
    color: var(--gold-solid);
    font-size: 1.8rem;
}

.side-prize-card .prize-number {
    font-size: 1.4rem;
}

/* Modals */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    border-color: var(--gold-solid);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.25);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--text-white);
}

.modal-title {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.modal-scroll-area {
    overflow-y: auto;
    padding-right: 0.5rem;
}

.modal-prize-section h4 {
    color: var(--gold-light);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-left: 3px solid var(--gold-solid);
    padding-left: 0.5rem;
}

.modal-numbers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
    .modal-numbers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.modal-numbers-grid span {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 0.4rem 0.2rem;
    font-family: var(--font-head);
    font-size: 1rem;
    text-align: center;
    letter-spacing: 0.5px;
}

.modal-divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 1.2rem 0;
}


/* TAB 2: DREAM SEARCH & ASTROLOGY */
.dream-search-box {
    margin-bottom: 1.5rem;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    color: var(--text-muted);
    font-size: 1.2rem;
}

#dream-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-gold);
    color: var(--text-white);
    padding: 1rem 3rem 1rem 3rem;
    font-size: 1.1rem;
    border-radius: 8px;
    font-family: var(--font-body);
    transition: all 0.3s;
}

#dream-input:focus {
    border-color: var(--border-gold-focus);
    outline: none;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.search-helper-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.search-helper-text .tag {
    color: var(--gold-solid);
    cursor: pointer;
    margin: 0 0.2rem;
    text-decoration: underline;
    transition: color 0.2s;
}

.search-helper-text .tag:hover {
    color: var(--gold-light);
}

.dream-list-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.dream-item-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    animation: fadeIn 0.3s ease;
}

.dream-item-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-gold-focus);
    transform: translateX(4px);
}

.dream-info {
    max-width: 70%;
}

.dream-name {
    font-family: var(--font-head);
    font-size: 1.1rem;
    color: var(--gold-light);
    margin-bottom: 0.2rem;
}

.dream-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.dream-numbers {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
}

.lucky-tag-2, .lucky-tag-3 {
    border-radius: 4px;
    font-family: var(--font-head);
    font-weight: 700;
    text-align: center;
    padding: 0.2rem 0.6rem;
    font-size: 0.9rem;
}

.lucky-tag-2 {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-solid);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.lucky-tag-3 {
    background: var(--gold-gradient);
    color: #111;
}

.no-dream-results {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

/* Astrology (Right Column of Tab 2) */
.birthday-tabs {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.3rem;
    margin-bottom: 1.5rem;
}

.day-btn {
    border: none;
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
    padding: 0.6rem 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    opacity: 0.7;
    transition: all 0.2s;
}

.day-btn:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.day-sun { background-color: #e53935; }
.day-mon { background-color: #ffb300; color: #111; }
.day-tue { background-color: #ec407a; }
.day-wed { background-color: #43a047; }
.day-thu { background-color: #fb8c00; }
.day-fri { background-color: #1e88e5; }
.day-sat { background-color: #8e24aa; }

.day-btn.active {
    opacity: 1;
    box-shadow: 0 0 12px currentColor;
    transform: scale(1.08);
}

.lucky-numbers-display {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.placeholder-msg {
    text-align: center;
    color: var(--text-muted);
}

.astro-result-container {
    width: 100%;
    animation: fadeIn 0.4s ease;
}

.astro-title {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: var(--gold-light);
    margin-bottom: 0.8rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.astro-numbers-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.2rem 0;
}

.astro-num-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.astro-num-box span {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.astro-num-box strong {
    font-family: var(--font-head);
    font-size: 2.2rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.astro-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

.stats-front-last-3d-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Daily Stars Board */
.daily-stars-board {
    background: rgba(212, 175, 55, 0.03);
    border: 1px solid var(--border-gold);
    border-radius: 12px;
    padding: 1.2rem;
}

.daily-stars-board h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: var(--gold-light);
    text-align: center;
}

.daily-nums-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.6rem;
}

.daily-num-circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #292d3e 0%, #151821 100%);
    border: 1px solid var(--border-gold);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.daily-num-circle .label {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.daily-num-circle .val {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-solid);
}

.daily-stars-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}


/* TAB 3: LUCKY GAMES */
.sub-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sub-tab-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-family: var(--font-head);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.sub-tab-btn:hover {
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.15);
}

.sub-tab-btn.active {
    color: var(--gold-solid);
    border-color: var(--gold-solid);
    background: rgba(212, 175, 55, 0.08);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.sub-tab-content {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.sub-tab-content.active {
    display: block;
}

/* Game Layout Grid */
.game-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.5rem;
}

@media (max-width: 800px) {
    .game-layout {
        grid-template-columns: 1fr;
    }
}

.game-control-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-color: rgba(212, 175, 55, 0.25);
}

.mystical-title {
    font-size: 1.8rem;
    color: var(--gold-solid);
    margin-bottom: 0.3rem;
}

.mystical-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 80%;
}

/* Siamsi Scene styling */
.siamsi-scene {
    position: relative;
    width: 200px;
    height: 250px;
    margin: 1rem 0 2rem 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.siamsi-cup-wrapper {
    width: 100px;
    height: 170px;
    transform-origin: bottom center;
    z-index: 2;
}

.siamsi-cup {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.5));
}

/* Shaking animation class */
.shake-animation {
    animation: shakeCup 0.15s linear infinite;
}

@keyframes shakeCup {
    0% { transform: rotate(0deg) translateY(0); }
    25% { transform: rotate(-8deg) translateY(-8px); }
    50% { transform: rotate(0deg) translateY(0); }
    75% { transform: rotate(8deg) translateY(-8px); }
    100% { transform: rotate(0deg) translateY(0); }
}

.stick-dropped {
    position: absolute;
    width: 25px;
    height: 160px;
    bottom: 0px;
    left: calc(50% - 12.5px);
    z-index: 1;
    transform-origin: center center;
    animation: stickFall 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes stickFall {
    0% {
        transform: translateY(-80px) rotate(0deg);
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
    100% {
        transform: translateY(70px) rotate(75deg);
        opacity: 1;
    }
}

.dropped-stick-graphic {
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #aa771c, #d4af37, #bf953f);
    border-radius: 4px;
    border: 1px solid #573b06;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    position: relative;
}

.dropped-stick-graphic::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 2px;
    right: 2px;
    height: 25px;
    background-color: #d32f2f; /* Red tip */
    border-radius: 2px;
}

/* Mystical Card Result Styling */
.game-result-card {
    border-color: rgba(212, 175, 55, 0.15);
    background: radial-gradient(circle at 50% 50%, rgba(26, 29, 44, 0.9) 0%, rgba(15, 17, 26, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
}

.mystical-inner-border {
    border: 1.5px solid var(--border-gold);
    padding: 1.5rem;
    border-radius: 12px;
    width: 100%;
    height: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.mystical-inner-border::before {
    content: '';
    position: absolute;
    top: 4px; left: 4px; right: 4px; bottom: 4px;
    border: 0.5px solid rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    pointer-events: none;
}

.siamsi-placeholder, .holywater-placeholder {
    text-align: center;
    color: var(--text-muted);
    max-width: 80%;
}

.siamsi-placeholder h3, .holywater-placeholder h3 {
    color: var(--gold-light);
    margin-bottom: 0.8rem;
    font-family: var(--font-head);
}

.siamsi-placeholder p, .holywater-placeholder p {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Real Siamsi Stick Result Document */
.siamsi-real-result {
    width: 100%;
    animation: fadeIn 0.6s ease;
    text-align: center;
}

.siamsi-number-plate {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #1f2230 0%, #11131c 100%);
    border: 1px solid var(--gold-solid);
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.siamsi-number-plate .label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.siamsi-number-plate .number {
    font-family: var(--font-head);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold-solid);
}

.siamsi-body-text {
    font-family: var(--font-mystic);
    font-size: 1.25rem;
    color: #ffd54f;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    white-space: pre-line;
}

.lucky-box-title {
    font-family: var(--font-head);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.siamsi-lucky-numbers {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.siamsi-lucky-numbers span {
    background: var(--gold-gradient);
    color: #111;
    font-family: var(--font-head);
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(212,175,55,0.2);
}


/* GAME 2: HOLY WATER BOWL STYLING */
.bowl-scene {
    position: relative;
    width: 100%;
    height: 240px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
}

.holy-water-bowl-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
}

.holy-water-bowl {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #43475d 0%, #151821 70%, #07080c 100%);
    border: 8px solid;
    border-image: var(--gold-gradient) 1;
    border-radius: 50%; /* Re-applied because border-image breaks radius on some browsers */
    overflow: hidden;
    position: relative;
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.6),
        inset 0 10px 30px rgba(0,0,0,0.8),
        0 0 20px rgba(212, 175, 55, 0.3);
}

/* Make sure the bowl is strictly circular even with border-image */
.holy-water-bowl {
    border: 6px solid var(--gold-solid); /* Fallback */
    box-sizing: border-box;
}

.water-surface {
    position: absolute;
    top: 4px; left: 4px; right: 4px; bottom: 4px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, #161e31 0%, #0b0f19 80%);
    overflow: hidden;
}

/* Water Ripples */
.ripple {
    position: absolute;
    top: 50%; left: 50%;
    width: 10px; height: 10px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: rippleEffect 4s linear infinite;
}

.ripple.delay-1 {
    animation-delay: 2s;
}

@keyframes rippleEffect {
    0% { width: 0; height: 0; opacity: 1; }
    100% { width: 220px; height: 220px; opacity: 0; }
}

/* Floating candle next to the bowl */
.candle-graphic {
    position: absolute;
    bottom: -10px;
    right: -25px;
    width: 40px;
    height: 70px;
    background: linear-gradient(to right, #cfd8dc, #eceff1, #b0bec5);
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    z-index: 5;
}

.candle-graphic::after {
    content: '';
    position: absolute;
    top: -8px; left: 19px;
    width: 2px; height: 8px;
    background-color: #37474f; /* Wick */
}

.flame {
    position: absolute;
    top: -24px; left: 12px;
    width: 16px; height: 20px;
    background: radial-gradient(circle at 50% 80%, #ffeb3b 20%, #ff9800 60%, #f44336 100%);
    border-radius: 50% 50% 20% 20% / 60% 60% 40% 40%;
    box-shadow: 0 0 15px #ff9800;
    transform-origin: bottom center;
    animation: flicker 1.2s ease-in-out infinite alternate;
}

@keyframes flicker {
    0% { transform: scale(1) rotate(-2deg); }
    100% { transform: scale(1.08) rotate(3deg); }
}

.bowl-controls {
    display: flex;
    gap: 0.8rem;
    width: 100%;
    justify-content: center;
}

/* Floating wax particles */
.wax-drop {
    position: absolute;
    background: radial-gradient(circle, #ffee58 20%, #fbc02d 70%, #d4af37 100%);
    border-radius: 50%;
    box-shadow: 
        0 2px 6px rgba(0,0,0,0.5),
        inset 0 -1px 3px rgba(0,0,0,0.3),
        0 0 8px rgba(254, 241, 154, 0.6);
    filter: blur(0.5px);
    transition: all 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mystic);
    font-size: 1.2rem;
    font-weight: bold;
    color: #4a2704;
    user-select: none;
    cursor: default;
}

.wax-drop.reveal-num {
    background: radial-gradient(circle, #fff59d 30%, #ffee58 70%, #d4af37 100%);
    animation: drift 6s ease-in-out infinite alternate;
}

@keyframes drift {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(3px, -5px) rotate(3deg); }
    100% { transform: translate(-3px, 4px) rotate(-3deg); }
}

/* Holy Water Interpretation Card Content */
.holywater-real-result {
    width: 100%;
    animation: fadeIn 0.6s ease;
}

.holywater-interpretation {
    text-align: center;
}

.mystical-tag {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--gold-solid);
    color: var(--gold-solid);
    font-family: var(--font-head);
    font-size: 0.75rem;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 0.6rem;
}

.holywater-interpretation h2 {
    font-size: 1.3rem;
    color: var(--gold-light);
    margin-bottom: 1.2rem;
}

.revealed-numbers-bowl {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin: 1.5rem 0;
}

.revealed-numbers-bowl span {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffee58 20%, #fbc02d 70%, #aa771c 100%);
    color: #3e2723;
    font-family: var(--font-mystic);
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 10px rgba(0,0,0,0.4),
        0 0 10px rgba(255, 235, 59, 0.5);
    animation: floatNum 3s ease-in-out infinite alternate;
}

.revealed-numbers-bowl span:nth-child(2) { animation-delay: 0.5s; }
.revealed-numbers-bowl span:nth-child(3) { animation-delay: 1s; }
.revealed-numbers-bowl span:nth-child(4) { animation-delay: 1.5s; }
.revealed-numbers-bowl span:nth-child(5) { animation-delay: 2s; }

@keyframes floatNum {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

.interpretation-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.astrological-pairings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.2rem;
}

.pairing-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pairing-item .p-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.pairing-item .p-val {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-solid);
}

/* Donation Widget Styling */
.donation-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.donate-details {
    width: 100%;
    max-width: 500px;
    padding: 0;
    border: 1px solid var(--border-gold);
    background: rgba(20, 22, 33, 0.5);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.donate-details:hover {
    border-color: var(--border-gold-focus);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
}

.donate-summary {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    font-family: var(--font-head);
    font-size: 0.95rem;
    color: var(--gold-light);
    cursor: pointer;
    user-select: none;
    list-style: none; /* Hide default arrow */
    position: relative;
    font-weight: 500;
}

.donate-summary::-webkit-details-marker {
    display: none; /* Hide default arrow in Safari */
}

.donate-summary .toggle-icon {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--gold-solid);
    transition: transform 0.3s ease;
}

.donate-details[open] .donate-summary .toggle-icon {
    transform: rotate(180deg);
}

.donate-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeIn 0.4s ease;
}

.donate-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.qr-wrapper {
    background: #ffffff;
    padding: 0.8rem;
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
    border: 1px solid var(--border-gold);
}

.donate-qr-img {
    width: 160px;
    height: 160px;
    display: block;
}

.donate-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.donate-account {
    color: var(--text-white);
    font-weight: 500;
}

.donate-ref {
    color: var(--text-muted);
    font-family: monospace;
    letter-spacing: 0.5px;
}

.donate-thankyou {
    color: var(--gold-solid);
    margin-top: 0.4rem;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Pulse animation for the heart icon */
.pulse-animation {
    animation: heartPulse 1.8s infinite;
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}


/* Footer styling */
.main-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.main-footer p {
    margin-bottom: 0.5rem;
}

.app-version {
    font-size: 0.72rem;
    color: var(--text-muted);
    opacity: 0.7;
    margin-top: 0.6rem;
    font-family: monospace;
    letter-spacing: 0.5px;
}

/* Camera Scanner & OCR UI Styles */
.scan-camera-btn {
    position: absolute;
    right: 3rem;
    background: transparent;
    border: none;
    color: var(--gold-solid);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scan-camera-btn:hover {
    color: var(--gold-light);
    transform: scale(1.15);
}

@keyframes scanLine {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

/* Statistics & Forecasting Progress Bars */
.stats-progress-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    width: 100%;
}

.stats-progress-label {
    width: 50px;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--gold-light);
}

.stats-progress-bar-bg {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-progress-bar-fill {
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 4px;
    width: 0%;
    transition: width 1s cubic-bezier(0.1, 0.8, 0.2, 1);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.stats-progress-percent {
    width: 35px;
    text-align: right;
    font-family: var(--font-head);
    font-weight: 500;
    color: var(--emerald-green);
}

.frequent-tag {
    background: rgba(212, 175, 55, 0.1);
    border: 1.5px solid var(--gold-solid);
    color: var(--gold-light);
    font-family: var(--font-head);
    font-weight: 700;
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    animation: fadeIn 0.4s ease;
}

.frequent-tag span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Mobile Responsive Adjustments */
@media (max-width: 600px) {
    .app-container {
        padding: 1rem 0.5rem;
    }

    .main-header {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        text-align: center;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .logo-area {
        justify-content: center;
    }

    .logo-text h1 {
        font-size: 1.6rem;
    }

    #btn-mobile-qr {
        display: none !important;
    }
    
    .main-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.4rem;
        gap: 0.4rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .main-tabs::-webkit-scrollbar {
        display: none;
    }

    .main-tabs button {
        flex: 0 0 auto;
        padding: 0.7rem 0.9rem;
        font-size: 0.9rem;
    }
    
    .glass-card {
        padding: 1rem;
        border-radius: 12px;
    }

    .section-title {
        font-size: 1.2rem;
    }

    /* Ticket Input & OCR Suffix/Prefix placement on mobile */
    .scan-camera-btn {
        left: 0.8rem;
        right: auto;
        font-size: 1.15rem;
    }

    .clear-btn {
        right: 0.8rem;
        font-size: 1.15rem;
    }

    input[type="text"] {
        font-size: 1.4rem;
        padding: 0.8rem 3.2rem;
        letter-spacing: 5px;
    }

    .quick-numbers {
        gap: 0.3rem;
        margin-bottom: 1.2rem;
    }

    .quick-num-btn {
        padding: 0.5rem 0;
        font-size: 1rem;
    }
    
    /* Sub-prizes Grid: 2 columns with highlight spanning full width */
    .prizes-sub-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.6rem;
    }

    .prizes-sub-grid .prize-card {
        padding: 0.8rem 0.4rem;
    }

    .prizes-sub-grid .prize-card:nth-child(3) {
        grid-column: span 2;
    }

    .prizes-sub-grid .prize-number {
        font-size: 1.25rem;
    }

    .prizes-sub-grid .highlight-2digit .prize-number {
        font-size: 1.7rem;
    }

    /* Stack neighbor prizes vertically on mobile */
    .side-prize-card .prize-number {
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
        align-items: center;
        font-size: 1.3rem;
    }

    .side-prize-card .near-divider {
        display: none;
    }

    /* Astrological predictions layout */
    .astrological-pairings {
        grid-template-columns: 1fr;
    }
    
    .astro-numbers-group {
        gap: 1rem;
    }
    
    .astro-num-box strong {
        font-size: 1.8rem;
    }
}

@media (max-width: 450px) {
    .birthday-tabs {
        gap: 0.2rem;
    }
    .day-btn {
        font-size: 0.72rem;
        padding: 0.35rem 0;
    }
    .stats-front-last-3d-grid {
        grid-template-columns: 1fr !important;
    }
    .form-group label {
        font-size: 0.8rem;
    }
}

/* Statistics Dashboard Modal Styling */
.stats-overview-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 580px) {
    .stats-overview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .stats-overview-grid > :nth-child(4),
    .stats-overview-grid > :nth-child(5) {
        grid-column: span 1.5;
    }
}

.stats-counter-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.8rem 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.stats-counter-card:hover {
    border-color: var(--border-gold-focus);
    background: rgba(212, 175, 55, 0.05);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.05);
}

.stats-counter-card .card-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.stats-counter-card .card-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-solid);
    font-family: var(--font-head);
    margin: 0;
}

.stats-detail-section {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.stats-section-title {
    font-family: var(--font-head);
    font-size: 0.95rem;
    color: var(--gold-light);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.peak-time-banner {
    background: rgba(212, 175, 55, 0.05);
    border: 1px dashed rgba(212, 175, 55, 0.25);
    border-radius: 8px;
    padding: 0.8rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gold-light);
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.stats-time-grid {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: 4px;
    height: 70px;
    align-items: end;
    background: rgba(0, 0, 0, 0.25);
    padding: 10px 8px 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.time-bar-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.time-bar {
    background: linear-gradient(to top, rgba(212, 175, 55, 0.15), var(--gold-solid));
    border-radius: 3px 3px 0 0;
    width: 100%;
    min-height: 2px;
    transition: height 0.5s cubic-bezier(0.1, 0.8, 0.3, 1);
    cursor: pointer;
}

.time-bar:hover {
    background: linear-gradient(to top, var(--gold-solid), #ffffff);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.time-bar-wrapper::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) scale(0.85);
    background: #0d0e15;
    color: #fff;
    font-size: 0.65rem;
    padding: 3px 6px;
    border-radius: 4px;
    white-space: nowrap;
    border: 1px solid var(--border-gold);
    z-index: 10;
    margin-bottom: 6px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
}

.time-bar-wrapper:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.stats-flex-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
    .stats-flex-grid {
        grid-template-columns: 1fr;
    }
}

.stats-flex-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 1.2rem;
}

.feature-item, .country-item {
    margin-bottom: 1rem;
}

.feature-item:last-child, .country-item:last-child {
    margin-bottom: 0;
}

.feature-info, .country-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.feature-meta, .country-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-white);
    font-weight: 500;
}

.feature-meta .label, .country-meta .label {
    color: var(--text-muted);
}

.feature-meta .val, .country-meta .val {
    color: var(--gold-solid);
}

.progress-bg {
    background: rgba(255, 255, 255, 0.04);
    height: 6px;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
}

.progress-fill {
    background: linear-gradient(90deg, var(--gold-light), var(--gold-solid));
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.1, 0.8, 0.3, 1);
}

.stats-bot-protection-box {
    background: rgba(231, 76, 60, 0.02);
    border: 1px solid rgba(231, 76, 60, 0.12);
    border-radius: 12px;
    padding: 1.2rem;
    backdrop-filter: blur(5px);
}

.bot-protection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.bot-badge {
    font-size: 0.8rem;
    color: #e74c3c;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(231, 76, 60, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.blocked-count-label {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.bot-protection-desc {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
}

