:root {
    /* Easypaisa Color Palette */
    --primary-color: #117a47; /* Deeper, richer green */
    --primary-light: #eaf6f0; /* Soft background green for icons */
    --primary-dark: #0e6339;
    --bg-color: #f4f5f7; /* Off-white app background */
    --text-color: #1b1b1b;
    --text-muted: #6e6e6e;
    --card-bg: #ffffff;
    --nav-bg: #ffffff;
    --border-color: #f0f0f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Inter', 'Roboto', sans-serif;
    -webkit-tap-highlight-color: transparent; /* Removes tap highlight on mobile */
}

body {
    background-color: #cbd5e1; /* Darker bg outside the app wrapper for contrast */
    display: flex;
    justify-content: center;
    min-height: 100vh;
    color: var(--text-color);
}

/* Mobile Wrapper */
.app-wrapper {
    width: 100%;
    max-width: 480px; /* Mobile width */
    background-color: var(--bg-color);
    min-height: 100vh;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
    overflow-x: hidden;
    padding-bottom: 90px; /* Space for bottom nav + floating button */
}

/* Header */
.app-header {
    background: linear-gradient(135deg, #139a43 0%, #117a47 100%);
    color: white;
    padding: 25px 20px 45px 20px; /* Extra bottom padding for card overlap */
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    position: relative;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header-title {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.user-card {
    background: white;
    color: var(--text-color);
    padding: 16px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.user-info .phone {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.user-info .balance {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Notifications */
.notice-bar {
    background: #fff3cd;
    color: #856404;
    padding: 12px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 15px;
    border-radius: 12px;
    border: 1px solid #ffeeba;
}

/* Cards Grid (More with App style) */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 10px;
    padding: 10px 0;
}

.grid-item {
    background: transparent;
    border-radius: 0;
    padding: 0;
    text-align: center;
    box-shadow: none;
    transition: transform 0.15s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
}

.grid-item:active {
    transform: scale(0.92);
}

/* Make icons look like the Easypaisa rounded square buttons */
.grid-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 14px; /* Squircle look */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 8px;
}

.grid-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.2;
}

/* General Layout Elements */
.content-section {
    padding: 15px;
}

.card {
    background: var(--card-bg);
    border-radius: 16px; /* Softer, modern corners */
    padding: 20px;
    margin: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); /* Extremely soft shadow */
}

/* Overlapping card effect used heavily in Easypaisa */
.card.overlap-header {
    margin-top: -30px;
    position: relative;
    z-index: 5;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

/* Forms & Buttons */
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
}
.form-group input, .form-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    background-color: #fafafa;
    outline: none;
    transition: all 0.2s;
}
.form-group input:focus, .form-group select:focus {
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px var(--primary-light);
}

.btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 24px; /* Pill shaped buttons */
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.1s;
}
.btn:active {
    transform: scale(0.98);
}
.btn-primary {
    background: var(--primary-color);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-dark);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
}

/* Bottom Navigation */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    display: flex;
    justify-content: space-between;
    padding: 10px 15px 15px 15px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.04);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    z-index: 10;
}

.nav-item {
    text-decoration: none;
    color: #a0a0a0; /* Lighter gray for inactive */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 500;
    transition: color 0.2s;
    flex: 1;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

/* Floating Action Button (Easypaisa Scan Button Style) */
.nav-fab-container {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.nav-fab {
    position: absolute;
    bottom: 5px; /* Lifted up slightly */
    background: var(--primary-color);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 16px; /* Squircle */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    border: 4px solid var(--bg-color); /* Creates the cutout effect */
    z-index: 20;
    transition: transform 0.2s;
    box-shadow: 0 4px 10px rgba(17, 122, 71, 0.3);
}

.nav-fab i {
    font-size: 24px;
    margin-bottom: 0; /* Centered icon */
}

.nav-fab:active {
    transform: scale(0.92);
}

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.text-primary { color: var(--primary-color); }
.text-danger { color: #dc3545; }
.text-success { color: var(--primary-color); }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* Plan card specifics */
.plan-card {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fafafa;
}
.plan-price {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.plan-detail {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}