:root {
    --mtn-yellow: #ffcc00;
    --mtn-yellow-deep: #f0be00;
    --ink: #1a1a1a;
    --muted: #5f6672;
    --bg-page: #f2f4f7;
    --bg-card: #ffffff;
    --bg-soft: #eaedf2;
    --border: #e2e5ea;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg-page);
    color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

.portal-shell {
    width: 100%;
    min-height: 100vh;
    background: #ffffff;
    padding-bottom: 40px;
}

/* TOP MTN YELLOW BANNER */
.mtn-hero {
    width: 100%;
    background: var(--mtn-yellow);
    overflow: hidden;
}

.mtn-hero-top {
    padding: 18px clamp(20px, 4vw, 48px) 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.mtn-brand-left {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.mtn-oval {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2.2px solid #111111;
    border-radius: 999px;
    padding: 5px 16px;
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 0.4px;
    color: #111111;
}

.hero-msg {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.hero-msg strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #111111;
}

.hero-msg span {
    display: block;
    font-size: 12.5px;
    color: #2b2b2b;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111111;
    color: var(--mtn-yellow);
    border-radius: 999px;
    padding: 9px 22px;
    font-weight: 700;
    font-size: 13.5px;
    transition: opacity 0.15s, transform 0.1s;
}

.btn-login:hover {
    opacity: 0.9;
}

.mtn-subscriber-bar {
    background: rgba(0, 0, 0, 0.06);
    padding: 12px clamp(20px, 4vw, 48px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sub-name {
    font-weight: 600;
    font-size: 14px;
    color: #111111;
}

.sub-msisdn {
    font-size: 12px;
    color: #3f3b26;
}

.sub-balance {
    text-align: right;
}

.sub-balance strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #111111;
}

.sub-balance span {
    font-size: 11.5px;
    color: #3f3b26;
}

/* PORTAL SECTIONS */
.portal-section {
    width: 100%;
    padding: 22px clamp(20px, 4vw, 48px) 8px;
}

.sec-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sec-head h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

.sec-link {
    font-size: 12.5px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
}

/* TAKE A LOAN CARD */
.loan-box {
    background: var(--bg-soft);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.loan-amount strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
}

.loan-amount span {
    font-size: 12.5px;
    color: var(--muted);
}

.btn-mtn {
    background: var(--mtn-yellow);
    color: #111111;
    border: none;
    border-radius: 999px;
    padding: 11px 28px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-mtn:hover {
    background: var(--mtn-yellow-deep);
}

.loan-tiers {
    display: none;
    margin-top: 10px;
    gap: 8px;
}

.loan-tiers.open {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.tier-chip {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    font-size: 12px;
}

.tier-chip.active {
    border-color: #111111;
    background: #fffbeb;
    font-weight: 700;
}

/* APPS CLUB ROW */
.apps-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
}

.app-tile {
    width: 100%;
    cursor: pointer;
}

.app-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 180px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.app-name {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* MTN SERVICES ROW */
.services-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.service-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.service-media {
    position: relative;
    height: 170px;
    background: #1f2937;
}

.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: var(--mtn-yellow);
    color: #111111;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: 0.3px;
}

.service-body {
    padding: 10px 12px;
}

.service-body strong {
    display: block;
    font-size: 13.5px;
    color: var(--ink);
    margin-bottom: 3px;
}

.service-body span {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.35;
}

/* AD PLACEMENT CONTAINER */
.ad-slot {
    margin: 22px clamp(20px, 4vw, 48px) 0;
    border: 1px dashed #d1d5db;
    background: #fffdf5;
    border-radius: 8px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #4b5563;
}

.ad-link {
    font-weight: 600;
    color: #111827;
}

.portal-footer {
    padding: 24px clamp(20px, 4vw, 48px) 0;
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
}

/* SIMPLE MODAL OVERLAY */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
}

.modal-backdrop.open {
    display: flex;
}

.modal-box {
    background: #ffffff;
    border-radius: 12px;
    max-width: 380px;
    width: 100%;
    padding: 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.modal-box h3 {
    margin: 0 0 8px 0;
    font-size: 17px;
}

.modal-box p {
    margin: 0 0 18px 0;
    font-size: 13.5px;
    color: var(--muted);
}

