:root {
    --ink: #07111f;
    --ink-2: #0b1728;
    --panel: #101b2d;
    --panel-strong: #16243a;
    --cyan-core: #5de7ff;
    --mint-code: #6cffbf;
    --violet-signal: #8b7cff;
    --amber-warn: #ffd166;
    --primary: var(--cyan-core);
    --secondary: var(--mint-code);
    --accent: var(--cyan-core);
    --accent-2: #a8f5ff;
    --dark: var(--ink);
    --dark-elevated: var(--panel);
    --surface-1: rgba(21, 38, 61, 0.84);
    --surface-2: rgba(24, 43, 67, 0.94);
    --surface-3: rgba(13, 25, 43, 0.96);
    --surface-border: rgba(168, 245, 255, 0.2);
    --text: #d8e3ee;
    --text-soft: #bac8d8;
    --text-muted: #8394a8;
    --text-strong: #f8fbff;
    --light: #f8fafc;
    --success: var(--mint-code);
    --warning: var(--amber-warn);
    --danger: #fb7185;
    --radius-card: 8px;
    --radius-control: 10px;
    --gradient-1: linear-gradient(135deg, var(--cyan-core) 0%, var(--mint-code) 100%);
    --gradient-2: linear-gradient(180deg, #07111f 0%, #101b2d 52%, #07111f 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    scroll-padding-top: 88px;
}

body {
    min-height: 100vh;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background:
        linear-gradient(115deg, rgba(93, 231, 255, 0.12), transparent 34%),
        linear-gradient(245deg, rgba(108, 255, 191, 0.09), transparent 36%),
        linear-gradient(180deg, #07111f 0%, #0f1b2d 46%, #07111f 100%);
    background-attachment: fixed;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(100%, 1240px);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

.section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(93, 231, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(93, 231, 255, 0.055) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0));
    opacity: 0.12;
    pointer-events: none;
}

.page-shell,
.auth-container,
.pricing-container,
.faq-container,
.contact-container,
.roadmap-container,
.project-container,
.subscription-container,
.profile-container,
.error-container,
.success-container {
    position: relative;
    min-height: 100vh;
    padding: 8.25rem 2rem 4.5rem;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(93, 231, 255, 0.1), transparent 34%),
        linear-gradient(250deg, rgba(139, 124, 255, 0.08), transparent 32%),
        linear-gradient(180deg, rgba(7, 17, 31, 0.98) 0%, rgba(16, 27, 45, 0.98) 45%, rgba(7, 17, 31, 1) 100%);
}

.page-shell::before,
.auth-container::before,
.pricing-container::before,
.faq-container::before,
.contact-container::before,
.roadmap-container::before,
.project-container::before,
.subscription-container::before,
.profile-container::before,
.error-container::before,
.success-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(93, 231, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(93, 231, 255, 0.07) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0));
    opacity: 0.14;
    pointer-events: none;
}

.page-content,
.page-content-narrow,
.page-content-wide {
    position: relative;
    z-index: 1;
    width: min(100%, 1120px);
    margin: 0 auto;
}

.page-content-narrow {
    width: min(100%, 780px);
}

.page-content-wide {
    width: min(100%, 1320px);
}

.page-header,
.section-header {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto 3rem;
    text-align: center;
}

.page-header h1,
.page-header h2,
.section-header h2 {
    margin-bottom: 1rem;
    color: var(--text-strong);
    font-size: 3.4rem;
    line-height: 1.04;
    letter-spacing: 0;
    font-weight: 800;
    text-wrap: balance;
}

.page-header p,
.section-header p {
    max-width: 52rem;
    margin: 0 auto;
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.78;
}

.pricing-header,
.faq-header,
.contact-header,
.roadmap-header,
.projects-header {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto 3rem;
    text-align: center;
}

.pricing-header h1,
.pricing-header h2,
.faq-header h1,
.faq-header h2,
.contact-header h1,
.contact-header h2,
.roadmap-header h1,
.roadmap-header h2,
.projects-header h1,
.projects-header h2 {
    margin-bottom: 1rem;
    color: var(--text-strong);
    font-size: 3.2rem;
    line-height: 1.05;
    letter-spacing: 0;
    font-weight: 800;
    text-wrap: balance;
}

.projects-title {
    margin: 0;
    color: var(--text-strong);
    font-size: 3.2rem;
    line-height: 1.05;
    letter-spacing: 0;
    font-weight: 800;
    text-wrap: balance;
}

.pricing-header p,
.faq-header p,
.contact-header p,
.roadmap-header p,
.projects-header p {
    max-width: 52rem;
    margin: 0 auto;
    color: var(--text-soft);
    font-size: 1.02rem;
    line-height: 1.76;
}

.page-header-inline {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.page-header-inline h1,
.page-header-inline h2 {
    color: var(--text-strong);
    font-size: 2.25rem;
    line-height: 1.08;
    letter-spacing: 0;
    font-weight: 800;
}

.page-panel,
.auth-card,
.profile-card,
.subscription-card,
.team-section,
.resources-section,
.payment-history,
.resources-purchase-section,
.no-subscription,
.success-details,
.terminal-error {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-card);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.012) 22%),
        linear-gradient(180deg, var(--surface-1), rgba(13, 25, 43, 0.9));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 16px 36px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
}

.page-panel::before,
.auth-card::before,
.profile-card::before,
.subscription-card::before,
.team-section::before,
.resources-section::before,
.payment-history::before,
.resources-purchase-section::before,
.no-subscription::before,
.success-details::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(149, 240, 255, 0), rgba(149, 240, 255, 0.42), rgba(149, 240, 255, 0));
    opacity: 0.6;
}

.page-chip,
.status-badge,
.item-type,
.project-language,
.category-btn,
.view-btn,
.billing-cycle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    background: rgba(11, 16, 32, 0.58);
    color: var(--text-soft);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3.35rem;
    padding: 0.9rem 1.45rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease, background 0.26s ease;
}

.btn + .btn {
    margin-left: 0;
}

.btn.loading {
    cursor: wait;
    position: relative;
    color: transparent !important;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 1.2rem;
    height: 1.2rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(30%);
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 15%, rgba(255, 255, 255, 0.22) 50%, transparent 85%);
    transform: translateX(-130%);
    transition: transform 0.7s ease;
}

.btn:not(:disabled):not(.disabled):not(.loading):hover::before {
    transform: translateX(130%);
}

.btn-primary {
    color: #041018;
    background: linear-gradient(135deg, var(--cyan-core) 0%, var(--mint-code) 100%);
    box-shadow: 0 14px 32px rgba(93, 231, 255, 0.2);
}

.btn-primary:not(:disabled):not(.disabled):not(.loading):hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(93, 231, 255, 0.26);
}

.btn-secondary {
    color: var(--text-strong);
    background: rgba(11, 16, 32, 0.82);
    border-color: rgba(141, 220, 255, 0.18);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.btn-secondary:not(:disabled):not(.disabled):not(.loading):hover {
    transform: translateY(-2px);
    border-color: rgba(168, 245, 255, 0.32);
}

.btn-danger {
    color: white;
    background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
    border-color: rgba(251, 113, 133, 0.24);
    box-shadow: 0 14px 32px rgba(225, 29, 72, 0.2);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5, 7, 13, 0.78);
    backdrop-filter: blur(18px) saturate(150%);
    border-bottom: 1px solid rgba(141, 220, 255, 0.14);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.nav-link {
    color: rgba(247, 251, 255, 0.78) !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    transition: color 0.24s ease;
    position: relative;
    margin: 0 10px;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: center;
    background: linear-gradient(90deg, rgba(168, 245, 255, 0), rgba(168, 245, 255, 1), rgba(108, 255, 191, 1), rgba(168, 245, 255, 0));
    transition: transform 0.24s ease;
}

.nav-link:hover {
    color: var(--text-strong) !important;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.footer {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 2rem;
    background:
        linear-gradient(120deg, rgba(108, 255, 191, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(16, 27, 45, 0.88) 0%, rgba(7, 17, 31, 0.98) 100%);
    border-top: 1px solid rgba(141, 220, 255, 0.12);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, rgba(149, 240, 255, 0), rgba(149, 240, 255, 0.84), rgba(61, 212, 179, 0.84), rgba(149, 240, 255, 0));
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(320px, 1.35fr) minmax(260px, 1fr) minmax(190px, 0.7fr);
    gap: 2rem;
    align-items: start;
}

.footer-section h3 {
    color: var(--text-strong);
    margin-bottom: 1rem;
    font-size: 1.08rem;
}

.footer-section p,
.footer-bottom {
    color: var(--text-soft);
}

.footer-links {
    list-style: none;
}

.footer-link {
    color: var(--text-soft);
    text-decoration: none;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: transform 0.24s ease, color 0.24s ease;
}

.footer-link i {
    color: var(--accent-2);
}

.footer-link:hover {
    color: var(--text-strong);
    transform: translateX(4px);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    text-align: center;
    font-size: 0.875rem;
}

.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: min(100%, 460px);
    padding: 2rem;
}

.auth-card h2 {
    color: var(--text-strong);
    font-size: 1.85rem;
    line-height: 1.08;
    margin-bottom: 0.65rem;
    text-align: center;
    letter-spacing: 0;
}

.auth-card > p {
    color: var(--text-soft);
    text-align: center;
    margin-bottom: 2rem;
}

.input-group,
.form-group {
    position: relative;
}

.form-group {
    margin-bottom: 1.35rem;
}

.form-group label {
    display: block;
    color: rgba(247, 251, 255, 0.84);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.42);
    font-size: 1.1rem;
}

.input-group input,
.form-group > input,
.form-group > select,
.form-group > textarea {
    width: 100%;
    padding: 0.82rem 1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012) 24%),
        rgba(18, 34, 55, 0.7);
    border: 1px solid rgba(168, 245, 255, 0.18);
    border-radius: var(--radius-control);
    color: var(--text-strong);
    font-size: 0.95rem;
    transition: border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.form-group > select {
    appearance: none;
}

.input-group input {
    padding-left: 3rem !important;
}

.input-group input::placeholder,
.form-group > input::placeholder,
.form-group > textarea::placeholder {
    color: rgba(216, 227, 238, 0.56);
}

.input-group input:focus,
.form-group > input:focus,
.form-group > select:focus,
.form-group > textarea:focus {
    outline: none;
    border-color: rgba(168, 245, 255, 0.42);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.016) 24%),
        rgba(22, 42, 68, 0.82);
    box-shadow: 0 0 0 4px rgba(93, 231, 255, 0.1);
}

.input-group input.invalid,
.form-group > input.invalid,
.form-group > select.invalid,
.form-group > textarea.invalid {
    border-color: var(--danger);
}

.form-group > input:disabled,
.form-group > input[readonly],
.form-group > select:disabled,
.form-group > textarea:disabled {
    background: rgba(18, 34, 55, 0.52);
    color: rgba(216, 227, 238, 0.64);
    cursor: not-allowed;
    opacity: 1;
}

.form-group .mud-input-control {
    margin-top: 0;
}

.form-group .mud-input-control .mud-input {
    min-height: 3.1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012) 24%),
        rgba(18, 34, 55, 0.7);
    border-radius: var(--radius-control);
    color: var(--text-strong);
    transition: background 0.24s ease, box-shadow 0.24s ease;
}

.form-group .mud-input-control .mud-input-root,
.form-group .mud-input-control input,
.form-group .mud-input-control textarea {
    color: var(--text-strong) !important;
    font-size: 0.95rem;
}

.form-group .mud-input-control input,
.form-group .mud-input-control textarea {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.form-group .mud-input-control input::placeholder,
.form-group .mud-input-control textarea::placeholder {
    color: rgba(216, 227, 238, 0.56) !important;
    opacity: 1;
}

.form-group .mud-input-control .mud-input-outlined-border {
    border-color: rgba(168, 245, 255, 0.18) !important;
    border-radius: var(--radius-control) !important;
}

.form-group .mud-input-control .mud-input:hover .mud-input-outlined-border,
.form-group .mud-input-control .mud-input.mud-input-focused .mud-input-outlined-border {
    border-color: rgba(168, 245, 255, 0.42) !important;
}

.form-group .mud-input-control .mud-input.mud-input-focused {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.016) 24%),
        rgba(22, 42, 68, 0.82);
    box-shadow: 0 0 0 4px rgba(93, 231, 255, 0.1);
}

.form-group .mud-input-control .mud-input.mud-disabled,
.form-group .mud-input-control .mud-input:has(input:disabled) {
    background: rgba(18, 34, 55, 0.52);
    color: rgba(216, 227, 238, 0.64) !important;
    opacity: 1;
}

.form-group .mud-input-control .mud-input-adornment,
.form-group .mud-input-control .mud-icon-root {
    color: rgba(168, 245, 255, 0.72) !important;
}

.validation-message {
    margin-left: 4px;
    margin-top: 4px;
    color: var(--danger);
}

.w-full {
    width: 100%;
}

.auth-redirect {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-soft);
    font-size: 0.875rem;
}

.auth-form > .btn,
.auth-form > button,
.form-group + .btn,
.form-group + button {
    margin-top: 0.5rem;
}

.auth-redirect a {
    color: var(--accent-2);
    text-decoration: none;
    font-weight: 700;
}

.comparison-section {
    position: relative;
    padding: 4rem 0;
}

.comparison-table-container {
    position: relative;
    z-index: 1;
    overflow-x: auto;
    margin-top: 3rem;
    padding: 0 0 1rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius-card);
    background:
        radial-gradient(circle at top center, rgba(66, 215, 255, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(16, 24, 41, 0.9), rgba(8, 15, 31, 0.96));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 24px 54px rgba(2, 6, 23, 0.3);
    backdrop-filter: blur(14px);
}

.comparison-table-container::before {
    content: '';
    position: absolute;
    left: 1.4rem;
    right: 1.4rem;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(149, 240, 255, 0), rgba(149, 240, 255, 0.72), rgba(149, 240, 255, 0));
    opacity: 0.9;
    pointer-events: none;
}

.comparison-table-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%);
    pointer-events: none;
}

.comparison-table {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--text-strong);
}

.comparison-table th,
.comparison-table td {
    padding: 1.15rem 1.3rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    text-align: left;
    vertical-align: middle;
}

.comparison-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    font-weight: 800;
    font-size: 0.96rem;
    letter-spacing: 0.01em;
    color: #eafcff;
    background:
        linear-gradient(180deg, rgba(18, 33, 53, 0.98), rgba(11, 21, 39, 0.96));
    border-bottom-color: rgba(149, 240, 255, 0.16);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    min-width: 260px;
    color: var(--text-strong);
    font-weight: 700;
}

.comparison-table td {
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0);
}

.comparison-table td:nth-child(2) {
    background:
        linear-gradient(180deg, rgba(66, 215, 255, 0.1), rgba(66, 215, 255, 0.04));
    box-shadow:
        inset 1px 0 0 rgba(149, 240, 255, 0.12),
        inset -1px 0 0 rgba(149, 240, 255, 0.12);
}

.comparison-table th:nth-child(2) {
    background:
        linear-gradient(180deg, rgba(28, 63, 89, 0.98), rgba(12, 29, 49, 0.98));
    box-shadow:
        inset 1px 0 0 rgba(149, 240, 255, 0.16),
        inset -1px 0 0 rgba(149, 240, 255, 0.16);
}

.comparison-table tr:last-child td {
    border-bottom: 0;
}

.comparison-table tbody tr {
    transition: background 0.22s ease;
}

.comparison-table tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
}

.comparison-table tbody tr:hover td:nth-child(2) {
    background:
        linear-gradient(180deg, rgba(66, 215, 255, 0.14), rgba(66, 215, 255, 0.07));
}

.comparison-advantage {
    color: #86efac;
    font-weight: 700;
}

.comparison-disadvantage {
    color: #fda4af;
    font-weight: 700;
}

.comparison-footer {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-strong);
    font-size: 1.18rem;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.plan-features li {
    color: var(--text-soft);
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.72rem;
    font-size: 0.94rem;
}

.plan-features i {
    color: var(--accent-2);
    font-size: 1.18rem;
    flex-shrink: 0;
}

.header-menu-popover {
    min-width: 15rem;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-card);
    background: linear-gradient(180deg, rgba(11, 16, 32, 0.96), rgba(5, 7, 13, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 20px 44px rgba(2, 6, 23, 0.3);
    backdrop-filter: blur(16px);
    overflow: hidden;
}

.header-menu-popover.mud-paper {
    background: linear-gradient(180deg, rgba(11, 16, 32, 0.96), rgba(5, 7, 13, 0.98));
}

.header-menu-popover .mud-list {
    padding: 0.5rem;
    background: transparent;
}

.header-menu-popover .mud-menu-list {
    display: grid;
    gap: 0.12rem;
}

.header-menu-popover .mud-menu-item {
    min-height: 3rem;
    margin: 0.15rem 0;
    padding: 0.72rem 0.9rem;
    border-radius: var(--radius-card);
    color: var(--text-soft);
    font-size: 0.92rem;
    font-weight: 600;
    transition: background 0.24s ease, color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.header-menu-popover .mud-menu-item .mud-menu-item-text {
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: inherit;
}

.header-menu-popover .mud-menu-item:focus-visible,
.header-menu-popover .mud-menu-item:hover {
    outline: none;
    color: var(--text-strong);
    background: rgba(93, 231, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(168, 245, 255, 0.12);
    transform: translateX(2px);
}

.header-menu-popover .mud-menu-item:focus-visible .mud-menu-item-text,
.header-menu-popover .mud-menu-item:hover .mud-menu-item-text {
    color: inherit;
}

.header-menu-popover .mud-menu-item.mud-disabled {
    opacity: 0.72;
    background: rgba(66, 215, 255, 0.08);
    color: #d8f7ff;
    box-shadow: inset 0 0 0 1px rgba(148, 240, 255, 0.08);
    transform: none;
}

.header-menu-popover .mud-menu-item.mud-disabled .mud-menu-item-text {
    color: inherit;
}

.header-menu-popover .mud-list-item-icon,
.header-menu-item-icon {
    color: var(--accent-2) !important;
    flex-shrink: 0;
    margin: 0;
    font-size: 1.2rem;
}

.header-menu-profile-copy {
    display: inline-flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-left: 0.7rem;
    line-height: 1.2;
}

.header-menu-profile-copy strong {
    color: var(--text-strong);
    font-size: 0.92rem;
    font-weight: 700;
}

.header-menu-profile-copy small {
    color: var(--text-muted);
    font-size: 0.76rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.header-menu-popover .mud-avatar {
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

@media (max-width: 959.98px) {
    .header-menu-popover-mobile {
        min-width: 12rem;
        border-radius: var(--radius-card);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.03),
            0 12px 26px rgba(2, 6, 23, 0.22);
    }

    .header-menu-popover-mobile .mud-list {
        padding: 0.35rem;
    }

    .header-menu-popover-mobile .mud-menu-item {
        min-height: 2.65rem;
        margin: 0.08rem 0;
        padding: 0.58rem 0.72rem;
        border-radius: var(--radius-card);
        font-size: 0.88rem;
    }

    .header-menu-popover-mobile .mud-menu-item:focus-visible,
    .header-menu-popover-mobile .mud-menu-item:hover {
        transform: translateX(1px);
        background: rgba(93, 231, 255, 0.1);
    }

    .header-mobile-drawer.mud-drawer {
        border-left: 1px solid rgba(149, 240, 255, 0.12) !important;
        background:
            linear-gradient(135deg, rgba(93, 231, 255, 0.12), transparent 30%),
            linear-gradient(180deg, rgba(11, 16, 32, 0.98), rgba(5, 7, 13, 0.99)) !important;
        box-shadow:
            inset 1px 0 0 rgba(255, 255, 255, 0.03),
            -18px 0 40px rgba(2, 6, 23, 0.28) !important;
        backdrop-filter: blur(18px);
    }

    .header-mobile-drawer.mud-drawer .mud-drawer-content {
        padding: 1rem 0.8rem 1.15rem !important;
        background:
            linear-gradient(135deg, rgba(93, 231, 255, 0.08), transparent 30%),
            linear-gradient(180deg, rgba(11, 16, 32, 0.98), rgba(5, 7, 13, 0.99)) !important;
    }

    .header-mobile-drawer.mud-drawer .mud-navmenu {
        display: grid;
        gap: 0.2rem;
        background: transparent !important;
    }

    .header-mobile-drawer.mud-drawer .mud-nav-item {
        background: transparent !important;
    }

    .header-mobile-drawer.mud-drawer .mud-nav-link {
        min-height: 3rem;
        margin: 0.08rem 0;
        padding: 0.8rem 0.95rem !important;
        border-radius: var(--radius-card);
        color: var(--text-soft) !important;
        background: transparent !important;
        font-weight: 700;
        box-shadow: none !important;
        transition: background 0.24s ease, color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
    }

    .header-mobile-drawer.mud-drawer .mud-nav-link .mud-nav-link-text,
    .header-mobile-drawer.mud-drawer .mud-nav-link .mud-icon-root,
    .header-mobile-drawer.mud-drawer .mud-nav-link .mud-nav-link-icon {
        color: inherit !important;
    }

    .header-mobile-drawer.mud-drawer .mud-nav-link:hover,
    .header-mobile-drawer.mud-drawer .mud-nav-link:focus-visible,
    .header-mobile-drawer.mud-drawer .mud-nav-link.active {
        color: var(--text-strong) !important;
        background: rgba(66, 215, 255, 0.12) !important;
        box-shadow: inset 0 0 0 1px rgba(149, 240, 255, 0.12) !important;
        transform: translateX(-1px);
    }

    .header-mobile-drawer.mud-drawer .mud-nav-link .mud-icon-root,
    .header-mobile-drawer.mud-drawer .mud-nav-link .mud-nav-link-icon {
        color: var(--accent-2) !important;
    }
}

.mud-alert-outlined-error {
    color: var(--danger) !important;
}

h1:focus {
    outline: none;
}

.text-red,
.text-red i {
    color: var(--danger) !important;
}

.hidden {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 1.25rem;
    }

    .section {
        padding: 4rem 0;
    }

    .page-shell,
    .auth-container,
    .pricing-container,
    .faq-container,
    .contact-container,
    .roadmap-container,
    .project-container,
    .subscription-container,
    .profile-container,
    .error-container,
    .success-container {
        padding: 7rem 1.5rem 3rem;
    }
}

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    }

    .footer-section:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .page-header,
    .section-header {
        margin-bottom: 2.3rem;
    }

    .page-header h1,
    .page-header h2,
    .section-header h2 {
        font-size: 2.45rem;
    }

    .page-header p,
    .section-header p {
        font-size: 1rem;
    }

    .pricing-header,
    .faq-header,
    .contact-header,
    .roadmap-header,
    .projects-header {
        margin-bottom: 2.3rem;
    }

    .pricing-header h1,
    .pricing-header h2,
    .faq-header h1,
    .faq-header h2,
    .contact-header h1,
    .contact-header h2,
    .roadmap-header h1,
    .roadmap-header h2,
    .projects-header h1,
    .projects-header h2 {
        font-size: 2.45rem;
    }

    .projects-title {
        font-size: 2.45rem;
    }

    .pricing-header p,
    .faq-header p,
    .contact-header p,
    .roadmap-header p,
    .projects-header p {
        font-size: 1rem;
    }

    .page-header-inline {
        flex-direction: column;
        align-items: flex-start;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.95rem 1rem;
        font-size: 0.875rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-link {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .btn {
        min-height: 3rem;
        padding: 0.82rem 1.15rem;
        font-size: 0.9rem;
    }

    .auth-card {
        padding: 1.4rem;
    }
}
