@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

:root {
    --bg: #f8fafc;
    --bg-secondary: #ffffff;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --card-border-hover: #cbd5e1;
    --text: #0f172a;
    --text-muted: #64748b;

    /* Official ACPC DU Logo Palette */
    --logo-gold: #FBB836;
    --logo-red: #B02A1E;
    --logo-blue: #4B81C1;

    --accent: var(--logo-blue);
    --link: var(--logo-blue);

    /* Codeforces Rank Colors (Light background contrast) */
    --unrated: #464646;
    --newbie: #707070;
    --pupil: #008000;
    --specialist: #03a89e;
    --expert: #0000ff;
    --cm: #aa00aa;
    --master: #ff8c00;
    --gm: var(--logo-red);
}

html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Avatars ── */
.avatar {
    border-radius: 4px;
    object-fit: cover;
    display: inline-block;
    vertical-align: middle;
    background: #e2e8f0;
}

.avatar-xs {
    width: 34px;
    height: 34px;
    border: 1px solid #cbd5e1;
}

.avatar-sm {
    width: 50px;
    height: 50px;
    border: 1px solid #cbd5e1;
}

.avatar-md {
    width: 66px;
    height: 66px;
    border: 1px solid #cbd5e1;
}

.avatar-lg {
    width: 104px;
    height: 104px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

/* ── Navbar ── */
nav {
    background: rgba(255, 255, 255, 0.75);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    transition: transform 0.28s ease;
}

nav.nav-hidden {
    transform: translateY(-104%);
}

.nav-inner {
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--card-border);
    transition: transform 0.2s ease;
}

.brand:hover .brand-logo {
    transform: scale(1.06);
}

.brand span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 0.35rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.4rem 0.85rem;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: #f1f5f9;
    color: var(--text);
}

.nav-links a.admin-link {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.nav-links a.admin-link:hover {
    background: #2563eb;
    color: #ffffff;
}

/* ── Layout ── */
.container {
    max-width: 980px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 1.5rem;
    flex: 1;
}

/* ── Page Header ── */
.page-header {
    margin-bottom: 1.75rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 0.95rem 1.15rem;
}

.page-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text);
    letter-spacing: -0.3px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.page-header p a {
    color: var(--accent);
}

/* ── Section Label ── */
.section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.container > p {
    color: var(--text-muted);
}

/* ── Hero Stats Grid ── */
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.stat-card-value {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
}

.stat-card-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* ── Flat Card ── */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 1.25rem 1.4rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ── Hall of Fame Grid ── */
.hof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    margin-bottom: 2.25rem;
}

.hof-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 1.1rem 1.25rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hof-card:hover {
    border-color: var(--card-border-hover);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hof-rank {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.record {
    margin-top: 0.65rem;
}

.record-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.record-user {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}

.record-user a {
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}

.record-user a:hover {
    text-decoration: underline;
}

.record-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.record-waiting {
    opacity: 0.45;
    min-height: 34px;
    align-items: center;
}

.record-wait-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
}

.none-yet {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ── Tables ── */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    background: #f1f5f9;
    border-bottom: 1px solid var(--card-border);
}

td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
    color: var(--text);
}

tr:hover td {
    background: #f8fafc;
}

tr:last-child td {
    border-bottom: none;
}

/* ── Badges ── */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0 0.55rem;
    border-radius: 4px;
    border: 1px solid transparent;
    line-height: 1;
    box-sizing: border-box;
    vertical-align: middle;
    white-space: nowrap;
}

.badge-season {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.badge-acpc {
    background: #fef3c7;
    color: #b45309;
    border-color: #fcd34d;
}

.badge-ecpc {
    background: #f3e8ff;
    color: #6b21a8;
    border-color: #d8b4fe;
}

.badge-participation {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #bae6fd;
}

.badge-girl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fce7f3;
    color: #be185d;
    border: 1px solid #fbcfe8;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.badge-guy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.badge-girl-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fce7f3;
    color: #be185d;
    border: 1px solid #fbcfe8;
    padding: 0.1rem 0.35rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    line-height: 1;
    margin-left: 0.3rem;
    vertical-align: middle;
    white-space: nowrap;
}

.badge-guy-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    padding: 0.1rem 0.35rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    line-height: 1;
    vertical-align: middle;
    white-space: nowrap;
}

/* ── Counter Badges (Profile Achievements) ── */
.summary-counters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.counter-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    border: 1px solid var(--card-border);
    background: #f1f5f9;
    color: var(--text);
}

.counter-pill-acpc {
    background: #fef3c7;
    color: #b45309;
    border-color: #fcd34d;
}

.counter-pill-ecpc-finalist {
    background: #f3e8ff;
    color: #6b21a8;
    border-color: #d8b4fe;
}

.counter-pill-ecpc-part {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #bae6fd;
}

/* ── Filter Pills ── */
.pills {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.pill {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.35rem 0.85rem;
    border-radius: 4px;
    border: 1px solid var(--card-border);
    background: #ffffff;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.15s ease;
}

.pill:hover,
.pill.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.pill-count {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    margin-left: 0.35rem;
    padding: 0.05rem 0.45rem;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.06);
    color: inherit;
}

.pill.active .pill-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* ── Rank Tag Badges ── */
.badge-rank-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0 0.55rem;
    border-radius: 4px;
    border: 1px solid currentColor;
    background: transparent;
    line-height: 1;
    box-sizing: border-box;
    vertical-align: middle;
    white-space: nowrap;
}

.badge-rank-tag.pupil {
    color: #008000;
    background: #e6f4ea;
    border-color: #b7e1cd;
}

.badge-rank-tag.specialist {
    color: #03a89e;
    background: #e6f8f7;
    border-color: #a3e6e2;
}

.badge-rank-tag.expert {
    color: #2563eb;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.badge-rank-tag.cm {
    color: #aa00aa;
    background: #fae8ff;
    border-color: #f5d0fe;
}

.badge-rank-tag.master {
    color: #d97706;
    background: #fff7ed;
    border-color: #fed7aa;
}

.badge-rank-tag.gm {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fecaca;
}

.badge-rank-tag.newbie {
    color: #64748b;
    background: #f1f5f9;
    border-color: #e2e8f0;
}

/* ── Rank Colors ── */
.unrated {
    color: var(--unrated) !important;
}

.newbie {
    color: var(--newbie) !important;
}

.pupil {
    color: var(--pupil) !important;
}

.specialist {
    color: var(--specialist) !important;
}

.expert {
    color: var(--expert) !important;
}

.cm {
    color: var(--cm) !important;
}

.master {
    color: var(--master) !important;
}

.gm {
    color: var(--gm) !important;
}

.bg-unrated {
    background-color: var(--unrated) !important;
}

.bg-newbie {
    background-color: var(--newbie) !important;
}

.bg-pupil {
    background-color: var(--pupil) !important;
}

.bg-specialist {
    background-color: var(--specialist) !important;
}

.bg-expert {
    background-color: var(--expert) !important;
}

.bg-cm {
    background-color: var(--cm) !important;
}

.bg-master {
    background-color: var(--master) !important;
}

.bg-gm {
    background-color: var(--gm) !important;
}

/* ── General Timeline ── */
.timeline {
    border-left: 2px solid #e2e8f0;
    padding-left: 1.5rem;
    position: relative;
}

.timeline-item {
    position: relative;
    padding: 0 0 1.25rem 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2563eb;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px #2563eb;
    transform: translateX(-50%);
    box-sizing: border-box;
    z-index: 2;
}

.timeline-item.dot-unrated::before {
    background: var(--unrated);
    box-shadow: 0 0 0 2px var(--unrated);
}

.timeline-item.dot-newbie::before {
    background: var(--newbie);
    box-shadow: 0 0 0 2px var(--newbie);
}

.timeline-item.dot-pupil::before {
    background: var(--pupil);
    box-shadow: 0 0 0 2px var(--pupil);
}

.timeline-item.dot-specialist::before {
    background: var(--specialist);
    box-shadow: 0 0 0 2px var(--specialist);
}

.timeline-item.dot-expert::before {
    background: var(--expert);
    box-shadow: 0 0 0 2px var(--expert);
}

.timeline-item.dot-cm::before {
    background: var(--cm);
    box-shadow: 0 0 0 2px var(--cm);
}

.timeline-item.dot-master::before {
    background: var(--master);
    box-shadow: 0 0 0 2px var(--master);
}

.timeline-item.dot-gm::before {
    background: var(--gm);
    box-shadow: 0 0 0 2px var(--gm);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.ti-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.ti-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* ── Forms ── */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem 1.25rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

input,
select {
    font-family: inherit;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--card-border);
    border-radius: 4px;
    background: #ffffff;
    color: var(--text);
    width: 100%;
    transition: border-color 0.15s ease;
}

input:focus,
select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.btn {
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.55rem 1.2rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-dark {
    background: #2563eb;
    color: #ffffff;
}

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

.btn-soft {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.btn-soft:hover {
    background: rgba(37, 99, 235, 0.18);
}

.btn-sync {
    background: #059669;
    color: #ffffff;
}

.btn-sync:hover {
    background: #047857;
}

/* ── Flash Messages ── */
.flash {
    padding: 0.75rem 1.1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.flash-success {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.flash-info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.flash-warning {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fcd34d;
}

/* ── Member Profile Header ── */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 1.5rem;
}

.profile-handle {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
    line-height: 1.2;
}

.profile-handle a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.profile-handle a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

.profile-name {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.rating-box {
    display: flex;
    gap: 1.75rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 0.85rem 1.4rem;
}

.rating-item {
    text-align: center;
}

.rating-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
}

.rating-value {
    font-size: 1.4rem;
    font-weight: 700;
}

.profile-records {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.65rem;
}

.record-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fcd34d;
}

/* ── Two Column Grid ── */
.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    align-items: start;
}

/* ── Footer ── */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.55);
    padding: 1.25rem 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text);
    margin-top: 2.5rem;
    background: var(--card-bg);
}

/* ── Misc ── */
a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.divider {
    border: none;
    border-top: 1px solid var(--card-border);
    margin: 1.25rem 0;
}

/* ── Timeline Page ── */
.timeline-filters {
    display: flex;
    gap: 0.35rem;
    background: #f1f5f9;
    border: 1px solid var(--card-border);
    padding: 0.25rem;
    border-radius: 4px;
}

.t-filter {
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.t-filter.active,
.t-filter:hover {
    background: #2563eb;
    color: #ffffff;
}

.dark-timeline-wrapper {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 2rem 1.75rem;
    color: var(--text);
    margin-top: 1rem;
}

.dark-timeline {
    position: relative;
    padding-left: 2rem;
}

.dark-timeline::before {
    content: '';
    position: absolute;
    left: 14.5px;
    top: 12px;
    bottom: 12px;
    width: 3px;
    background: #cbd5e1;
    border-radius: 3px;
}

.dark-timeline-item {
    position: relative;
    margin-bottom: 1.25rem;
}

.dark-timeline-item:last-child {
    margin-bottom: 0;
}

/* Glowing Dots */
.dark-timeline-dot {
    position: absolute;
    left: -16px;
    top: 18px;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #2563eb;
    z-index: 2;
}

.dark-timeline-dot.dot-newbie {
    border-color: var(--newbie);
}

.dark-timeline-dot.dot-pupil {
    border-color: var(--pupil);
}

.dark-timeline-dot.dot-specialist {
    border-color: var(--specialist);
}

.dark-timeline-dot.dot-expert {
    border-color: var(--expert);
}

.dark-timeline-dot.dot-cm {
    border-color: var(--cm);
}

.dark-timeline-dot.dot-master {
    border-color: var(--master);
}

.dark-timeline-dot.dot-gm {
    border-color: var(--gm);
}

.dark-timeline-dot.dot-team {
    border-color: #d97706;
}

/* Timeline Card */
.dark-timeline-card {
    background: #f8fafc;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 1rem 1.25rem;
}

.dtc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    flex-wrap: wrap;
}

.dtc-user-info {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dtc-handle {
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
}

.dtc-handle:hover {
    text-decoration: underline;
}

.dtc-action {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.dtc-rank-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.dtc-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    background: #ffffff;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    border: 1px solid var(--card-border);
}

.dtc-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.4rem;
    font-size: 0.85rem;
}

.dtc-rating-pill {
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: #ffffff;
    border: 1px solid var(--card-border);
}

.dtc-contest-name {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Team Card Specifics */
.dtc-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dtc-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
}

.badge-team-gold {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fcd34d;
}

.dtc-team-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.dtc-season {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.dtc-subnote {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.dtc-team-members {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.6rem;
    flex-wrap: wrap;
}

.dtc-members-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.dtc-member-tag {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: #ffffff;
    border: 1px solid var(--card-border);
    text-decoration: none;
}

.dark-timeline-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem 0;
}

/* ECPC Qualifications strip: compact horizontal scroll of participation teams */
.ecpc-strip-card-wrap {
    padding: 0.85rem 1rem;
}

.ecpc-scroll-hint {
    color: var(--text-muted);
    font-weight: 400;
}

.ecpc-strip {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.6rem 0.25rem 0.9rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.ecpc-strip,
.table-scroll {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.ecpc-strip::-webkit-scrollbar,
.table-scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.ecpc-strip::-webkit-scrollbar-track,
.table-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.ecpc-strip::-webkit-scrollbar-thumb,
.table-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

/* Custom overlay scrollbar (fades in on hover) for top coders leaderboards.
   Native bars are hidden; the overlay track fades via opacity. */
.table-scroll.scroll-hover {
    scrollbar-width: none;
}
.table-scroll.scroll-hover::-webkit-scrollbar {
    display: none;
}
.cs-wrap {
    position: relative;
}
.cs-track {
    position: absolute;
    top: 6px;
    bottom: 6px;
    right: 4px;
    width: 6px;
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 5;
}
.cs-wrap:hover .cs-track {
    opacity: 1;
}
.cs-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    border-radius: 3px;
    background: #cbd5e1;
    cursor: pointer;
    pointer-events: auto;
    touch-action: none;
}

.ecpc-strip-card {
    flex: 0 0 auto;
    width: 200px;
    scroll-snap-align: start;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ecpc-strip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.ecpc-strip-team {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.45rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ecpc-strip-members {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.ecpc-strip-handle-link {
    text-decoration: none;
}

.ecpc-strip-handle-link:hover {
    text-decoration: none;
}

/* ── Progress Modal Overlay ── */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    width: 90%;
    max-width: 520px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: translateY(10px);
    transition: transform 0.2s ease;
}

.modal-backdrop.active .modal-card {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.progress-info {
    font-size: 0.88rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.progress-bar-wrap {
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: #2563eb;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-log {
    background: #f8fafc;
    border: 1px solid var(--card-border);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    max-height: 160px;
    overflow-y: auto;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.log-entry {
    line-height: 1.4;
}

.log-entry.success {
    color: #16a34a;
}

.log-entry.info {
    color: #2563eb;
}

.log-entry.error {
    color: #dc2626;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.btn-modal-close {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

.btn-modal-close:hover {
    background: #1e293b;
}

/* ── Gender Radio Segmented Toggle ── */
.gender-toggle {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid var(--card-border);
    border-radius: 4px;
    padding: 2px;
    gap: 2px;
}

.gender-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-muted);
    user-select: none;
    transition: all 0.15s ease;
}

.gender-pill input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.gender-pill:hover {
    color: var(--text);
}

.gender-pill.active-m {
    background: #2563eb;
    color: #ffffff;
}

.gender-pill.active-f {
    background: #db2777;
    color: #ffffff;
}

/* ── Cute Girl Badges ── */
.badge-girl {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.55rem;
    font-size: 0.73rem;
    font-weight: 600;
    color: #db2777;
    background: #fdf2f8;
    border: 1px solid #fbcfe8;
    border-radius: 12px;
    line-height: 1.2;
}

.badge-girl-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #db2777;
    background: #fdf2f8;
    border: 1px solid #fbcfe8;
    border-radius: 10px;
    margin-left: 0.35rem;
    vertical-align: middle;
}

/* Leaderboard flower badge hover tooltip */
.lb-table .badge-girl-mini {
    position: relative;
}

.lb-table .badge-girl-mini::after {
    content: attr(title);
    position: absolute;
    top: 135%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffffff;
    background: #0f172a;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s ease;
    z-index: 30;
    pointer-events: none;
}

.lb-table .badge-girl-mini:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ── Target Milestone Card ── */
/* ── Leaderboard Toggle Buttons ── */
.lb-toggle-btn {
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.lb-toggle-btn:hover {
    color: var(--text);
}

.lb-toggle-btn.active {
    background: #ffffff;
    color: var(--text);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ── Timeline Scroll Reveal & Tiered Animation System ── */

/* Base state for scroll reveal items */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(48px) scale(0.96);
    transition:
        opacity 1.0s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
        transform 1.0s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Tier 1: Legendary Achievements (ACPC Finalist & First Ever DU Records) */
.dark-timeline-item.tier-1 .dark-timeline-card {
    border: 1px solid #fde68a !important;
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%) !important;
    box-shadow: 0 4px 20px rgba(217, 119, 6, 0.12);
    animation: goldPulse 3s ease-in-out infinite;
}

.dark-timeline-dot.dot-legendary {
    border-color: #d97706 !important;
    background: #fef3c7 !important;
    box-shadow: 0 0 12px rgba(217, 119, 6, 0.5);
    animation: dotPulse 2s ease-in-out infinite;
}

/* Tier Girl: First Girl Achievements (Flower Pink Fade) */
.dark-timeline-item.tier-girl .dark-timeline-card {
    border: 1px solid #fbcfe8 !important;
    background: linear-gradient(135deg, #ffffff 0%, #fdf2f8 100%) !important;
    box-shadow: 0 4px 20px rgba(219, 39, 119, 0.15);
    animation: pinkPulse 3s ease-in-out infinite;
}

.dark-timeline-dot.dot-girl-legendary {
    border-color: #db2777 !important;
    background: #fce7f3 !important;
    box-shadow: 0 0 12px rgba(219, 39, 119, 0.5);
    animation: dotPulse 2s ease-in-out infinite;
}

/* Tier 2: Major Achievements (ECPC Finalists & Rating Milestones) */
.dark-timeline-card {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.dark-timeline-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Badges for First Ever Achievements */
.badge-first-overall {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.74rem;
    font-weight: 700;
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    margin-left: 0.4rem;
    vertical-align: middle;
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.badge-first-girl {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.74rem;
    font-weight: 700;
    color: #be185d;
    background: #fce7f3;
    border: 1px solid #fbcfe8;
    border-radius: 12px;
    margin-left: 0.4rem;
    vertical-align: middle;
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes goldPulse {

    0%,
    100% {
        box-shadow: 0 4px 16px rgba(217, 119, 6, 0.12);
    }

    50% {
        box-shadow: 0 4px 24px rgba(217, 119, 6, 0.28);
    }
}

@keyframes pinkPulse {

    0%,
    100% {
        box-shadow: 0 4px 16px rgba(219, 39, 119, 0.12);
    }

    50% {
        box-shadow: 0 4px 24px rgba(219, 39, 119, 0.28);
    }
}

@keyframes dotPulse {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
    }

    50% {
        transform: translateX(-50%) scale(1.25);
    }
}

@keyframes popIn {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Global Micro-Animations */
.card,
.stat-card,
.hof-card,
.btn,
.pill,
table tbody tr {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.btn:active,
.pill:active {
    transform: scale(0.97);
}

/* ── Desktop Outer Side Floating Story Photos & Mobile Timeline Fallback ── */
.desktop-outer-story-photo {
    position: absolute;
    top: 0;
    z-index: 10;
    pointer-events: auto;
    will-change: transform, opacity;
    opacity: 0;
    transform: translateY(160px) scale(0.92);
    transition: transform 2.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.6s ease-out;
}

.dark-timeline-item.visible .desktop-outer-story-photo {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.desktop-outer-story-photo.float-left {
    right: calc(100% + 28px);
}

.desktop-outer-story-photo.float-right {
    left: calc(100% + 28px);
}

.outer-photo-card {
    display: block;
    width: 290px;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
    text-decoration: none !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.desktop-outer-story-photo.float-left .outer-photo-card {
    animation: idleFloatLeft 5.5s ease-in-out infinite alternate;
}

.desktop-outer-story-photo.float-right .outer-photo-card {
    animation: idleFloatRight 6.2s ease-in-out infinite alternate;
}

.outer-photo-card:hover {
    transform: scale(1.06) translateY(-4px) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
    z-index: 25;
}

.outer-photo-card img {
    width: 100%;
    height: 185px;
    object-fit: cover;
    display: block;
}

.outer-photo-caption {
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    background: #ffffff;
    border-top: 1px solid var(--card-border);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes idleFloatLeft {
    0% {
        transform: translateY(0px) rotate(-2deg);
    }
    50% {
        transform: translateY(-14px) rotate(1deg);
    }
    100% {
        transform: translateY(6px) rotate(-1deg);
    }
}

@keyframes idleFloatRight {
    0% {
        transform: translateY(0px) rotate(2deg);
    }
    50% {
        transform: translateY(-16px) rotate(-1deg);
    }
    100% {
        transform: translateY(8px) rotate(1deg);
    }
}

/* Mobile inline story photo fallback */
.mobile-inline-photo {
    display: none;
    margin-top: 0.75rem;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.mobile-inline-photo img {
    width: 100%;
    max-height: 380px;
    display: block;
    object-fit: cover;
}

@media (max-width: 1350px) {
    .desktop-outer-story-photo {
        display: none !important;
    }

    .mobile-inline-photo {
        display: block !important;
    }
}

/* ── Timeline Facebook Links ── */
.dtc-fb-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    background: #1877f2;
    color: #ffffff !important;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(24, 119, 242, 0.25);
    margin-top: 0.4rem;
}

.dtc-fb-btn:hover {
    background: #1464cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(24, 119, 242, 0.35);
}

/* ── Desktop Admin Dashboard System ── */
.container-admin {
    max-width: 1480px;
    width: 100%;
    margin: 1.5rem auto;
    padding: 0 1.5rem;
    flex: 1;
}

.admin-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--card-border);
    margin-bottom: 1.5rem;
    background: #f8fafc;
    padding: 0.4rem 0.5rem 0 0.5rem;
    border-radius: 8px 8px 0 0;
}

.admin-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1.25rem;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px 6px 0 0;
    margin-bottom: -2px;
}

.admin-tab-btn:hover {
    color: var(--text);
    background: rgba(0, 0, 0, 0.03);
}

.admin-tab-btn.active {
    color: #2563eb;
    background: #ffffff;
    border-bottom-color: #2563eb;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.03);
}

.admin-tab-btn .tab-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 9999px;
    background: #e2e8f0;
    color: #334155;
}

.admin-tab-btn.active .tab-badge {
    background: #dbeafe;
    color: #1e40af;
}

.admin-tab-pane {
    display: none;
}

.admin-tab-pane.active {
    display: block;
    animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.admin-grid-equal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* ── Long names never break the card ── */
.card h3,
.card h4,
.hof-card h3,
.page-header h1,
.h3, h3, h4 {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ── Mobile Hamburger Toggle (hidden on desktop) ── */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    cursor: pointer;
    flex: 0 0 auto;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Tablet / Small Laptop ── */
@media (max-width: 860px) {
    .nav-toggle {
        display: inline-flex;
    }

    nav {
        position: sticky;
    }

    .nav-inner {
        position: relative;
        height: 56px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: auto;
        flex-direction: column;
        align-items: stretch;
        min-width: 220px;
        background: var(--card-bg);
        border: 1px solid var(--card-border);
        border-radius: 8px;
        box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.18);
        padding: 0.4rem;
        gap: 0.15rem;
        z-index: 100;
    }

    nav.nav-open .nav-links {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.7rem 0.85rem;
        font-size: 0.95rem;
        border-radius: 6px;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: #f1f5f9;
    }
}

/* ── Mobile ── */
@media (max-width: 640px) {
    .container,
    .container-admin {
        padding: 0 1rem;
        margin-top: 1.25rem;
    }

    .card,
    .hof-card,
    .profile-header {
        padding: 1rem;
    }

    .page-header {
        padding: 0.8rem 0.9rem;
    }

    .page-header h1 {
        font-size: 1.3rem;
    }

    .stat-card-value {
        font-size: 1.3rem;
    }

    .two-col,
    .hof-grid,
    .hero-stats-grid {
        gap: 0.9rem;
    }

    th,
    td {
        padding: 0.55rem 0.6rem;
        font-size: 0.85rem;
    }

    .timeline-filters {
        flex-wrap: wrap;
        width: 100%;
    }

    .members-table,
    .members-table tbody,
    .members-table tr,
    .members-table td {
        display: block;
        width: 100%;
    }

    .members-table thead {
        display: none;
    }

    .members-table tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "member member"
            "badges badges"
            "max current";
        align-items: center;
        gap: 0.4rem 0.9rem;
        padding: 0.8rem 0.9rem;
        border-bottom: 1px solid #f1f5f9;
    }

    .members-table td {
        padding: 0;
        border: none;
        font-size: 0.9rem;
    }

    .members-table td:nth-child(1) {
        grid-area: member;
    }

    .members-table td:nth-child(2) {
        grid-area: badges;
    }

    .members-table td:nth-child(3) {
        grid-area: max;
        text-align: left;
    }

    .members-table td:nth-child(4) {
        grid-area: current;
        text-align: left;
    }

    .members-table td:nth-child(3)::before {
        content: "Max: ";
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--text-muted);
    }

    .members-table td:nth-child(4)::before {
        content: "Current: ";
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--text-muted);
    }

    .members-table tbody tr:hover td {
        background: transparent;
    }

    .members-table td:first-child > div {
        min-width: 0;
    }

    .members-table td:first-child a {
        overflow-wrap: anywhere;
    }

    .pills {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .pill {
        padding: 0.55rem 1rem;
        font-size: 0.88rem;
    }

    .dark-timeline-wrapper {
        padding: 1rem 0.75rem;
    }

    .ecpc-strip-card {
        width: 170px;
    }

    footer {
        padding: 1rem;
    }

    .profile-handle {
        font-size: 1.5rem;
    }

    .rating-box {
        gap: 1.1rem;
        padding: 0.7rem 0.9rem;
    }
}