:root {
    --bg-color: #0d1117;
    --panel-bg: rgba(22, 27, 34, 0.7);
    --border-color: rgba(240, 246, 252, 0.1);
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --accent-blue: #58a6ff;
    --accent-purple: #bc8cff;
    --gradient: linear-gradient(135deg, #58a6ff, #bc8cff);
    --font-heading: 'Play', sans-serif;
    --font-body: 'Play', sans-serif;
    --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-bg: rgba(22, 27, 34, 0.4);
}

[data-theme="light"] {
    --bg-color: #f6f8fa;
    --panel-bg: rgba(255, 255, 255, 0.8);
    --border-color: rgba(31, 35, 40, 0.1);
    --text-primary: #1f2328;
    --text-secondary: #636c76;
    --accent-blue: #0969da;
    --accent-purple: #8250df;
    --gradient: linear-gradient(135deg, #0969da, #8250df);
    --shadow-premium: 0 8px 32px 0 rgba(140, 149, 159, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.4);
}

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

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 50% -20%, var(--panel-bg) 0%, var(--bg-color) 100%);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-user-select: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* UI Controls */
.top-controls {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
    z-index: 100;
}

.control-btn {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
}

.control-btn:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: var(--accent-blue);
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.2);
}

/* Glassmorphism Panel & Animations */
@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.glass-panel {
    background: linear-gradient(-45deg, rgba(22, 27, 34, 0.6), rgba(88, 166, 255, 0.05), rgba(22, 27, 34, 0.6), rgba(188, 140, 255, 0.05));
    background-size: 400% 400%;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-premium);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation:
        slideUpFade 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards,
        gradientBG 15s ease infinite;
    transition: all 0.4s ease;
}

.glass-panel:hover {
    transform: translateY(-8px);
    border-color: var(--accent-blue);
    box-shadow: 0 20px 50px rgba(88, 166, 255, 0.15);
}

/* Hero Section */
.hero {
    padding: 3rem 2rem 2rem;
    text-align: center;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    min-height: auto;
}

/* Mobile Hero Adjustment */
@media (max-width: 768px) {
    .hero {
        padding-top: 8.5rem;
        /* Explicit clearance for Top Controls */
    }

    .top-controls {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }

    .premium-title,
    .subtitle {
        text-align: center;
    }
}

.breadcrumb {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeIn 1s ease 0.4s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.premium-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    line-height: 1;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.35rem;
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto 3rem;
    font-weight: 300;
}

.authors-badge {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.author-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.author-pill:hover {
    transform: translateY(-3px) scale(1.02);
    background: var(--panel-bg);
    border-color: var(--accent-blue);
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.2);
}

.author-pill img {
    width: 44px;
    /* Slightly smaller for the new layout unit */
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--accent-blue);
    box-shadow: 0 0 10px rgba(88, 166, 255, 0.3);
}

.author-pill:hover img {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--accent-purple);
}

.author-pill span {
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-heading);
}

/* Enhanced Scroll Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    filter: blur(10px);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity, filter;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Section Styling */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}


/* Merged stats logic in hero */

[data-theme="light"] .stats-progress-card {
    background: linear-gradient(-45deg, var(--panel-bg), #e6f1ff, var(--panel-bg), #f5f0ff);
    background-size: 400% 400%;
}

.stats-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0.5rem;
}

.stat-unit {
    display: flex;
    flex-direction: column;
}

.stat-unit.align-right {
    align-items: flex-end;
    text-align: right;
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.stat-header.justify-end {
    justify-content: flex-end;
}

.stat-cert-icon {
    color: var(--accent-blue);
    font-size: 1.2rem;
}

.stat-center-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 1rem;
}

.stat-footer-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
}

.stat-footer-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Cleaned up duplicated blocks */

/* Cleaned up duplicated blocks */

/* Cleaned up duplicated blocks */

.stat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.stat-check-icon {
    color: #4cd964;
    font-size: 1.2rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.stat-value-container {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-blue);
    line-height: 1;
}

.stat-total {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stats-animation-track {
    position: relative;
    width: 100%;
    height: 40px;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
}

.stats-subtle-line {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    /* Very subtle line */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 10px;
}

.stats-r-icon {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    background: var(--accent-blue);
    color: var(--bg-color);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(88, 166, 255, 0.6);
    z-index: 10;
    transition: left 0.1s linear;
}

.stats-r-icon svg {
    width: 22px !important;
    height: 22px !important;
}

.progress-wrapper {
    flex: 1;
    max-width: 400px;
    justify-content: center;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(88, 166, 255, 0.4);
    transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stats-r-icon {
    width: 44px;
    height: 44px;
    position: absolute;
    bottom: 25px;
    left: 0;
    transform: translateX(-50%);
    background: var(--accent-blue);
    color: var(--bg-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(88, 166, 255, 0.4);
    z-index: 5;
    transition: left 0.1s linear;
    overflow: hidden;
    /* Prevent SVG overflow */
}

.stats-r-icon svg {
    width: 20px !important;
    height: 20px !important;
    display: block;
    max-width: 100%;
}

/* Modal Spinner */
.modal-spinner-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 1.5rem;
}

.premium-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(88, 166, 255, 0.1);
    border-top: 4px solid var(--accent-blue);
    border-radius: 50%;
    animation: spinModal 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    position: relative;
}

.premium-spinner::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-bottom: 4px solid var(--accent-purple);
    opacity: 0.5;
}

@keyframes spinModal {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.stat-footer-grid {
    display: none;
}

.stat-footer-item.align-right {
    text-align: right;
    align-items: flex-end;
}

.stat-footer-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-blue);
    line-height: 1.2;
}

.stat-footer-value.accent-purple {
    color: var(--accent-purple);
}

.stat-footer-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

/* Certificate Grid & Viewer */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2x2 cert grid */
    gap: 2.5rem;
    margin-bottom: 5rem;
}

.cert-card {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: zoom-in;
}

.cert-card:hover {
    transform: scale(1.03) translateY(-10px);
    border-color: var(--accent-purple);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cert-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.cert-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cert-card:hover img {
    transform: scale(1.1);
}

.cert-info {
    padding: 1.5rem;
}

.cert-author-badge {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: rgba(88, 166, 255, 0.1);
    color: var(--accent-blue);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.viewer-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.view-btn {
    flex: 1;
    padding: 0.8rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.view-btn:hover {
    background: var(--text-primary);
    color: var(--bg-color);
}

.download-btn {
    background: var(--accent-blue);
    color: white;
    border: none;
}

.download-btn:hover {
    filter: brightness(1.1);
}

#cert-viewer-modal .modal-content {
    background: transparent;
    border: none;
    height: auto;
    max-height: 95vh;
}

#cert-viewer-modal .full-cert-image {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.viewer-footer-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--text-primary);
    color: var(--bg-color);
    border-color: var(--text-primary);
}

/* Day Grid */
.day-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.day-card {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.day-card:hover {
    transform: translateY(-8px);
    border-color: rgba(88, 166, 255, 0.4);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.day-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.day-card:hover::before {
    opacity: 1;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.day-number {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-blue);
    text-transform: uppercase;
}

.day-module-icon {
    font-size: 1.2rem;
}

.day-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.day-actions {
    display: flex;
    gap: 0.75rem;
}

.action-btn {
    flex: 1;
    padding: 0.6rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.kaggle-btn {
    background: rgba(32, 190, 255, 0.1);
    color: #20beff;
    border: 1px solid rgba(32, 190, 255, 0.3);
}

.colab-btn {
    background: rgba(249, 171, 0, 0.1);
    color: #f9ab00;
    border: 1px solid rgba(249, 171, 0, 0.3);
}

.action-btn:hover {
    background: var(--text-primary);
    color: var(--bg-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: var(--bg-color);
    margin: 2% auto;
    width: 90%;
    max-width: 1000px;
    height: 90vh;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
}

/* Footer */
.main-footer {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.author-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.author-link:hover {
    color: var(--accent-blue);
}

.footer-links a {
    color: var(--accent-blue);
    text-decoration: none;
}

/* Explorer & Spinner */
#skeleton-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    /* Anchor footer to bottom */
}

.loader-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.splash-footer {
    padding-bottom: 2rem;
    width: 100%;
    text-align: center;
}

.loader-r-wrapper {
    width: 400px;
    position: relative;
    margin: 0 auto 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-r-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-blue);
    color: var(--bg-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 20px;
    left: 0;
    transform: translateX(-50%);
    animation: breatheGlow 2.5s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(88, 166, 255, 0.6);
    z-index: 2;
    transition: left 0.1s linear;
}

.loader-r-icon svg {
    width: 32px;
    height: 32px;
}

@keyframes breatheGlow {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 20px rgba(88, 166, 255, 0.4);
    }

    50% {
        transform: translateX(-50%) scale(1.1);
        box-shadow: 0 0 40px rgba(88, 166, 255, 0.8);
    }
}

.loader-progress-container {
    width: 400px;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
}

#splash-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--gradient);
    box-shadow: 0 0 15px var(--accent-blue);
    transition: width 0.1s linear;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.loader-text {
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.25rem;
    /* Even larger for readability */
    letter-spacing: 1px;
    opacity: 0.95;
    text-align: center;
    margin-top: 1.5rem;
    font-weight: 600;
}

.pulse-text {
    animation: pulseSync 2s ease-in-out infinite;
}

@keyframes pulseSync {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

@keyframes fadeOutLoader {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

.viewer-note {
    max-width: 400px;
    font-size: 0.85rem;
    opacity: 0.7;
}

.notebook-viewer-frame {
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    /* Notebooks are white themed */
}

/* Scrollbar Polish */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Elite Loading Bar */
#loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--gradient);
    z-index: 2000;
    box-shadow: 0 0 10px var(--accent-blue);
    transition: width 0.3s ease;
}

/* Repo Links & Icons */
/* Repo Links Cleanup */
.repo-btn {
    width: 100%;
    /* Ensure full width within profile-unit */
    min-width: 220px;
}

.repo-btn {
    padding: 0.8rem 2rem;
    border-radius: 100px;
    /* Perfect pill shape */
    font-weight: 700;
    text-decoration: none;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    background: #0d1117;
    /* Dark as per image */
    border: 1px solid rgba(240, 246, 252, 0.1);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.repo-btn:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: var(--accent-blue);
    background: #161b22;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.repo-btn i {
    font-size: 1.1rem;
    color: #ffffff !important;
}

/* Vertical Author Layout */
/* Hero Identity Grid Re-anchoring */
.hero-identity-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
    opacity: 0;
    animation: fadeIn 1s ease 0.6s forwards;
}

.profile-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.author-pill {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--panel-bg);
    padding: 0.6rem 1.5rem 0.6rem 0.6rem;
    border-radius: 100px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.author-pill:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.author-avatar-wrapper {
    position: relative;
    width: 100px;
    /* Bigger rounded */
    height: 100px;
}

.author img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--accent-blue);
    object-fit: cover;
    transition: all 0.4s ease;
}

.author:hover {
    transform: translateY(-10px);
}

.author:hover img {
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px var(--accent-blue);
}

.author-name {
    font-weight: 700;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
}

.author-r-divider {
    display: none;
}

/* Responsive */
/* Responsive */
/* Consolidated Responsive Styles */

/* --- Responsive Multi-Device Evolution --- */

@media screen and (max-width: 1024px) {
    .container {
        padding: 1.5rem;
    }

    .premium-title {
        font-size: 3rem;
    }

    .cert-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .day-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .loader-r-wrapper,
    .loader-progress-container {
        width: 350px;
    }
}

@media screen and (max-width: 768px) {
    .premium-title {
        font-size: 2rem;
        text-align: center;
        margin-top: 0;
    }

    .subtitle {
        text-align: center;
    }

    .top-controls {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        transform: none;
        margin: 0 auto 1.5rem auto;
        width: max-content;
        z-index: 10;
        background: rgba(13, 17, 23, 0.8);
        padding: 0.5rem 1rem;
        border-radius: 50px;
        backdrop-filter: blur(5px);
        display: flex;
        justify-content: center;
        gap: 1rem;
    }

    .control-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .glass-panel {
        background: linear-gradient(-45deg, transparent, rgba(88, 166, 255, 0.3), transparent, rgba(188, 140, 255, 0.3));
        background-size: 400% 400%;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--border-color);
        border-radius: 24px;
        padding: 4rem;
        box-shadow: var(--shadow-premium);
        position: relative;
        max-width: 1100px;
        margin: 0 auto;
        animation: slideUpFade 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards, gradientBG 15s ease infinite;
        transition: all 0.4s ease;
    }

    .header-content {
        padding: 0 1rem;
    }

    .stat-value {
        font-size: 2.5rem;
    }

    .day-grid {
        grid-template-columns: 1fr;
    }

    .repo-links {
        flex-direction: column;
    }

    .authors-badge {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Stack Identity Grid Vertical */
    .hero-identity-grid {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
        margin-top: 1.5rem;
    }

    .profile-unit {
        width: 100%;
    }

    .repo-btn {
        width: auto;
        min-width: 220px;
        justify-content: center;
        margin: 0 auto;
        padding: 0.8rem 2rem;
    }

    /* Stack Stats Vertical */
    .stats-top-row {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        /* Increased gap */
        text-align: center;
        margin-bottom: 2.5rem;
    }

    .stat-unit {
        width: 100%;
        display: flex;
        /* Enforce flex */
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    /* Improved Identity Spacing */
    .hero-identity-grid {
        flex-direction: column;
        gap: 2.5rem;
        width: 100%;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }

    .stat-header {
        justify-content: center;
        text-align: center;
        width: 100%;
        flex-direction: column;
        /* Stack text and icon */
        gap: 0.5rem;
    }

    .stat-value-container {
        justify-content: center;
        width: 100%;
    }

    .loader-r-wrapper,
    .loader-progress-container {
        width: 280px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* Certificate Mobile Center */
    .cert-info {
        text-align: center;
        width: 100%;
        /* Ensure full width for centering */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Fix Overflowing Icons - Let JS control position */
    .stats-r-icon {
        bottom: -20px;
        width: 40px;
        height: 40px;
    }

    .stats-r-icon svg {
        width: 20px;
        height: 20px;
    }
}

@media screen and (min-width: 1800px) {
    .container {
        max-width: 1600px;
    }

    .premium-title {
        font-size: 5rem;
    }

    .subtitle {
        font-size: 1.5rem;
        max-width: 1000px;
    }

    .stat-value {
        font-size: 4rem;
    }

    .day-card {
        padding: 2.5rem;
    }

    .day-title {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 360px) {
    .premium-title {
        font-size: 1.8rem;
    }

    .stat-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Modal Controls Simplified */
.modal-controls {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
    margin-right: 1.5rem;
    /* Closer to close button */
    align-items: center;
    z-index: 10;
}

.control-icon-btn {
    background: transparent !important;
    border: none !important;
    color: var(--text-secondary);
    width: 44px;
    /* Touch target optimized */
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2rem;
    padding: 0;
    margin: 0;
    box-shadow: none !important;
}

.control-icon-btn:hover {
    color: var(--accent-blue);
    transform: scale(1.1);
    background: rgba(88, 166, 255, 0.1) !important;
    border-radius: 50%;
}

.control-icon-btn.download-action {
    color: var(--text-secondary);
}

.control-icon-btn.download-action:hover {
    color: var(--accent-blue);
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--panel-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#back-to-top:hover {
    background: var(--accent-blue);
    color: var(--bg-color);
    transform: translateY(-5px);
}

/* Stats Interaction */
.stats-r-icon {
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.3s ease;
}

.stats-r-icon:hover {
    transform: scale(1.1);
}