/* PayGunner 2.0 - Professional Payment Platform */

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

html {
    /* Prevent horizontal scroll on mobile */
    overflow-x: hidden;
    width: 100%;
    /* Disable pull-to-refresh and overscroll */
    overscroll-behavior-y: contain;
    /* Smooth scrolling */
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    /* Prevent horizontal scroll */
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    /* Prevent text size adjustment on mobile */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* Disable tap highlight */
    -webkit-tap-highlight-color: transparent;
}

/* ========== HEADER & NAVIGATION ========== */
.header {
    background: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    min-height: 70px;
}

.logo-container {
    display: flex;
    align-items: center;
    padding: 4px 0;
}

.logo-container img {
    height: 42px;
    width: auto;
    display: block;
}

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

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.nav-links a:hover {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}

.nav-links a.signup {
    background: linear-gradient(135deg, #87D521 0%, #6BB817 100%);
    color: #fff;
    margin-left: 10px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(135, 213, 33, 0.3);
}

.nav-links a.signup:hover {
    background: linear-gradient(135deg, #6BB817 0%, #5AA015 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(135, 213, 33, 0.4);
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(135deg, #0a3d62 0%, #1279C5 50%, #1e88d4 100%);
    padding: 120px 40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
    letter-spacing: -1px;
}

.hero .subtitle {
    font-size: 26px;
    color: rgba(255,255,255,0.95);
    margin-bottom: 15px;
    font-weight: 300;
}

.hero .tagline {
    font-size: 19px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 18px 45px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-hero-primary {
    background: linear-gradient(135deg, #87D521 0%, #6BB817 100%);
    color: #fff;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(135, 213, 33, 0.4);
}

.btn-hero-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
}

.hero-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
    margin-top: 70px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 42px;
    font-weight: 700;
    color: #87D521;
    display: block;
}

.hero-stat-label {
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    margin-top: 5px;
}

/* ========== CONTAINER & SECTIONS ========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    /* Prevent container overflow on mobile */
    width: 100%;
    overflow-x: hidden;
}

.section {
    margin-bottom: 80px;
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    font-size: 19px;
    color: #666;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== CARDS & FEATURES ========== */
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    padding: 40px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.feature-card:hover {
    border-color: #87D521;
    box-shadow: 0 8px 30px rgba(135, 213, 33, 0.15);
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 22px;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}

/* ========== STEPS / HOW IT WORKS ========== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin: 50px 0;
}

.step-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1279C5 0%, #0a5fa8 100%);
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 4px 15px rgba(18, 121, 197, 0.3);
}

.step-card:nth-child(2) .step-number {
    background: linear-gradient(135deg, #87D521 0%, #6BB817 100%);
    box-shadow: 0 4px 15px rgba(135, 213, 33, 0.3);
}

.step-card h3 {
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 600;
}

.step-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}

/* ========== BUTTONS ========== */
button,
.btn,
input[type="submit"] {
    border-radius: 8px;
    color: #FFFFFF;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 32px;
    background: linear-gradient(135deg, #1279C5 0%, #0a5fa8 100%);
    border: none;
    box-shadow: 0 2px 10px rgba(18, 121, 197, 0.3);
    transition: all 0.3s ease;
}

button:hover,
.btn:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(18, 121, 197, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #87D521 0%, #6BB817 100%);
    box-shadow: 0 2px 10px rgba(135, 213, 33, 0.3);
}

.btn-success:hover {
    box-shadow: 0 4px 20px rgba(135, 213, 33, 0.4);
}

.btn-large {
    padding: 18px 45px;
    font-size: 18px;
}

/* ========== FORMS ========== */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #1279C5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(18, 121, 197, 0.1);
}

/* ========== TABLES ========== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

table th {
    background: #f8f9fa;
    padding: 16px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    border-bottom: 2px solid #e0e0e0;
}

table td {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover {
    background-color: #f8f9fa;
}

/* ========== NOTIFICATIONS ========== */
.notification {
    border-radius: 8px;
    padding: 18px 22px;
    margin-bottom: 20px;
    font-size: 15px;
    border-left: 4px solid;
}

.notification.success {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}

.notification.error {
    background: #ffebee;
    border-color: #f44336;
    color: #c62828;
}

.notification.warning {
    background: #fff3e0;
    border-color: #ff9800;
    color: #e65100;
}

/* ========== CTA SECTIONS ========== */
.cta-section {
    background: linear-gradient(135deg, #0a3d62 0%, #1279C5 100%);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    margin: 60px 0;
    color: #fff;
}

.cta-section h2 {
    font-size: 38px;
    color: #fff;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 19px;
    margin-bottom: 35px;
    opacity: 0.9;
}

/* ========== STATS & METRICS ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: #1279C5;
    box-shadow: 0 8px 30px rgba(18, 121, 197, 0.15);
}

.stat-value {
    font-size: 42px;
    font-weight: 700;
    color: #1279C5;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 15px;
    color: #666;
}

/* ========== BALANCE DISPLAY ========== */
.balance-display {
    background: linear-gradient(135deg, #1279C5 0%, #0a5fa8 100%);
    border-radius: 16px;
    padding: 45px;
    text-align: center;
    color: #fff;
    box-shadow: 0 8px 30px rgba(18, 121, 197, 0.3);
    margin: 30px 0;
}

.balance-label {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.balance-amount {
    font-size: 56px;
    font-weight: 700;
}

/* ========== FOOTER ========== */
.footer {
    background: #1a1a1a;
    color: #aaa;
    padding: 60px 40px 30px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer a:hover {
    color: #87D521;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 48px;
    }

    .hero .subtitle {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    /* Aggressive overflow prevention */
    * {
        max-width: 100vw;
    }

    .header,
    .header-inner,
    .container,
    .section,
    .card,
    div,
    form {
        overflow-x: hidden;
    }

    .header-inner {
        padding: 12px 20px;
        min-height: auto;
        flex-wrap: wrap;
    }

    .logo-container img {
        height: 36px;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        margin-top: 12px;
        flex-wrap: wrap;
        gap: 2px;
    }

    .nav-links a {
        padding: 8px 12px;
        font-size: 13px;
    }

    .hero {
        padding: 80px 20px;
    }

    .hero h1 {
        font-size: 36px;
        word-wrap: break-word;
    }

    .hero .subtitle {
        font-size: 19px;
    }

    .hero .tagline {
        font-size: 16px;
    }

    .container {
        padding: 40px 20px;
    }

    .section-title {
        font-size: 32px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

    /* Fix tables on mobile */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    /* Fix grids on mobile */
    .stats-grid,
    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* Fix cards on mobile */
    .card {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }

    /* Fix forms on mobile */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    textarea,
    select {
        max-width: 100%;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    /* Fix buttons on mobile */
    .btn {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }

    /* Prevent text from causing overflow */
    h1, h2, h3, h4, h5, h6, p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Fix images on mobile */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Fix SVG graphics on mobile */
    svg {
        max-width: 100%;
        height: auto;
    }

    /* Fix wide content blocks */
    .hero-graphic,
    .hero-visual,
    .background-pattern {
        display: none;
    }

    /* Ensure no element can cause horizontal scroll */
    * {
        min-width: 0 !important;
    }

    /* Fix send.php grid on mobile */
    .send-grid {
        grid-template-columns: 1fr !important;
    }

    /* Fix add-funds.php grids on mobile */
    .add-funds-grid {
        grid-template-columns: 1fr !important;
    }

    .card-exp-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* ========== UTILITY CLASSES ========== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none; }
