* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
html {
    scroll-behavior: smooth;
}
body {
    background-color: #e0e5ec;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px 15px;
}
.hidden {
    display: none !important;
}

/* Front View Styling */
.front-container {
    width: 680px;
    max-width: 100%;
    background: #e0e5ec;
    padding: 26px;
    border-radius: 20px;
    box-shadow: 9px 9px 16px #a3b1c6, -9px -9px 16px #ffffff;
}
.front-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    border-bottom: 1px solid #cdd6e3;
}
.front-brand h1 {
    font-size: 24px;
    color: #1d3557;
    font-weight: 800;
}
.front-brand span {
    font-size: 12px;
    color: #457b9d;
    font-weight: 600;
}
.btn-login-top {
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: #4f46e5;
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 4px 4px 8px #a3b1c6, -4px -4px 8px #ffffff;
}
.front-nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px 0;
    border-bottom: 1px solid #cdd6e3;
    margin-bottom: 18px;
}
.front-nav a {
    text-decoration: none;
    color: #1d3557;
    font-size: 13px;
    font-weight: 600;
}
.front-block {
    padding: 18px;
    border-radius: 15px;
    margin-bottom: 18px;
    background: #e0e5ec;
    box-shadow: inset 4px 4px 8px #a3b1c6, inset -4px -4px 8px #ffffff;
}
.front-block h2, .front-block h3 {
    color: #1d3557;
    margin-bottom: 8px;
}
.front-block h2 {
    font-size: 20px;
}
.front-block h3 {
    font-size: 15px;
    letter-spacing: 0.4px;
}
.front-block p {
    font-size: 13px;
    color: #3f4a59;
    line-height: 1.6;
}
.front-block .btn-login {
    margin-top: 14px;
}
.service-text-group {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #c2cddc;
}
.service-text-group:first-of-type {
    border-top: none;
    padding-top: 4px;
}
.service-text-group h4 {
    font-size: 13px;
    color: #1d3557;
    margin-bottom: 4px;
}
.service-text-group p {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

/* Policy Box */
.policy-box {
    padding: 16px;
    border-radius: 15px;
    margin-bottom: 18px;
    background: #e0e5ec;
    box-shadow: 6px 6px 12px #a3b1c6, -6px -6px 12px #ffffff;
}
.policy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    color: #1d3557;
}
.policy-text {
    font-size: 12.5px;
    color: #333;
    line-height: 1.6;
}

/* Front Footer */
.front-footer {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #cdd6e3;
    font-size: 12px;
    color: #555;
}
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.link-btn {
    border: none;
    background: none;
    color: #1d3557;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}
.front-footer p {
    margin-bottom: 4px;
}
.copyright {
    font-size: 11px;
    color: #666;
    margin-top: 6px;
}

/* Login & Dashboard Styling */
.login-container {
    width: 380px;
    max-width: 100%;
    background: #e0e5ec;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 9px 9px 16px #a3b1c6, -9px -9px 16px #ffffff;
}
.dashboard-container {
    width: 460px;
    max-width: 100%;
    background: #e0e5ec;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 9px 9px 16px #a3b1c6, -9px -9px 16px #ffffff;
}
.brand-header {
    text-align: center;
    margin-bottom: 22px;
}
.brand-header h2, .dash-brand {
    color: #1d3557;
    font-size: 22px;
    font-weight: 700;
}
.brand-header p {
    color: #457b9d;
    font-size: 13px;
    margin-top: 5px;
}
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    gap: 10px;
}
.user-tag {
    font-size: 12px;
    color: #457b9d;
    font-weight: 600;
}
.btn-secondary-sm {
    padding: 7px 12px;
    border: none;
    border-radius: 10px;
    background: #e0e5ec;
    color: #1d3557;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 4px 4px 8px #a3b1c6, -4px -4px 8px #ffffff;
}
.btn-logout {
    padding: 8px 14px;
    border: none;
    border-radius: 10px;
    background: #e0e5ec;
    color: #e63946;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 4px 4px 8px #a3b1c6, -4px -4px 8px #ffffff;
}
.wallet-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    border-radius: 15px;
    margin-bottom: 22px;
    background: #e0e5ec;
    box-shadow: inset 4px 4px 8px #a3b1c6, inset -4px -4px 8px #ffffff;
}
.wallet-label {
    font-size: 12px;
    color: #555;
}
.wallet-amount {
    font-size: 22px;
    color: #1d3557;
    margin-top: 4px;
}
.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #1b7a3d;
    background: #e0e5ec;
    box-shadow: 3px 3px 6px #a3b1c6, -3px -3px 6px #ffffff;
}
.section-title {
    font-size: 14px;
    color: #1d3557;
    margin-bottom: 14px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}
.service-card {
    background: #e0e5ec;
    padding: 18px 12px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    box-shadow: 6px 6px 12px #a3b1c6, -6px -6px 12px #ffffff;
    transition: 0.2s;
}
.service-card:active {
    box-shadow: inset 4px 4px 8px #a3b1c6, inset -4px -4px 8px #ffffff;
}
.service-icon {
    font-size: 26px;
    margin-bottom: 8px;
}
.service-card p {
    font-size: 13px;
    font-weight: 600;
    color: #1d3557;
}
.service-form-box {
    margin-top: 15px;
    padding: 18px;
    border-radius: 15px;
    background: #e0e5ec;
    box-shadow: inset 4px 4px 8px #a3b1c6, inset -4px -4px 8px #ffffff;
}
.service-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    color: #1d3557;
}
.close-btn {
    border: none;
    background: none;
    font-size: 16px;
    color: #e63946;
    cursor: pointer;
    font-weight: bold;
}
.login-form .input-group {
    margin-bottom: 16px;
}
.login-form label {
    display: block;
    font-size: 12px;
    color: #555;
    margin-bottom: 6px;
    font-weight: 600;
}
.login-form input {
    width: 100%;
    padding: 11px 14px;
    border: none;
    outline: none;
    background: #e0e5ec;
    border-radius: 10px;
    box-shadow: inset 4px 4px 8px #a3b1c6, inset -4px -4px 8px #ffffff;
    font-size: 14px;
    color: #333;
}
.btn-login {
    width: 100%;
    padding: 12px;
    border: none;
    outline: none;
    background: #4f46e5;
    color: white;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 4px 4px 10px #a3b1c6, -4px -4px 10px #ffffff;
}
.action-msg {
    margin-top: 10px;
    font-size: 12px;
    color: #1b7a3d;
    font-weight: 600;
    text-align: center;
}
.footer-info {
    margin-top: 22px;
    text-align: center;
    font-size: 11px;
    color: #666;
    border-top: 1px solid #d1d9e6;
    padding-top: 14px;
}
.footer-info p {
    margin-bottom: 4px;
}
.helpline {
    color: #e63946;
    font-weight: 600;
    margin-top: 6px;
}
