:root {
    --bg-base: #f4faff;
    --cyan: #2563eb;
    --cyan-glow: rgba(37, 99, 235, 0.3);
    --surface: rgba(255, 255, 255, 0.9);
    --surface-border: rgba(37, 99, 235, 0.18);
    --text-main: #0f172a;
    --text-muted: #4b5f74;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body[data-theme="dark"] {
    --bg-base: #0a0f1e;
    --surface: rgba(15, 23, 42, 0.8);
    --surface-border: rgba(0, 240, 255, 0.1);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
}

body[data-theme="dark"] .text-gradient {
    background: linear-gradient(135deg, #e2e8f0 0%, #2563eb 55%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background: var(--bg-base);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
}

/* --- VŨ TRỤ CÔNG NGHÊ --- */
#universe-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at 15% 10%, rgba(47, 125, 246, 0.08) 0%, transparent 40%), radial-gradient(circle at 85% 90%, rgba(47, 125, 246, 0.06) 0%, transparent 40%);
    animation: breatheGlow 8s ease-in-out infinite alternate;
    will-change: opacity;
}

body[data-theme="dark"] .bg-glow {
    background: radial-gradient(circle at 15% 10%, rgba(47, 125, 246, 0.12) 0%, transparent 40%), radial-gradient(circle at 85% 90%, rgba(47, 125, 246, 0.08) 0%, transparent 40%);
}

@keyframes breatheGlow {
    0% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

/* --- GLASS PANEL --- */
.glass-panel {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(47, 125, 246, 0.08);
}

.glass-panel:hover {
    border-color: var(--cyan);
    box-shadow: 0 12px 30px rgba(47, 125, 246, 0.15);
    transform: translateY(-4px);
}

.glass-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 240, 255, 0.08), transparent 40%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.glass-panel:hover::before {
    opacity: 1;
}

.glass-panel>* {
    position: relative;
    z-index: 1;
}

/* --- NAVBAR & NGÔN NGỮ --- */
.navbar {
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: linear-gradient(to bottom, var(--surface) 0%, transparent 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--surface-border);
}

body[data-theme="dark"] .navbar {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.4) 80%, transparent 100%);
}

.nav-logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo i {
    color: var(--cyan);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
}

.nav-link:hover {
    color: var(--cyan);
    text-shadow: 0 0 10px var(--cyan-glow);
}

.lang-toggle {
    display: flex;
    align-items: center;
    background: var(--surface);
    padding: 6px;
    border-radius: 50px;
    border: 1px solid var(--surface-border);
    cursor: pointer;
}

.theme-toggle {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    color: var(--text-muted);
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 0 10px var(--cyan-glow);
}

.lang-toggle span {
    font-weight: 700;
    font-size: 0.9rem;
    padding: 2px 10px;
    border-radius: 50px;
    color: var(--text-muted);
    transition: 0.3s;
    position: relative;
}

.lang-toggle span.active {
    color: var(--text-main);
    background: rgba(37, 99, 235, 0.1);
}

.lang-separator {
    color: var(--surface-border);
    pointer-events: none;
}

/* NỬA TRÁI: HERO */
.hero-section {
    flex: 1;
    min-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-bottom: 20px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 14px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid var(--surface-border);
    color: var(--text-muted);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #27c93f;
    border-radius: 50%;
    box-shadow: 0 0 10px #27c93f;
    animation: blinkStatus 1.5s infinite;
}

@keyframes blinkStatus {

    0%,
    100% {
        box-shadow: 0 0 5px #27c93f;
    }

    50% {
        box-shadow: 0 0 15px #27c93f, 0 0 3px #fff;
    }
}

.hero-title {
    font-size: clamp(2.2rem, 3.8vw, 4.2rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 10px;
    letter-spacing: -1px;
    text-align: left;
    color: var(--text-main);
}

.text-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #2563eb 55%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.type-cursor {
    display: inline-block;
    width: 4px;
    background: var(--cyan);
    margin-left: 5px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    from,
    to {
        background-color: transparent
    }

    50% {
        background-color: var(--cyan);
    }
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 10px;
    margin-bottom: 25px;
    max-width: 95%;
}

.social-bar {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.social-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    color: var(--text-main);
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--cyan);
    color: #fff;
    border-color: var(--cyan);
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--cyan-glow);
}

/* NỬA PHẢI: BENTO GRID XẾP HÌNH */
.bento-wrapper {
    flex: 1.2;
    min-width: 480px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 12px;
}

.bento-box {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.bento-box:hover {
    transform: none;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1), 0 0 15px var(--cyan-glow);
}

.span-1 {
    grid-column: span 1;
}

.span-2 {
    grid-column: span 2;
}

.span-3 {
    grid-column: span 3;
}

.row-1 {
    grid-row: span 1;
}

.row-2 {
    grid-row: span 2;
}

.bento-avatar {
    align-items: center;
    text-align: center;
    padding: 10px;
}

.bento-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cyan);
    margin-bottom: 8px;
    box-shadow: 0 0 20px var(--cyan-glow);
}

.bento-avatar h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.bento-avatar p {
    color: var(--cyan);
    font-size: 0.8rem;
    font-weight: 600;
}

.bento-bio {
    justify-content: center;
}

.bento-bio h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.bento-bio p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.bento-terminal {
    padding: 0;
    justify-content: flex-start;
}

.term-header {
    background: rgba(0, 0, 0, 0.1);
    padding: 10px 15px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--surface-border);
}

.term-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.term-body {
    padding: 12px;
    font-family: 'Consolas', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

body[data-theme="dark"] .term-body {
    color: #a5b4fc;
}

.bento-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 8px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: var(--transition);
}

.tag-item i {
    font-size: 0.85rem;
    width: 14px;
    text-align: center;
}

.tag-item:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: var(--cyan);
    transform: translateY(-2px);
}

.tag-tech i {
    color: var(--cyan);
}

.tag-service i {
    color: #ffbd2e;
}

.tag-media i {
    color: #ec4899;
}

.tag-danger {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.05);
}

.tag-danger i {
    color: #ef4444;
}

.tag-danger:hover {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 0 15px #ef4444;
    border-color: #ef4444;
}

.tag-danger:hover i {
    color: #fff;
}

.price-badge {
    padding: 2px 6px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid var(--surface-border);
    border-radius: 6px;
    color: var(--cyan);
    font-size: 0.7rem;
    font-weight: 800;
    margin-left: 4px;
    transition: var(--transition);
}

.tag-item:hover .price-badge {
    background: var(--cyan);
    color: #fff;
    border-color: var(--cyan);
}

.github-chart {
    width: 100%;
    border-radius: 12px;
    filter: hue-rotate(180deg) brightness(1.2);
    opacity: 0.9;
    object-fit: contain;
    max-height: 85px;
}

body[data-theme="dark"] .github-chart {
    filter: hue-rotate(0deg) brightness(1) contrast(1.1);
}

/* --- SKILLS SUMMARY TABLE --- */
.skills-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    text-align: left;
}

.skills-summary-table td {
    padding: 8px 0;
    vertical-align: top;
    border-bottom: 1px solid var(--surface-border);
}

.skills-summary-table tr:last-child td {
    border-bottom: none;
}

.skills-summary-table .category-col {
    font-weight: 700;
    color: var(--cyan);
    width: 30%;
    padding-right: 10px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.skills-summary-table .skills-col {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.skills-summary-table .tag-item {
    margin-bottom: 0;
}

/* --- SEARCH BAR & VAULT --- */
.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto 30px auto;
    width: 100%;
}

.search-container i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cyan);
    font-size: 1.1rem;
}

.search-input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border-radius: 50px;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    color: var(--text-main);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.05);
}

.search-input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 20px var(--cyan-glow);
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title::before,
.section-title::after {
    content: '';
    height: 1px;
    width: 50px;
    background: var(--surface-border);
}

.tabs-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    cursor: pointer;
    padding: 10px 25px;
    border-radius: 30px;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    color: var(--text-muted);
    font-weight: 700;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.tab-btn.active {
    background: var(--cyan);
    color: #fff;
    border-color: var(--cyan);
    box-shadow: 0 0 15px var(--cyan-glow);
}

.tab-btn:hover:not(.active) {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--cyan);
    color: var(--cyan);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    color: var(--text-main);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.page-btn.active {
    background: var(--cyan);
    color: #fff;
    border-color: var(--cyan);
    box-shadow: 0 0 15px var(--cyan-glow);
}

.page-btn:hover:not(.active) {
    background: rgba(37, 99, 235, 0.2);
    border-color: var(--cyan);
    color: var(--cyan);
}

/* --- MODALS (Project, Donate, Saved) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
}

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

.modal-container {
    width: 90%;
    max-width: 650px;
    padding: 40px;
    text-align: center;
    transform: translateY(30px) scale(0.95);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-container::-webkit-scrollbar {
    width: 6px;
}

.modal-container::-webkit-scrollbar-thumb {
    background: var(--surface-border);
    border-radius: 10px;
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    transition: 0.3s;
    cursor: pointer;
}

.modal-close:hover {
    color: #ff5f56;
    transform: rotate(90deg);
}

.modal-header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.modal-icon {
    font-size: 3.5rem;
    color: var(--cyan);
    text-shadow: 0 0 20px var(--cyan-glow);
}

.share-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--surface-border);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    top: 20px;
    left: 20px;
    cursor: pointer;
}

.share-btn:hover {
    background: var(--cyan);
    color: #fff;
    border-color: var(--cyan);
}

.modal-container h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.modal-container p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

.modal-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.modal-topics {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.stat-tag {
    padding: 6px 14px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--surface-border);
}

.topic-tag {
    padding: 4px 10px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--cyan);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.loading-text {
    color: var(--cyan);
    font-size: 0.9rem;
    animation: blink 1s infinite alternate;
    margin-bottom: 20px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 250px;
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    display: none;
    border: 1px solid var(--surface-border);
    background: rgba(0, 0, 0, 0.2);
}

.slider-images {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

.slider-images img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 1.2rem;
    transition: 0.2s;
    cursor: pointer;
}

.slider-btn:hover {
    background: var(--cyan);
    color: #fff;
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.modal-action-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.modal-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    background: var(--surface);
    border: 1px solid var(--cyan);
    color: var(--cyan);
    font-weight: 800;
    font-size: 1.05rem;
    border-radius: 12px;
    text-decoration: none;
    transition: 0.3s;
}

.modal-btn:hover {
    background: var(--cyan);
    color: #fff;
    box-shadow: 0 0 25px var(--cyan-glow);
    transform: translateY(-3px);
}

.btn-download {
    background: var(--cyan);
    color: #fff;
    border-color: var(--cyan);
}

.btn-download:hover {
    background: #fff;
    border-color: #fff;
    color: #000;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

.btn-issue {
    border-color: #ef4444;
    color: #ef4444;
}

.btn-issue:hover {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.4);
    border-color: #ef4444;
}

#projectModal {
    z-index: 100001;
}

#savedModal {
    z-index: 100000;
}

/* --- DONATE WIDGET --- */
.donate-btn {
    background: linear-gradient(45deg, #ffbd2e, #ff9e00);
    color: #000;
    border: none;
    padding: 6px 15px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(255, 189, 46, 0.4);
    white-space: nowrap;
    font-family: inherit;
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 189, 46, 0.6);
}

.donate-presets {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.preset-btn {
    padding: 8px 20px;
    border-radius: 8px;
    background: rgba(255, 189, 46, 0.1);
    border: 1px solid rgba(255, 189, 46, 0.3);
    color: #ffbd2e;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.preset-btn:hover,
.preset-btn.active {
    background: #ffbd2e;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 189, 46, 0.4);
}

.amount-input-wrapper {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.amount-input {
    text-align: center;
    padding-right: 50px;
    font-weight: 800;
    font-size: 1.2rem;
    color: #ffbd2e;
    border-color: rgba(255, 189, 46, 0.3);
    box-shadow: none;
}

.amount-input:focus {
    border-color: #ffbd2e;
    box-shadow: 0 0 20px rgba(255, 189, 46, 0.2);
}

.currency-label {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-weight: bold;
    pointer-events: none;
}

.qr-container {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 15px;
}

/* --- UTILITIES (NO RESULTS, SKELETON, TOAST) --- */
.skeleton-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    min-height: 220px;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    margin-bottom: 20px;
}

.skeleton-title {
    height: 22px;
    width: 70%;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 6px;
    margin-bottom: 15px;
}

.skeleton-text {
    height: 12px;
    width: 100%;
    background: rgba(37, 99, 235, 0.03);
    border-radius: 4px;
    margin-bottom: 10px;
}

.skeleton-text.short {
    width: 50%;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

#toast {
    position: fixed;
    top: 30px;
    right: 30px;
    transform: translateX(150%);
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--cyan);
    color: var(--text-main);
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 15px var(--cyan-glow);
    z-index: 999999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

#toast.show {
    transform: translateX(0);
    opacity: 1;
}

#toast i {
    color: var(--cyan);
    font-size: 1.4rem;
}

.no-results {
    display: none;
    text-align: center;
    padding: 60px 20px;
    margin: 20px auto;
    width: 100%;
    max-width: 600px;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.no-results i {
    font-size: 3.5rem;
    color: var(--cyan);
    margin-bottom: 20px;
    opacity: 0.7;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.no-results p {
    color: var(--text-muted);
    font-size: 1rem;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
    color: var(--cyan);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 99;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--cyan);
    color: #fff;
    box-shadow: 0 0 20px var(--cyan-glow);
    transform: translateY(-5px);
}

/* --- BIO CARD LAYOUT --- */
.top-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 110px;
    margin-bottom: 48px;
    align-items: start;
}

.hero-section {
    min-width: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 30px 32px;
    width: 100%;
    max-width: 1120px;
    border-radius: 28px;
    margin: 0 auto;
}

.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--cyan);
    box-shadow: 0 0 24px var(--cyan-glow);
    flex-shrink: 0;
}

.profile-main {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
    line-height: 1.3;
}

.profile-handle {
    color: var(--cyan);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    align-items: center;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.16);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 700;
}

.meta-pill i {
    color: var(--cyan);
}

.bio-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.info-card {
    padding: 22px 24px;
    border-radius: 22px;
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.info-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.03);
    border: 1px solid rgba(37, 99, 235, 0.05);
}

.info-item strong {
    color: var(--text-main);
    font-size: 0.92rem;
}

.info-item span {
    color: var(--cyan);
    font-size: 0.8rem;
    font-weight: 700;
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.skill-pill {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.16);
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 700;
}

.contact-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    background: rgba(37, 99, 235, 0.08);
    color: var(--text-main);
}

.github-card img {
    margin-top: 10px;
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--surface-border);
}

/* --- PROJECT SECTION --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.project-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-main);
}

.project-card .project-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--surface-border);
}

.project-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 12px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-card:hover h4 {
    color: var(--cyan);
}

/* --- DESKTOP ONE-PAGE FIX --- */
@media (min-width: 1025px) {
    body {
        min-height: 100vh;
        overflow-x: hidden;
    }

    .container {
        min-height: auto;
        display: block;
        padding-top: 50px;
    }

    .top-layout {
        margin-top: 0;
        margin-bottom: 0;
        align-items: stretch;
    }

    .hero-section {
        justify-content: center;
        flex: 0.9;
    }

    .back-to-top {
        bottom: 20px;
        left: 20px;
    }
}

@media (max-width: 1024px) {
    .top-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .hero-section {
        min-width: 100%;
        max-width: 100%;
        align-items: center;
        text-align: center;
        margin-bottom: 0px;
    }

    .hero-title {
        text-align: center;
    }

    .social-bar {
        justify-content: center;
    }

    .bio-stack {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        width: 94%;
        padding: 0 8px;
    }

    .top-layout {
        margin-top: 90px;
        gap: 18px;
    }

    .profile-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 18px;
        border-radius: 22px;
        gap: 18px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
        margin-bottom: 8px;
    }

    .hero-title {
        font-size: clamp(1.7rem, 6.5vw, 2.4rem);
        text-align: left;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        max-width: 100%;
        margin-bottom: 18px;
    }

    .profile-name {
        font-size: 1.08rem;
        line-height: 1.35;
    }

    .profile-meta {
        margin-top: 12px;
        justify-content: flex-start;
    }

    .meta-pill {
        font-size: 0.78rem;
        padding: 6px 10px;
    }

    .social-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .info-card {
        padding: 18px 16px;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-logo {
        font-size: 0.95rem;
    }

    .nav-actions {
        gap: 8px;
    }

    .lang-toggle {
        padding: 4px;
    }

    .lang-toggle span {
        font-size: 0.8rem;
    }

    .donate-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        left: auto;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 14px 12px;
        gap: 8px;
    }

    .nav-actions {
        width: 100%;
        justify-content: space-between;
    }

    .profile-card {
        padding: 16px;
    }

    .profile-avatar {
        width: 84px;
        height: 84px;
    }

    .hero-title {
        font-size: 1.55rem;
    }

    .hero-subtitle {
        font-size: 0.86rem;
    }

    .social-bar {
        gap: 8px;
    }

    .skill-pill {
        font-size: 0.75rem;
    }
}

border-radius: 50px;
border: 1px solid var(--surface-border);
cursor: pointer;
}

.lang-toggle span {
    color: var(--text-muted);
    transition: 0.3s;
    position: relative;
}

.lang-toggle span.active {
    color: var(--cyan);
}

.lang-toggle span:hover {
    color: #fff;
}

.lang-separator {
    color: var(--surface-border);
    pointer-events: none;
}

/* --- BỐ CỤC CHIA ĐÔI HOÀN HẢO --- */
.container {
    max-width: 1500px;
    width: 95%;
    margin: 0 auto;
    padding: 0 20px;
    padding: 0 20px 80px;
}

.top-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 4vw;
    margin-top: 100px;
    margin-bottom: 20px;
    align-items: center;
    justify-content: space-between;
}

/* NỬA TRÁI: HERO */
.hero-section {
    flex: 1;
    min-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding-bottom: 20px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 14px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid var(--surface-border);
    color: var(--text-muted);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #27c93f;
    border-radius: 50%;
    box-shadow: 0 0 10px #27c93f;
    animation: blinkStatus 1.5s infinite;
}

.hero-title {
    font-size: clamp(2.2rem, 3.8vw, 4.2rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 10px;
    letter-spacing: -1px;
    text-align: left;
    color: var(--text-main);
}

.text-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #2563eb 55%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.type-cursor {
    display: inline-block;
    width: 4px;
    background: var(--cyan);
    margin-left: 5px;
    animation: blink 1s step-end infinite;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 10px;
    margin-bottom: 25px;
    max-width: 95%;
}

.social-bar {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.social-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    color: var(--text-main);
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--cyan);
    color: #000;
    border-color: var(--cyan);
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--cyan);
}

/* NỬA PHẢI: BENTO GRID XẾP HÌNH */
.bento-wrapper {
    flex: 1.2;
    min-width: 480px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 12px;
}

.bento-box {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.bento-box:hover {
    transform: none;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 240, 255, 0.1);
}

.span-1 {
    grid-column: span 1;
}

.span-2 {
    grid-column: span 2;
}

.span-3 {
    grid-column: span 3;
}

.row-1 {
    grid-row: span 1;
}

.row-2 {
    grid-row: span 2;
}

.bento-avatar {
    align-items: center;
    text-align: center;
    padding: 10px;
}

.bento-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cyan);
    margin-bottom: 8px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.bento-avatar h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.bento-avatar p {
    color: var(--cyan);
    font-size: 0.8rem;
    font-weight: 600;
}

.bento-bio {
    justify-content: center;
}

.bento-bio h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.bento-bio p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.bento-terminal {
    padding: 0;
    justify-content: flex-start;
}

.term-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 15px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--surface-border);
}

.term-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.term-body {
    padding: 12px;
    font-family: 'Consolas', monospace;
    font-size: 0.8rem;
    color: #a5b4fc;
}

.bento-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 8px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.tag-item i {
    font-size: 0.85rem;
    width: 14px;
    text-align: center;
}

.tag-item:hover {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--cyan-glow);
    transform: translateY(-2px);
}

.tag-tech i {
    color: var(--cyan);
}

.tag-service i {
    color: #ffbd2e;
}

.tag-media i {
    color: #ec4899;
}

.tag-danger {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.05);
}

.tag-danger i {
    color: #ef4444;
}

.tag-danger:hover {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 0 15px #ef4444;
    border-color: #ef4444;
}

.tag-danger:hover i {
    color: #fff;
}

.price-badge {
    padding: 2px 6px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--surface-border);
    border-radius: 6px;
    color: var(--cyan);
    font-size: 0.7rem;
    font-weight: 800;
    margin-left: 4px;
    transition: var(--transition);
}

.tag-item:hover .price-badge {
    background: var(--cyan);
    color: #000;
    border-color: var(--cyan);
}

.github-chart {
    width: 100%;
    border-radius: 12px;
    filter: hue-rotate(180deg) brightness(1.2);
    opacity: 0.9;
    object-fit: contain;
    max-height: 85px;
}

/* --- SKILLS SUMMARY TABLE --- */
.skills-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    text-align: left;
}

.skills-summary-table td {
    padding: 8px 0;
    vertical-align: top;
    border-bottom: 1px solid var(--surface-border);
}

.skills-summary-table tr:last-child td {
    border-bottom: none;
}

.skills-summary-table .category-col {
    font-weight: 700;
    color: var(--cyan);
    width: 30%;
    padding-right: 10px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.skills-summary-table .skills-col {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.skills-summary-table .tag-item {
    margin-bottom: 0;
}

/* --- SEARCH BAR & VAULT --- */
.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto 30px auto;
    width: 100%;
}

.search-container i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cyan);
    font-size: 1.1rem;
}

.search-input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--surface-border);
    color: var(--text-main);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.search-input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
    background: rgba(15, 20, 35, 0.8);
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title::before,
.section-title::after {
    content: '';
    height: 1px;
    width: 50px;
    background: var(--surface-border);
}

.tabs-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    cursor: pointer;
    padding: 10px 25px;
    border-radius: 30px;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    color: var(--text-muted);
    font-weight: 700;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.tab-btn.active {
    background: var(--cyan);
    color: #000;
    border-color: var(--cyan);
    box-shadow: 0 0 15px var(--cyan-glow);
}

.tab-btn:hover:not(.active) {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--cyan);
    color: var(--cyan);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    color: var(--text-main);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.page-btn.active {
    background: var(--cyan);
    color: #000;
    border-color: var(--cyan);
    box-shadow: 0 0 15px var(--cyan-glow);
}

.page-btn:hover:not(.active) {
    background: rgba(0, 240, 255, 0.2);
    border-color: var(--cyan);
    color: var(--cyan);
}

/* --- MODALS (Project, Donate, Saved) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
}

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

.modal-container {
    width: 90%;
    max-width: 650px;
    padding: 40px;
    text-align: center;
    transform: translateY(30px) scale(0.95);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: var(--surface);
    border: 1px solid var(--cyan-glow);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-container::-webkit-scrollbar {
    width: 6px;
}

.modal-container::-webkit-scrollbar-thumb {
    background: var(--surface-border);
    border-radius: 10px;
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    transition: 0.3s;
    cursor: pointer;
}

.modal-close:hover {
    color: #ff5f56;
    transform: rotate(90deg);
}

.modal-header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.modal-icon {
    font-size: 3.5rem;
    color: var(--cyan);
    text-shadow: 0 0 20px var(--cyan-glow);
}

.share-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    top: 20px;
    left: 20px;
    cursor: pointer;
}

.share-btn:hover {
    background: var(--cyan);
    color: #000;
    border-color: var(--cyan);
}

.modal-container h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #fff;
}

.modal-container p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

.modal-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.modal-topics {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.stat-tag {
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--surface-border);
}

.topic-tag {
    padding: 4px 10px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--cyan);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.loading-text {
    color: var(--cyan);
    font-size: 0.9rem;
    animation: blink 1s infinite alternate;
    margin-bottom: 20px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 250px;
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    display: none;
    border: 1px solid var(--surface-border);
    background: rgba(0, 0, 0, 0.5);
}

.slider-images {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

.slider-images img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 1.2rem;
    transition: 0.2s;
    cursor: pointer;
}

.slider-btn:hover {
    background: var(--cyan);
    color: #000;
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.modal-action-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.modal-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    background: var(--surface);
    border: 1px solid var(--cyan);
    color: var(--cyan);
    font-weight: 800;
    font-size: 1.05rem;
    border-radius: 12px;
    text-decoration: none;
    transition: 0.3s;
}

.modal-btn:hover {
    background: var(--cyan);
    color: #000;
    box-shadow: 0 0 25px var(--cyan-glow);
    transform: translateY(-3px);
}

.btn-download {
    background: var(--cyan);
    color: #000;
    border-color: var(--cyan);
}

.btn-download:hover {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

.btn-issue {
    border-color: #ef4444;
    color: #ef4444;
}

.btn-issue:hover {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.4);
    border-color: #ef4444;
}

#projectModal {
    z-index: 100001;
}

#savedModal {
    z-index: 100000;
}

/* --- DONATE WIDGET --- */
.donate-btn {
    background: linear-gradient(45deg, #ffbd2e, #ff9e00);
    color: #000;
    border: none;
    padding: 6px 15px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(255, 189, 46, 0.4);
    white-space: nowrap;
    font-family: inherit;
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 189, 46, 0.6);
}

.donate-presets {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.preset-btn {
    padding: 8px 20px;
    border-radius: 8px;
    background: rgba(255, 189, 46, 0.1);
    border: 1px solid rgba(255, 189, 46, 0.3);
    color: #ffbd2e;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.preset-btn:hover,
.preset-btn.active {
    background: #ffbd2e;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 189, 46, 0.4);
}

.amount-input-wrapper {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.amount-input {
    text-align: center;
    padding-right: 50px;
    font-weight: 800;
    font-size: 1.2rem;
    color: #ffbd2e;
    border-color: rgba(255, 189, 46, 0.3);
    box-shadow: none;
}

.amount-input:focus {
    border-color: #ffbd2e;
    box-shadow: 0 0 20px rgba(255, 189, 46, 0.2);
}

.currency-label {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-weight: bold;
    pointer-events: none;
}

.qr-container {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 15px;
}

/* --- UTILITIES (NO RESULTS, SKELETON, TOAST) --- */
.skeleton-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    min-height: 220px;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(0, 240, 255, 0.1);
    margin-bottom: 20px;
}

.skeleton-title {
    height: 22px;
    width: 70%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin-bottom: 15px;
}

.skeleton-text {
    height: 12px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-bottom: 10px;
}

.skeleton-text.short {
    width: 50%;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

#toast {
    position: fixed;
    top: 30px;
    right: 30px;
    transform: translateX(150%);
    background: rgba(10, 15, 30, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid var(--cyan);
    color: #fff;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 240, 255, 0.2);
    z-index: 999999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

#toast.show {
    transform: translateX(0);
    opacity: 1;
}

#toast i {
    color: var(--cyan);
    font-size: 1.4rem;
}

.no-results {
    display: none;
    text-align: center;
    padding: 60px 20px;
    margin: 20px auto;
    width: 100%;
    max-width: 600px;
    animation: fadeIn 0.4s ease forwards;
}

.no-results i {
    font-size: 3.5rem;
    color: var(--cyan);
    margin-bottom: 20px;
    opacity: 0.7;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.no-results p {
    color: var(--text-muted);
    font-size: 1rem;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
    color: var(--cyan);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 99;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--cyan);
    color: #000;
    box-shadow: 0 0 20px var(--cyan-glow);
    transform: translateY(-5px);
}

/* --- BIO CARD LAYOUT --- */
.top-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 110px;
    margin-bottom: 48px;
    align-items: start;
}

.hero-section {
    min-width: 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 30px 32px;
    width: 100%;
    max-width: 1120px;
    border-radius: 28px;
    margin: 0 auto;
}

.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--cyan);
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.2);
    flex-shrink: 0;
}

.profile-main {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
    line-height: 1.3;
}

.profile-handle {
    color: var(--cyan);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    align-items: center;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.16);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 700;
}

.meta-pill i {
    color: var(--cyan);
}

.bio-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.info-card {
    padding: 22px 24px;
    border-radius: 22px;
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.info-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item strong {
    color: var(--text-main);
    font-size: 0.92rem;
}

.info-item span {
    color: var(--cyan);
    font-size: 0.8rem;
    font-weight: 700;
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.skill-pill {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.16);
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 700;
}

.contact-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    background: rgba(37, 99, 235, 0.08);
    color: var(--text-main);
}

.github-card img {
    margin-top: 10px;
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- PROJECT SECTION --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.project-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-main);
}

.project-card .project-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--surface-border);
}

.project-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 12px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-card:hover h4 {
    color: var(--cyan);
}

/* --- DESKTOP ONE-PAGE FIX --- */
@media (min-width: 1025px) {
    body {
        min-height: 100vh;
        overflow-x: hidden;
    }

    .container {
        min-height: auto;
        display: block;
        padding-top: 50px;
    }

    .top-layout {
        margin-top: 0;
        margin-bottom: 0;
        align-items: stretch;
    }

    .hero-section {
        justify-content: center;
        flex: 0.9;
    }

    .back-to-top {
        bottom: 20px;
        left: 20px;
    }
}

@media (max-width: 1024px) {
    .top-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .hero-section {
        min-width: 100%;
        max-width: 100%;
        align-items: center;
        text-align: center;
        margin-bottom: 0px;
    }

    .hero-title {
        text-align: center;
    }

    .social-bar {
        justify-content: center;
    }

    .bio-stack {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        width: 94%;
        padding: 0 8px;
    }

    .top-layout {
        margin-top: 90px;
        gap: 18px;
    }

    .profile-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 18px;
        border-radius: 22px;
        gap: 18px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
        margin-bottom: 8px;
    }

    .hero-title {
        font-size: clamp(1.7rem, 6.5vw, 2.4rem);
        text-align: left;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        max-width: 100%;
        margin-bottom: 18px;
    }

    .profile-name {
        font-size: 1.08rem;
        line-height: 1.35;
    }

    .profile-meta {
        margin-top: 12px;
        justify-content: flex-start;
    }

    .meta-pill {
        font-size: 0.78rem;
        padding: 6px 10px;
    }

    .social-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .info-card {
        padding: 18px 16px;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-logo {
        font-size: 0.95rem;
    }

    .nav-actions {
        gap: 8px;
    }

    .lang-toggle {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .donate-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        left: auto;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 14px 12px;
        gap: 8px;
    }

    .nav-actions {
        width: 100%;
        justify-content: space-between;
    }

    .profile-card {
        padding: 16px;
    }

    .profile-avatar {
        width: 84px;
        height: 84px;
    }

    .hero-title {
        font-size: 1.55rem;
    }

    .hero-subtitle {
        font-size: 0.86rem;
    }

    .social-bar {
        gap: 8px;
    }

    .skill-pill {
        font-size: 0.75rem;
    }
}