@font-face {
    font-family: 'Minecraft Seven';
    src: url('/Minecraft Seven_2.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #9d69ff;
    --primary-glow: rgba(157, 105, 255, 0.25);
    --secondary: #a855f7;
    --secondary-glow: rgba(168, 85, 247, 0.25);
    --bg-dark: #0b0b0e;
    --bg-card: #16161d;
    --bg-nav: rgba(11, 11, 14, 0.85);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --accent: #f43f5e;
    --font-family-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-family-title: 'Minecraft Seven', 'Plus Jakarta Sans', sans-serif;
    --card-border: rgba(255, 255, 255, 0.06);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

*::-webkit-scrollbar {
    display: none;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(157, 105, 255, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-family-body);
    line-height: 1.6;
    overflow-x: hidden;
    height: 100vh;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    margin: 8px 8px 0;
    padding: 0 8px;
    background: linear-gradient(180deg, rgba(9, 9, 17, 0.96), rgba(4, 4, 10, 0.96));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(109, 103, 174, 0.2);
    border-radius: 11px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 8px 24px rgba(0, 0, 0, 0.18);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-logo {
    display: none;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-family-title);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    color: var(--primary);
    text-decoration: none;
    flex-wrap: wrap;
}

.sub-badge {
    font-size: 0.65rem;
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(244, 63, 94, 0.3);
    margin-left: 4px;
    white-space: nowrap;
}

.refresh-timer {
    font-size: 0.6rem;
    color: var(--text-dim);
    margin-left: 8px;
    font-family: var(--font-family-body);
    font-weight: 500;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.03);
    padding: 2px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.refresh-timer::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

.nav-logo img {
    height: 34px;
    width: 34px;
    image-rendering: pixelated;
    border-radius: 6px;
    box-shadow: 0 0 15px var(--primary-glow);
}

.nav-links {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    height: 41px;
    gap: 0.15rem;
}

.nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex: 1 1 0;
    background: none;
    border: none;
    color: var(--text-dim);
    padding: 0.4rem 0.65rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.72rem;
    font-family: var(--font-family-body);
    transition: var(--transition-fast);
    border-radius: 7px;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.nav-item svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-item:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.035);
}

.nav-item.active {
    color: #c3a7ff;
    background: linear-gradient(180deg, rgba(157, 105, 255, 0.08), rgba(157, 105, 255, 0.015));
}

.nav-item.active::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -1px;
    height: 2px;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 0 10px 1px rgba(157, 105, 255, 0.85);
}

.audio-controller-fixed {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.6rem 1rem;
    border-radius: 100px;
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.audio-controller-fixed:hover {
    transform: scale(1.05);
}

.volume-icon {
    font-size: 1rem;
    user-select: none;
}

.volume-slider {
    -webkit-appearance: none;
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-glow);
    border: none;
    transition: transform 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .audio-controller-fixed {
        bottom: 1rem;
        left: 1rem;
        padding: 0.5rem 0.8rem;
    }
    
    .volume-slider {
        width: 60px;
    }
}

/* Typography */
h1, h2, h3, h4, .price {
    font-family: var(--font-family-title);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Main Content */
main {
    flex: 1;
    padding: 3rem 4%;
    overflow-y: auto;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Bio Section */
.bio-section {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(26, 26, 35, 1) 100%);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    padding: 3rem;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.bio-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
}

.bio-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.bio-avatar-container {
    position: relative;
    width: 180px;
    height: 180px;
}

.bio-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    image-rendering: pixelated;
    border: 3px solid var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
    transition: var(--transition-smooth);
}



.bio-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.bio-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bio-title {
    font-size: 2.2rem;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bio-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.bio-tag {
    font-size: 0.7rem;
    background: rgba(157, 105, 255, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid rgba(157, 105, 255, 0.2);
    font-family: var(--font-family-title);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bio-text {
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 900px;
}

.bio-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}



/* Home Section */
.video-embed-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

.video-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.hero {
    display: block;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 4rem;
    width: 100%;
    aspect-ratio: 4 / 1;
    border: 1px solid var(--card-border);
    background: #000;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('banner-export.webp');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(1.1);
    transform-origin: center center;
    z-index: 1;
    transition: transform 0.5s ease-out;
}

.hero:hover .hero-bg {
    transform: scale(1.15);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Grids */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.card-img {
    aspect-ratio: 16/9;
    background: #222;
    width: 100%;
    object-fit: cover;
    display: block;
}

.card-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-info .btn {
    width: fit-content;
}

.featured-card {
    flex-direction: row;
    flex-wrap: wrap;
    border-radius: 24px;
}

.featured-img-container {
    flex: 1.2;
    min-width: 300px;
    overflow: hidden;
}

.featured-img-container .card-img {
    height: 100%;
    transition: transform 0.6s ease;
}

.featured-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 350px;
    gap: 1rem;
    padding-right: 2rem;
}

.featured-info .card-title {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.card-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 1.1rem;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-family-title);
    font-size: 0.8rem;
    transition: var(--transition-fast);
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
}

.btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    color: var(--text-main);
}

.btn:active {
    transform: translateY(0);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Custom classes for JS injected content */
.donate-container {
    max-width: 650px;
    margin: 2rem auto;
    text-align: center;
    background: var(--bg-card);
    padding: 5rem 3rem;
    border-radius: 32px;
    border: 1px solid var(--card-border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.donate-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.section-title-alt {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom, #fff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.donate-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.thanks-note {
    margin-top: 2.5rem;
    font-size: 0.9rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Server Tab Styles */
.server-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 400px;
    margin: 0 auto;
}

.server-icon-large img {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    box-shadow: 0 0 30px var(--primary-glow);
}

.server-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ip-display {
    text-align: center;
}

.ip-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-family: var(--font-family-title);
}

.ip-value {
    font-family: var(--font-family-title);
    font-size: 1.2rem;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px dashed rgba(157, 105, 255, 0.3);
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
}

.social-icons {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
}

.social-link:hover {
    color: var(--primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        margin: 6px 6px 0;
        padding: 0 3px;
        min-height: 44px;
    }

    .featured-info {
        padding-right: 0;
    }
    
    .nav-links {
        width: 100%;
        height: 43px;
    }

    .nav-item {
        gap: 0.25rem;
        padding: 0.4rem 0.2rem;
        font-size: 0.62rem;
    }

    .nav-item svg {
        width: 13px;
        height: 13px;
    }

    .nav-item.active::after {
        left: 7px;
        right: 7px;
    }

    .hero {
        aspect-ratio: 2.5 / 1;
        margin-bottom: 2rem;
    }

    .bio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .bio-avatar-container {
        margin: 0 auto;
        width: 140px;
        height: 140px;
    }

    .bio-header {
        align-items: center;
    }

    .bio-tags {
        justify-content: center;
    }

    .bio-links {
        justify-content: center;
    }

    .bio-section {
        padding: 2rem;
    }

    main {
        padding: 1.5rem 1rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }
}

/* Reference-inspired dashboard layout */
:root {
    --primary: #a66bff;
    --primary-soft: #c2a0ff;
    --primary-glow: rgba(166, 107, 255, 0.3);
    --bg-dark: #08090d;
    --bg-card: #0e1018;
    --text-main: #f4f2fb;
    --text-dim: #9ba4bb;
    --card-border: rgba(158, 121, 255, 0.25);
}

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 72% 12%, rgba(94, 46, 181, 0.12), transparent 28%),
        linear-gradient(115deg, rgba(255,255,255,0.012) 1px, transparent 1px),
        linear-gradient(25deg, rgba(255,255,255,0.009) 1px, transparent 1px);
    background-size: auto, 5px 5px, 7px 7px;
}

#app {
    display: grid;
    grid-template-columns: 208px minmax(0, 1fr);
    height: 100vh;
    min-height: 680px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    padding: 68px 20px 32px;
    background: rgba(8, 9, 13, 0.72);
    border-right: 1px solid rgba(145, 152, 181, 0.17);
    z-index: 10;
}

.brand-lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
    color: var(--primary);
    text-decoration: none;
}

.brand-lockup img {
    width: 108px;
    height: 108px;
    object-fit: cover;
    image-rendering: pixelated;
    border: 3px solid var(--primary);
    border-radius: 20px;
    box-shadow: 0 0 24px var(--primary-glow), inset 0 0 0 4px rgba(8, 9, 13, 0.7);
}

.brand-lockup span {
    font-family: var(--font-family-title);
    font-size: 1.35rem;
    letter-spacing: 0.8px;
    text-shadow: 0 0 12px rgba(166, 107, 255, 0.35);
}

.sidebar .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    height: auto;
    gap: 8px;
    margin-top: 43px;
}

.sidebar .nav-item {
    flex: none;
    justify-content: flex-start;
    gap: 17px;
    min-height: 56px;
    padding: 0 17px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #acb6cd;
    font-size: 0.91rem;
    font-weight: 500;
    text-align: left;
}

.sidebar .nav-item svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.7;
    color: #aebbd3;
}

.sidebar .nav-item:hover {
    color: var(--text-main);
    background: rgba(166, 107, 255, 0.1);
    border-color: rgba(166, 107, 255, 0.16);
}

.sidebar .nav-item.active {
    color: var(--primary-soft);
    background: linear-gradient(90deg, rgba(166, 107, 255, 0.18), rgba(166, 107, 255, 0.08));
    border-color: rgba(166, 107, 255, 0.3);
    box-shadow: inset 0 0 18px rgba(166, 107, 255, 0.05);
}

.sidebar .nav-item.active svg {
    color: var(--primary);
}

.sidebar .nav-item.active::after {
    display: block;
    left: auto;
    right: -1px;
    bottom: 12px;
    width: 3px;
    height: 32px;
    border-radius: 4px 0 0 4px;
    box-shadow: 0 0 12px 2px rgba(166, 107, 255, 0.85);
}

.sidebar-socials {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: auto;
    padding-top: 26px;
}

.sidebar-socials a {
    display: grid;
    place-items: center;
    color: #aeb8cc;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.sidebar-socials a:hover {
    color: var(--primary-soft);
    transform: translateY(-2px);
}

.sidebar-socials svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.page-shell {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
    overflow: hidden;
}

.status-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    min-height: 76px;
    padding: 20px 42px 10px;
}

.status-row #sub-badge-container,
.status-row .refresh-timer {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 17px;
    border: 1px solid rgba(128, 139, 172, 0.2);
    border-radius: 9px;
    background: rgba(12, 13, 20, 0.78);
    color: var(--primary-soft);
    font-size: 0.85rem;
}

.status-row .sub-badge {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--primary-soft);
    font-size: 0.85rem;
}

.status-row .sub-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.status-row .sub-badge svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.status-row .refresh-timer {
    color: #b8c1d6;
}

.status-row .refresh-timer::before {
    width: 8px;
    height: 8px;
    margin-right: 1px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.page-shell > main {
    flex: 1;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 42px 42px;
    overflow-y: auto;
}

.profile-panel {
    position: relative;
    isolation: isolate;
    min-height: 404px;
    margin-bottom: 42px;
    overflow: hidden;
    border: 1px solid rgba(166, 107, 255, 0.72);
    border-radius: 23px;
    background: #0d0d18;
    box-shadow: 0 0 28px rgba(104, 57, 196, 0.1), inset 0 0 35px rgba(89, 45, 174, 0.08);
}

.profile-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(10, 10, 18, 0.96) 0%, rgba(10, 10, 18, 0.82) 38%, rgba(10, 10, 18, 0.35) 75%, rgba(10, 10, 18, 0.48) 100%);
}

.profile-panel-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url('banner.webp') center / cover no-repeat;
    filter: grayscale(0.2) hue-rotate(210deg) saturate(1.15) brightness(0.58);
    opacity: 0.46;
}

.profile-grid {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    min-height: 404px;
    padding: 56px 47px;
}

.bio-avatar-container {
    width: 250px;
    height: 250px;
}

.bio-avatar {
    border: 3px solid var(--primary);
    border-radius: 24px;
    box-shadow: 0 0 26px rgba(166, 107, 255, 0.55), inset 0 0 0 4px rgba(11, 10, 18, 0.55);
}

.bio-content {
    gap: 20px;
    min-width: 0;
}

.bio-header {
    gap: 14px;
}

.bio-title {
    margin: 0;
    color: #f7f6fb;
    background: none;
    -webkit-text-fill-color: initial;
    font-size: clamp(2.5rem, 4vw, 3.6rem);
    line-height: 1;
}

.bio-tags {
    gap: 12px;
}

.bio-tag {
    padding: 6px 14px;
    border: 1px solid rgba(166, 107, 255, 0.25);
    border-radius: 8px;
    background: rgba(127, 72, 212, 0.09);
    color: var(--primary-soft);
    font-size: 0.68rem;
}

.bio-text {
    max-width: 800px;
    color: #aeb8cc;
    font-size: 1.02rem;
    line-height: 1.7;
}

.bio-links {
    gap: 18px;
    margin-top: 2px;
}

.btn {
    min-height: 54px;
    padding: 0.75rem 34px;
    border: 1px solid rgba(165, 126, 255, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    color: #e7e4f1;
    font-family: var(--font-family-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
}

.btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-primary {
    min-width: 190px;
    border-color: #a66bff;
    background: linear-gradient(100deg, #7432e4, #261440);
    box-shadow: inset 0 0 18px rgba(196, 153, 255, 0.18), 0 0 18px rgba(130, 66, 224, 0.17);
}

.btn:hover {
    border-color: var(--primary);
    background: linear-gradient(100deg, #8142ec, #301850);
    transform: translateY(-2px);
}

.latest-section {
    margin-bottom: 24px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 21px;
}

.section-heading h2 {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #f4f3f9;
    font-size: 1.28rem;
    text-transform: uppercase;
}

.heading-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 12px var(--primary);
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    padding: 10px 18px;
    border: 1px solid rgba(165, 126, 255, 0.2);
    border-radius: 9px;
    color: var(--primary-soft);
    background: rgba(16, 15, 28, 0.8);
    font-family: var(--font-family-title);
    font-size: 0.85rem;
    text-decoration: none;
}

.view-all span {
    font-family: var(--font-family-body);
    font-size: 1.3rem;
    line-height: 0.7;
}

.video-embed-wrapper {
    height: auto;
    aspect-ratio: 16 / 9;
    padding-bottom: 0;
    min-height: 0;
    margin-bottom: 0;
    border: 1px solid rgba(166, 107, 255, 0.6);
    border-radius: 19px;
    background: #11131c url('banner.webp') center / cover;
    box-shadow: 0 0 22px rgba(100, 51, 191, 0.12);
}

.video-embed-wrapper iframe {
    z-index: 1;
}

.page-shell footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    padding: 18px 42px;
    border-top: 1px solid rgba(145, 152, 181, 0.17);
    color: #9aa5bc;
    font-size: 0.86rem;
}

.page-shell .social-icons {
    display: flex;
    gap: 34px;
    margin-top: 0;
}

.page-shell .social-link {
    color: #aab4c9;
    font-size: 0.86rem;
}

.page-shell .social-link:hover {
    color: var(--primary-soft);
}

.donate-container {
    max-width: 820px;
    margin: 30px auto;
    padding: 56px 42px;
    border: 1px solid rgba(166, 107, 255, 0.35);
    border-radius: 22px;
    background: rgba(14, 16, 24, 0.9);
    box-shadow: 0 0 28px rgba(104, 57, 196, 0.1);
}

.donate-container::before {
    height: 2px;
}

.section-title-alt {
    font-size: 2.5rem;
}

.server-card {
    border-color: rgba(166, 107, 255, 0.25);
    background: rgba(5, 6, 10, 0.5);
}

.card {
    border-color: rgba(166, 107, 255, 0.22);
    background: rgba(14, 16, 24, 0.92);
    border-radius: 15px;
}

.website-card {
    max-width: 360px;
    margin: 0 auto;
    text-align: center;
}

.website-logo-wrap {
    display: grid;
    place-items: center;
    min-height: 150px;
    padding: 24px;
    background: radial-gradient(circle, rgba(56, 224, 214, 0.1), transparent 65%);
}

.website-logo {
    display: block;
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.website-card .card-info {
    align-items: center;
}

@media (max-width: 900px) {
    #app {
        display: flex;
        height: auto;
        min-height: 100vh;
    }

    .sidebar {
        position: sticky;
        top: 0;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 22px;
        min-height: 68px;
        padding: 10px 16px;
        border-right: 0;
        border-bottom: 1px solid rgba(145, 152, 181, 0.17);
        overflow: hidden;
    }

    .brand-lockup {
        flex-direction: row;
        gap: 9px;
        flex: 0 0 auto;
    }

    .brand-lockup img {
        width: 42px;
        height: 42px;
        border-width: 2px;
        border-radius: 10px;
    }

    .brand-lockup span {
        font-size: 1rem;
    }

    .sidebar .nav-links {
        flex-direction: row;
        align-items: center;
        gap: 3px;
        width: auto;
        margin: 0;
        overflow-x: auto;
    }

    .sidebar .nav-item {
        min-height: 44px;
        padding: 0 11px;
        gap: 7px;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .sidebar .nav-item svg {
        width: 17px;
        height: 17px;
    }

    .sidebar .nav-item.active::after {
        top: auto;
        right: 10px;
        bottom: 3px;
        left: 10px;
        width: auto;
        height: 2px;
        border-radius: 4px;
    }

    .sidebar-socials {
        display: none;
    }

    .page-shell {
        min-height: calc(100vh - 68px);
        overflow: visible;
    }

    .status-row {
        min-height: 60px;
        padding: 13px 16px 5px;
    }

    .page-shell > main {
        width: 100%;
        padding: 0 16px 30px;
        overflow: visible;
    }

    .profile-panel,
    .profile-grid {
        min-height: 0;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 30px 24px 34px;
        text-align: center;
    }

    .bio-avatar-container {
        width: 165px;
        height: 165px;
        margin: 0 auto;
    }

    .bio-header,
    .bio-links {
        align-items: center;
        justify-content: center;
    }

    .bio-tags {
        justify-content: center;
    }

    .bio-text {
        font-size: 0.91rem;
    }

    .video-embed-wrapper {
        aspect-ratio: 16 / 9;
    }

    .page-shell footer {
        flex-direction: column;
        gap: 12px;
        min-height: 110px;
        padding: 22px 16px;
    }
}

@media (max-width: 560px) {
    .sidebar {
        gap: 10px;
    }

    .brand-lockup span {
        display: none;
    }

    .sidebar .nav-item span {
        display: none;
    }

    .sidebar .nav-item {
        min-width: 42px;
        justify-content: center;
        padding: 0 10px;
    }

    .status-row {
        gap: 7px;
    }

    .status-row #sub-badge-container,
    .status-row .refresh-timer {
        min-height: 32px;
        padding: 0 10px;
        font-size: 0.7rem;
    }

    .profile-grid {
        padding: 24px 17px 28px;
    }

    .bio-title {
        font-size: 2.55rem;
    }

    .bio-links {
        flex-direction: column;
        width: 100%;
    }

    .bio-links .btn {
        width: 100%;
    }

    .section-heading h2 {
        font-size: 1rem;
    }

    .view-all {
        padding: 8px 10px;
        font-size: 0.75rem;
    }

    .video-embed-wrapper {
        aspect-ratio: 16 / 9;
    }

}

/* ===========================================================================
   Scale tuning
   ---------------------------------------------------------------------------
   Everything above is the original stylesheet. This block only makes the whole
   thing a notch smaller, which is easier to dial than editing values in place.

   Most of the sheet is in rem, so dropping the root size scales type, padding
   and radii together. The handful of dimensions that were hard-coded in px are
   brought down by roughly the same proportion so nothing drifts out of ratio.
   =========================================================================== */

html { font-size: 15px }

.profile-panel,
.profile-grid { min-height: 348px }

.profile-grid {
    grid-template-columns: 212px minmax(0, 1fr);
    gap: 34px;
    padding: 44px 38px;
}

.bio-avatar-container { width: 152px; height: 152px }

.sidebar { padding: 52px 17px 26px }
.sidebar .nav-item { min-height: 48px; padding: 0 14px }
.brand-lockup img { width: 76px; height: 76px }

.page-shell { padding: 0 34px 34px }

@media (max-width: 900px) {
    /* the narrow layout already shrinks these; keep it from double-shrinking */
    .profile-panel,
    .profile-grid { min-height: 0 }
    .profile-grid { grid-template-columns: 1fr; padding: 2rem }
    .bio-avatar-container { width: 128px; height: 128px }
}
