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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #090a0d;
    --bg-soft: #11131a;
    --card: rgba(20, 23, 31, 0.86);
    --card-strong: #141824;
    --text: #ebedf2;
    --text-muted: #a7adbd;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.18);
    --accent: #e8edf9;
    --accent-ink: #0b0f17;
    --good: #49d398;
    --warn: #f0b85a;
    --bad: #ef6b72;
    --primary: #5f8dff;
    --primary-hover: #4e7cf0;
    --surface: rgba(20, 23, 31, 0.86);
    --border: rgba(255, 255, 255, 0.1);
    --text-secondary: #a7adbd;
    --background: #090a0d;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(1200px 700px at 10% -15%, rgba(173, 190, 255, 0.09), transparent 45%),
        radial-gradient(900px 500px at 90% 0%, rgba(118, 159, 255, 0.08), transparent 40%),
        linear-gradient(180deg, #08090c 0%, #090a0d 40%, #07080c 100%);
    color: var(--text);
    min-height: 100vh;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    line-height: 1.5;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
}

.container {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
}

.container-width {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text);
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
}

.logo-image {
    width: 30px;
    height: 30px;
    border-radius: 9px;
}

.background-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
}

.gradient-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(90px);
    opacity: 0.55;
    animation: float 16s ease-in-out infinite;
}

.gradient-orb-1 {
    width: 420px;
    height: 420px;
    left: -100px;
    top: -80px;
    background: radial-gradient(circle, rgba(132, 160, 251, 0.35), rgba(132, 160, 251, 0));
}

.gradient-orb-2 {
    width: 440px;
    height: 440px;
    right: -160px;
    bottom: -170px;
    background: radial-gradient(circle, rgba(81, 120, 214, 0.32), rgba(81, 120, 214, 0));
    animation-delay: 1.8s;
}

.navbar {
    position: fixed;
    top: 14px;
    left: 0;
    right: 0;
    z-index: 60;
    display: flex;
    justify-content: center;
}

.navbar > .container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.nav-content {
    width: fit-content;
    max-width: calc(100% - 2rem);
    margin: 0;
    min-height: 54px;
    border: 1px solid var(--line);
    background: rgba(9, 12, 18, 0.86);
    backdrop-filter: blur(14px);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.45rem 0.65rem 0.45rem 0.95rem;
    gap: 0.55rem;
}

.nav-links,
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-links {
    margin-left: 0.4rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 0.78rem;
    border-radius: 999px;
    transition: 0.2s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.nav-divider {
    width: 1px;
    height: 22px;
    background: var(--line);
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid var(--line);
    padding: 0.3rem 0.65rem 0.3rem 0.38rem;
    background: rgba(255, 255, 255, 0.04);
}

.user-avatar {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    display: grid;
    place-items: center;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.user-avatar span,
.user-name {
    font-size: 0.78rem;
    font-weight: 700;
}

.btn {
    border: none;
    cursor: pointer;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    line-height: 1;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, background-color 0.2s ease, border-color 0.2s ease;
    padding: 0.75rem 1.08rem;
    font-size: 0.9rem;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
}

.btn-outline {
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.btn-sm {
    padding: 0.55rem 0.85rem;
    font-size: 0.78rem;
}

.btn-lg {
    padding: 0.95rem 1.35rem;
    font-size: 0.95rem;
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.site-main {
    position: relative;
    z-index: 1;
    padding-top: 94px;
    padding-bottom: 3rem;
}

.hero-shell {
    text-align: center;
    padding: 5.2rem 0 3.2rem;
}

.hero-badge {
    display: inline-block;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1.1rem;
}

.hero-shell h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    line-height: 1.06;
    margin-bottom: 1rem;
}

.hero-shell > p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: clamp(1rem, 2.8vw, 1.2rem);
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-meta-grid {
    margin-top: 2.2rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.soft-card,
.card,
.feature-row,
.module-card,
.stat-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
    backdrop-filter: blur(7px);
}

.soft-card {
    padding: 1rem;
    text-align: left;
}

.soft-card h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.soft-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.section-block {
    padding: 2rem 0;
}

.section-header {
    margin-bottom: 1.25rem;
}

.section-header h2 {
    font-size: clamp(1.55rem, 4vw, 2.45rem);
}

.section-header p {
    margin-top: 0.45rem;
    color: var(--text-muted);
}

.feature-rows {
    border-top: 1px solid var(--line);
}

.feature-row {
    margin-top: 0.9rem;
    padding: 1rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1rem;
}

.feature-row h3 {
    font-size: 1.18rem;
    margin-bottom: 0.4rem;
}

.feature-row p,
.feature-row li {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.feature-row ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
}

.feature-row li::before {
    content: '\2022 ';
    color: var(--accent);
}

.module-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.module-card {
    padding: 1rem;
}

.module-card h4 {
    margin-bottom: 0.45rem;
    font-size: 1.02rem;
}

.module-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.stat-card {
    padding: 1.2rem;
    text-align: center;
}

.stat-card strong {
    display: block;
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
    font-size: 1.45rem;
}

.stat-card span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.site-footer {
    margin-top: 2rem;
    border-top: 1px solid var(--line);
    padding-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.site-footer p,
.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
}

.footer-links {
    display: flex;
    gap: 0.8rem;
}

.footer-links a:hover {
    color: var(--text);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 6.2rem 1rem 1rem;
    position: relative;
    z-index: 1;
}

.auth-card {
    width: min(430px, 100%);
    padding: 1.4rem;
}

.auth-card h1 {
    text-align: center;
    font-size: 2rem;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin: 0.55rem 0 1.25rem;
    font-size: 0.95rem;
}

.auth-form {
    display: grid;
    gap: 0.9rem;
}

.form-group {
    display: grid;
    gap: 0.4rem;
}

.form-group label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.form-group input,
textarea {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.72rem 0.8rem;
    font-size: 0.95rem;
}

.form-group input:focus,
textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.35);
}

.form-group input::placeholder,
textarea::placeholder {
    color: #8f98ab;
}

.auth-footer {
    text-align: center;
    margin-top: 1.1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
}

.error-message {
    display: none;
    border: 1px solid rgba(239, 107, 114, 0.5);
    background: rgba(239, 107, 114, 0.12);
    color: #ff9ea3;
    border-radius: 12px;
    padding: 0.7rem 0.8rem;
    font-size: 0.85rem;
    margin-bottom: 0.95rem;
}

.dashboard-app {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 240px 1fr;
}

.dashboard-sidebar {
    border-right: 1px solid var(--line);
    background: rgba(10, 13, 20, 0.87);
    backdrop-filter: blur(12px);
    padding: 1rem;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--line);
}

.sidebar-nav {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.9rem;
}

.sidebar-link {
    text-decoration: none;
    color: var(--text-muted);
    border-radius: 10px;
    padding: 0.58rem 0.7rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.sidebar-status {
    margin-top: auto;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.8rem;
}

.sidebar-status p {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.sidebar-status strong {
    margin-top: 0.2rem;
    display: block;
}

.dashboard-main {
    padding: 1.15rem;
}

.dashboard-topbar {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(14, 17, 26, 0.86);
    backdrop-filter: blur(10px);
    padding: 0.7rem 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.dashboard-topbar h1 {
    font-size: 1rem;
}

.dashboard-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-section {
    margin-top: 1rem;
}

.panel-section {
    display: none;
}

.panel-section.active {
    display: block;
}

.dashboard-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.dashboard-title-row h2 {
    font-size: 1.8rem;
}

.dashboard-title-row p {
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.dashboard-cta-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.metric-grid {
    margin-top: 0.9rem;
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    padding: 1rem;
}

.metric-card span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.metric-card strong {
    display: block;
    margin-top: 0.15rem;
    font-size: 1.25rem;
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
}

.card {
    padding: 1rem;
}

.card-glow {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.dashboard-section h3 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.profile-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.75rem;
    display: grid;
    gap: 0.3rem;
}

.profile-item span {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.profile-item strong {
    font-size: 0.92rem;
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
}

.profile-item-wide {
    grid-column: 1 / -1;
}

.hwid-row {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    justify-content: space-between;
}

#licenseContainer {
    cursor: pointer;
}

.section-intro {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.9rem;
}

.support-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.support-pane {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.9rem;
}

.support-pane h4 {
    margin-bottom: 0.4rem;
}

.support-pane p {
    color: var(--text-muted);
    font-size: 0.86rem;
    margin-bottom: 0.7rem;
}

.support-list {
    margin: 0;
    padding-left: 1rem;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.6;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.settings-avatar-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.settings-avatar-preview {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.settings-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.settings-avatar-actions {
    display: grid;
    gap: 0.5rem;
    flex: 1;
}

.settings-form-grid {
    display: grid;
    gap: 0.7rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 0.8rem;
}

.settings-form-grid.single-column {
    grid-template-columns: 1fr;
}

.settings-form-grid label {
    display: block;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.settings-form-grid input,
.settings-avatar-actions input {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
}

.changelog-list {
    display: grid;
    gap: 0.7rem;
}

.changelog-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.9rem;
}

.changelog-item header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.45rem;
}

.changelog-item .version-badge {
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 0.74rem;
    padding: 0.2rem 0.55rem;
    color: var(--text);
}

.changelog-item .date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.changelog-item ul {
    margin: 0;
    padding-left: 1rem;
    color: var(--text-muted);
    font-size: 0.87rem;
    line-height: 1.55;
}

.muted-empty {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.modal-shell {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-card {
    width: min(520px, 100%);
}

.modal-card h2 {
    margin-bottom: 0.55rem;
    font-size: 1.3rem;
}

.modal-card > p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 1rem;
}

.modal-form-group {
    margin-bottom: 0.95rem;
}

.modal-form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}

.modal-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.modal-form-hint-row {
    margin-top: 0.35rem;
    display: flex;
    justify-content: space-between;
    color: #8f98ab;
    font-size: 0.74rem;
}

.modal-action-row {
    display: flex;
    gap: 0.55rem;
}

.notification-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
    display: grid;
    gap: 0.6rem;
    width: min(360px, calc(100% - 2rem));
}

.notification {
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: rgba(11, 14, 22, 0.96);
    backdrop-filter: blur(12px);
    padding: 0.72rem 0.78rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.6rem;
    animation: fadeInUp 0.24s ease;
}

.notification.removing {
    opacity: 0;
    transform: translateX(16px);
    transition: 0.26s ease;
}

.notification-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.notification.success .notification-icon {
    color: var(--good);
    background: rgba(73, 211, 152, 0.14);
}

.notification.error .notification-icon {
    color: var(--bad);
    background: rgba(239, 107, 114, 0.14);
}

.notification.warning .notification-icon {
    color: var(--warn);
    background: rgba(240, 184, 90, 0.14);
}

.notification.info .notification-icon {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.09);
}

.notification-title {
    font-size: 0.82rem;
    font-weight: 700;
}

.notification-message {
    color: var(--text-muted);
    font-size: 0.79rem;
}

.notification-close {
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.05rem;
}

.tab-btn {
    border: 1px solid var(--line);
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    color: var(--accent-ink);
    background: var(--accent);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.4s ease forwards;
}

@media (max-width: 1060px) {
    .module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-app {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 820px) {
    .nav-links,
    .nav-divider {
        display: none;
    }

    .hero-meta-grid,
    .stats-grid,
    .metric-grid,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .feature-row {
        grid-template-columns: 1fr;
    }

    .feature-row ul {
        grid-template-columns: 1fr;
    }

    .dashboard-title-row {
        flex-direction: column;
    }

    .settings-grid,
    .support-cards-grid,
    .settings-form-grid {
        grid-template-columns: 1fr;
    }

    .module-grid {
        grid-template-columns: 1fr;
    }
}
