/* Reset och grundläggande stilar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #818cf8;
    --primary-dark: #6366f1;
    --primary-light: #a5b4fc;
    --secondary-color: #f472b6;
    --accent-color: #2dd4bf;
    --text-color: #f1f5f9;
    --text-light: #94a3b8;
    --bg-color: #0f172a;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-bg: #1e293b;
    --border-color: #334155;
    --success-color: #34d399;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
    --radius: 12px;
    --radius-lg: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.logo img {
    display: block;
    width: 232px;
    height: 64px;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
    background-color: rgba(129, 140, 248, 0.15);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 80%;
}

/* Main content */
main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 4rem 0 3rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lead {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Features grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

/* Info section */
.info-section {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.1) 0%, rgba(244, 114, 182, 0.1) 100%);
    padding: 3rem;
    border-radius: var(--radius-lg);
    margin: 4rem 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.8s ease 0.6s both;
}

.info-section h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.info-section p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Guides */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.guide-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.guide-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.1) 0%, rgba(244, 114, 182, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.guide-card:hover::after {
    opacity: 1;
}

.guide-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.guide-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.guide-card:hover .guide-icon {
    transform: scale(1.15) rotate(-5deg);
}

.guide-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.guide-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Guide content */
.breadcrumb {
    margin-bottom: 2.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

.guide-content {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.guide-content h1 {
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.guide-content h2 {
    color: var(--text-color);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-size: 1.875rem;
    font-weight: 700;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.guide-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.guide-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.guide-content code {
    background: rgba(129, 140, 248, 0.15);
    color: var(--primary-light);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9em;
}

.guide-content pre {
    background: #0a0f1e;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.guide-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.guide-content ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.guide-content li {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.guide-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.guide-content ol li {
    margin-bottom: 0.75rem;
}

.tip-box {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.15) 0%, rgba(129, 140, 248, 0.15) 100%);
    border-left: 4px solid var(--accent-color);
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: var(--radius);
    color: var(--text-light);
    line-height: 1.7;
}

.tip-box strong {
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.5rem;
}

.guide-navigation {
    margin-top: 3rem;
}

/* FAQ */
.faq-section {
    margin-top: 3rem;
}

.faq-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.faq-question {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.faq-answer {
    color: var(--text-light);
    line-height: 1.7;
}

.contact-section {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.1) 0%, rgba(244, 114, 182, 0.1) 100%);
    padding: 3rem;
    border-radius: var(--radius-lg);
    margin-top: 4rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.contact-section h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.875rem;
    font-weight: 700;
}

.contact-section p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Downloads */
.downloads-list {
    margin-top: 3rem;
}

.download-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.download-item:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
    transform: translateX(4px);
}

.download-info {
    flex: 1;
}

.download-info h3 {
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.download-info p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.file-size {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.download-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Error page */
.error-page {
    text-align: center;
    padding: 6rem 0;
}

.error-page h1 {
    font-size: clamp(4rem, 10vw, 8rem);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.error-page h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 700;
}

.error-page p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.05) 0%, rgba(244, 114, 182, 0.05) 100%);
    padding: 3rem 0;
    margin-top: 6rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

footer p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }
    
    .navbar .container {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .nav-links {
        gap: 0.25rem;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .nav-links a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .info-section {
        padding: 2rem;
        margin: 2rem 0;
    }
    
    .guide-content {
        padding: 2rem;
    }
    
    .guide-content h1 {
        font-size: 2rem;
    }
    
    .guide-content h2 {
        font-size: 1.5rem;
    }
    
    .download-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .download-btn {
        width: 100%;
        text-align: center;
    }
    
    .faq-item {
        padding: 1.5rem;
    }
    
    .contact-section {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .feature-card,
    .guide-card,
    .download-item,
    .faq-item {
        padding: 1.25rem;
    }
    
    .guide-content {
        padding: 1.5rem;
    }
}

/* Smooth animations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Boozon portal: additions to the existing layout. */
.portal-panel { margin: 1.5rem 0; padding: 1.5rem; border: 1px solid var(--primary-color); border-radius: 12px; }
.portal-form { display: grid; gap: .8rem; max-width: 38rem; margin: 1rem 0; }
.portal-form label { display: block; }
.portal-form input:not([type="checkbox"]), .portal-form select { display: block; width: 100%; padding: .65rem; border-radius: 6px; border: 1px solid #999; font: inherit; }
.portal-form input[type="checkbox"] { margin-right: .4rem; }
.portal-nav-button { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; }
.portal-notice { padding: .8rem; border-left: 3px solid var(--primary-color); }
.portal-file-actions { display: grid; gap: .5rem; }
.portal-secret { font-family: monospace; overflow-wrap: anywhere; padding: 1rem; border: 1px solid #999; }
.portal-form progress { width: 100%; }
.portal-form button:disabled { opacity: .6; }

/* App-like mobile layout; the desktop navigation stays in the header. */
.mobile-tabs, .mobile-account { display: none; }
:where(a, button, input, select, summary):focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 4px;
}

@media (max-width: 900px) {
    body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
    .container { padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
    .navbar { padding: .6rem 0; }
    .navbar .container { flex-wrap: nowrap; gap: .75rem; }
    .logo { font-size: 1.4rem; min-height: 44px; display: flex; align-items: center; }
    .navbar .nav-links { display: none; }
    .mobile-account { display: block; position: relative; }
    .mobile-account summary {
        display: flex; align-items: center; gap: .5rem; min-height: 44px;
        padding: .5rem .9rem; border: 1px solid var(--border-color);
        border-radius: 12px; cursor: pointer; list-style: none; font-weight: 600;
    }
    .mobile-account summary::-webkit-details-marker { display: none; }
    .mobile-account[open] summary { background: var(--card-bg); border-color: var(--primary-color); }
    .mobile-account-menu {
        position: absolute; right: 0; top: calc(100% + .75rem); width: 210px;
        padding: .5rem; background: var(--card-bg); border: 1px solid var(--border-color);
        border-radius: 16px; box-shadow: var(--shadow-xl);
    }
    .mobile-account-menu a, .mobile-account-menu button {
        display: flex; align-items: center; min-height: 48px; padding: .6rem .8rem;
        width: 100%; color: var(--text-color); text-decoration: none; border-radius: 8px;
    }
    .mobile-account-menu a:hover, .mobile-account-menu button:hover { background: rgba(129, 140, 248, .15); }
    .mobile-tabs {
        display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
        position: fixed; bottom: 0; left: 0; right: 0; z-index: 1100;
        padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
        background: rgba(15, 23, 42, .97); backdrop-filter: blur(16px);
        border-top: 1px solid var(--border-color); box-shadow: 0 -4px 24px rgba(0, 0, 0, .2);
    }
    .mobile-tabs a {
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: 3px; min-height: 58px; border-radius: 12px; color: var(--text-light);
        text-decoration: none; font-size: .75rem; font-weight: 600;
    }
    .mobile-tabs svg { width: 23px; height: 23px; }
    .mobile-tabs a[aria-current="page"] { color: var(--primary-light); background: rgba(129, 140, 248, .14); }
    .mobile-tabs a:active { background: rgba(129, 140, 248, .22); }
    main.container { padding-top: 1.5rem; min-height: calc(100svh - 220px); }
    html { scroll-padding-top: 90px; scroll-padding-bottom: 100px; }
    .hero { padding: 1.5rem 0 1rem; }
    .hero::before { width: 100%; height: 350px; top: -40px; }
    .hero h1 { font-size: clamp(1.9rem, 7vw, 2.8rem); margin-bottom: .75rem; }
    .lead { font-size: 1rem; margin-bottom: 1.5rem; }
    .features, .guides-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; margin: 1.5rem 0; }
    .feature-card, .guide-card { padding: 1.25rem; text-align: left; }
    .feature-icon, .guide-icon { font-size: 2.25rem; margin-bottom: .5rem; }
    .feature-card h3, .guide-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
    .feature-card p, .guide-card p { margin-bottom: 1rem; }
    .btn { min-height: 48px; padding: .75rem 1rem; text-align: center; font: inherit; font-weight: 600; white-space: normal; }
    .feature-card .btn, .guide-card .btn, .portal-form .btn, .guide-navigation .btn { width: 100%; }
    .info-section, .contact-section, .guide-content, .faq-item, .portal-panel { padding: 1.25rem; }
    .info-section, .contact-section { margin: 2rem 0; }
    .info-section h2, .contact-section h2 { font-size: 1.5rem; margin-bottom: .75rem; }
    .info-section p, .contact-section p { font-size: 1rem; }
    .guide-content h1 { font-size: 1.8rem; overflow-wrap: anywhere; }
    .guide-content h2 { font-size: 1.4rem; }
    .guide-content h3 { font-size: 1.2rem; }
    .guide-content pre { max-width: 100%; padding: 1rem; }
    .guide-content ul, .guide-content ol { margin-left: 1.25rem; }
    .breadcrumb { margin-bottom: 1.25rem; overflow-wrap: anywhere; }
    .download-item { flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.25rem; }
    .download-info { min-width: 0; overflow-wrap: anywhere; }
    .portal-file-actions { width: 100%; min-width: 0; }
    .portal-panel { min-width: 0; overflow-wrap: anywhere; }
    .portal-form { max-width: 100%; min-width: 0; }
    .portal-form input:not([type="checkbox"]), .portal-form select { min-width: 0; min-height: 48px; font-size: 16px; }
    .portal-form label:has(input[type="checkbox"]) { display: flex; align-items: center; min-height: 44px; gap: .5rem; }
    .portal-form input[type="checkbox"] { width: 20px; height: 20px; flex-shrink: 0; }
    .portal-panel summary, .portal-file-actions summary { min-height: 44px; padding-block: .5rem; cursor: pointer; }
    footer { padding: 1.5rem 0; margin-top: 2rem; }
    footer p { font-size: .8rem; }
}

@media (hover: none) {
    .feature-card:hover, .guide-card:hover, .download-item:hover, .btn:hover, .logo:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* Compact brand lockup leaves room for the account menu on phones. */
@media (max-width: 900px) {
    .logo img { width: 196px; height: auto; }
}
@media (max-width: 360px) {
    .logo img { width: 174px; }
}

/* Peerhopper-inspired palette and file workspace. */
:root {
    --primary-color: #7de2c0; --primary-dark: #71d9db; --primary-light: #a0ecd5;
    --secondary-color: #71d9ff; --accent-color: #71d9ff;
    --text-color: #edf4f8; --text-light: #9aabba; --bg-color: #090f17;
    --card-bg: #101923; --border-color: #23313e; --radius: 9px; --radius-lg: 20px;
    --shadow: 0 8px 30px #00000018; --shadow-lg: 0 12px 40px #00000025;
}
[hidden] { display: none !important; }
body { background: radial-gradient(at 85% 30%, #10212b80, transparent 45%), radial-gradient(at 10% 15%, #0e1f2750, transparent 40%), #090f17; }
.container { max-width: 1160px; }
.navbar { background: #090f17eF; box-shadow: none; padding: 1rem 0; }
.nav-links a { color: var(--text-light); font-size: .85rem; padding: .5rem .65rem; }
.nav-links a:hover { color: var(--primary-color); background: #172d26; }
.portal-nav-button { color: var(--text-light); font-size: .85rem; padding: .5rem .65rem; }
.hero { text-align: left; padding: 4rem 0 2.5rem; }
.hero::before { display: none; }
.eyebrow { display: block; color: var(--primary-color); font-size: .65rem; font-weight: 700; letter-spacing: 1.8px; margin-bottom: 1rem; }
.hero h1 { color: var(--text-color); background: none; -webkit-text-fill-color: currentColor; font-weight: 650; letter-spacing: -2.5px; font-size: clamp(2.5rem, 5vw, 3.9rem); }
.hero h1 span { background: linear-gradient(110deg,#71d9ff,#7de2c0 70%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero .lead { margin-left: 0; font-size: 1rem; margin-bottom: 1.5rem; }
.features { margin: 2rem 0; gap: 1.5rem; }
.feature-card { text-align: left; padding: 2rem; box-shadow: none; }
.feature-card::before { display: none; }
.feature-card:hover, .guide-card:hover { transform: translateY(-3px); border-color: #3c5666; }
.feature-icon { display: grid; place-items: center; width: 49px; height: 49px; border-radius: 14px; background: #1c303d; color: var(--secondary-color); margin-bottom: 1.3rem; }
.feature-icon svg { width: 25px; height: 25px; }
.feature-card h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.5px; }
.feature-card p { font-size: .9rem; }
.btn { color: #09221e; background: linear-gradient(110deg,#7de2c0,#71d9db); box-shadow: none; font-size: .85rem; padding: .85rem 1.2rem; }
.feature-card .btn { color: #d1e5ee; background: #1b2c38; border: 1px solid #365464; }
.info-section, .contact-section { background: linear-gradient(130deg,#132630,#13211f); box-shadow: none; }
.portal-panel { background: var(--card-bg); border-color: var(--border-color); border-radius: 20px; }
.portal-form input:not([type="checkbox"]), .portal-form select { color: var(--text-color); background: #0b141d; border: 1px solid #304451; border-radius: 9px; }
.upload-panel { padding: 30px; max-width: 760px; margin: 2rem 0; }
.upload-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.upload-heading .eyebrow { margin-bottom: .5rem; font-size: .6rem; }
.upload-heading h2 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.6px; }
.upload-badge { color: #9ce7cc; background: #172d26; border: 1px solid #365247; border-radius: 30px; padding: 4px 10px; font-size: .65rem; }
.upload-form { max-width: none; margin-bottom: 0; }
.drop-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 262px; padding: 24px; margin-top: 12px; background: linear-gradient(125deg,#14202b70,#0c151d70); border: 1px dashed #3c5666; border-radius: 14px; transition: border-color .2s, background .2s; text-align: center; }
.drop-zone.drag-over { border-color: var(--primary-color); background: #203c3a; }
.drop-zone:focus-within { outline: 2px solid var(--accent-color); outline-offset: 3px; }
.drop-symbol { display: grid; place-items: center; color: var(--secondary-color); background: #1c303d; width: 49px; height: 49px; border-radius: 14px; margin-bottom: 14px; }
.drop-symbol svg { width: 24px; height: 24px; }
.drop-zone h3 { font-size: 1rem; font-weight: 600; }
.drop-zone p { color: var(--text-light); font-size: .8rem; margin: 4px 0 18px; }
.upload-form .file-picker { display: flex; align-items: center; gap: 24px; padding: 10px 15px; background: #1b2c38; border: 1px solid #426070; border-radius: 7px; font-size: .8rem; font-weight: 600; cursor: pointer; }
.visually-hidden { position: absolute; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; overflow: hidden; clip-path: inset(50%); }
.upload-limits { color: var(--text-light); text-align: center; font-size: .75rem; margin: 4px 0 8px; }
.upload-selection { padding: 12px 16px; border: 1px solid #304451; border-radius: 9px; color: var(--secondary-color); overflow-wrap: anywhere; font-size: .85rem; }
.upload-submit { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.upload-form button:disabled { cursor: not-allowed; opacity: .45; }
.upload-form progress { accent-color: var(--primary-color); height: 10px; }
#upload-status { font-size: .85rem; color: var(--text-light); overflow-wrap: anywhere; }
footer { background: none; margin-top: 3rem; padding: 1.5rem 0; }
footer p { font-size: .75rem; }
.mobile-tabs { background: #090f17f7; }
.mobile-tabs a[aria-current="page"] { background: #172d26; color: var(--primary-color); }
@media (max-width: 900px) {
    .hero { padding: 2rem 0; }
    .hero h1 { font-size: clamp(2.3rem, 7vw, 3.3rem); letter-spacing: -1.7px; }
    .feature-card { padding: 1.5rem; }
    .upload-panel { padding: 22px; }
    .upload-heading { align-items: flex-start; }
    .upload-heading .eyebrow { letter-spacing: 1px; }
    .drop-zone { padding: 20px 12px; min-height: 250px; }
    .navbar { padding: .6rem 0; }
}

/* Administration uses the same workspace palette as files and the home page. */
.admin-workspace { min-width: 0; padding-top: 2rem; }
.admin-header { margin-bottom: 2rem; }
.admin-header h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -1.3px; overflow-wrap: anywhere; }
.admin-header .lead { margin: .6rem 0 1.3rem; font-size: 1rem; }
.admin-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1rem 0; }
.btn.btn-secondary { color: #d1e5ee; background: #1b2c38; border: 1px solid #365464; }
.admin-apps { display: grid; gap: 1.25rem; }
.admin-app-card { margin: 0; padding: 1.75rem; min-width: 0; }
.admin-card-heading { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.admin-card-heading > div { flex: 1; min-width: 0; }
.admin-card-heading h2 { font-size: 1.4rem; letter-spacing: -.5px; margin-bottom: .25rem; overflow-wrap: anywhere; }
.admin-card-heading .eyebrow { margin-bottom: .4rem; }
.admin-package, .admin-caption { color: var(--text-light); font-size: .85rem; overflow-wrap: anywhere; }
.admin-badge { display: inline-block; color: var(--primary-color); background: #172d26; border: 1px solid #365247; border-radius: 30px; padding: .25rem .7rem; font-size: .75rem; }
.admin-current { display: grid; gap: .75rem; margin: 1.25rem 0; }
.admin-version { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem; background: #0b141d; border: 1px solid var(--border-color); border-radius: 12px; }
.admin-version > div { min-width: 0; overflow-wrap: anywhere; }
.admin-version strong, .admin-version .admin-caption { display: block; }
.admin-version strong .admin-caption { display: inline; }
.admin-disclosure { border-top: 1px solid var(--border-color); margin-top: 1rem; padding-top: .5rem; min-width: 0; }
.admin-disclosure > summary { padding: .75rem 0; cursor: pointer; color: var(--secondary-color); font-weight: 600; }
.admin-edit-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.5rem; }
.apk-release { padding: 1.25rem 0; border-top: 1px solid var(--border-color); min-width: 0; }
.apk-release h3 { font-size: 1.05rem; overflow-wrap: anywhere; }
.admin-workspace :is(p, code, h2, h3) { overflow-wrap: anywhere; }
.portal-form, .portal-form > *, .portal-form label { min-width: 0; }
.portal-form textarea { display: block; width: 100%; max-width: 100%; min-width: 0; padding: .75rem; color: var(--text-color); background: #0b141d; border: 1px solid #304451; border-radius: 9px; font: inherit; resize: vertical; }
.portal-form :is(input:not([type="checkbox"]), select) { max-width: 100%; min-width: 0; }
.portal-form input[type="file"]::file-selector-button { background: #1b2c38; color: var(--text-color); border: 1px solid #426070; border-radius: 6px; padding: .5rem .7rem; margin-right: .6rem; font: inherit; cursor: pointer; }
.portal-form label { color: var(--text-light); font-size: .9rem; }
.portal-form label :is(input, textarea, select) { margin-top: .35rem; }
.portal-form progress { accent-color: var(--primary-color); }
#apk-status { font-size: .85rem; color: var(--text-light); overflow-wrap: anywhere; }
:where(textarea):focus-visible { outline: 2px solid var(--accent-color); outline-offset: 3px; }
@media (max-width: 900px) {
    .admin-workspace { padding-top: 1.25rem; }
    .admin-app-card { padding: 1.1rem; }
    .admin-edit-grid { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
    .admin-actions .btn { flex: 1 1 180px; min-width: 0; white-space: normal; text-align: center; }
    .admin-version { padding: .8rem; }
    .admin-version .btn { width: 100%; }
    .portal-form textarea { font-size: 16px; }
    .mobile-account-menu { width: min(260px, calc(100vw - 32px)); }
}
