/* General Setup */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #121212;
    color: #ffffff;
    font-family: Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden; /* FIX: prevent horizontal scroll */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 5%;
}

/* Header & Nav */
.logo-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-logo {
    height: 50px;
    width: auto;
    display: block;
    border-radius: 4px;
    object-fit: contain;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background: #1a1a1a;
    min-height: 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-sizing: border-box; /* FIX */
}

/* Hero Logo Styling */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    padding: 0 5%; /* FIX: prevent overflow on mobile */
}

.hero-logo {
    width: 100%;          /* FIX: fluid instead of fixed 400px */
    max-width: 400px;
    height: auto;         /* FIX: auto height */
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    object-fit: cover;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 20px 5%;
    }
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.logo {
    font-weight: bold;
    font-size: 1.4rem;
}

.logo span {
    color: #e31e24;
}

.link-gold {
    color: #f0e68c;
    text-decoration: underline;
    font-size: 10px;
    font-weight: bold;
}

.btn-signup {
    background-color: #f5f0d3;
    color: #000;
    font-size: 10px;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Titles */
.main-title-straight {
    width: 100%;
    font-size: 35px;
    display: block;
    white-space: normal;       /* FIX: was nowrap — allow wrapping on mobile */
    word-break: break-word;    /* FIX: prevent overflow */
    text-align: left;
    padding: 10px 5%;          /* FIX: use % padding, not px */
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .main-title-straight {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .main-title-straight {
        font-size: 0.9rem;
    }
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

/* ============================================
   FLIP CARDS
   ============================================ */

.flipcard-section {
    padding: 50px 5%;
    background: #121212;
}

.flipcard-section__title {
    font-size: 2rem;
    color: #f0e68c;
    margin-bottom: 36px;
    padding-left: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-left: 4px solid #e31e24;
}

/* FIX: proper responsive grid */
.flipcard-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.flipcard {
    perspective: 1000px;
    height: 350px;
    width: 350px;
    max-width: 100%;   /* FIX: don't overflow on small screens */
    cursor: pointer;
}

/* FIX: on very small screens, shrink cards */
@media (max-width: 400px) {
    .flipcard {
        width: 90vw;
        height: 90vw;
    }
}

.flipcard__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
}

.flipcard:hover .flipcard__inner {
    transform: rotateY(180deg);
}

.flipcard__front,
.flipcard__back {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}

.flipcard__front {
    background: #1e1e1e;
    border: 1px solid #2e2e2e;
}

.flipcard__front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s ease;
}

.flipcard:hover .flipcard__front img {
    transform: scale(1.06);
}

.flipcard__label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.82), transparent);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    padding: 18px 14px 12px;
    letter-spacing: 0.02em;
}

.flipcard__back {
    background: #1a1a1a;
    border: 2px solid #f0e68c;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 18px rgba(240, 230, 140, 0.18),
                inset 0 0 30px rgba(240, 230, 140, 0.05);
}

.flipcard__back-img {
    width: 100%;
    height: calc(100% - 60px);
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.flipcard__back-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
    color: #f0e68c;
    text-align: center;
    letter-spacing: 0.03em;
}

.flipcard__btn {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #116999;
    backdrop-filter: blur(8px);
    border: none;
    border-top: 2px solid #f0e68c;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f0e68c;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 0 10px rgba(240, 230, 140, 0.35),
                0 0 24px rgba(240, 230, 140, 0.15);
    white-space: nowrap;
}

.flipcard__btn:hover {
    background: #f0e68c;
    color: #000;
    box-shadow: 0 0 18px rgba(240, 230, 140, 0.7),
                0 0 40px rgba(240, 230, 140, 0.3);
}

@media (max-width: 480px) {
    .flipcard {
        height: 240px;
    }
    .flipcard-section__title {
        font-size: 1.4rem;
    }
}

/* ============================================
   INTRO GRID
   ============================================ */

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 70px;
    align-items: center;
    padding: 0 5%; /* FIX */
    box-sizing: border-box;
}

/* FIX: stack on mobile */
@media (max-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 5%;
    }
}

.intro-text {
    padding-left: 0; /* FIX: was 100px which broke mobile */
    font-size: 20px;
}

@media (min-width: 1024px) {
    .intro-text {
        padding-left: 40px;
    }
}

.btn-access {
    background-color: #f5f0d3;
    color: #000;
    border: none;
    padding: 20px 50px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 25px;
    transition: transform 0.2s;
    max-width: 100%; /* FIX */
}

.btn-access:hover {
    transform: scale(1.05);
}

.sub-nav {
    margin-top: 60px;
    font-size: 15px;
    margin-left: 0; /* FIX */
}

.sub-nav a {
    color: #f0e68c;
    text-decoration: underline;
}

/* Status Card */
.status-card {
    background: #1e1e1e;
    padding: 15px;
    border-left: 6px solid #e31e24;
    border-radius: 8px;
    font-size: 15px;
    height: auto;       /* FIX: was fixed 150px */
    width: 100%;        /* FIX: was fixed 500px */
    max-width: 500px;
    box-sizing: border-box;
    padding-top: 10px;
}

.status-card ul {
    list-style: none;
    padding: 0;
}

.pulse-dot {
    height: 15px;
    width: 15px;
    background-color: #e31e24;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    box-shadow: 0 0 8px #e31e24;
}

/* Snapshot */
.snapshot {
    padding: 0 5%; /* FIX */
    box-sizing: border-box;
}

.section-title {
    font-size: 20px;
    padding-left: 0; /* FIX */
}

.stats-list {
    font-size: 15px;
    padding-left: 30px; /* FIX: was 220px — way too much for mobile */
}

/* Identity Hub */
.identity-hub {
    margin: 40px 0;
    padding: 0 5%; /* FIX: was 100px fixed */
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .identity-hub {
        padding: 0 100px;
    }
}

.quick-links-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.quick-links-group a {
    font-size: 20px;
    display: block;
    text-decoration: underline;
    margin-bottom: 5px;
}

.quick-links-group a.link-gold {
    font-size: 15px;
}

.divider-line {
    width: 100px;
    height: 1px;
    background-color: #333;
    margin: 30px 0;
}

.confirmation-box {
    display: flex;
    gap: 20px;
    max-width: 100%;
}

.accent-bar {
    width: 4px;
    background-color: #f0e68c;
    flex-shrink: 0;
}

.confirmation-content {
    color: #cccccc;
    font-size: 20px;
    padding-right: 10px; /* FIX: was 40px */
}

.confirmation-content strong {
    color: #ffffff;
}

/* FAQ Section */
.faq-section {
    margin: 60px 0;
    padding: 0 5%; /* FIX */
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .faq-section {
        padding: 0 100px;
    }
}

.faq-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 30px;
}

.faq-grid {
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .faq-card-wide {
        grid-column: span 1;
    }
}

.faq-card {
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 25px 30px;
    min-height: 50px;
}

.faq-card p {
    margin: 0 0 8px 0;
    font-size: 15px;
}

.faq-card a.link-gold {
    font-size: 10px;
    text-decoration: underline;
}

.faq-card-wide {
    grid-column: span 2;
}

/* Quick Navigation */
.quick-nav-section {
    margin: 60px 0;
    padding: 0 5%; /* FIX */
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .quick-nav-section {
        padding: 0 100px;
    }
}

.quick-nav-title {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 20px;
}

.quick-nav-list li {
    font-size: 15px;
}

.quick-nav-list {
    list-style: disc;
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-nav-list li a {
    color: #f0e68c;
    text-decoration: none;
    font-size: 15px;
}

.quick-nav-list li a:hover {
    text-decoration: underline;
}

/* Updates */
.updates-box {
    margin: 0 5%; /* FIX: was fixed px margin */
    padding: 20px 5%; /* FIX */
    background: #1e1e1e;
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .updates-box {
        margin: 0 60px;
        padding: 20px 60px;
    }
}

.updates-title {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 30px;
}

.update-item {
    margin-bottom: 25px;
}

.update-item p {
    margin: 0 0 5px 0;
    font-size: 15px;
}

.update-detail {
    color: #cccccc;
    font-size: 12px;
}

.updates-box a.link-gold {
    font-size: 12px;
}

/* About Section */
.about-section {
    margin: 60px 0;
    padding: 0 5%; /* FIX */
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .about-section {
        padding: 0 100px;
    }
}

.about-title {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 20px;
}

.about-image-wrapper {
    width: 100%;
    height: auto;           /* FIX: was fixed 500px */
    min-height: 200px;
    background-color: rgb(26, 26, 26);
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    overflow: hidden;
    padding: 20px 0 30px; /* FIX: give space for logo inside */
    box-sizing: border-box;
}

.about-logo-overlay {
    position: relative; /* FIX: was absolute which broke layout on mobile */
    background-color: #000;
    border-radius: 12px;
    padding: 10px;
}

.about-logo {
    display: block;
    border-radius: 8px;
    width: 100%;         /* FIX: fluid */
    max-width: 300px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.about-content p {
    font-size: 15px;
    color: #cccccc;
    margin-bottom: 15px;
    line-height: 1.7;
}

.about-list {
    list-style: disc;
    padding-left: 25px;
    margin-top: 10px;
}

.about-list li {
    font-size: 15px;
    color: #cccccc;
    margin-bottom: 8px;
}

.about-list li strong {
    color: #ffffff;
}

/* Entertainment Categories */
.categories-section {
    margin: 60px 0;
    padding: 0 5%; /* FIX */
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .categories-section {
        padding: 0 100px;
    }
}

.categories-title {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 25px;
}

.category-card {
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 20px 25px;
    margin-bottom: 15px;
}

.category-card p {
    margin: 0 0 6px 0;
    font-size: 15px;
}

.category-card strong {
    font-size: 20px;
    color: #ffffff;
}

.category-desc {
    color: #cccccc;
}

.category-card .link-gold {
    font-size: 12px;
}

/* Mobile Access & App Guide */
.app-guide-section {
    margin: 60px 0;
    padding: 0 5%; /* FIX */
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .app-guide-section {
        padding: 0 100px;
    }
}

.app-guide-title {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 20px;
}

.app-guide-image-wrapper {
    width: 100%;
    max-width: 400px;
    height: auto;      /* FIX: was 350px fixed */
    background-color: #1e1e1e;
    border-radius: 10px;
    margin: 0 auto 30px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-guide-logo {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
}

.app-guide-block {
    margin-bottom: 20px;
}

.app-guide-block p {
    margin: 0 0 5px 0;
    font-size: 15px;
}

.app-guide-desc {
    color: #cccccc;
}

.app-guide-note {
    border-left: 4px solid #f0e68c;
    padding-left: 15px;
    margin-bottom: 25px;
    color: #cccccc;
    font-size: 18px; /* FIX: was 20px, can overflow on mobile */
}

.app-guide-note strong {
    color: #ffffff;
}

.app-guide-content a.link-gold {
    font-size: 12px;
}

/* Transaction Speed & Methods */
.transaction-section {
    margin: 60px 0;
    padding: 0 5%; /* FIX */
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .transaction-section {
        padding: 0 100px;
    }
}

.transaction-title {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 20px;
}

.payment-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 25px;
}

@media (max-width: 480px) {
    .payment-images {
        grid-template-columns: 1fr;
    }
}

.payment-img-box {
    height: 180px; /* FIX: reduced from 250px for mobile */
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gcash-box {
    background-color: #bfe5ff;
}

.maya-box {
    background-color: #070d07;
}

.payment-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.transaction-intro {
    font-size: 16px; /* FIX: was 20px */
    color: #cccccc;
    margin-bottom: 20px;
}

/* FIX: make table horizontally scrollable on small screens */
.transaction-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.transaction-table {
    width: 100%;
    min-width: 400px; /* FIX: ensures table doesn't collapse */
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 12px;
}

.transaction-table th,
.transaction-table td {
    border: 1px solid #333;
    padding: 12px 15px;
    text-align: left;
}

.transaction-table thead tr {
    background-color: #1e1e1e;
    color: #ffffff;
}

.transaction-table tbody tr {
    background-color: #121212;
    color: #cccccc;
}

.transaction-table tbody tr:hover {
    background-color: #1e1e1e;
}

.transaction-table td strong {
    color: #ffffff;
}

.transaction-disclaimer {
    font-size: 12px;
    color: #888;
    font-style: italic;
    margin-bottom: 15px;
}

.transaction-section a.link-gold {
    font-size: 12px;
}

/* Support & Navigation FAQ */
.support-faq-section {
    margin: 60px 0;
    padding: 0 5%; /* FIX */
    box-sizing: border-box;
}

@media (min-width: 1024px) {
    .support-faq-section {
        padding: 0 100px;
    }
}

.support-faq-title {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 25px;
}

.support-faq-item {
    margin-bottom: 25px;
}

.support-faq-item p {
    margin: 0 0 8px 0;
    font-size: 15px;
}

.support-faq-answer {
    color: #cccccc;
    line-height: 1.7;
}

.support-faq-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.support-faq-links .link-gold {
    font-size: 12px;
}

/* Callouts */
.info-callout {
    padding: 0 5%; /* FIX */
    color: #b3b3b3;
    font-size: 10px;
    margin-top: 20px;
}

/* ============================================
   AGENT RECRUITMENT SECTION
   ============================================ */

.agent-toggle-input {
    display: none;
}

.agent-section {
    padding: 60px 5%;
}

.agent-box {
    width: 100%;         /* FIX: was fixed 380px */
    max-width: 380px;
    height: auto;        /* FIX: was fixed 150px */
    margin: 0 auto;
    background: #1a1a1a;
    border: 2px solid #f0e68c;
    border-radius: 16px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(240, 230, 140, 0.1),
                inset 0 0 40px rgba(240, 230, 140, 0.03);
    box-sizing: border-box;
}

.agent-box__accent-bar {
    width: 8px;
    background: linear-gradient(to bottom, #f0e68c, #e31e24);
    flex-shrink: 0;
}

.agent-box__content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.agent-box__title {
    font-size: 15px;
    color: #f0e68c;
    margin: 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.agent-box__desc {
    font-size: 10px;
    color: #cccccc;
    margin: 0;
    line-height: 1.7;
    max-width: 600px;
}

.agent-box__btn {
    align-self: flex-start;
    margin-top: 4px;
    background: transparent;
    color: #f0e68c;
    border: 2px solid #f0e68c;
    padding: 9px 26px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 0 12px rgba(240, 230, 140, 0.25);
}

.agent-box__btn:hover {
    background: #f0e68c;
    color: #000;
    box-shadow: 0 0 22px rgba(240, 230, 140, 0.6);
    transform: scale(1.04);
}

.agent-popup__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    cursor: pointer;
    padding: 20px; /* FIX: prevents popup from touching screen edges */
    box-sizing: border-box;
}

.agent-toggle-input:checked ~ .agent-popup__overlay {
    opacity: 1;
    pointer-events: all;
}

.agent-popup {
    background: #1a1a1a;
    border: 2px solid #f0e68c;
    border-radius: 16px;
    padding: 40px 24px; /* FIX: reduced padding for small screens */
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
    cursor: default;
    box-shadow: 0 0 40px rgba(240, 230, 140, 0.15),
                inset 0 0 30px rgba(240, 230, 140, 0.04);
    box-sizing: border-box;
}

.agent-popup__close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: #888;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.agent-popup__close:hover {
    color: #f0e68c;
}

.agent-popup__icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
}

.agent-popup__title {
    font-size: 1.4rem;
    color: #f0e68c;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.agent-popup__desc {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 28px;
}

.agent-popup__link-btn {
    display: inline-block;
    background: #f0e68c;
    color: #000;
    font-weight: bold;
    font-size: 1rem;
    padding: 12px 36px;
    border-radius: 30px;
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 0 16px rgba(240, 230, 140, 0.4);
}

.agent-popup__link-btn:hover {
    box-shadow: 0 0 28px rgba(240, 230, 140, 0.7);
    transform: scale(1.04);
}

.agent-popup__note {
    margin-top: 18px;
    font-size: 0.78rem;
    color: #666;
}

@media (max-width: 600px) {
    .agent-box__content {
        padding: 16px;
    }
    .agent-box__title {
        font-size: 1rem;
    }
}

/* ============================================
   MOBILE FLIPCARD LAYOUT FIX
   Cards stack vertically so they don't overlap.
   Tap-to-flip already works natively on touch devices.
   ============================================ */

@media (max-width: 800px) {
    .flipcard-grid {
        flex-direction: column;
        align-items: center;
        gap: 80px;
    }

    .flipcard {
        width: min(350px, 85vw);
        height: min(350px, 85vw);
    }
}



/* Footer */
.footer-pagcor-logo {
    height: 40px;          /* ← fixed height as requested */
    width: auto;           /* ← keeps aspect ratio */
    object-fit: contain;
    margin-bottom: 5px;   /* ← spacing between logo and text below */
    opacity: 0.85;         /* ← slightly subtle, remove if you want full brightness */
}

.footer {
    text-align: center;
    padding: 20px;
    background: #0a0a0a;
    margin-top: 60px;
    border-top: 1px solid #333;
}

.footer p {
    font-size: 10px;
}

.footer .disclaimer {
    font-size: 10px;
}

.disclaimer {
    font-size: 10px;
    color: #ccc;
}

.footer-links a {
    color: #f0e68c;
    font-size: 10px;
    margin: 0 5px;
}

.copyright {
    color: #888;
    font-size: 10px;
    margin-top: 10px;
}