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

body {
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #1a1a1a;
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

header {
    background: #081120;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.logo-area img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #4da3ff;
}

.hero {
    background: linear-gradient(to right, #081120, #10294d);
    color: white;
    padding: 120px 0;
    text-align: center;
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 20px;
}

.hero p {
    max-width: 800px;
    margin: auto;
    font-size: 18px;
}

.btn {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 30px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
}

.btn:hover {
    background: #1d4ed8;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-bottom: 15px;
}

.dark-section {
    background: #081120;
    color: white;
}

.dark-card {
    background: #10203a;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    color: #081120;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

footer {
    background: #081120;
    color: white;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

footer h4,
footer h3 {
    margin-bottom: 18px;
}

footer ul {
    list-style: none;
}

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

footer ul li a {
    color: #cbd5e1;
    text-decoration: none;
}

footer ul li a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding: 25px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 14px;
}

.page-header {
    background: #081120;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.content-page {
    padding: 70px 0;
}

.content-page h2 {
    margin-top: 30px;
    margin-bottom: 12px;
}

.content-page p {
    margin-bottom: 18px;
}

@media(max-width: 992px) {

    .grid,
    .features,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero h1 {
        font-size: 42px;
    }
}

@media(max-width: 768px) {

    .nav {
        flex-direction: column;
        gap: 20px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .grid,
    .features,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 90px 0;
    }

    .hero h1 {
        font-size: 34px;
    }

    .section-title {
        font-size: 28px;
    }
}
/* ============================================
   WALLET STYLES
   ============================================ */

/* Wallet button in navigation */
.wallet-btn {
    background: #2563eb;
    padding: 8px 18px;
    border-radius: 8px;
    color: white !important;
    font-weight: 600;
    transition: 0.3s;
}

.wallet-btn:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

.wallet-btn.logged-in {
    background: #22c55e;
}

.wallet-btn.logged-in:hover {
    background: #16a34a;
}

/* Modal overlay */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* Modal content box */
.modal-content {
    background: white;
    padding: 35px;
    border-radius: 16px;
    max-width: 420px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Close button */
.close-modal {
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: #333;
}

/* Modal headings */
.modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #081120;
    font-size: 24px;
}

.modal-content h4 {
    margin: 15px 0 10px;
    color: #333;
}

/* Modal inputs */
.modal-content input[type="email"],
.modal-content input[type="password"],
.modal-content input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    margin: 8px 0;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: 0.3s;
}

.modal-content input:focus {
    border-color: #2563eb;
    outline: none;
}

/* Modal buttons */
.modal-btn {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.modal-btn:hover {
    background: #1d4ed8;
}

.btn-success {
    background: #22c55e;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-success:hover {
    background: #16a34a;
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 15px;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Wallet balance */
.wallet-balance {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin: 10px 0 20px;
}

.wallet-balance span:first-child {
    display: block;
    font-size: 14px;
    opacity: 0.9;
}

.wallet-balance #walletBalance {
    display: block;
    font-size: 32px;
    font-weight: 700;
    margin-top: 5px;
}

/* Topup group */
.topup-group {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.topup-group input {
    flex: 2;
}

.topup-group button {
    flex: 1;
}

/* Transaction list */
#transactionList {
    max-height: 200px;
    overflow-y: auto;
    margin: 10px 0;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 5px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-item .tx-credit {
    color: #22c55e;
    font-weight: 600;
}

.transaction-item .tx-debit {
    color: #ef4444;
    font-weight: 600;
}

.transaction-item .tx-date {
    color: #999;
    font-size: 12px;
}

.empty-state {
    color: #999;
    text-align: center;
    padding: 20px 0;
}

/* Modal messages */
.modal-message {
    margin-top: 12px;
    padding: 10px;
    border-radius: 6px;
    display: none;
    font-size: 14px;
}

.modal-message.error {
    display: block;
    background: #fee;
    color: #c33;
}

.modal-message.success {
    display: block;
    background: #efe;
    color: #3c3;
}

/* Wallet content specific */
.wallet-content .btn-success {
    width: 100%;
    margin-top: 10px;
}

.wallet-content #logoutBtn {
    width: 100%;
}

/* Responsive */
@media (max-width: 500px) {
    .modal-content {
        padding: 25px;
    }
    
    .topup-group {
        flex-direction: column;
    }
    
    .wallet-balance #walletBalance {
        font-size: 28px;
    }
}
