:root {
    color-scheme: dark;

    --md-sys-color-primary: #a8c7fa;
    --md-sys-color-on-primary: #0f172a;
    --md-sys-color-primary-container: #1f2d4d;
    --md-sys-color-on-primary-container: #d8e2ff;

    --md-sys-color-secondary: #bec7dc;
    --md-sys-color-on-secondary: #283141;
    --md-sys-color-secondary-container: #364154;
    --md-sys-color-on-secondary-container: #dde3f9;

    --md-sys-color-tertiary: #d1c1ff;
    --md-sys-color-on-tertiary: #2f1a55;
    --md-sys-color-tertiary-container: #463069;
    --md-sys-color-on-tertiary-container: #ede0ff;

    --md-sys-color-error: #ffb4ab;
    --md-sys-color-on-error: #690005;
    --md-sys-color-error-container: #93000a;
    --md-sys-color-on-error-container: #ffdad6;

    --md-sys-color-success: #9ad49f;
    --md-sys-color-on-success: #0d2d16;
    --md-sys-color-success-container: #1f4a28;
    --md-sys-color-on-success-container: #b5f0ba;

    --md-sys-color-background: #0e1116;
    --md-sys-color-on-background: #e6eaf3;
    --md-sys-color-surface: #131820;
    --md-sys-color-on-surface: #e6eaf3;
    --md-sys-color-surface-variant: #404856;
    --md-sys-color-on-surface-variant: #c0c8d7;
    --md-sys-color-outline: #8b93a3;
    --md-sys-color-outline-variant: #3a414f;

    --md-sys-color-surface-container-lowest: #0b0f14;
    --md-sys-color-surface-container-low: #161b23;
    --md-sys-color-surface-container: #1c222d;
    --md-sys-color-surface-container-high: #252d3a;
    --md-sys-color-surface-container-highest: #2f3847;

    --md-sys-color-inverse-surface: #e6eaf3;
    --md-sys-color-inverse-on-surface: #1a202a;

    --md-sys-shape-corner-xs: 6px;
    --md-sys-shape-corner-sm: 10px;
    --md-sys-shape-corner-md: 14px;
    --md-sys-shape-corner-lg: 20px;
    --md-sys-shape-corner-xl: 28px;
    --md-sys-shape-corner-2xl: 36px;
    --md-sys-shape-corner-full: 999px;

    --md-sys-elevation-0: none;
    --md-sys-elevation-1: 0 2px 8px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.2);
    --md-sys-elevation-2: 0 8px 24px rgba(0, 0, 0, 0.24), 0 2px 8px rgba(0, 0, 0, 0.18);
    --md-sys-elevation-3: 0 14px 34px rgba(0, 0, 0, 0.28), 0 4px 12px rgba(0, 0, 0, 0.2);
    --md-sys-elevation-4: 0 22px 48px rgba(0, 0, 0, 0.32), 0 10px 24px rgba(0, 0, 0, 0.22);

    /* Material motion physics (web spring approximations) */
    --md-motion-expressive-fast-spatial-curve: cubic-bezier(0.42, 1.67, 0.21, 0.90);
    --md-motion-expressive-default-spatial-curve: cubic-bezier(0.38, 1.21, 0.22, 1.00);
    --md-motion-expressive-slow-spatial-curve: cubic-bezier(0.39, 1.29, 0.35, 0.98);
    --md-motion-expressive-fast-effects-curve: cubic-bezier(0.31, 0.94, 0.34, 1.00);
    --md-motion-expressive-default-effects-curve: cubic-bezier(0.34, 0.80, 0.34, 1.00);
    --md-motion-expressive-slow-effects-curve: cubic-bezier(0.34, 0.88, 0.34, 1.00);

    --md-motion-standard-fast-spatial-curve: cubic-bezier(0.27, 1.06, 0.18, 1.00);
    --md-motion-standard-default-spatial-curve: cubic-bezier(0.27, 1.06, 0.18, 1.00);
    --md-motion-standard-slow-spatial-curve: cubic-bezier(0.27, 1.06, 0.18, 1.00);
    --md-motion-standard-fast-effects-curve: cubic-bezier(0.31, 0.94, 0.34, 1.00);
    --md-motion-standard-default-effects-curve: cubic-bezier(0.34, 0.80, 0.34, 1.00);
    --md-motion-standard-slow-effects-curve: cubic-bezier(0.34, 0.88, 0.34, 1.00);

    --md-motion-fast-spatial: 350ms;
    --md-motion-default-spatial: 500ms;
    --md-motion-slow-spatial: 650ms;
    --md-motion-fast-effects: 150ms;
    --md-motion-default-effects: 200ms;
    --md-motion-slow-effects: 300ms;

    /* Backward-compatible aliases used throughout the stylesheet */
    --md-sys-motion-short: var(--md-motion-fast-effects);
    --md-sys-motion-medium: var(--md-motion-default-effects);
    --md-sys-motion-long: var(--md-motion-default-spatial);
    --md-sys-motion-easing: var(--md-motion-expressive-default-effects-curve);
    --md-sys-motion-easing-emphasized: var(--md-motion-expressive-default-spatial-curve);

    --page-max: 1220px;
    --glass-border: 1px solid rgba(255, 255, 255, 0.09);
}

[data-theme="light"] {
    color-scheme: light;

    --md-sys-color-primary: #0047a8;
    --md-sys-color-on-primary: #ffffff;
    --md-sys-color-primary-container: #d9e2ff;
    --md-sys-color-on-primary-container: #001a43;

    --md-sys-color-secondary: #4b5d7a;
    --md-sys-color-on-secondary: #ffffff;
    --md-sys-color-secondary-container: #d3e3ff;
    --md-sys-color-on-secondary-container: #081d36;

    --md-sys-color-tertiary: #6a4a9d;
    --md-sys-color-on-tertiary: #ffffff;
    --md-sys-color-tertiary-container: #eddcff;
    --md-sys-color-on-tertiary-container: #260053;

    --md-sys-color-error: #ba1a1a;
    --md-sys-color-on-error: #ffffff;
    --md-sys-color-error-container: #ffdad6;
    --md-sys-color-on-error-container: #410002;

    --md-sys-color-success: #286b30;
    --md-sys-color-on-success: #ffffff;
    --md-sys-color-success-container: #acefb0;
    --md-sys-color-on-success-container: #002108;

    --md-sys-color-background: #f6f9ff;
    --md-sys-color-on-background: #1a1d24;
    --md-sys-color-surface: #f8faff;
    --md-sys-color-on-surface: #191d26;
    --md-sys-color-surface-variant: #e0e4ef;
    --md-sys-color-on-surface-variant: #434a59;
    --md-sys-color-outline: #737a89;
    --md-sys-color-outline-variant: #c3c7d4;

    --md-sys-color-surface-container-lowest: #ffffff;
    --md-sys-color-surface-container-low: #f0f4fb;
    --md-sys-color-surface-container: #e9eef8;
    --md-sys-color-surface-container-high: #e2e8f4;
    --md-sys-color-surface-container-highest: #dbe2ef;

    --md-sys-color-inverse-surface: #2d3139;
    --md-sys-color-inverse-on-surface: #eef1f9;

    --glass-border: 1px solid rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Manrope", "Noto Sans", "Segoe UI", sans-serif;
    color: var(--md-sys-color-on-background);
    background:
        radial-gradient(1200px 560px at 0% -10%, color-mix(in srgb, var(--md-sys-color-primary-container) 55%, transparent), transparent 70%),
        radial-gradient(900px 500px at 100% 0%, color-mix(in srgb, var(--md-sys-color-tertiary-container) 48%, transparent), transparent 68%),
        var(--md-sys-color-background);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--md-sys-motion-medium) var(--md-sys-motion-easing),
        color var(--md-sys-motion-medium) var(--md-sys-motion-easing);
}

a {
    color: var(--md-sys-color-primary);
    text-decoration: none;
    transition: color var(--md-sys-motion-short) var(--md-sys-motion-easing),
        opacity var(--md-sys-motion-short) var(--md-sys-motion-easing);
}

a:hover {
    color: var(--md-sys-color-on-primary-container);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    font: inherit;
    color: inherit;
}

code {
    font-family: "IBM Plex Mono", "JetBrains Mono", monospace;
}

.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.section {
    width: min(var(--page-max), 100% - 2rem);
    margin-inline: auto;
    padding-block: 64px;
}

.section-header {
    margin-bottom: 30px;
    text-align: center;
}

.section-header-left {
    text-align: left;
}

.section-header-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.section-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    font-weight: 700;
    color: var(--md-sys-color-on-surface);
    letter-spacing: -0.02em;
}

.section-subtitle {
    max-width: 740px;
    margin: 10px auto 0;
    color: var(--md-sys-color-on-surface-variant);
}

.section-subtitle-left {
    margin-inline: 0;
}

header {
    position: sticky;
    top: 0;
    z-index: 120;
    border-bottom: var(--glass-border);
    background: color-mix(in srgb, var(--md-sys-color-surface-container) 78%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header-content {
    width: min(var(--page-max), 100% - 2rem);
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--md-sys-color-on-surface);
}

.logo img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--md-sys-color-primary) 30%, transparent);
}

.logo-text {
    font-weight: 800;
    letter-spacing: 0.02em;
}

.dev-badge {
    background: linear-gradient(135deg, #ffb300, #ff7a00);
    color: #1e1500;
    padding: 3px 9px;
    border-radius: var(--md-sys-shape-corner-full);
    font-weight: 800;
    font-size: 0.7rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link,
.nav-dropdown-trigger,
.theme-toggle,
.mobile-menu-toggle {
    border-radius: var(--md-sys-shape-corner-full);
}

.nav-link,
.nav-dropdown-trigger {
    border: 1px solid transparent;
    background: transparent;
    color: var(--md-sys-color-on-surface-variant);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 9px 13px;
    transition: background-color var(--md-sys-motion-short) var(--md-sys-motion-easing),
        color var(--md-sys-motion-short) var(--md-sys-motion-easing),
        border-color var(--md-sys-motion-short) var(--md-sys-motion-easing);
}

.nav-link:hover,
.nav-dropdown-trigger:hover {
    color: var(--md-sys-color-on-surface);
    border-color: var(--md-sys-color-outline-variant);
    background: color-mix(in srgb, var(--md-sys-color-surface-container-high) 70%, transparent);
}

.nav-link-primary {
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
}

.nav-link-primary:hover {
    color: var(--md-sys-color-on-primary);
    border-color: transparent;
    background: color-mix(in srgb, var(--md-sys-color-primary) 90%, black);
}

.nav-link .material-symbols-outlined,
.nav-dropdown-trigger .material-symbols-outlined,
.theme-toggle .material-symbols-outlined,
.mobile-menu-toggle .material-symbols-outlined {
    font-size: 19px;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    cursor: pointer;
}

.nav-dropdown-trigger .chevron {
    transition: transform var(--md-sys-motion-short) var(--md-sys-motion-easing);
}

.nav-dropdown:hover .chevron,
.nav-dropdown:focus-within .chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    border-radius: var(--md-sys-shape-corner-lg);
    border: var(--glass-border);
    background: color-mix(in srgb, var(--md-sys-color-surface-container-high) 86%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--md-sys-elevation-3);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: opacity var(--md-sys-motion-short) var(--md-sys-motion-easing),
        visibility var(--md-sys-motion-short),
        transform var(--md-sys-motion-short) var(--md-sys-motion-easing);
    z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--md-sys-shape-corner-md);
    color: var(--md-sys-color-on-surface);
    font-weight: 600;
    font-size: 0.88rem;
}

.nav-dropdown-item:hover {
    background: var(--md-sys-color-surface-container-highest);
}

.nav-dropdown-item-disabled,
.mobile-nav-link-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.nav-dropdown-item-disabled:hover,
.mobile-nav-link-disabled:hover {
    background: transparent;
}

.theme-toggle,
.mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--md-sys-color-on-surface-variant);
}

.theme-toggle:hover,
.mobile-menu-toggle:hover {
    border-color: var(--md-sys-color-outline-variant);
    background: var(--md-sys-color-surface-container-high);
}

.mobile-menu-toggle {
    display: none;
}

.mobile-nav {
    display: none;
    position: fixed;
    inset: 72px 0 0;
    z-index: 100;
    background: color-mix(in srgb, var(--md-sys-color-surface-container) 93%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow-y: auto;
    padding: 18px;
}

.mobile-nav.open {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--md-sys-color-on-surface-variant);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 12px 14px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border-radius: var(--md-sys-shape-corner-md);
    color: var(--md-sys-color-on-surface);
    font-weight: 700;
    border: 1px solid transparent;
}

.mobile-nav-link:hover {
    border-color: var(--md-sys-color-outline-variant);
    background: var(--md-sys-color-surface-container-high);
}

.mobile-nav-divider {
    height: 1px;
    background: var(--md-sys-color-outline-variant);
    margin: 8px 0;
}

.site-footer {
    width: 100%;
    margin-top: 40px;
    border-top: 1px solid color-mix(in srgb, var(--md-sys-color-outline-variant) 88%, transparent);
    background: var(--md-sys-color-surface-container-lowest);
}

.site-footer-inner {
    width: min(var(--page-max), 100% - 2rem);
    margin: 0 auto;
    padding: 20px 0 16px;
}

.site-footer-inner md-divider {
    --md-divider-color: color-mix(in srgb, var(--md-sys-color-outline-variant) 92%, transparent);
    margin: 14px 0;
}

.site-footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.site-footer-brand {
    flex: 0 0 auto;
}

.site-footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--md-sys-color-on-surface);
}

.site-footer-brand-link img {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    object-fit: cover;
}

.site-footer-brand-name {
    font-family: "Sora", "Plus Jakarta Sans", sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.site-footer-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.site-footer-link {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.2;
    transition:
        color var(--md-motion-fast-effects) var(--md-motion-expressive-fast-effects-curve),
        opacity var(--md-motion-fast-effects) var(--md-motion-expressive-fast-effects-curve);
}

.site-footer-link:hover {
    color: var(--md-sys-color-primary);
}

.site-footer-legal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.legal-text,
.legal-text-secondary {
    color: var(--md-sys-color-outline);
    font-size: 0.86rem;
}

.site-footer-legal-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ========================================
   HERO SECTION — Clean & Beautiful
   ======================================== */

.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    width: min(var(--page-max), 100% - 2rem);
    margin: 24px auto 0;
    border-radius: var(--md-sys-shape-corner-2xl);
    border: var(--glass-border);
    overflow: hidden;
    min-height: clamp(420px, 55vh, 560px);
    box-shadow: var(--md-sys-elevation-2);
    padding: clamp(24px, 4vw, 34px);
}

/* Dark theme background */
[data-theme="dark"] .hero-bg {
    background: linear-gradient(180deg, #0a0e14 0%, #0d1219 50%, #0a0e14 100%);
}

[data-theme="dark"] .hero-shapes {
    filter: blur(80px);
}

[data-theme="dark"] .hero-shape--1 {
    background: radial-gradient(circle, rgba(168, 199, 250, 0.4) 0%, transparent 70%);
}

[data-theme="dark"] .hero-shape--2 {
    background: radial-gradient(circle, rgba(107, 158, 255, 0.35) 0%, transparent 70%);
}

[data-theme="dark"] .hero-shape--3 {
    background: radial-gradient(circle, rgba(209, 193, 255, 0.3) 0%, transparent 70%);
}

[data-theme="dark"] .hero-shape--4 {
    background: radial-gradient(circle, rgba(168, 199, 250, 0.35) 0%, transparent 70%);
}

[data-theme="dark"] .hero-stars {
    background-image: 
        radial-gradient(1.5px 1.5px at 15% 25%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 35% 45%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 55% 20%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 75% 60%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 85% 35%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 25% 75%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 65% 85%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 45% 55%, rgba(168, 199, 250, 0.5), transparent);
    opacity: 0.6;
}

/* Light theme background */
[data-theme="light"] .hero-bg {
    background: linear-gradient(180deg, #f0f4ff 0%, #ffffff 50%, #e8f0ff 100%);
}

[data-theme="light"] .hero-shapes {
    filter: blur(100px);
}

[data-theme="light"] .hero-shape--1 {
    background: radial-gradient(circle, rgba(100, 149, 237, 0.25) 0%, transparent 70%);
}

[data-theme="light"] .hero-shape--2 {
    background: radial-gradient(circle, rgba(135, 206, 235, 0.3) 0%, transparent 70%);
}

[data-theme="light"] .hero-shape--3 {
    background: radial-gradient(circle, rgba(147, 112, 219, 0.2) 0%, transparent 70%);
}

[data-theme="light"] .hero-shape--4 {
    background: radial-gradient(circle, rgba(100, 149, 237, 0.22) 0%, transparent 70%);
}

[data-theme="light"] .hero-stars {
    background-image: 
        radial-gradient(1.5px 1.5px at 15% 25%, rgba(100, 149, 237, 0.5), transparent),
        radial-gradient(1px 1px at 35% 45%, rgba(135, 206, 235, 0.4), transparent),
        radial-gradient(1.5px 1.5px at 55% 20%, rgba(100, 149, 237, 0.45), transparent),
        radial-gradient(1px 1px at 75% 60%, rgba(147, 112, 219, 0.35), transparent),
        radial-gradient(1.5px 1.5px at 85% 35%, rgba(100, 149, 237, 0.4), transparent),
        radial-gradient(1px 1px at 25% 75%, rgba(135, 206, 235, 0.35), transparent),
        radial-gradient(1.5px 1.5px at 65% 85%, rgba(100, 149, 237, 0.45), transparent),
        radial-gradient(1px 1px at 45% 55%, rgba(147, 112, 219, 0.4), transparent);
    opacity: 0.8;
}

/* Blurred moving shapes */
.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    animation: shapeFloat linear infinite;
}

.hero-shape--1 {
    width: 500px;
    height: 500px;
    top: -20%;
    left: -10%;
    animation-duration: 35s;
}

.hero-shape--2 {
    width: 400px;
    height: 400px;
    top: 50%;
    right: -15%;
    animation-duration: 40s;
    animation-delay: -10s;
}

.hero-shape--3 {
    width: 350px;
    height: 350px;
    bottom: -10%;
    left: 30%;
    animation-duration: 45s;
    animation-delay: -20s;
}

.hero-shape--4 {
    width: 300px;
    height: 300px;
    top: 30%;
    left: 50%;
    animation-duration: 38s;
    animation-delay: -5s;
}

/* Stars */
.hero-stars {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
}

/* Content */
.hero-content {
    position: relative;
    z-index: 2;
    width: min(780px, 100%);
    min-height: 100%;
    display: grid;
    place-items: center;
    margin-inline: auto;
    text-align: center;
}

.hero-centerpiece {
    width: min(100%, 720px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: clamp(24px, 4vw, 40px) clamp(12px, 2vw, 20px);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--md-sys-color-primary) 22%, transparent);
    background: color-mix(in srgb, var(--md-sys-color-surface-container-high) 72%, transparent);
    color: var(--md-sys-color-on-primary-container);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-kicker .material-symbols-outlined {
    font-size: 18px;
}

/* Large display title */
.hero-title {
    font-size: clamp(3rem, 12vw, 6rem);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-wrap: balance;
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #e8efff 30%, 
        #a8c7fa 70%,
        #6b9eff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 16px;
}

/* Light theme title */
[data-theme="light"] .hero-title {
    background: linear-gradient(135deg, 
        #1a237e 0%, 
        #283593 30%, 
        #3949ab 70%,
        #5c6bc0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Subtitle */
.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    line-height: 1.5;
    font-weight: 400;
    color: color-mix(in srgb, var(--md-sys-color-on-surface) 80%, var(--md-sys-color-outline));
    max-width: 28ch;
    text-wrap: pretty;
    margin: 0;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Large CTA button */
.hero-cta {
    position: relative;
    min-width: 260px;
    padding: 0 28px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: var(--md-sys-shape-corner-full);
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border: 1px solid transparent;
    box-shadow: var(--md-sys-elevation-1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 56px;
    cursor: pointer;
}

.hero-cta:hover {
    background: color-mix(in srgb, var(--md-sys-color-primary) 94%, white);
    box-shadow: var(--md-sys-elevation-2);
}

.hero-cta:active {
    background: color-mix(in srgb, var(--md-sys-color-primary) 85%, black);
}

.hero-cta .material-symbols-outlined {
    font-size: 24px;
}

/* Animations */
@keyframes shapeFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(15%, 10%) scale(1.05);
    }
    50% {
        transform: translate(-10%, 20%) scale(0.98);
    }
    75% {
        transform: translate(20%, -15%) scale(1.02);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Responsive */
@media (max-width: 700px) {
    .hero {
        min-height: clamp(380px, 50vh, 480px);
        padding: 14px;
    }

    .hero-centerpiece {
        padding: 22px 8px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4.5rem);
    }

    .hero-subtitle {
        font-size: clamp(1rem, 2.2vw, 1.25rem);
    }

    .hero-cta {
        width: 100%;
        justify-content: center;
        height: 52px;
        min-width: 0;
    }
}

.about-section,
.features-section {
    width: min(var(--page-max), 100% - 2rem);
    margin-inline: auto;
}

.about-section {
    margin-top: 18px;
}

.about-content {
    border-radius: var(--md-sys-shape-corner-xl);
    border: var(--glass-border);
    background: color-mix(in srgb, var(--md-sys-color-surface-container-low) 88%, transparent);
    padding: clamp(24px, 4vw, 42px);
}

.about-text {
    color: var(--md-sys-color-on-surface-variant);
    max-width: 800px;
    margin: 0 auto;
}

.servers-section {
    width: min(var(--page-max), 100% - 2rem);
    margin: 0 auto;
    padding-block: 44px;
}

.servers-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 18px;
}

.server-card {
    background: color-mix(in srgb, var(--md-sys-color-surface-container-low) 92%, transparent);
    border: var(--glass-border);
    border-radius: var(--md-sys-shape-corner-lg);
    overflow: hidden;
    box-shadow: var(--md-sys-elevation-1);
    transition: transform var(--md-sys-motion-medium) var(--md-sys-motion-easing),
        box-shadow var(--md-sys-motion-medium) var(--md-sys-motion-easing),
        border-color var(--md-sys-motion-medium) var(--md-sys-motion-easing);
}

.server-card:hover {
    box-shadow: var(--md-sys-elevation-3);
    border-color: color-mix(in srgb, var(--md-sys-color-primary) 35%, var(--md-sys-color-outline-variant));
}

.server-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.server-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 480ms var(--md-sys-motion-easing);
}

.server-card:hover .server-card-image img {
    transform: scale(1.05);
}

.server-card-status {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 6px 11px;
    border-radius: var(--md-sys-shape-corner-full);
    background: color-mix(in srgb, #0b1119 84%, transparent);
}

.server-card-status-online {
    color: #70ec8e;
}

.server-card-status-beta {
    color: #ffd166;
}

.server-card-status-dev {
    color: #d5dbe7;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 0 currentColor;
    animation: pulseDot 1.8s ease-out infinite;
}

.status-online {
    color: #70ec8e;
}

.server-card-body {
    padding: 18px;
}

.server-card-title {
    margin-bottom: 10px;
    color: var(--md-sys-color-on-surface);
}

.server-card-description {
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 16px;
    line-height: 1.62;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.server-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.features-section {
    padding-block: 36px 52px;
}

.features-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.feature-card {
    border-radius: var(--md-sys-shape-corner-lg);
    padding: 22px 18px;
    border: var(--glass-border);
    background: color-mix(in srgb, var(--md-sys-color-surface-container-low) 92%, transparent);
    transition: transform var(--md-sys-motion-medium) var(--md-sys-motion-easing),
        box-shadow var(--md-sys-motion-medium) var(--md-sys-motion-easing),
        border-color var(--md-sys-motion-medium) var(--md-sys-motion-easing);
}

.feature-card:hover {
    box-shadow: var(--md-sys-elevation-2);
    border-color: color-mix(in srgb, var(--md-sys-color-primary) 28%, var(--md-sys-color-outline-variant));
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    margin-bottom: 12px;
}

.feature-icon .material-symbols-outlined {
    font-size: 30px;
}

.feature-title {
    color: var(--md-sys-color-on-surface);
    margin-bottom: 8px;
}

.feature-description {
    color: var(--md-sys-color-on-surface-variant);
}

.project-hero {
    position: relative;
    width: min(var(--page-max), 100% - 2rem);
    margin: 24px auto 0;
    border-radius: var(--md-sys-shape-corner-2xl);
    border: var(--glass-border);
    background: color-mix(in srgb, var(--md-sys-color-surface-container-low) 88%, transparent);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    align-items: center;
    gap: 10px;
    padding: clamp(24px, 5vw, 52px);
}

.project-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.8;
}

.project-hero-os::before {
    background: radial-gradient(540px 240px at 90% 10%, rgba(116, 183, 255, 0.25), transparent 70%);
}

.project-hero-rat::before {
    background: radial-gradient(540px 240px at 90% 10%, rgba(255, 125, 102, 0.2), transparent 70%);
}

.project-hero-twd::before {
    background: radial-gradient(540px 240px at 90% 10%, rgba(139, 255, 162, 0.2), transparent 70%);
}

.project-hero-mcr::before {
    background: radial-gradient(540px 240px at 90% 10%, rgba(99, 232, 255, 0.2), transparent 70%);
}

.project-hero-content,
.project-hero-visual {
    position: relative;
    z-index: 1;
}

.project-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: var(--md-sys-shape-corner-full);
    font-size: 0.76rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
}

.project-hero-badge-dark {
    background: #2f3038;
    color: #f4f7ff;
}

.project-hero-badge-wip {
    background: #f2a537;
    color: #201200;
}

.project-hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.03;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 8px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.project-hero-subtitle {
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 22px;
    max-width: 560px;
}

.project-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-hero-content > * {
    animation: motionEnterSpatial var(--md-motion-default-spatial) var(--md-motion-expressive-default-spatial-curve) both;
}

.project-hero-content > *:nth-child(2) {
    animation-delay: 40ms;
}

.project-hero-content > *:nth-child(3) {
    animation-delay: 80ms;
}

.project-hero-content > *:nth-child(4) {
    animation-delay: 120ms;
}

.project-hero-visual {
    display: flex;
    justify-content: center;
}

.project-hero-image {
    width: min(230px, 100%);
    aspect-ratio: 1;
    object-fit: contain;
    filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.3));
    animation: floatIcon 7s ease-in-out infinite;
}

.project-content,
.project-content-rat {
    max-width: 900px;
    margin: 0 auto;
}

.project-description {
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 18px;
    line-height: 1.72;
}

.project-description strong {
    color: var(--md-sys-color-on-surface);
}

.project-features {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.project-feature {
    padding: 18px;
    border-radius: var(--md-sys-shape-corner-lg);
    border: var(--glass-border);
    background: color-mix(in srgb, var(--md-sys-color-surface-container-low) 88%, transparent);
}

.project-feature .material-symbols-outlined {
    font-size: 34px;
    color: var(--md-sys-color-primary);
    margin-bottom: 8px;
}

.project-feature h3 {
    color: var(--md-sys-color-on-surface);
    margin-bottom: 5px;
}

.project-feature p {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.92rem;
}

.project-factions {
    margin-top: 24px;
}

.faction-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 12px;
}

.factions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.faction-card {
    padding: 16px;
    border-radius: var(--md-sys-shape-corner-md);
    border: var(--glass-border);
    text-align: center;
    background: color-mix(in srgb, var(--md-sys-color-surface-container-low) 90%, transparent);
}

.faction-icon {
    font-size: 2rem;
    margin-bottom: 6px;
}

.faction-card h4 {
    color: var(--md-sys-color-on-surface);
    margin-bottom: 4px;
}

.faction-card p {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.82rem;
}

.server-info-card,
.coming-soon-card {
    border-radius: var(--md-sys-shape-corner-lg);
    border: var(--glass-border);
    background: color-mix(in srgb, var(--md-sys-color-surface-container-low) 90%, transparent);
    padding: 18px;
    margin-top: 20px;
}

.server-info-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 14px;
}

.server-info-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.server-info-item {
    border-radius: var(--md-sys-shape-corner-md);
    border: 1px solid var(--md-sys-color-outline-variant);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--md-sys-color-surface-container);
}

.server-info-item .material-symbols-outlined {
    color: var(--md-sys-color-primary);
}

.server-info-label {
    display: block;
    font-size: 0.74rem;
    color: var(--md-sys-color-on-surface-variant);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.server-info-value {
    font-size: 0.95rem;
    color: var(--md-sys-color-on-surface);
}

.coming-soon-card {
    text-align: center;
}

.coming-soon-card .material-symbols-outlined {
    font-size: 44px;
    color: var(--md-sys-color-outline);
    margin-bottom: 8px;
}

.coming-soon-card h3 {
    color: var(--md-sys-color-on-surface);
    margin-bottom: 6px;
}

.coming-soon-card p {
    color: var(--md-sys-color-on-surface-variant);
}

.links-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    max-width: 900px;
    margin: 0 auto;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: var(--md-sys-shape-corner-md);
    border: var(--glass-border);
    background: color-mix(in srgb, var(--md-sys-color-surface-container-low) 90%, transparent);
    transition: transform var(--md-sys-motion-medium) var(--md-sys-motion-easing),
        border-color var(--md-sys-motion-medium) var(--md-sys-motion-easing);
}

.link-card:hover {
    border-color: color-mix(in srgb, var(--md-sys-color-primary) 28%, var(--md-sys-color-outline-variant));
    background: color-mix(in srgb, var(--md-sys-color-surface-container-high) 75%, transparent);
}

.link-card .material-symbols-outlined:first-child {
    color: var(--md-sys-color-primary);
    font-size: 26px;
}

.link-card div {
    flex: 1;
}

.link-card h3 {
    color: var(--md-sys-color-on-surface);
    margin-bottom: 2px;
}

.link-card p {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.85rem;
}

.link-card .material-symbols-outlined:last-child {
    color: var(--md-sys-color-outline);
}

.link-card-discord .material-symbols-outlined:first-child {
    color: #7a8cff;
}

.link-card-steam .material-symbols-outlined:first-child {
    color: #66c0f4;
}

.link-card-sub .material-symbols-outlined:first-child {
    color: var(--md-sys-color-tertiary);
}

.sub-page {
    width: min(980px, 100% - 2rem);
    margin: 0 auto;
    padding: 36px 0 56px;
}

.sub-header {
    text-align: center;
    margin-bottom: 22px;
}

.sub-header h1 {
    color: var(--md-sys-color-on-surface);
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.sub-header p {
    color: var(--md-sys-color-on-surface-variant);
    margin-top: 6px;
}

.subs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sub-item {
    background: color-mix(in srgb, var(--md-sys-color-surface-container-low) 90%, transparent);
    border: var(--glass-border);
    border-left: 6px solid;
    border-radius: var(--md-sys-shape-corner-lg);
    padding: 20px;
    box-shadow: var(--md-sys-elevation-1);
    transition: transform var(--md-sys-motion-medium) var(--md-sys-motion-easing),
        box-shadow var(--md-sys-motion-medium) var(--md-sys-motion-easing);
}

.sub-item:hover {
    box-shadow: var(--md-sys-elevation-2);
}

.sub-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.sub-item-name {
    color: var(--md-sys-color-on-surface);
    font-size: 1.25rem;
    font-weight: 800;
}

.sub-item-price {
    color: var(--md-sys-color-primary);
    font-size: 1.6rem;
    font-weight: 800;
}

.sub-item-price span {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.86rem;
    font-weight: 600;
}

.sub-item-desc {
    color: var(--md-sys-color-on-surface-variant);
    white-space: pre-line;
    margin-bottom: 16px;
}

.sub-item-form {
    margin-top: 10px;
}

.sub-buy-btn,
.sub-login-btn {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 13px 18px;
    font-weight: 800;
    letter-spacing: 0.01em;
    transition: transform var(--md-sys-motion-short) var(--md-sys-motion-easing),
        filter var(--md-sys-motion-short) var(--md-sys-motion-easing);
}

.sub-buy-btn:hover,
.sub-login-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.sub-login-btn {
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
}

.sub-login-link {
    display: block;
}

.auth-page-container,
.status-page-container {
    min-height: calc(100vh - 220px);
    display: grid;
    place-items: center;
    padding: 32px 1rem;
    position: relative;
}

.auth-page-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.auth-bg-gradient {
    position: absolute;
    width: 500px;
    height: 500px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--md-sys-color-primary-container) 62%, transparent), transparent 68%);
    filter: blur(18px);
}

.auth-card-modern,
.status-card-modern,
.status-card {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    border-radius: var(--md-sys-shape-corner-2xl);
    border: var(--glass-border);
    background: color-mix(in srgb, var(--md-sys-color-surface-container-low) 92%, transparent);
    box-shadow: var(--md-sys-elevation-2);
    padding: clamp(24px, 5vw, 42px);
    text-align: center;
}

.auth-card-icon {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    margin-bottom: 16px;
}

.auth-card-icon .material-symbols-outlined {
    font-size: 38px;
}

.auth-card-title,
.status-title {
    color: var(--md-sys-color-on-surface);
    margin-bottom: 10px;
}

.auth-card-subtitle,
.status-message {
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 20px;
}

.auth-benefits {
    display: grid;
    gap: 8px;
    margin-bottom: 22px;
}

.auth-benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--md-sys-shape-corner-md);
    padding: 12px;
    background: var(--md-sys-color-surface-container);
    color: var(--md-sys-color-on-surface-variant);
    font-weight: 700;
    font-size: 0.9rem;
}

.auth-benefit .material-symbols-outlined {
    color: var(--md-sys-color-primary);
}

.auth-discord-button {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    padding: 13px 16px;
    background: #5865f2;
    color: #ffffff;
    font-weight: 800;
}

.auth-discord-button:hover {
    color: #ffffff;
    background: #4c59e8;
}

.discord-icon {
    width: 22px;
    height: 22px;
}

.auth-disclaimer {
    margin-top: 14px;
    color: var(--md-sys-color-outline);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
}

.profile-hero {
    width: min(var(--page-max), 100% - 2rem);
    margin: 20px auto 0;
    border-radius: var(--md-sys-shape-corner-2xl);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--md-sys-color-primary) 26%, var(--md-sys-color-outline-variant));
    background:
        radial-gradient(110% 120% at 0% 0%, color-mix(in srgb, var(--md-sys-color-primary-container) 50%, transparent), transparent 65%),
        radial-gradient(90% 90% at 100% 0%, color-mix(in srgb, var(--md-sys-color-tertiary-container) 46%, transparent), transparent 62%),
        color-mix(in srgb, var(--md-sys-color-surface-container-low) 94%, transparent);
    box-shadow: var(--md-sys-elevation-2);
}

.profile-banner-container {
    position: relative;
    height: clamp(180px, 30vw, 320px);
    background: var(--md-sys-color-surface-container-high);
}

.profile-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 38%, color-mix(in srgb, var(--md-sys-color-background) 92%, transparent));
}

.profile-banner-colored {
    background: var(--accent-color, var(--md-sys-color-primary-container));
}

.profile-banner-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.28));
}

.profile-hero-content {
    width: min(var(--page-max), 100% - 2rem);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: end;
    padding-bottom: 18px;
}

.profile-avatar-wrapper {
    position: relative;
    margin-top: -54px;
}

.profile-avatar,
.profile-avatar-fallback {
    width: clamp(88px, 14vw, 124px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 4px solid var(--md-sys-color-surface);
    box-shadow: var(--md-sys-elevation-2);
}

.profile-avatar-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--md-sys-color-primary), var(--md-sys-color-tertiary));
    color: var(--md-sys-color-on-primary);
    font-size: clamp(2rem, 4.6vw, 2.8rem);
    font-weight: 800;
}

.profile-avatar-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--md-sys-color-primary) 45%, transparent);
    pointer-events: none;
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--md-sys-color-primary) 10%, transparent);
}

.profile-info-block {
    padding-bottom: 8px;
}

.profile-username {
    color: var(--md-sys-color-on-surface);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.profile-meta {
    display: flex;
    margin-top: 8px;
}

.profile-badge {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 8px 14px;
    border-radius: var(--md-sys-shape-corner-full);
    border: 1px solid color-mix(in srgb, var(--md-sys-color-primary) 24%, transparent);
    background: color-mix(in srgb, var(--md-sys-color-primary-container) 72%, transparent);
    color: var(--md-sys-color-on-primary-container);
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.profile-logout {
    justify-self: end;
    margin-bottom: 8px;
}

.profile-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    box-shadow: var(--md-sys-elevation-1);
    transition: background-color var(--md-motion-fast-effects) var(--md-motion-expressive-fast-effects-curve),
        color var(--md-motion-fast-effects) var(--md-motion-expressive-fast-effects-curve),
        border-color var(--md-motion-fast-effects) var(--md-motion-expressive-fast-effects-curve),
        box-shadow var(--md-motion-fast-effects) var(--md-motion-expressive-fast-effects-curve);
}

.profile-cta .material-symbols-outlined {
    width: 20px;
    height: 20px;
    font-size: 20px;
    flex: 0 0 auto;
}

.profile-cta-primary {
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
}

.profile-cta-primary:hover {
    color: var(--md-sys-color-on-primary);
    background: color-mix(in srgb, var(--md-sys-color-primary) 92%, white);
    box-shadow: var(--md-sys-elevation-2);
}

.profile-cta-secondary {
    background: color-mix(in srgb, var(--md-sys-color-surface-container) 82%, transparent);
    color: var(--md-sys-color-on-surface);
    border-color: color-mix(in srgb, var(--md-sys-color-primary) 18%, var(--md-sys-color-outline-variant));
    box-shadow: none;
}

.profile-cta-secondary:hover {
    color: var(--md-sys-color-on-surface);
    background: color-mix(in srgb, var(--md-sys-color-surface-container-high) 92%, transparent);
    border-color: color-mix(in srgb, var(--md-sys-color-primary) 34%, var(--md-sys-color-outline-variant));
}

.profile-cta-buy {
    min-width: 136px;
}

.profile-cta-watch {
    min-width: 248px;
}

.profile-cta-logout {
    min-width: 132px;
}

.profile-grid {
    width: min(var(--page-max), 100% - 2rem);
    margin: 14px auto 0;
    display: grid;
    gap: 16px;
}

.profile-section {
    border-radius: var(--md-sys-shape-corner-lg);
    border: 1px solid color-mix(in srgb, var(--md-sys-color-primary) 16%, var(--md-sys-color-outline-variant));
    background: color-mix(in srgb, var(--md-sys-color-surface-container-low) 94%, transparent);
    padding: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.sub-list-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: var(--md-sys-shape-corner-md);
    background: var(--md-sys-color-surface-container);
}

.sub-list-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--sub-color, var(--md-sys-color-primary));
    color: #ffffff;
    display: grid;
    place-items: center;
}

.sub-list-info {
    flex: 1;
}

.sub-list-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.sub-list-name {
    color: var(--md-sys-color-on-surface);
    font-weight: 800;
}

.sub-list-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--md-sys-shape-corner-full);
    font-size: 0.76rem;
    font-weight: 800;
    padding: 4px 10px;
}

.sub-list-status-active {
    color: var(--md-sys-color-on-success-container);
    background: var(--md-sys-color-success-container);
}

.sub-list-status .status-dot {
    width: 6px;
    height: 6px;
    animation: none;
    box-shadow: none;
}

.sub-list-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sub-list-date {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.84rem;
    font-weight: 600;
}

.empty-state-modern {
    text-align: center;
    padding: 30px 24px;
}

.empty-state-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: var(--md-sys-color-surface-container);
    color: var(--md-sys-color-outline);
    margin: 0 auto 12px;
}

.empty-state-icon .material-symbols-outlined {
    font-size: 34px;
}

.empty-state-modern h3 {
    color: var(--md-sys-color-on-surface);
    margin-bottom: 8px;
    font-size: 1.9rem;
    letter-spacing: -0.02em;
}

.empty-state-modern p {
    color: var(--md-sys-color-on-surface-variant);
    margin-bottom: 18px;
    font-size: 1rem;
}

.account-info-card {
    border-radius: var(--md-sys-shape-corner-md);
    border: 1px solid var(--md-sys-color-outline-variant);
    overflow: hidden;
}

.account-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--md-sys-color-surface-container);
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.account-info-row:last-child {
    border-bottom: 0;
}

.account-info-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.88rem;
    font-weight: 700;
}

.account-info-value {
    color: var(--md-sys-color-on-surface);
    font-size: 0.88rem;
    font-weight: 700;
}

code.account-info-value {
    border-radius: var(--md-sys-shape-corner-sm);
    padding: 4px 8px;
    background: var(--md-sys-color-surface-container-high);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--md-sys-color-on-success-container);
    background: var(--md-sys-color-success-container);
    padding: 5px 10px;
    border-radius: var(--md-sys-shape-corner-full);
}

.quick-links-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.quick-link-card {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--md-sys-shape-corner-md);
    border: 1px solid var(--md-sys-color-outline-variant);
    padding: 12px;
    background: color-mix(in srgb, var(--md-sys-color-surface-container) 92%, transparent);
    transition: transform var(--md-sys-motion-medium) var(--md-sys-motion-easing),
        border-color var(--md-sys-motion-medium) var(--md-sys-motion-easing);
}

.quick-link-card:hover {
    border-color: color-mix(in srgb, var(--md-sys-color-primary) 28%, var(--md-sys-color-outline-variant));
    background: var(--md-sys-color-surface-container-high);
}

.quick-link-card .material-symbols-outlined:first-child {
    color: var(--md-sys-color-primary);
}

.quick-link-card div {
    flex: 1;
}

.quick-link-card strong {
    display: block;
    color: var(--md-sys-color-on-surface);
    font-size: 0.92rem;
}

.quick-link-card span {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.8rem;
}

.status-icon-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
}

.status-success .status-icon-wrapper {
    background: var(--md-sys-color-success-container);
    color: var(--md-sys-color-on-success-container);
}

.status-error .status-icon-wrapper,
.status-icon.error {
    background: var(--md-sys-color-error-container);
    color: var(--md-sys-color-on-error-container);
}

.status-icon-wrapper .material-symbols-outlined,
.status-icon {
    font-size: 54px;
}

.status-card .status-icon {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.status-details {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.status-detail-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    border-radius: var(--md-sys-shape-corner-full);
    background: var(--md-sys-color-surface-container);
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.83rem;
    font-weight: 700;
}

.status-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.status-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
}

.status-action-link {
    display: flex;
    width: 100%;
}

.status-action-link-wide {
    grid-column: 1 / -1;
}

.status-action-btn {
    width: 100%;
    --md-filled-button-container-height: 46px;
    --md-filled-tonal-button-container-height: 46px;
    --md-outlined-button-container-height: 46px;
    --md-filled-button-leading-space: 18px;
    --md-filled-button-trailing-space: 18px;
    --md-filled-tonal-button-leading-space: 18px;
    --md-filled-tonal-button-trailing-space: 18px;
    --md-outlined-button-leading-space: 18px;
    --md-outlined-button-trailing-space: 18px;
    --md-filled-button-label-text-size: 0.96rem;
    --md-filled-tonal-button-label-text-size: 0.96rem;
    --md-outlined-button-label-text-size: 0.96rem;
    --md-filled-button-label-text-weight: 700;
    --md-filled-tonal-button-label-text-weight: 700;
    --md-outlined-button-label-text-weight: 700;
}

.status-action-btn::part(button) {
    min-height: 46px;
    width: 100%;
    padding: 0 18px;
}

.status-action-btn-primary {
    --md-filled-button-container-color: var(--md-sys-color-primary);
    --md-filled-button-label-text-color: var(--md-sys-color-on-primary);
}

.status-page-container .status-card-modern {
    border: 1px solid color-mix(in srgb, var(--md-sys-color-primary) 26%, var(--md-sys-color-outline-variant));
    background:
        radial-gradient(80% 60% at 100% 0%, color-mix(in srgb, var(--md-sys-color-primary-container) 40%, transparent), transparent 70%),
        color-mix(in srgb, var(--md-sys-color-surface-container-low) 93%, transparent);
}

.status-help {
    border-radius: var(--md-sys-shape-corner-md);
    border: 1px solid var(--md-sys-color-outline-variant);
    background: var(--md-sys-color-surface-container);
    text-align: left;
    padding: 14px;
    margin-bottom: 18px;
}

.status-help-item {
    display: flex;
    gap: 10px;
}

.status-help-item strong {
    color: var(--md-sys-color-on-surface);
}

.status-help-item ul {
    margin-top: 8px;
    padding-left: 16px;
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.86rem;
}

.status-support {
    margin-top: 18px;
    border-top: 1px solid var(--md-sys-color-outline-variant);
    padding-top: 12px;
}

.status-support p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.85rem;
}

@media (max-width: 639px) {
    .status-actions-grid {
        grid-template-columns: 1fr;
    }

    .status-action-link-wide {
        grid-column: auto;
    }
}

.status-container {
    min-height: calc(100vh - 220px);
    display: grid;
    place-items: center;
    padding: 24px 1rem;
}

#cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    padding: 16px;
}

#cookie-banner.show {
    display: block;
}

.cookie-content {
    width: min(1160px, 100%);
    margin: 0 auto;
    border-radius: 24px;
    border: 1px solid var(--md-sys-color-outline-variant);
    background: var(--md-sys-color-surface-container-high);
    box-shadow: var(--md-sys-elevation-2);
    padding: 18px 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

.cookie-title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 6px;
    font-size: 1.05rem;
    font-weight: 800;
}

.cookie-text p {
    color: var(--md-sys-color-on-surface-variant);
    max-width: 58ch;
    font-size: 0.95rem;
}

.cookie-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    color: var(--md-sys-color-on-surface);
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: inherit;
    font-size: 0.93rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background-color var(--md-motion-fast-effects) var(--md-motion-expressive-fast-effects-curve),
        border-color var(--md-motion-fast-effects) var(--md-motion-expressive-fast-effects-curve),
        color var(--md-motion-fast-effects) var(--md-motion-expressive-fast-effects-curve),
        box-shadow var(--md-motion-fast-effects) var(--md-motion-expressive-fast-effects-curve);
}

.cookie-btn .material-symbols-outlined {
    font-size: 18px;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.cookie-btn-primary {
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    box-shadow: none;
}

.cookie-btn-primary:hover {
    background: color-mix(in srgb, var(--md-sys-color-primary) 92%, white);
}

.cookie-btn-secondary {
    background: transparent;
    border-color: var(--md-sys-color-outline-variant);
}

.cookie-btn-secondary:hover {
    background: color-mix(in srgb, var(--md-sys-color-surface-container-highest) 60%, transparent);
    border-color: var(--md-sys-color-outline);
}

.cookie-btn-ghost {
    color: var(--md-sys-color-primary);
}

.cookie-btn-ghost:hover {
    background: color-mix(in srgb, var(--md-sys-color-primary) 12%, transparent);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(2, 8, 17, 0.65);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.open {
    display: flex;
}

.modal-card {
    width: min(520px, 100%);
    border-radius: 28px;
    border: 1px solid var(--md-sys-color-outline-variant);
    background: var(--md-sys-color-surface-container-high);
    box-shadow: var(--md-sys-elevation-4);
    padding: 22px 18px 18px;
    max-height: 92vh;
    overflow-y: auto;
}

.modal-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 16px;
    font-size: 1.12rem;
    font-weight: 800;
}

.cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px;
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: 20px;
    background: var(--md-sys-color-surface-container);
    margin-bottom: 12px;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category:last-of-type {
    margin-bottom: 0;
}

.cookie-category-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--md-sys-color-on-surface);
    font-weight: 800;
}

.cookie-category-desc {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.9rem;
    margin-top: 4px;
}

.modal-actions {
    margin-top: 18px;
    border-top: 1px solid var(--md-sys-color-outline-variant);
    padding-top: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cookie-category md-switch {
    --md-switch-track-width: 54px;
    --md-switch-track-height: 32px;
    --md-switch-handle-width: 22px;
    --md-switch-handle-height: 22px;
    --md-switch-selected-track-color: var(--md-sys-color-primary);
    --md-switch-selected-handle-color: var(--md-sys-color-on-primary);
    --md-switch-unselected-track-color: color-mix(in srgb, var(--md-sys-color-surface-container-highest) 85%, transparent);
    --md-switch-unselected-handle-color: var(--md-sys-color-on-surface-variant);
}

@keyframes pulseDot {
    0% {
        box-shadow: 0 0 0 0 currentColor;
    }
    70% {
        box-shadow: 0 0 0 8px transparent;
    }
    100% {
        box-shadow: 0 0 0 0 transparent;
    }
}

@keyframes riseIn {
    from {
        transform: translateY(16px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes floatBlobA {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-24px, 14px);
    }
}

@keyframes floatBlobB {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(20px, -16px);
    }
}

@keyframes floatIcon {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 959px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .hero-content,
    .project-hero {
        grid-template-columns: 1fr;
    }

    .project-hero {
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-subtitle {
        margin-inline: auto;
    }

    .project-hero-actions {
        justify-content: center;
    }

    .project-hero-visual {
        order: -1;
        margin-bottom: 4px;
    }

    .profile-hero-content {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        padding-top: 8px;
    }

    .profile-avatar-wrapper {
        margin-top: -46px;
    }

    .profile-meta {
        justify-content: center;
    }

    .site-footer-main {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 699px) {
    .header-content {
        height: 64px;
    }

    .mobile-nav {
        inset: 64px 0 0;
    }

    .hero {
        margin-top: 14px;
        min-height: 420px;
    }

    .hero-content {
        width: calc(100% - 1.2rem);
    }

    .hero-title {
        letter-spacing: -0.02em;
    }

    .section,
    .servers-section,
    .sub-page {
        width: calc(100% - 1.2rem);
    }

    .servers-grid,
    .features-grid,
    .links-grid,
    .project-features,
    .factions-grid,
    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    .sub-item-header {
        align-items: flex-start;
    }

    .sub-item-price {
        font-size: 1.35rem;
    }

    .account-info-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cookie-actions {
        justify-content: center;
        width: 100%;
    }

    .cookie-btn {
        flex: 1 1 180px;
    }

    .site-footer {
        margin-top: 40px;
        padding: 0 0.6rem 0.6rem;
    }

    .site-footer-inner {
        width: calc(100% - 1.2rem);
        padding: 18px 0 14px;
    }

    .site-footer-nav {
        width: 100%;
        justify-content: flex-start;
        gap: 18px;
    }

    .site-footer-legal {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer-brand-link img {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }
}

@media (max-width: 560px) {
    #cookie-banner {
        padding: 12px;
    }

    .cookie-content {
        padding: 16px;
        border-radius: 22px;
    }

    .cookie-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-btn {
        width: 100%;
    }

    .modal-card {
        padding: 18px 14px 14px;
    }

    .cookie-category {
        padding: 14px;
        align-items: flex-start;
    }

    .modal-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
}

/* --- Visual Refresh v2 --- */
body {
    font-family: "Plus Jakarta Sans", "Manrope", "Segoe UI", sans-serif;
}

h1,
h2,
h3,
.logo-text,
.section-title,
.hero-title,
.project-hero-title,
.sub-header h1 {
    font-family: "Sora", "Plus Jakarta Sans", sans-serif;
}

.brand-icon {
    width: 1.15em;
    height: 1.15em;
    display: inline-block;
    vertical-align: -0.18em;
    flex-shrink: 0;
}

.brand-icon-discord {
    color: #8ea1ff;
}

md-filled-button .brand-icon-discord,
md-outlined-button .brand-icon-discord {
    color: currentColor;
}

.hero,
.project-hero,
.sub-header-pro,
.server-card,
.feature-card,
.sub-item-v2,
.quick-link-card,
.link-card,
.profile-section,
.auth-card-modern,
.status-card-modern {
    animation: cardReveal 640ms var(--md-sys-motion-easing-emphasized) both;
}

.server-card:nth-child(2),
.feature-card:nth-child(2),
.sub-item-v2:nth-child(2) {
    animation-delay: 70ms;
}

.server-card:nth-child(3),
.feature-card:nth-child(3),
.sub-item-v2:nth-child(3) {
    animation-delay: 140ms;
}

.server-card:nth-child(4),
.feature-card:nth-child(4),
.sub-item-v2:nth-child(4) {
    animation-delay: 210ms;
}

.sub-header-pro {
    position: relative;
    overflow: hidden;
    border-radius: var(--md-sys-shape-corner-2xl);
    border: var(--glass-border);
    background:
        linear-gradient(140deg, color-mix(in srgb, var(--md-sys-color-primary-container) 88%, transparent), color-mix(in srgb, var(--md-sys-color-surface-container) 84%, transparent)),
        var(--md-sys-color-surface-container);
    box-shadow: var(--md-sys-elevation-2);
    padding: clamp(28px, 6vw, 52px);
}

.sub-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: var(--md-sys-shape-corner-full);
    border: 1px solid color-mix(in srgb, var(--md-sys-color-primary) 35%, transparent);
    padding: 7px 12px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--md-sys-color-on-primary-container);
    margin-bottom: 10px;
}

.sub-header-pro h1 {
    margin-bottom: 10px;
}

.sub-header-pro > p:last-child {
    max-width: 660px;
    margin: 0 auto;
    color: color-mix(in srgb, var(--md-sys-color-on-surface) 82%, var(--md-sys-color-on-surface-variant));
}

.sub-header-art {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.sub-header-art span {
    position: absolute;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.2));
    animation: floatGlyph 6.5s ease-in-out infinite;
    opacity: 0.9;
}

.sub-header-art span:nth-child(1) {
    top: 14%;
    left: 8%;
}

.sub-header-art span:nth-child(2) {
    bottom: 14%;
    right: 11%;
    animation-delay: 1.4s;
}

.sub-header-art span:nth-child(3) {
    top: 22%;
    right: 20%;
    animation-delay: 2.2s;
}

.sub-item-v2 {
    position: relative;
    overflow: hidden;
}

.sub-item-bg-icon {
    position: absolute;
    right: 14px;
    bottom: -8px;
    font-size: clamp(2.2rem, 5vw, 3.1rem);
    opacity: 0.12;
    pointer-events: none;
    transform: rotate(-11deg);
}

.sub-item-form .sub-buy-btn,
.sub-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sub-buy-btn .material-symbols-outlined,
.sub-login-btn .material-symbols-outlined {
    font-size: 1.12rem;
}

.sub-item-v2:hover .sub-item-bg-icon {
    animation: spinPulse 1.1s var(--md-sys-motion-easing);
}

.project-hero-image {
    transition: transform 500ms var(--md-sys-motion-easing);
}

.project-hero:hover .project-hero-image {
    filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.3)) brightness(1.03);
}

.link-card:hover,
.quick-link-card:hover,
.sub-item:hover {
    transform: none;
}

.server-card-actions a,
.hero-actions a,
.project-hero-actions a {
    position: relative;
}

.server-card-actions a::after,
.hero-actions a::after,
.project-hero-actions a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    pointer-events: none;
    opacity: 0;
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--md-sys-color-primary) 35%, transparent);
    transition: opacity 200ms ease;
}

.server-card-actions a:hover::after,
.hero-actions a:hover::after,
.project-hero-actions a:hover::after {
    opacity: 1;
    animation: ringTap 760ms var(--md-sys-motion-easing);
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes floatGlyph {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}

@keyframes spinPulse {
    0% {
        transform: rotate(-11deg) scale(1);
    }
    45% {
        transform: rotate(-4deg) scale(1.08);
    }
    100% {
        transform: rotate(-11deg) scale(1);
    }
}

@keyframes ringTap {
    0% {
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--md-sys-color-primary) 35%, transparent);
    }
    100% {
        box-shadow: 0 0 0 10px transparent;
    }
}

@keyframes motionEnterSpatial {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Servers layout refresh */
.server-card-horizontal {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 168px;
    gap: 8px;
    align-items: stretch;
    padding: 8px;
}

.server-card-horizontal .server-card-body {
    padding: 14px 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.server-card-horizontal .server-card-status {
    position: static;
    width: fit-content;
    margin-bottom: 2px;
}

.server-card-horizontal .server-card-title {
    margin: 0;
}

.server-card-horizontal .server-card-description {
    margin: 0;
    -webkit-line-clamp: 5;
}

.server-card-media {
    display: grid;
    place-items: center;
    padding: 8px 10px 8px 4px;
}

.server-card-icon-shell {
    width: 100%;
    max-width: 148px;
    aspect-ratio: 1;
    border-radius: 34px;
    border: 1px solid color-mix(in srgb, var(--md-sys-color-primary) 28%, var(--md-sys-color-outline-variant));
    background:
        radial-gradient(circle at 28% 26%, color-mix(in srgb, var(--md-sys-color-primary) 20%, transparent), transparent 56%),
        linear-gradient(145deg, color-mix(in srgb, var(--md-sys-color-surface-container-high) 88%, transparent), color-mix(in srgb, var(--md-sys-color-surface-container-low) 86%, transparent));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 24px rgba(0, 0, 0, 0.2);
    display: grid;
    place-items: center;
    padding: 18px;
    transition: transform var(--md-sys-motion-medium) var(--md-sys-motion-easing),
        box-shadow var(--md-sys-motion-medium) var(--md-sys-motion-easing);
}

.server-card-icon {
    width: 200%;
    height: 200%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.24));
}

.server-card-horizontal:hover .server-card-icon-shell {
    transform: translateY(-2px) scale(1.02);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 16px 28px rgba(0, 0, 0, 0.26);
}

@media (max-width: 699px) {
    .server-card-horizontal {
        grid-template-columns: 1fr;
    }

    .server-card-media {
        order: -1;
        padding: 8px;
    }

    .server-card-icon-shell {
        max-width: 124px;
        border-radius: 28px;
    }
}

/* --- v3 Clean-up (Material buttons + card composition) --- */
.logo img {
    border: none;
}

.brand-icon {
    width: 18px;
    height: 18px;
    vertical-align: -0.16em;
}

.server-card-actions a::after,
.hero-actions a::after,
.project-hero-actions a::after {
    display: none;
}

.server-card-horizontal {
    position: relative;
    display: block;
    padding: 0;
}

.server-card-horizontal .server-card-body {
    padding: 18px 20px 18px;
    padding-right: 168px;
}

.server-card-horizontal .server-card-status {
    position: static;
}

.server-card-horizontal .server-card-title {
    font-size: 1.55rem;
    line-height: 1.08;
}

.server-card-horizontal .server-card-description {
    -webkit-line-clamp: 3;
    max-width: 62ch;
}

.server-card-corner-media {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 124px;
    height: 124px;
    display: grid;
    place-items: center;
}

.server-card-corner-media .server-card-icon-shell {
    width: 124px;
    height: 124px;
    border-radius: 20px;
    padding: 14px;
}

.server-card-horizontal:hover .server-card-corner-media .server-card-icon-shell {
    transform: translateY(-1px);
}

.sub-page {
    max-width: 1060px;
    padding-top: 28px;
}

.sub-header-pro {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid color-mix(in srgb, var(--md-sys-color-primary) 26%, var(--md-sys-color-outline-variant));
    background:
        radial-gradient(860px 260px at -6% -22%, color-mix(in srgb, var(--md-sys-color-primary-container) 72%, transparent), transparent 72%),
        radial-gradient(760px 280px at 110% 14%, color-mix(in srgb, var(--md-sys-color-tertiary-container) 58%, transparent), transparent 74%),
        linear-gradient(146deg, color-mix(in srgb, var(--md-sys-color-surface-container-high) 90%, #0b1018), color-mix(in srgb, var(--md-sys-color-surface-container) 82%, #0d1119) 48%, color-mix(in srgb, var(--md-sys-color-primary-container) 34%, #0f1420) 100%);
    box-shadow: var(--md-sys-elevation-3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    padding: clamp(26px, 5vw, 46px);
}

.sub-header-pro::before,
.sub-header-pro::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(44px);
}

.sub-header-pro::before {
    width: 300px;
    height: 300px;
    right: -72px;
    top: -96px;
    background: color-mix(in srgb, var(--md-sys-color-primary) 35%, transparent);
    opacity: 0.5;
}

.sub-header-pro::after {
    width: 280px;
    height: 280px;
    left: -78px;
    bottom: -118px;
    background: color-mix(in srgb, var(--md-sys-color-tertiary) 34%, transparent);
    opacity: 0.4;
}

.sub-header-pro > * {
    position: relative;
    z-index: 1;
}

.subs-list {
    gap: 16px;
}

.sub-item {
    border-left-width: 5px;
    padding: 22px 22px 20px;
}

.sub-item:hover {
    transform: translateY(-2px);
}

.sub-item-header {
    gap: 14px;
    margin-bottom: 14px;
}

.sub-item-name-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.sub-item-name {
    font-size: 1.38rem;
    letter-spacing: -0.02em;
}

.sub-item-price {
    font-size: 2rem;
}

.sub-item-form {
    margin-top: 14px;
}

.sub-buy-btn,
.sub-login-btn {
    width: 100%;
}

.sub-buy-btn {
    --md-filled-button-container-color: var(--plan-color);
    --md-filled-button-label-text-color: #0b1018;
}

.sub-login-btn {
    --md-filled-tonal-button-container-color: var(--md-sys-color-primary-container);
    --md-filled-tonal-button-label-text-color: var(--md-sys-color-on-primary-container);
}

.sub-item-form .sub-buy-btn,
.sub-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

md-assist-chip {
    --md-assist-chip-container-shape: 999px;
    --md-assist-chip-label-text-font: "Plus Jakarta Sans";
    --md-assist-chip-label-text-size: 0.74rem;
    --md-assist-chip-label-text-weight: 700;
    --md-assist-chip-outline-color: color-mix(in srgb, var(--plan-color) 50%, var(--md-sys-color-outline-variant));
    --md-assist-chip-label-text-color: color-mix(in srgb, var(--plan-color) 75%, #ffffff);
}

@media (max-width: 840px) {
    .server-card-horizontal .server-card-body {
        padding-right: 20px;
    }

    .server-card-corner-media {
        position: static;
        width: 100%;
        height: auto;
        margin-top: 8px;
        justify-content: flex-end;
    }

    .server-card-corner-media .server-card-icon-shell {
        width: 108px;
        height: 108px;
        border-radius: 18px;
    }
}

/* --- v4 Material button system (authoritative) --- */
.logo img {
    border: none;
    box-shadow: none;
}

:where(md-filled-button, md-filled-tonal-button, md-outlined-button, md-text-button) {
    --md-filled-button-container-height: 40px;
    --md-filled-tonal-button-container-height: 40px;
    --md-outlined-button-container-height: 40px;
    --md-text-button-container-height: 40px;

    --md-filled-button-container-shape: 999px;
    --md-filled-tonal-button-container-shape: 999px;
    --md-outlined-button-container-shape: 999px;
    --md-text-button-container-shape: 999px;

    --md-filled-button-leading-space: 16px;
    --md-filled-button-trailing-space: 16px;
    --md-filled-tonal-button-leading-space: 16px;
    --md-filled-tonal-button-trailing-space: 16px;
    --md-outlined-button-leading-space: 16px;
    --md-outlined-button-trailing-space: 16px;
    --md-text-button-leading-space: 14px;
    --md-text-button-trailing-space: 14px;

    --md-filled-button-label-text-font: "Roboto";
    --md-filled-tonal-button-label-text-font: "Roboto";
    --md-outlined-button-label-text-font: "Roboto";
    --md-text-button-label-text-font: "Roboto";

    --md-filled-button-label-text-size: 0.9rem;
    --md-filled-tonal-button-label-text-size: 0.9rem;
    --md-outlined-button-label-text-size: 0.9rem;
    --md-text-button-label-text-size: 0.9rem;

    --md-filled-button-label-text-weight: 500;
    --md-filled-tonal-button-label-text-weight: 500;
    --md-outlined-button-label-text-weight: 500;
    --md-text-button-label-text-weight: 500;
}

:where(md-filled-button, md-filled-tonal-button, md-outlined-button, md-text-button)::part(button) {
    padding: 0 16px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

:where(md-filled-button, md-filled-tonal-button, md-outlined-button, md-text-button)::part(label) {
    text-align: center;
    margin: 0;
}

md-filled-button {
    --md-filled-button-container-color: var(--md-sys-color-primary);
    --md-filled-button-label-text-color: var(--md-sys-color-on-primary);
}

md-filled-tonal-button {
    --md-filled-tonal-button-container-color: var(--md-sys-color-secondary-container);
    --md-filled-tonal-button-label-text-color: var(--md-sys-color-on-secondary-container);
}

md-outlined-button {
    --md-outlined-button-outline-color: var(--md-sys-color-outline-variant);
    --md-outlined-button-label-text-color: var(--md-sys-color-on-surface);
}

md-text-button {
    --md-text-button-label-text-color: var(--md-sys-color-primary);
}

:where(md-filled-button, md-filled-tonal-button, md-outlined-button, md-text-button) .material-symbols-outlined,
:where(md-filled-button, md-filled-tonal-button, md-outlined-button, md-text-button) .brand-icon {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

:where(md-filled-button, md-filled-tonal-button, md-outlined-button) [slot="icon"] {
    margin-inline-end: 6px;
}

/* Local fixes for project pages and profile */
.project-hero-actions :where(md-filled-button, md-outlined-button),
.status-actions :where(md-filled-button, md-outlined-button) {
    --md-filled-button-container-height: 44px;
    --md-outlined-button-container-height: 44px;
    --md-filled-button-leading-space: 18px;
    --md-filled-button-trailing-space: 18px;
    --md-outlined-button-leading-space: 18px;
    --md-outlined-button-trailing-space: 18px;
    --md-filled-button-label-text-size: 0.96rem;
    --md-outlined-button-label-text-size: 0.96rem;
    --md-filled-button-label-text-weight: 700;
    --md-outlined-button-label-text-weight: 700;
}

.project-hero-actions :where(md-filled-button, md-outlined-button)::part(button),
.status-actions :where(md-filled-button, md-outlined-button)::part(button) {
    padding: 0 18px;
    min-height: 44px;
}

.empty-state-modern {
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--md-sys-color-primary) 16%, var(--md-sys-color-outline-variant));
    background: color-mix(in srgb, var(--md-sys-color-surface-container) 78%, transparent);
}

.profile-grid {
    width: min(var(--page-max), 100% - 2rem);
    margin: 16px auto 0;
    display: grid;
    gap: 16px;
    grid-template-columns: 1.15fr 0.85fr;
}

.profile-grid .profile-section:first-child {
    grid-column: 1 / -1;
}

@media (max-width: 959px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-cta-watch {
        min-width: 0;
        width: 100%;
    }
}

.hero-actions a,
.server-card-actions a,
.project-hero-actions a {
    display: inline-flex;
}

.sub-login-link {
    display: block;
    width: 100%;
}

.server-card-actions {
    align-items: center;
}

.server-card-actions md-icon-button {
    --md-icon-button-state-layer-size: 40px;
}

.sub-item-form .sub-buy-btn,
.sub-login-btn {
    width: 100%;
    display: flex;
}

.sub-buy-btn:hover,
.sub-login-btn:hover {
    transform: none;
    filter: none;
}

.sub-buy-btn {
    --md-filled-button-container-color: var(--plan-color);
    --md-filled-button-label-text-color: #10151e;
}

.sub-item {
    border-left-width: 4px;
}

/* Server cards (Material-styled) */
.server-card-showcase {
    background: color-mix(in srgb, var(--md-sys-color-surface-container-low) 92%, transparent);
    border: var(--glass-border);
    border-radius: var(--md-sys-shape-corner-lg);
    box-shadow: var(--md-sys-elevation-1);
    color: var(--md-sys-color-on-surface);
    padding: 18px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
}

.server-card-showcase .server-card-body {
    padding: 0;
    padding-right: 196px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.server-card-showcase .server-card-title {
    color: var(--md-sys-color-on-surface);
    font-family: "Sora", "Roboto", sans-serif;
    font-size: clamp(1.25rem, 2.7vw, 1.72rem);
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.01em;
}

.server-card-showcase .server-card-description {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.98rem;
    line-height: 1.5;
    -webkit-line-clamp: 3;
    max-width: none;
    margin: 0;
}

.server-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 14px;
}

.server-card-actions-showcase {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.server-card-actions-showcase > a {
    display: inline-flex;
    text-decoration: none;
}

.server-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: background-color var(--md-motion-fast-effects) var(--md-motion-expressive-fast-effects-curve),
        border-color var(--md-motion-fast-effects) var(--md-motion-expressive-fast-effects-curve),
        box-shadow var(--md-motion-fast-effects) var(--md-motion-expressive-fast-effects-curve),
        transform var(--md-motion-fast-spatial) var(--md-motion-expressive-fast-spatial-curve);
}

.server-action-btn .material-symbols-outlined,
.server-action-btn .brand-icon {
    width: 18px;
    height: 18px;
    font-size: 18px;
    flex: 0 0 auto;
}

.server-action-btn-primary {
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border-color: transparent;
}

.server-action-btn-primary:hover {
    background: color-mix(in srgb, var(--md-sys-color-primary) 90%, black);
    box-shadow: var(--md-sys-elevation-2);
}

.server-action-btn-secondary {
    background: color-mix(in srgb, var(--md-sys-color-surface-container) 70%, transparent);
    color: var(--md-sys-color-on-surface);
    border-color: var(--md-sys-color-outline-variant);
}

.server-action-btn-secondary:hover {
    background: var(--md-sys-color-surface-container-high);
    border-color: color-mix(in srgb, var(--md-sys-color-primary) 40%, var(--md-sys-color-outline-variant));
}

.server-action-btn:active {
    transform: none;
    transition-duration: var(--md-motion-fast-effects);
}

.server-action-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--md-sys-color-primary) 45%, transparent);
}

.server-card-showcase .server-card-corner-media {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 172px;
    height: 172px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.server-card-showcase .server-card-corner-media .server-card-icon {
    width: 172px;
    height: 172px;
    object-fit: contain;
    filter: none;
}

.servers-grid {
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (max-width: 980px) {
    .server-card-showcase .server-card-body {
        padding-right: 176px;
        gap: 9px;
    }

    .server-card-showcase .server-card-corner-media {
        top: 16px;
        right: 16px;
        width: 156px;
        height: 156px;
    }

    .server-card-showcase .server-card-corner-media .server-card-icon {
        width: 156px;
        height: 156px;
    }

    .server-card-showcase .server-card-description {
        font-size: 0.97rem;
    }
}

@media (max-width: 760px) {
    .server-card-showcase .server-card-description {
        -webkit-line-clamp: 4;
    }

    .server-card-footer {
        align-items: center;
    }

    .server-card-showcase .server-card-body {
        padding-right: 158px;
    }

    .server-card-showcase .server-card-corner-media {
        top: 14px;
        right: 14px;
        width: 144px;
        height: 144px;
    }

    .server-card-showcase .server-card-corner-media .server-card-icon {
        width: 144px;
        height: 144px;
    }
}

/* --- Subscriptions cards v3 --- */
.subs-list-v3 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.sub-item-v3 {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-left: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid color-mix(in srgb, var(--plan-color) 35%, var(--md-sys-color-outline-variant));
    background: color-mix(in srgb, var(--md-sys-color-surface-container-high) 90%, transparent);
    box-shadow: var(--md-sys-elevation-1);
}

.sub-item-v3:hover {
    border-color: color-mix(in srgb, var(--plan-color) 55%, var(--md-sys-color-outline-variant));
    box-shadow: var(--md-sys-elevation-2);
}

.sub-item-v3 .sub-item-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 8.5;
    background: color-mix(in srgb, var(--plan-color) 18%, var(--md-sys-color-surface-container));
    border-bottom: 1px solid color-mix(in srgb, var(--plan-color) 20%, var(--md-sys-color-outline-variant));
}

.sub-item-v3 .sub-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.015);
    transition: opacity var(--md-motion-default-effects) var(--md-motion-expressive-default-effects-curve),
        transform var(--md-motion-fast-spatial) var(--md-motion-expressive-fast-spatial-curve);
}

.sub-item-v3.is-media-ready .sub-item-media img {
    opacity: 1;
    transform: none;
}

.sub-item-v3 .sub-item-media-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, color-mix(in srgb, #000000 40%, transparent), transparent 48%),
        radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--plan-color) 34%, transparent), transparent 60%);
    pointer-events: none;
}

.sub-item-v3 .sub-item-media-meta {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.sub-item-price-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #f3f7ff;
    background: color-mix(in srgb, #0d1420 78%, transparent);
    border: 1px solid color-mix(in srgb, #ffffff 18%, transparent);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.sub-item-v3 .sub-item-content {
    padding: 20px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--md-motion-default-effects) var(--md-motion-expressive-default-effects-curve),
        transform var(--md-motion-fast-spatial) var(--md-motion-expressive-fast-spatial-curve);
}

.sub-item-v3.is-content-ready .sub-item-content {
    opacity: 1;
    transform: none;
}

.sub-item-v3 .sub-item-header {
    margin: 0;
    align-items: flex-start;
}

.sub-item-v3 .sub-item-name {
    font-size: clamp(1.4rem, 3.4vw, 2rem);
    line-height: 1.04;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.sub-item-name-pack-icon {
    width: clamp(1.3rem, 3.2vw, 1.7rem);
    height: clamp(1.3rem, 3.2vw, 1.7rem);
    object-fit: contain;
    flex: 0 0 auto;
    filter: brightness(0) invert(1);
}

.sub-item-name-text {
    display: inline-block;
}

.sub-header-pack-icon {
    width: clamp(1.25rem, 3.4vw, 1.95rem);
    height: clamp(1.25rem, 3.4vw, 1.95rem);
    object-fit: contain;
    filter: brightness(0) invert(1);
}

[data-theme="light"] .sub-item-name-pack-icon,
[data-theme="light"] .sub-header-pack-icon {
    filter: none;
}

.sub-item-v3 .sub-item-subtitle {
    margin-top: 7px;
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.88rem;
    font-weight: 650;
}

.sub-item-v3 .sub-item-desc {
    margin: 0;
    min-height: 104px;
}

.sub-item-benefits {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 7px;
}

.sub-item-benefits li {
    position: relative;
    color: var(--md-sys-color-on-surface-variant);
    line-height: 1.38;
    font-size: 0.95rem;
    padding-left: 18px;
}

.sub-item-benefits li::before {
    content: "check";
    position: absolute;
    left: 0;
    top: 1px;
    font-family: "Material Symbols Outlined";
    font-size: 14px;
    line-height: 1;
    color: color-mix(in srgb, var(--plan-color) 68%, var(--md-sys-color-primary));
}

.sub-item-v3 .sub-item-form {
    margin-top: auto;
    padding-top: 4px;
}

.sub-item-v3 .sub-login-link {
    margin-top: auto;
    padding-top: 4px;
}

.sub-item-v3 .sub-buy-btn,
.sub-item-v3 .sub-login-btn {
    width: 100%;
    --md-filled-button-container-height: 48px;
    --md-filled-tonal-button-container-height: 48px;
    --md-filled-button-leading-space: 20px;
    --md-filled-button-trailing-space: 20px;
    --md-filled-tonal-button-leading-space: 20px;
    --md-filled-tonal-button-trailing-space: 20px;
    --md-filled-button-label-text-size: 1.02rem;
    --md-filled-tonal-button-label-text-size: 1.02rem;
    --md-filled-button-label-text-weight: 700;
    --md-filled-tonal-button-label-text-weight: 700;
}

.sub-item-v3 .sub-buy-btn {
    --md-filled-button-container-color: color-mix(in srgb, var(--plan-color) 62%, #ffffff);
    --md-filled-button-label-text-color: #0b111b;
}

.sub-item-v3 .sub-login-btn {
    --md-filled-tonal-button-container-color: color-mix(in srgb, var(--plan-color) 18%, var(--md-sys-color-surface-container-high));
    --md-filled-tonal-button-label-text-color: var(--md-sys-color-on-surface);
}

.sub-page {
    width: min(1480px, 100% - 2rem);
    max-width: 1480px;
}

@media (max-width: 1320px) {
    .subs-list-v3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .subs-list-v3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 699px) {
    .subs-list-v3 {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sub-item-v3 .sub-item-content {
        padding: 16px 14px 14px;
    }

    .sub-item-v3 .sub-item-desc {
        min-height: 0;
    }

    .sub-item-v3 .sub-item-media-meta {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .sub-item-price-badge {
        font-size: 0.78rem;
        padding: 5px 9px;
    }

    .sub-item-benefits li {
        font-size: 0.93rem;
    }
}

/* --- M3 Motion System (global) --- */
#page-preloader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: color-mix(in srgb, var(--md-sys-color-background) 86%, transparent);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    transition: opacity var(--md-motion-fast-effects) var(--md-motion-expressive-fast-effects-curve),
        visibility var(--md-motion-fast-effects) linear;
}

.m3-ready #page-preloader {
    opacity: 0;
    visibility: hidden;
}

#page-preloader.show {
    opacity: 1;
    visibility: visible;
}

.page-preloader-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    overflow: hidden;
}

.page-preloader-line::before {
    content: "";
    position: absolute;
    top: 0;
    left: -35%;
    width: 35%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent 0%, var(--md-sys-color-primary) 45%, transparent 100%);
    animation: m3PreloadSweep var(--md-motion-default-spatial) var(--md-motion-standard-default-spatial-curve) infinite;
}

html .page-container {
    opacity: 1;
    transform: none;
    transition: opacity var(--md-motion-default-effects) var(--md-motion-expressive-default-effects-curve),
        transform var(--md-motion-default-spatial) var(--md-motion-expressive-default-spatial-curve);
}

html:not(.m3-ready) .page-container {
    opacity: 0;
    transform: translateY(8px) scale(0.997);
}

html.m3-route-leave .page-container {
    opacity: 0;
    transform: translateY(6px) scale(0.996);
}

.m3-pressable {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.m3-pressable::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: color-mix(in srgb, var(--md-sys-color-primary) 20%, transparent);
    opacity: 0;
    transition: opacity var(--md-motion-fast-effects) var(--md-motion-expressive-fast-effects-curve);
    z-index: 0;
}

.m3-pressable:hover::before {
    opacity: 0.08;
}

.m3-pressable:active::before {
    opacity: 0;
}

.m3-pressable:focus-visible::before {
    opacity: 0.12;
}

.m3-pressable > * {
    position: relative;
    z-index: 1;
}

.m3-reveal {
    opacity: 0;
    transform: translateY(14px) scale(0.988);
    transition: opacity var(--md-motion-default-effects) var(--md-motion-expressive-default-effects-curve),
        transform var(--md-motion-fast-spatial) var(--md-motion-expressive-fast-spatial-curve);
}

.m3-reveal.m3-visible {
    opacity: 1;
    transform: none;
}

.servers-grid > .m3-reveal:nth-child(2),
.features-grid > .m3-reveal:nth-child(2),
.links-grid > .m3-reveal:nth-child(2),
.quick-links-grid > .m3-reveal:nth-child(2),
.subs-list > .m3-reveal:nth-child(2) {
    transition-delay: 60ms;
}

.servers-grid > .m3-reveal:nth-child(3),
.features-grid > .m3-reveal:nth-child(3),
.links-grid > .m3-reveal:nth-child(3),
.quick-links-grid > .m3-reveal:nth-child(3),
.subs-list > .m3-reveal:nth-child(3) {
    transition-delay: 110ms;
}

.servers-grid > .m3-reveal:nth-child(4),
.features-grid > .m3-reveal:nth-child(4),
.links-grid > .m3-reveal:nth-child(4),
.quick-links-grid > .m3-reveal:nth-child(4),
.subs-list > .m3-reveal:nth-child(4) {
    transition-delay: 150ms;
}

.server-card,
.server-card-showcase,
.feature-card,
.link-card,
.quick-link-card,
.sub-item,
.profile-section,
.project-feature,
.server-info-card,
.coming-soon-card,
.account-info-card,
.auth-card-modern,
.status-card-modern,
.status-card {
    transition: box-shadow var(--md-motion-fast-effects) var(--md-motion-expressive-fast-effects-curve),
        border-color var(--md-motion-fast-effects) var(--md-motion-expressive-fast-effects-curve),
        background-color var(--md-motion-fast-effects) var(--md-motion-expressive-fast-effects-curve),
        filter var(--md-motion-fast-effects) var(--md-motion-expressive-fast-effects-curve);
}

.server-card:hover,
.server-card-showcase:hover,
.feature-card:hover,
.link-card:hover,
.quick-link-card:hover,
.sub-item:hover,
.profile-section:hover,
.project-feature:hover,
.server-info-card:hover,
.coming-soon-card:hover,
.account-info-card:hover {
    box-shadow: var(--md-sys-elevation-2);
    border-color: color-mix(in srgb, var(--md-sys-color-primary) 30%, var(--md-sys-color-outline-variant));
}

.hero-cta:hover,
.server-action-btn:hover,
.sub-buy-btn:hover,
.sub-login-btn:hover,
.sub-item:hover,
.server-card-horizontal:hover .server-card-icon-shell {
    transform: none !important;
}

.server-action-btn,
.hero-cta,
.sub-buy-btn,
.sub-login-btn {
    transition: background-color var(--md-motion-fast-effects) var(--md-motion-expressive-fast-effects-curve),
        color var(--md-motion-fast-effects) var(--md-motion-expressive-fast-effects-curve),
        border-color var(--md-motion-fast-effects) var(--md-motion-expressive-fast-effects-curve),
        box-shadow var(--md-motion-fast-effects) var(--md-motion-expressive-fast-effects-curve),
        filter var(--md-motion-fast-effects) var(--md-motion-expressive-fast-effects-curve);
}

.server-action-btn:active,
.hero-cta:active,
.sub-buy-btn:active,
.sub-login-btn:active {
    transform: none;
}

@keyframes m3PreloadSweep {
    0% {
        left: -35%;
    }
    100% {
        left: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
        scroll-behavior: auto !important;
    }

    #page-preloader {
        display: none !important;
    }

    html .page-container,
    html:not(.m3-ready) .page-container,
    html.m3-route-leave .page-container,
    .m3-reveal,
    .m3-reveal.m3-visible {
        opacity: 1 !important;
        transform: none !important;
    }
}
