/* Spotify history card */
.spotify-history-card {
    background: linear-gradient(155deg, rgba(9, 14, 11, 0.92) 0%, rgba(12, 18, 14, 0.82) 100%);
    border: 1px solid rgba(30, 215, 96, 0.24);
    border-radius: 10px;
    padding: 24px;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* Contact Refresh Overrides */
#contact .contact-utility-bar {
    display: flex;
    justify-content: center;
    margin: 20px auto 0;
    max-width: 760px;
}

#contact .contact-policy-link {
    width: min(100%, 720px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    text-decoration: none;
    color: #eff3fb;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid #708fff38;
    background:
        radial-gradient(circle at left top, rgba(var(--accent) / 0.18), transparent 40%),
        linear-gradient(145deg, rgba(10, 14, 26, 0.92), rgba(5, 7, 14, 0.98));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

#contact .contact-policy-copy,
#contact .social-card-copy,
#contact .social-link-copy {
    display: flex;
    flex-direction: column;
}

#contact .contact-policy-copy {
    gap: 6px;
    text-align: left;
}

#contact .contact-policy-label,
#contact .social-kicker {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

#contact .contact-policy-label {
    color: #aab3c7;
}

#contact .contact-policy-text {
    font-size: 14px;
    line-height: 1.6;
    color: #eef2f9;
}

#contact .contact-policy-link i {
    font-size: 20px;
    color: rgb(var(--accent));
    flex-shrink: 0;
}

#contact .contact-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 118px;
    padding: 20px 22px;
    border-radius: 24px;
}

#contact .contact-item-main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1;
}

#contact .contact-item-trailing {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 0;
    flex-shrink: 0;
}

#contact .contact-meta {
    margin-top: 6px;
    max-width: 28ch;
    font-size: 12px;
    line-height: 1.5;
    color: #8f9ab0;
}

#contact .contact-action-hint {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #95a0b7;
}

#contact .contact-label {
    margin-bottom: 6px;
}

#contact .contact-value {
    font-size: 16px;
    line-height: 1.2;
}

#contact .contact-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
}

#contact .contact-grid {
    grid-template-columns: 1fr;
    gap: 16px;
}

#contact .contact-item.donate-item {
    min-height: 112px;
}

#contact .social-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

#contact .social-links-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

#contact .social-link {
    display: flex;
    min-height: 46px;
    justify-content: center;
    align-items: center;
    padding: 0 18px;
    border-radius: 16px;
    background: rgba(12, 12, 12, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    gap: 10px;
    text-align: center;
}

#contact .social-link-icon {
    width: auto;
    height: auto;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    flex-shrink: 0;
}

#contact .social-link-copy {
    min-width: 0;
    flex: 0 1 auto;
    justify-content: center;
}

#contact .social-link-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

#contact .social-link-meta {
    display: none;
}

#contact .social-link-arrow {
    display: none;
}

#contact .social-link-icon i {
    font-size: 18px;
    color: #f6f7fb;
}

#contact .contact-cta-row {
    display: none;
}

.footer-legal-link {
    color: #b8c2d8;
    text-decoration: none;
    margin-left: 14px;
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-legal-link:hover {
    color: #ffffff;
}
 
/* Light theme final overrides - EOF */
body[data-theme="light"] .site-notice-inner,
body[data-theme="light"] .fixed-nav,
body[data-theme="light"] .mobile-bottom-nav,
body[data-theme="light"] .footer-content,
body[data-theme="light"] .settings-toggle,
body[data-theme="light"] .mini-music-player,
body[data-theme="light"] .discord-card,
body[data-theme="light"] .discord-profile-card,
body[data-theme="light"] .presence-tile,
body[data-theme="light"] .music-player-card,
body[data-theme="light"] .spotify-history-card,
body[data-theme="light"] .weather-card,
body[data-theme="light"] .favorites-card,
body[data-theme="light"] .about-hero-card,
body[data-theme="light"] .about-panel-card,
body[data-theme="light"] .about-fact-card,
body[data-theme="light"] .project-card,
body[data-theme="light"] .settings-section,
body[data-theme="light"] .project-modal,
body[data-theme="light"] .playlist-modal,
body[data-theme="light"] .contact-modal,
body[data-theme="light"] .external-redirect-modal,
body[data-theme="light"] .welcome-guide-modal,
body[data-theme="light"] .welcome-tour-modal,
body[data-theme="light"] .wakeup-content,
body[data-theme="light"] #contact .contact-policy-link,
body[data-theme="light"] #contact .social-card,
body[data-theme="light"] #contact .social-link,
body[data-theme="light"] #contact .contact-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.998), rgba(251, 250, 246, 0.994));
    border-color: rgba(17, 17, 17, 0.1);
    box-shadow: 0 12px 28px rgba(15, 15, 15, 0.055);
}

body[data-theme="light"] .weather-day,
body[data-theme="light"] .discord-profile-card,
body[data-theme="light"] .presence-tile,
body[data-theme="light"] .project-modal-metric,
body[data-theme="light"] .project-modal-link,
body[data-theme="light"] .project-tag,
body[data-theme="light"] .project-modal-tag,
body[data-theme="light"] .project-banner-pill,
body[data-theme="light"] .music-slot-indicator,
body[data-theme="light"] .skills-pill,
body[data-theme="light"] .favorite-badge,
body[data-theme="light"] .favorite-link,
body[data-theme="light"] .settings-search-wrap,
body[data-theme="light"] .settings-reset-all,
body[data-theme="light"] .settings-action-btn,
body[data-theme="light"] .settings-category-btn,
body[data-theme="light"] .settings-segmented,
body[data-theme="light"] .section-search,
body[data-theme="light"] .section-search-empty,
body[data-theme="light"] #contact .social-link-icon,
body[data-theme="light"] .shortcut-item,
body[data-theme="light"] .status-badge,
body[data-theme="light"] .weather-day.weather-today,
body[data-theme="light"] .contact-item.donate-item {
    background: rgba(17, 17, 17, 0.028);
    border-color: rgba(17, 17, 17, 0.1);
    color: #1e1e1e;
    box-shadow: none;
}

body[data-theme="light"] .favorite-tile,
body[data-theme="light"] .favorite-meta {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.998), rgba(251, 250, 246, 0.994));
    border-color: rgba(17, 17, 17, 0.1);
    box-shadow: 0 12px 28px rgba(15, 15, 15, 0.055);
}

body[data-theme="light"] .favorite-media {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.998), rgba(248, 247, 243, 0.992));
    border-bottom-color: rgba(17, 17, 17, 0.08);
}

body[data-theme="light"] .favorite-media::after {
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.12) 72%, rgba(255, 255, 255, 0.28) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(245, 245, 241, 0.12) 52%, rgba(236, 236, 232, 0.26) 100%);
}

body[data-theme="light"] .favorite-media::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(245, 245, 241, 0.76) 100%);
}

body[data-theme="light"] .favorite-media img,
body[data-theme="light"] .music-album-art,
body[data-theme="light"] .album-art,
body[data-theme="light"] .mini-player-art,
body[data-theme="light"] .project-banner,
body[data-theme="light"] .project-modal-banner {
    filter: none;
}

body[data-theme="light"] .track-item {
    border-bottom-color: rgba(17, 17, 17, 0.06);
}

body[data-theme="light"] .track-item:hover,
body[data-theme="light"] .favorite-tile:hover,
body[data-theme="light"] .discord-card:hover,
body[data-theme="light"] .music-player-card:hover,
body[data-theme="light"] .presence-tile:hover,
body[data-theme="light"] .project-card:hover,
body[data-theme="light"] .weather-day:hover {
    background: rgba(17, 17, 17, 0.03);
    border-color: rgba(17, 17, 17, 0.14);
    box-shadow: 0 16px 30px rgba(15, 15, 15, 0.07);
}

body[data-theme="light"] .history-title,
body[data-theme="light"] .track-name,
body[data-theme="light"] .music-title,
body[data-theme="light"] .music-artist,
body[data-theme="light"] .mini-player-title,
body[data-theme="light"] .weather-temp,
body[data-theme="light"] .weather-location,
body[data-theme="light"] .favorite-name,
body[data-theme="light"] .project-title,
body[data-theme="light"] .project-modal-intro h2,
body[data-theme="light"] .project-modal-section-title,
body[data-theme="light"] .settings-title,
body[data-theme="light"] .settings-item-title,
body[data-theme="light"] .presence-main,
body[data-theme="light"] #contact .contact-policy-text,
body[data-theme="light"] #contact .contact-value,
body[data-theme="light"] #contact .social-title,
body[data-theme="light"] #contact .social-link-title {
    color: #191919;
}

body[data-theme="light"] .tagline,
body[data-theme="light"] .history-tag,
body[data-theme="light"] .track-artist,
body[data-theme="light"] .weather-range,
body[data-theme="light"] .weather-desc,
body[data-theme="light"] .settings-item-desc,
body[data-theme="light"] .settings-section-title,
body[data-theme="light"] .favorite-desc,
body[data-theme="light"] .mini-player-artist,
body[data-theme="light"] .mini-player-label,
body[data-theme="light"] .skills-search-count,
body[data-theme="light"] .project-subtitle,
body[data-theme="light"] .project-desc,
body[data-theme="light"] .project-modal-description,
body[data-theme="light"] #project-modal-subtitle,
body[data-theme="light"] .status-badge,
body[data-theme="light"] .loading-kicker,
body[data-theme="light"] .wake-text,
body[data-theme="light"] .loading-status,
body[data-theme="light"] #contact .social-summary,
body[data-theme="light"] #contact .social-link-meta,
body[data-theme="light"] #contact .contact-policy-label,
body[data-theme="light"] #contact .contact-meta,
body[data-theme="light"] #contact .contact-action-hint,
body[data-theme="light"] #contact .social-link-arrow,
body[data-theme="light"] .footer-copy,
body[data-theme="light"] .footer-legal-link {
    color: #676767;
}

body[data-theme="light"] .bar,
body[data-theme="light"] .weather-icon,
body[data-theme="light"] .project-modal-highlight i,
body[data-theme="light"] .settings-title i,
body[data-theme="light"] .skills-section-title i,
body[data-theme="light"] .status-now,
body[data-theme="light"] .donate-icon,
body[data-theme="light"] #contact .contact-policy-link i,
body[data-theme="light"] #contact .social-link-icon i {
    color: #202020;
}

body[data-theme="light"] .status-now {
    background: rgba(17, 17, 17, 0.06);
}

body[data-theme="light"] .favorite-desc code,
body[data-theme="light"] .settings-shortcuts-intro kbd {
    background: rgba(17, 17, 17, 0.045);
    border-color: rgba(17, 17, 17, 0.1);
    color: #1b1b1b;
}

body[data-theme="light"] .settings-title i,
body[data-theme="light"] .skills-section-title i,
body[data-theme="light"] .project-modal-highlight i,
body[data-theme="light"] .weather-icon {
    opacity: 0.88;
}

/* Light theme corrective overrides - final EOF */
body[data-theme="light"] .favorite-media img,
body[data-theme="light"] .music-album-art,
body[data-theme="light"] .album-art,
body[data-theme="light"] .mini-player-art,
body[data-theme="light"] .project-banner,
body[data-theme="light"] .project-modal-banner,
body[data-theme="light"] .avatar {
    filter: none !important;
}

body[data-theme="light"] .discord-chip,
body[data-theme="light"] .discord-chip.status,
body[data-theme="light"] .discord-chip.device,
body[data-theme="light"] .discord-action,
body[data-theme="light"] .discord-action:hover,
body[data-theme="light"] .presence-primary,
body[data-theme="light"] .presence-icon,
body[data-theme="light"] .activity-card,
body[data-theme="light"] .activity-card.spotify,
body[data-theme="light"] .activity-card.vscode,
body[data-theme="light"] .activity-app-icon,
body[data-theme="light"] .mini-player-control,
body[data-theme="light"] .mini-player-play,
body[data-theme="light"] .mini-player-header-btn,
body[data-theme="light"] .status-now {
    background: rgba(20, 20, 20, 0.045) !important;
    background-image: none !important;
    border-color: rgba(20, 20, 20, 0.12) !important;
    box-shadow: none !important;
    color: #1b1f27 !important;
}

body[data-theme="light"] .discord-action:hover,
body[data-theme="light"] .presence-tile:hover,
body[data-theme="light"] .activity-card:hover,
body[data-theme="light"] .mini-player-control:hover,
body[data-theme="light"] .mini-player-header-btn:hover {
    transform: none;
    background: rgba(20, 20, 20, 0.07) !important;
    border-color: rgba(20, 20, 20, 0.16) !important;
}

body[data-theme="light"] .presence-tile::after,
body[data-theme="light"] .favorite-media::after,
body[data-theme="light"] .favorite-media::before {
    opacity: 0;
    background: none !important;
}

body[data-theme="light"] .status-indicator {
    border-color: #f6f4ef;
    box-shadow: none !important;
}

body[data-theme="light"] .mini-player-progress {
    background: rgba(20, 20, 20, 0.14);
}

body[data-theme="light"] .mini-player-progress-fill {
    background: #262626;
}

body[data-theme="light"] .username,
body[data-theme="light"] .status-text,
body[data-theme="light"] .identity-line,
body[data-theme="light"] .discord-meta,
body[data-theme="light"] .presence-main,
body[data-theme="light"] .activity-title,
body[data-theme="light"] .history-title,
body[data-theme="light"] .track-name,
body[data-theme="light"] .music-title,
body[data-theme="light"] .music-artist,
body[data-theme="light"] .mini-player-title,
body[data-theme="light"] .weather-location,
body[data-theme="light"] .weather-temp,
body[data-theme="light"] .favorite-name,
body[data-theme="light"] .project-title,
body[data-theme="light"] .project-modal-kicker,
body[data-theme="light"] .project-modal-intro h2,
body[data-theme="light"] .project-modal-section-title,
body[data-theme="light"] .project-modal-highlight,
body[data-theme="light"] .project-modal-link,
body[data-theme="light"] .project-modal-metric-value,
body[data-theme="light"] .settings-title,
body[data-theme="light"] .settings-item-title,
body[data-theme="light"] .skills-hero-title,
body[data-theme="light"] .skills-section-title,
body[data-theme="light"] .section-title,
body[data-theme="light"] .section-subtitle,
body[data-theme="light"] .section-lead,
body[data-theme="light"] #contact .contact-policy-text,
body[data-theme="light"] #contact .contact-value,
body[data-theme="light"] #contact .social-title,
body[data-theme="light"] #contact .social-link-title,
body[data-theme="light"] .site-notice-text,
body[data-theme="light"] .site-notice-dismiss {
    color: #1d2433 !important;
}

body[data-theme="light"] .presence-label,
body[data-theme="light"] .activity-type,
body[data-theme="light"] .activity-artist,
body[data-theme="light"] .activity-elapsed,
body[data-theme="light"] .history-tag,
body[data-theme="light"] .track-artist,
body[data-theme="light"] .mini-player-artist,
body[data-theme="light"] .mini-player-label,
body[data-theme="light"] .mini-player-volume,
body[data-theme="light"] .weather-subtitle,
body[data-theme="light"] .weather-updated,
body[data-theme="light"] .weather-range,
body[data-theme="light"] .weather-desc,
body[data-theme="light"] .weather-note,
body[data-theme="light"] .weather-current-meta,
body[data-theme="light"] .weather-day-label,
body[data-theme="light"] .favorite-desc,
body[data-theme="light"] .project-subtitle,
body[data-theme="light"] .project-desc,
body[data-theme="light"] #project-modal-subtitle,
body[data-theme="light"] .project-modal-description,
body[data-theme="light"] .project-modal-metric-label,
body[data-theme="light"] .settings-item-desc,
body[data-theme="light"] .settings-section-title,
body[data-theme="light"] .skills-hero-subtitle,
body[data-theme="light"] .skills-search-count,
body[data-theme="light"] .loading-kicker,
body[data-theme="light"] .wake-text,
body[data-theme="light"] .loading-status,
body[data-theme="light"] #contact .contact-policy-label,
body[data-theme="light"] #contact .contact-meta,
body[data-theme="light"] #contact .contact-action-hint,
body[data-theme="light"] #contact .social-summary,
body[data-theme="light"] #contact .social-link-meta,
body[data-theme="light"] #contact .social-link-arrow,
body[data-theme="light"] .footer-copy,
body[data-theme="light"] .footer-legal-link {
    color: #68707d !important;
}

body[data-theme="light"] .discord-card,
body[data-theme="light"] .discord-profile-card,
body[data-theme="light"] .presence-tile,
body[data-theme="light"] .spotify-history-card,
body[data-theme="light"] .music-player-card,
body[data-theme="light"] .weather-card,
body[data-theme="light"] .favorites-card,
body[data-theme="light"] .favorite-tile,
body[data-theme="light"] .favorite-meta,
body[data-theme="light"] .project-card,
body[data-theme="light"] .project-modal,
body[data-theme="light"] .playlist-modal,
body[data-theme="light"] .contact-modal,
body[data-theme="light"] .external-redirect-modal,
body[data-theme="light"] .welcome-guide-modal,
body[data-theme="light"] .welcome-tour-modal,
body[data-theme="light"] .wakeup-content,
body[data-theme="light"] #contact .contact-item,
body[data-theme="light"] #contact .social-card,
body[data-theme="light"] #contact .social-link {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.996), rgba(247, 246, 242, 0.992)) !important;
    border-color: rgba(20, 20, 20, 0.11) !important;
}

body[data-theme="light"] .spotify-history-card,
body[data-theme="light"] .spotify-history-card:hover,
body[data-theme="light"] .spotify-history-card.is-playing,
body[data-theme="light"] .info-item,
body[data-theme="light"] .info-item:hover,
body[data-theme="light"] .about-fact-card,
body[data-theme="light"] .skills-final-card,
body[data-theme="light"] .language-card,
body[data-theme="light"] .contact-primary-card,
body[data-theme="light"] .contact-item,
body[data-theme="light"] #contact .contact-item,
body[data-theme="light"] #contact .social-link {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.998), rgba(246, 245, 241, 0.994)) !important;
    border-color: rgba(22, 26, 33, 0.12) !important;
    box-shadow: 0 12px 28px rgba(18, 22, 28, 0.055) !important;
}

body[data-theme="light"] .contact-social-link {
    background: transparent !important;
    border-color: rgba(22, 26, 33, 0.08) !important;
    box-shadow: none !important;
}

body[data-theme="light"] .spotify-history-card::before,
body[data-theme="light"] .about-fact-card::before,
body[data-theme="light"] .skills-final-card::before,
body[data-theme="light"] .info-item::before,
body[data-theme="light"] .contact-item::before,
body[data-theme="light"] #contact .contact-item::before {
    background: none !important;
    opacity: 0 !important;
}

body[data-theme="light"] .spotify-history-card:hover,
body[data-theme="light"] .about-fact-card:hover,
body[data-theme="light"] .skills-final-card:hover,
body[data-theme="light"] .info-item:hover,
body[data-theme="light"] .language-card:hover,
body[data-theme="light"] .contact-primary-card:hover,
body[data-theme="light"] .contact-item:hover,
body[data-theme="light"] #contact .contact-item:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(244, 243, 239, 0.996)) !important;
    border-color: rgba(22, 26, 33, 0.16) !important;
    box-shadow: 0 16px 32px rgba(18, 22, 28, 0.07) !important;
}

body[data-theme="light"] .contact-social-link:hover {
    background: transparent !important;
    border-color: rgba(22, 26, 33, 0.12) !important;
    box-shadow: none !important;
}

body[data-theme="light"] .history-tag,
body[data-theme="light"] .status-badge,
body[data-theme="light"] .about-fact-badge,
body[data-theme="light"] .about-fact-chip,
body[data-theme="light"] .skills-group-count,
body[data-theme="light"] .contact-label,
body[data-theme="light"] .info-label,
body[data-theme="light"] .contact-primary-label {
    background: rgba(22, 26, 33, 0.045) !important;
    border: 1px solid rgba(22, 26, 33, 0.1) !important;
    color: #66707c !important;
}

body[data-theme="light"] .history-title,
body[data-theme="light"] .track-name,
body[data-theme="light"] .info-value,
body[data-theme="light"] .about-fact-text,
body[data-theme="light"] .final-text h3,
body[data-theme="light"] .final-text p,
body[data-theme="light"] .language-name,
body[data-theme="light"] .contact-value,
body[data-theme="light"] .contact-primary-value,
body[data-theme="light"] .contact-social-title,
body[data-theme="light"] .site-views-value,
body[data-theme="light"] .timezone-value,
body[data-theme="light"] .location-value {
    color: #1d2433 !important;
}

body[data-theme="light"] .track-artist,
body[data-theme="light"] .about-fact-chip,
body[data-theme="light"] .contact-item-arrow,
body[data-theme="light"] .contact-primary-label,
body[data-theme="light"] .info-label {
    color: #68707d !important;
}

body[data-theme="light"] .album-art,
body[data-theme="light"] .language-icon,
body[data-theme="light"] .contact-icon,
body[data-theme="light"] .contact-primary-icon,
body[data-theme="light"] .contact-social-icon,
body[data-theme="light"] .final-icon {
    background: rgba(22, 26, 33, 0.045) !important;
    border-color: rgba(22, 26, 33, 0.1) !important;
    color: #1d2433 !important;
    box-shadow: none !important;
}

body[data-theme="light"] .track-item,
body[data-theme="light"] .track-item:hover {
    background: transparent !important;
    border-bottom-color: rgba(22, 26, 33, 0.08) !important;
}

body[data-theme="light"] .bar,
body[data-theme="light"] .spotify-history-card.is-playing .bar {
    background: #222831 !important;
}

body[data-theme="light"] #skills .language-icon,
body[data-theme="light"] #contact .contact-social-icon,
body[data-theme="light"] #contact .social-link-icon {
    background: transparent !important;
    border-color: rgba(22, 26, 33, 0.1) !important;
}

body[data-theme="light"] #skills .language-icon img[src*="simpleicons.org"],
body[data-theme="light"] #contact .contact-social-icon img[src*="simpleicons.org"],
body[data-theme="light"] #contact .social-link-icon img[src*="simpleicons.org"] {
    filter: brightness(0) saturate(100%) !important;
}

body[data-theme="light"] #skills .skills-section-title i,
body[data-theme="light"] #contact .contact-social-icon i,
body[data-theme="light"] #contact .social-link-icon i {
    color: #111111 !important;
}

body[data-theme="light"] .contact-primary-label,
body[data-theme="light"] #contact .contact-primary-label {
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: #707887 !important;
}

body[data-theme="light"] #skills .skills-pill,
body[data-theme="light"] .about-availability,
body[data-theme="light"] .about-hero-badge,
body[data-theme="light"] .favorites-toggle,
body[data-theme="light"] .fav-tab,
body[data-theme="light"] .music-player-card .music-status,
body[data-theme="light"] .music-player-card .music-tag,
body[data-theme="light"] #contact .contact-policy-kicker {
    background: rgba(22, 26, 33, 0.045) !important;
    border: 1px solid rgba(22, 26, 33, 0.1) !important;
    color: #5f6978 !important;
    box-shadow: none !important;
}

body[data-theme="light"] #skills .skills-pill {
    color: #202633 !important;
    background: rgba(255, 255, 255, 0.998) !important;
}

body[data-theme="light"] .about-availability,
body[data-theme="light"] .about-hero-badge {
    color: #1d2433 !important;
}

body[data-theme="light"] .favorites-header,
body[data-theme="light"] .favorites-title,
body[data-theme="light"] .favorites-subtitle,
body[data-theme="light"] .favorites-intro,
body[data-theme="light"] .favorites-toggle,
body[data-theme="light"] .favorites-toggle span,
body[data-theme="light"] .fav-tab {
    color: #1d2433 !important;
}

body[data-theme="light"] .favorites-toggle:hover,
body[data-theme="light"] .fav-tab:hover,
body[data-theme="light"] .fav-tab.active {
    background: rgba(22, 26, 33, 0.075) !important;
    border-color: rgba(22, 26, 33, 0.14) !important;
    color: #111827 !important;
}

body[data-theme="light"] .music-player-card,
body[data-theme="light"] .music-player-card:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.998), rgba(246, 245, 241, 0.994)) !important;
    border-color: rgba(22, 26, 33, 0.12) !important;
    box-shadow: 0 12px 28px rgba(18, 22, 28, 0.055) !important;
}

body[data-theme="light"] .music-player-card::before,
body[data-theme="light"] .music-top-row::before {
    background: none !important;
    opacity: 0 !important;
}

body[data-theme="light"] .music-player-card .music-title,
body[data-theme="light"] .music-player-card .music-artist,
body[data-theme="light"] .music-player-card .music-time,
body[data-theme="light"] .music-player-card .music-progress-text,
body[data-theme="light"] .music-player-card .music-top-row,
body[data-theme="light"] .music-player-card .music-meta {
    color: #1d2433 !important;
}

body[data-theme="light"] .music-player-card .music-artist,
body[data-theme="light"] .music-player-card .music-time,
body[data-theme="light"] .music-player-card .music-progress-text {
    color: #68707d !important;
}

body[data-theme="light"] #contact .contact-policy-description {
    color: #ffffff !important;
}

body[data-theme="light"] .wakeup-no-music-btn {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.998), rgba(245, 244, 240, 0.994)) !important;
    border-color: rgba(22, 26, 33, 0.12) !important;
    color: #1d2433 !important;
    box-shadow: 0 12px 26px rgba(18, 22, 28, 0.08) !important;
}

body[data-theme="light"] .wakeup-no-music-btn:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(242, 241, 237, 0.996)) !important;
    border-color: rgba(22, 26, 33, 0.16) !important;
    color: #111827 !important;
    transform: translateY(-1px);
}

body[data-theme="light"] .about-fact-btn {
    background: rgba(255, 255, 255, 0.998) !important;
    border-color: rgba(22, 26, 33, 0.12) !important;
    color: #1d2433 !important;
    box-shadow: none !important;
}

body[data-theme="light"] .about-fact-btn:hover {
    background: rgba(22, 26, 33, 0.06) !important;
    border-color: rgba(22, 26, 33, 0.16) !important;
    color: #111827 !important;
}

body[data-theme="light"] .info-label {
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: #707887 !important;
}

body[data-theme="light"] .music-label,
body[data-theme="light"] .music-time,
body[data-theme="light"] .playlist-item-order {
    color: #68707d !important;
}

body[data-theme="light"] .music-controls,
body[data-theme="light"] .music-controls .music-volume-container {
    color: #5f6978 !important;
}

body[data-theme="light"] .music-control {
    background: rgba(22, 26, 33, 0.045) !important;
    border-color: rgba(22, 26, 33, 0.12) !important;
    color: #1d2433 !important;
    box-shadow: none !important;
}

body[data-theme="light"] .music-control::before {
    background: rgba(22, 26, 33, 0.06) !important;
}

body[data-theme="light"] .music-control:hover {
    border-color: rgba(22, 26, 33, 0.16) !important;
    box-shadow: 0 8px 18px rgba(18, 22, 28, 0.08) !important;
}

body[data-theme="light"] .playlist-item,
body[data-theme="light"] .playlist-item:hover,
body[data-theme="light"] .playlist-item.active {
    background: rgba(255, 255, 255, 0.998) !important;
    border-color: rgba(22, 26, 33, 0.1) !important;
}

body[data-theme="light"] .playlist-summary,
body[data-theme="light"] .playlist-list,
body[data-theme="light"] .playlist-item,
body[data-theme="light"] .playlist-item:hover,
body[data-theme="light"] .playlist-item.active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.998), rgba(246, 245, 241, 0.994)) !important;
    border-color: rgba(22, 26, 33, 0.11) !important;
    box-shadow: none !important;
}

body[data-theme="light"] .playlist-summary-label,
body[data-theme="light"] .playlist-summary-copy span,
body[data-theme="light"] .playlist-item-order,
body[data-theme="light"] .playlist-item-meta small,
body[data-theme="light"] .playlist-item-state {
    color: #68707d !important;
}

body[data-theme="light"] .playlist-summary-copy strong,
body[data-theme="light"] .playlist-summary-count,
body[data-theme="light"] .playlist-item-meta strong {
    color: #1d2433 !important;
}

body[data-theme="light"] .about-availability {
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

body[data-theme="light"] .about-availability .open-work,
body[data-theme="light"] .about-availability .open-work-note {
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
}

body[data-theme="light"] .about-availability .open-work-note {
    color: #68707d !important;
}

body[data-theme="light"] #skills .language-icon img[src*="affinityicon.png"] {
    filter: brightness(0) saturate(100%) !important;
    opacity: 1 !important;
}

body[data-theme="light"] .project-banner-pill {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(22, 26, 33, 0.14) !important;
    color: #1d2433 !important;
    box-shadow: 0 6px 16px rgba(18, 22, 28, 0.08) !important;
}

body[data-theme="light"] .playlist-close {
    background: rgba(255, 255, 255, 0.998) !important;
    border-color: rgba(22, 26, 33, 0.12) !important;
    color: #1d2433 !important;
    box-shadow: none !important;
}

body[data-theme="light"] .playlist-close:hover {
    background: rgba(22, 26, 33, 0.06) !important;
    border-color: rgba(22, 26, 33, 0.16) !important;
    color: #111827 !important;
}

body[data-theme="light"] #contact .contact-utility-bar,
body[data-theme="light"] .contact-utility-bar {
    background: rgba(255, 255, 255, 0.82) !important;
    border-color: rgba(22, 26, 33, 0.08) !important;
}

body[data-theme="light"] #contact .contact-policy-card,
body[data-theme="light"] .contact-policy-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.998), rgba(246, 245, 241, 0.994)) !important;
    border-color: rgba(22, 26, 33, 0.12) !important;
    box-shadow: 0 12px 28px rgba(18, 22, 28, 0.055) !important;
}

body[data-theme="light"] #contact .contact-policy-card:hover,
body[data-theme="light"] .contact-policy-card:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(243, 242, 238, 0.996)) !important;
    border-color: rgba(22, 26, 33, 0.16) !important;
}

body[data-theme="light"] #contact .contact-policy-card > i,
body[data-theme="light"] .contact-policy-card > i {
    background: rgba(22, 26, 33, 0.045) !important;
    border-color: rgba(22, 26, 33, 0.1) !important;
    color: #1d2433 !important;
}

body[data-theme="light"] .music-progress-container {
    height: 6px !important;
    background: rgba(22, 26, 33, 0.1) !important;
    border-radius: 999px !important;
    overflow: hidden !important;
}

body[data-theme="light"] .music-progress-container:hover {
    height: 6px !important;
    background: rgba(22, 26, 33, 0.14) !important;
}

body[data-theme="light"] .music-progress-bar {
    width: 100%;
    height: 100%;
    border-radius: 999px !important;
    background: transparent !important;
    position: relative;
}

body[data-theme="light"] .music-progress-fill {
    background: linear-gradient(90deg, #202633 0%, #3a4352 100%) !important;
    border-radius: 999px !important;
    transition: width 0.22s ease-out !important;
}

body[data-theme="light"] .music-progress-fill::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent) !important;
    animation: music-shimmer-light 2.6s ease-in-out infinite !important;
}

@keyframes music-shimmer-light {
    0% { transform: translateX(-115%); opacity: 0.35; }
    50% { opacity: 0.7; }
    100% { transform: translateX(115%); opacity: 0.35; }
}

body[data-theme="light"] #contact .contact-utility-bar {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body[data-theme="light"] #contact .contact-policy-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    width: min(100%, 560px);
    padding: 18px 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.998), rgba(246, 245, 241, 0.994)) !important;
    border: 1px solid rgba(22, 26, 33, 0.12) !important;
    box-shadow: 0 14px 30px rgba(18, 22, 28, 0.06) !important;
}

body[data-theme="light"] #contact .contact-policy-card:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(243, 242, 238, 0.996)) !important;
    border-color: rgba(22, 26, 33, 0.16) !important;
    box-shadow: 0 18px 34px rgba(18, 22, 28, 0.08) !important;
}

body[data-theme="light"] #contact .contact-policy-card > i {
    width: 54px;
    height: 54px;
    min-width: 54px;
    min-height: 54px;
    border-radius: 18px;
    background: rgba(22, 26, 33, 0.045) !important;
    border: 1px solid rgba(22, 26, 33, 0.1) !important;
    color: #1d2433 !important;
}

body[data-theme="light"] #contact .contact-policy-body {
    gap: 6px;
}

body[data-theme="light"] #contact .contact-policy-kicker {
    display: block;
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
    color: #6e7786 !important;
    letter-spacing: 0.14em;
}

body[data-theme="light"] #contact .contact-policy-description {
    color: #1d2433 !important;
    line-height: 1.55 !important;
}

body[data-theme="light"] .settings-toggle {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(22, 26, 33, 0.12) !important;
    color: #1d2433 !important;
    box-shadow: 0 10px 24px rgba(18, 22, 28, 0.08) !important;
}

body[data-theme="light"] .settings-toggle:hover {
    background: #1f2633 !important;
    border-color: #1f2633 !important;
    color: #ffffff !important;
    opacity: 1 !important;
    box-shadow: 0 14px 28px rgba(18, 22, 28, 0.18) !important;
}

body[data-theme="light"] .settings-shortcuts-intro,
body[data-theme="light"] .shortcut-title,
body[data-theme="light"] .shortcut-bind-btn,
body[data-theme="light"] .shortcut-reset-btn {
    color: #1d2433 !important;
}

body[data-theme="light"] .shortcut-desc {
    color: #68707d !important;
}

body[data-theme="light"] .shortcut-bind-btn,
body[data-theme="light"] .shortcut-reset-btn,
body[data-theme="light"] .settings-shortcuts-intro kbd {
    background: rgba(22, 26, 33, 0.045) !important;
    border-color: rgba(22, 26, 33, 0.12) !important;
}

body[data-theme="light"] .favorite-media img,
body[data-theme="light"] .music-album-art,
body[data-theme="light"] .album-art,
body[data-theme="light"] .mini-player-art,
body[data-theme="light"] .project-banner,
body[data-theme="light"] .project-modal-banner,
body[data-theme="light"] .avatar {
    filter: none !important;
}

body[data-theme="light"] .discord-chip,
body[data-theme="light"] .discord-chip.status,
body[data-theme="light"] .discord-chip.device,
body[data-theme="light"] .discord-action,
body[data-theme="light"] .discord-action:hover,
body[data-theme="light"] .presence-primary,
body[data-theme="light"] .presence-icon,
body[data-theme="light"] .activity-card,
body[data-theme="light"] .activity-card.spotify,
body[data-theme="light"] .activity-card.vscode,
body[data-theme="light"] .activity-app-icon,
body[data-theme="light"] .mini-player-control,
body[data-theme="light"] .mini-player-play,
body[data-theme="light"] .mini-player-header-btn,
body[data-theme="light"] .status-now {
    background: rgba(20, 20, 20, 0.045) !important;
    background-image: none !important;
    border-color: rgba(20, 20, 20, 0.12) !important;
    box-shadow: none !important;
    color: #1b1f27 !important;
}

body[data-theme="light"] .discord-action:hover,
body[data-theme="light"] .presence-tile:hover,
body[data-theme="light"] .activity-card:hover,
body[data-theme="light"] .mini-player-control:hover,
body[data-theme="light"] .mini-player-header-btn:hover {
    transform: none;
    background: rgba(20, 20, 20, 0.07) !important;
    border-color: rgba(20, 20, 20, 0.16) !important;
}

body[data-theme="light"] .presence-tile::after,
body[data-theme="light"] .favorite-media::after,
body[data-theme="light"] .favorite-media::before {
    opacity: 0;
    background: none !important;
}

body[data-theme="light"] .status-indicator {
    border-color: #f6f4ef;
    box-shadow: none !important;
}

body[data-theme="light"] .mini-player-progress {
    background: rgba(20, 20, 20, 0.14);
}

body[data-theme="light"] .mini-player-progress-fill {
    background: #262626;
}

body[data-theme="light"] .mini-player-volume,
body[data-theme="light"] .activity-type,
body[data-theme="light"] .activity-elapsed,
body[data-theme="light"] .weather-updated,
body[data-theme="light"] .weather-note,
body[data-theme="light"] .weather-current-meta,
body[data-theme="light"] .weather-subtitle,
body[data-theme="light"] .footer-copy,
body[data-theme="light"] .footer-legal-link,
body[data-theme="light"] .footer-legal-separator,
body[data-theme="light"] .loading-kicker,
body[data-theme="light"] .loading-status,
body[data-theme="light"] .wake-text,
body[data-theme="light"] .contact-note,
body[data-theme="light"] .contact-note-text {
    color: #6e727c !important;
}

body[data-theme="light"] .username,
body[data-theme="light"] .status-text,
body[data-theme="light"] .identity-line,
body[data-theme="light"] .discord-meta,
body[data-theme="light"] .presence-label,
body[data-theme="light"] .presence-main,
body[data-theme="light"] .activity-title,
body[data-theme="light"] .activity-artist,
body[data-theme="light"] .history-title,
body[data-theme="light"] .history-tag,
body[data-theme="light"] .track-name,
body[data-theme="light"] .track-artist,
body[data-theme="light"] .music-title,
body[data-theme="light"] .music-artist,
body[data-theme="light"] .mini-player-label,
body[data-theme="light"] .mini-player-title,
body[data-theme="light"] .mini-player-artist,
body[data-theme="light"] .weather-location,
body[data-theme="light"] .weather-temp,
body[data-theme="light"] .weather-range,
body[data-theme="light"] .weather-desc,
body[data-theme="light"] .weather-day-label,
body[data-theme="light"] .favorite-name,
body[data-theme="light"] .favorite-desc,
body[data-theme="light"] .favorite-link,
body[data-theme="light"] .project-title,
body[data-theme="light"] .project-subtitle,
body[data-theme="light"] .project-desc,
body[data-theme="light"] .project-modal-kicker,
body[data-theme="light"] .project-modal-intro h2,
body[data-theme="light"] #project-modal-subtitle,
body[data-theme="light"] .project-modal-description,
body[data-theme="light"] .project-modal-section-title,
body[data-theme="light"] .project-modal-highlight,
body[data-theme="light"] .project-modal-link,
body[data-theme="light"] .project-modal-metric-value,
body[data-theme="light"] .project-modal-metric-label,
body[data-theme="light"] .about-hero-card,
body[data-theme="light"] .about-panel-card,
body[data-theme="light"] .about-fact-card,
body[data-theme="light"] .settings-title,
body[data-theme="light"] .settings-item-title,
body[data-theme="light"] .settings-item-desc,
body[data-theme="light"] .settings-section-title,
body[data-theme="light"] .skills-hero-title,
body[data-theme="light"] .skills-hero-subtitle,
body[data-theme="light"] .skills-section-title,
body[data-theme="light"] .skills-search-label,
body[data-theme="light"] .skills-search-count,
body[data-theme="light"] .section-title,
body[data-theme="light"] .section-subtitle,
body[data-theme="light"] .section-lead,
body[data-theme="light"] #contact .contact-policy-text,
body[data-theme="light"] #contact .contact-policy-label,
body[data-theme="light"] #contact .contact-value,
body[data-theme="light"] #contact .contact-meta,
body[data-theme="light"] #contact .contact-action-hint,
body[data-theme="light"] #contact .social-title,
body[data-theme="light"] #contact .social-summary,
body[data-theme="light"] #contact .social-link-title,
body[data-theme="light"] #contact .social-link-meta,
body[data-theme="light"] #contact .social-link-arrow,
body[data-theme="light"] .site-notice-text,
body[data-theme="light"] .site-notice-dismiss {
    color: #1d2433 !important;
}

body[data-theme="light"] .presence-label,
body[data-theme="light"] .status-text,
body[data-theme="light"] .discord-meta,
body[data-theme="light"] .activity-artist,
body[data-theme="light"] .track-artist,
body[data-theme="light"] .music-artist,
body[data-theme="light"] .mini-player-artist,
body[data-theme="light"] .weather-range,
body[data-theme="light"] .weather-desc,
body[data-theme="light"] .project-subtitle,
body[data-theme="light"] .project-desc,
body[data-theme="light"] .project-modal-kicker,
body[data-theme="light"] #project-modal-subtitle,
body[data-theme="light"] .project-modal-description,
body[data-theme="light"] .project-modal-metric-label,
body[data-theme="light"] .settings-item-desc,
body[data-theme="light"] .settings-section-title,
body[data-theme="light"] .skills-hero-subtitle,
body[data-theme="light"] .skills-search-count,
body[data-theme="light"] #contact .contact-policy-label,
body[data-theme="light"] #contact .contact-meta,
body[data-theme="light"] #contact .contact-action-hint,
body[data-theme="light"] #contact .social-summary,
body[data-theme="light"] #contact .social-link-meta,
body[data-theme="light"] #contact .social-link-arrow,
body[data-theme="light"] .footer-copy,
body[data-theme="light"] .footer-legal-link {
    color: #68707d !important;
}

body[data-theme="light"] .discord-card,
body[data-theme="light"] .spotify-history-card,
body[data-theme="light"] .music-player-card,
body[data-theme="light"] .weather-card,
body[data-theme="light"] .favorites-card,
body[data-theme="light"] .project-card,
body[data-theme="light"] #contact .contact-item,
body[data-theme="light"] #contact .social-card,
body[data-theme="light"] #contact .social-link,
body[data-theme="light"] .project-modal,
body[data-theme="light"] .playlist-modal,
body[data-theme="light"] .contact-modal,
body[data-theme="light"] .external-redirect-modal,
body[data-theme="light"] .welcome-guide-modal,
body[data-theme="light"] .welcome-tour-modal,
body[data-theme="light"] .wakeup-content {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(247, 246, 242, 0.992)) !important;
    border-color: rgba(20, 20, 20, 0.11) !important;
}

body[data-theme="light"] .presence-primary {
    background: rgba(17, 17, 17, 0.04);
    border-color: rgba(17, 17, 17, 0.12);
    box-shadow: none;
}

body[data-theme="light"] .presence-icon,
body[data-theme="light"] .project-banner-pill,
body[data-theme="light"] .music-slot-indicator,
body[data-theme="light"] .favorite-badge,
body[data-theme="light"] .favorite-link,
body[data-theme="light"] #contact .social-link-icon {
    background: rgba(17, 17, 17, 0.045);
    color: #202020;
}

body[data-theme="light"] .activity-placeholder {
    background: rgba(17, 17, 17, 0.025);
    border-color: rgba(17, 17, 17, 0.09);
    color: #6a6a6a;
}

body[data-theme="light"] .site-notice-inner,
body[data-theme="light"] .fixed-nav,
body[data-theme="light"] .mobile-bottom-nav,
body[data-theme="light"] .footer-content,
body[data-theme="light"] .settings-toggle,
body[data-theme="light"] .mini-music-player,
body[data-theme="light"] .settings-modal,
body[data-theme="light"] .project-modal,
body[data-theme="light"] .playlist-modal,
body[data-theme="light"] .contact-modal,
body[data-theme="light"] .external-redirect-modal,
body[data-theme="light"] .welcome-guide-modal,
body[data-theme="light"] .welcome-tour-modal,
body[data-theme="light"] .wakeup-content {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.998), rgba(252, 251, 248, 0.996));
}

body[data-theme="light"] .footer-legal-link:hover,
body[data-theme="light"] .nav-link:hover,
body[data-theme="light"] .mobile-nav-link:hover {
    color: #1c1c1c;
}

/* Light theme final polish - keep this block last */
body[data-theme="light"] .site-notice-inner,
body[data-theme="light"] .fixed-nav,
body[data-theme="light"] .mobile-bottom-nav,
body[data-theme="light"] .footer-content,
body[data-theme="light"] .settings-toggle,
body[data-theme="light"] .mini-music-player,
body[data-theme="light"] .discord-card,
body[data-theme="light"] .discord-profile-card,
body[data-theme="light"] .presence-tile,
body[data-theme="light"] .music-player-card,
body[data-theme="light"] .spotify-history-card,
body[data-theme="light"] .weather-card,
body[data-theme="light"] .favorites-card,
body[data-theme="light"] .about-hero-card,
body[data-theme="light"] .about-panel-card,
body[data-theme="light"] .about-fact-card,
body[data-theme="light"] .project-card,
body[data-theme="light"] .settings-section,
body[data-theme="light"] .project-modal,
body[data-theme="light"] .playlist-modal,
body[data-theme="light"] .contact-modal,
body[data-theme="light"] .external-redirect-modal,
body[data-theme="light"] .welcome-guide-modal,
body[data-theme="light"] .welcome-tour-modal,
body[data-theme="light"] .wakeup-content,
body[data-theme="light"] #contact .contact-policy-link,
body[data-theme="light"] #contact .social-card,
body[data-theme="light"] #contact .social-link,
body[data-theme="light"] #contact .contact-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.998), rgba(251, 250, 246, 0.994));
    border-color: rgba(17, 17, 17, 0.1);
    box-shadow: 0 12px 28px rgba(15, 15, 15, 0.055);
}

body[data-theme="light"] .weather-day,
body[data-theme="light"] .discord-profile-card,
body[data-theme="light"] .presence-tile,
body[data-theme="light"] .project-modal-metric,
body[data-theme="light"] .project-modal-link,
body[data-theme="light"] .project-tag,
body[data-theme="light"] .project-modal-tag,
body[data-theme="light"] .project-banner-pill,
body[data-theme="light"] .music-slot-indicator,
body[data-theme="light"] .skills-pill,
body[data-theme="light"] .favorite-badge,
body[data-theme="light"] .favorite-link,
body[data-theme="light"] .settings-search-wrap,
body[data-theme="light"] .settings-reset-all,
body[data-theme="light"] .settings-action-btn,
body[data-theme="light"] .settings-category-btn,
body[data-theme="light"] .settings-segmented,
body[data-theme="light"] .section-search,
body[data-theme="light"] .section-search-empty,
body[data-theme="light"] #contact .social-link-icon,
body[data-theme="light"] .shortcut-item,
body[data-theme="light"] .status-badge,
body[data-theme="light"] .weather-day.weather-today,
body[data-theme="light"] .contact-item.donate-item {
    background: rgba(17, 17, 17, 0.028);
    border-color: rgba(17, 17, 17, 0.1);
    color: #1e1e1e;
    box-shadow: none;
}

body[data-theme="light"] .favorite-tile,
body[data-theme="light"] .favorite-meta {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.998), rgba(251, 250, 246, 0.994));
    border-color: rgba(17, 17, 17, 0.1);
    box-shadow: 0 12px 28px rgba(15, 15, 15, 0.055);
}

body[data-theme="light"] .favorite-media {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.998), rgba(248, 247, 243, 0.992));
    border-bottom-color: rgba(17, 17, 17, 0.08);
}

body[data-theme="light"] .favorite-media::after {
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.12) 72%, rgba(255, 255, 255, 0.28) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(245, 245, 241, 0.12) 52%, rgba(236, 236, 232, 0.26) 100%);
}

body[data-theme="light"] .favorite-media::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(245, 245, 241, 0.76) 100%);
}

body[data-theme="light"] .favorite-media img,
body[data-theme="light"] .music-album-art,
body[data-theme="light"] .album-art,
body[data-theme="light"] .mini-player-art,
body[data-theme="light"] .project-banner,
body[data-theme="light"] .project-modal-banner {
    filter: none;
}

body[data-theme="light"] .track-item {
    border-bottom-color: rgba(17, 17, 17, 0.06);
}

body[data-theme="light"] .track-item:hover,
body[data-theme="light"] .favorite-tile:hover,
body[data-theme="light"] .discord-card:hover,
body[data-theme="light"] .music-player-card:hover,
body[data-theme="light"] .presence-tile:hover,
body[data-theme="light"] .project-card:hover,
body[data-theme="light"] .weather-day:hover {
    background: rgba(17, 17, 17, 0.03);
    border-color: rgba(17, 17, 17, 0.14);
    box-shadow: 0 16px 30px rgba(15, 15, 15, 0.07);
}

body[data-theme="light"] .history-title,
body[data-theme="light"] .track-name,
body[data-theme="light"] .music-title,
body[data-theme="light"] .music-artist,
body[data-theme="light"] .mini-player-title,
body[data-theme="light"] .weather-temp,
body[data-theme="light"] .weather-location,
body[data-theme="light"] .favorite-name,
body[data-theme="light"] .project-title,
body[data-theme="light"] .project-modal-intro h2,
body[data-theme="light"] .project-modal-section-title,
body[data-theme="light"] .settings-title,
body[data-theme="light"] .settings-item-title,
body[data-theme="light"] .presence-main,
body[data-theme="light"] #contact .contact-policy-text,
body[data-theme="light"] #contact .contact-value,
body[data-theme="light"] #contact .social-title,
body[data-theme="light"] #contact .social-link-title {
    color: #191919;
}

body[data-theme="light"] .tagline,
body[data-theme="light"] .history-tag,
body[data-theme="light"] .track-artist,
body[data-theme="light"] .weather-range,
body[data-theme="light"] .weather-desc,
body[data-theme="light"] .settings-item-desc,
body[data-theme="light"] .settings-section-title,
body[data-theme="light"] .favorite-desc,
body[data-theme="light"] .mini-player-artist,
body[data-theme="light"] .mini-player-label,
body[data-theme="light"] .skills-search-count,
body[data-theme="light"] .project-subtitle,
body[data-theme="light"] .project-desc,
body[data-theme="light"] .project-modal-description,
body[data-theme="light"] #project-modal-subtitle,
body[data-theme="light"] .status-badge,
body[data-theme="light"] .loading-kicker,
body[data-theme="light"] .wake-text,
body[data-theme="light"] .loading-status,
body[data-theme="light"] #contact .social-summary,
body[data-theme="light"] #contact .social-link-meta,
body[data-theme="light"] #contact .contact-policy-label,
body[data-theme="light"] #contact .contact-meta,
body[data-theme="light"] #contact .contact-action-hint,
body[data-theme="light"] #contact .social-link-arrow,
body[data-theme="light"] .footer-copy,
body[data-theme="light"] .footer-legal-link {
    color: #676767;
}

body[data-theme="light"] .bar,
body[data-theme="light"] .weather-icon,
body[data-theme="light"] .project-modal-highlight i,
body[data-theme="light"] .settings-title i,
body[data-theme="light"] .skills-section-title i,
body[data-theme="light"] .status-now,
body[data-theme="light"] .donate-icon,
body[data-theme="light"] #contact .contact-policy-link i,
body[data-theme="light"] #contact .social-link-icon i {
    color: #202020;
}

body[data-theme="light"] .status-now {
    background: rgba(17, 17, 17, 0.06);
}

body[data-theme="light"] .favorite-desc code,
body[data-theme="light"] .settings-shortcuts-intro kbd {
    background: rgba(17, 17, 17, 0.045);
    border-color: rgba(17, 17, 17, 0.1);
    color: #1b1b1b;
}

body[data-theme="light"] .settings-title i,
body[data-theme="light"] .skills-section-title i,
body[data-theme="light"] .project-modal-highlight i,
body[data-theme="light"] .weather-icon {
    opacity: 0.88;
}

body[data-theme="light"] .discord-action,
body[data-theme="light"] .discord-action:hover,
body[data-theme="light"] .discord-chip.status,
body[data-theme="light"] .presence-primary {
    background: rgba(17, 17, 17, 0.045);
    border-color: rgba(17, 17, 17, 0.12);
    box-shadow: none;
    color: #1c1c1c;
    transform: none;
}

body[data-theme="light"] .discord-chip,
body[data-theme="light"] .discord-chip.device,
body[data-theme="light"] .discord-chip.status,
body[data-theme="light"] .presence-icon,
body[data-theme="light"] .project-banner-pill,
body[data-theme="light"] .music-slot-indicator,
body[data-theme="light"] .favorite-badge,
body[data-theme="light"] .favorite-link,
body[data-theme="light"] #contact .social-link-icon,
body[data-theme="light"] .status-badge {
    background: rgba(17, 17, 17, 0.045);
    border-color: rgba(17, 17, 17, 0.1);
    color: #1f1f1f;
}

body[data-theme="light"] .identity-line,
body[data-theme="light"] .discord-meta,
body[data-theme="light"] .presence-main,
body[data-theme="light"] .presence-label,
body[data-theme="light"] .status-text,
body[data-theme="light"] .tagline,
body[data-theme="light"] .history-title,
body[data-theme="light"] .history-tag,
body[data-theme="light"] .track-name,
body[data-theme="light"] .track-artist,
body[data-theme="light"] .music-title,
body[data-theme="light"] .music-artist,
body[data-theme="light"] .mini-player-title,
body[data-theme="light"] .mini-player-artist,
body[data-theme="light"] .weather-location,
body[data-theme="light"] .weather-temp,
body[data-theme="light"] .weather-range,
body[data-theme="light"] .weather-desc,
body[data-theme="light"] .project-title,
body[data-theme="light"] .project-subtitle,
body[data-theme="light"] .project-desc,
body[data-theme="light"] .project-modal-intro h2,
body[data-theme="light"] #project-modal-subtitle,
body[data-theme="light"] .project-modal-description,
body[data-theme="light"] .project-modal-section-title,
body[data-theme="light"] .project-modal-highlight,
body[data-theme="light"] .settings-title,
body[data-theme="light"] .settings-item-title,
body[data-theme="light"] .settings-item-desc,
body[data-theme="light"] .settings-section-title,
body[data-theme="light"] .skills-search-count,
body[data-theme="light"] .favorite-name,
body[data-theme="light"] .favorite-desc,
body[data-theme="light"] #contact .contact-policy-text,
body[data-theme="light"] #contact .contact-policy-label,
body[data-theme="light"] #contact .contact-value,
body[data-theme="light"] #contact .contact-meta,
body[data-theme="light"] #contact .contact-action-hint,
body[data-theme="light"] #contact .social-title,
body[data-theme="light"] #contact .social-summary,
body[data-theme="light"] #contact .social-link-title,
body[data-theme="light"] #contact .social-link-meta,
body[data-theme="light"] #contact .social-link-arrow,
body[data-theme="light"] .footer-copy,
body[data-theme="light"] .footer-legal-link {
    color: #232323;
}

body[data-theme="light"] .track-artist,
body[data-theme="light"] .mini-player-artist,
body[data-theme="light"] .weather-range,
body[data-theme="light"] .weather-desc,
body[data-theme="light"] .project-subtitle,
body[data-theme="light"] .project-desc,
body[data-theme="light"] .project-modal-description,
body[data-theme="light"] #project-modal-subtitle,
body[data-theme="light"] .settings-item-desc,
body[data-theme="light"] .settings-section-title,
body[data-theme="light"] .skills-search-count,
body[data-theme="light"] .favorite-desc,
body[data-theme="light"] #contact .contact-policy-label,
body[data-theme="light"] #contact .contact-meta,
body[data-theme="light"] #contact .contact-action-hint,
body[data-theme="light"] #contact .social-summary,
body[data-theme="light"] #contact .social-link-meta,
body[data-theme="light"] #contact .social-link-arrow,
body[data-theme="light"] .footer-copy,
body[data-theme="light"] .footer-legal-link {
    color: #666666;
}

/* Theme final overrides */
html,
body {
    background: var(--page-bg-image);
}

body[data-theme] .fixed-nav,
body[data-theme] .mobile-bottom-nav,
body[data-theme] .settings-toggle,
body[data-theme] .footer-content,
body[data-theme] .mini-music-player {
    background: var(--surface-panel);
    border-color: var(--border-soft);
    box-shadow: var(--shadow-floating);
}

body[data-theme] .discord-card,
body[data-theme] .music-player-card,
body[data-theme] .weather-card,
body[data-theme] .favorites-card,
body[data-theme] .contact-item,
body[data-theme] .social-card,
body[data-theme] .project-card,
body[data-theme] .about-hero-card,
body[data-theme] .about-panel-card,
body[data-theme] .about-fact-card,
body[data-theme] .skills-group,
body[data-theme] .skills-intro-card,
body[data-theme] .spotify-history-card,
body[data-theme] .settings-section,
body[data-theme] #contact .social-card,
body[data-theme] #contact .social-link,
body[data-theme] #contact .contact-policy-link {
    background: var(--surface-card);
    border-color: var(--border-soft);
    box-shadow: var(--shadow-panel);
}

body[data-theme] .settings-modal,
body[data-theme] .project-modal,
body[data-theme] .playlist-modal,
body[data-theme] .contact-modal,
body[data-theme] .external-redirect-modal,
body[data-theme] .welcome-guide-modal,
body[data-theme] .welcome-tour-modal,
body[data-theme] .wakeup-content {
    background: var(--surface-panel);
    border-color: var(--border-soft);
    box-shadow: var(--shadow-panel);
}

body[data-theme] .settings-search-wrap,
body[data-theme] .settings-reset-all,
body[data-theme] .settings-action-btn,
body[data-theme] .settings-category-btn,
body[data-theme] .settings-segmented,
body[data-theme] .section-search,
body[data-theme] .section-search-empty,
body[data-theme] .project-modal-metric,
body[data-theme] .project-modal-link,
body[data-theme] .project-modal-tag,
body[data-theme] .project-tag,
body[data-theme] .skills-pill,
body[data-theme] .music-slot-indicator,
body[data-theme] .project-banner-pill,
body[data-theme] .favorite-badge,
body[data-theme] .favorite-link,
body[data-theme] #contact .social-link-icon {
    background: var(--surface-input);
    border-color: var(--border-soft);
    color: var(--text-primary);
}

body[data-theme] .settings-header,
body[data-theme] .settings-navbar,
body[data-theme] .project-modal-head {
    background: var(--surface-sticky);
}

body[data-theme] .settings-title,
body[data-theme] .settings-item-title,
body[data-theme] .project-title,
body[data-theme] .project-modal-intro h2,
body[data-theme] .weather-location,
body[data-theme] .favorite-name,
body[data-theme] #contact .social-title,
body[data-theme] #contact .social-link-title,
body[data-theme] #contact .contact-policy-text {
    color: var(--text-primary);
}

body[data-theme] .tagline,
body[data-theme] .settings-item-desc,
body[data-theme] .project-subtitle,
body[data-theme] .project-desc,
body[data-theme] .project-modal-description,
body[data-theme] #project-modal-subtitle,
body[data-theme] .favorite-desc,
body[data-theme] #contact .social-summary,
body[data-theme] #contact .social-link-meta,
body[data-theme] #contact .contact-policy-label,
body[data-theme] #contact .contact-meta,
body[data-theme] #contact .contact-action-hint,
body[data-theme] #contact .social-link-arrow,
body[data-theme] .footer-legal-link,
body[data-theme] .footer-copy {
    color: var(--text-secondary);
}

body[data-theme="light"] #customCursor {
    border-color: rgba(16, 16, 16, 0.48);
    background: rgba(16, 16, 16, 0.06);
    box-shadow: 0 0 0 1px rgba(16, 16, 16, 0.08), 0 8px 18px rgba(0, 0, 0, 0.12);
}

body[data-theme="light"] #customCursor::after {
    background: rgba(16, 16, 16, 0.86);
}

body[data-theme="light"] #customCursor.text {
    background: #111111;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.18);
}

body[data-theme="light"] .favorite-tile,
body[data-theme="light"] .favorite-meta {
    background: var(--surface-card);
}

body[data-theme="light"] .favorite-media {
    background: linear-gradient(180deg, rgba(245, 245, 240, 0.98), rgba(236, 236, 232, 0.98));
    border-bottom-color: var(--border-soft);
}

body[data-theme="light"] .favorite-media img {
    filter: grayscale(1) contrast(1.04) brightness(0.98);
}

body[data-theme="light"] .favorite-media::after,
body[data-theme="light"] .favorite-media::before {
    opacity: 0.18;
}

body[data-theme="light"] .favorite-tile:hover .favorite-media img {
    filter: grayscale(1) contrast(1.04) brightness(1);
}

body[data-theme="light"] .favorite-badge,
body[data-theme="light"] .favorite-link {
    backdrop-filter: none;
}

body[data-theme="light"] .project-banner,
body[data-theme="light"] .project-modal-banner {
    filter: grayscale(1) contrast(1.02) brightness(1.02);
}

body[data-theme="light"] .settings-toggle,
body[data-theme="light"] .mini-music-player,
body[data-theme="light"] .fixed-nav,
body[data-theme="light"] .mobile-bottom-nav,
body[data-theme="light"] .settings-modal,
body[data-theme="light"] .project-modal,
body[data-theme="light"] .playlist-modal,
body[data-theme="light"] .contact-modal,
body[data-theme="light"] .external-redirect-modal,
body[data-theme="light"] .welcome-guide-modal,
body[data-theme="light"] .welcome-tour-modal,
body[data-theme="light"] .wakeup-content {
    backdrop-filter: none;
}

body[data-theme="light"] .wakeup-overlay,
body[data-theme="light"] .settings-overlay,
body[data-theme="light"] .project-overlay,
body[data-theme="light"] .playlist-overlay,
body[data-theme="light"] .contact-overlay,
body[data-theme="light"] .external-redirect-overlay,
body[data-theme="light"] .welcome-guide-overlay,
body[data-theme="light"] .welcome-tour-overlay {
    background: var(--surface-overlay);
}

body[data-theme="light"] .footer-legal-link {
    border-left-color: var(--border-soft);
}

body[data-theme="light"] .site-notice-inner {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(249, 247, 243, 0.99));
    border-color: rgba(17, 17, 17, 0.14);
    box-shadow: 0 10px 26px rgba(15, 15, 15, 0.09);
    color: #2b2b2b;
}

body[data-theme="light"] .site-notice-inner i,
body[data-theme="light"] .site-notice-dismiss {
    color: #2b2b2b;
}

body[data-theme="light"] .site-notice-dismiss {
    background: rgba(17, 17, 17, 0.035);
    border-color: rgba(17, 17, 17, 0.12);
}

body[data-theme="light"] .site-notice-dismiss:hover {
    background: rgba(17, 17, 17, 0.07);
    color: #111111;
}

body[data-theme="light"] .fixed-nav,
body[data-theme="light"] .mobile-bottom-nav,
body[data-theme="light"] .settings-toggle,
body[data-theme="light"] .footer-content,
body[data-theme="light"] .mini-music-player {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(250, 249, 245, 0.995));
    border-color: rgba(17, 17, 17, 0.1);
}

body[data-theme="light"] .nav-link.active,
body[data-theme="light"] .mobile-nav-link.active,
body[data-theme="light"] .settings-category-btn.active,
body[data-theme="light"] .settings-segmented-btn.active,
body[data-theme="light"] .project-action-primary,
body[data-theme="light"] .project-modal-kicker,
body[data-theme="light"] .settings-switch input:checked + .settings-slider {
    background: rgba(17, 17, 17, 0.08);
    border-color: rgba(17, 17, 17, 0.18);
    color: #111111;
}

body[data-theme="light"] .nav-link:hover,
body[data-theme="light"] .mobile-nav-link:hover,
body[data-theme="light"] .settings-category-btn:hover,
body[data-theme="light"] .settings-reset-all:hover,
body[data-theme="light"] .settings-action-btn:hover,
body[data-theme="light"] .project-modal-link:hover,
body[data-theme="light"] .project-action:hover,
body[data-theme="light"] .mini-player-header-btn:hover,
body[data-theme="light"] .mini-player-control:hover,
body[data-theme="light"] .favorite-link:hover {
    background: rgba(17, 17, 17, 0.055);
    border-color: rgba(17, 17, 17, 0.16);
    color: #111111;
    transform: none;
}

body[data-theme="light"] .discord-card,
body[data-theme="light"] .discord-profile-card,
body[data-theme="light"] .presence-tile,
body[data-theme="light"] .music-player-card,
body[data-theme="light"] .spotify-history-card,
body[data-theme="light"] .weather-card,
body[data-theme="light"] .favorites-card,
body[data-theme="light"] .about-hero-card,
body[data-theme="light"] .about-panel-card,
body[data-theme="light"] .about-fact-card,
body[data-theme="light"] .project-card,
body[data-theme="light"] .contact-item,
body[data-theme="light"] #contact .contact-policy-link,
body[data-theme="light"] #contact .social-link,
body[data-theme="light"] .settings-section,
body[data-theme="light"] .project-modal,
body[data-theme="light"] .playlist-modal,
body[data-theme="light"] .contact-modal,
body[data-theme="light"] .external-redirect-modal,
body[data-theme="light"] .welcome-guide-modal,
body[data-theme="light"] .welcome-tour-modal,
body[data-theme="light"] .wakeup-content {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.998), rgba(251, 250, 246, 0.994));
    border-color: rgba(17, 17, 17, 0.1);
    box-shadow: 0 12px 28px rgba(15, 15, 15, 0.055);
}

body[data-theme="light"] .discord-card::before,
body[data-theme="light"] .music-player-card::before,
body[data-theme="light"] .presence-tile::after,
body[data-theme="light"] .project-banner::after,
body[data-theme="light"] .project-modal-banner::after {
    opacity: 0.12;
}

body[data-theme="light"] .discord-card:hover,
body[data-theme="light"] .music-player-card:hover,
body[data-theme="light"] .presence-tile:hover,
body[data-theme="light"] .project-card:hover,
body[data-theme="light"] .weather-day:hover,
body[data-theme="light"] .favorite-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(17, 17, 17, 0.14);
    box-shadow: 0 16px 30px rgba(15, 15, 15, 0.07);
}

body[data-theme="light"] .discord-profile-card,
body[data-theme="light"] .presence-tile,
body[data-theme="light"] .weather-day,
body[data-theme="light"] .project-modal-metric,
body[data-theme="light"] .project-modal-link,
body[data-theme="light"] .project-tag,
body[data-theme="light"] .project-modal-tag,
body[data-theme="light"] .project-banner-pill,
body[data-theme="light"] .music-slot-indicator,
body[data-theme="light"] .skills-pill,
body[data-theme="light"] .favorite-badge,
body[data-theme="light"] .favorite-link,
body[data-theme="light"] .settings-search-wrap,
body[data-theme="light"] .settings-reset-all,
body[data-theme="light"] .settings-action-btn,
body[data-theme="light"] .settings-category-btn,
body[data-theme="light"] .settings-segmented,
body[data-theme="light"] .section-search,
body[data-theme="light"] .section-search-empty,
body[data-theme="light"] #contact .social-link-icon,
body[data-theme="light"] .shortcut-item,
body[data-theme="light"] .status-badge {
    background: rgba(17, 17, 17, 0.028);
    border-color: rgba(17, 17, 17, 0.1);
    color: #1e1e1e;
    box-shadow: none;
}

body[data-theme="light"] .presence-label,
body[data-theme="light"] .weather-day-label,
body[data-theme="light"] .project-subtitle,
body[data-theme="light"] .project-desc,
body[data-theme="light"] .settings-item-desc,
body[data-theme="light"] .settings-section-title,
body[data-theme="light"] .weather-range,
body[data-theme="light"] .weather-desc,
body[data-theme="light"] .track-artist,
body[data-theme="light"] .favorite-desc,
body[data-theme="light"] .mini-player-artist,
body[data-theme="light"] .mini-player-label,
body[data-theme="light"] .skills-search-count,
body[data-theme="light"] .tagline,
body[data-theme="light"] .weather-updated,
body[data-theme="light"] .weather-note,
body[data-theme="light"] .weather-current-meta,
body[data-theme="light"] .status-badge,
body[data-theme="light"] .loading-kicker,
body[data-theme="light"] .wake-text,
body[data-theme="light"] .loading-status {
    color: #6a6a6a;
}

body[data-theme="light"] .presence-main,
body[data-theme="light"] .track-name,
body[data-theme="light"] .music-title,
body[data-theme="light"] .music-artist,
body[data-theme="light"] .mini-player-title,
body[data-theme="light"] .weather-temp,
body[data-theme="light"] .history-title,
body[data-theme="light"] .settings-title,
body[data-theme="light"] .settings-item-title,
body[data-theme="light"] .project-title,
body[data-theme="light"] .project-modal-intro h2,
body[data-theme="light"] .favorite-name,
body[data-theme="light"] .weather-location,
body[data-theme="light"] .project-modal-section-title,
body[data-theme="light"] #contact .social-title,
body[data-theme="light"] #contact .social-link-title,
body[data-theme="light"] #contact .contact-value,
body[data-theme="light"] #contact .contact-policy-text {
    color: #191919;
}

body[data-theme="light"] .spotify-history-card,
body[data-theme="light"] .spotify-history-card::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.998), rgba(250, 249, 245, 0.994));
}

body[data-theme="light"] .history-tag,
body[data-theme="light"] .status-now,
body[data-theme="light"] .bar,
body[data-theme="light"] .weather-icon,
body[data-theme="light"] .project-modal-highlight i,
body[data-theme="light"] .settings-title i,
body[data-theme="light"] .skills-section-title i,
body[data-theme="light"] #contact .contact-policy-link i,
body[data-theme="light"] #contact .social-link-icon i,
body[data-theme="light"] .donate-icon {
    color: #202020;
}

body[data-theme="light"] .status-now {
    background: rgba(17, 17, 17, 0.06);
    box-shadow: none;
}

body[data-theme="light"] .track-item {
    border-bottom-color: rgba(17, 17, 17, 0.06);
}

body[data-theme="light"] .track-item:hover {
    padding-left: 8px;
    background: rgba(17, 17, 17, 0.03);
}

body[data-theme="light"] .album-art,
body[data-theme="light"] .language-icon,
body[data-theme="light"] .music-album-container,
body[data-theme="light"] .mini-player-art {
    background: rgba(17, 17, 17, 0.03);
    border-color: rgba(17, 17, 17, 0.1);
    box-shadow: none;
}

body[data-theme="light"] .music-album-art,
body[data-theme="light"] .album-art,
body[data-theme="light"] .mini-player-art,
body[data-theme="light"] .favorite-media img {
    filter: grayscale(1) contrast(1.02) brightness(0.98);
}

body[data-theme="light"] .favorite-tile,
body[data-theme="light"] .favorite-meta,
body[data-theme="light"] .favorite-media,
body[data-theme="light"] .favorite-badge,
body[data-theme="light"] .favorite-link {
    --fav-accent-rgb: 17 17 17;
}

body[data-theme="light"] .favorite-media {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.998), rgba(248, 247, 243, 0.992));
    border-bottom-color: rgba(17, 17, 17, 0.08);
}

body[data-theme="light"] .favorite-media::after {
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.12) 72%, rgba(255, 255, 255, 0.28) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(245, 245, 241, 0.12) 52%, rgba(236, 236, 232, 0.26) 100%);
}

body[data-theme="light"] .favorite-media::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(245, 245, 241, 0.76) 100%);
}

body[data-theme="light"] .favorite-desc code,
body[data-theme="light"] .settings-shortcuts-intro kbd {
    background: rgba(17, 17, 17, 0.045);
    border-color: rgba(17, 17, 17, 0.1);
    color: #1b1b1b;
}

body[data-theme="light"] .weather-day.weather-today,
body[data-theme="light"] .contact-item.donate-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.998), rgba(246, 245, 241, 0.992));
    border-color: rgba(17, 17, 17, 0.14);
    box-shadow: 0 10px 22px rgba(15, 15, 15, 0.05);
}

body[data-theme="light"] .contact-item.donate-item::before {
    background: linear-gradient(90deg, transparent, rgba(17, 17, 17, 0.1), transparent);
}

body[data-theme="light"] .wakeup-overlay {
    background: linear-gradient(180deg, rgba(255, 252, 248, 0.99), rgba(247, 245, 241, 0.99));
}

body[data-theme="light"] .loading-ring {
    border-color: rgba(17, 17, 17, 0.08);
    border-top-color: rgba(17, 17, 17, 0.3);
}

body[data-theme="light"] .pulse-dot {
    background: #1b1b1b;
}

/* Theme system rebuild */
body[data-theme] {
    color: var(--text-primary);
}

body[data-theme] .fixed-nav,
body[data-theme] .mobile-bottom-nav,
body[data-theme] .settings-toggle,
body[data-theme] .footer-content,
body[data-theme] .mini-music-player,
body[data-theme] .contact-modal,
body[data-theme] .external-redirect-modal,
body[data-theme] .playlist-modal,
body[data-theme] .project-modal,
body[data-theme] .settings-modal,
body[data-theme] .welcome-guide-modal,
body[data-theme] .welcome-tour-modal {
    background: var(--surface-panel);
    border-color: var(--border-soft);
    box-shadow: var(--shadow-panel);
}

body[data-theme] .discord-card,
body[data-theme] .music-player-card,
body[data-theme] .weather-card,
body[data-theme] .favorites-card,
body[data-theme] .contact-item,
body[data-theme] .social-card,
body[data-theme] .project-card,
body[data-theme] .about-hero-card,
body[data-theme] .about-panel-card,
body[data-theme] .about-fact-card,
body[data-theme] .skills-group,
body[data-theme] .skills-intro-card,
body[data-theme] .spotify-history-card,
body[data-theme] .weather-day,
body[data-theme] .shortcut-item,
body[data-theme] .settings-section {
    background: var(--surface-card);
    border-color: var(--border-soft);
    box-shadow: var(--shadow-panel);
}

body[data-theme] .project-modal-metric,
body[data-theme] .project-modal-link,
body[data-theme] .project-modal-tag,
body[data-theme] .project-tag,
body[data-theme] .about-panel-focus,
body[data-theme] .skills-pill,
body[data-theme] .music-slot-indicator,
body[data-theme] .project-banner-pill,
body[data-theme] .favorite-badge,
body[data-theme] .weather-chip,
body[data-theme] .discord-chip,
body[data-theme] .settings-search-wrap,
body[data-theme] .settings-reset-all,
body[data-theme] .settings-action-btn,
body[data-theme] .settings-category-btn,
body[data-theme] .settings-segmented,
body[data-theme] .section-search,
body[data-theme] .section-search-empty {
    background: var(--surface-input);
    border-color: var(--border-soft);
    color: var(--text-primary);
}

body[data-theme] .nav-link,
body[data-theme] .mobile-nav-link,
body[data-theme] .settings-item-title,
body[data-theme] .settings-title,
body[data-theme] .project-modal-intro h2,
body[data-theme] .project-title,
body[data-theme] .weather-location,
body[data-theme] .about-hero-card h2,
body[data-theme] .language-name,
body[data-theme] .skills-section-title,
body[data-theme] .project-modal-section-title,
body[data-theme] .project-modal-link,
body[data-theme] .footer-legal-link,
body[data-theme] .favorite-name {
    color: var(--text-primary);
}

body[data-theme] .tagline,
body[data-theme] .settings-item-desc,
body[data-theme] .settings-section-title,
body[data-theme] .settings-search-empty,
body[data-theme] .project-subtitle,
body[data-theme] .project-desc,
body[data-theme] .project-modal-description,
body[data-theme] #project-modal-subtitle,
body[data-theme] .project-modal-highlight,
body[data-theme] .weather-subtitle,
body[data-theme] .weather-updated,
body[data-theme] .weather-note,
body[data-theme] .weather-current-meta,
body[data-theme] .skills-search-count,
body[data-theme] .skills-header .tagline,
body[data-theme] .shortcut-desc,
body[data-theme] .favorite-desc,
body[data-theme] .footer-copy,
body[data-theme] .footer-separator,
body[data-theme] #contact .social-link-meta,
body[data-theme] #contact .contact-policy-label,
body[data-theme] #contact .contact-meta,
body[data-theme] #contact .contact-action-hint,
body[data-theme] #contact .social-link-arrow {
    color: var(--text-secondary);
}

body[data-theme] .settings-close,
body[data-theme] .project-modal-close,
body[data-theme] .mini-player-header-btn,
body[data-theme] .mini-player-control,
body[data-theme] .mobile-nav-link,
body[data-theme] .nav-link,
body[data-theme] .settings-segmented-btn {
    color: var(--text-primary);
}

body[data-theme] .section-search input,
body[data-theme] #settings-search,
body[data-theme] .settings-search-wrap input {
    color: var(--text-primary);
}

body[data-theme] .section-search input::placeholder,
body[data-theme] #settings-search::placeholder {
    color: var(--text-secondary);
}

body[data-theme] .section-search:focus-within,
body[data-theme] .settings-search-wrap:focus-within {
    border-color: rgb(var(--accent) / 0.34);
    box-shadow: 0 0 0 2px rgb(var(--accent) / 0.08);
}

body[data-theme] .nav-link.active,
body[data-theme] .mobile-nav-link.active,
body[data-theme] .settings-category-btn.active,
body[data-theme] .settings-segmented-btn.active,
body[data-theme] .project-action-primary,
body[data-theme] .project-modal-kicker,
body[data-theme] .shortcut-bind-btn:hover,
body[data-theme] .settings-switch input:checked + .settings-slider {
    background: rgb(var(--accent) / 0.12);
    border-color: rgb(var(--accent) / 0.22);
    color: var(--text-primary);
    box-shadow: none;
}

body[data-theme] .settings-category-btn[aria-selected="true"],
body[data-theme] .settings-segmented-btn.active {
    box-shadow: 0 0 0 1px rgb(var(--accent) / 0.16) inset;
}

body[data-theme] .settings-slider {
    background: var(--surface-soft);
    border-color: var(--border-strong);
}

body[data-theme] .settings-slider::before {
    background: var(--text-primary);
}

body[data-theme] .settings-range,
body[data-theme] .mini-player-volume input[type="range"] {
    accent-color: rgb(var(--accent));
}

body[data-theme] .contact-overlay,
body[data-theme] .external-redirect-overlay,
body[data-theme] .playlist-overlay,
body[data-theme] .project-overlay,
body[data-theme] .settings-overlay,
body[data-theme] .welcome-guide-overlay,
body[data-theme] .welcome-tour-overlay {
    background: var(--surface-overlay);
}

body[data-theme] .settings-header,
body[data-theme] .settings-navbar,
body[data-theme] .project-modal-head {
    background: var(--surface-sticky);
    border-color: var(--border-soft);
}

body[data-theme] .name {
    color: var(--text-primary);
}

body[data-theme="dark"] .name {
    background: linear-gradient(135deg, #ffffff 0%, #95a1bf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body[data-theme="light"] .name {
    background: none;
    -webkit-text-fill-color: currentColor;
    filter: none;
}

body[data-theme="light"] .starfield,
body[data-theme="light"] .star {
    display: none !important;
}

body[data-theme="light"] .starfield {
    background: none;
}

body[data-theme="light"] .fixed-nav,
body[data-theme="light"] .mobile-bottom-nav,
body[data-theme="light"] .settings-toggle,
body[data-theme="light"] .mini-music-player,
body[data-theme="light"] .footer-content,
body[data-theme="light"] .settings-modal,
body[data-theme="light"] .project-modal,
body[data-theme="light"] .playlist-modal,
body[data-theme="light"] .contact-modal,
body[data-theme="light"] .external-redirect-modal,
body[data-theme="light"] .welcome-guide-modal,
body[data-theme="light"] .welcome-tour-modal,
body[data-theme="light"] .wakeup-content {
    backdrop-filter: none;
}

body[data-theme="light"] .wakeup-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 245, 240, 0.98));
}

body[data-theme="light"] .wakeup-content {
    background: var(--surface-card);
    border-color: var(--border-soft);
    box-shadow: var(--shadow-panel);
}

body[data-theme="light"] .loading-orb {
    background: linear-gradient(135deg, rgba(12, 12, 12, 0.96), rgba(72, 72, 72, 0.86));
    box-shadow: none;
}

body[data-theme="light"] .project-banner,
body[data-theme="light"] .project-modal-banner {
    filter: saturate(0.08) contrast(1.02) brightness(1.03);
}

body[data-theme="light"] .settings-title i,
body[data-theme="light"] .skills-section-title i,
body[data-theme="light"] .project-modal-highlight i,
body[data-theme="light"] #contact .contact-policy-link i,
body[data-theme="light"] #contact .social-link-icon i {
    color: var(--text-primary);
}

body[data-theme="light"] .favorite-tile,
body[data-theme="light"] .project-action,
body[data-theme="light"] .settings-action-btn,
body[data-theme="light"] .settings-reset-all,
body[data-theme="light"] .settings-close,
body[data-theme="light"] .project-modal-close,
body[data-theme="light"] .mini-player-header-btn,
body[data-theme="light"] .mini-player-control {
    box-shadow: none;
}

body[data-theme="light"] .mini-player-progress {
    background: rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .mini-player-progress-fill {
    background: linear-gradient(90deg, rgba(18, 18, 18, 0.94), rgba(64, 64, 64, 0.78));
}

body[data-theme="light"] .footer-legal-link {
    border-left-color: var(--border-soft);
}

body[data-theme="light"] .external-redirect-modal {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.998), rgba(244, 239, 230, 0.996)) !important;
    border-color: rgba(0, 0, 0, 0.14) !important;
    box-shadow: 0 18px 36px rgba(18, 18, 18, 0.12) !important;
}

body[data-theme="light"] .external-redirect-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .external-redirect-title,
body[data-theme="light"] .external-redirect-note,
body[data-theme="light"] .external-redirect-note.small,
body[data-theme="light"] .external-redirect-label,
body[data-theme="light"] .external-redirect-domain,
body[data-theme="light"] .external-redirect-url,
body[data-theme="light"] .external-redirect-checkbox {
    color: #111111 !important;
}

body[data-theme="light"] .external-redirect-close {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
    color: #111111;
}

body[data-theme="light"] .external-redirect-close:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
    color: #000000;
}

body[data-theme="light"] .external-redirect-note,
body[data-theme="light"] .external-redirect-destination,
body[data-theme="light"] .external-redirect-options {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .external-redirect-label {
    color: rgba(0, 0, 0, 0.66) !important;
}

body[data-theme="light"] .external-redirect-domain {
    color: #000000 !important;
}

body[data-theme="light"] .external-redirect-url {
    color: rgba(0, 0, 0, 0.82) !important;
}

body[data-theme="light"] .external-redirect-divider {
    background: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .external-redirect-checkbox input {
    accent-color: #111111;
}

body[data-theme="light"] .external-redirect-btn {
    border-color: rgba(0, 0, 0, 0.14);
}

body[data-theme="light"] .external-redirect-btn.ghost {
    background: rgba(255, 255, 255, 0.92);
    color: #111111;
}

body[data-theme="light"] .external-redirect-btn.ghost:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.2);
}

body[data-theme="light"] .external-redirect-btn.primary {
    background: linear-gradient(180deg, rgba(24, 24, 24, 0.98), rgba(0, 0, 0, 0.94));
    color: #ffffff;
    border-color: rgba(0, 0, 0, 0.9);
}

body[data-theme="light"] .external-redirect-btn.primary:hover {
    background: linear-gradient(180deg, rgba(16, 16, 16, 0.98), rgba(0, 0, 0, 0.98));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

/* Contact Final System Override */
#contact .content {
    max-width: 820px;
}

#contact .contact-utility-bar {
    margin-top: 18px;
}

#contact .contact-policy-link {
    width: 100%;
    padding: 18px 22px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(12, 14, 20, 0.94), rgba(8, 10, 15, 0.98));
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

#contact .contact-policy-link i {
    color: #d8ddec;
}

#contact .contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

#contact .contact-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 118px;
    padding: 18px 24px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(11, 13, 18, 0.96), rgba(8, 10, 14, 0.98));
    box-shadow: none;
}

#contact .contact-item::before,
#contact .donate-accent,
#contact .contact-meta,
#contact .contact-action-hint,
#contact .social-card-header,
#contact .social-link-meta,
#contact .social-link-arrow {
    display: none;
}

#contact .contact-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
}

#contact .contact-item-main {
    gap: 16px;
}

#contact .contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#contact .contact-label {
    margin-bottom: 6px;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: #959eb2;
}

#contact .contact-value {
    font-size: clamp(1.4rem, 1.5vw, 1.8rem);
    line-height: 1.1;
    font-weight: 700;
}

#contact .contact-item-trailing {
    margin-left: 10px;
}

#contact .contact-item-arrow {
    font-size: 18px;
    color: #a9b1c3;
}

#contact .social-card {
    margin-top: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

#contact .social-links-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

#contact .social-link {
    min-height: 96px;
    padding: 0 20px;
    justify-content: flex-start;
    align-items: center;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(12, 14, 20, 0.94), rgba(8, 10, 15, 0.98));
    box-shadow: none;
    gap: 14px;
}

#contact .social-link:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.16);
    background: linear-gradient(180deg, rgba(14, 16, 22, 0.96), rgba(9, 11, 16, 0.99));
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.16);
}

#contact .social-link-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#contact .social-link-icon i {
    font-size: 20px;
}

#contact .social-link-copy {
    flex: 1;
}

#contact .social-link-title {
    font-size: 14px;
    line-height: 1.2;
}

/* Contact Final System */
#contact .content {
    max-width: 820px;
}

#contact .contact-utility-bar {
    margin-top: 18px;
}

#contact .contact-policy-link {
    width: 100%;
    padding: 18px 22px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(12, 14, 20, 0.94), rgba(8, 10, 15, 0.98));
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

#contact .contact-policy-link i {
    color: #d8ddec;
}

#contact .contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

#contact .contact-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 118px;
    padding: 18px 24px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(11, 13, 18, 0.96), rgba(8, 10, 14, 0.98));
    box-shadow: none;
}

#contact .contact-item::before,
#contact .donate-accent {
    display: none;
}

#contact .contact-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.18);
}

#contact .contact-item-main {
    gap: 16px;
}

#contact .contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#contact .contact-label {
    margin-bottom: 6px;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: #959eb2;
}

#contact .contact-value {
    font-size: clamp(1.4rem, 1.5vw, 1.8rem);
    line-height: 1.1;
    font-weight: 700;
}

#contact .contact-meta,
#contact .contact-action-hint {
    display: none;
}

#contact .contact-item-trailing {
    margin-left: 10px;
}

#contact .contact-item-arrow {
    font-size: 18px;
    color: #a9b1c3;
}

#contact .contact-item.donate-item {
    border-color: rgba(255, 255, 255, 0.12);
}

#contact .social-card {
    margin-top: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

#contact .social-card-header {
    display: none;
}

#contact .social-links-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

#contact .social-link {
    min-height: 96px;
    padding: 0 20px;
    justify-content: flex-start;
    align-items: center;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(12, 14, 20, 0.94), rgba(8, 10, 15, 0.98));
    box-shadow: none;
    gap: 14px;
}

#contact .social-link:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.16);
    background: linear-gradient(180deg, rgba(14, 16, 22, 0.96), rgba(9, 11, 16, 0.99));
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.16);
}

#contact .social-link-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#contact .social-link-icon i {
    font-size: 20px;
}

#contact .social-link-copy {
    flex: 1;
}

#contact .social-link-title {
    font-size: 14px;
    line-height: 1.2;
}

#contact .social-link-arrow,
#contact .social-link-meta {
    display: none;
}

/* Contact Refresh */
.contact-utility-bar {
    display: flex;
    justify-content: center;
    margin: 20px auto 0;
    max-width: 760px;
}

.contact-policy-link {
    width: min(100%, 720px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    text-decoration: none;
    color: #eff3fb;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid rgba(112, 143, 255, 0.22);
    background:
        radial-gradient(circle at left top, rgba(var(--accent) / 0.18), transparent 40%),
        linear-gradient(145deg, rgba(10, 14, 26, 0.92), rgba(5, 7, 14, 0.98));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-policy-link:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--accent) / 0.44);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(var(--accent) / 0.1);
}

.contact-policy-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.contact-policy-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #aab3c7;
}

.contact-policy-text {
    font-size: 14px;
    line-height: 1.6;
    color: #eef2f9;
}

.contact-policy-link i {
    font-size: 20px;
    color: rgb(var(--accent));
    flex-shrink: 0;
}

.contact-item {
    justify-content: space-between;
}

.contact-item-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.contact-item-trailing {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 12px;
    flex-shrink: 0;
}

.contact-meta {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.55;
    color: #98a4bb;
}

.contact-action-hint {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #95a0b7;
}

.social-card {
    background:
        radial-gradient(circle at top right, rgba(var(--accent) / 0.14), transparent 34%),
        linear-gradient(145deg, rgba(10, 14, 26, 0.92), rgba(4, 6, 12, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.social-card-header {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 18px;
    align-items: end;
    margin-bottom: 22px;
}

.social-card-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9aa6bd;
}

.social-title {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.2rem, 1.8vw, 1.65rem);
    line-height: 1.15;
    color: #ffffff;
}

.social-summary {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #9ca6ba;
    text-align: left;
}

.social-links-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.social-link {
    min-height: 88px;
    justify-content: flex-start;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(12, 16, 28, 0.94), rgba(7, 9, 16, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.09);
    gap: 14px;
    text-align: left;
}

.social-link:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--accent) / 0.34);
    background: linear-gradient(180deg, rgba(15, 20, 34, 0.98), rgba(8, 10, 18, 0.98));
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.24);
}

.social-link-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}

.social-link-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.social-link-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.social-link-meta {
    font-size: 12px;
    line-height: 1.5;
    color: #98a2b5;
}

.social-link-arrow {
    font-size: 13px;
    color: #8e99ae;
    transition: transform 0.25s ease, color 0.25s ease;
}

.social-link:hover .social-link-arrow {
    color: rgb(var(--accent));
    transform: translateX(3px);
}

.footer-legal-link {
    color: #b8c2d8;
    text-decoration: none;
    margin-left: 14px;
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    transition: color 0.2s ease;
}

.footer-legal-link:hover {
    color: #ffffff;
}

.spotify-history-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% -20%, rgba(30, 215, 96, 0.28), transparent 46%);
    pointer-events: none;
}

.spotify-history-card:hover {
    border-color: rgba(30, 215, 96, 0.5);
    background: linear-gradient(155deg, rgba(11, 18, 13, 0.96) 0%, rgba(15, 24, 18, 0.88) 100%);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.history-tag {
    font-size: 10px;
    color: #58f284;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.history-title {
    font-size: 20px;
    color: #ffffff;
    margin: 6px 0 0 0;
    font-weight: 700;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.track-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 14px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

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

.track-item:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(30, 215, 96, 0.18);
}

.album-art {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    object-fit: cover;
}

.track-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.track-name {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    color: #888;
    font-size: 11px;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #b3b3b3;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.status-now {
    color: #1ed760;
    background: rgba(30, 215, 96, 0.12);
    box-shadow: 0 0 20px rgba(30, 215, 96, 0.12);
    border-color: rgba(30, 215, 96, 0.2);
}

.status-past {
    color: #999;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.08);
}

.playing-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
    opacity: 0.4;
}

.bar {
    width: 3px;
    background: #1ed760;
    animation: grow 1s ease-in-out infinite;
    animation-play-state: paused;
}

.bar:nth-child(2) {
    animation-delay: 0.2s;
}

.bar:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes grow {
    0%, 100% {
        height: 5px;
    }
    50% {
        height: 18px;
    }
}

.spotify-history-card.is-playing .bar {
    animation-play-state: running;
}

.spotify-history-card.is-playing .playing-bars {
    opacity: 1;
}

.loading-text {
    font-size: 11px;
    color: #444;
    letter-spacing: 1px;
    text-align: center;
    padding: 30px 0;
}

@media (max-width: 768px) {
    .pulse-dot,
    .wake-text,
    .music-live-dot,
    .spotify-history-card.is-playing .bar,
    .playing-bars .bar {
        animation-duration: 3.2s !important;
    }

    .spotify-history-card.is-playing .bar,
    .playing-bars .bar,
    .pulse-dot,
    .wake-text,
    .music-live-dot {
        animation-iteration-count: 4;
    }

    body.site-notice-active .fixed-nav {
        top: 88px;
    }

    .site-notice {
        top: 8px;
        width: calc(100% - 36px);
    }

    .site-notice-inner {
        font-size: 11px;
        padding: 9px 11px;
    }
}



.discord-chip.device i { font-size: 12px; }
.discord-chip.device { gap: 7px; }

:root {
    --page-bg-image:
        radial-gradient(circle at top, rgba(80, 108, 255, 0.14), transparent 34%),
        radial-gradient(circle at bottom, rgba(255, 141, 92, 0.08), transparent 24%),
        var(--surface-base);
    --surface-base: #05070d;
    --surface-elevated: rgba(10, 13, 22, 0.92);
    --surface-elevated-strong: rgba(16, 20, 32, 0.96);
    --surface-card: linear-gradient(180deg, rgba(15, 18, 28, 0.94), rgba(8, 10, 18, 0.92));
    --surface-panel: linear-gradient(180deg, rgba(11, 14, 24, 0.95), rgba(7, 9, 16, 0.92));
    --surface-soft: rgba(255, 255, 255, 0.04);
    --surface-input: rgba(255, 255, 255, 0.04);
    --surface-overlay: rgba(4, 6, 12, 0.72);
    --surface-sticky: linear-gradient(180deg, rgba(15, 15, 15, 0.98), rgba(15, 15, 15, 0.9));
    --border-soft: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text-primary: #f5f7fb;
    --text-secondary: #a8b0c3;
    --text-muted: #7f8698;
    --radius-panel: 24px;
    --radius-soft: 18px;
    --radius-pill: 999px;
    --shadow-panel: 0 24px 60px rgba(0, 0, 0, 0.38);
    --shadow-floating: 0 20px 40px rgba(0, 0, 0, 0.34);
    --accent-cool: 95 144 255;
    --accent-warm: 255 137 92;
}

html,
body {
    background: var(--page-bg-image);
}

body {
    color: var(--text-primary);
}

body[data-theme="dark"] {
    --accent: 88 101 242;
    --accent-cool: 95 144 255;
    --accent-warm: 255 137 92;
    --page-bg-image:
        radial-gradient(circle at top, rgba(80, 108, 255, 0.14), transparent 34%),
        radial-gradient(circle at bottom, rgba(255, 141, 92, 0.08), transparent 24%),
        var(--surface-base);
    --surface-base: #05070d;
    --surface-elevated: rgba(10, 13, 22, 0.92);
    --surface-elevated-strong: rgba(16, 20, 32, 0.96);
    --surface-card: linear-gradient(180deg, rgba(15, 18, 28, 0.94), rgba(8, 10, 18, 0.92));
    --surface-panel: linear-gradient(180deg, rgba(11, 14, 24, 0.95), rgba(7, 9, 16, 0.92));
    --surface-soft: rgba(255, 255, 255, 0.04);
    --surface-input: rgba(255, 255, 255, 0.04);
    --surface-overlay: rgba(4, 6, 12, 0.72);
    --surface-sticky: linear-gradient(180deg, rgba(15, 15, 15, 0.98), rgba(15, 15, 15, 0.9));
    --border-soft: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text-primary: #f5f7fb;
    --text-secondary: #a8b0c3;
    --text-muted: #7f8698;
    --shadow-panel: 0 24px 60px rgba(0, 0, 0, 0.38);
    --shadow-floating: 0 20px 40px rgba(0, 0, 0, 0.34);
}

body[data-theme="light"] {
    --accent: 18 18 18;
    --accent-cool: 18 18 18;
    --accent-warm: 18 18 18;
    --page-bg-image:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0) 28%),
        linear-gradient(180deg, #fffcf8 0%, #f7f5f1 100%);
    --surface-base: #f7f5f1;
    --surface-elevated: rgba(255, 255, 255, 0.98);
    --surface-elevated-strong: rgba(255, 255, 255, 1);
    --surface-card: linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(252, 251, 248, 0.995));
    --surface-panel: linear-gradient(180deg, rgba(255, 255, 255, 0.998), rgba(250, 249, 245, 0.998));
    --surface-soft: rgba(17, 17, 17, 0.022);
    --surface-input: rgba(17, 17, 17, 0.028);
    --surface-overlay: rgba(247, 245, 241, 0.9);
    --surface-sticky: linear-gradient(180deg, rgba(255, 255, 255, 0.992), rgba(251, 250, 246, 0.98));
    --border-soft: rgba(17, 17, 17, 0.1);
    --border-strong: rgba(17, 17, 17, 0.16);
    --text-primary: #171717;
    --text-secondary: #5b5b5b;
    --text-muted: #7a7a7a;
    --shadow-panel: 0 12px 32px rgba(15, 15, 15, 0.055);
    --shadow-floating: 0 10px 24px rgba(15, 15, 15, 0.075);
}

.name,
.history-title,
.project-title,
.playlist-title,
.project-modal-intro h2,
.about-hero-card h2 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.fixed-nav {
    background: rgba(7, 9, 15, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 6px;
    backdrop-filter: blur(22px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.34);
}

.nav-container {
    gap: 6px;
}

.nav-link {
    border-radius: 999px;
    min-height: 42px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(95, 144, 255, 0.16));
    border-color: rgba(255, 255, 255, 0.14);
}

.mobile-bottom-nav {
    display: none;
}

.discord-card,
.music-player-card,
.weather-card,
.favorites-card,
.contact-item,
.social-card,
.project-card,
.about-hero-card,
.about-panel-card,
.about-fact-card {
    background: linear-gradient(180deg, rgba(15, 18, 28, 0.94), rgba(8, 10, 18, 0.92));
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-panel);
    box-shadow: var(--shadow-panel);
}

.music-head-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.music-label {
    margin-bottom: 0;
}

.music-slot-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 7px 12px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.weather-card {
    padding: 24px;
    overflow: hidden;
}

.weather-header {
    margin-bottom: 18px;
}

.weather-location {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.weather-subtitle,
.weather-updated,
.weather-note,
.weather-current-meta {
    color: var(--text-secondary);
}

.weather-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(95, 144, 255, 0.16), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
}

.weather-hero-copy {
    display: grid;
    gap: 6px;
}

.weather-hero-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}

.weather-icon-large {
    width: 72px;
    height: 72px;
    font-size: 30px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 22px;
}

.weather-current-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 13px;
    line-height: 1.5;
}

.weather-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.weather-day {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.weather-day.weather-today {
    background: linear-gradient(180deg, rgba(95, 144, 255, 0.16), rgba(255, 255, 255, 0.04));
}

.weather-day-top {
    align-items: flex-start;
}

.weather-day-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.weather-day-badge {
    padding: 5px 9px;
    border-radius: var(--radius-pill);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.1);
    color: #dbe6ff;
}

.weather-temp {
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
}

.weather-range,
.weather-desc,
.weather-note {
    font-size: 13px;
    line-height: 1.5;
}

.info-grid {
    gap: 14px;
}

.info-item {
    padding: 20px 22px;
    text-align: left;
}

.info-label {
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.info-value {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.playlist-modal {
    width: min(760px, calc(100% - 28px));
    padding: 26px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(11, 14, 24, 0.98), rgba(8, 10, 18, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
}

.playlist-header {
    align-items: flex-start;
    margin-bottom: 18px;
}

.playlist-kicker {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.playlist-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    margin-bottom: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.playlist-summary-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.playlist-summary-art-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

.playlist-summary-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-summary-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.playlist-summary-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.playlist-summary-copy strong,
.playlist-summary-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlist-summary-copy span {
    font-size: 13px;
    color: var(--text-secondary);
}

.playlist-summary-count {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.playlist-list {
    gap: 12px;
}

.playlist-item {
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.playlist-item-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
}

.playlist-item.active .playlist-item-order {
    background: rgba(var(--accent-cool), 0.18);
    color: #dbe6ff;
}

.playlist-item-state {
    min-width: 78px;
    text-align: right;
}

.about-shell {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.about-hero-card {
    padding: 28px;
    display: grid;
    align-content: start;
    gap: 18px;
}

.about-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.about-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: var(--radius-pill);
    background: rgba(var(--accent-cool), 0.12);
    border: 1px solid rgba(var(--accent-cool), 0.24);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #dbe6ff;
}

.about-hero-avatar {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.about-hero-card h2 {
    font-size: 28px;
    line-height: 1.2;
}

.about-hero-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.75;
}

.about-hero-pills,
.about-panel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.about-hero-pills span,
.about-panel-tags span,
.project-tag,
.project-modal-tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.about-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.about-stat {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.about-stat strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.about-stat span {
    font-size: 12px;
    color: var(--text-secondary);
}

.about-tos-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 16px;
    margin-top: 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(95, 144, 255, 0.16), rgba(255, 137, 92, 0.08));
    border: 1px solid rgba(95, 144, 255, 0.2);
    color: rgb(var(--accent-cool));
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.about-tos-btn:hover {
    background: linear-gradient(135deg, rgba(95, 144, 255, 0.24), rgba(255, 137, 92, 0.12));
    border-color: rgba(95, 144, 255, 0.35);
    box-shadow: 0 8px 24px rgba(95, 144, 255, 0.15);
    transform: translateY(-2px);
}

.about-tos-btn i {
    font-size: 13px;
}

.about-main-panel {
    min-width: 0;
}

.about-search-wrap {
    margin-bottom: 18px;
}

.about-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.about-panel-card,
.about-fact-card {
    padding: 22px;
}

.about-panel-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.about-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.about-panel-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    flex: 0 0 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 18px;
}

.about-panel-head h3 {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 4px;
}

.about-panel-head > div:last-child {
    min-width: 0;
    flex: 1 1 auto;
}

.about-panel-head h3,
.about-panel-kicker,
.about-panel-text {
    text-align: left;
}

.about-panel-tags {
    justify-content: flex-start;
}

.about-panel-kicker {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.about-panel-text {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 18px;
}

.about-panel-focus {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    max-width: 100%;
    margin-top: auto;
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(var(--accent-cool), 0.16), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(var(--accent-cool), 0.24);
    color: #dbe6ff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    word-break: break-word;
}

.about-panel-card:hover .about-panel-focus {
    border-color: rgba(var(--accent-cool), 0.34);
    background: linear-gradient(135deg, rgba(var(--accent-cool), 0.22), rgba(255, 255, 255, 0.06));
}

#about [data-about-card][hidden] {
    display: none !important;
}

.projects-content {
    max-width: 1180px;
}

.projects-intro {
    margin-bottom: 20px;
}

.projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.project-showcase-card {
    overflow: hidden;
    padding: 0;
}

.project-banner {
    height: 172px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.project-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 10, 18, 0.04), rgba(7, 10, 18, 0.16));
}

.project-banner-pill {
    position: absolute;
    left: 18px;
    top: 18px;
    z-index: 1;
    padding: 7px 12px;
    border-radius: var(--radius-pill);
    background: rgba(9, 13, 22, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-card-body {
    padding: 20px 20px 22px;
}

.project-card-header {
    margin-bottom: 12px;
}

.project-subtitle {
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.project-desc {
    min-height: 0;
    color: var(--text-secondary);
}

.project-card-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.project-card-metric {
    display: inline-grid;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-card-metric strong {
    font-size: 14px;
}

.project-card-metric small {
    color: var(--text-muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.project-actions {
    margin-top: 4px;
    justify-content: flex-start;
}

.project-action-primary {
    padding: 11px 15px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(var(--accent-cool), 0.14), rgba(255, 255, 255, 0.06));
    border-color: rgba(var(--accent-cool), 0.22);
}

.project-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(2, 4, 10, 0.72);
    backdrop-filter: blur(10px);
    z-index: 10002;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.project-overlay.active {
    display: flex;
    opacity: 1;
}

.project-modal {
    display: flex;
    flex-direction: column;
    width: min(1020px, 100%);
    max-height: min(92vh, 880px);
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(9, 12, 20, 0.98), rgba(6, 8, 16, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.44);
}

.project-modal-banner {
    height: 210px;
    position: relative;
}

.project-modal-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 10, 18, 0.03), rgba(7, 10, 18, 0.14));
    pointer-events: none;
}

.project-modal-inner {
    flex: 1 1 auto;
    overflow: auto;
    padding: 24px 26px 28px;
    scrollbar-gutter: stable;
}

.project-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 4px;
}

.project-modal-kicker {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    background: rgba(90, 106, 255, 0.14);
    border: 1px solid rgba(90, 106, 255, 0.22);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #dbe6ff;
}

.project-modal-close {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    flex: 0 0 auto;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.project-modal-close:hover {
    transform: translateY(-1px);
    border-color: rgba(var(--accent-cool), 0.32);
    background: rgba(var(--accent-cool), 0.12);
}

.project-modal-intro {
    margin-bottom: 20px;
}

.project-modal-intro h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    line-height: 1.05;
    margin-bottom: 8px;
}

#project-modal-subtitle {
    max-width: 56ch;
}

.project-modal-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.project-modal-intro p,
.project-modal-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

.project-modal-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.project-modal-metric {
    display: inline-grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-modal-metric small {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.project-modal-metric strong {
    font-size: 15px;
    line-height: 1.35;
}

.project-modal-section {
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.project-modal-section-title {
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.project-modal-tags,
.project-modal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-modal-highlights {
    display: grid;
    gap: 10px;
    gap: 10px;
}

.project-modal-highlight {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0;
    border-radius: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    background: transparent;
    border: 0;
}

.project-modal-highlight i {
    color: #98b7ff;
    margin-top: 3px;
}

.project-modal-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    width: 100%;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 18px;
    text-decoration: none;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.project-modal-link:hover {
    transform: translateY(-1px);
    border-color: rgba(var(--accent-cool), 0.26);
    background: rgba(var(--accent-cool), 0.08);
}

.project-modal-link.disabled {
    color: var(--text-secondary);
    cursor: default;
}

.project-modal-link small {
    color: var(--text-muted);
}

.project-modal-tags {
    gap: 10px;
}

.project-modal-tag {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-links-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 960px) {
    .about-shell,
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .fixed-nav {
        display: none;
    }

    .mobile-bottom-nav {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 8px;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: max(10px, env(safe-area-inset-bottom));
        padding: 8px;
        border-radius: 24px;
        background: rgba(7, 9, 15, 0.92);
        border: 1px solid rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(22px);
        box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
        z-index: 1005;
    }

    .mobile-nav-link {
        min-width: 0;
        min-height: 58px;
        border: 0;
        border-radius: 18px;
        background: transparent;
        color: var(--text-secondary);
        display: grid;
        place-items: center;
        gap: 4px;
        font-size: 11px;
        font-weight: 700;
    }

    .mobile-nav-link i {
        font-size: 16px;
    }

    .mobile-nav-link.active {
        color: var(--text-primary);
        background: linear-gradient(180deg, rgba(var(--accent-cool), 0.16), rgba(255, 255, 255, 0.04));
    }

    .container {
        padding: 92px 14px 116px;
    }

    .about-hero-card,
    .about-panel-card,
    .about-fact-card,
    .weather-card,
    .project-card,
    .playlist-modal,
    .project-modal {
        border-radius: 22px;
    }

    .about-card-grid {
        grid-template-columns: 1fr;
    }

    .about-hero-card h2 {
        font-size: 24px;
    }

    .playlist-summary,
    .weather-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .playlist-item {
        grid-template-columns: auto auto 1fr;
    }

    .playlist-item-state {
        grid-column: 2 / -1;
        text-align: left;
    }

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

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

    .projects-content {
        max-width: 100%;
    }

    .project-banner {
        height: 154px;
    }

    .project-overlay {
        align-items: flex-end;
        padding: 12px;
    }

    .project-modal-inner {
        padding: 18px 16px 18px;
    }

    .project-modal-banner {
        height: 136px;
    }

    .project-modal {
        width: min(100%, 760px);
        max-height: min(88dvh, 920px);
        border-radius: 24px;
    }

    .project-modal-head {
        margin-bottom: 14px;
        padding-bottom: 8px;
    }

    .project-modal-kicker {
        padding: 7px 10px;
        font-size: 10px;
    }

    .project-modal-close {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .project-modal-intro {
        margin-bottom: 16px;
    }

    .project-modal-intro h2 {
        font-size: 1.55rem;
    }

    .project-modal-description,
    .project-modal-intro p {
        font-size: 14px;
        line-height: 1.7;
    }

    .project-modal-metrics,
    .project-modal-tags,
    .project-modal-links {
        gap: 8px;
    }

    .project-modal-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-modal-section {
        padding-top: 16px;
        margin-top: 16px;
    }

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

    .social-links-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .mobile-bottom-nav {
        left: 8px;
        right: 8px;
        bottom: max(8px, env(safe-area-inset-bottom));
        gap: 6px;
        padding: 7px;
    }

    .mobile-nav-link span {
        font-size: 10px;
    }

    .playlist-modal,
    .project-modal {
        width: calc(100% - 8px);
        max-height: min(90dvh, 900px);
        border-radius: 22px 22px 18px 18px;
    }

    .project-overlay {
        padding: 4px 4px max(4px, env(safe-area-inset-bottom));
    }

    .project-card-body,
    .about-hero-card,
    .about-panel-card,
    .about-fact-card,
    .weather-card {
        padding-left: 16px;
        padding-right: 16px;
    }

    .weather-temp {
        font-size: 30px;
    }

    .project-modal-banner {
        height: 118px;
    }

    .project-modal-inner {
        padding: 14px 13px 16px;
    }

    .project-modal-head {
        gap: 10px;
        margin-bottom: 12px;
    }

    .project-modal-kicker {
        padding: 6px 9px;
        font-size: 9px;
        letter-spacing: 0.08em;
    }

    .project-modal-close {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .project-modal-intro h2 {
        font-size: 1.35rem;
    }

    #project-modal-subtitle,
    .project-modal-description {
        font-size: 13.5px;
        line-height: 1.65;
    }

    .project-modal-metrics {
        grid-template-columns: 1fr;
    }

    .project-modal-metric {
        padding: 11px 12px;
        border-radius: 16px;
    }

    .project-modal-section-title {
        margin-bottom: 12px;
        font-size: 12px;
    }

    .project-modal-highlight {
        gap: 8px;
        font-size: 13px;
    }

    .project-modal-link {
        min-width: 100%;
        padding: 13px 14px;
        border-radius: 16px;
    }

    .social-links-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.star {
    opacity: 0.82;
}

.star.ambient {
    position: absolute;
}

.star.twinkle {
    animation: star-twinkle 2.8s ease-in-out infinite;
}

.star.float {
    animation: star-float 6.5s ease-in-out infinite;
}

.star.glide {
    animation: star-glide 10s ease-in-out infinite;
}

.star.near {
    opacity: 0.5;
    filter: blur(0.6px);
}

@keyframes star-twinkle {
    0%, 100% { opacity: 0.22; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.22); }
}

@keyframes star-float {
    0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.28; }
    50% { transform: translate3d(var(--drift-x, 10px), var(--drift-y, -10px), 0); opacity: 0.88; }
}

@keyframes star-glide {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.24; }
    50% { transform: translate3d(var(--glide-x, 16px), var(--glide-y, -8px), 0) scale(1.06); opacity: 0.78; }
}

.weather-card {
    padding: 20px;
}

.weather-header {
    margin-bottom: 14px;
}

.weather-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.weather-day,
.weather-day.weather-today {
    padding: 18px 14px;
    text-align: center;
    background: rgba(255, 255, 255, 0.035);
}

.weather-day-top {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.weather-icon,
.weather-icon-large {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    margin: 0 auto;
    font-size: 17px;
    background: rgba(255, 255, 255, 0.06);
    /* center the icon glyph in its box */
    display: flex;
    justify-content: center;
    align-items: center;
}

.weather-temp {
    font-size: 28px;
    margin-bottom: 8px;
}

.weather-desc,
.weather-range,
.weather-note {
    font-size: 12px;
}

.info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.info-item {
    text-align: center;
    padding: 18px 16px;
}

.info-label {
    margin-bottom: 10px;
}

.projects-content,
#about .content {
    max-width: 520px;
}

.projects-grid {
    grid-template-columns: 1fr;
    gap: 18px;
}

.projects-intro {
    margin-bottom: 16px;
}

.simple-project-card .project-banner {
    height: 210px;
}

.simple-project-card .project-card-body {
    padding: 18px;
}

.simple-project-card .project-title {
    font-size: 18px;
    margin-bottom: 6px;
}

.simple-project-card .project-subtitle {
    margin-top: 0;
    margin-bottom: 12px;
}

.simple-project-card .project-desc {
    margin-bottom: 14px;
}

.simple-project-card .project-tags {
    margin-bottom: 14px;
}

.project-action-primary {
    min-height: 46px;
}

.about-shell {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto 24px;
}

.about-hero-card {
    gap: 14px;
}

.about-hero-card h2 {
    font-size: 22px;
}

.about-main-panel {
    width: 100%;
}

.about-card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
}

.about-panel-card,
.about-fact-card {
    padding: 18px;
}

.about-panel-head h3 {
    font-size: 18px;
}

.about-panel-head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    row-gap: 2px;
}

.about-panel-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    flex-basis: 42px;
    border-radius: 12px;
    grid-row: 1 / span 2;
}

.about-panel-head > div:last-child {
    align-self: center;
}

.about-panel-head h3 {
    margin-bottom: 2px;
}

.about-panel-kicker {
    font-size: 11px;
    letter-spacing: 0.12em;
}

.about-panel-text,
.about-panel-tags {
    padding-left: 54px;
}

.about-panel-text {
    font-size: 14px;
    line-height: 1.7;
}

.about-panel-focus {
    margin-left: 54px;
    padding: 9px 12px;
    font-size: 11px;
}

@media (max-width: 768px) {
    .weather_grid {
        grid-template-columns: 1fr;
    }

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

    .projects-content,
    .about-shell {
        max-width: 100%;
    }

    .simple-project-card .project-banner {
        height: 170px;
    }

    /* make mini player fullâ€‘width bar at bottom */
    .mini-music-player {
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        border-radius: 0;
        padding: 8px 16px;
    }
}

body.modal-open .mobile-bottom-nav,
body.modal-open .settings-toggle {
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
}

body.onboarding-open .mobile-bottom-nav,
body.onboarding-open .settings-toggle {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
}

.mini-player-visible .mobile-bottom-nav {
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.42);
}

@media (max-width: 768px) {
    .settings-toggle {
        left: auto;
        right: 12px;
        bottom: calc(env(safe-area-inset-bottom) + 92px);
        width: 46px;
        height: 46px;
        border-radius: 14px;
        opacity: 0.92;
        z-index: 1006;
    }

    .settings-modal {
        width: calc(100% - 16px);
        max-width: 640px;
        max-height: calc(100vh - 24px);
        margin: 12px 0;
        padding: 18px;
        border-radius: 22px;
    }

    .settings-navbar {
        position: sticky;
        top: 0;
        z-index: 2;
        padding-bottom: 10px;
        background: linear-gradient(180deg, rgba(10, 12, 18, 0.98), rgba(10, 12, 18, 0.9));
        backdrop-filter: blur(18px);
    }

    .settings-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .settings-category-btn {
        min-height: 44px;
    }

    .mobile-bottom-nav {
        left: 10px;
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        padding: 7px;
        gap: 6px;
        border-radius: 22px;
        z-index: 1004;
    }

    .container {
        padding-bottom: 130px;
    }

    .mini-music-player {
        left: 10px;
        right: 10px;
        bottom: calc(env(safe-area-inset-bottom) + 86px);
        width: auto;
        min-width: 0;
        padding: 12px;
        border-radius: 22px;
        z-index: 1003;
    }

    .mini-music-player.collapsed {
        width: auto;
        min-width: 0;
    }

    .mini-player-header {
        cursor: default;
    }

    .mini-player-main {
        min-width: 0;
    }

    .mini-player-title,
    .mini-player-artist {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .weather-card {
        padding: 18px 16px;
    }

    .weather-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .weather-day,
    .weather-day.weather-today {
        text-align: left;
        padding: 16px;
    }

    .weather-day-top {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .settings-toggle {
        right: 8px;
        bottom: calc(env(safe-area-inset-bottom) + 88px);
    }

    .mobile-bottom-nav {
        left: 8px;
        right: 8px;
    }

    .mini-music-player {
        left: 8px;
        right: 8px;
        bottom: calc(env(safe-area-inset-bottom) + 84px);
        padding: 10px;
    }

    .mini-player-header-actions {
        gap: 6px;
    }

    .mini-player-header-btn {
        width: 28px;
        height: 28px;
        border-radius: 9px;
    }

    .mini-player-controls {
        gap: 6px;
    }

    .mini-player-control {
        width: 34px;
        height: 34px;
    }

    .mini-player-play {
        width: 38px;
        height: 38px;
    }
}

.mini-music-player {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: min(360px, calc(100vw - 32px));
    padding: 14px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(10, 12, 18, 0.96), rgba(6, 8, 14, 0.94));
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(20px) saturate(135%);
    z-index: 9998;
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.mini-music-player.snapping {
    transition:
        opacity 0.24s ease,
        transform 0.24s ease,
        left 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        top 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.mini-music-player.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mini-music-player.dragging {
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.mini-player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 0;
}

.mini-player-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.mini-player-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mini-player-header-btn {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-player-header-btn.close {
    background: rgba(255, 255, 255, 0.03);
}

.mini-player-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.mini-player-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.mini-player-art {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
}

.mini-player-meta {
    min-width: 0;
}

.mini-player-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-player-artist {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.68);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-player-controls {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.mini-player-control {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-player-play {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgb(var(--accent) / 0.42), rgb(var(--accent) / 0.18));
    border-color: rgb(var(--accent) / 0.36);
    box-shadow: 0 10px 24px rgb(var(--accent) / 0.22);
}

.mini-player-progress {
    height: 6px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.mini-player-progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgb(var(--accent)), rgba(255, 255, 255, 0.92));
}

.mini-player-volume {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.mini-player-volume input[type="range"] {
    flex: 1;
    accent-color: rgb(var(--accent));
}

.mini-music-player.collapsed {
    display: block;
    width: min(300px, calc(100vw - 32px));
}

.mini-music-player.collapsed .mini-player-volume,
.mini-music-player.collapsed .mini-player-progress {
    display: none;
}

@media (max-width: 768px) {
    .mini-music-player {
        left: 10px;
        right: 10px;
        bottom: calc(env(safe-area-inset-bottom) + 88px);
        width: auto;
        padding: 12px;
        border-radius: 20px;
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
    }

    .mini-player-body {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mini-player-controls {
        justify-content: flex-start;
    }

    .mini-player-control {
        width: 36px;
        height: 36px;
    }

    .mini-player-play {
        width: 40px;
        height: 40px;
    }

    .mini-player-art {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }

    .weather-card {
        padding: 18px 16px;
        border-radius: 22px;
    }

    .weather-header {
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin-bottom: 14px;
    }

    .weather-location {
        font-size: 21px;
        line-height: 1.2;
    }

    .weather-subtitle,
    .weather-updated {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.62);
    }

    .weather-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .weather-day,
    .weather-day.weather-today {
        position: relative;
        padding: 16px;
        border-radius: 18px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
        border: 1px solid rgba(255, 255, 255, 0.08);
        text-align: left;
    }

    .weather-day.weather-today {
        background: linear-gradient(135deg, rgba(95, 144, 255, 0.2), rgba(255, 255, 255, 0.04));
        border-color: rgba(95, 144, 255, 0.22);
    }

    .weather-day-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        margin-bottom: 10px;
    }

    .weather-day-label {
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.03em;
    }

    .weather-icon {
        width: 48px;
        height: 48px;
        border-radius: 16px;
        background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.16), rgba(95, 144, 255, 0.12));
        border: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: #f7fbff;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    .weather-temp {
        font-size: 30px;
        line-height: 1;
        margin-bottom: 8px;
    }

    .weather-desc {
        font-size: 13px;
        font-weight: 600;
        color: #f4f7fb;
        margin-bottom: 4px;
    }

    .weather-range,
    .weather-note {
        font-size: 12px;
        line-height: 1.5;
        color: rgba(255, 255, 255, 0.66);
    }
}

@media (max-width: 480px) {
    .mini-music-player {
        left: 8px;
        right: 8px;
        bottom: calc(env(safe-area-inset-bottom) + 84px);
        padding: 10px;
    }

    .mini-player-header-btn {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .mini-player-main {
        gap: 10px;
    }

    .mini-player-title {
        font-size: 13px;
    }

    .mini-player-artist {
        font-size: 11px;
    }

    .weather-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        font-size: 18px;
    }

    .weather-temp {
        font-size: 28px;
    }
}

.settings-overlay,
.settings-modal {
    scrollbar-gutter: stable both-edges;
}

.mini-player-volume-compact {
    display: none;
}

@media (max-width: 768px) {
    .mini-music-player {
        width: min(332px, calc(100vw - 20px));
        padding: 10px 10px 9px;
        bottom: calc(env(safe-area-inset-bottom) + 86px);
        overflow: hidden;
    }

    .mini-player-header {
        margin-bottom: 10px;
    }

    .mini-player-header-actions {
        gap: 6px;
        min-width: 0;
        width: auto;
    }

    .mini-player-volume-compact {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        width: 124px;
        margin: 0;
        padding: 0 8px;
        height: 34px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mini-player-volume-compact i {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.72);
    }

    .mini-player-volume-compact input[type="range"] {
        flex: 1;
        min-width: 0;
        accent-color: rgb(var(--accent));
    }

    .mini-player-body {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        margin-bottom: 10px;
    }

    .mini-player-main {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 10px;
    }

    .mini-player-art {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .mini-player-title {
        font-size: 12px;
    }

    .mini-player-artist {
        margin-top: 2px;
        font-size: 10px;
    }

    .mini-player-controls {
        gap: 7px;
    }

    .mini-player-control {
        width: 34px;
        height: 34px;
    }

    .mini-player-play {
        width: 40px;
        height: 40px;
    }

    .mini-player-progress {
        height: 5px;
        margin-bottom: 8px;
    }

    .mini-player-volume:not(.mini-player-volume-compact) {
        display: none;
    }

    .weather-card {
        padding: 16px 14px;
    }

    .weather-header {
        gap: 4px;
        margin-bottom: 12px;
    }

    .weather-location {
        font-size: 19px;
    }

    .weather-grid {
        gap: 10px;
    }

    .weather-day,
    .weather-day.weather-today {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "label icon"
            "temp icon"
            "desc desc"
            "range range"
            "note note";
        gap: 4px 12px;
        padding: 14px;
        border-radius: 16px;
        text-align: left;
        align-items: start;
    }

    .weather-day-top {
        display: contents;
    }

    .weather-day-label {
        grid-area: label;
        align-self: end;
    }

    .weather-icon {
        grid-area: icon;
        width: 40px;
        height: 40px;
        border-radius: 13px;
        font-size: 16px;
        margin: 0;
        align-self: start;
    }

    .weather-temp {
        grid-area: temp;
        font-size: 26px;
        margin: 2px 0 4px;
    }

    .weather-desc {
        grid-area: desc;
        margin-bottom: 0;
    }

    .weather-range {
        grid-area: range;
    }

    .weather-note {
        grid-area: note;
    }
}

@media (max-width: 480px) {
    .mini-music-player {
        width: auto;
        left: 8px;
        right: 8px;
        bottom: calc(env(safe-area-inset-bottom) + 82px);
        padding: 9px;
    }

    .mini-player-label {
        font-size: 9px;
    }

    .mini-player-header-btn {
        width: 30px;
        height: 30px;
    }

    .mini-player-volume-compact {
        width: 108px;
        height: 30px;
        padding: 0 6px;
        gap: 6px;
    }

    .mini-player-main {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 9px;
    }

    .mini-player-art {
        width: 40px;
        height: 40px;
    }

    .mini-player-controls {
        gap: 6px;
    }

    .mini-player-control {
        width: 32px;
        height: 32px;
    }

    .mini-player-play {
        width: 36px;
        height: 36px;
    }

    .weather-card {
        padding: 14px 12px;
    }

    .weather-day,
    .weather-day.weather-today {
        padding: 13px;
        gap: 4px 10px;
    }
}

.mini-player-header-actions {
    gap: 8px;
}

.mini-player-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.mini-player-queue-btn {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .mini-music-player {
        width: min(304px, calc(100vw - 16px));
        padding: 10px 10px 8px;
        bottom: calc(env(safe-area-inset-bottom) + 82px);
        border-radius: 18px;
    }

    .mini-player-header {
        margin-bottom: 6px;
    }

    .mini-player-label {
        font-size: 9px;
        letter-spacing: 0.14em;
    }

    .mini-player-body {
        gap: 8px;
        margin-bottom: 8px;
    }

    .mini-player-main {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px;
    }

    .mini-player-art {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .mini-player-title {
        font-size: 12px;
        line-height: 1.2;
    }

    .mini-player-artist {
        font-size: 10px;
        line-height: 1.25;
    }

    .mini-player-controls {
        justify-content: center;
        gap: 7px;
    }

    .mini-player-control {
        width: 33px;
        height: 33px;
    }

    .mini-player-play {
        width: 37px;
        height: 37px;
    }

    .mini-player-toolbar {
        justify-content: flex-start;
        gap: 8px;
        margin-bottom: 7px;
    }

    .mini-player-volume-compact {
        display: inline-flex;
        flex: 0 0 auto;
        width: 138px;
        max-width: 138px;
        height: 30px;
        padding: 0 8px;
        border-radius: 11px;
    }

    .mini-player-volume-compact i {
        font-size: 11px;
    }

    .mini-player-progress {
        margin-bottom: 0;
    }

    .mini-player-header {
        cursor: default !important;
    }
}

@media (max-width: 480px) {
    .mini-music-player {
        left: 8px;
        right: 8px;
        width: auto;
        padding: 9px 9px 8px;
        bottom: calc(env(safe-area-inset-bottom) + 78px);
    }

    .mini-player-header-btn,
    .mini-player-queue-btn {
        width: 30px;
        height: 30px;
        border-radius: 10px;
    }

    .mini-player-main {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 9px;
    }

    .mini-player-art {
        width: 40px;
        height: 40px;
    }

    .mini-player-controls {
        gap: 6px;
    }

    .mini-player-control {
        width: 30px;
        height: 30px;
    }

    .mini-player-play {
        width: 34px;
        height: 34px;
    }

    .mini-player-volume-compact {
        width: 126px;
        max-width: 126px;
        height: 28px;
        padding: 0 7px;
    }
}

.mini-music-player {
    border-color: rgba(255, 255, 255, 0.1);
}

.mini-player-header {
    align-items: center;
}

.mini-player-main {
    align-items: center;
}

.mini-player-meta {
    display: grid;
    gap: 2px;
}

.mini-player-progress {
    background: rgba(255, 255, 255, 0.06);
}

.mini-player-progress-fill {
    box-shadow: 0 0 14px rgb(var(--accent) / 0.26);
}

@media (max-width: 768px) {
    .mini-music-player {
        width: min(308px, calc(100vw - 16px));
        padding: 10px 10px 8px;
        bottom: calc(env(safe-area-inset-bottom) + 82px);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
    }

    .mini-player-header {
        margin-bottom: 7px;
    }

    .mini-player-body {
        grid-template-columns: 1fr;
        gap: 7px;
        margin-bottom: 7px;
    }

    .mini-player-main {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 10px;
    }

    .mini-player-art {
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }

    .mini-player-title {
        font-size: 11px;
        font-weight: 700;
    }

    .mini-player-artist {
        font-size: 10px;
        color: rgba(255, 255, 255, 0.62);
    }

    .mini-player-controls {
        gap: 7px;
        justify-content: flex-start;
    }

    .mini-player-control {
        width: 33px;
        height: 33px;
        border-width: 1px;
    }

    .mini-player-play {
        width: 38px;
        height: 38px;
    }

    .mini-player-toolbar {
        justify-content: flex-start;
        gap: 8px;
        margin-bottom: 6px;
        align-items: center;
    }

    .mini-player-queue-btn,
    .mini-player-header-btn {
        width: 31px;
        height: 31px;
        border-radius: 10px;
    }

    .mini-player-volume-compact {
        width: 136px;
        max-width: 136px;
        height: 30px;
        padding: 0 8px;
        border-radius: 10px;
    }

    .mini-player-progress {
        height: 5px;
    }
}

@media (max-width: 480px) {
    .mini-music-player {
        left: 8px;
        right: 8px;
        width: auto;
        padding: 9px 9px 8px;
        bottom: calc(env(safe-area-inset-bottom) + 78px);
    }

    .mini-player-main {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 9px;
    }

    .mini-player-art {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .mini-player-title {
        font-size: 11px;
    }

    .mini-player-artist {
        font-size: 9.5px;
    }

    .mini-player-controls {
        gap: 6px;
    }

    .mini-player-control {
        width: 31px;
        height: 31px;
    }

    .mini-player-play {
        width: 35px;
        height: 35px;
    }

    .mini-player-volume-compact {
        width: 122px;
        max-width: 122px;
        height: 28px;
        padding: 0 7px;
    }
}

.settings-overlay {
    padding-inline: 12px;
}

.settings-modal {
    width: min(560px, 100%);
    margin-inline: auto;
}

@media (max-width: 768px) {
    .settings-overlay {
        align-items: flex-start;
        padding: 10px 10px calc(env(safe-area-inset-bottom) + 10px);
    }

    .settings-modal {
        width: min(100%, 620px);
        max-height: calc(100dvh - 20px);
        padding: 18px 16px 20px;
        border-radius: 18px;
    }

    .settings-header {
        position: sticky;
        top: 0;
        z-index: 2;
        padding-top: 2px;
        background: linear-gradient(180deg, rgba(15, 15, 15, 0.98), rgba(15, 15, 15, 0.9));
        backdrop-filter: blur(16px);
    }

    .settings-navbar {
        position: sticky;
        top: 56px;
        z-index: 1;
        background: linear-gradient(180deg, rgba(15, 15, 15, 0.96), rgba(15, 15, 15, 0.9));
        padding-bottom: 10px;
    }
}

body.custom-cursor-enabled #customCursor {
    display: block;
}

body.cursor-disabled #customCursor {
    display: none;
}

@media (max-width: 768px) {
    #customCursor {
        display: none;
    }
}

.mini-player-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mini-player-toolbar {
    justify-content: flex-start;
    margin-top: -2px;
}

.mini-player-volume-compact {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .mini-music-player {
        left: 8px;
        right: 8px;
        width: auto;
        max-width: 304px;
        padding: 10px 10px 8px;
        bottom: calc(env(safe-area-inset-bottom) + 82px);
        border-radius: 18px;
        overflow: hidden;
    }

    .mini-player-header {
        margin-bottom: 6px;
        cursor: default !important;
    }

    .mini-player-header-actions .mini-player-header-btn,
    .mini-player-queue-btn {
        width: 31px;
        height: 31px;
        border-radius: 10px;
        flex-shrink: 0;
    }

    .mini-player-body {
        gap: 7px;
        margin-bottom: 6px;
    }

    .mini-player-main {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 10px;
    }

    .mini-player-art {
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }

    .mini-player-title {
        font-size: 11px;
        line-height: 1.2;
    }

    .mini-player-artist {
        font-size: 9.5px;
        line-height: 1.25;
        color: rgba(255, 255, 255, 0.62);
    }

    .mini-player-controls {
        justify-content: center;
        gap: 7px;
    }

    .mini-player-control {
        width: 32px;
        height: 32px;
    }

    .mini-player-play {
        width: 36px;
        height: 36px;
    }

    .mini-player-toolbar {
        gap: 8px;
        margin-bottom: 6px;
        align-items: center;
    }

    .mini-player-volume-compact {
        width: 132px;
        max-width: 132px;
        height: 29px;
        padding: 0 8px;
        border-radius: 10px;
        transform: translateY(-2px);
    }

    .mini-player-volume-compact i {
        font-size: 11px;
    }

    .mini-player-progress {
        height: 5px;
    }

    .settings-overlay {
        padding: 10px 10px calc(env(safe-area-inset-bottom) + 10px);
        backdrop-filter: blur(20px);
    }

    .settings-modal {
        width: min(100%, 620px);
        max-height: calc(100dvh - 20px);
        padding: 16px 14px 18px;
        border-radius: 18px;
        box-shadow: 0 22px 56px rgba(0, 0, 0, 0.48);
    }

    .settings-header {
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .settings-navbar {
        top: 52px;
        margin-bottom: 10px;
    }

    .settings-categories {
        gap: 8px;
    }

    .settings-category-btn {
        min-height: 42px;
        border-radius: 12px;
    }

    .settings-section {
        padding: 12px;
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .mini-music-player {
        max-width: none;
        padding: 9px 9px 8px;
        bottom: calc(env(safe-area-inset-bottom) + 78px);
    }

    .mini-player-header-actions .mini-player-header-btn,
    .mini-player-queue-btn {
        width: 30px;
        height: 30px;
    }

    .mini-player-main {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 9px;
    }

    .mini-player-art {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .mini-player-control {
        width: 30px;
        height: 30px;
    }

    .mini-player-play {
        width: 34px;
        height: 34px;
    }

    .mini-player-volume-compact {
        width: 122px;
        max-width: 122px;
        height: 28px;
        padding: 0 7px;
    }

    .settings-modal {
        padding: 14px 12px 16px;
    }
}

.contact-overlay,
.external-redirect-overlay,
.playlist-overlay,
.project-overlay,
.settings-overlay {
    background: rgba(4, 6, 12, 0.72);
    backdrop-filter: blur(10px) saturate(110%);
}

.contact-modal,
.external-redirect-modal,
.playlist-modal,
.project-modal,
.settings-modal {
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
    border-color: rgba(255, 255, 255, 0.1);
}

.contact-modal,
.external-redirect-modal,
.settings-modal {
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.92), rgba(10, 11, 16, 0.9));
}

.playlist-modal,
.project-modal {
    background: linear-gradient(180deg, rgba(11, 14, 24, 0.95), rgba(7, 9, 16, 0.92));
}

@media (max-width: 768px) {
    .contact-overlay,
    .external-redirect-overlay,
    .playlist-overlay,
    .project-overlay,
    .settings-overlay {
        backdrop-filter: blur(8px) saturate(105%);
    }

    .contact-modal,
    .external-redirect-modal,
    .playlist-modal,
    .project-modal,
    .settings-modal {
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
    }
}

[data-reveal="true"] {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(0.985);
    transition:
        opacity 0.58s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

[data-reveal="true"].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

body.reduce-motion [data-reveal="true"],
body.performance-mode [data-reveal="true"] {
    opacity: 1;
    transform: none;
    transition: none;
}

@media (max-width: 768px) {
    [data-reveal="true"] {
        transform: translate3d(0, 16px, 0) scale(0.99);
        transition-duration: 0.46s;
    }
}

/* Final mobile layout override for the floating mini player. */
@media (max-width: 768px) {
    .mini-music-player {
        left: 8px;
        right: 8px;
        width: auto;
        max-width: none;
        bottom: calc(env(safe-area-inset-bottom) + 80px);
        padding: 10px;
        border-radius: 18px;
        overflow: hidden;
    }

    .mini-player-header {
        margin-bottom: 8px;
        align-items: center;
    }

    .mini-player-label {
        min-width: 0;
        font-size: 9px;
        letter-spacing: 0.14em;
    }

    .mini-player-header-actions {
        flex: 0 0 auto;
        gap: 6px;
    }

    .mini-player-header-actions .mini-player-header-btn,
    .mini-player-queue-btn {
        width: 30px;
        height: 30px;
        border-radius: 10px;
        flex-shrink: 0;
    }

    .mini-player-body {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 8px;
        align-items: stretch;
    }

    .mini-player-main {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 10px;
        align-items: center;
    }

    .mini-player-art {
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }

    .mini-player-meta {
        min-width: 0;
        display: grid;
        gap: 2px;
    }

    .mini-player-title {
        font-size: 11px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mini-player-artist {
        font-size: 9.5px;
        line-height: 1.25;
        color: rgba(255, 255, 255, 0.62);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mini-player-controls {
        justify-content: center;
        gap: 7px;
        width: 100%;
    }

    .mini-player-control {
        width: 32px;
        height: 32px;
    }

    .mini-player-play {
        width: 36px;
        height: 36px;
    }

    .mini-player-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 7px;
    }

    .mini-player-volume-compact {
        display: inline-flex;
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        max-width: none;
        height: 30px;
        padding: 0 8px;
        border-radius: 10px;
        transform: none;
    }

    .mini-player-volume-compact i {
        font-size: 11px;
    }

    .mini-player-volume:not(.mini-player-volume-compact) {
        display: none;
    }

    .mini-player-progress {
        height: 5px;
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .mini-music-player {
        left: 6px;
        right: 6px;
        bottom: calc(env(safe-area-inset-bottom) + 76px);
        padding: 9px;
        border-radius: 16px;
    }

    .mini-player-main {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 9px;
    }

    .mini-player-art {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .mini-player-title {
        font-size: 10.5px;
    }

    .mini-player-artist {
        font-size: 9px;
    }

    .mini-player-header-actions .mini-player-header-btn,
    .mini-player-queue-btn {
        width: 29px;
        height: 29px;
    }

    .mini-player-control {
        width: 30px;
        height: 30px;
    }

    .mini-player-play {
        width: 34px;
        height: 34px;
    }

    .mini-player-volume-compact {
        height: 28px;
        padding: 0 7px;
    }
}

/* TOS Section Styles */
.toc {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(180deg, rgba(15, 18, 28, 0.94), rgba(8, 10, 18, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.toc h3 {
    color: var(--text-primary);
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: 600;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin-bottom: 8px;
}

.toc a {
    color: rgb(var(--accent-cool));
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.toc a:hover {
    color: rgb(var(--accent-warm));
    text-decoration: underline;
}

/* TOS Page Layout */
#tos .content {
    max-width: 100%;
    padding: 2rem;
}

#tos .header {
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.tos-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Sidebar - Table of Contents */
.toc-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: linear-gradient(135deg, rgba(15, 20, 32, 0.6) 0%, rgba(10, 15, 28, 0.4) 100%);
    border: 1px solid rgba(95, 144, 255, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.toc-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgb(var(--accent-cool));
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(95, 144, 255, 0.2);
}

.toc-header i {
    font-size: 1rem;
    opacity: 0.8;
}

.toc-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin: 0;
}

.toc-link {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
    position: relative;
}

.toc-link:hover {
    color: rgb(var(--accent-cool));
    background: rgba(95, 144, 255, 0.08);
    border-left-color: rgb(var(--accent-cool));
    transform: translateX(4px);
}

.toc-link.toc-active {
    color: rgb(var(--accent-cool));
    background: linear-gradient(135deg, rgba(95, 144, 255, 0.15) 0%, rgba(95, 144, 255, 0.05) 100%);
    border-left-color: rgb(var(--accent-cool));
    font-weight: 600;
    box-shadow: inset 0 0 12px rgba(95, 144, 255, 0.1);
}

.toc-link::before {
    content: '◆';
    margin-right: 0.6rem;
    font-size: 0.5rem;
    opacity: 0.4;
}

/* Content Area */
.tos-content {
    padding-right: 2rem;
}

#tos h2 {
    font-family: 'Space Grotesk', sans-serif;
    color: rgb(var(--accent-cool));
    font-size: 1.8rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem 0;
    padding: 1.2rem 0;
    border-bottom: 2px solid rgba(95, 144, 255, 0.25);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    scroll-margin-top: 120px;
    position: relative;
}

#tos h2:first-of-type {
    margin-top: 0;
}

#tos h2 i {
    color: rgb(var(--accent-cool));
    font-size: 1.4rem;
    opacity: 0.9;
}

#tos ol, #tos ul {
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
}

#tos ol {
    counter-reset: list-counter;
}

#tos ol > li, #tos ul > li {
    margin-bottom: 1.2rem;
    padding: 1.2rem 1.4rem 1.2rem 2.8rem;
    background: linear-gradient(135deg, 
        rgba(95, 144, 255, 0.04) 0%, 
        rgba(255, 137, 92, 0.02) 100%);
    border: 1px solid rgba(95, 144, 255, 0.12);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    line-height: 1.7;
    font-size: 0.95rem;
}

#tos ol > li {
    counter-increment: list-counter;
}

#tos ol > li:hover, #tos ul > li:hover {
    background: linear-gradient(135deg, 
        rgba(95, 144, 255, 0.08) 0%, 
        rgba(255, 137, 92, 0.05) 100%);
    border-color: rgba(95, 144, 255, 0.25);
    box-shadow: 0 8px 24px rgba(95, 144, 255, 0.1);
    transform: translateX(4px);
}

#tos ol > li::before {
    content: counter(list-counter) '.';
    position: absolute;
    left: 0.9rem;
    color: rgb(var(--accent-cool));
    font-weight: 700;
    font-size: 0.95rem;
}

#tos ul > li {
    padding-left: 2.8rem;
}

#tos ul > li::before {
    content: '▸';
    position: absolute;
    left: 0.8rem;
    top: 1.35rem;
    color: rgb(var(--accent-cool));
    font-size: 1rem;
}

#tos ul > li ul {
    margin: 1rem 0 0 0;
}

#tos ul > li ul > li {
    margin-bottom: 0.8rem;
    padding: 0.8rem 1rem 0.8rem 2.2rem;
    background: rgba(95, 144, 255, 0.02);
    border: 1px dashed rgba(95, 144, 255, 0.1);
    font-size: 0.9rem;
}

#tos ul > li ul > li::before {
    content: '▹';
    position: absolute;
    left: 0.8rem;
    color: rgba(95, 144, 255, 0.6);
    font-size: 0.8rem;
}

#tos strong {
    color: rgb(var(--accent-warm));
    font-weight: 700;
}

#tos section {
    margin-bottom: 0;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .tos-wrapper {
        grid-template-columns: 240px 1fr;
        gap: 2.5rem;
    }
    
    .toc-sidebar {
        top: 90px;
    }
    
    .tos-content {
        padding-right: 1rem;
    }
}

@media (max-width: 768px) {
    #tos .content {
        padding: 1.5rem;
    }
    
    #tos .header {
        margin-bottom: 1.5rem;
    }
    
    .tos-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .toc-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        max-height: 140px;
        overflow-y: auto;
        overflow-x: auto;
        margin-bottom: 2rem;
        background: linear-gradient(180deg, rgba(15, 20, 32, 0.95) 0%, rgba(10, 15, 28, 0.8) 100%);
        border: none;
        border-bottom: 1px solid rgba(95, 144, 255, 0.2);
        border-radius: 0;
        padding: 1rem 1.5rem;
        backdrop-filter: blur(12px);
        scrollbar-width: thin;
        scrollbar-color: rgba(95, 144, 255, 0.3) transparent;
    }
    
    .toc-sidebar::-webkit-scrollbar {
        height: 4px;
    }
    
    .toc-sidebar::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .toc-sidebar::-webkit-scrollbar-thumb {
        background: rgba(95, 144, 255, 0.3);
        border-radius: 2px;
    }
    
    .toc-sidebar::-webkit-scrollbar-thumb:hover {
        background: rgba(95, 144, 255, 0.5);
    }
    
    #tos .header {
        margin-top: 150px;
    }
    
    .tos-content {
        padding-right: 0;
    }
    
    .toc-list {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .toc-list li {
        flex: 0 0 auto;
    }
    
    .toc-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        white-space: nowrap;
        border-left: none;
        border-bottom: 2px solid transparent;
    }
    
    .toc-link:hover {
        border-bottom-color: rgb(var(--accent-cool));
        border-left: none;
    }
    
    .toc-link.toc-active {
        border-left: none;
        border-bottom: 2px solid rgb(var(--accent-cool));
        background: rgba(95, 144, 255, 0.08);
    }
    
    .toc-link::before {
        display: none;
    }
    
    .tos-content {
        padding-right: 0;
    }
    
    #tos h2 {
        font-size: 1.4rem;
        margin: 2rem 0 1rem 0;
        padding: 0.8rem 0;
    }
    
    #tos ol > li, #tos ul > li {
        padding: 0.9rem 1rem;
        margin-bottom: 0.9rem;
        font-size: 0.9rem;
    }
    
    #tos ol > li {
        padding-left: 2.2rem;
    }
    
    #tos ol > li::before {
        left: 0.7rem;
        top: 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    #tos .content {
        padding: 1rem;
    }
    
    .toc-sidebar {
        max-height: 120px;
        padding: 0.8rem 1rem;
    }
    
    .toc-header {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
        padding-bottom: 0.6rem;
    }
    
    .toc-list {
        gap: 0.3rem;
    }
    
    .toc-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }
    
    #tos .header {
        margin-top: 130px;
    }
    
    #tos h2 {
        font-size: 1.2rem;
        margin: 1.5rem 0 0.8rem 0;
        gap: 0.4rem;
    }
    
    #tos h2 i {
        font-size: 1.1rem;
    }
    
    #tos ol > li, #tos ul > li {
        padding: 0.8rem 0.9rem 0.8rem 2.2rem;
        margin-bottom: 0.8rem;
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

/* Contact Refresh Final Overrides */
#contact .contact-utility-bar {
    display: flex;
    justify-content: center;
    margin: 20px auto 0;
    max-width: 760px;
}

#contact .contact-policy-link {
    width: min(100%, 720px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    text-decoration: none;
    color: #eff3fb;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid rgba(112, 143, 255, 0.22);
    background:
        radial-gradient(circle at left top, rgba(var(--accent) / 0.18), transparent 40%),
        linear-gradient(145deg, rgba(10, 14, 26, 0.92), rgba(5, 7, 14, 0.98));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

#contact .contact-policy-copy,
#contact .social-card-copy,
#contact .social-link-copy {
    display: flex;
    flex-direction: column;
}

#contact .contact-policy-copy {
    gap: 6px;
    text-align: left;
}

#contact .contact-policy-label,
#contact .social-kicker {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

#contact .contact-policy-label {
    color: #aab3c7;
}

#contact .contact-policy-text {
    font-size: 14px;
    line-height: 1.6;
    color: #eef2f9;
}

#contact .contact-policy-link i {
    font-size: 20px;
    color: rgb(var(--accent));
    flex-shrink: 0;
}

#contact .contact-item {
    justify-content: space-between;
}

#contact .contact-item-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

#contact .contact-item-trailing {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 12px;
    flex-shrink: 0;
}

#contact .contact-meta {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.55;
    color: #98a4bb;
}

#contact .contact-action-hint {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #95a0b7;
}

#contact .social-card {
    background:
        radial-gradient(circle at top right, rgba(var(--accent) / 0.14), transparent 34%),
        linear-gradient(145deg, rgba(10, 14, 26, 0.92), rgba(4, 6, 12, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

#contact .social-card-header {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 18px;
    align-items: end;
    margin-bottom: 22px;
}

#contact .social-card-copy {
    gap: 8px;
}

#contact .social-kicker {
    color: #9aa6bd;
}

#contact .social-title {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.2rem, 1.8vw, 1.65rem);
    line-height: 1.15;
    color: #ffffff;
}

#contact .social-summary {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #9ca6ba;
    text-align: left;
}

#contact .social-links-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

#contact .social-link {
    display: flex;
    min-height: 88px;
    justify-content: flex-start;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(12, 16, 28, 0.94), rgba(7, 9, 16, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.09);
    gap: 14px;
    text-align: left;
}

#contact .social-link-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}

#contact .social-link-copy {
    gap: 4px;
    min-width: 0;
    flex: 1;
}

#contact .social-link-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

#contact .social-link-meta {
    font-size: 12px;
    line-height: 1.5;
    color: #98a2b5;
}

#contact .social-link-arrow {
    font-size: 13px;
    color: #8e99ae;
}

.footer-legal-link {
    color: #b8c2d8;
    text-decoration: none;
    margin-left: 14px;
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-legal-link:hover {
    color: #ffffff;
}

/* Light theme final overrides - EOF */
body[data-theme="light"] .site-notice-inner,
body[data-theme="light"] .fixed-nav,
body[data-theme="light"] .mobile-bottom-nav,
body[data-theme="light"] .footer-content,
body[data-theme="light"] .settings-toggle,
body[data-theme="light"] .mini-music-player,
body[data-theme="light"] .discord-card,
body[data-theme="light"] .discord-profile-card,
body[data-theme="light"] .presence-tile,
body[data-theme="light"] .music-player-card,
body[data-theme="light"] .spotify-history-card,
body[data-theme="light"] .weather-card,
body[data-theme="light"] .favorites-card,
body[data-theme="light"] .about-hero-card,
body[data-theme="light"] .about-panel-card,
body[data-theme="light"] .about-fact-card,
body[data-theme="light"] .project-card,
body[data-theme="light"] .settings-section,
body[data-theme="light"] .project-modal,
body[data-theme="light"] .playlist-modal,
body[data-theme="light"] .contact-modal,
body[data-theme="light"] .external-redirect-modal,
body[data-theme="light"] .welcome-guide-modal,
body[data-theme="light"] .welcome-tour-modal,
body[data-theme="light"] .wakeup-content,
body[data-theme="light"] #contact .contact-policy-link,
body[data-theme="light"] #contact .social-card,
body[data-theme="light"] #contact .social-link,
body[data-theme="light"] #contact .contact-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.998), rgba(251, 250, 246, 0.994));
    border-color: rgba(17, 17, 17, 0.1);
    box-shadow: 0 12px 28px rgba(15, 15, 15, 0.055);
}

body[data-theme="light"] .weather-day,
body[data-theme="light"] .discord-profile-card,
body[data-theme="light"] .presence-tile,
body[data-theme="light"] .project-modal-metric,
body[data-theme="light"] .project-modal-link,
body[data-theme="light"] .project-tag,
body[data-theme="light"] .project-modal-tag,
body[data-theme="light"] .project-banner-pill,
body[data-theme="light"] .music-slot-indicator,
body[data-theme="light"] .skills-pill,
body[data-theme="light"] .favorite-badge,
body[data-theme="light"] .favorite-link,
body[data-theme="light"] .settings-search-wrap,
body[data-theme="light"] .settings-reset-all,
body[data-theme="light"] .settings-action-btn,
body[data-theme="light"] .settings-category-btn,
body[data-theme="light"] .settings-segmented,
body[data-theme="light"] .section-search,
body[data-theme="light"] .section-search-empty,
body[data-theme="light"] #contact .social-link-icon,
body[data-theme="light"] .shortcut-item,
body[data-theme="light"] .status-badge,
body[data-theme="light"] .weather-day.weather-today,
body[data-theme="light"] .contact-item.donate-item {
    background: rgba(17, 17, 17, 0.028);
    border-color: rgba(17, 17, 17, 0.1);
    color: #1e1e1e;
    box-shadow: none;
}

body[data-theme="light"] .favorite-tile,
body[data-theme="light"] .favorite-meta {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.998), rgba(251, 250, 246, 0.994));
    border-color: rgba(17, 17, 17, 0.1);
    box-shadow: 0 12px 28px rgba(15, 15, 15, 0.055);
}

body[data-theme="light"] .favorite-media {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.998), rgba(248, 247, 243, 0.992));
    border-bottom-color: rgba(17, 17, 17, 0.08);
}

body[data-theme="light"] .favorite-media::after {
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.12) 72%, rgba(255, 255, 255, 0.28) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(245, 245, 241, 0.12) 52%, rgba(236, 236, 232, 0.26) 100%);
}

body[data-theme="light"] .favorite-media::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(245, 245, 241, 0.76) 100%);
}

body[data-theme="light"] .favorite-media img,
body[data-theme="light"] .music-album-art,
body[data-theme="light"] .album-art,
body[data-theme="light"] .mini-player-art,
body[data-theme="light"] .project-banner,
body[data-theme="light"] .project-modal-banner {
    filter: grayscale(1) contrast(1.02) brightness(0.985);
}

body[data-theme="light"] .track-item {
    border-bottom-color: rgba(17, 17, 17, 0.06);
}

body[data-theme="light"] .track-item:hover,
body[data-theme="light"] .favorite-tile:hover,
body[data-theme="light"] .discord-card:hover,
body[data-theme="light"] .music-player-card:hover,
body[data-theme="light"] .presence-tile:hover,
body[data-theme="light"] .project-card:hover,
body[data-theme="light"] .weather-day:hover {
    background: rgba(17, 17, 17, 0.03);
    border-color: rgba(17, 17, 17, 0.14);
    box-shadow: 0 16px 30px rgba(15, 15, 15, 0.07);
}

body[data-theme="light"] .history-title,
body[data-theme="light"] .track-name,
body[data-theme="light"] .music-title,
body[data-theme="light"] .music-artist,
body[data-theme="light"] .mini-player-title,
body[data-theme="light"] .weather-temp,
body[data-theme="light"] .weather-location,
body[data-theme="light"] .favorite-name,
body[data-theme="light"] .project-title,
body[data-theme="light"] .project-modal-intro h2,
body[data-theme="light"] .project-modal-section-title,
body[data-theme="light"] .settings-title,
body[data-theme="light"] .settings-item-title,
body[data-theme="light"] .presence-main,
body[data-theme="light"] #contact .contact-policy-text,
body[data-theme="light"] #contact .contact-value,
body[data-theme="light"] #contact .social-title,
body[data-theme="light"] #contact .social-link-title {
    color: #191919;
}

body[data-theme="light"] .tagline,
body[data-theme="light"] .history-tag,
body[data-theme="light"] .track-artist,
body[data-theme="light"] .weather-range,
body[data-theme="light"] .weather-desc,
body[data-theme="light"] .settings-item-desc,
body[data-theme="light"] .settings-section-title,
body[data-theme="light"] .favorite-desc,
body[data-theme="light"] .mini-player-artist,
body[data-theme="light"] .mini-player-label,
body[data-theme="light"] .skills-search-count,
body[data-theme="light"] .project-subtitle,
body[data-theme="light"] .project-desc,
body[data-theme="light"] .project-modal-description,
body[data-theme="light"] #project-modal-subtitle,
body[data-theme="light"] .status-badge,
body[data-theme="light"] .loading-kicker,
body[data-theme="light"] .wake-text,
body[data-theme="light"] .loading-status,
body[data-theme="light"] #contact .social-summary,
body[data-theme="light"] #contact .social-link-meta,
body[data-theme="light"] #contact .contact-policy-label,
body[data-theme="light"] #contact .contact-meta,
body[data-theme="light"] #contact .contact-action-hint,
body[data-theme="light"] #contact .social-link-arrow,
body[data-theme="light"] .footer-copy,
body[data-theme="light"] .footer-legal-link {
    color: #676767;
}

body[data-theme="light"] .bar,
body[data-theme="light"] .weather-icon,
body[data-theme="light"] .project-modal-highlight i,
body[data-theme="light"] .settings-title i,
body[data-theme="light"] .skills-section-title i,
body[data-theme="light"] .status-now,
body[data-theme="light"] .donate-icon,
body[data-theme="light"] #contact .contact-policy-link i,
body[data-theme="light"] #contact .social-link-icon i {
    color: #202020;
}

body[data-theme="light"] .status-now {
    background: rgba(17, 17, 17, 0.06);
}

body[data-theme="light"] .favorite-desc code,
body[data-theme="light"] .settings-shortcuts-intro kbd {
    background: rgba(17, 17, 17, 0.045);
    border-color: rgba(17, 17, 17, 0.1);
    color: #1b1b1b;
}

body[data-theme="light"] .settings-title i,
body[data-theme="light"] .skills-section-title i,
body[data-theme="light"] .project-modal-highlight i,
body[data-theme="light"] .weather-icon {
    opacity: 0.88;
}
/* Light theme corrective overrides - true EOF */
body[data-theme="light"] .favorite-media img,
body[data-theme="light"] .music-album-art,
body[data-theme="light"] .album-art,
body[data-theme="light"] .mini-player-art,
body[data-theme="light"] .project-banner,
body[data-theme="light"] .project-modal-banner,
body[data-theme="light"] .avatar {
    filter: none !important;
}

body[data-theme="light"] .discord-chip,
body[data-theme="light"] .discord-chip.status,
body[data-theme="light"] .discord-chip.device,
body[data-theme="light"] .discord-action,
body[data-theme="light"] .discord-action:hover,
body[data-theme="light"] .presence-primary,
body[data-theme="light"] .presence-icon,
body[data-theme="light"] .activity-card,
body[data-theme="light"] .activity-card.spotify,
body[data-theme="light"] .activity-card.vscode,
body[data-theme="light"] .activity-app-icon,
body[data-theme="light"] .mini-player-control,
body[data-theme="light"] .mini-player-play,
body[data-theme="light"] .mini-player-header-btn,
body[data-theme="light"] .status-now {
    background: rgba(20, 20, 20, 0.045) !important;
    background-image: none !important;
    border-color: rgba(20, 20, 20, 0.12) !important;
    box-shadow: none !important;
    color: #1b1f27 !important;
}

body[data-theme="light"] .discord-action:hover,
body[data-theme="light"] .presence-tile:hover,
body[data-theme="light"] .activity-card:hover,
body[data-theme="light"] .mini-player-control:hover,
body[data-theme="light"] .mini-player-header-btn:hover {
    transform: none;
    background: rgba(20, 20, 20, 0.07) !important;
    border-color: rgba(20, 20, 20, 0.16) !important;
}

body[data-theme="light"] .presence-tile::after,
body[data-theme="light"] .favorite-media::after,
body[data-theme="light"] .favorite-media::before {
    opacity: 0;
    background: none !important;
}

body[data-theme="light"] .status-indicator {
    border-color: #f6f4ef;
    box-shadow: none !important;
}

body[data-theme="light"] .mini-player-progress {
    background: rgba(20, 20, 20, 0.14);
}

body[data-theme="light"] .mini-player-progress-fill {
    background: #262626;
}

body[data-theme="light"] .username,
body[data-theme="light"] .status-text,
body[data-theme="light"] .identity-line,
body[data-theme="light"] .discord-meta,
body[data-theme="light"] .presence-main,
body[data-theme="light"] .activity-title,
body[data-theme="light"] .history-title,
body[data-theme="light"] .track-name,
body[data-theme="light"] .music-title,
body[data-theme="light"] .music-artist,
body[data-theme="light"] .mini-player-title,
body[data-theme="light"] .weather-location,
body[data-theme="light"] .weather-temp,
body[data-theme="light"] .favorite-name,
body[data-theme="light"] .project-title,
body[data-theme="light"] .project-modal-kicker,
body[data-theme="light"] .project-modal-intro h2,
body[data-theme="light"] .project-modal-section-title,
body[data-theme="light"] .project-modal-highlight,
body[data-theme="light"] .project-modal-link,
body[data-theme="light"] .project-modal-metric-value,
body[data-theme="light"] .settings-title,
body[data-theme="light"] .settings-item-title,
body[data-theme="light"] .skills-hero-title,
body[data-theme="light"] .skills-section-title,
body[data-theme="light"] .section-title,
body[data-theme="light"] .section-subtitle,
body[data-theme="light"] .section-lead,
body[data-theme="light"] #contact .contact-policy-text,
body[data-theme="light"] #contact .contact-value,
body[data-theme="light"] #contact .social-title,
body[data-theme="light"] #contact .social-link-title,
body[data-theme="light"] .site-notice-text,
body[data-theme="light"] .site-notice-dismiss {
    color: #1d2433 !important;
}

body[data-theme="light"] .presence-label,
body[data-theme="light"] .activity-type,
body[data-theme="light"] .activity-artist,
body[data-theme="light"] .activity-elapsed,
body[data-theme="light"] .history-tag,
body[data-theme="light"] .track-artist,
body[data-theme="light"] .mini-player-artist,
body[data-theme="light"] .mini-player-label,
body[data-theme="light"] .mini-player-volume,
body[data-theme="light"] .weather-subtitle,
body[data-theme="light"] .weather-updated,
body[data-theme="light"] .weather-range,
body[data-theme="light"] .weather-desc,
body[data-theme="light"] .weather-note,
body[data-theme="light"] .weather-current-meta,
body[data-theme="light"] .weather-day-label,
body[data-theme="light"] .favorite-desc,
body[data-theme="light"] .project-subtitle,
body[data-theme="light"] .project-desc,
body[data-theme="light"] #project-modal-subtitle,
body[data-theme="light"] .project-modal-description,
body[data-theme="light"] .project-modal-metric-label,
body[data-theme="light"] .settings-item-desc,
body[data-theme="light"] .settings-section-title,
body[data-theme="light"] .skills-hero-subtitle,
body[data-theme="light"] .skills-search-count,
body[data-theme="light"] .loading-kicker,
body[data-theme="light"] .wake-text,
body[data-theme="light"] .loading-status,
body[data-theme="light"] #contact .contact-policy-label,
body[data-theme="light"] #contact .contact-meta,
body[data-theme="light"] #contact .contact-action-hint,
body[data-theme="light"] #contact .social-summary,
body[data-theme="light"] #contact .social-link-meta,
body[data-theme="light"] #contact .social-link-arrow,
body[data-theme="light"] .footer-copy,
body[data-theme="light"] .footer-legal-link {
    color: #68707d !important;
}

body[data-theme="light"] .discord-card,
body[data-theme="light"] .discord-profile-card,
body[data-theme="light"] .presence-tile,
body[data-theme="light"] .spotify-history-card,
body[data-theme="light"] .music-player-card,
body[data-theme="light"] .weather-card,
body[data-theme="light"] .favorites-card,
body[data-theme="light"] .favorite-tile,
body[data-theme="light"] .favorite-meta,
body[data-theme="light"] .project-card,
body[data-theme="light"] .project-modal,
body[data-theme="light"] .playlist-modal,
body[data-theme="light"] .contact-modal,
body[data-theme="light"] .external-redirect-modal,
body[data-theme="light"] .welcome-guide-modal,
body[data-theme="light"] .welcome-tour-modal,
body[data-theme="light"] .wakeup-content,
body[data-theme="light"] #contact .contact-item,
body[data-theme="light"] #contact .social-card,
body[data-theme="light"] #contact .social-link {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.996), rgba(247, 246, 242, 0.992)) !important;
    border-color: rgba(20, 20, 20, 0.11) !important;
}
/* ABOUT EDITORIAL REDESIGN */
#about .content {
    gap: 24px;
}

.about-editorial {
    display: grid;
    gap: 18px;
    margin-bottom: 24px;
    align-items: start;
}

.about-surface {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(95, 144, 255, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(15, 18, 28, 0.95), rgba(8, 10, 18, 0.93));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    box-shadow: var(--shadow-panel);
}

.about-surface::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 38%);
    pointer-events: none;
}

.about-editorial-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px 12px;
    align-items: start;
    width: 100%;
}

.about-hero-copy,
.about-hero-visual {
    position: relative;
    z-index: 1;
}

.about-hero-copy {
    display: block;
    max-width: 78ch;
    padding: 0;
}

.about-hero-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: start;
}

.about-hero-branding {
    display: grid;
    gap: 10px;
}

.about-hero-status {
    justify-self: end;
}

.about-microfacts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about-microfact {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.about-hero-kicker,
.about-story-eyebrow,
.about-gallery-eyebrow,
.about-side-note-label {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}

.about-editorial-statement {
    margin: 0;
    max-width: 68ch;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(1.75rem, 3.8vw, 2.45rem);
    line-height: 1.16;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    font-weight: 700;
}

@media (min-width: 1100px) {
    .about-editorial-statement {
        max-width: 88ch;
        font-size: clamp(1.75rem, 2.6vw, 2.6rem);
    }
}

.about-editorial-intro,
.about-story-text,
.about-hero-side-note p,
.about-gallery-copy p,
.about-stat-detail {
    margin: 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    letter-spacing: 0.002em;
}

.about-hero-visual {
    display: block;
    gap: 14px;
    min-width: 0;
    justify-self: center;
    width: 100%;
    max-width: 460px;
}

@media (min-width: 1000px) {
    .about-editorial-hero {
        grid-template-columns: 1fr;
    }
}

.about-portrait-frame {
    position: relative;
    min-height: 420px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(8,10,14,0.18), rgba(8,10,14,0.12));
    box-shadow: 0 12px 34px rgba(3,8,16,0.4);
    width: 100%;
}

.about-portrait-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.about-portrait-slides {
    position: absolute;
    inset: 0;
}

.about-portrait-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    transform: scale(1.025);
    color: transparent;
    font-size: 0;
    text-indent: -9999px;
    transition: opacity 0.45s ease, transform 0.55s ease;
}

.about-portrait-slide.active.is-loaded {
    opacity: 1;
    transform: scale(1);
}

.about-portrait-slide.active {
    opacity: 1;
    transform: scale(1);
}

.about-portrait-controls {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    pointer-events: none;
}

.about-portrait-btn,
.about-portrait-dot {
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(8, 10, 18, 0.58);
    color: #ffffff;
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.about-portrait-btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.about-portrait-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(8, 10, 18, 0.42);
    backdrop-filter: blur(12px);
    pointer-events: auto;
}

.about-portrait-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
}

.about-portrait-dot.active {
    width: 18px;
    background: #ffffff;
}

.about-portrait-btn:hover,
.about-portrait-dot:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.44);
    background: rgba(255, 255, 255, 0.22);
}

.about-portrait-frame.has-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 10, 18, 0.08), rgba(8, 10, 18, 0.24));
    pointer-events: none;
}

.about-portrait-placeholder {
    position: absolute;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    gap: 8px;
    text-align: center;
    padding: 24px;
}

.about-portrait-placeholder span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(219, 230, 255, 0.68);
}

.about-portrait-placeholder strong {
    max-width: 22ch;
    color: var(--text-primary);
    font-size: 18px;
    line-height: 1.45;
}

.about-portrait-placeholder code {
    font-size: inherit;
    color: rgb(var(--accent-cool));
}

.about-side-note-panel {
    padding: 22px 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

body[data-theme="light"] .about-side-note-panel {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(20, 20, 20, 0.08);
}

.about-hero-side-note {
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.about-story-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 22px;
    align-items: start;
}

.about-story-card {
    padding: 26px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    min-height: 100%;
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
}

/* Center all tile content except explicitly wide story cards */
.about-story-card:not(.about-story-card-wide) {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-story-card:not(.about-story-card-wide) .about-story-text {
    text-align: center;
}

/* Also center the wide intro tile so 'Who I am' matches other tiles */
.about-intro-card,
.about-tiles-intro {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-intro-card .about-tile-icon,
.about-tiles-intro .about-tile-icon {
    margin: 0 auto 10px auto;
}

/* Ensure eyebrow labels sit centered under the icon even when other rules try to left-align */
#about .about-story-card.about-tile-card .about-tile-icon {
    margin-left: auto;
    margin-right: auto;
}

#about .about-story-card.about-tile-card > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center !important;
}

#about .about-story-card .about-story-eyebrow {
    display: block;
    text-align: center !important;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

/* Strongly enforce centering for the Intro / Tiles intro card (overrides global left-align) */
#about .about-story-card.about-intro-card > div,
#about .about-tiles-intro > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

#about .about-story-card.about-intro-card h3,
#about .about-tiles-intro h3,
#about .about-story-card.about-intro-card .about-story-eyebrow,
#about .about-tiles-intro .about-story-eyebrow {
    text-align: center !important;
}

/* Ensure icons are visually centered inside their circular background */
#about .about-story-card .about-tile-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

#about .about-story-card .about-tile-icon i {
    display: inline-block !important;
}

.about-tiles-intro {
    grid-column: 1 / -1;
    padding: 24px;
    align-items: center;
    justify-items: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
}

.about-tile-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
    font-size: 1.05rem;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

/* Tile cards: center icon and heading for a cleaner, card-like look */
.about-tile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-tile-card .about-tile-icon {
    margin-bottom: 8px;
}

.about-intro-card {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.14), rgba(255,255,255,0.03));
    border-color: rgba(74, 144, 226, 0.22);
}

.about-principles-card {
    background: linear-gradient(135deg, rgba(255, 120, 120, 0.13), rgba(255,255,255,0.025));
    border-color: rgba(255, 120, 120, 0.2);
}

.about-faith-card {
    background: linear-gradient(135deg, rgba(188, 130, 255, 0.14), rgba(255,255,255,0.025));
    border-color: rgba(188, 130, 255, 0.2);
}

.about-movement-card {
    background: linear-gradient(135deg, rgba(255, 180, 80, 0.13), rgba(255,255,255,0.025));
    border-color: rgba(255, 180, 80, 0.2);
}

.about-achievements-card {
    border-color: rgba(255, 195, 90, 0.22);
    background: linear-gradient(145deg, rgba(255, 195, 90, 0.12), rgba(255,255,255,0.025));
}

.about-achievements-wide {
    grid-column: 1 / -1;
    align-items: stretch;
}

.about-achievements-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.about-achievements-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.about-achievements-list {
    margin: 0;
    padding-left: 18px;
    color: var(--text-secondary);
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 10px 14px;
    line-height: 1.7;
    width: 100%;
}

.about-achievements-list li::marker {
    color: var(--text-primary);
}

.about-future-card {
    border-color: rgba(95, 180, 255, 0.22);
    background: linear-gradient(145deg, rgba(95, 180, 255, 0.09), rgba(255,255,255,0.025));
}

.about-erasmus-card {
    border-color: rgba(129, 92, 255, 0.22);
    background: linear-gradient(145deg, rgba(129, 92, 255, 0.08), rgba(255,255,255,0.025));
}

.about-business-card {
    border-color: rgba(72, 214, 147, 0.22);
    background: linear-gradient(145deg, rgba(72, 214, 147, 0.1), rgba(255,255,255,0.025));
}

.about-future-card {
    border-color: rgba(95, 180, 255, 0.22);
    background: linear-gradient(145deg, rgba(95, 180, 255, 0.1), rgba(255,255,255,0.025));
}

.about-story-card > div:last-child {
    flex: 1;
}

.about-story-card h3,
.about-gallery-head h3,
.about-metrics-panel h3,
.about-lifestyle-card h3,
.about-closing-card h3 {
    margin: 0 0 6px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(1.18rem, 1.7vw, 1.5rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

/* Center headings for tile cards specifically */
.about-tile-card h3 {
    text-align: center;
}

.about-story-card .about-story-text {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Quote decoration inside editorial hero */
.about-editorial-statement {
    position: relative;
    margin: 0;
}

.about-editorial-statement::before {
    content: "“";
    font-size: 2.6rem;
    opacity: 0.12;
    position: absolute;
    left: 12px;
    top: -8px;
    font-family: 'Georgia', serif;
}

.about-editorial-statement::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: rgba(255,255,255,0.045);
    border-radius: 2px;
}

.about-editorial-statement {
    padding-left: 18px;
}

/* Achievements two-column layout on wide screens */
@media (min-width: 1000px) {
    .about-achievements-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 24px;
    }
}

.about-story-card .about-story-text + .about-story-text {
    margin-top: 8px;
}

.about-story-card-wide {
    grid-column: auto;
}

.about-gallery-shell,
.about-metrics-panel,
.about-lifestyle-card,
.about-closing-card {
    padding: 22px;
}

/* Visual panel background mode: use background image for the whole visual area on desktop */
.about-editorial-hero.hero-bg-mode {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 26px;
    padding: 22px 20px;
    min-height: 320px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.about-editorial-hero.hero-bg-mode::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 8, 14, 0.45), rgba(10, 14, 24, 0.74));
    pointer-events: none;
    z-index: 1;
}

.about-editorial-hero.hero-bg-mode .about-hero-copy,
.about-editorial-hero.hero-bg-mode .about-hero-visual {
    position: relative;
    z-index: 2;
}

.about-editorial-hero.hero-bg-mode .about-hero-copy {
    /* fill hero area and remove inner boxed background */
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-editorial-hero.hero-bg-mode .about-hero-visual {
    padding: 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
}

.about-editorial-hero.hero-bg-mode .about-side-note-panel,
.about-editorial-hero.hero-bg-mode .about-hero-side-note {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
}

body[data-theme="light"] .about-editorial-hero.hero-bg-mode {
    filter: none;
}

body[data-theme="light"] .about-editorial-hero.hero-bg-mode::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(248, 248, 248, 0.9));
}

body[data-theme="light"] .about-editorial-hero.hero-bg-mode .about-hero-copy {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(220, 220, 228, 0.24);
}

body[data-theme="light"] .about-editorial-hero.hero-bg-mode .about-hero-visual {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(210, 210, 220, 0.22);
}

body[data-theme="light"] .about-editorial-hero.hero-bg-mode .about-side-note-panel,
body[data-theme="light"] .about-editorial-hero.hero-bg-mode .about-hero-side-note {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(208, 208, 216, 0.22);
    color: var(--text-secondary);
}

@media (min-width: 1000px) {
    .about-editorial-hero.hero-bg-mode { min-height: 500px; padding: 42px; }
}

/* New hero-reworked styles: full-bleed quote with decorative bar */
.hero-reworked {
    padding: 0;
    min-height: 320px;
    display: block;
    position: relative;
}

.hero-reworked .about-hero-quote {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 28px 32px;
    position: relative;
}

.hero-reworked .quote-text {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(1.4rem, 3.6vw, 2.6rem);
    line-height: 1.15;
    font-weight: 700;
    color: var(--text-primary);
    max-width: 78ch;
    margin: 0;
}

.hero-reworked .quote-author {
    margin: 12px 0 0 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
}

.hero-reworked .quote-text::before {
    content: "“";
    font-family: Georgia, serif;
    font-size: 2.8rem;
    color: rgba(255,255,255,0.12);
    margin-right: 8px;
    vertical-align: top;
}

.hero-reworked::before {
    /* thin decorative vertical bar at left */
    content: '';
    position: absolute;
    left: 20px;
    top: 18px;
    bottom: 18px;
    width: 2px;
    background: rgba(255,255,255,0.04);
    border-radius: 2px;
}

@media (max-width: 999px) {
    .hero-reworked .about-hero-quote {
        justify-content: center;
        padding: 22px;
        text-align: center;
    }

    .hero-reworked::before { left: 12px; }

    .hero-reworked .quote-text { font-size: clamp(1.6rem, 6.5vw, 2.2rem); }
}

.about-gallery-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.about-gallery-controls {
    display: grid;
    grid-template-columns: auto minmax(72px, 92px) auto;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.about-gallery-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.about-gallery-btn:hover {
    transform: translateY(-2px);
    background: rgba(var(--accent-cool), 0.14);
    border-color: rgba(var(--accent-cool), 0.28);
}

.about-gallery-btn:disabled {
    opacity: 0.45;
    cursor: default;
    transform: none;
}

.about-gallery-progress {
    position: relative;
    height: 4px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.about-gallery-progress-bar {
    display: block;
    width: 100%;
    height: 100%;
    transform-origin: left center;
    transform: scaleX(0.12);
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(95, 144, 255, 0.88));
    transition: transform 0.32s ease;
}

.about-gallery-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
    scroll-behavior: smooth;
    align-items: start;
}

.about-gallery-track::-webkit-scrollbar {
    display: none;
}

.about-gallery-card {
    scroll-snap-align: start;
    display: grid;
    gap: 14px;
    width: 100%;
}

.about-gallery-copy {
    padding-right: 6px;
}

.about-gallery-media {
    min-height: 220px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.about-gallery-image,
.about-gallery-placeholder {
    width: 100%;
    height: 100%;
}

.about-gallery-image {
    display: block;
    object-fit: cover;
    object-position: center center;
}

.about-gallery-placeholder {
    display: grid;
    align-content: end;
    gap: 8px;
    padding: 22px;
    background:
        linear-gradient(180deg, transparent, rgba(8, 10, 18, 0.82)),
        radial-gradient(circle at top right, rgba(95, 144, 255, 0.28), transparent 35%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 137, 92, 0.12), rgba(8, 10, 18, 0.94));
}

.about-gallery-placeholder span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(219, 230, 255, 0.72);
}

.about-gallery-placeholder strong {
    max-width: 14ch;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 24px;
    line-height: 1;
    color: var(--text-primary);
}

.about-gallery-theme-portrait {
    background:
        linear-gradient(180deg, transparent, rgba(8, 10, 18, 0.84)),
        radial-gradient(circle at 20% 20%, rgba(255, 137, 92, 0.26), transparent 32%),
        linear-gradient(135deg, rgba(26, 32, 48, 0.86), rgba(12, 14, 24, 0.98));
}

.about-gallery-theme-workspace {
    background:
        linear-gradient(180deg, transparent, rgba(8, 10, 18, 0.84)),
        radial-gradient(circle at 70% 18%, rgba(95, 144, 255, 0.3), transparent 32%),
        linear-gradient(135deg, rgba(18, 28, 42, 0.88), rgba(9, 12, 21, 0.98));
}

.about-gallery-theme-project {
    background:
        linear-gradient(180deg, transparent, rgba(8, 10, 18, 0.84)),
        linear-gradient(135deg, rgba(95, 144, 255, 0.26), rgba(255, 137, 92, 0.16), rgba(8, 10, 18, 0.96));
}

.about-gallery-theme-travel {
    background:
        linear-gradient(180deg, transparent, rgba(8, 10, 18, 0.84)),
        radial-gradient(circle at 30% 22%, rgba(114, 191, 147, 0.28), transparent 28%),
        linear-gradient(135deg, rgba(18, 30, 28, 0.88), rgba(10, 12, 18, 0.98));
}

.about-gallery-theme-roblox {
    background:
        linear-gradient(180deg, transparent, rgba(8, 10, 18, 0.84)),
        radial-gradient(circle at 80% 18%, rgba(255, 137, 92, 0.32), transparent 28%),
        linear-gradient(135deg, rgba(33, 24, 32, 0.88), rgba(8, 10, 18, 0.98));
}

.about-gallery-copy {
    display: grid;
    gap: 6px;
}

.about-gallery-copy h4 {
    margin: 0;
    font-size: 18px;
    line-height: 1.15;
    color: var(--text-primary);
}

.about-gallery-copy p {
    font-size: 14px;
    line-height: 1.65;
}

.about-metrics-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
}

.about-stat-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 12px;
}

.about-stat-top {
    display: grid;
    gap: 6px;
}

.about-stat-value {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1;
    letter-spacing: -0.06em;
    color: var(--text-primary);
}

.about-stat-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.about-stat-meter {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.about-stat-meter span {
    display: block;
    width: calc(var(--about-stat-progress, 0) * 100%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(95, 144, 255, 0.92), rgba(255, 137, 92, 0.82));
}

.about-closing-card {
    display: grid;
    gap: 12px;
    max-width: 100%;
}

body[data-theme="light"] .about-surface {
    background:
        radial-gradient(circle at top right, rgba(95, 144, 255, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 246, 255, 0.94));
    border-color: rgba(17, 24, 39, 0.08);
}

body[data-theme="light"] .about-gallery-btn,
body[data-theme="light"] .about-hero-side-note,
body[data-theme="light"] .about-stat-card,
body[data-theme="light"] .about-gallery-media {
    background: rgba(17, 24, 39, 0.04);
    border-color: rgba(17, 24, 39, 0.08);
}

body[data-theme="light"] .about-gallery-placeholder,
body[data-theme="light"] .about-portrait-frame {
    border-color: rgba(17, 24, 39, 0.08);
}

body[data-theme="light"] .about-gallery-placeholder span,
body[data-theme="light"] .about-portrait-placeholder span {
    color: rgba(71, 85, 105, 0.75);
}

body.reduce-motion .about-gallery-track,
body.performance-mode .about-gallery-track {
    scroll-behavior: auto;
}

body.reduce-motion .about-gallery-btn,
body.performance-mode .about-gallery-btn,
body.reduce-motion .about-gallery-progress-bar,
body.performance-mode .about-gallery-progress-bar {
    transition: none;
}

/* About surface reveal state */
.about-surface.is-visible,
.about-surface[data-reveal="true"].is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 520ms cubic-bezier(0.22,1,0.36,1), transform 520ms cubic-bezier(0.22,1,0.36,1);
}

/* Responsive editorial hero: two-column on wide screens, single on small */
.about-editorial-hero {
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 1000px) {
    .about-editorial-hero {
        grid-template-columns: 1fr 420px;
        align-items: center;
        gap: 28px;
    }

    .about-hero-copy {
        padding: 0 0 0 8px;
    }
}

@media (max-width: 999px) {
    .about-story-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .about-story-card {
        padding: 18px;
    }

    .about-tile-icon {
        width: 48px;
        height: 48px;
        font-size: 0.95rem;
    }
}

@media (max-width: 520px) {
    .about-tile-icon {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 760px) {
    .about-editorial-hero,
    .about-gallery-shell,
    .about-metrics-panel,
    .about-lifestyle-card,
    .about-closing-card,
    .about-story-card {
        padding: 20px;
    }

    .about-editorial-statement {
        max-width: none;
        font-size: clamp(2rem, 10vw, 3.1rem);
    }

    .about-hero-head,
    .about-gallery-head {
        align-items: start;
        flex-direction: column;
    }

    .about-gallery-controls {
        width: 100%;
        grid-template-columns: 40px minmax(0, 1fr) 40px;
    }

    .about-gallery-track {
        grid-auto-columns: 100%;
    }

    .about-portrait-frame,
    .about-gallery-media {
        min-height: 220px;
    }
}
