:root {
    --fellow-primary: #0f766e;
    --fellow-primary-dark: #0b5f59;
    --fellow-accent: #f1b155;
    --fellow-ink: #0f172a;
    --fellow-muted: #5b6779;
    --fellow-bg: #f4f7f6;
    --fellow-card: #ffffff;
    --fellow-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    --fellow-radius: 18px;
}

* {
    box-sizing: border-box;
}

body.tfsl-fellow-body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: linear-gradient(160deg, #0b5f59 0%, #0f8f7b 24%, #f4f7f6 55%, #f4f7f6 100%);
    color: var(--fellow-ink);
    min-height: 100vh;
}

.tfsl-fellow-topbar {
    position: sticky;
    top: 0;
    z-index: 1400;
    background: rgba(7, 41, 38, 0.95);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.4rem;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(8px);
}

.tfsl-fellow-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tfsl-fellow-brand img {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #ffffff;
    padding: 4px;
    object-fit: contain;
}

.tfsl-fellow-brand-title {
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 1rem;
}

.tfsl-fellow-brand-sub {
    font-size: 0.78rem;
    opacity: 0.75;
}

.tfsl-fellow-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.tfsl-fellow-logout {
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
}

.tfsl-fellow-logout:hover {
    background: rgba(255, 255, 255, 0.12);
}

.tfsl-fellow-main {
    padding: 1.5rem 1.2rem 5.5rem;
    max-width: 1180px;
    margin: 0 auto;
}

.tfsl-fellow-card {
    background: var(--fellow-card);
    border-radius: var(--fellow-radius);
    box-shadow: var(--fellow-shadow);
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 1.4rem;
}

.tfsl-fellow-card.card {
    padding: 0;
}

.tfsl-fellow-card.card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    font-weight: 700;
}

.tfsl-fellow-card.card .card-body {
    padding: 1.2rem;
}

.tfsl-fellow-hero {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.tfsl-fellow-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.12);
    color: var(--fellow-primary);
    font-weight: 600;
    font-size: 0.75rem;
}

.tfsl-fellow-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tfsl-fellow-stat {
    background: #f8fbfb;
    border-radius: 14px;
    padding: 0.85rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.tfsl-fellow-stat small {
    color: var(--fellow-muted);
}

.tfsl-fellow-tabs {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    margin-bottom: 1rem;
}

.tfsl-fellow-tabs .nav-link {
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    white-space: nowrap;
    border: none;
}

.tfsl-fellow-tabs .nav-link.active {
    background: var(--fellow-primary);
    color: #ffffff;
}

.tfsl-fellow-table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--fellow-muted);
}

.tfsl-fellow-table td {
    vertical-align: middle;
    font-size: 0.88rem;
}

.tfsl-fellow-action {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tfsl-fellow-section-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.tfsl-fellow-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1500;
    background: #ffffff;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0.4rem;
    box-shadow: 0 -12px 24px rgba(15, 23, 42, 0.08);
}

.tfsl-fellow-bottom-nav a {
    text-decoration: none;
    color: var(--fellow-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.7rem;
    font-weight: 600;
}

.tfsl-fellow-bottom-nav a i {
    font-size: 1rem;
}

.tfsl-fellow-bottom-nav a.active {
    color: var(--fellow-primary);
}

@media (min-width: 992px) {
    .tfsl-fellow-bottom-nav {
        display: none;
    }
}

/* Fellow auth screens */
.tfsl-fellow-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: radial-gradient(circle at top, rgba(15, 118, 110, 0.3), transparent 55%),
        linear-gradient(160deg, #0f766e 0%, #1f897a 30%, #f4f7f6 70%);
}

.tfsl-fellow-auth-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
    overflow: hidden;
    max-width: 980px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.tfsl-fellow-auth-aside {
    background: linear-gradient(160deg, #0b5f59, #0f8f7b);
    color: #ffffff;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.tfsl-fellow-auth-aside img {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #ffffff;
    padding: 6px;
    object-fit: contain;
}

.tfsl-fellow-auth-body {
    padding: 2.5rem 2rem;
}

.tfsl-fellow-auth-body h2 {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tfsl-fellow-auth-body .btn-primary {
    background: var(--fellow-primary);
    border-color: var(--fellow-primary);
}

.tfsl-fellow-auth-body .btn-primary:hover {
    background: var(--fellow-primary-dark);
    border-color: var(--fellow-primary-dark);
}

.tfsl-fellow-auth-links {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-top: 1rem;
}
