* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: radial-gradient(circle at center, #111827 0%, #030712 100%);
    color: #f1f5f9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-bottom: 90px;
}

.app-container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
}

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

.user-welcome h1 {
    font-size: 1.25rem;
    font-weight: 700;
}

.user-welcome p {
    font-size: 0.85rem;
    color: #93c5fd;
}

.profile-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 50%;
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Hero Card Layout with Frosted Transparent White Card */
.fuelpay-hero-card {
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.5)), 
                url('global_connection.jpg') no-repeat center center;
    background-size: cover;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    min-height: 700px;
    justify-content: space-between;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.visual-showcase {
    position: relative;
    background: transparent;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 20px;
}

.sanctuary-tag {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Centered Learn More Divider Badge */
.earth-learn-more-badge {
    background: rgba(147, 51, 234, 0.85);
    color: #f8fafc;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.2s;
    margin: 0 auto;
}

.earth-learn-more-badge:hover {
    background: rgba(147, 51, 234, 1);
    transform: scale(1.03);
}

/* Frosted Semi-Transparent White Info Card */
.white-info-card {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 22px 20px;
    text-align: center;
    color: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.card-main-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.highlight-text {
    color: #2563eb;
}

.card-subtitle {
    font-size: 0.8rem;
    color: #334155;
    margin-bottom: 6px;
    line-height: 1.3;
    font-weight: 500;
}

.refuge-quote {
    font-size: 0.78rem;
    font-style: italic;
    font-weight: 600;
    color: #1e3a8a;
    background: rgba(240, 253, 244, 0.8);
    border-left: 4px solid #22c55e;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.auth-inner-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-inner-form input, .auth-inner-form textarea {
    background: rgba(248, 250, 252, 0.7);
    border: 1px solid rgba(203, 213, 225, 0.8);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.82rem;
    color: #0f172a;
    outline: none;
    width: 100%;
    resize: none;
}

.auth-inner-form input::placeholder, .auth-inner-form textarea::placeholder {
    color: #64748b;
}

/* Sleek Oval Pill Buttons */
.pill-action-btn {
    width: 100%;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: center;
    border: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    transition: transform 0.1s, background 0.2s;
}

.pill-action-btn:hover {
    transform: translateY(-1px);
}

.get-started-btn {
    width: 100%;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 11px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
    transition: background 0.2s;
    margin-top: 2px;
}

.get-started-btn:hover {
    background: #1d4ed8;
}

/* Rolodex Navigation Wheel */
.rolodex-wheel {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 6px 2px 12px 2px;
    scroll-snap-type: x mandatory;
}

.rolodex-card {
    flex: 0 0 130px;
    scroll-snap-align: start;
    background: rgba(30, 58, 138, 0.35);
    border: 1px solid rgba(96, 165, 250, 0.4);
    border-radius: 16px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.rolodex-card:hover {
    background: rgba(30, 58, 138, 0.6);
    transform: translateY(-2px);
}

.rolodex-icon {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.rolodex-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #f8fafc;
}

/* Member Dashboard & Activity Feed Styles */
.connect-view-section {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.member-profile-card {
    background: rgba(30, 58, 138, 0.35);
    border: 1px solid rgba(96, 165, 250, 0.4);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.member-avatar-container {
    background: #2563eb;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid rgba(56, 189, 248, 0.6);
}

.badge-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.badge-pill {
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #e0f2fe;
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-messages-container {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 14px;
    height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.chat-message-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.chat-avatar-sm {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    overflow: hidden;
}

.chat-bubble {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 12px;
    max-width: 80%;
}

.chat-user-handle {
    font-size: 0.75rem;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 2px;
}

.chat-text {
    font-size: 0.82rem;
    color: #f8fafc;
    line-height: 1.3;
}

.chat-input-form {
    display: flex;
    gap: 8px;
}

.chat-input-form input {
    flex: 1;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px 12px;
    color: #ffffff;
    font-size: 0.85rem;
    outline: none;
}

.chat-send-btn {
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 0.9rem;
    cursor: pointer;
}

.create-group-card {
    background: rgba(30, 58, 138, 0.3);
    border: 1px dashed rgba(96, 165, 250, 0.4);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
}

.group-form-vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.group-form-vertical input, .group-form-vertical textarea {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px 12px;
    color: #ffffff;
    font-size: 0.85rem;
    outline: none;
}

.create-group-btn {
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.caregiver-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.cg-avatar {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.connect-action-btn {
    background: #38bdf8;
    color: #0f172a;
    border: none;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(96, 165, 250, 0.2);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #64748b;
    text-decoration: none;
    font-size: 0.75rem;
    gap: 4px;
    cursor: pointer;
}

.nav-item.active, .nav-item:hover {
    color: #60a5fa;
}