:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --bg-dark: #1b1b1f;
    --bg-card: #1e293b;
    --section-bg-1: rgba(255, 255, 255, 0.01);
    --section-bg-2: rgba(255, 255, 255, 0.02);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent: #22d3ee;
    --success: #10b981;
    --warning: #f59e0b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.filter-dropdown {
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid var(--text-secondary);
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: Inter;
}

.av {
    margin-left: 8px;
    margin-right: 15px;
}

#nav-root nav {
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    cursor: pointer;
    gap: 4px;
    flex-direction: column;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    display: block;
}

.hero {
    padding: 6rem 2rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero .hero-content {
    flex: 1;
    text-align: left;
}

.hero .hero-image {
    width: 360px;
    max-width: 40%;
    display: flex;
    justify-content: center;
}

.hero .hero-image img {
    width: 100%;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: left;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 720px;
    margin: 0 0 1.5rem;
    text-align: left;
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: .875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-secondary:hover {
    color: var(--primary);
}

.guide-image {
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-top: 15px;
}

.guide-image:hover {
    scale: 1.01;
}

#features,
#donate,
#versions,
#credits {
    width: 100%;
    margin: 0 auto;
    padding: 2.25rem 1rem;
    display: flex;
    justify-content: center;
}

.section-div {
    width: 70%;
}

.card:last-child {
    border-bottom: none;
}

section:nth-of-type(odd) {
    background: var(--section-bg-1);
}

section:nth-of-type(even) {
    background: var(--section-bg-2);
}

h2 {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 1.25rem;
}

.card {
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.card h3 {
    margin-bottom: .5rem;
}

.card h4 {
    color: var(--accent);
    margin: 1rem 0 .5rem;
}

.card p,
.card li {
    color: var(--text-secondary);
}

.versions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.version-card {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 10px;
}

.version-badge {
    padding: .25rem .75rem;
    border-radius: 20px;
    font-weight: 600;
}

.badge-nightly {
    background: var(--warning);
    color: var(--bg-dark);
}

.badge-stable {
    background: var(--success);
    color: #fff;
}

.donate-card {
    padding: 15px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.07);

}

.donate-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

ul {
    padding-left: 15px;
}

.with-flex {
    margin-top: 10%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.innioasis-logo {
    width: 300px;
    height: auto;
    transition: all 0.2s ease;
}

.innioasis-logo:hover {
    scale: 1.05;
}

.credits-list li {
    background: rgba(99, 102, 241, 0.07);
    padding: 1rem;
    border-left: 4px solid var(--primary);
    margin-bottom: .5rem;
}

.note-box {
    margin-top: 20px;
    background: rgba(34, 211, 238, 0.07);
    padding: 1rem;
    border-left: 4px solid var(--accent);
    border-radius: 6px;
}

.warning-box {
    margin-top: 20px;
    background: rgba(245, 158, 11, 0.07);
    padding: 1rem;
    border-left: 4px solid var(--warning);
    border-radius: 6px;
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.guide-wrap {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 6rem auto 4rem;
    padding: 0 1rem;
}

.guide-sidebar {
    width: 260px;
    position: sticky;
    top: 90px;
    align-self: flex-start;
    background: #161618;
    padding: 1rem;
    border-radius: 8px;
}

.guide-sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: .75rem;
}

.guide-sidebar a {
    display: block;
    padding: .5rem .75rem;
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
}

.guide-sidebar a:hover {
    background: rgba(255, 255, 255, 0.02);
    color: var(--primary);
}

.platform-links {
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    gap: .5rem;
    align-items: center;
}

.platform-links a {
    color: var(--accent);
    text-decoration: none;
    padding: .25rem .35rem;
}

.platform-links a.active {
    color: var(--primary);
    ;
}

.guide-main {
    flex: 1;
    border-radius: 8px;
}

.card a,
.donate-card a,
.credits-list li a,
footer a,
.wrap header a,
.theme-author a,
#right a,
.theme-name,
.version-list-item a,
.back-button a {
    color: lightblue;
}

.all-versions-container {
    display: flex;
    justify-content: center;
}

.updater-banner {
    display: flex;
    justify-content: space-between;
    margin-top: 5%;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.08), rgba(34, 211, 238, 0.04));
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    width: 50%;
}

.download {
    background: var(--primary);
    color: #fff;
    padding: .5rem .75rem;
    border-radius: 8px;
    text-decoration: none;
}

.code-block {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.12);
    padding: .75rem;
    border-radius: 6px;
    color: var(--text-primary);
    font-family: monospace;
}

.platform-select {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    padding: .4rem;
    border-radius: 6px;
}

select {
    font-family: Inter;
}

.small-action {
    font-size: .9rem;
    color: var(--text-secondary);
}

.badge-latest {
    background: rgba(148, 163, 184, .15);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, .25);
}

.version-card {
    position: relative;
}

.vcentered {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.version-card a {
    font-weight: normal;
    text-align: center;
}

.version-split {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
}

.version-left {
    flex: 1;
}

.version-right {
    width: 160px;
    position: relative;
}

.version-right .btn {
    position: absolute;
    right: 0;
    bottom: 0;
}

.version-left .meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.15rem 0;
}

.site-footer {
    margin-top: 6rem;
    padding: 3rem 1.5rem 1.5rem;
    background: rgba(0, 0, 0, .35);
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer-col h4 {
    margin-bottom: .75rem;
    font-size: .95rem;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.footer-col a {
    display: block;
    margin-bottom: .35rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: .9rem;
}

.footer-col a:hover {
    text-decoration: underline;
}

.footer-person {
    margin-bottom: .75rem;
}

.footer-person strong {
    display: block;
    font-size: .9rem;
    margin-bottom: .15rem;
}

.footer-logo {
    max-width: 140px;
    margin-top: .5rem;
    opacity: .9;
}

.footer-bottom {
    margin-top: 2.5rem;
    text-align: center;
    font-size: .8rem;
    color: var(--text-secondary);
}

.cast-div {
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: 10px;
    padding: 1.5rem;
}

.theme-progress {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    padding: 6px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    min-width: 180px;
    max-width: 100%;
}

.theme-progress .progress-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-progress .progress-bar {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    overflow: hidden;
}

.theme-progress .progress-bar-inner {
    width: 0%;
    height: 100%;
    background: var(--primary);
    transition: width 0.18s linear;
}

.theme-progress .progress-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: left;
    word-break: break-word;
}

.theme-progress .progress-percent {
    min-width: 48px;
    text-align: right;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.theme-card .btn[disabled] {
    opacity: .7;
    cursor: default;
}

.theme-card.on-device {
    border-color: #4caf50;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.06);
}

#browser-support-warning {
    font-family: Inter;
}

.guide-sidebar hr {
    margin-top: 5px;
    border: 1px solid #2d2d2d;
}

#theme-root {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

#alv-btn {
    text-decoration: none;
}

#alv-btn:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    #theme-root {
        display: block;
    }

    .guide-wrap {
        flex-direction: column;
        margin-top: 5rem;
    }

    .guide-sidebar {
        width: 100%;
        position: relative;
        top: auto;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        flex-direction: column;
    }

    .hero .hero-content {
        text-align: center;
    }

    .hero h1 {
        text-align: center;
    }

    .hero .hero-image {
        max-width: 320px;
        width: 80%;
        margin-top: 1rem;
    }

    .footer-grid {
        gap: 0;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 1rem;
        background: var(--bg-card);
        border-radius: 10px;
        padding: .75rem;
        display: none;
        flex-direction: column;
        gap: .25rem;
        min-width: 180px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        gap: .6rem;
        padding: .6rem .75rem;
        border-radius: 8px;
        color: var(--text-primary);
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, .04);
        color: var(--primary);
    }

    .hamburger {
        display: flex;
    }

    .section-div {
        width: 95%;
    }

    ul {
        padding-left: 0;
    }

    .version-card {
        max-width: 100%;
    }

    .avc-section {
        width: 100%;
    }

    .all-versions-container {
        padding: 1rem;
    }
}