/* Global Styles */
:root {
    --bg-color: #f5f5f5;
    --text-color: #333;
    --primary-blue: #0056b3;
    --border-color: #ddd;
    --card-bg: #fff;
    --bottom-bar-bg: #222;
    --gold: #FFD700;
    --silver: #C0C0C0;
    --bronze: #CD7F32;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-color);
    width: 100%;
    min-height: 100vh;
    position: relative;
    /* For background positioning */
    overflow-x: hidden;
}

/* Background Watermark for Desktop */
body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%230056b3"  opacity="0.05" d="M256 0c-40 0-70 15-100 40C100 80 50 150 50 250s50 170 106 210c30 25 60 40 100 40s70-15 100-40c56-40 106-110 106-210S412 80 356 40C326 15 296 0 256 0z"/></svg>');
    /* Simple shield placeholder SVG data URI */
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: -1;
    pointer-events: none;
}

/* Header */
.main-header {
    background: #fff;
    border-bottom: 2px solid #ccc;
    text-align: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
}

.logo-icon i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-right: 10px;
    background: linear-gradient(135deg, #007bff, #002a80);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ig-large {
    font-size: 2rem;
    font-weight: 900;
    color: #00509d;
    line-height: 1;
}

.ig-small {
    font-size: 0.7rem;
    font-weight: bold;
    color: #003366;
    letter-spacing: 1px;
}

.notice-bar {
    background: #e0e0e0;
    padding: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #999;
}

/* Main Content */
main {
    padding: 15px;
}

.card-section {
    background: var(--card-bg);
    border: 2px solid #666;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.simple-header {
    align-items: center;
}

.left-col h3 {
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.medals {
    display: flex;
    gap: 8px;
    align-items: center;
    /* Align items vertically */
}

/* Replaced by images */
/* .medal { font-size: 1.2rem; } */
/* .medal.gold { color: var(--gold); } */
/* .medal.silver { color: var(--silver); } */
/* .medal.bronze { color: var(--bronze); } */

.medal-img {
    width: 20px;
    /* Adjust size as needed, user said 'too big' might refer to something else, but keeping these small is safe for headers */
    height: auto;
    object-fit: contain;
}

.brand-logo-box {
    border: 2px solid #333;
    padding: 5px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 4px;
}

.brand-logo-box .tiny-text {
    font-size: 0.5rem;
    font-weight: bold;
    text-transform: uppercase;
}

.brand-logo-box .large-text {
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
}

.supported-badge {
    border: 1px solid #333;
    border-radius: 20px;
    padding: 2px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: bold;
    font-size: 0.7rem;
}

/* Grids */
.partners-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.partners-grid-1 {
    display: flex;
    justify-content: center;
}

.partners-grid-1 .partner-card {
    width: 32%;
    /* Match roughly 1/3 width of the grid items */
    max-width: 120px;
    /* Prevent being too huge on larger mobile screens */
}

.center-item {
    width: 100%;
    margin-top: 10px;
}

.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-placeholder {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 5px;
    overflow: hidden;
    position: relative;
    border: 1px solid #ddd;
}

.partner-name {
    background: black;
    color: white;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 4px;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.partner-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* or contain depending on look */
    border-radius: 10px;
}

/* Logo Color Variants */
.blue {
    background: #000080;
    color: white;
}

.white {
    background: #fff;
    color: #333;
}

/* Header Logo Images */
.header-logo-img {
    height: 40px;
    /* Adjust height to fit header */
    width: auto;
    object-fit: contain;
}

.header-logo-img-small {
    height: 30px;
    width: auto;
    object-fit: contain;
    margin-left: 10px;
}


.red {
    background: #800000;
}

.purple-light {
    background: #E6E6FA;
    color: #333;
}

.image-bg {
    background: linear-gradient(to bottom, #87CEEB, #000080);
}

.gold-black {
    background: radial-gradient(circle, #DAA520, #000);
}

.black {
    background: #000;
}

.white-border {
    background: #fff;
    color: #000;
    border: 2px solid #ccc;
}

.purple-circle {
    background: #fff;
    border: 2px solid #000;
}

.blue-gradient {
    background: linear-gradient(135deg, #000044, #000088);
}

/* Specific internal logo styling mostly for mockup */
.logo-placeholder span {
    z-index: 1;
}

.au {
    font-size: 1.2rem;
    color: yellow;
}

.green {
    color: green;
    font-size: 1.2rem;
}

.orange {
    color: orange;
    font-size: 1.2rem;
}

.purple-circle::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    background: #4b0082;
    border-radius: 50%;
}

.purple-circle span {
    color: white;
    z-index: 2;
}


/* Bottom Bar */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bottom-bar-bg);
    /* Dark gradient in image really */
    background: linear-gradient(to top, #1a1a1a, #444);
    height: 60px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: white;
    border-top: 2px solid #555;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 0.6rem;
    font-weight: bold;
    flex: 1;
}

.nav-item i {
    font-size: 1.2rem;
    /* Icon size */
    margin-bottom: 2px;
}

.nav-icon-gif {
    height: 25px;
    /* Adjust to match icon size approx */
    width: auto;
    margin-bottom: 2px;
    object-fit: contain;
}

.nav-item span {
    font-size: 0.7rem;
}

.nav-item:hover,
.nav-item.active {
    color: #ddd;
}

.icon-wrapper {
    position: relative;
    display: inline-block;
}

.badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: orange;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    border: 1px solid white;
}

.separator {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #aaa, transparent);
    transform: skewX(-20deg);
}

/* --- Desktop / Responsive Styles: Centered Mobile View --- */
@media (min-width: 768px) {

    /* Frame the app in the center */
    html {
        background-color: #333;
        /* Dark background outside the app */
        background-image: linear-gradient(to bottom, #444, #222);
        min-height: 100vh;
    }

    body {
        max-width: 480px;
        margin: 0 auto;
        background-color: var(--bg-color);
        min-height: 100vh;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
        border-left: 1px solid #444;
        border-right: 1px solid #444;
        position: relative;
    }

    /* Fix fixed elements to respect the centered container */
    .bottom-bar {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
        border-right: 1px solid #444;
        /* Match body border */
        border-left: 1px solid #444;
    }

    /* Hide the large desktop watermark */
    body::before {
        display: none;
    }

    /* Ensure header and other fixed/absolute elements behave */
    .modal-overlay {
        width: 480px;
        /* Explicit width to match body */
        left: 50%;
        margin-left: -240px;
        /* Explicit centering */
        transform: none;
        /* Remove transform to avoid sub-pixel blurring or conflicts */
    }

    /* Optional: Scrollbar styling for desktop to look cleaner */
    ::-webkit-scrollbar {
        width: 8px;
    }

    ::-webkit-scrollbar-track {
        background: #333;
    }

    ::-webkit-scrollbar-thumb {
        background: #666;
        border-radius: 4px;
    }
}

/* --- Home Page Styles --- */

/* Welcome Section */
.welcome-section {
    padding: 20px 10px;
}

.welcome-section h2 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
}


/* --- Popup Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    padding: 15px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-header h2 {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.modal-header hr {
    border: 0;
    border-top: 1px solid #333;
    margin: 5px 0;
}

.modal-subtitle {
    font-weight: bold;
    margin-bottom: 10px;
}

.modal-banner-container {
    width: 100%;
    height: 150px;
    /* Locked size as requested */
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #f0f0f0;
}

.modal-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures image fills box without stretching */
}

.modal-conditions ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.modal-conditions li {
    background: #2c3e50;
    /* Dark slate */
    color: white;
    margin-bottom: 2px;
    padding: 8px 10px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-conditions li i {
    color: #2eff2e;
    /* Bright green check */
}

.modal-conditions li.review-link {
    background: #2c3e50;
    color: white;
}

.modal-conditions li.review-link i {
    color: gold;
}

.modal-conditions li.review-link a {
    color: #00bfff;
    text-decoration: underline;
    margin: 0 3px;
}

/* Verified Banner inside Modal */
.modal-verified-banner {
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.verified-logo-area {
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-icon-v {
    font-size: 1.5rem;
    color: #0056b3;
}

.v-text {
    display: flex;
    flex-direction: column;
}

.v-large {
    font-weight: 900;
    font-size: 1rem;
    line-height: 1;
}

.v-small {
    font-size: 0.4rem;
}

.verified-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.v-label {
    font-size: 0.5rem;
    font-weight: bold;
    white-space: nowrap;
}

.v-label i {
    color: #00bfff;
}

.v-sub {
    font-size: 0.6rem;
    font-weight: 900;
}

.join-btn-small {
    background: #0033cc;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.6rem;
    font-weight: bold;
    margin-top: 2px;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 15px;
}

.modal-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
}

.close-btn {
    background: #dc3545;
    /* Red */
    box-shadow: 0 4px 0 #bd2130;
}

.get-btn {
    background: #28a745;
    /* Green */
    box-shadow: 0 4px 0 #218838;
}


.verified-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.verified-box h3 {
    font-size: 1.2rem;
    font-weight: 800;
}

.verify-icon {
    color: #00bfff;
    /* Light blue checkmark color */
    font-size: 1.5rem;
}

.disclaimer {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #555;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
}

/* Refer Section */
.refer-section {
    background: white;
    padding: 20px;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.refer-section h3 {
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.refer-content p {
    font-size: 0.8rem;
    margin-bottom: 10px;
    color: #444;
}

.refer-image-placeholder {
    width: 100%;
    height: 150px;
    background: #eee;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ccc;
    margin-top: 15px;
}

/* Latest Rec Section */
.latest-rec-section {
    margin-bottom: 30px;
}

.latest-rec-section h3 {
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.rec-container {
    border: 3px solid black;
    border-radius: 20px;
    padding: 10px;
    background: white;
    display: flex;
    flex-direction: column;
    /* Mobile: Stacked or maybe row depending on design. Screenshot shows left card, right grid */
    flex-direction: row;
    gap: 10px;
    overflow: hidden;
}

.rec-main-card {
    flex: 1;
    /* Take portion of width */
    min-width: 120px;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid #eee;
    padding-right: 10px;
}

.rec-logo {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rec-logo i {
    font-size: 3rem;
    color: #00baa0;
    /* Gradient color sim */
}

.rec-skg {
    font-size: 2rem;
    font-weight: 900;
    color: #0056b3;
}

.rec-sub {
    font-size: 0.5rem;
    font-weight: bold;
}

.skg-main-logo {
    width: 100%;
    max-width: 150px;
    height: auto;
    object-fit: contain;
}

.check-casinos-btn {
    background: #0044cc;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    width: 100%;
    animation: pulse-animation 1.5s infinite ease-in-out;
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.footer-img {
    width: 100%;
    max-width: 180px;
    /* Smaller as requested */
    height: auto;
    display: block;
    margin: 5px 0 15px 0;
}

.footer-info p {
    font-weight: bold;
    font-size: 0.8rem;
    color: #333;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.rec-grid {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.grid-item {
    aspect-ratio: 1;
    background: #333;
    border-radius: 5px;
    overflow: hidden;
}

.rec-grid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Footer Info Section */
.footer-info {
    font-size: 0.8rem;
    color: #444;
    padding-bottom: 80px;
    /* Space for nav bar */
}

.logo-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}

.badge-placeholder {
    background: black;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
}

.eighteen-plus {
    background: red;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 0 0 1px red;
}


/* --- SEO Collapsible Section Styles --- */
.seo-content-collapsible {
    padding: 20px 10px;
    max-width: 800px;
    margin: 30px auto;
    text-align: center;
    border-top: 1px solid #ddd;
}

.seo-text {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease;
    opacity: 0;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    margin-top: 10px;
}

.seo-text.visible {
    max-height: 2000px;
    opacity: 1;
}

.seo-toggle-btn {
    background: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.seo-toggle-btn:hover {
    background: var(--primary-blue);
    color: white;
}

.seo-text h2 {
    font-size: 1.3rem;
    color: #222;
    margin-bottom: 15px;
    margin-top: 20px;
}

.seo-text h3 {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 10px;
    margin-top: 15px;
}

.seo-text p {
    margin-bottom: 15px;
}