/* assets/css/style.css - Aurora Glassmorphism Bio Page */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg-deep: #0a0e1a;
    --card-bg: rgba(255, 255, 255, 0.055);
    --card-border: rgba(255, 255, 255, 0.12);
    --card-hover: rgba(255, 255, 255, 0.09);

    --aurora-teal: #2dd4bf;
    --aurora-pink: #f472b6;
    --aurora-gold: #fbbf24;
    --aurora-violet: #818cf8;

    --accent: var(--aurora-gold);
    --text-main: #f5f7fb;
    --text-muted: #9aa3b8;

    --transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    --radius-lg: 24px;
    --radius-md: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-deep);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Aurora animated background blobs */
.aurora-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
    will-change: transform;
}

.aurora-blob.b1 {
    width: 480px;
    height: 480px;
    background: var(--aurora-violet);
    top: -120px;
    left: -100px;
    animation: float1 22s ease-in-out infinite;
}

.aurora-blob.b2 {
    width: 420px;
    height: 420px;
    background: var(--aurora-pink);
    top: 30%;
    right: -140px;
    animation: float2 26s ease-in-out infinite;
}

.aurora-blob.b3 {
    width: 380px;
    height: 380px;
    background: var(--aurora-teal);
    bottom: -140px;
    left: 20%;
    animation: float3 20s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 80px) scale(1.15); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-70px, 50px) scale(1.1); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -60px) scale(1.2); }
}

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

.container {
    max-width: 620px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 4rem;
    position: relative;
    z-index: 1;
}

/* Profile header */
.profile-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.profile-avatar {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 8px rgba(251, 191, 36, 0.08), 0 20px 45px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, var(--aurora-violet), var(--aurora-pink));
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.profile-avatar .avatar-fallback {
    font-size: 3rem;
    font-weight: 800;
    color: white;
}

.profile-name {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--aurora-gold), var(--aurora-pink), var(--aurora-violet));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease infinite;
}

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

.profile-tagline {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 440px;
    margin: 0 auto;
}

.profile-bio {
    color: var(--text-muted);
    font-size: 0.92rem;
    max-width: 480px;
    margin: 1rem auto 0;
    line-height: 1.7;
}

/* Section labels */
.section-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    margin: 2.5rem 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-label::before,
.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--card-border), transparent);
}

/* Featured link (e.g. Shop) - stands out above the regular list */
.featured-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.featured-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    border-radius: var(--radius-md);
    background: linear-gradient(120deg, color-mix(in srgb, var(--featured-color) 28%, transparent), color-mix(in srgb, var(--featured-color) 10%, transparent));
    border: 1.5px solid color-mix(in srgb, var(--featured-color) 55%, transparent);
    box-shadow: 0 10px 30px color-mix(in srgb, var(--featured-color) 25%, transparent);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: featuredPulse 3s ease-in-out infinite;
}

@keyframes featuredPulse {
    0%, 100% { box-shadow: 0 10px 30px color-mix(in srgb, var(--featured-color) 25%, transparent); }
    50% { box-shadow: 0 10px 40px color-mix(in srgb, var(--featured-color) 45%, transparent); }
}

.featured-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: var(--featured-color);
}

.featured-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--featured-color);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--featured-color) 50%, transparent);
}

.featured-icon svg {
    width: 26px;
    height: 26px;
    fill: white;
}

.featured-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.featured-label {
    flex-grow: 1;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.2px;
}

.featured-arrow {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    fill: var(--text-main);
    transition: var(--transition);
}

.featured-card:hover .featured-arrow {
    transform: translateX(4px);
}

/* Link cards */
.link-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.link-card:hover::before {
    transform: translateX(100%);
}

.link-card:hover {
    background: var(--card-hover);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.link-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.link-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.link-icon svg {
    width: 22px;
    height: 22px;
    fill: white;
}

.link-label {
    flex-grow: 1;
    font-weight: 700;
    font-size: 1rem;
}

.link-arrow {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    fill: var(--text-muted);
    transition: var(--transition);
}

.link-card:hover .link-arrow {
    fill: var(--accent);
    transform: translateX(4px);
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
    background: var(--card-bg);
    border: 1px dashed var(--card-border);
    border-radius: var(--radius-md);
}

/* Footer */
.site-footer {
    text-align: center;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 0.82rem;
}

.site-footer a {
    color: var(--accent);
    font-weight: 600;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.footer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--card-border);
}

.footer-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--aurora-violet), var(--aurora-pink));
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
}

.footer-name {
    font-weight: 800;
    font-size: 1rem;
    background: linear-gradient(90deg, var(--aurora-gold), var(--aurora-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-tagline {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.footer-copyright {
    font-size: 0.78rem;
    opacity: 0.75;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Auth pages ---------- */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.auth-title {
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.4rem;
    background: linear-gradient(90deg, var(--aurora-gold), var(--aurora-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    color: var(--text-muted);
    text-align: center;
    font-size: 0.88rem;
    margin-bottom: 1.75rem;
}

.form-group {
    margin-bottom: 1.15rem;
}

.form-label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.form-input,
.form-select,
textarea.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.92rem;
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
textarea.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}

textarea.form-input {
    resize: vertical;
    min-height: 90px;
}

input[type="color"].form-input {
    padding: 4px;
    height: 46px;
}

.form-btn {
    width: 100%;
    background: linear-gradient(120deg, var(--aurora-gold), var(--aurora-pink));
    color: #1a1000;
    padding: 0.85rem;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(251, 191, 36, 0.3);
}

.form-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid var(--card-border);
}

.form-btn.danger {
    background: linear-gradient(120deg, #ef4444, #f472b6);
    color: white;
}

.alert {
    padding: 0.9rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-weight: 600;
    font-size: 0.88rem;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(45, 212, 191, 0.12);
    color: var(--aurora-teal);
    border-color: rgba(45, 212, 191, 0.3);
}

.alert-danger {
    background: rgba(244, 63, 94, 0.12);
    color: #fb7185;
    border-color: rgba(244, 63, 94, 0.3);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.auth-footer a {
    color: var(--accent);
    font-weight: 700;
}

/* ---------- Admin panel ---------- */
.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--card-border);
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-brand {
    font-weight: 800;
    font-size: 1.15rem;
    background: linear-gradient(90deg, var(--aurora-gold), var(--aurora-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-nav a {
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.admin-nav a:hover,
.admin-nav a.active {
    background: var(--card-bg);
    color: var(--text-main);
}

.admin-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    position: relative;
    z-index: 1;
}

.admin-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin-bottom: 2rem;
}

.admin-panel-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.admin-link-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.admin-link-row .thumb {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.admin-link-row .info {
    flex-grow: 1;
    min-width: 140px;
}

.admin-link-row .info strong {
    display: block;
    font-size: 0.92rem;
}

.admin-link-row .info span {
    color: var(--text-muted);
    font-size: 0.78rem;
    word-break: break-all;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-edit {
    background: rgba(129, 140, 248, 0.15);
    color: var(--aurora-violet);
    border-color: rgba(129, 140, 248, 0.3);
}

.btn-edit:hover {
    background: var(--aurora-violet);
    color: white;
}

.btn-delete {
    background: rgba(244, 63, 94, 0.15);
    color: #fb7185;
    border-color: rgba(244, 63, 94, 0.3);
}

.btn-delete:hover {
    background: #ef4444;
    color: white;
}

.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-upload-btn {
    border: 1px dashed var(--card-border);
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.2);
    padding: 1.1rem;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.file-upload-btn:hover {
    border-color: var(--accent);
    color: var(--text-main);
}

.file-upload-input {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 600;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
    cursor: pointer;
}

.field-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

.current-thumb-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.current-thumb-row img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--card-border);
}

/* ==========================================================================
   INTERACTIVE CANVAS & PARTICLES
   ========================================================================== */
#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
    opacity: 0.85;
}

/* ==========================================================================
   TOP FLOATING NAVIGATION BAR & HAMBURGER MENU
   ========================================================================== */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 66px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(10, 14, 26, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    transition: var(--transition);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-main);
    letter-spacing: -0.3px;
    user-select: none;
    cursor: pointer;
}

.nav-brand-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid rgba(251, 191, 36, 0.4);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.25);
    background: linear-gradient(135deg, var(--aurora-violet), var(--aurora-pink));
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.nav-brand-avatar span {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
}

.nav-brand-name {
    background: linear-gradient(90deg, #fff, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Nav tabs switch on header */
.nav-tab-pills {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: 999px;
    gap: 4px;
}

.nav-tab-pill {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

.nav-tab-pill:hover {
    color: var(--text-main);
}

.nav-tab-pill.active {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(244, 114, 182, 0.22));
    color: #fff;
    border: 1px solid rgba(251, 191, 36, 0.4);
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.2);
}

/* Hamburger 3-bar button */
.hamburger-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    padding: 0;
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.25);
    transform: scale(1.05);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Hamburger active transformation to X */
.hamburger-btn.is-active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--aurora-gold);
}

.hamburger-btn.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--aurora-gold);
}

/* ==========================================================================
   OFF-CANVAS DRAWER MENU
   ========================================================================== */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

.drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 86vw);
    z-index: 1200;
    background: rgba(14, 18, 32, 0.94);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1.5rem 1.25rem;
}

.nav-drawer.is-open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5rem;
}

.drawer-title {
    font-size: 1.15rem;
    font-weight: 800;
    background: linear-gradient(90deg, #fff, var(--aurora-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.drawer-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.drawer-close-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ef4444;
    transform: rotate(90deg);
}

.drawer-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.drawer-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-main);
    transition: var(--transition);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    width: 100%;
}

.drawer-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(251, 191, 36, 0.35);
    transform: translateX(4px);
}

.drawer-item.active {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(244, 114, 182, 0.15));
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.15);
}

.drawer-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.drawer-item-text {
    display: flex;
    flex-direction: column;
}

.drawer-item-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
}

.drawer-item-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.drawer-footer {
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-admin-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.drawer-admin-link:hover {
    color: var(--aurora-gold);
    border-color: var(--aurora-gold);
    background: rgba(251, 191, 36, 0.1);
}

/* ==========================================================================
   CONTAINER PADDING FOR FIXED TOPBAR
   ========================================================================== */
.container {
    padding-top: 5.5rem !important;
}

/* Quick badges under profile */
.profile-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 1.2rem auto 0;
    max-width: 480px;
}

.profile-badge-pill {
    font-size: 0.76rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(10px);
}

/* ==========================================================================
   IN-PAGE TAB NAVIGATION (LARGE PILL SWITCHER)
   ========================================================================== */
.page-tab-nav {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 6px;
    margin: 2rem auto 1.5rem;
    max-width: 480px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 15px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    z-index: 2;
}

.page-tab-btn:hover {
    color: var(--text-main);
}

.page-tab-btn.active {
    background: linear-gradient(135deg, #fbbf24 0%, #f472b6 100%);
    color: #0a0e1a;
    box-shadow: 0 4px 25px rgba(251, 191, 36, 0.45);
    font-weight: 800;
}

/* ==========================================================================
   TAB PANES & TRANSITIONS
   ========================================================================== */
.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    opacity: 0;
    transform: translateY(12px) scale(0.99);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tab-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: tabEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tabEnter {
    0% {
        opacity: 0;
        transform: translateY(16px) scale(0.985);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================================================
   TAB 1: TRANG CHỦ (DOWNLOADS & APK)
   ========================================================================== */
/* Search input */
.search-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 14px 18px 14px 46px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-family: inherit;
    font-size: 0.92rem;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--aurora-gold);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.25);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
}

.search-input:focus ~ .search-icon {
    fill: var(--aurora-gold);
}

/* Download Cards Grid */
.downloads-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.download-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.4rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Mouse radial glow border on card */
.download-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 21px;
    background: radial-gradient(350px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(251, 191, 36, 0.28), transparent 70%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

.download-card:hover {
    background: var(--card-hover);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4), 0 0 25px rgba(251, 191, 36, 0.15);
}

.download-card-body {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.app-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    transition: var(--transition);
}

.download-card:hover .app-icon {
    transform: scale(1.06) rotate(2deg);
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.25);
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-icon svg {
    width: 34px;
    height: 34px;
    fill: var(--aurora-gold);
}

.app-details {
    flex: 1;
    min-width: 0;
}

.app-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.app-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.app-badge {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 6px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.app-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.app-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.app-meta-tag svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
    opacity: 0.8;
}

.app-desc {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Download action row */
.download-action-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    gap: 10px;
}

.download-status-tag {
    font-size: 0.78rem;
    color: #22c55e;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.download-status-tag::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.55);
    background: linear-gradient(135deg, #059669 0%, #0891b2 100%);
}

.btn-download svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
    transition: transform 0.25s ease;
}

.btn-download:hover svg {
    transform: translateY(2px);
}

/* ==========================================================================
   RIPPLE EFFECT ON CLICKS
   ========================================================================== */
.ripple-wave {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: rippleAnim 0.6s linear;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 640px) {
    .top-nav {
        height: 60px;
        padding: 0 1rem;
    }
    .top-nav-inner {
        gap: 8px;
    }
    .nav-tab-pill {
        padding: 5px 10px;
        font-size: 0.76rem;
    }
    .container {
        padding: 4.8rem 1rem 3rem !important;
    }
    .profile-avatar {
        width: 104px;
        height: 104px;
    }
    .profile-name {
        font-size: 1.55rem;
    }
    .aurora-blob {
        filter: blur(60px);
        opacity: 0.35;
    }
    .aurora-blob.b1, .aurora-blob.b2, .aurora-blob.b3 {
        width: 280px;
        height: 280px;
    }
    .page-tab-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    .download-card {
        padding: 1.15rem;
    }
    .app-icon {
        width: 56px;
        height: 56px;
    }
    .app-title {
        font-size: 1.05rem;
    }
    .btn-download {
        padding: 8px 16px;
        font-size: 0.82rem;
    }
    .admin-topbar {
        padding: 1rem 1.25rem;
        flex-direction: column;
        align-items: flex-start;
    }
    .admin-container {
        padding: 1.5rem 1rem 3rem;
    }
    .admin-panel {
        padding: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aurora-blob, .profile-name, #bg-canvas {
        animation: none !important;
    }
    .reveal, .link-card, .download-card {
        transition: none !important;
    }
}

