/* ===============================
   RESET & BASE
================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #fefefe;
    color: #111;
}

/* ===============================
   PAGE FRAME
================================ */
#page {
    max-width: 420px;
    margin: auto;
    min-height: 100vh;
    background: #f7f9fc;
    padding-bottom: 90px;
}

/* ===============================
   HEADER (Hello Enabled / Cards)
================================ */
.page-title {
    padding: 20px 18px 10px;
}

.page-title p {
    color: #4f8cff;
    font-size: 35px;
    font-weight: 800;
}

.page-title h1 {
    font-size: 35pxpx;
    font-weight: 800;
    margin-top: 4px;
}

/* Right icons */
.page-title .icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e9f0ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}

/* ===============================
   CARD STACK
================================ */
.card-stack {
    padding: 10px 16px;
}

.card {
    position: relative;
    border-radius: 22px;
    padding: 18px;
    margin-bottom: 18px;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Card backgrounds (image-like gradients) */
.bg-5 {
    background: linear-gradient(135deg, #0f0f0f, #2c2c2c);
}

.bg-7 {
    background: linear-gradient(135deg, #0f4c75, #3282b8);
}

.bg-1 {
    background: linear-gradient(135deg, #7a5c12, #d4af37);
}

/* Top right 3-dot */
.card-top {
    display: flex;
    justify-content: flex-end;
}

.card-top a {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* ===============================
   CARD CENTER CONTENT
================================ */
.card-center {
    margin-top: 30px;
}

.card-center a {
    display: inline-block;
    background: #ffffff;
    color: #111;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.card-center h2 {
    margin-top: 10px;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

/* ===============================
   CARD FOOTER TEXT
================================ */
.card strong {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.card-top strong {
    position: absolute;
    top: 16px;
    left: 16px;
}

.card-bottom {
    position: absolute;
    bottom: 16px;
}

.card-bottom.text-start {
    left: 16px;
}

.card-bottom.text-end {
    right: 16px;
}

/* ===============================
   INFO TEXT
================================ */
.btn-stack-info {
    font-size: 13px;
    text-align: center;
    color: #6b7280;
    margin-top: -4px;
}

/* ===============================
   BOTTOM NAV BAR
================================ */
#footer-bar {
    position: fixed;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 396px;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}

#footer-bar a {
    text-decoration: none;
    color: #9ca3af;
    font-size: 11px;
    text-align: center;
}

#footer-bar a i {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}

#footer-bar a.active-nav {
    color: #9B0B0D;
    font-weight: 700;
}

/* Center home button */
.circle-nav-2 {
    background: #9B0B0D;
    color: #fff !important;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    margin-top: -24px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.5);
}

/* ===============================
   DESKTOP (PHONE FRAME LOOK)
================================ */
@media (min-width: 768px) {
    body {
        background: #e5e7eb;
    }

    #page {
        margin-top: 30px;
        border-radius: 28px;
        box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
        overflow: hidden;
    }
}

/* =================================================
   TRUE DESKTOP VIEW (PayApp-style wide layout)
================================================= */
@media (min-width: 1200px) {

    body {
        background: #f2f4f8;
    }

    /* Page goes wide */
    #page {
        max-width: 100%;
        margin: 0;
        padding: 0 60px 120px;
        background: transparent;
    }

    /* Header alignment */
    .page-title {
        max-width: 1400px;
        margin: 0 auto;
        padding: 30px 20px 20px;
    }

    /* Card container becomes wide */
    .card-stack {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0;
    }

    /* Cards stretch horizontally */
    .card {
        height: 220px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 26px;
        border-radius: 26px;
    }

    /* Bigger text on desktop */
    .card strong {
        font-size: 14px;
    }

    .card-center h2 {
        font-size: 26px;
    }

    /* Footer bar stays centered */
    #footer-bar {
        max-width: 1200px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ===============================
   FIX CARD TEXT OVERLAP
================================ */
.card {
    position: relative;
    min-height: 200px;
}

.card-top,
.card-center,
.card-bottom {
    position: relative !important;
}

/* Bottom text spacing */
.card-bottom {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

/* Prevent text collision */
.card strong {
    line-height: 1.4;
    white-space: nowrap;
}

/* ===============================
   ICON SYSTEM (PayApp Style)
================================ */
.has-bg {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.gradient-green {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
}

.gradient-blue {
    background: linear-gradient(135deg, #9B0B0D, #2563eb);
    color: #fff;
}

.gradient-yellow {
    background: linear-gradient(135deg, #facc15, #eab308);
    color: #111;
}

.gradient-red {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

.gradient-magenta {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #fff;
}

.shadow-bg {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.shadow-bg-xs {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

body {
    font-family: Roboto, Arial;
    background: #f2f4f8
}

/* PAGE */
#page {
    max-width: 420px;
    margin: auto;
    padding-bottom: 110px
}

/* HEADER */
.page-title {
    padding: 20px
}

.page-title p {
    color: #4f8cff;
    font-weight: 600
}

.page-title h1 {
    font-size: 28px;
    font-weight: 800
}

.top-actions {
    position: absolute;
    right: 20px;
    top: 20px;
    display: flex;
    gap: 10px
}

.icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff
}

.green {
    background: #84cc16
}

.blue {
    background: #9B0B0D
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%
}

.badge {
    position: absolute;
    background: red;
    color: #fff;
    font-size: 11px;
    border-radius: 50%;
    padding: 2px 6px;
    top: -4px;
    right: -4px
}

/* CARD */
.card-stack {
    padding: 0 16px
}

.card {
    background: #111827;
    color: #fff;
    border-radius: 22px;
    padding: 20px;
    margin-top: 20px;
    position: relative
}

.card-menu {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #fff;
    color: #000;
    border-radius: 12px;
    padding: 4px 8px
}

.card-btn {
    background: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600
}

.card-content h2 {
    margin-top: 10px;
    font-size: 22px
}

.card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-top: 12px
}

/* HINT */
.hint {
    text-align: center;
    color: #6b7280;
    font-size: 13px;
    margin: 14px
}

/* OPTIONS */
.options-box {
    background: #fff;
    border-radius: 26px;
    margin: 14px;
    padding: 14px
}

.tabs {
    display: flex;
    background: #eef0f4;
    border-radius: 18px;
    padding: 6px
}

.tabs button {
    flex: 1;
    border: none;
    background: none;
    padding: 12px;
    border-radius: 14px;
    font-weight: 600
}

.tabs .active {
    background: #4f8cff;
    color: #fff
}

.list .item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 6px;
    border-bottom: 1px solid #eee
}

.list .item:last-child {
    border: none
}

/* ICON COLORS */
.green {
    background: #84cc16
}

.purple {
    background: #a855f7
}

.red {
    background: #ef4444
}

.blue {
    background: #9B0B0D
}

.item i {
    color: #fff;
    padding: 10px;
    border-radius: 12px
}

/* SWITCH */
.switch {
    margin-left: auto
}

.switch input {
    display: none
}

.switch span {
    width: 44px;
    height: 26px;
    background: #ddd;
    border-radius: 20px;
    display: block;
    position: relative
}

.switch span:after {
    content: "";
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: .3s
}

.switch input:checked+span {
    background: #84cc16
}

.switch input:checked+span:after {
    left: 21px
}

/* FOOTER */
#footer-bar {
    position: fixed;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: #F4E4D0;
    width: calc(100% - 24px);
    max-width: 420px;
    border-radius: 22px;
    display: flex;
    justify-content: space-around;
    padding: 10px
}

#footer-bar a {
    text-align: center;
    font-size: 11px;
    color: #000;
}

#footer-bar .home {
    background: #9B0B0D;
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin-top: -30px;
    display: flex;
    align-items: center;
    justify-content: center
}

/* DESKTOP */
@media(min-width:1200px) {
    #page {
        max-width: 100%;
        padding: 0 60px
    }

    .card-stack,
    .options-box,
    .page-title {
        max-width: 1400px;
        margin: auto
    }
}

/* HEADER FIX */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 20px 10px;
    position: relative;
}

.header-text {
    max-width: 70%;
}

.header-text p {
    color: #4f8cff;
    font-weight: 600;
    margin-bottom: 4px;
}

.header-text h1 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}

/* TOP ACTION ICONS */
.top-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
}

.icon.green {
    background: #84cc16
}

.icon.blue {
    background: #9B0B0D
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

/* BADGE */
.badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: red;
    color: #fff;
    font-size: 11px;
    border-radius: 50%;
    padding: 2px 6px;
}

/* MOBILE SAFETY */
@media(max-width:480px) {
    .header-text {
        max-width: 60%;
    }

    .header-text h1 {
        font-size: 35px;
    }
}

/* Tabs container */
.tabs {
    display: flex;
    background: #f1f3f6;
    padding: 6px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
}

.tab-btn.active {
    background: #9B0B0D;
    color: #fff;
}

/* Tab content visibility */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ================= SETTINGS LIST FIX ================= */

.options-box {
    background: #fff;
    border-radius: 0px;
    padding: 20px;
    margin-bottom: 90px;
}

.item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.item:last-child {
    border-bottom: none;
}

.item i {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}

/* Icon colors */
.green {
    background: #7ac943;
}

.purple {
    background: #8b5cf6;
}

.blue {
    background: #9B0B0D;
}

.red {
    background: #ef4444;
}

.yellow {
    background: #facc15;
}

/* Text block */
.item div {
    flex: 1;
}

.item strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #111;
}

.item span {
    display: block;
    font-size: 13px;
    color: #777;
    margin-top: 2px;
}

/* ================= SWITCH ================= */

.switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.switch input {
    display: none;
}

.switch span {
    position: absolute;
    cursor: pointer;
    background: #ddd;
    border-radius: 30px;
    inset: 0;
    transition: 0.3s;
}

.switch span::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.switch input:checked+span {
    background: #7ac943;
}

.switch input:checked+span::before {
    transform: translateX(20px);
}

/* ================= HISTORY ================= */

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.history-header strong {
    font-size: 15px;
}

.history-header select {
    border: none;
    background: #f1f3f6;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
}

/* Right aligned content */
.item .right {
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: #111;
}

.item .right small {
    display: block;
    font-size: 12px;
    color: #777;
    font-weight: 400;
}

.item .right.success {
    color: #22c55e;
}

/* ================= ACTIVITY RIGHT STATES ================= */

.item .right {
    text-align: right;
    font-size: 14px;
    font-weight: 600;
}

.item .right small {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #777;
}

/* Amount colors */
.item .right.danger {
    color: #ef4444;
}

.item .right.success {
    color: #22c55e;
}

.item .right.info {
    color: #9B0B0D;
}

/* Extra icon color */
.red {
    background: #ef4444;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #4972e3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-icon i {
    font-size: 20px;
    color: #f7f8f9;
}

/* ================= HEADER LAYOUT ================= */

.page-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
}

/* LOGO */
.header-logo img {
    height: 40px;
}

/* Desktop / Mobile logo switching */
.logo-mobile {
    display: none;
}

.logo-desktop {
    display: block;
}

/* Center text alignment */
.header-text {
    text-align: center;
}

.header-text h1 {
    margin: 0;
    font-size: 22px;
}

.header-text p {
    margin: 0;
    font-size: 13px;
}

/* Right actions already styled – just align */
.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ================= MOBILE VIEW ================= */
@media (max-width: 768px) {

    .page-header {
        grid-template-columns: auto 1fr auto;
        padding: 14px 16px;
    }

    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        display: block;
        height: 32px;
    }

    .header-text h1 {
        font-size: 18px;
    }

    .header-text {
        text-align: left;
    }
}

/* ================= BIG HEADER (DESKTOP) ================= */

.page-header {
    padding: 26px 40px;
    /* more space */
    min-height: 60px;
    /* taller header */
}

/* Logo bigger */
.header-logo img {
    height: 90px;
    /* was ~40px */
}

/* Center text */
.header-text p {
    font-size: 15px;
    margin-bottom: 6px;
}

.header-text h1 {
    font-size: 32px;
    /* BIG title */
    font-weight: 700;
    line-height: 1.2;
}

/* Right-side icons bigger */
.top-actions .icon {
    width: 46px;
    height: 46px;
    font-size: 18px;
}

.avatar {
    width: 46px;
    height: 46px;
}

.avatar-icon i {
    font-size: 22px;
}

/* Notification badge */
.top-actions .badge {
    font-size: 12px;
    padding: 3px 7px;
}

/* ================= HEADER CENTER FIX ================= */

.page-header {
    position: relative;
}

/* Force TRUE center */
.header-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: max-content;
}

/* Hello text */
.header-text p {
    font-size: 15px;
    font-weight: 500;
    color: #9B0B0D;
    margin-bottom: 6px;
}

/* Main title */
.header-text h1 {
    font-size: 34px;
    /* BIGGER */
    font-weight: 800;
    /* BOLDER */
    letter-spacing: -0.4px;
    margin: 0;
}

@media (max-width: 768px) {
    .header-text {
        position: static;
        transform: none;
        width: 100%;
        text-align: center;
        margin-top: 6px;
    }

    .header-text h1 {
        font-size: 20px;
    }

    .header-text p {
        font-size: 12px;
    }
}

/* ================= GLOBAL RESET ================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Source Sans Pro', 'Roboto', sans-serif;
    background: #f4f6f8;
    color: #111;
}

/* ================= PAGE HEADER ================= */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    gap: 16px;
    background: #f4f6f8;
}


/* ---------- CENTER TEXT ---------- */
.header-text {
    text-align: center;
    flex: 1;
}

.header-text p {
    margin: 0;
    font-size: 55px;
    font-weight: 600;
    color: #9B0B0D;
}

.header-text h1 {
    margin: 4px 0 0;
    font-size: 28px;
    font-weight: 800;
    color: #000;
    line-height: 1.2;
}

/* ---------- ACTION ICONS ---------- */
.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-actions .icon,
.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    position: relative;
}

.icon.green {
    background: #84cc16;
}

.icon.blue {
    background: #9B0B0D;
}

.avatar {
    background: #6366f1;
}

.icon .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: red;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 50%;
}

/* ================= MOBILE VIEW ================= */
@media (max-width: 768px) {

    .page-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px;
    }

    /* Logo stays on top */
    .header-logo {
        margin-bottom: 6px;
    }

    .header-logo img {
        max-height: 70px;
    }

    /* Text clean + centered */
    .header-text {
        margin-bottom: 10px;
    }

    .header-text p {
        font-size: 20px;
    }

    .header-text h1 {
        font-size: 20px;
        line-height: 1.3;
    }

    /* Icons go below text */
    .top-actions {
        justify-content: center;
        gap: 14px;
        margin-top: 6px;
    }
}

/* ===== MOBILE: FORCE LOGO TO LEFT ===== */
@media (max-width: 768px) {

    .page-header {
        position: relative;
    }

    .header-logo {
        position: absolute;
        left: 12px;
        top: 12px;
    }

    .header-logo img {
        max-height: 70px;
    }
}

/* Hide header text on mobile */
@media (max-width: 768px) {}

.page {
    display: none;
}

.page.visible {
    display: block;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin: 16px 0;
}

.asb-plan-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.asb-plan-card.active {
    border-left: 5px solid #22c55e;
}

.asb-plan-card.completed {
    border-left: 5px solid #6366f1;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    color: #fff;
}

.status.running {
    background: #22c55e;
}

.status.done {
    background: #6366f1;
}

.plan-body {
    margin: 14px 0;
}

.plan-body p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.plan-body h3 {
    margin: 4px 0 0;
    font-size: 22px;
    font-weight: 800;
}

.plan-footer {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
}

.activity-summary {
    display: flex;
    gap: 25px;
    margin-bottom: 45px;
}

.activity-summary div {
    flex: 1;
    padding: 28px;
    border-radius: 18px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.55);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    transition: 0.3s ease;
}

.activity-summary div:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.activity-summary strong {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(90deg, #8b0000, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.activity-summary span {
    font-size: 13px;
    letter-spacing: 1px;
    color: #555;
    text-transform: uppercase;
}

/* ================= PAYMENTS ================= */

.payments-section {
    padding: 20px;
}

.payments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 25px;
}

.payment-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.payment-card:hover {
    transform: translateY(-4px);
}

.payment-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
}

.green {
    background: #7ac943;
}

.red {
    background: #ff5a5a;
}

.yellow {
    background: #f4b400;
}

.blue {
    background: #4f8df5;
}

.brown {
    background: #b08968;
}

.payment-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.payment-card p {
    font-size: 13px;
    color: #777;
}

/* Wide cards */
.payment-wide {
    background: #ffffff;
    border-radius: 18px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
    position: relative;
}

.wide-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #8ecae6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.payment-wide strong {
    display: block;
    font-weight: 700;
}

.payment-wide span {
    font-size: 13px;
    color: #777;
}

.badge-new {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: #ff4d4d;
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
}

/* Mobile */
@media (max-width: 768px) {
    .payments-grid {
        grid-template-columns: 1fr;
    }
}

/* ================= MORE PAGE ================= */

.more-page {
    padding: 20px;
}

.more-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #4f8df5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
}

.more-profile p {
    font-size: 13px;
    color: #777;
}

.more-profile h3 {
    font-size: 18px;
    font-weight: 700;
}

.more-list {
    background: #fff;
    border-radius: 16px;
    padding: 10px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 18px;
}

.more-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    cursor: pointer;
    color: black;
}

.more-item:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

.more-item span {
    flex: 1;
    font-weight: 600;
}

.more-item i {
    font-size: 18px;
    color: black;
}

.more-item.logout span {
    color: #ff4d4d;
}

.more-item.toggle {
    justify-content: space-between;
}

/* Quick Actions */
.more-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.action {
    flex: 1;
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.action i {
    font-size: 20px;
    display: block;
    margin-bottom: 6px;
    color: black;
}

.action span {
    font-size: 13px;
    font-weight: 600;
    color: black;
}

/* Colors */
.red {
    color: #fdfbfb;
}

.green {
    color: #fafbf9;
}

.blue {
    color: #edeef0;
}

.purple {
    color: #fff;
}

.orange {
    color: #fff;
}

.yellow {
    color: #fff;
}

.gray {
    color: #fff;
}

/* Footer */
.more-footer {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 16px;
}

.plan-selection {
    padding: 30px 15px;
    text-align: center;
}

.plan-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
}

.plan-subtitle {
    color: #666;
    margin-bottom: 25px;
}

.plan-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: auto;
}

.plan-card {
    background: #fff;
    border-radius: 0px;
    padding: 22px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.plan-card.premium {
    border: 0px;
}

.plan-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.plan-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}

.plan-card ul li {
    margin: 6px 0;
    font-size: 14px;
}

.plan-card button {
    width: 100%;
    padding: 12px;
    border-radius: 25px;
    border: none;
    background: #9B0B0D;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.plan-note {
    margin-top: 20px;
    font-size: 13px;
    color: #000;
}

.plan-details-card {
    max-width: 420px;
    margin: 30px auto;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.plan-details-card h2 {
    text-align: center;
    margin-bottom: 16px;
}

.plan-details-card ul {
    list-style: none;
    padding: 0;
}

.plan-details-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.rules-box {
    margin-top: 16px;
    background: #f9f9f9;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
}

.pay-btn {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    background: #9B0B0D;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
}

.login-btn {
    margin-left: 10px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    border: none;
    background: #2563eb;
    /* blue */
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.login-btn:hover {
    background: #1e40af;
}

.page-header {
    position: relative;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.logo-desktop {
    height: 44px;
    display: block;
}

.logo-mobile {
    display: none;
    height: 34px;
}

.top-actions {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.login-btn {
    background: #9B0B0D;
    color: #fff;
    border: none;
    border-radius: 18px;
    padding: 6px 14px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* MOBILE */
@media (max-width: 768px) {

    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        display: block;
        max-width: 120px;
    }

}


.page-header {
    background: #F4E4D0;
    border-bottom: 1px solid #e6ebf5;
}

/* ================= LOGIN PAGE ================= */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f6f9;
    padding: 24px;
}

/* BIG CARD */
.login-card {
    width: 100%;
    max-width: 520px;
    /* ⬅️ BIGGER ON DESKTOP */
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 36px 44px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    text-align: center;
}

/* TITLE */
.login-card h2 {
    font-size: 30px;
    /* ⬅️ BIG */
    font-weight: 700;
    margin-bottom: 10px;
    color: #0f172a;
}

/* SUBTITLE */
.login-subtitle {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 30px;
}

/* INPUT GROUP */
.input-group {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 18px;
}

.input-group i {
    font-size: 20px;
    color: #475569;
    margin-right: 12px;
}

.input-group input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 18px;
    /* ⬅️ BIG INPUT TEXT */
    color: #0f172a;
}

/* LOGIN BUTTON */
.login-btn-full {
    width: 100%;
    margin-top: 24px;
    padding: 18px;
    border-radius: 16px;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #9B0B0D);
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-btn-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.login-note {
    margin-top: 20px;
    font-size: 14px;
    color: #64748b;
}

/* ================= MOBILE VIEW ================= */
@media (max-width: 600px) {

    .login-card {
        max-width: 100%;
        padding: 36px 26px 40px;
        border-radius: 18px;
    }

    .login-card h2 {
        font-size: 26px;
    }

    .input-group {
        padding: 16px;
    }

    .input-group input {
        font-size: 17px;
    }

    .login-btn-full {
        padding: 16px;
        font-size: 17px;
    }
}

/* ================= ADMIN LAYOUT ================= */
body.admin {
    background: #f4f6fb;
    padding-bottom: 90px;
}

/* ================= ADMIN HEADER ================= */
.admin-header {
    background: linear-gradient(135deg, #8b0000, #9B0B0D);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    font-size: 20px;
    font-weight: 700;
}

.logout-btn {
    background: #fff;
    color: #9B0B0D;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}

/* ================= ADMIN STATS ================= */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    padding: 20px;
}

.stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.stat-card i {
    font-size: 26px;
}

.stat-card strong {
    font-size: 20px;
    display: block;
}

.stat-card span {
    font-size: 13px;
    color: #666;
}

/* ================= ADMIN ACTIVITY ================= */
.admin-activity {
    background: #fff;
    margin: 0 20px;
    padding: 16px;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.admin-activity h2 {
    font-size: 16px;
    margin-bottom: 12px;
}

.activity-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.activity-row:last-child {
    border-bottom: none;
}

.activity-row .pending {
    color: #d97706;
    font-weight: 600;
}

/* ================= ADMIN NAV ================= */
.admin-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
}

.admin-nav a {
    text-decoration: none;
    color: #777;
    font-weight: 600;
    font-size: 14px;
}

.admin-nav a.active {
    color: #9B0B0D;
}

/* ================= COLORS ================= */
.green {
    color: #fafcfb;
}

.blue {
    color: #f8f8f9;
}

.red {
    color: #f6f3f3;
}

/* ================= USER DETAILS PAGE ================= */

.user-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
}

/* USER CARD */
.user-card {
    background: #fff;
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.user-card h2 {
    margin-bottom: 10px;
    font-size: 20px;
}

.user-card p {
    margin: 6px 0;
    font-size: 14px;
}

.status {
    font-weight: 700;
}

/* PAYMENT PROGRESS */
.payment-progress {
    background: #fff;
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.payment-progress h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.progress-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f4f6fb;
    padding: 14px;
    border-radius: 10px;
}

.progress-box strong {
    font-size: 18px;
}

/* ================= PAYMENT HISTORY ================= */

.user-history {
    background: #fff;
    margin: 0 20px;
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.user-history h3 {
    margin-bottom: 12px;
    font-size: 16px;
}

.history-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.history-row:last-child {
    border-bottom: none;
}

.success {
    color: #9B0B0D;
    font-weight: 600;
}

.pending {
    color: #d97706;
    font-weight: 600;
}

/* ================= BENEFITS ================= */

.benefits-box {
    background: #fff;
    margin: 20px;
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.benefits-box h3 {
    margin-bottom: 10px;
}

/* ================= ADMIN ACTIONS ================= */

.admin-actions {
    display: flex;
    gap: 12px;
    padding: 0 20px 80px;
}

.action-btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
}

.action-btn.green {
    background: #f9fbfa;
}

.action-btn.blue {
    background: #f1f2f3;
}

.action-btn.red {
    background: #f4f3f3;
}

/* ================= BACK BUTTON ================= */

.back-btn {
    background: #fff;
    color: #9B0B0D;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}

/* ================= RESPONSIVE ================= */
@media (min-width: 768px) {
    .user-summary {
        grid-template-columns: 2fr 1fr;
    }
}

/* INFO SECTION */
.info-section {
    padding: 30px 20px;
    background: #e2cdb808;
    margin-top: 30px;
}

.info-section h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #9B0B0D;
}

.info-grid {
    display: grid;
    gap: 20px;
}

.info-box {
    background: #ffffff;
    padding: 20px;
    text-align: center;
    border: 1px solid #e5e5e5;
}

.info-box i {
    font-size: 28px;
    color: #9B0B0D;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== CYCLE SUMMARY ===== */

.cycle-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.cycle-card h3 {
    margin-bottom: 4px;
    font-size: 18px;
}

.plan-type {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.progress-box {
    margin-bottom: 15px;
}

.progress-bar {
    height: 8px;
    background: #eee;
    border-radius: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #f5d76e);
    border-radius: 20px;
}

.progress-text {
    font-size: 13px;
    color: #555;
    margin-top: 6px;
    display: block;
}

.cycle-stats {
    display: flex;
    justify-content: space-between;
}

.cycle-stats div {
    text-align: center;
}

.cycle-stats strong {
    display: block;
    font-size: 16px;
}

.cycle-stats span {
    font-size: 12px;
    color: #777;
}

/* Info rows */
.cycle-info {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cycle-info i {
    font-size: 18px;
    margin-right: 12px;
}

.status.pending {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: #ff9800;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.plan-card {
    background: #fff;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.plan-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.plan-content {
    padding: 20px;
    text-align: center;
}

.plan-content h3 {
    margin-bottom: 15px;
}

.plan-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.plan-content ul li {
    margin-bottom: 8px;
    font-size: 14px;
}

.select-plan-btn {
    background: #9B0B0D;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
}

.select-plan-btn:hover {
    background: #9b0b0d;
}

body {
    margin: 0;
    font-family: 'Source Sans Pro', sans-serif;
    background: linear-gradient(to bottom, #fff, #fff);
}

/* ================= ACTIVITY SECTION ================= */
/* ================= ACTIVITY SECTION ================= */

.activity-section {
    padding: 20px 18px 100px;
}

/* Title */
.activity-title {
    font-size: 20px;
    font-weight: 600;
    color: #8B0000;
    margin-bottom: 20px;
}

/* ================= SUMMARY BOX ================= */

.activity-summary {
    background: #f4e4d0;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.activity-summary div {
    flex: 1;
    text-align: center;
}

.activity-summary strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #111;
}

.activity-summary span {
    font-size: 12px;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ================= ACTIVITY LIST ================= */

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Individual Activity Card */
.activity-item {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #8B0000;
}

/* Text */
.activity-item strong {
    font-size: 14px;
    color: #111;
}

.activity-item span {
    font-size: 12px;
    color: #777;
}

/* Amount */
.activity-item .amount {
    font-weight: 600;
    font-size: 14px;
    color: #111;
}

/* Success Payment */
.activity-item.success {
    border-left: 4px solid #1b8f3a;
}

.activity-item.success .amount {
    color: #1b8f3a;
}

/* Pending */
.activity-item.pending {
    border-left: 4px solid #f39c12;
}

.activity-item.pending .amount {
    color: #f39c12;
}

/* Benefit */
.activity-item.benefit {
    border-left: 4px solid #c9a227;
}

.activity-item.benefit .amount {
    color: #c9a227;
}

/* ================= MOBILE RESPONSIVE ================= */

@media (max-width: 480px) {

    .activity-summary {
        flex-direction: column;
        gap: 12px;
    }

    .activity-summary strong {
        font-size: 18px;
    }

    .activity-item {
        padding: 12px 14px;
    }

    .activity-item strong {
        font-size: 13px;
    }

    .activity-item .amount {
        font-size: 13px;
    }
}


/* ================= PAYMENTS SECTION ================= */
/* ================= PAYMENTS SECTION ================= */

.payments-section {
    padding: 20px 18px 100px;
}

.payments-title {
    font-size: 20px;
    font-weight: 600;
    color: #8B0000;
    margin-bottom: 20px;
}

/* Grid */
.payments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

/* ================= PAYMENT CARD ================= */

.payment-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: 0.3s ease;
    border: 1px solid #f1f1f1;
    position: relative;
}

.payment-card i {
    font-size: 28px;
    margin-bottom: 10px;
    color: #8B0000;
}

.payment-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #111;
}

.payment-card p {
    font-size: 12px;
    color: #666;
}

/* Hover effect */
.payment-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
}

/* ================= PRIMARY PAYMENT CARD ================= */

.payment-card.primary {
    background: linear-gradient(135deg, #8B0000, #b30000);
    color: white;
    border: none;
}

.payment-card.primary i {
    color: #ffd700;
}

.payment-card.primary h3,
.payment-card.primary p {
    color: white;
}

/* Gold corner accent */
.payment-card.primary::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, transparent 50%, #ffd700 50%);
    border-top-right-radius: 18px;
}

/* ============================
   ASB PREMIUM MORE PAGE
============================ */

.more-page {
    padding: 20px 18px 100px;
    background: linear-gradient(to bottom, #f6f1e7, #efe7d6);
    min-height: 100vh;
}

/* Title */
.more-title {
    font-size: 20px;
    font-weight: 600;
    color: #8B0000;
    margin-bottom: 20px;
}

/* List Container */
.more-list {
    background: #ffffff;
    border-radius: 18px;
    padding: 6px 0;
    margin-bottom: 18px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

/* Each Item */
.more-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    text-decoration: none;
    transition: 0.25s ease;
    border-bottom: 1px solid #f2f2f2;
}

.more-item:last-child {
    border-bottom: none;
}

.more-item:hover {
    background: #faf8f3;
}

/* Icon Style */
.more-item i:first-child {
    background: linear-gradient(135deg, #8B0000, #b30000);
    color: #fff;
    font-size: 16px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Text */
.more-item span {
    flex: 1;
    margin-left: 14px;
    font-size: 14px;
    font-weight: 500;
    color: #222;
}

/* Arrow */
.more-item i:last-child {
    color: #bbb;
    font-size: 14px;
}

/* Logout Special Style */
.more-item.logout span {
    color: #b30000;
    font-weight: 600;
}

.more-item.logout i:first-child {
    background: #ffe5e5;
    color: #b30000;
}

.more-item.logout:hover {
    background: #fff3f3;
}

/* Footer */
.more-footer {
    text-align: center;
    font-size: 12px;
    color: #777;
    margin-top: 30px;
}

/* ===============================
   ADMIN DASHBOARD STYLE
================================ */

.admin-container {
    padding: 25px 30px 120px;

    min-height: 100vh;
}

/* Title */
.admin-title {
    font-size: 22px;
    font-weight: 600;
    color: #8B0000;
    margin-bottom: 25px;
}

/* Summary Cards */
.admin-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.05);
    transition: 0.3s ease;
    border-left: 5px solid #8B0000;
}

.summary-card:hover {
    transform: translateY(-5px);
}

.summary-card p {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.summary-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #111;
}

/* Colored Variations */
.summary-card.users {
    border-left-color: #1e90ff;
}

.summary-card.active {
    border-left-color: #28a745;
}

.summary-card.completed {
    border-left-color: #6c757d;
}

.summary-card.revenue {
    border-left-color: #d4af37;
}

/* Activity Section */
.admin-activity {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.05);
}

.activity-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Table */
.activity-table {
    width: 100%;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.table-row.header {
    font-weight: 600;
    color: #444;
}

.table-row span {
    text-align: left;
}

.paid {
    color: #28a745;
    font-weight: 600;
}

.pending {
    color: #dc3545;
    font-weight: 600;
}

/* ===============================
   ADMIN NAVIGATION
================================ */

.admin-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #8B0000;
    display: flex;
    justify-content: space-around;
    padding: 14px 0;
}

.admin-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s;
}

.admin-nav a.active,
.admin-nav a:hover {
    color: #d4af37;
}

/* ================= ADMIN USERS PAGE ================= */
/* ==========================================
   ADMIN USERS TABLE
========================================== */

.admin-users-section {
    padding: 40px 60px;
}

.admin-title {
    font-size: 24px;
    font-weight: 600;
    color: #8b0000;
    margin-bottom: 25px;
}

/* Table Wrapper */
.admin-table-wrapper {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

/* Header */
.admin-table thead {
    background: linear-gradient(90deg, #8b0000, #b30000);
    color: white;
}

.admin-table th {
    padding: 18px;
    font-weight: 600;
    text-align: center;
    font-size: 14px;
}

/* Body */
.admin-table td {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid #f1f1f1;
    font-size: 14px;
}

/* Row Hover */
.admin-table tbody tr:hover {
    background: #faf6f2;
}

/* Status */
.status {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status.active {
    background: #e8f7ec;
    color: #1f8f3a;
}

.status.completed {
    background: #f4f4f4;
    color: #666;
}

/* View Button */
.view-btn {
    background: #8b0000;
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: 0.3s ease;
}

.view-btn:hover {
    background: #b30000;
}

/* ================= MOBILE RESPONSIVE FIX ================= */
@media (max-width: 768px) {

    .admin-users-section {
        padding: 20px;
    }

    .admin-table-wrapper {
        background: transparent;
        box-shadow: none;
    }

    .admin-table,
    .admin-table thead,
    .admin-table tbody,
    .admin-table th,
    .admin-table td,
    .admin-table tr {
        display: block;
        width: 100%;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tr {
        background: #ffffff;
        margin-bottom: 15px;
        border-radius: 14px;
        padding: 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    }

    .admin-table td {
        text-align: left;
        padding: 8px 0;
        border: none;
        font-size: 13px;
        display: flex;
        justify-content: space-between;
    }

    .admin-table td::before {
        font-weight: 600;
        color: #8b0000;
    }

    /* Labels for each column */
    .admin-table td:nth-child(1)::before {
        content: "User";
    }

    .admin-table td:nth-child(2)::before {
        content: "Phone";
    }

    .admin-table td:nth-child(3)::before {
        content: "Plan";
    }

    .admin-table td:nth-child(4)::before {
        content: "Payments";
    }

    .admin-table td:nth-child(5)::before {
        content: "Status";
    }

    .admin-table td:nth-child(6)::before {
        content: "Action";
    }

    .view-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
}



/* ================= ADMIN USER DETAILS ================= */

.admin-user-details {
    padding: 30px 20px 80px;
    max-width: 900px;
    margin: auto;
}

/* ---------- Cards ---------- */

.user-card,
.progress-card,
.history-card {
    border: 1px solid #9B0B0D;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Headings */
.user-card h2,
.progress-card h3,
.history-card h3 {
    margin-bottom: 15px;
    color: #9B0B0D;
}

/* Status */
.status {
    font-weight: 600;
    color: #9B0B0D;
}

/* ---------- Progress Bar ---------- */

.progress-bar {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    margin: 10px 0 15px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #9B0B0D;
}

/* ---------- Payment History ---------- */

.history-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

.history-row:last-child {
    border-bottom: none;
}

/* Paid / Pending */
.paid {
    color: #9B0B0D;
    font-weight: 600;
}

.pending {
    color: #555;
    font-weight: 500;
}

/* ---------- Admin Buttons ---------- */

.admin-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: #9B0B0D;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn:hover {
    opacity: 0.9;
}

/* ---------- Mobile ---------- */

@media (max-width: 768px) {

    .history-row {
        grid-template-columns: 1fr 1fr;
        row-gap: 6px;
    }

    .admin-actions {
        flex-direction: column;
    }
}

/* ================= LOGIN PAGE ================= */

.login-section {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #f9f9f9;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.login-card h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #9B0B0D;
    font-weight: 600;
}

.input-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.input-group input {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: 0.2s ease;
}

.input-group input:focus {
    border-color: #9B0B0D;
    outline: none;
}

.login-btn-main {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: #9B0B0D;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.login-btn-main:hover {
    background: #7a080a;
}

.error-msg {
    background: #ffe5e5;
    color: #b30000;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 15px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: red;
    /* or gold */
    transition: width 0.4s ease;
}

/* ================= PLAN WRAPPER ================= */

.asb-plan-wrapper {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* ================= CARD BASE ================= */

.asb-card {
    width: 280px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    padding: 70px 20px 30px;
    text-align: center;
    position: relative;
    transition: 0.3s ease;
}

.asb-card:hover {
    transform: translateY(-8px);
}

/* ================= BADGE ================= */

.badge {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #9B0B0D;
    color: #fff;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* ================= RIBBON ================= */

.ribbon {
    background: linear-gradient(to right, #9B0B0D, #c31618);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    padding: 10px;
    margin-bottom: 20px;
}

/* ================= LIST ================= */

.asb-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.asb-card ul li {
    margin: 10px 0;
    font-size: 14px;
}

/* ================= BUTTON ================= */

.plan-btn {
    display: inline-block;
    background: #9B0B0D;
    color: #fff;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.plan-btn:hover {
    background: #7c080a;
}

/* ================= GOLD VARIANT ================= */

.gold .ribbon {
    background: linear-gradient(to right, #c9a227, #f5d76e);
    color: #000;
}

.gold .badge {
    background: #c9a227;
    color: #000;
}


/* ================= PREMIUM ASB HEADER ================= */

.asb-header {
    background: linear-gradient(to right, #8b0000, #b22222);
    padding: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-left img {
    height: 60px;
    border-radius: 8px;
}

.brand-text h2 {
    margin: 0;
    font-size: 20px;
    color: #ffffff;
    font-weight: 700;
}

.brand-text span {
    font-size: 13px;
    color: #f5d6a3;
    letter-spacing: 0.5px;
}

.header-btn {
    background: #ffffff;
    color: #8b0000;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s ease;
}

.header-btn:hover {
    background: #f2f2f2;
}

/* ================= ASB HOW IT WORKS ================= */

.info-section {
    padding: 70px 40px;
    background: #f9f9f9;
}

.info-header {
    text-align: center;
    margin-bottom: 50px;
}

.info-header h2 {
    font-size: 26px;
    color: #8b0000;
    font-weight: 700;
}

.info-header p {
    color: #777;
    font-size: 14px;
    margin-top: 5px;
}

.info-timeline {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.info-step {
    background: #ffffff;
    flex: 1;
    min-width: 220px;
    padding: 30px 25px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s ease;
}

.info-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.step-number {
    position: absolute;
    top: -18px;
    left: 20px;
    background: linear-gradient(to right, #8b0000, #b22222);
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 20px;
}

.step-content i {
    font-size: 28px;
    color: #b22222;
    margin-bottom: 15px;
}

.step-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.step-content p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

body.theme-light {
    background: linear-gradient(135deg, #faf6ef, #f3e8d8);
    min-height: 100vh;
}

/* ===== Dashboard Section ===== */
.asb-dashboard {
    padding: 40px 20px;
    max-width: 900px;
    margin: auto;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 30px;
}

.dashboard-header h2 {
    font-size: 24px;
    color: #8b0000;
}

.dashboard-header p {
    color: #666;
    font-size: 14px;
}

/* ===== Main Card ===== */
.cycle-main-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.cycle-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cycle-label {
    font-size: 13px;
    color: #777;
}

.status-badge {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 20px;
    font-weight: 600;
}

.status-badge.active {
    background: #e6f7ef;
    color: #1a7f4b;
}

/* ===== Progress ===== */
.progress-section {
    margin-top: 20px;
}

.progress-bar {
    background: #eee;
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 8px;
    background: linear-gradient(90deg, #8b0000, #b8860b);
    transition: 0.4s ease;
}

.progress-text {
    margin-top: 8px;
    font-size: 13px;
    color: #555;
}

/* ===== Stats ===== */
.cycle-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.stat-box h4 {
    margin: 0;
    font-size: 18px;
    color: #8b0000;
}

.stat-box span {
    font-size: 13px;
    color: #777;
}

/* ===== Benefits ===== */
.benefits-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.benefit-item:last-child {
    border-bottom: none;
}

.benefit-item i {
    font-size: 20px;
    color: #b8860b;
}

.benefit-item strong {
    display: block;
    font-size: 14px;
}

.benefit-item span {
    font-size: 12px;
    color: #666;
}

.info-section {
    background: #fbf7f0;
    padding: 70px 20px;
}

/* =====================================
   ADMIN PAYMENTS PAGE
===================================== */

.admin-payments {
    padding: 40px 60px;
    background: #f7f6f4;
}

/* Header Section */
.payments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.payments-header h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

.payments-actions {
    display: flex;
    gap: 15px;
}

.payments-actions input,
.payments-actions select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 13px;
    outline: none;
}

.payments-actions input:focus,
.payments-actions select:focus {
    border-color: #8b0000;
}

/* Card */
.payments-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 25px 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

/* Table */
.payments-table {
    width: 100%;
    border-collapse: collapse;
}

.payments-table thead {
    background: #8b0000;
    color: white;
}

.payments-table th {
    padding: 14px;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
}

.payments-table td {
    padding: 14px;
    font-size: 14px;
    border-bottom: 1px solid #f1f1f1;
}

.payments-table tbody tr:hover {
    background: #fafafa;
}


.badge.paid {
    background: #eaf7ee;
    color: #1f8f3a;
}

.badge.pending {
    background: #fff3cd;
    color: #b58900;
}

/* ================= PAYMENTS MOBILE FIX ================= */
@media (max-width: 768px) {

    .admin-payments {
        padding: 20px;
    }

    /* Header */
    .payments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .payments-actions {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .payments-actions input,
    .payments-actions select {
        width: 100%;
    }

    /* Convert table into cards */
    .payments-table,
    .payments-table thead,
    .payments-table tbody,
    .payments-table th,
    .payments-table td,
    .payments-table tr {
        display: block;
        width: 100%;
    }

    .payments-table thead {
        display: none;
    }

    .payments-table tr {
        background: #ffffff;
        margin-bottom: 15px;
        padding: 15px;
        border-radius: 14px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

    .payments-table td {
        border: none;
        padding: 8px 0;
        display: flex;
        justify-content: space-between;
        font-size: 13px;
    }

    .payments-table td::before {
        font-weight: 600;
        color: #8b0000;
    }

    /* Adjust these according to your column order */
    .payments-table td:nth-child(1)::before {
        content: "User";
    }

    .payments-table td:nth-child(2)::before {
        content: "Amount";
    }

    .payments-table td:nth-child(3)::before {
        content: "Date";
    }

    .payments-table td:nth-child(4)::before {
        content: "Status";
    }

}


/* =====================================
   PLAN DETAILS – PREMIUM MOBILE FIRST
===================================== */

.plan-details-wrapper {
    padding: 30px 16px;
    background: linear-gradient(to bottom, #f9f6f1, #efe8dd);
    min-height: 100vh;
}

.plan-details-card {
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    margin: auto;
    padding: 28px 22px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    position: relative;
}

/* Badge */
.plan-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    color: white;
}

.plan-badge.premium {
    background: linear-gradient(45deg, #c8a951, #e6c77a);
}

.plan-badge.standard {
    background: #8b0000;
}

/* Title */
.plan-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 22px;
    margin-top: 10px;
    color: #111;
}

/* Features - Mobile Optimized */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
    text-align: left;
}

.plan-features i {
    color: #8b0000;
    font-size: 15px;
}

/* Rules Box */
.rules-box {
    background: #faf7f2;
    padding: 18px;
    border-radius: 14px;
    margin-bottom: 25px;
}

.rules-box h4 {
    font-size: 14px;
    margin-bottom: 12px;
    color: #8b0000;
}

.rules-box li {
    font-size: 13px;
    margin-bottom: 6px;
    color: #555;
}

/* Premium Button */
.pay-btn {
    display: block;
    width: 100%;
    padding: 15px;
    border-radius: 35px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: white;
    text-decoration: none;
    background: linear-gradient(45deg, #8b0000, #b30000);
    box-shadow: 0 6px 15px rgba(139, 0, 0, 0.3);
    transition: 0.3s ease;
}

.pay-btn:hover {
    transform: translateY(-2px);
}

/* ===============================
   MOBILE PLAN DETAILS – FIXED & CLEAN
================================ */

/* Allow proper scrolling */
html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Wrapper */
.plan-details-wrapper {
    padding: 20px 16px 140px;
    /* space for bottom nav */
}

/* Card */
.plan-details-card {
    background: #ffffff;
    padding: 22px 18px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

/* Title */
.plan-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #111;
    text-align: center;
}

/* Feature list */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.plan-features li {
    padding: 14px 0;
    font-size: 15px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.plan-features li:last-child {
    border-bottom: none;
}

/* Rules box */
.rules-box {
    background: #f6f1ea;
    padding: 18px;
    border-radius: 14px;
    margin: 20px 0 30px;
}

.rules-box h4 {
    font-size: 15px;
    margin-bottom: 12px;
    color: #8b0000;
    font-weight: 600;
}

.rules-box p {
    font-size: 13px;
    margin-bottom: 8px;
    color: #555;
}

/* Button */
.pay-btn {
    display: block;
    width: 100%;
    padding: 16px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    background: linear-gradient(45deg, #8b0000, #b30000);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(139, 0, 0, 0.3);
}

.register-option {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.register-option a {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

.register-option a:hover {
    text-decoration: underline;
}