* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --blue: #5ba4cf;
    --blue-dark: #2e7bb4;
    --blue-light: #eaf4fc;
    --yellow: #f5c518;
    --green: #1a6b3c;
    --red: #d0312d;
    --pink: #e75480;
    --white: #fff;
    --gray: #f4f6f9;
    --text: #1a2535;
    --muted: #6b7a8d;
}
body {
    font-family: "Segoe UI", sans-serif;
    background: var(--gray);
    color: var(--text);
}
nav {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
}
.nav-scroll {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.nav-scroll::-webkit-scrollbar {
    display: none;
}
.nav-scroll button,
.nav-scroll a {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    padding: 7px 11px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}
.nav-scroll button:hover,
.nav-scroll button.active,
.nav-scroll a:hover,
.nav-scroll a.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.nav-cta {
    background: var(--yellow) !important;
    color: var(--text) !important;
    font-weight: 700 !important;
    border-radius: 20px !important;
}
.page {
    display: none;
}
.page.active {
    display: block;
}
.hero {
    background: linear-gradient(
        160deg,
        #1a4a7a,
        var(--blue-dark) 40%,
        var(--blue)
    );
    color: #fff;
    text-align: center;
    padding: 70px 2rem 50px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.eagle-logo {
    font-size: 4.5rem;
    margin-bottom: 0.8rem;
}
.hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}
.hero p {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 1.8rem;
}
.hero-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn {
    padding: 11px 26px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.btn-primary {
    background: var(--yellow);
    color: var(--text);
}
.btn-primary:hover {
    background: #e0b400;
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}
.stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}
.stat .num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--yellow);
}
.stat .lbl {
    font-size: 0.75rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.houses-row {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    padding: 1.2rem 2rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.house-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.2s;
}
.house-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.house-sb {
    border-color: var(--yellow);
    color: #8b6914;
    background: #fff8dc;
}
.house-tt {
    border-color: var(--green);
    color: var(--green);
    background: #e8f5ee;
}
.house-nz {
    border-color: var(--red);
    color: var(--red);
    background: #fde8e8;
}
.house-ik {
    border-color: var(--pink);
    color: var(--pink);
    background: #fde8f0;
}
.section {
    padding: 2.5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}
.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-sub {
    color: var(--muted);
    margin-bottom: 1.8rem;
}
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.2rem;
}
.card {
    background: #fff;
    border-radius: 14px;
    padding: 1.3rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.search-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 1.4rem;
    flex-wrap: wrap;
}
.search-bar input,
.search-bar select {
    padding: 9px 14px;
    border-radius: 8px;
    border: 2px solid #dce3ee;
    font-size: 0.88rem;
    outline: none;
    transition: border 0.2s;
}
.search-bar input {
    flex: 1;
    min-width: 180px;
}
.search-bar input:focus,
.search-bar select:focus {
    border-color: var(--blue);
}
.alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.alumni-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
    cursor: pointer;
}
.alumni-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}
.alumni-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2px;
}
.alumni-card .batch {
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 5px;
}
.alumni-card .profession {
    font-size: 0.8rem;
    color: var(--blue-dark);
    font-weight: 500;
}
.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 7px;
}
.feed {
    max-width: 620px;
    margin: 0 auto;
}
.post-box {
    background: #fff;
    border-radius: 14px;
    padding: 0.9rem 1.1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.1rem;
    display: flex;
    gap: 9px;
    align-items: center;
}
.post-box input {
    flex: 1;
    border: 2px solid #dce3ee;
    border-radius: 20px;
    padding: 9px 14px;
    font-size: 0.88rem;
    outline: none;
}
.post-box input:focus {
    border-color: var(--blue);
}
.post {
    background: #fff;
    border-radius: 14px;
    padding: 1.1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    margin-bottom: 0.9rem;
}
.post-header {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 0.7rem;
}
.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    font-size: 0.95rem;
}
.post-meta strong {
    font-size: 0.88rem;
}
.post-meta span {
    font-size: 0.76rem;
    color: var(--muted);
    display: block;
}
.post p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #2c3e50;
}
.post-actions {
    display: flex;
    gap: 0.9rem;
    margin-top: 0.7rem;
    padding-top: 0.7rem;
    border-top: 1px solid #f0f0f0;
}
.post-actions button {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.post-actions button:hover {
    color: var(--blue);
}
.event-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    display: flex;
}
.event-date {
    background: var(--blue-dark);
    color: #fff;
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    text-align: center;
}
.event-date .day {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1;
}
.event-date .month {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
}
.event-body {
    padding: 0.9rem 1.1rem;
    flex: 1;
}
.event-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.event-body p {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 7px;
}
.event-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.events-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.rsvp-btn {
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.rsvp-btn:hover {
    background: var(--blue-dark);
}
.rsvp-btn.rsvped {
    background: #27ae60;
}
.job-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.job-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.job-meta {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 9px;
}
.tag {
    background: var(--blue-light);
    color: var(--blue-dark);
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-right: 5px;
}
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.mentor-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 10px;
    padding: 9px 13px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin: 0.3rem;
    cursor: pointer;
}
.mentor-chip .chip-av {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    font-size: 0.85rem;
}
.gallery-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.gtab {
    padding: 8px 18px;
    border-radius: 20px;
    border: 2px solid #dce3ee;
    background: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.gtab.active,
.gtab:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.9rem;
}
.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 4/3;
    transition: all 0.2s;
}
.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.gallery-item .gimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    flex-direction: column;
    gap: 6px;
}
.gallery-item .gcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    padding: 12px 10px 8px;
    font-size: 0.78rem;
    font-weight: 600;
}
.lb-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
}
.lb-tabs button {
    padding: 8px 18px;
    border-radius: 20px;
    border: 2px solid #dce3ee;
    background: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.lb-tabs button.active {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}
.lb-house-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.lb-house-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.4rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border-top: 5px solid;
}
.lb-rank {
    font-size: 2rem;
    margin-bottom: 0.3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.lb-house-card h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.lb-house-card .pts {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 2px;
}
.lb-house-card .pts-lbl {
    font-size: 0.75rem;
    color: var(--muted);
}
.lb-table {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.lb-table table {
    width: 100%;
    border-collapse: collapse;
}
.lb-table th {
    background: var(--blue-dark);
    color: #fff;
    padding: 11px 14px;
    text-align: left;
    font-size: 0.83rem;
    font-weight: 700;
}
.lb-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85rem;
}
.lb-table tr:last-child td {
    border-bottom: none;
}
.lb-table tr:hover td {
    background: var(--blue-light);
}
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.8rem;
}
.cls-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.cls-tab {
    padding: 7px 16px;
    border-radius: 20px;
    border: 2px solid #dce3ee;
    background: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.83rem;
    transition: all 0.2s;
}
.cls-tab.active,
.cls-tab:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}
.cls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1rem;
}
.cls-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.cls-card .cls-cat {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    padding: 3px 9px;
    border-radius: 12px;
    display: inline-block;
}
.cls-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 5px;
}
.cls-card p {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 10px;
}
.cls-card .cls-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--muted);
}
.cls-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--blue-dark);
}
.post-btn {
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.post-btn:hover {
    background: var(--blue-dark);
}
.sponsor-hero {
    background: linear-gradient(135deg, #1a3a5c, var(--blue-dark));
    color: #fff;
    border-radius: 18px;
    padding: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
}
.sponsor-tiers {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.tier-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}
.tier-label h3 {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.tier-divider {
    flex: 1;
    height: 2px;
    border-radius: 2px;
}
.sponsor-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.sponsor-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.4rem 1.8rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    min-width: 150px;
}
.sponsor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.sponsor-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-dark);
}
.sponsor-name {
    font-weight: 800;
    font-size: 0.95rem;
}
.sponsor-tag {
    font-size: 0.75rem;
    color: var(--muted);
}
.sponsor-cta {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: #fff;
    border-radius: 14px;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}
.tier-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 4px;
}
.donate-hero {
    background: linear-gradient(135deg, var(--blue-dark), #1a3a5c);
    color: #fff;
    border-radius: 18px;
    padding: 2.2rem;
    text-align: center;
    margin-bottom: 1.8rem;
}
.donate-hero h2 {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}
.campaign-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.3rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.campaign-card h3 {
    font-weight: 700;
    margin-bottom: 5px;
}
.campaign-card p {
    font-size: 0.83rem;
    color: var(--muted);
    margin-bottom: 11px;
}
.progress-bar {
    height: 9px;
    background: #e8edf2;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 7px;
}
.progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease;
}
.progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 11px;
}
.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.1rem;
}
.donate-btn {
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 9px 20px;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.donate-btn:hover {
    background: var(--blue-dark);
}
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 200;
    align-items: center;
    justify-content: center;
}
.modal-overlay.open {
    display: flex;
}
.modal {
    background: #fff;
    border-radius: 18px;
    padding: 1.8rem;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.modal h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal input,
.modal select,
.modal textarea {
    width: 100%;
    padding: 9px;
    border: 2px solid #dce3ee;
    border-radius: 8px;
    margin-bottom: 9px;
    font-size: 0.88rem;
    outline: none;
}
.modal input:focus,
.modal select:focus,
.modal textarea:focus {
    border-color: var(--blue);
}
.modal textarea {
    height: 80px;
    resize: vertical;
}
.modal-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.84rem;
    line-height: 1.4;
    margin-bottom: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.modal-alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
}
.modal-alert-success {
    background-color: #f0fdf4;
    border: 1px solid #86efac;
    color: #15803d;
}
.modal-alert-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}
.modal-alert-content {
    flex: 1;
}
.modal .form-group {
    margin-bottom: 10px;
}
.field-error-text {
    display: block;
    color: #dc2626;
    font-size: 0.78rem;
    font-weight: 500;
    margin-top: -4px;
    margin-bottom: 8px;
}
.modal input.is-invalid,
.modal select.is-invalid,
.modal textarea.is-invalid {
    border-color: #ef4444 !important;
    background-color: #fffbfa !important;
}
.modal input.is-invalid:focus,
.modal select.is-invalid:focus,
.modal textarea.is-invalid:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}
.close-btn {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--muted);
}
.amount-options {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 11px;
}
.amount-btn {
    padding: 7px 14px;
    border: 2px solid #dce3ee;
    border-radius: 20px;
    background: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}
.amount-btn.selected,
.amount-btn:hover {
    border-color: var(--blue);
    background: var(--blue-light);
    color: var(--blue-dark);
}
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 300;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.lightbox.open {
    display: flex;
}
.lightbox .lb-img {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox .lb-cap {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}
.lightbox .lb-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: #fff;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}
.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #27ae60;
    color: #fff;
    padding: 11px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    z-index: 400;
    transform: translateY(100px);
    transition: transform 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.notification.show {
    transform: translateY(0);
}
footer {
    background: #1a2535;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 1.8rem;
    font-size: 0.82rem;
    margin-top: 3rem;
}
footer strong {
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 4px;
}
footer a {
    color: var(--blue);
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

/* Crisp Line-Art SVG Icons Styling */
.icon {
    width: 1.25em;
    height: 1.25em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
    display: inline-block;
}
.icon-inline {
    margin-right: 6px;
}
.icon-lg {
    width: 1.8rem;
    height: 1.8rem;
}
.icon-xl {
    width: 3.5rem;
    height: 3.5rem;
}
.icon-card {
    color: var(--blue);
    margin-bottom: 0.6rem;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   DASHBOARD / PROFILE SIDEBAR SPECIALIZED STYLES
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.db-container {
    display: flex;
    min-height: calc(100vh - 60px);
    position: relative;
}

/* Sidebar Styling */
.db-sidebar {
    width: 260px;
    background: var(--white);
    border-right: 1px solid #e8edf2;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 95;
}

.db-user-profile {
    text-align: center;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #f0f4f8;
}

.db-user-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    margin: 0 auto 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.db-avatar-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #27ae60;
    border: 2px solid var(--white);
}

.db-user-profile h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.db-user-profile .meta {
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 8px;
}

.db-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.db-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.db-menu-item:hover,
.db-menu-item.active {
    color: var(--blue-dark);
    background: var(--blue-light);
}

.db-menu-item svg {
    transition: transform 0.2s ease;
}

.db-menu-item:hover svg {
    transform: scale(1.1);
}

/* Sidebar Footer / Return Button */
.db-sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f4f8;
}

/* Content Area Styling */
.db-content {
    flex: 1;
    padding: 2.2rem;
    background: var(--gray);
    overflow-y: auto;
}

.db-tab-page {
    display: none;
    animation: fadeIn 0.4s ease;
}

.db-tab-page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Header Bar */
.db-mobile-header {
    display: none;
    background: var(--white);
    height: 52px;
    border-bottom: 1px solid #e8edf2;
    padding: 0 1.2rem;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 60px;
    z-index: 80;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.db-menu-toggle {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.db-mobile-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
}

.db-overlay {
    display: none;
    position: fixed;
    top: 60px;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 90;
    backdrop-filter: blur(2px);
}

/* Dashboard Cards & Layout Elements */
.db-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.db-stat-card {
    background: var(--white);
    border-radius: 14px;
    padding: 1.4rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 14px;
    border-left: 4px solid var(--blue);
}

.db-stat-card.sc-yellow {
    border-left-color: var(--yellow);
}
.db-stat-card.sc-green {
    border-left-color: var(--green);
}
.db-stat-card.sc-pink {
    border-left-color: var(--pink);
}

.db-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.db-stat-info h4 {
    font-size: 0.76rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.db-stat-info .num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
}

.db-grid-2col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 992px) {
    .db-grid-2col {
        grid-template-columns: 1fr;
    }
}

.db-card {
    background: var(--white);
    border-radius: 14px;
    padding: 1.6rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
}

.db-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #f0f4f8;
    padding-bottom: 0.8rem;
    color: var(--text);
}

/* Edit Profile Forms */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text);
}

/* Contributions Tab Details */
.db-progress-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid #e8edf2;
    padding: 1rem 1.2rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.db-receipt-btn {
    background: var(--blue-light);
    color: var(--blue-dark);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.db-receipt-btn:hover {
    background: var(--blue-dark);
    color: var(--white);
}

/* Jobs / Posts Tab */
.db-post-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 0;
    border-bottom: 1px solid #f0f4f8;
    gap: 1rem;
}

.db-post-item:last-child {
    border-bottom: none;
}

.db-post-actions {
    display: flex;
    gap: 8px;
}

/* Messaging / Network Tab */
.db-chat-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    height: 520px;
}

@media (max-width: 768px) {
    .db-chat-layout {
        grid-template-columns: 1fr;
    }
    .db-chat-box {
        display: none;
    }
    .db-chat-layout.chat-active .db-chat-list {
        display: none;
    }
    .db-chat-layout.chat-active .db-chat-box {
        display: flex;
    }
}

.db-chat-list {
    border-right: 1px solid #e8edf2;
    display: flex;
    flex-direction: column;
}

.db-chat-list-header {
    padding: 1rem 1.2rem;
    font-weight: 800;
    border-bottom: 1px solid #e8edf2;
}

.db-chat-threads {
    overflow-y: auto;
    flex: 1;
}

.db-chat-thread {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #f8fafc;
    cursor: pointer;
    transition: background 0.2s;
}

.db-chat-thread:hover,
.db-chat-thread.active {
    background: var(--gray);
}

.db-thread-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.db-thread-info {
    flex: 1;
    min-width: 0;
}

.db-thread-info h5 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-thread-info p {
    font-size: 0.74rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-chat-box {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.db-chat-header {
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid #e8edf2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.db-chat-body {
    flex: 1;
    padding: 1.2rem;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.db-chat-footer {
    padding: 0.8rem 1.2rem;
    border-top: 1px solid #e8edf2;
    display: flex;
    gap: 10px;
    align-items: center;
}

.db-chat-input {
    flex: 1;
    border: 1px solid #dce3ee;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 0.88rem;
    outline: none;
}

.db-chat-input:focus {
    border-color: var(--blue);
}

.msg-bubble {
    max-width: 70%;
    padding: 8px 14px;
    border-radius: 14px;
    font-size: 0.82rem;
    line-height: 1.4;
}

.msg-bubble.sent {
    background: var(--blue-dark);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.msg-bubble.received {
    background: #e2e8f0;
    color: var(--text);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .db-mobile-header {
        display: flex;
    }

    .db-sidebar {
        position: fixed;
        top: 60px;
        left: 0;
        bottom: 0;
        transform: translateX(-100%);
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    }

    .db-container.sidebar-open .db-sidebar {
        transform: translateX(0);
    }

    .db-container.sidebar-open .db-overlay {
        display: block;
    }

    .db-content {
        padding: 1.2rem;
    }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   CUSTOMER DASHBOARD (PHASE 2) NAMESPACED STYLES (.db2-)
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.db2-layout-container {
    display: flex;
    min-height: calc(100vh - 60px);
    position: relative;
    background: #f4f6f9;
}

/* Quick sidebar (narrow blue icons bar on the left) */
.db2-quick-sidebar {
    width: 70px;
    background: var(--white);
    border-right: 1px solid #e8edf2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
    gap: 1.2rem;
    flex-shrink: 0;
}

.db2-quick-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--blue-light);
    color: var(--blue-dark);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.db2-quick-btn:hover,
.db2-quick-btn.active {
    background: var(--blue-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(46, 123, 180, 0.3);
}

/* Main Navigation Sidebar */
.db2-menu-sidebar {
    width: 280px;
    background: var(--white);
    border-right: 1px solid #e8edf2;
    padding: 1.8rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 95;
}

.db2-user-card {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f4f8;
}

.db2-user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 0.8rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--white);
    background: var(--blue-light);
}

.db2-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.db2-user-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.db2-user-card p {
    font-size: 0.82rem;
    color: var(--muted);
}

.db2-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
}

.db2-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-radius: 25px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.db2-menu-item:hover,
.db2-menu-item.active {
    color: var(--text);
    background: #eef1f6;
}

.db2-menu-item .menu-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.db2-menu-item svg {
    color: var(--muted);
    transition: color 0.2s ease;
}

.db2-menu-item:hover svg,
.db2-menu-item.active svg {
    color: var(--blue-dark);
}

.db2-menu-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    background: #27ae60;
    color: var(--white);
}

/* Main Dashboard Panel */
.db2-content-area {
    flex: 1;
    padding: 2.2rem;
    overflow-y: auto;
}

/* Content grid structure matching provided mockup */
.db2-dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1200px) {
    .db2-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Wallet Card - Deep charcoal gradient */
.db2-wallet-card {
    background: linear-gradient(135deg, #232733, #151821);
    color: var(--white);
    border-radius: 18px;
    padding: 2.2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.db2-wallet-info {
    z-index: 2;
    flex: 1;
}

.db2-wallet-info .label {
    font-size: 0.85rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.db2-wallet-info .balance {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.db2-wallet-info .recharge-details {
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    padding-top: 1.2rem;
    margin-bottom: 1.5rem;
}

.db2-wallet-info .recharge-lbl {
    font-size: 0.78rem;
    opacity: 0.6;
    margin-bottom: 0.2rem;
}

.db2-wallet-info .recharge-val {
    font-size: 1.2rem;
    font-weight: 700;
}

.db2-wallet-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.db2-recharge-btn {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.db2-recharge-btn:hover {
    background: var(--white);
    color: #151821;
    border-color: var(--white);
    transform: translateY(-1px);
}

.db2-offline-link {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
}

.db2-offline-link:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Wallet card vector graphic decoration */
.db2-wallet-art {
    width: 180px;
    height: 180px;
    opacity: 0.85;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

@media (max-width: 600px) {
    .db2-wallet-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .db2-wallet-art {
        display: none;
    }
}

/* Small Stats Cards stacked vertically on right */
.db2-stats-stack {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.db2-card-blue {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.db2-card-dark {
    background: #111116;
    color: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.db2-stat-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.db2-stat-content h4 {
    font-size: 0.82rem;
    opacity: 0.8;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.db2-stat-content .value {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.db2-stat-content .link {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.db2-stat-content .link:hover {
    text-decoration: underline;
    color: var(--white);
}

/* Lower Section - 3-Column Layout */
.db2-lower-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 992px) {
    .db2-lower-grid {
        grid-template-columns: 1fr;
    }
}

.db2-white-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.8rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.db2-white-card h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1.4rem;
    border-bottom: 1px solid #f0f4f8;
    padding-bottom: 0.8rem;
}

/* Vertical counter indicators */
.db2-count-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.db2-count-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.db2-count-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.db2-count-num {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.db2-count-lbl {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 0.1rem;
}

.db2-address-block {
    font-size: 0.85rem;
    line-height: 1.7;
    color: #4a5568;
    flex: 1;
    margin-bottom: 1.4rem;
}

.db2-btn-dark {
    background: #1e222d;
    color: var(--white);
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
    width: 100%;
    margin-top: auto;
}

.db2-btn-dark:hover {
    background: var(--text);
}

/* Mobile responsive menu headers */
.db2-mobile-header {
    display: none;
    background: var(--white);
    height: 52px;
    border-bottom: 1px solid #e8edf2;
    padding: 0 1.2rem;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 60px;
    z-index: 80;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.db2-overlay {
    display: none;
    position: fixed;
    top: 60px;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 90;
    backdrop-filter: blur(2px);
}

@media (max-width: 768px) {
    .db2-mobile-header {
        display: flex;
    }
    .db2-quick-sidebar {
        display: none;
    }
    .db2-menu-sidebar {
        position: fixed;
        top: 60px;
        left: 0;
        bottom: 0;
        transform: translateX(-100%);
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    }
    .db2-layout-container.sidebar-open .db2-menu-sidebar {
        transform: translateX(0);
    }
    .db2-layout-container.sidebar-open .db2-overlay {
        display: block;
    }
    .db2-content-area {
        padding: 1.2rem;
    }
}

/* Coins graphic animation & canvas */
.db2-coin-svg {
    width: 130px;
    height: 130px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
    animation: floatCoin 4s ease-in-out infinite;
}

@keyframes floatCoin {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(3deg);
    }
}

/* Floating demos widget on right */
.db2-demos-widget {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    padding: 8px 4px;
    gap: 12px;
    z-index: 150;
}

.db2-demo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 6px;
    transition: all 0.2s;
    cursor: pointer;
}

.db2-demo-item:hover {
    color: var(--blue-dark);
}

.db2-demo-item svg {
    margin-bottom: 2px;
}

/* Agent Dashboard styles are self-contained in dashboard/index.html <style> block */

/* ── UNIFIED PREMIUM CARDS & BUTTONS ──────────────────────────────────── */
.premium-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e8edf2;
    position: relative;
}
.premium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}
.premium-card .card-img {
    height: 160px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #e8edf2;
}
.premium-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.premium-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text);
    line-height: 1.35;
}
.premium-card .card-desc {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.bg-gray {
    background: #f0f4f8;
    color: var(--muted);
}
.bg-blue-light {
    background: var(--blue-light);
    color: var(--blue-dark);
}

.premium-card .card-footer {
    border-top: 1px solid #f0f4f8;
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.premium-card .card-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.premium-btn-primary {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(46, 123, 180, 0.2);
}
.premium-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(46, 123, 180, 0.3);
    color: #fff;
}

/* ── Timeline Styles ────────────────────────────────────────── */
.timeline-section {
    margin-bottom: 30px;
}
.timeline-section-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a2535;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #e8edf2;
    padding-bottom: 8px;
}
.timeline-wrapper {
    position: relative;
    padding-left: 28px;
}
.timeline-wrapper::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 6px;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}
.timeline-item {
    position: relative;
    margin-bottom: 24px;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-marker {
    position: absolute;
    left: -28px;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #2e7bb4;
    z-index: 1;
}
.timeline-marker.edu {
    border-color: #27ae60;
}
.timeline-marker.milestone {
    border-color: #fb8c00;
}
.timeline-content {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.timeline-date {
    font-size: 0.72rem;
    color: #6b7a8d;
    font-weight: 700;
    margin-bottom: 6px;
    display: inline-block;
    background: #f4f6fa;
    padding: 3px 8px;
    border-radius: 4px;
}
.timeline-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1a2535;
    margin-bottom: 4px;
}
.timeline-company {
    font-size: 0.8rem;
    color: #2e7bb4;
    font-weight: 600;
    margin-bottom: 8px;
}
.timeline-desc {
    font-size: 0.8rem;
    color: #4a5568;
    line-height: 1.5;
}
.timeline-add-btn {
    background: #f4f6fa;
    color: #2e7bb4;
    border: 1px dashed #cbd5e0;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    width: 100%;
}
.timeline-add-btn:hover {
    background: #eef2fb;
    border-color: #2e7bb4;
}

/* Frontend Pagination System */
.frontend-pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 2.5rem;
    padding: 16px 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.frontend-pagination-wrapper .pagination-info {
    font-size: 0.92rem;
    font-weight: 500;
    color: #475569;
    margin: 0;
}

.frontend-pagination-wrapper .pagination-nav,
.frontend-pagination-wrapper nav {
    background: transparent !important;
    background-image: none !important;
    padding: 0 !important;
    height: auto !important;
    position: static !important;
    z-index: auto !important;
    box-shadow: none !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
}

.frontend-pagination-wrapper .pagination-list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
}

.frontend-pagination-wrapper .page-item {
    display: inline-flex;
}

.frontend-pagination-wrapper .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.frontend-pagination-wrapper .page-link:hover {
    background: #f1f5f9;
    color: var(--blue-dark, #1e70a9);
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.frontend-pagination-wrapper .page-item.active .page-link {
    background: #1e70a9;
    border-color: #1e70a9;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(30, 112, 169, 0.25);
    cursor: default;
    transform: none;
}

.frontend-pagination-wrapper .page-item.disabled .page-link,
.frontend-pagination-wrapper .page-item.disabled .page-link-arrow {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #cbd5e1;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.5;
    box-shadow: none;
    transform: none;
}

.frontend-pagination-wrapper .page-link-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.frontend-pagination-wrapper .page-link-arrow:hover {
    background: #f1f5f9;
    color: var(--blue-dark, #1e70a9);
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.frontend-pagination-wrapper .page-link-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 36px;
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.88rem;
    user-select: none;
}

@media (max-width: 640px) {
    .frontend-pagination-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 14px 16px;
        gap: 12px;
    }
}
