/* ==========================================
   SALDOWD x AURA - Main Stylesheet
   Extracted from index.html
   ========================================== */

/* CSS Variables */
:root {
    --color-primary: #1B5E20;
    --color-secondary: #2E7D32;
    --color-accent: #C9A960;
    --color-accent-light: #E6D7A3;
    --theme-body-bg: #121212;
    --theme-body-secondary: #1A1A1A;
    --theme-text-primary: #E8E8E8;
    --theme-text-secondary: #B0B0B0;
    --theme-text-muted: #808080;
    --theme-header-bg: rgba(18, 18, 18, .95);
    --theme-card-bg: #1E1E1E;
    --theme-card-hover-bg: #252525;
    --theme-border-subtle: #2A2A2A;
    --theme-border-main: #2E7D32;
    --theme-border-accent: #C9A960;
    --theme-shadow-sm: 0 2px 8px rgba(0, 0, 0, .3);
    --theme-shadow-md: 0 4px 16px rgba(0, 0, 0, .4);
    --theme-shadow-lg: 0 8px 24px rgba(0, 0, 0, .5);
}

/* Light Theme */
body.light-theme {
    --theme-body-bg: #F5F5F5;
    --theme-body-secondary: #FFF;
    --theme-text-primary: #2C2C2C;
    --theme-text-secondary: #5A5A5A;
    --theme-text-muted: #808080;
    --theme-header-bg: rgba(255, 255, 255, .95);
    --theme-card-bg: #FFF;
    --theme-card-hover-bg: #FAFAFA;
    --theme-border-subtle: #E0E0E0;
    --theme-border-main: #388E3C;
    --theme-border-accent: #B8960A;
    --theme-shadow-sm: 0 2px 8px rgba(0, 0, 0, .08);
    --theme-shadow-md: 0 4px 16px rgba(0, 0, 0, .12);
    --theme-shadow-lg: 0 8px 24px rgba(0, 0, 0, .16);
}

/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--theme-body-bg);
    color: var(--theme-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color .3s ease, color .3s ease;
}

a {
    color: var(--theme-text-primary);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    color: var(--color-accent);
}

/* BRAND WATERMARK */
.brand-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 8vw;
    font-weight: 900;
    color: rgba(201, 169, 96, .03);
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
    letter-spacing: 20px;
    user-select: none;
}

/* TRUST BADGES */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px 16px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto 20px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(46, 125, 50, .1);
    border: 1px solid var(--theme-border-main);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent);
    transition: all .3s;
}

.trust-badge i {
    font-size: 18px;
}

.trust-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 128, 0, .3);
}

/* POPUP AD OVERLAY */
.ad-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .92);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    animation: fadeIn .3s ease;
}

.ad-popup-overlay.show {
    display: flex;
}

.ad-popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background: var(--theme-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 128, 0, .5);
    border: 3px solid var(--color-accent);
    animation: popupZoom .4s ease;
}

.ad-popup-content img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform .3s;
}

.ad-popup-content img:hover {
    transform: scale(1.02);
}

.ad-popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #D84315, #BF360C);
    color: #fff;
    border: 3px solid #fff;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .5);
    transition: all .3s;
    z-index: 100000;
}

.ad-popup-close:hover {
    transform: scale(1.15) rotate(90deg);
    background: linear-gradient(135deg, #BF360C, #D84315);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popupZoom {
    from { 
        transform: scale(.8); 
        opacity: 0; 
    }
    to { 
        transform: scale(1); 
        opacity: 1; 
    }
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 40px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    box-shadow: 0 4px 20px rgba(0, 128, 0, .3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--color-accent);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    width: 55px;
    height: 55px;
    display: block;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, .3));
    transition: all .3s ease;
    animation: logoGlow 3s infinite;
}

.logo:hover {
    transform: scale(1.05);
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, .3));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(201, 169, 96, .6));
    }
}

.site-branding {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-name {
    font-size: 1.3em;
    font-weight: 800;
    color: var(--color-accent);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, .5);
    letter-spacing: 1.2px;
    line-height: 1;
    text-transform: uppercase;
}

.datetime-display {
    font-size: .75em;
    color: rgba(255, 255, 255, .9);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.datetime-display i {
    color: var(--color-accent);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-vip {
    background: var(--color-accent);
    color: var(--color-primary);
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all .3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(201, 169, 96, .4);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.btn-vip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 96, .6);
    background: #FFD700;
}

.btn-vip i {
    font-size: 1.1em;
}

.theme-toggle {
    background: rgba(255, 255, 255, .1);
    border: 2px solid var(--color-accent);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 1.1rem;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, .2);
    transform: scale(1.05);
}

/* Floating Widgets */
.floating-widgets {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9997;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
    position: relative;
}

.floating-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 30px rgba(0, 0, 0, .4);
}

.floating-btn i {
    font-size: 1.8em;
    color: #fff;
}

.btn-apk {
    background: linear-gradient(135deg, #FF6B00 0%, #FF4500 100%);
    animation: pulse-orange 2s infinite;
}

.btn-whatsapp-group {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    animation: pulse-gold 2s infinite;
}

.btn-livechat {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-orange {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 107, 0, .4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(255, 107, 0, .7);
    }
}

@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 215, 0, .4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(255, 215, 0, .7);
    }
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, .4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, .7);
    }
}

.floating-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 75px;
    background: rgba(0, 0, 0, .9);
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: .85em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    font-weight: 600;
}

.floating-btn:hover::before {
    opacity: 1;
}

/* Ad Board */
.ad-board-container {
    width: 92%;
    max-width: 1200px;
    margin: 24px auto;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--theme-shadow-md);
    border: 2px solid var(--theme-border-main);
    background: var(--theme-card-bg);
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s;
}

.ad-board-container:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 128, 0, .4);
}

.ad-board-container img {
    width: 100%;
    height: auto;
    max-height: 400px;
    display: block;
    object-fit: contain;
}

.ad-board-label {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--color-secondary);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    box-shadow: var(--theme-shadow-sm);
    z-index: 10;
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px auto;
    max-width: 600px;
    width: 92%;
    padding: 0 16px;
}

.action-button {
    padding: 14px 28px;
    background: var(--color-secondary);
    color: #FFF;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid var(--theme-border-main);
    transition: all .3s ease;
    box-shadow: var(--theme-shadow-sm);
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
}

.action-button:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--theme-shadow-md);
    text-decoration: none;
}

.action-button:first-child {
    background: var(--color-primary);
}

.action-button:first-child:hover {
    background: var(--color-secondary);
}

/* Main Content */
main {
    margin-top: 0;
}

.container {
    padding: 0;
    max-width: 1400px;
    margin: 0 auto;
}

.main-title {
    text-align: center;
    color: var(--color-accent);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}

.main-subtitle {
    text-align: center;
    color: var(--theme-text-secondary);
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* Filter Section */
.filter-section {
    text-align: center;
    margin-bottom: 32px;
    padding: 0 16px;
}

.filter-section input[type="text"] {
    width: 100%;
    max-width: 600px;
    padding: 14px 24px;
    border-radius: 8px;
    border: 1px solid var(--theme-border-subtle);
    background: var(--theme-card-bg);
    color: var(--theme-text-primary);
    font-size: 15px;
    outline: none;
    transition: all .3s ease;
    box-shadow: var(--theme-shadow-sm);
}

.filter-section input[type="text"]::placeholder {
    color: var(--theme-text-muted);
}

.filter-section input[type="text"]:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, .1);
}

/* Predictions Grid */
.predictions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 0 16px;
}

.prediction-card {
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border-subtle);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: var(--theme-shadow-sm);
    transition: all .3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.prediction-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--theme-shadow-lg);
    background: var(--theme-card-hover-bg);
    border-color: var(--theme-border-main);
}

.image-overlay-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 14px;
    background: var(--theme-body-secondary);
    border: 1px solid var(--theme-border-subtle);
}

.prediction-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.prediction-card:hover .prediction-image {
    transform: scale(1.05);
}

.prediction-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, .9), rgba(0, 0, 0, .6));
    color: var(--color-accent-light);
    padding: 12px 10px;
    font-size: clamp(.85rem, 1.8vw, .95rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    z-index: 2;
}

.prediction-card .card-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.prediction-card .card-button {
    display: block;
    padding: 11px 18px;
    background: var(--color-secondary);
    color: #FFF;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    transition: all .3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: .5px;
    box-shadow: var(--theme-shadow-sm);
}

.prediction-card .card-button.live-draw {
    background: var(--color-primary);
}

.prediction-card .card-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--theme-shadow-md);
    opacity: .9;
}

.hot-label {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #D84315, #BF360C);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: 5px 10px;
    border-bottom-left-radius: 8px;
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: .5px;
    box-shadow: var(--theme-shadow-sm);
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
    padding: 16px;
}

.popup-content {
    background: var(--theme-card-bg);
    border-radius: 12px;
    padding: 50px 2px 2px 2px;
    width: 100%;
    max-width: 900px;
    position: relative;
    min-height: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--theme-border-subtle);
    box-shadow: var(--theme-shadow-lg);
    transform: scale(.95);
    opacity: 0;
    transition: all .3s ease;
    display: flex;
    flex-direction: column;
}

.popup.active .popup-content {
    transform: scale(1);
    opacity: 1;
}

.close-button {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    background: #f00;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(255, 0, 0, .4);
    transition: all .3s ease;
    z-index: 10001;
}

.close-button:hover {
    background: #c00;
    transform: scale(1.1) rotate(90deg);
}

.popup-content iframe {
    display: none;
    width: 100%;
    flex: 1;
    border-radius: 8px;
    border: none;
    background: var(--theme-body-secondary);
    min-height: 550px;
}

.popup-options-container {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 24px;
    padding: 16px;
}

.popup-options-container h3 {
    font-size: clamp(1.3rem, 3vw, 1.5rem);
    color: var(--color-accent);
    margin-bottom: 16px;
    text-align: center;
    font-weight: 700;
}

.macau-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    width: 100%;
    padding: 0;
    margin-bottom: 20px;
}

.macau-options-grid .card-button {
    padding: 16px 14px;
    background: var(--color-secondary);
    color: #FFF;
    border-radius: 8px;
    font-weight: 600;
    font-size: .95rem;
    transition: all .3s ease;
    border: 1px solid var(--theme-border-main);
    text-transform: uppercase;
    letter-spacing: .5px;
    box-shadow: var(--theme-shadow-sm);
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
}

.macau-options-grid .card-button:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--theme-shadow-md);
}

.popup-ad-space {
    width: 100%;
    margin-top: 24px;
    padding: 20px;
    background: var(--theme-body-secondary);
    border-radius: 8px;
    border: 1px solid var(--theme-border-subtle);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s;
}

.popup-ad-space:hover {
    transform: scale(1.02);
    border-color: var(--color-accent);
}

.popup-ad-space img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform .3s;
}

.popup-ad-space img:hover {
    transform: scale(1.05);
}

.popup-recommendations {
    width: 100%;
    margin-top: 20px;
    padding: 20px;
    background: var(--theme-body-secondary);
    border-radius: 8px;
    border: 1px solid var(--theme-border-subtle);
    margin-bottom: 8px;
}

.popup-recommendations h4 {
    font-size: 1.1rem;
    color: var(--color-accent);
    margin-bottom: 16px;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.recommendation-sites {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.recommendation-site-btn {
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: #FFF;
    border-radius: 8px;
    font-weight: 600;
    font-size: .9rem;
    text-align: center;
    transition: all .3s ease;
    border: 1px solid var(--theme-border-main);
    text-transform: uppercase;
    letter-spacing: .5px;
    box-shadow: var(--theme-shadow-sm);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.recommendation-site-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--theme-shadow-md);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.recommendation-site-btn.vip {
    background: linear-gradient(135deg, var(--color-accent) 0%, #B8960A 100%);
    border-color: var(--color-accent);
}

.recommendation-site-btn.vip:hover {
    background: linear-gradient(135deg, #B8960A 0%, var(--color-accent) 100%);
}

/* Footer */
footer {
    background: var(--theme-card-bg);
    color: var(--theme-text-secondary);
    text-align: center;
    padding: 32px 20px;
    margin-top: 60px;
    border-top: 1px solid var(--theme-border-subtle);
    font-size: 14px;
}

footer a {
    font-weight: 600;
    color: var(--color-accent);
    transition: color .3s ease;
}

footer a:hover {
    color: var(--color-accent-light);
}

/* Sticky Bottom Ad */
.sticky-bottom-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--theme-card-bg);
    border-top: 2px solid var(--theme-border-main);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .4);
    z-index: 9998;
    display: none;
    animation: slideUp .5s ease;
}

.sticky-bottom-ad.show {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.sticky-ad-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 50px 16px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    cursor: pointer;
    transition: background .3s ease;
}

.sticky-ad-content:hover {
    background: var(--theme-card-hover-bg);
}

.sticky-ad-content img {
    max-width: 100%;
    max-height: 100px;
    height: auto;
    display: block;
    object-fit: contain;
}

.sticky-ad-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: var(--color-secondary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--theme-shadow-sm);
    transition: all .3s ease;
    z-index: 10;
}

.sticky-ad-close:hover {
    background: #D84315;
    transform: scale(1.1);
}

.sticky-ad-label {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Scrollbar Styling */
.popup-content::-webkit-scrollbar {
    width: 8px;
}

.popup-content::-webkit-scrollbar-track {
    background: var(--theme-body-secondary);
    border-radius: 4px;
}

.popup-content::-webkit-scrollbar-thumb {
    background: var(--color-secondary);
    border-radius: 4px;
}

.popup-content::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Mobile - Small (Max 767px) */
@media (max-width: 767px) {
    .header {
        padding: 10px 16px;
    }
    
    .logo {
        width: 48px;
        height: 48px;
    }
    
    .site-name {
        font-size: 1em;
    }
    
    .datetime-display {
        font-size: .7em;
    }
    
    .btn-vip {
        padding: 8px 14px;
        font-size: 11px;
    }
    
    .btn-vip span {
        display: none;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .predictions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .action-buttons {
        max-width: 100%;
        gap: 12px;
    }
    
    .action-button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .ad-board-container {
        min-height: 180px;
    }
    
    .sticky-ad-content {
        padding: 12px 45px 12px 12px;
        min-height: 70px;
    }
    
    .sticky-ad-content img {
        max-height: 60px;
    }
    
    .sticky-ad-close {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    
    .floating-widgets {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }
    
    .floating-btn {
        width: 55px;
        height: 55px;
    }
    
    .floating-btn i {
        font-size: 1.5em;
    }
    
    .floating-btn::before {
        display: none;
    }
    
    .popup {
        padding: 12px;
    }
    
    .popup-content {
        max-width: 100%;
        padding: 45px 2px 2px 2px;
        max-height: 90vh;
        min-height: 400px;
    }
    
    .close-button {
        top: 5px;
        right: 5px;
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
    
    .popup-content iframe {
        min-height: 450px;
    }
    
    .popup-options-container {
        padding: 14px;
    }
    
    .popup-options-container h3 {
        font-size: 1.15rem;
        margin-bottom: 12px;
    }
    
    .macau-options-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
        margin-bottom: 16px;
    }
    
    .macau-options-grid .card-button {
        padding: 13px 10px;
        font-size: .88rem;
    }
    
    .popup-ad-space {
        padding: 16px;
        margin-top: 20px;
        min-height: 100px;
    }
    
    .popup-recommendations {
        padding: 16px;
        margin-top: 16px;
    }
    
    .popup-recommendations h4 {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
    
    .recommendation-sites {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .recommendation-site-btn {
        padding: 13px 18px;
        font-size: .85rem;
    }
    
    .trust-badges {
        gap: 10px;
        padding: 15px 16px;
    }
    
    .trust-badge {
        padding: 8px 15px;
        font-size: 11px;
    }
    
    .brand-watermark {
        font-size: 15vw;
        letter-spacing: 10px;
    }
    
    .ad-popup-content {
        max-width: 95%;
    }
    
    .ad-popup-close {
        width: 45px;
        height: 45px;
        top: -12px;
        right: -12px;
        font-size: 20px;
    }
}

/* Mobile - Extra Small (Max 480px) */
@media (max-width: 480px) {
    .logo {
        width: 45px;
        height: 45px;
    }
    
    .site-name {
        font-size: .9em;
    }
    
    .datetime-display {
        display: none;
    }
    
    .btn-vip {
        padding: 7px 12px;
        font-size: 11px;
        gap: 6px;
    }
    
    .predictions-grid {
        gap: 14px;
    }
    
    .prediction-card {
        padding: 12px;
    }
    
    .action-button {
        padding: 11px 16px;
        font-size: 13px;
    }
    
    .ad-board-container {
        min-height: 100px;
    }
    
    .sticky-ad-content {
        padding: 10px 40px 10px 10px;
        min-height: 60px;
    }
    
    .sticky-ad-content img {
        max-height: 50px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
    }
    
    .floating-btn i {
        font-size: 1.3em;
    }
    
    .popup-content {
        padding: 40px 2px 2px 2px;
    }
    
    .close-button {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
    
    .macau-options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .macau-options-grid .card-button {
        padding: 12px 8px;
        font-size: .82rem;
    }
    
    .popup-ad-space {
        padding: 12px;
        margin-top: 16px;
        min-height: 80px;
    }
    
    .popup-recommendations {
        padding: 14px;
        margin-top: 14px;
    }
}

/* Desktop - Large (Min 1200px) */
@media (min-width: 1200px) {
    .predictions-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 28px;
    }
}

/* Tablet (768px - 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    .predictions-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .header {
        padding: 12px 24px;
    }
    
    .site-name {
        font-size: 1.2em;
    }
    
    .datetime-display {
        font-size: .75em;
    }
}

/* Extra Small Mobile (Max 359px) */
@media (max-width: 359px) {
    .predictions-grid {
        grid-template-columns: 1fr;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* Print Styles */
@media print {
    .header,
    .banner-slider,
    .action-buttons,
    .filter-section,
    .popup,
    footer,
    .floating-widgets {
        display: none;
    }
}
