:root {
    --bg: #050505;
    --card: #111111;
    --neon-cyan: #00f3ff;
    --neon-green: #39ff14;
    --text: #ffffff;
    --text-dim: #999999;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color:rgb(14, 15, 14);
    color: var(--text);
    padding: 20px;
}
.main-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    background: #000;
    padding: 10px 15px;
    border-bottom: 2px solid #222;
    /* This is the key line to force the stack */
    display: flex;
    flex-direction: column; 
    gap: 12px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Ensures it takes the full top row */
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand h1 {
    font-size: 13px;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Dashboard Styling: Full Width Below Header */
.earnings-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: #0a0a0a;
    padding: 10px 0;
    border-top: 1px solid #1a1a1a;
    border-radius: 4px;
    width: 100%; /* Ensures it takes the full bottom row */
}

.earning-item {
    text-align: center;
    padding: 2px 0; /* Adds a tiny bit of breathing room */
}

.earning-label {
    display: block;
    font-size: 8px; /* Slightly smaller to keep it professional */
    color: #888;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.earning-amount {
    font-size: 12px; /* Adjusted to fit "Ksh 20,250" comfortably */
    font-weight: 800;
    white-space: nowrap; /* Prevents the number from breaking into two lines */
}

/* Neon Glow for the new amounts */
.neon-green { color: #39FF14; text-shadow: 0 0 5px rgba(57, 255, 20, 0.2); }
.neon-blue { color: #00FFFF; text-shadow: 0 0 5px rgba(0, 255, 255, 0.2); }
.neon-red { color: #FF4444; text-shadow: 0 0 5px rgba(255, 68, 68, 0.2); }
header {
    position: -webkit-sticky; /* For Safari support */
    position: sticky;
    top: 0;
    z-index: 1000; /* Keeps the heading above the profile cards */
    background-color: #000000; /* Match your dark mode background */
    padding: 15px 0;
    border-bottom: 2px solid #39FF14; /* Optional: Neon green line for a sharp look */
    text-align: center;
}

header {
    /* Keep your existing sticky code and add this line: */
    box-shadow: 0 4px 15px rgb(53, 251, 4); /* Neon green subtle glow */
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    color: var(--neon-green);
}

.brand h1 {
    font-size: 1.2rem;
    font-weight: 800;
}

.brand h1 span {
    color: var(--neon-cyan);
}

.status-pill {
    background: rgba(57, 255, 20, 0.1);
    color: var(--neon-green);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-green);
}

.chat-container {
    max-width: 600px;
    margin: 0 auto;
}

.intro {
    margin-bottom: 30px;
}

.intro h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.intro p {
    color: var(--text-dim);
}

.user-card {
    background: var(--card);
    border: 1px solid #222;
    padding: 20px;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    transition: 0.3s;
}

.user-card:hover {
    border-color: var(--neon-cyan);
    transform: translateX(5px);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 45px;
    height: 45px;
    background: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--neon-cyan);
    border: 1px solid #333;
}

.details h3 {
    font-size: 1.1rem;
}

.details p {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.details p span {
    color: white;
}

.chat-btn {
    background: var(--neon-cyan);
    color: black;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s;
}

.chat-btn:hover {
    background: var(--neon-green);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.4);
}
/* Grid Layout */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Square Profile Card */
.profile-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s;
    text-align: center;
}

.profile-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
}

.profile-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Makes it a perfect square */
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes sure photos aren't squished */
    display: block;
}

.status-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    background: var(--neon-green);
    border: 2px solid var(--bg-deep);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-green);
}

.profile-details {
    padding: 15px;
}

.profile-details h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.meta {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 15px;
}

.btn-chat {
    display: block;
    background: var(--neon-cyan);
    color: black;
    text-decoration: none;
    padding: 10px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 0.85rem;
    transition: 0.3s;
}

.btn-chat:hover {
    background: var(--neon-green);
}

/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
    border-radius: 10px;
    text-decoration: none;
    color: white;
}

.page-link.active {
    background: var(--neon-cyan);
    color: black;
    border-color: var(--neon-cyan);
}
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366; /* Official WhatsApp Green */
    color: white;
    padding: 10px 15px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    z-index: 2000; /* Higher than the sticky header */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.whatsapp-float img {
    width: 25px;
    height: 25px;
    margin-right: 8px;
}

.whatsapp-float:hover {
    transform: scale(1.1); /* Slight grow effect when touched */
}
.footer {
    text-align: center;
    margin-top: 50px;
    color: #444;
    font-size: 0.75rem;
    letter-spacing: 1px;
}