/* RCC Connect — Premium mobile member app */

.member-app-body {
    background: linear-gradient(180deg, #EDE4F3 0%, #F5F0FA 120px, #F5F0FA 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.member-app-shell {
    min-height: 100vh;
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

.app-header {
    background: linear-gradient(135deg, #3D0E52 0%, #7B1FA2 100%);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 24px rgba(61, 14, 82, 0.35);
}

.app-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #F6861F, transparent);
    opacity: 0.6;
}

.app-header-logo {
    height: 38px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.app-header-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.app-header-sub {
    font-size: 0.68rem;
    opacity: 0.88;
    font-weight: 500;
}

.app-notif-btn {
    color: #fff;
    font-size: 1.2rem;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    transition: background 0.2s;
}

.app-notif-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.app-content {
    padding: 16px;
}

.app-alert {
    border-radius: 12px;
    margin-bottom: 12px;
}

.member-welcome {
    background: linear-gradient(135deg, #fff 0%, #F3E8F8 100%);
    border: 1px solid rgba(123, 31, 162, 0.1);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(91, 21, 128, 0.08);
    position: relative;
    overflow: hidden;
}

.member-welcome::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(246, 134, 31, 0.15) 0%, transparent 70%);
}

.member-welcome .greeting {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--rcc-orange);
    margin-bottom: 4px;
}

.member-welcome h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--rcc-purple-dark);
    margin: 0 0 4px;
}

.member-welcome p {
    font-size: 0.82rem;
    color: var(--rcc-text-muted);
    margin: 0;
}

.member-avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--rcc-purple), var(--rcc-purple-dark));
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(123, 31, 162, 0.3);
}

.member-avatar-photo {
    object-fit: cover;
    background: #fff;
    border: 2px solid var(--rcc-orange);
}

.app-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.app-stat-pill {
    background: #fff;
    border-radius: 14px;
    padding: 12px 10px;
    text-align: center;
    border: 1px solid rgba(123, 31, 162, 0.06);
    box-shadow: 0 2px 10px rgba(91, 21, 128, 0.06);
}

.app-stat-pill strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--rcc-purple);
    line-height: 1.1;
}

.app-stat-pill span {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--rcc-text-muted);
}

.app-stat-pill.accent strong {
    color: var(--rcc-orange-dark);
}

.app-page-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.app-back-link {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(123, 31, 162, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rcc-purple);
    text-decoration: none;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(91, 21, 128, 0.06);
}

.app-page-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--rcc-purple-dark);
    margin: 0;
    line-height: 1.2;
}

.app-page-subtitle {
    font-size: 0.85rem;
    color: var(--rcc-text-muted);
    margin: 4px 0 0;
}

.app-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-around;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 24px rgba(61, 14, 82, 0.1);
    z-index: 100;
    border-top: 1px solid rgba(123, 31, 162, 0.08);
}

.app-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6B5B73;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 12px;
    min-width: 56px;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}

.app-nav-item i {
    font-size: 1.3rem;
    margin-bottom: 3px;
    transition: transform 0.2s;
}

.app-nav-item.active {
    color: var(--rcc-purple);
    background: var(--rcc-purple-soft);
}

.app-nav-item.active i {
    color: var(--rcc-orange);
    transform: scale(1.05);
}

.devotional-card {
    background: linear-gradient(145deg, #5E1580 0%, #7B1FA2 40%, #9C4DC4 100%);
    color: #fff;
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 16px;
    box-shadow: 0 10px 32px rgba(123, 31, 162, 0.4);
    position: relative;
    overflow: hidden;
}

.devotional-card::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(246, 134, 31, 0.2) 0%, transparent 70%);
}

.devotional-card .dev-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #FFB366;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
}

.devotional-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 8px;
    position: relative;
}

.devotional-card .scripture {
    font-style: italic;
    opacity: 0.92;
    font-size: 0.85rem;
    margin-bottom: 12px;
    position: relative;
}

.devotional-card .content {
    font-size: 0.9rem;
    line-height: 1.65;
    opacity: 0.95;
    position: relative;
}

.app-section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    color: #5E1580;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 22px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(123, 31, 162, 0.15), transparent);
}

.app-tile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.app-tile {
    background: #fff;
    border-radius: 16px;
    padding: 18px 14px;
    text-align: center;
    text-decoration: none;
    color: #2A1A33;
    box-shadow: 0 4px 16px rgba(91, 21, 128, 0.07);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(123, 31, 162, 0.06);
}

.app-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(91, 21, 128, 0.12);
    color: #2A1A33;
}

.app-tile .tile-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--rcc-purple-soft), var(--rcc-orange-soft));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.app-tile .tile-icon i {
    font-size: 1.4rem;
    color: var(--rcc-purple);
}

.app-tile span {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
    display: block;
}

.app-tile.featured {
    grid-column: span 2;
    display: flex;
    align-items: center;
    text-align: left;
    gap: 14px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #fff, var(--rcc-orange-soft));
    border-color: rgba(246, 134, 31, 0.2);
}

.app-tile.featured .tile-icon {
    margin-bottom: 0;
    background: linear-gradient(135deg, var(--rcc-orange), var(--rcc-orange-dark));
}

.app-tile.featured .tile-icon i {
    color: #fff;
}

.momo-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid rgba(123, 31, 162, 0.12);
    border-radius: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.momo-btn:has(input:checked) {
    border-color: #F6861F;
    background: #FFF4E8;
    box-shadow: 0 4px 12px rgba(246, 134, 31, 0.15);
}

.momo-btn input { display: none; }

.momo-btn .momo-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.68rem;
    color: #fff;
    flex-shrink: 0;
}

.momo-mtn { background: #FFCC00; color: #000 !important; }
.momo-telecel { background: #E60000; }
.momo-at { background: #ED1C24; }

.feed-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 10px;
    border: 1px solid rgba(123, 31, 162, 0.06);
    box-shadow: 0 2px 12px rgba(91, 21, 128, 0.05);
}

.feed-card.accent-left {
    border-left: 4px solid #F6861F;
}

.feed-card h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #5E1580;
    margin-bottom: 4px;
    font-size: 0.92rem;
}

.feed-card p {
    font-size: 0.85rem;
    color: #6B5B73;
    margin-bottom: 4px;
    line-height: 1.5;
}

.feed-card small {
    color: #999;
    font-size: 0.75rem;
}

.media-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid rgba(123, 31, 162, 0.06);
    box-shadow: 0 4px 16px rgba(91, 21, 128, 0.06);
}

.media-card-thumb {
    height: 100px;
    background: linear-gradient(135deg, #3D0E52, #9C4DC4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.media-card-thumb i.bi-play-btn {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.25);
}

.media-card-thumb .play-btn {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: var(--rcc-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.media-card-body {
    padding: 14px 16px;
}

.profile-hero {
    background: linear-gradient(135deg, #3D0E52, #7B1FA2);
    border-radius: 18px;
    padding: 20px;
    color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 8px 28px rgba(61, 14, 82, 0.35);
}

.profile-hero .member-avatar {
    width: 64px;
    height: 64px;
    font-size: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.profile-hero h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
    color: #fff;
}

.profile-hero .role-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(246, 134, 31, 0.3);
    color: #FFB366;
    padding: 3px 8px;
    border-radius: 6px;
    margin-top: 4px;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.profile-info-item {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(123, 31, 162, 0.06);
}

.profile-info-item label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rcc-text-muted);
    margin-bottom: 2px;
}

.profile-info-item span {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--rcc-purple-dark);
}

.app-event-card {
    display: flex;
    gap: 12px;
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid rgba(123, 31, 162, 0.06);
    box-shadow: 0 2px 12px rgba(91, 21, 128, 0.05);
}

.app-event-date {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--rcc-purple), var(--rcc-purple-dark));
    color: #fff;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.app-event-date .d {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
}

.app-event-date .m {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.9;
}

.giving-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.giving-summary-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid rgba(123, 31, 162, 0.06);
    box-shadow: 0 2px 12px rgba(91, 21, 128, 0.05);
}

.giving-summary-card label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rcc-text-muted);
    margin-bottom: 4px;
    display: block;
}

.giving-summary-card strong {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--rcc-purple);
}

.giving-summary-card.confirmed strong {
    color: #2E7D32;
}

.app-form-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 16px;
    border: 1px solid rgba(123, 31, 162, 0.08);
    box-shadow: 0 4px 20px rgba(91, 21, 128, 0.06);
}

.app-form-card .form-card-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--rcc-purple-dark);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--rcc-orange-soft);
}

.app-action-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.app-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid rgba(123, 31, 162, 0.1);
    border-radius: 14px;
    text-decoration: none;
    color: var(--rcc-text);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(91, 21, 128, 0.04);
}

.app-action-btn i {
    font-size: 1.2rem;
    color: var(--rcc-purple);
    width: 24px;
    text-align: center;
}

.app-action-btn:hover {
    border-color: var(--rcc-purple-light);
    color: var(--rcc-purple-dark);
    transform: translateX(2px);
}

@media (min-width: 768px) {
    .member-app-body {
        background: linear-gradient(180deg, #E8DDF0 0%, #D4C4E0 100%);
    }

    .member-app-shell {
        max-width: 430px;
        margin: 0 auto;
        background: #F5F0FA;
        min-height: 100vh;
        box-shadow: 0 0 60px rgba(61, 14, 82, 0.2);
        position: relative;
    }

    .app-bottom-nav {
        max-width: 430px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 16px 16px 0 0;
    }
}
