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

:root {
    /* Neon Pink Dark theme – slightly pink (progress bar & objective tree unchanged) */
    --bg-primary: #1a0a14;
    --bg-secondary: #2d0a1e;
    --bg-tertiary: #3d1228;
    --bg-hover: #4a1535;
    --border-color: #5c1f45;
    --text-primary: #f5e8f0;
    --text-secondary: #c490b0;
    --accent-yellow: #ffe414;
    --accent-neon: #e040e0;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header */
.header {
    background-color: rgba(26, 10, 20, 0.92);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    border-radius: 0;
    display: block;
    object-fit: contain;
    align-self: flex-end;
    margin-top: 8px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text-main {
    font-size: 14px;
    font-weight: 600;
}

.logo-text-sub {
    font-size: 12px;
    color: var(--text-secondary);
}

.navbar {
    display: flex;
    gap: 12px;
}

.nav-link {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 10px;
    border-radius: var(--radius-md);
    transition: background 0.2s, color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 18px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.social-icon:hover {
    color: var(--bg-primary);
    background-color: var(--accent-neon);
    border-color: var(--accent-neon);
}

/* Layout */
.page-wrapper {
    max-width: 1100px;
    margin: 16px auto 24px;
    padding: 0 16px;
}

.page-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 16px;
    align-items: flex-start;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 32px;
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .right-column {
        padding-left: 0;
    }
}

/* Generic cards */
.card {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 16px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
}

.card-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Profile / Home */
.profile-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

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

.profile-name {
    font-size: 18px;
    font-weight: 600;
}

.profile-tagline {
    font-size: 13px;
    color: var(--text-secondary);
}

.profile-highlight {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background-color: rgba(255, 228, 20, 0.12);
    color: var(--accent-yellow);
    border: 1px solid rgba(255, 228, 20, 0.35);
    font-size: 12px;
}

.profile-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--accent-yellow);
    color: #000;
    border: none;
    border-radius: var(--radius-md);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
    background-color: #ffe95a;
    transform: translateY(-1px);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-icon i {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    padding: 0;
}

.btn-primary.btn-icon i {
    background-color: var(--accent-yellow);
    color: #000;
}

.btn-ghost.btn-icon i {
    background-color: transparent;
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.btn-ghost {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
    background-color: var(--bg-hover);
    border-color: var(--text-secondary);
}

/* Education timeline (simplified stacked cards) */
.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-item {
    display: flex;
    gap: 10px;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    border: 1px solid var(--border-color);
}

.timeline-media {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--bg-hover);
    flex-shrink: 0;
}

.timeline-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.timeline-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeline-date {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.timeline-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-text {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Write-ups page: link icon on the right */
.writeup-item {
    align-items: flex-start;
}

.writeup-content {
    flex: 1;
    min-width: 0;
}

.writeup-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    color: var(--accent-neon);
    transition: background 0.2s, color 0.2s;
}

.writeup-link:hover {
    background-color: rgba(224, 64, 224, 0.15);
    color: var(--text-primary);
}

.writeup-link i {
    font-size: 20px;
}

/* Internship */
.internship-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.internship-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 10px 12px 12px;
}

.internship-media {
    width: 100%;
    max-height: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--bg-hover);
    flex-shrink: 0;
    margin-bottom: 4px;
}

.internship-media img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.internship-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Internship image lightbox */
.lightbox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.lightbox-backdrop.open {
    display: flex;
}

.lightbox-image-wrapper {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-color);
}

.lightbox-image-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.internship-meta {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.internship-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.internship-text {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Right side – Links list */
.mini-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
    margin-left: 0;
}

.mini-item {
    font-size: 13px;
    color: var(--text-secondary);
}

.mini-link {
    font-size: 13px;
    color: var(--accent-neon);
    cursor: pointer;
}

.mini-link:hover {
    text-decoration: underline;
}

/* Terminal-style progress under Links */
.terminal-progress {
    margin-top: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
}

.progress-card {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.terminal-command {
    color: #58a6ff;
    margin-bottom: 8px;
}

.terminal-prompt {
    color: #7ee787;
    margin-right: 4px;
}

.terminal-progress-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-bracket {
    color: var(--text-primary);
    font-weight: 600;
}

.terminal-bar {
    flex: 1;
    height: 12px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.terminal-fill {
    height: 100%;
    background: #30363d; /* default neutral bar */
}

.terminal-percent {
    color: #58a6ff;
    min-width: 40px;
    text-align: right;
}

/* Per-row colors: bar + text match */
.progress-green .terminal-fill {
    background: linear-gradient(90deg, #238636 0%, #3fb950 100%);
}
.progress-green .terminal-command,
.progress-green .terminal-percent {
    color: #3fb950;
}

.progress-orange .terminal-fill {
    background: linear-gradient(90deg, #9e6a03 0%, #d29922 100%);
}
.progress-orange .terminal-command,
.progress-orange .terminal-percent {
    color: #d29922;
}

.progress-blue .terminal-fill {
    background: linear-gradient(90deg, #0969da 0%, #58a6ff 100%);
}
.progress-blue .terminal-command,
.progress-blue .terminal-percent {
    color: #58a6ff;
}

.progress-red .terminal-fill {
    background: linear-gradient(90deg, #da3633 0%, #f85149 100%);
}
.progress-red .terminal-command,
.progress-red .terminal-percent {
    color: #f85149;
}

/* Objective tree (right side, below progress) */
.objective-tree-card {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.objective-tree-card .tree {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-top: 8px;
}

.objective-tree-card .tree-line {
    margin: 2px 0;
}

.objective-tree-card .tree-header {
    color: #d2a8ff;
    font-weight: 600;
}

.objective-tree-card .tree-category {
    color: #79c0ff;
    font-weight: 500;
    margin-top: 6px;
    display: block;
}

.objective-tree-card .tree-completed {
    color: #7ee787;
}

.objective-tree-card .tree-pending {
    color: #8b949e;
}

.objective-tree-card .tree-in-progress {
    color: #ffa657;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 16px 0 24px;
    margin-top: 32px;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

/* EPL table (My Vibes) */
.epl-section .card-header {
    flex-wrap: wrap;
    gap: 4px;
}
.epl-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.epl-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}
.epl-attribution {
    font-size: 12px;
    color: var(--text-secondary);
}
.epl-loading,
.epl-error {
    padding: 16px 0;
    color: var(--text-secondary);
}
.epl-error {
    color: #f85149;
}
.epl-standings {
    overflow-x: auto;
    margin-top: 8px;
}
.epl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.epl-table th,
.epl-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.epl-table th {
    color: var(--text-secondary);
    font-weight: 600;
}
.epl-table tbody tr:hover {
    background-color: var(--bg-hover);
}
.epl-col-club {
    min-width: 160px;
}
.epl-col-num,
.epl-col-pts {
    text-align: center;
    min-width: 36px;
}
.epl-col-pts {
    font-weight: 700;
}
.epl-club {
    display: flex;
    align-items: center;
    gap: 10px;
}
.epl-rank-wrap {
    display: flex;
    align-items: center;
    min-width: 28px;
}
.epl-rank-bar {
    width: 4px;
    height: 20px;
    border-radius: 2px;
    margin-right: 8px;
    flex-shrink: 0;
}
.epl-rank-bar.champions-league {
    background: #3b82f6;
}
.epl-rank-bar.europa {
    background: #f97316;
}
.epl-rank-bar.conference {
    background: #8b5cf6;
}
.epl-rank-bar.relegation {
    background: #ef4444;
}
.epl-crest {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}
.epl-club-name {
    font-weight: 500;
}
.epl-col-form {
    min-width: 100px;
}
.epl-form {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
}
.epl-form-empty {
    color: var(--text-secondary);
}
.epl-form-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}
.epl-form-dot.win {
    background: #22c55e;
    color: #fff;
}
.epl-form-dot.draw {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}
.epl-form-dot.loss {
    background: #ef4444;
    color: #fff;
}

/* Spotify / Music Vibe (My Vibes) */
.spotify-section .card-header {
    flex-wrap: wrap;
    gap: 4px;
}
.spotify-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.spotify-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
/* EPL-style: white square box, 48x48, like Premier League logo */
.spotify-logo-wrap .spotify-logo-img.epl-style-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #fff;
    padding: 6px;
    border-radius: 4px;
    box-sizing: border-box;
}
.spotify-logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.spotify-btn-logo-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-right: 6px;
    vertical-align: middle;
}
.spotify-btn-logo .bx {
    margin-right: 6px;
}
.spotify-attribution {
    font-size: 12px;
    color: var(--text-secondary);
}
.spotify-connect-wrap {
    padding: 20px 0;
    text-align: center;
}
.spotify-connect-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.btn-spotify {
    background-color: #1db954;
    color: #fff;
}
.btn-spotify:hover {
    background-color: #1ed760;
}
.btn-spotify i {
    font-size: 20px;
    margin-right: 6px;
}
.spotify-content {
    margin-top: 8px;
}
.spotify-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
@media (max-width: 700px) {
    .spotify-grid {
        grid-template-columns: 1fr;
    }
}
.spotify-panel-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.spotify-panel-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}
.spotify-panel-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.spotify-artists {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.spotify-artist {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: background 0.2s;
}
.spotify-artist:hover {
    background-color: var(--bg-hover);
}
.spotify-artist-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.spotify-artist-name {
    font-size: 14px;
    font-weight: 600;
}
.spotify-artist-link {
    color: inherit;
}
.spotify-artist-link:hover {
    color: #1db954;
}
.spotify-radar-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}
.spotify-radar {
    max-width: 100%;
    height: auto;
}
.spotify-genres-wrap {
    padding: 16px;
    text-align: center;
}
.spotify-genres-wrap .spotify-radar-fallback {
    margin: 0 0 12px;
    font-size: 12px;
    color: var(--text-secondary);
    padding: 0;
}
.spotify-genres-title {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}
.spotify-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
}
.spotify-genre-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background-color: var(--bg-hover);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 12px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.spotify-genre-tag:hover {
    background-color: rgba(29, 185, 84, 0.15);
    border-color: rgba(29, 185, 84, 0.4);
    color: var(--text-primary);
}
.spotify-genres-empty {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Most played – album-style track cards */
.spotify-tracks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 8px;
}
@media (min-width: 500px) {
    .spotify-tracks-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.spotify-track-card {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.15s ease;
}
.spotify-track-card:hover {
    transform: scale(1.02);
}
.spotify-track-card:hover .spotify-track-card-title {
    color: #1db954;
}
.spotify-track-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
}
.spotify-track-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.spotify-track-card-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(29, 185, 84, 0.95);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
.spotify-track-card-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.spotify-track-card-artists {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.spotify-tracks-empty {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 24px 0;
}
.spotify-static-hint {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--text-secondary);
}
.spotify-static-hint-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: #1db954;
    cursor: pointer;
}
.spotify-static-hint-link:hover {
    text-decoration: underline;
}
.spotify-export-wrap {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--text-secondary);
}
.spotify-export-wrap code {
    font-size: 11px;
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
}
.btn-export {
    margin-right: 4px;
}
.spotify-refresh-wrap {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}
.spotify-refresh-title {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}
.spotify-refresh-desc {
    margin: 0 0 8px;
    font-size: 12px;
    color: var(--text-secondary);
}
.spotify-refresh-desc code {
    font-size: 11px;
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
}
.spotify-refresh-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.spotify-refresh-input {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    font-size: 12px;
    font-family: ui-monospace, monospace;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
}
.spotify-loading,
.spotify-error-wrap {
    padding: 16px 0;
    font-size: 13px;
    color: var(--text-secondary);
}
.spotify-error-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
#spotify-error-text {
    color: #f85149;
}
.btn-try-again {
    flex-shrink: 0;
}

