
/* Apply reset and global box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
background-color: rgba(241, 241, 241, 0.97);
    background-color: #e0e0e0;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure body takes at least the full viewport height */
}

/* Navbar styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 5px 10px;
    position: sticky;  /* Make the entire navbar sticky */
    top: 0;  /* Stick it at the top */
    z-index: 1000;  /* Ensure it stays on top of other contents */
    width: 100%;  /* Ensure it spans the full width */
    font-family: "Agency FB";
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.navbar-brand {
    flex: 0 0 auto;
    margin-right: 15px;
}

.navbar-menu {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
}

.navbar-left,
.navbar-right {
    display: flex;
    align-items: center;
}

.navbar-right {
    margin-left: auto;
}

.navbar-toggle {
    display: none;
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar ul.left {
    justify-content: flex-start;
}

.navbar ul.right {
    margin-left: auto;
    justify-content: flex-end;
}

.navbar li {
    margin-right: 15px;
}

.navbar a {
    display: flex;
    align-items: center;
    height: 38px;        /* reduced from 45px */
    padding: 0 12px;     /* tighter horizontal spacing */
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.navbar a:hover {
    background-color: #575757;
    border-radius: 5px;
}

.navbar .logo img {
    height: 77px;   /* match nav height */
    width: auto;
    display: block;
    margin-top: 10px;
}

/* Header styles */
header {
    background-color: rgba(15, 25, 152, 0.94);
    color: white;
    text-align: center;
    padding: 15px;
    border-bottom: 15px;
    height: 70px; /* Adjust header height as needed */
}

/* Footer styles */
footer {
    background-color: rgb(4, 43, 172);
    color: white;
    text-align: center;
    padding: 10px;
    bottom: 0;
    width: 100%;
    margin-top: auto; /* Push the footer to the bottom */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 22px;
}

.footer-copyright {
    margin: 0;
    white-space: nowrap;
}

/* Content styles */
.content {
    /* Optional container styling */
}

main {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.main-content-inner {
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
}




/* Sticky Navbar styles */
.sticky {
    position: fixed;
    top: 0;
    z-index: 1000;
}

/* Styling for the "Deposit" link */
.redeem {
    text-decoration: none; /* Remove default underline */
    color: #fff; /* White text color */
    background-color: #007BFF; /* Blue background for deposit */
    padding: 10px 20px; /* Padding to make the button bigger */
    font-size: 16px; /* Font size */
    font-weight: bold; /* Bold text for emphasis */
    border-radius: 5px; /* Rounded corners */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Hover effect for the "Deposit" link */
.redeem:hover {
    background-color: #0056b3; /* Darker blue on hover */
    transform: scale(1.05); /* Slight scaling effect for hover */
}

/* Focus effect for accessibility */
.store:focus {
    outline: none;
    border: 2px solid #0056b3; /* Blue border on focus */
}

/* Styling for the "Balance" link */
.balance {
    text-decoration: none; /* Remove default underline */
    color: #fff; /* White text color */
    background-color: #4CAF50; /* Green background for balance */
    font-size: 16px; /* Font size */
    font-weight: bold; /* Bold text for emphasis */
    border-radius: 5px; /* Rounded corners */
    transition: background-color 0.3s ease, color 0.3s ease; /* Only color changes on hover */
    position: relative;
    display: inline-block;
}


.balance-notification {
    position: absolute;
    right: -7px;
    bottom: -5px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #dc2626;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
}



/* Hover effect for the "Balance" link */
.balance:hover {
    background-color: #45a049; /* Slightly darker green on hover */
    color: #ffdf00; /* Change text color to gold on hover */
}

/* Focus effect for accessibility */
.balance:focus {
    outline: none;
    border: 2px solid #388e3c; /* Dark green border on focus */
}



.advertisement {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 25px;
    height: 75px;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;  /* Vertical */
    align-items: center;      /* Horizontal */
    background-color: #ff9d33;
    color: #333;
    text-align: center;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
}


.advertisement a {
    color: #007BFF; /* Blue link color */
    text-decoration: none; /* Remove underline */
    font-weight: bold; /* Bold for emphasis */
}

.advertisement a:hover {
    text-decoration: underline; /* Add underline on hover */
    color: #0056b3; /* Darker blue on hover */
}

.user-link {
    color: inherit;       /* Makes the link take the text color of its parent */
    text-decoration: none; /* Removes the underline */
    cursor: pointer;      /* Optional: keeps pointer cursor on hover */
}

.session-timeout-message {
    padding: 1rem;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin: 1rem 0;
}


.participation-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 16px;

    background: rgba(18, 21, 27, 0.82);

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.participation-modal {
    width: 100%;
    max-width: 660px;
    background: #f4f5f6;
    border: 1px solid #20252b;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.50);
}
.participation-modal::before {
    content: "PREDICTCLASH";

    display: block;

    padding: 10px 20px;

    background: #333;
    color: #ffffff;

    font-family: "Agency FB", sans-serif;
    font-size: 19px;
    font-weight: normal;
    letter-spacing: 2.5px;

    border-bottom: 3px solid #042bac;
}

.participation-modal h2 {
    margin: 0;

    padding: 20px 26px 6px;

    color: #20252b;

    font-family: "Agency FB", sans-serif;
    font-size: 32px;
    font-weight: normal;
    letter-spacing: 1px;

    text-align: left;
}

.participation-modal p {
    margin: 0;

    padding: 8px 26px 22px;

    color: #2f353c;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 15.5px;
    line-height: 1.6;

    text-align: left;
}

.participation-modal form {
    margin: 0;

    padding: 15px 26px 18px;

    display: flex;
    justify-content: flex-end;

    background: #e5e7e9;

    border-top: 1px solid #c7ccd1;
}

.participation-modal button {
    min-width: 205px;

    padding: 10px 20px;

    border: 1px solid #03238c;
    border-radius: 5px;

    background: #042bac;
    color: #ffffff;

    font-family: "Agency FB", sans-serif;
    font-size: 20px;
    font-weight: normal;
    letter-spacing: 1px;

    cursor: pointer;

    box-shadow:
            0 2px 6px rgba(0, 0, 0, 0.22);

    transition:
            background-color 0.18s ease,
            transform 0.15s ease;
}

.participation-modal button:hover {
    background: #333;
    border-color: #333;

    transform: translateY(-1px);
}

.participation-modal button:active {
    transform: translateY(0);
}

.participation-modal button:focus-visible {
    outline: 3px solid rgba(4, 43, 172, 0.30);
    outline-offset: 3px;
}


/* Phone */
/* Phone */
@media (max-width: 600px) {

    .participation-overlay {
        padding: 12px;
        align-items: flex-start;

        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .participation-modal {
        max-width: 100%;

        margin: 12px 0;

        border-radius: 7px;
    }

    .participation-modal::before {
        padding: 8px 14px;

        font-size: 16px;
        letter-spacing: 2px;
    }

    .participation-modal h2 {
        padding: 16px 16px 4px;

        font-size: 27px;
    }

    .participation-modal p {
        padding: 6px 16px 16px;

        font-size: 14.5px;
        line-height: 1.5;
    }

    .participation-modal form {
        padding: 12px 16px 14px;
    }

    .participation-modal button {
        width: 100%;
        min-width: 0;

        padding: 11px 14px;

        font-size: 18px;
    }
}


/* Very small or short phone screens */
@media (max-width: 400px), (max-height: 700px) {

    .participation-overlay {
        padding: 8px;

        align-items: flex-start;
        overflow-y: auto;
    }

    .participation-modal {
        margin: 8px 0;
    }

    .participation-modal::before {
        padding: 7px 12px;

        font-size: 15px;
    }

    .participation-modal h2 {
        padding: 13px 14px 3px;

        font-size: 24px;
    }

    .participation-modal p {
        padding: 5px 14px 13px;

        font-size: 13.5px;
        line-height: 1.45;
    }

    .participation-modal form {
        padding: 10px 14px 12px;
    }

    .participation-modal button {
        padding: 10px 12px;

        font-size: 17px;
    }
}

/* ==========================================
   PRIVACY POLICY
   ========================================== */

.privacy-page {
    width: 100%;
    padding: 0 20px 45px;
    font-family: Arial, Helvetica, sans-serif;
}

.privacy-policy {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    overflow: hidden;
    background: #f4f5f6;
    border: 1px solid #20252b;
    border-radius: 8px;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.18);
}

.privacy-policy::before {
    content: "PREDICTCLASH";
    display: block;
    padding: 10px 26px;
    background: #333;
    color: #fff;
    font-family: "Agency FB", Arial, sans-serif;
    font-size: 19px;
    letter-spacing: 2.5px;
    border-bottom: 3px solid #042bac;
}

.privacy-policy-header {
    height: auto;
    padding: 22px 28px 20px;
    color: #20252b;
    text-align: left;
    background: #e5e7e9;
    border-bottom: 1px solid #c7ccd1;
}

.privacy-policy-header h1 {
    margin: 0 0 5px;
    color: #20252b;
    font-family: "Agency FB", Arial, sans-serif;
    font-size: 38px;
    font-weight: normal;
    line-height: 1;
    letter-spacing: 1px;
}

.privacy-effective-date {
    margin: 0;
    color: #5a6168;
    font-size: 14px;
    font-weight: bold;
}

.privacy-policy-content {
    padding: 26px 28px 34px;
}

.privacy-introduction {
    margin: 0 0 8px;
    padding: 15px 17px;
    color: #2f353c;
    background: #fff;
    border: 1px solid #c7ccd1;
    border-left: 4px solid #042bac;
    border-radius: 4px;
    font-size: 15.5px;
    line-height: 1.6;
}

.privacy-section {
    padding: 24px 0;
    border-bottom: 1px solid #c7ccd1;
}

.privacy-section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.privacy-section h2 {
    margin: 0 0 15px;
    padding-left: 12px;
    color: #20252b;
    font-family: "Agency FB", Arial, sans-serif;
    font-size: 28px;
    font-weight: normal;
    line-height: 1.15;
    letter-spacing: 0.5px;
    border-left: 4px solid #042bac;
}

.privacy-section p {
    margin: 0 0 14px;
    color: #2f353c;
    font-size: 15px;
    line-height: 1.65;
}

.privacy-section p:last-child {
    margin-bottom: 0;
}

.privacy-section ul {
    margin: 10px 0 16px;
    padding-left: 28px;
}

.privacy-section li {
    margin: 7px 0;
    color: #2f353c;
    font-size: 15px;
    line-height: 1.55;
}

.privacy-section li::marker {
    color: #042bac;
}

.privacy-section a {
    color: #042bac;
    font-weight: bold;
    text-decoration: none;
}

.privacy-section a:hover {
    color: #333;
    text-decoration: underline;
}

.privacy-notice {
    margin: 17px 0;
    padding: 14px 16px;
    background: #e8ebf3;
    border: 1px solid #c1c7d6;
    border-left: 4px solid #042bac;
    border-radius: 4px;
}

.privacy-notice p {
    margin: 0;
    color: #252b31;
}

/* Phone */
@media (max-width: 600px) {
    .privacy-page {
        padding: 0 10px 30px;
    }

    .privacy-policy {
        border-radius: 6px;
    }

    .privacy-policy::before {
        padding: 8px 16px;
        font-size: 16px;
        letter-spacing: 2px;
    }

    .privacy-policy-header {
        padding: 17px 18px 15px;
    }

    .privacy-policy-header h1 {
        font-size: 31px;
    }

    .privacy-effective-date {
        font-size: 13px;
    }

    .privacy-policy-content {
        padding: 18px 18px 25px;
    }

    .privacy-introduction {
        padding: 13px 14px;
        font-size: 14.5px;
    }

    .privacy-section {
        padding: 20px 0;
    }

    .privacy-section h2 {
        margin-bottom: 12px;
        padding-left: 10px;
        font-size: 24px;
    }

    .privacy-section p,
    .privacy-section li {
        font-size: 14.5px;
    }
}

/* Very small phones */
@media (max-width: 400px) {
    .privacy-page {
        padding-right: 7px;
        padding-left: 7px;
    }

    .privacy-policy-content {
        padding-right: 14px;
        padding-left: 14px;
    }

    .privacy-policy-header {
        padding-right: 14px;
        padding-left: 14px;
    }

    .privacy-section h2 {
        font-size: 22px;
    }
}

.footer-links {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    margin: 0;
}

.account-menu-item {
    position: relative;
}

.account-menu {
    position: relative;
}

.account-menu-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 50%;
    background: #24262a;
    cursor: pointer;
    list-style: none;
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        box-shadow 0.16s ease;
}

.account-menu-summary::-webkit-details-marker {
    display: none;
}

.account-menu-summary:hover,
.account-menu[open] > .account-menu-summary {
    border-color: #ff0090;
    background: #181a1d;
    box-shadow: 0 0 0 2px rgba(255, 0, 144, 0.24);
}

.account-menu-summary:focus-visible {
    outline: 3px solid #ff0090;
    outline-offset: 3px;
}

.account-avatar-wrap {
    position: relative;
    display: block;
    width: 38px;
    height: 38px;
}

.account-avatar {
    display: block;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.account-avatar-badge {
    position: absolute;
    top: 25px;
    right: -7px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #dc2626;;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
}

.navbar .account-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1200;
    display: grid;
    width: 230px;
    padding: 6px;
    border: 1px solid #5c5e62;
    border-top: 3px solid #dc2626;
    background: #181a1d;
    box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.24);
}

.navbar .account-dropdown::before {
    position: absolute;
    top: -9px;
    right: 17px;
    width: 13px;
    height: 13px;
    border-top: 1px solid #dc2626;
    border-left: 1px solid #dc2626;
    background: #181a1d;
    content: "";
    transform: rotate(45deg);
}

.navbar .account-dropdown li {
    width: 100%;
    margin: 0;
}

.navbar .account-dropdown a {
    justify-content: space-between;
    width: 100%;
    min-height: 43px;
    height: auto;
    padding: 9px 11px;
    border-left: 3px solid transparent;
    border-radius: 0;
    color: #f7f7f4;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.navbar .account-dropdown a:hover,
.navbar .account-dropdown a:focus-visible,
.navbar .account-dropdown a[aria-current="page"] {
    border-left-color: #dc2626;
    border-radius: 0;
    background: #303237;
}

.navbar .account-dropdown a:focus-visible {
    outline: 2px solid #dc2626;
    outline-offset: -2px;
}

.account-dropdown-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border: 1px solid #fff;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.footer-links a {
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

.footer-links a:hover {
    text-decoration: underline;
}

.agreement-confirmation {
    padding-top: 0 !important;
}

.agreement-confirmation a {
    color: #042bac;
    font-weight: bold;
}

.agreement-confirmation a:hover {
    color: #333;
}

/* ==========================================
   SUPPORT
   ========================================== */

.support-page {
    width: 100%;
    padding: 0 20px 45px;
    font-family: Arial, Helvetica, sans-serif;
}

.support-panel {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 28px;
    background: #fff;
    border: 1px solid #c7ccd1;
    border-radius: 6px;
}

.support-panel h1 {
    margin: 0 0 10px;
    color: #20252b;
    font-family: "Agency FB", Arial, sans-serif;
    font-size: 36px;
    font-weight: normal;
    line-height: 1;
    letter-spacing: 1px;
}

.support-panel > p {
    margin: 0;
    color: #333;
    font-size: 15px;
    line-height: 1.5;
}

.support-contacts {
    margin: 22px 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #d8dce0;
}

.support-contacts li {
    padding: 12px 0;
    overflow-wrap: anywhere;
    color: #042bac;
    border-bottom: 1px solid #d8dce0;
    font-size: 14px;
}

.support-contacts strong {
    display: inline-block;
    width: 85px;
    color: #20252b;
}

.support-panel > .support-placeholder-note {
    color: #6a4a00;
    font-size: 13px;
}

@media (max-width: 600px) {
    .support-page {
        padding: 0 10px 30px;
    }

    .support-panel {
        padding: 22px 18px;
    }
}
