:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --border-color: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --accent-primary: #3b82f6;
    --accent-hover: #2563eb;
}
html.dark-theme,
body.dark-theme {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --border-color: #334155;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --accent-primary: #3b82f6;
    --accent-hover: #2563eb;
}
html {
    background-color: var(--bg-primary);
    color: var(--text-primary);

}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}
html:not(.theme-loaded) body {
    visibility: hidden;
}

html.theme-loaded body {
    visibility: visible;
}
html:not(.theme-loaded) * {
    transition: none !important;
}
.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background: var(--bg-tertiary);
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
    border: 2px solid var(--border-color);
    display: inline-flex;
    align-items: center;
}
.theme-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: var(--accent-primary);
    border-radius: 50%;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}
html.dark-theme .theme-toggle-slider,
body.dark-theme .theme-toggle-slider {
    transform: translateX(30px);
}

.theme-toggle:hover {
    opacity: 0.8;
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #3b82f6;
    box-shadow: 0 0 15px #3b82f6, 0 0 30px #3b82f6;
    z-index: 10;
}
html:not(.dark-theme),
body:not(.dark-theme) {
    background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
}

html:not(.dark-theme) nav,
body:not(.dark-theme) nav {
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid var(--border-color);
}

html:not(.dark-theme) .text-gray-400,
body:not(.dark-theme) .text-gray-400 {
    color: var(--text-secondary) !important;
}

html:not(.dark-theme) .text-gray-500,
body:not(.dark-theme) .text-gray-500 {
    color: var(--text-tertiary) !important;
}

html:not(.dark-theme) .text-gray-300,
body:not(.dark-theme) .text-gray-300 {
    color: var(--text-secondary) !important;
}

html:not(.dark-theme) .bg-slate-900,
html:not(.dark-theme) .bg-slate-900\/50,
body:not(.dark-theme) .bg-slate-900,
body:not(.dark-theme) .bg-slate-900\/50 {
    background-color: var(--bg-secondary) !important;
}
html:not(.dark-theme) a.bg-slate-900,
html:not(.dark-theme) button.bg-slate-900,
body:not(.dark-theme) a.bg-slate-900,
body:not(.dark-theme) button.bg-slate-900 {
    background-color: #0f172a !important;
    color: white !important;
}

html:not(.dark-theme) a.bg-slate-900:hover,
html:not(.dark-theme) button.bg-slate-900:hover,
body:not(.dark-theme) a.bg-slate-900:hover,
body:not(.dark-theme) button.bg-slate-900:hover {
    background-color: #1e293b !important;
}

html:not(.dark-theme) .bg-brand-dark,
body:not(.dark-theme) .bg-brand-dark {
    background-color: var(--bg-primary) !important;
}

html:not(.dark-theme) .border-gray-800,
html:not(.dark-theme) .border-gray-700,
body:not(.dark-theme) .border-gray-800,
body:not(.dark-theme) .border-gray-700 {
    border-color: var(--border-color) !important;
}

html:not(.dark-theme) .bg-slate-800:not(.p-4),
body:not(.dark-theme) .bg-slate-800:not(.p-4) {
    background-color: #e2e8f0 !important;
    color: var(--text-primary) !important;
}
html:not(.dark-theme) .bg-slate-800.p-4,
html:not(.dark-theme) .bg-slate-800.rounded-lg,
body:not(.dark-theme) .bg-slate-800.p-4,
body:not(.dark-theme) .bg-slate-800.rounded-lg {
    background-color: #1e293b !important;
}

html:not(.dark-theme) .bg-slate-800.p-4 *,
html:not(.dark-theme) .bg-slate-800.rounded-lg *,
body:not(.dark-theme) .bg-slate-800.p-4 *,
body:not(.dark-theme) .bg-slate-800.rounded-lg * {
    color: #d1d5db !important;
}

html:not(.dark-theme) .bg-slate-800.p-4 .text-purple-400,
html:not(.dark-theme) .bg-slate-800.rounded-lg .text-purple-400,
body:not(.dark-theme) .bg-slate-800.p-4 .text-purple-400,
body:not(.dark-theme) .bg-slate-800.rounded-lg .text-purple-400 {
    color: #c084fc !important;
}

html:not(.dark-theme) .bg-slate-800.p-4 .text-green-400,
html:not(.dark-theme) .bg-slate-800.rounded-lg .text-green-400,
body:not(.dark-theme) .bg-slate-800.p-4 .text-green-400,
body:not(.dark-theme) .bg-slate-800.rounded-lg .text-green-400 {
    color: #4ade80 !important;
}

html:not(.dark-theme) .bg-slate-800.p-4 .text-gray-300,
html:not(.dark-theme) .bg-slate-800.rounded-lg .text-gray-300,
body:not(.dark-theme) .bg-slate-800.p-4 .text-gray-300,
body:not(.dark-theme) .bg-slate-800.rounded-lg .text-gray-300 {
    color: #d1d5db !important;
}

html:not(.dark-theme) .border-slate-700,
body:not(.dark-theme) .border-slate-700 {
    border-color: #334155 !important;
}

html:not(.dark-theme) .bg-\[#1e1e1e\],
body:not(.dark-theme) .bg-\[#1e1e1e\] {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

html:not(.dark-theme) .bg-\[#1e1e1e\] *,
body:not(.dark-theme) .bg-\[#1e1e1e\] * {
    color: #d1d5db !important;
}

html:not(.dark-theme) .bg-\[#1e1e1e\] .text-purple-400,
body:not(.dark-theme) .bg-\[#1e1e1e\] .text-purple-400 {
    color: #c084fc !important;
}

html:not(.dark-theme) .bg-\[#1e1e1e\] .text-green-400,
body:not(.dark-theme) .bg-\[#1e1e1e\] .text-green-400 {
    color: #4ade80 !important;
}

html:not(.dark-theme) .bg-\[#1e1e1e\] .text-gray-500,
body:not(.dark-theme) .bg-\[#1e1e1e\] .text-gray-500 {
    color: #6b7280 !important;
}

html:not(.dark-theme) .bg-\[#1e1e1e\] .text-gray-400,
body:not(.dark-theme) .bg-\[#1e1e1e\] .text-gray-400 {
    color: #9ca3af !important;
}
html:not(.dark-theme) .bg-\[#1e1e1e\].rounded-xl,
body:not(.dark-theme) .bg-\[#1e1e1e\].rounded-xl {
    background-color: #1e293b !important;
}

html:not(.dark-theme) .bg-\[#1e1e1e\] pre,
html:not(.dark-theme) .bg-\[#1e1e1e\] code,
body:not(.dark-theme) .bg-\[#1e1e1e\] pre,
body:not(.dark-theme) .bg-\[#1e1e1e\] code {
    background-color: transparent !important;
    color: #d1d5db !important;
}

html:not(.dark-theme) .bg-\[#1e1e1e\] .border-gray-700,
body:not(.dark-theme) .bg-\[#1e1e1e\] .border-gray-700 {
    border-color: #374151 !important;
}
html:not(.dark-theme) .rounded-xl.bg-\[#1e1e1e\],
body:not(.dark-theme) .rounded-xl.bg-\[#1e1e1e\] {
    background-color: #1e293b !important;
}

html:not(.dark-theme) .rounded-xl.bg-\[#1e1e1e\] span,
body:not(.dark-theme) .rounded-xl.bg-\[#1e1e1e\] span {
    color: #d1d5db !important;
}

html:not(.dark-theme) .rounded-xl.bg-\[#1e1e1e\] .text-purple-400,
body:not(.dark-theme) .rounded-xl.bg-\[#1e1e1e\] .text-purple-400 {
    color: #c084fc !important;
}

html:not(.dark-theme) .rounded-xl.bg-\[#1e1e1e\] .text-green-400,
body:not(.dark-theme) .rounded-xl.bg-\[#1e1e1e\] .text-green-400 {
    color: #4ade80 !important;
}

html:not(.dark-theme) .rounded-xl.bg-\[#1e1e1e\] .text-gray-500,
body:not(.dark-theme) .rounded-xl.bg-\[#1e1e1e\] .text-gray-500 {
    color: #9ca3af !important;
}

html:not(.dark-theme) .rounded-xl.bg-\[#1e1e1e\] .text-gray-400,
body:not(.dark-theme) .rounded-xl.bg-\[#1e1e1e\] .text-gray-400 {
    color: #cbd5e1 !important;
}

html:not(.dark-theme) .rounded-xl.bg-\[#1e1e1e\] .text-xs.text-gray-500,
body:not(.dark-theme) .rounded-xl.bg-\[#1e1e1e\] .text-xs.text-gray-500 {
    color: #9ca3af !important;
}
html:not(.dark-theme) div[class*="bg-[#1e1e1e]"],
body:not(.dark-theme) div[class*="bg-[#1e1e1e]"] {
    background-color: #1e293b !important;
}

html:not(.dark-theme) div[class*="bg-[#1e1e1e]"] *,
body:not(.dark-theme) div[class*="bg-[#1e1e1e]"] * {
    color: #d1d5db !important;
}

html:not(.dark-theme) div[class*="bg-[#1e1e1e]"] .text-purple-400,
body:not(.dark-theme) div[class*="bg-[#1e1e1e]"] .text-purple-400 {
    color: #c084fc !important;
}

html:not(.dark-theme) div[class*="bg-[#1e1e1e]"] .text-green-400,
body:not(.dark-theme) div[class*="bg-[#1e1e1e]"] .text-green-400 {
    color: #4ade80 !important;
}

html:not(.dark-theme) div[class*="bg-[#1e1e1e]"] .text-gray-500,
body:not(.dark-theme) div[class*="bg-[#1e1e1e]"] .text-gray-500 {
    color: #9ca3af !important;
}

html:not(.dark-theme) div[class*="bg-[#1e1e1e]"] .text-gray-400,
body:not(.dark-theme) div[class*="bg-[#1e1e1e]"] .text-gray-400 {
    color: #cbd5e1 !important;
}

html:not(.dark-theme) div[class*="bg-[#1e1e1e]"] pre,
html:not(.dark-theme) div[class*="bg-[#1e1e1e]"] code,
body:not(.dark-theme) div[class*="bg-[#1e1e1e]"] pre,
body:not(.dark-theme) div[class*="bg-[#1e1e1e]"] code {
    background-color: transparent !important;
}

html:not(.dark-theme) div[class*="bg-[#1e1e1e]"] .border-gray-700,
body:not(.dark-theme) div[class*="bg-[#1e1e1e]"] .border-gray-700 {
    border-color: #374151 !important;
}

html:not(.dark-theme) footer,
body:not(.dark-theme) footer {
    background-color: var(--bg-secondary) !important;
    border-top-color: var(--border-color) !important;
}

html:not(.dark-theme) .animate-blob,
body:not(.dark-theme) .animate-blob {
    opacity: 0.15 !important;
}

html:not(.dark-theme) h1,
html:not(.dark-theme) h2,
html:not(.dark-theme) h3,
html:not(.dark-theme) h4,
body:not(.dark-theme) h1,
body:not(.dark-theme) h2,
body:not(.dark-theme) h3,
body:not(.dark-theme) h4 {
    color: var(--text-primary) !important;
}

html:not(.dark-theme) nav a:not(.bg-blue-600):not(.text-blue-400):not(.nav-btn-primary):not(.nav-btn-primary-sm),
body:not(.dark-theme) nav a:not(.bg-blue-600):not(.text-blue-400):not(.nav-btn-primary):not(.nav-btn-primary-sm) {
    color: var(--text-primary) !important;
}

html:not(.dark-theme) nav a:not(.nav-btn-primary):not(.nav-btn-primary-sm):hover,
body:not(.dark-theme) nav a:not(.nav-btn-primary):not(.nav-btn-primary-sm):hover {
    color: var(--accent-primary) !important;
}
html:not(.dark-theme) .bg-gradient-to-r.from-blue-400.to-emerald-400,
body:not(.dark-theme) .bg-gradient-to-r.from-blue-400.to-emerald-400 {
    background: linear-gradient(to right, #2563eb, #059669) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

html:not(.dark-theme) input[type="text"],
html:not(.dark-theme) input[type="email"],
html:not(.dark-theme) textarea,
body:not(.dark-theme) input[type="text"],
body:not(.dark-theme) input[type="email"],
body:not(.dark-theme) textarea {
    background-color: white !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}
html:not(.dark-theme) #contactForm input.bg-slate-800,
html:not(.dark-theme) #contactForm textarea.bg-slate-800,
body:not(.dark-theme) #contactForm input.bg-slate-800,
body:not(.dark-theme) #contactForm textarea.bg-slate-800 {
    background-color: white !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

html:not(.dark-theme) input::placeholder,
html:not(.dark-theme) textarea::placeholder,
body:not(.dark-theme) input::placeholder,
body:not(.dark-theme) textarea::placeholder {
    color: var(--text-tertiary) !important;
}

html:not(.dark-theme) label,
body:not(.dark-theme) label {
    color: var(--text-secondary) !important;
}

html:not(.dark-theme) .bg-red-900\/50,
body:not(.dark-theme) .bg-red-900\/50 {
    background-color: rgba(220, 38, 38, 0.1) !important;
}

html:not(.dark-theme) .bg-green-900\/50,
body:not(.dark-theme) .bg-green-900\/50 {
    background-color: rgba(22, 163, 74, 0.1) !important;
}

html:not(.dark-theme) .bg-blue-900\/30,
body:not(.dark-theme) .bg-blue-900\/30 {
    background-color: rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

html:not(.dark-theme) .text-red-400,
body:not(.dark-theme) .text-red-400 {
    color: #dc2626 !important;
}

html:not(.dark-theme) .text-green-400,
html:not(.dark-theme) .text-green-500,
body:not(.dark-theme) .text-green-400,
body:not(.dark-theme) .text-green-500 {
    color: #16a34a !important;
}

html:not(.dark-theme) .text-blue-400,
html:not(.dark-theme) .text-blue-500,
body:not(.dark-theme) .text-blue-400,
body:not(.dark-theme) .text-blue-500 {
    color: var(--accent-primary) !important;
}

html:not(.dark-theme) .text-purple-400,
body:not(.dark-theme) .text-purple-400 {
    color: #7c3aed !important;
}

html:not(.dark-theme) #pricing,
body:not(.dark-theme) #pricing {
    background: linear-gradient(to bottom, #f1f5f9 0%, #e2e8f0 100%) !important;
}

html:not(.dark-theme) #pricing .bg-white,
body:not(.dark-theme) #pricing .bg-white {
    background: #ffffff !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}
html.dark-theme #pricing .bg-white,
body.dark-theme #pricing .bg-white {
    background: #374151 !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid #4b5563;
}

html.dark-theme #pricing .bg-white h3,
html.dark-theme #pricing .bg-white p,
html.dark-theme #pricing .bg-white li,
html.dark-theme #pricing .bg-white div,
html.dark-theme #pricing .bg-white span,
body.dark-theme #pricing .bg-white h3,
body.dark-theme #pricing .bg-white p,
body.dark-theme #pricing .bg-white li,
body.dark-theme #pricing .bg-white div,
body.dark-theme #pricing .bg-white span {
    color: #e5e7eb !important;
}

html.dark-theme #pricing .bg-white .text-gray-500,
html.dark-theme #pricing .bg-white .text-gray-600,
body.dark-theme #pricing .bg-white .text-gray-500,
body.dark-theme #pricing .bg-white .text-gray-600 {
    color: #9ca3af !important;
}

html:not(.dark-theme) #pricing .bg-white .text-slate-900,
body:not(.dark-theme) #pricing .bg-white .text-slate-900 {
    color: #0f172a !important;
}

html:not(.dark-theme) #pricing .bg-white .text-gray-600,
body:not(.dark-theme) #pricing .bg-white .text-gray-600 {
    color: #4b5563 !important;
}

html:not(.dark-theme) #pricing .bg-white .text-gray-500,
body:not(.dark-theme) #pricing .bg-white .text-gray-500 {
    color: #6b7280 !important;
}

html:not(.dark-theme) #pricing .bg-white li,
body:not(.dark-theme) #pricing .bg-white li {
    color: #1f2937 !important;
}

html:not(.dark-theme) #pricing .bg-white h3,
body:not(.dark-theme) #pricing .bg-white h3 {
    color: #0f172a !important;
}

html:not(.dark-theme) #pricing .bg-white p,
body:not(.dark-theme) #pricing .bg-white p {
    color: #4b5563 !important;
}

html:not(.dark-theme) footer p,
html:not(.dark-theme) footer span,
html:not(.dark-theme) footer div:not(.theme-toggle):not(.theme-toggle-slider),
body:not(.dark-theme) footer p,
body:not(.dark-theme) footer span,
body:not(.dark-theme) footer div:not(.theme-toggle):not(.theme-toggle-slider) {
    color: var(--text-secondary) !important;
}
html:not(.dark-theme) .bg-slate-800.p-4,
body:not(.dark-theme) .bg-slate-800.p-4 {
    background: #1e293b !important;
}

html:not(.dark-theme) .border-slate-700,
body:not(.dark-theme) .border-slate-700 {
    border-color: #334155 !important;
}
.bg-blue-600,
.bg-gradient-to-r {
    color: white !important;
}
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.animate-scan,
.animate-float,
.animate-pulse,
.animate-blob {
    transition: none !important;
}
.doc-passport {
    background: linear-gradient(to bottom,
    #f5f3ed 0%, #f5f3ed 49%,
    #d8d6ce 49%, #d8d6ce 50%,
    #f5f3ed 50%, #f5f3ed 100%);
    border-radius: 4px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    font-family: 'Times New Roman', serif;
    overflow: hidden;
}
.passport-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 49%;
    padding: 10px 12px;
    border-bottom: 2px solid #c0c0c0;
}
.passport-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    padding: 10px 12px;
}
.passport-title {
    text-align: center;
    font-size: 0.42rem;
    color: #8B0000;
    font-weight: bold;
    letter-spacing: 0.3px;
    line-height: 1.2;
    margin-bottom: 4px;
}
.stamp-seal {
    width: 60px;
    height: 60px;
    border: 1.5px solid #dc143c;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stamp-text {
    text-align: center;
    color: #dc143c;
    font-size: 0.28rem;
    line-height: 1;
    font-weight: bold;
}
.series-number {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 0.6rem;
    font-weight: bold;
    color: #dc143c;
    letter-spacing: 0.5px;
}
.photo-box {
    width: 55px;
    height: 70px;
    background: linear-gradient(135deg, #d5d5d5 0%, #aeaeae 100%);
    border: 1.5px solid #1a1a1a;
    position: absolute;
    left: 10px;
    top: 35px;
}
.data-field {
    margin-bottom: 3px;
    position: relative;
}

.field-label {
    font-size: 0.3rem;
    color: #666;
    line-height: 1;
    margin-bottom: 1px;
}

.field-value {
    font-size: 0.45rem;
    font-weight: bold;
    color: #000;
    letter-spacing: 0.2px;
    border-bottom: 0.5px solid #333;
    padding-bottom: 1px;
    line-height: 1.1;
}
.ai-highlight {
    position: relative;
}

.ai-highlight::before {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    top: -1px;
    bottom: -1px;
    border: 1px solid #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 2px;
    animation: pulse-glow 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.4;
        box-shadow: 0 0 3px rgba(59, 130, 246, 0.3);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
    }
}

.doc-snils {
    background: linear-gradient(135deg, #bfdbbd 0%, #88c482 100%);
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.doc-snils-pattern {
    background-image: radial-gradient(#4a7c45 1px, transparent 1px);
    background-size: 10px 10px;
    opacity: 0.2;
    width: 100%;
    height: 100%;
}

.doc-snils::before {
    content: 'СТРАХОВОЕ СВИДЕТЕЛЬСТВО';
    position: absolute;
    top: 25px;
    width: 100%;
    text-align: center;
    color: #1f4f1a;
    font-weight: bold;
    font-size: 0.8rem;
}
.footer-icon,
.footer-link {
    color: #6b7280;
}
html.dark-theme .footer-icon:hover,
html.dark-theme .footer-link:hover,
body.dark-theme .footer-icon:hover,
body.dark-theme .footer-link:hover {
    color: #ffffff !important;
}
html:not(.dark-theme) .footer-icon:hover,
html:not(.dark-theme) .footer-link:hover,
body:not(.dark-theme) .footer-icon:hover,
body:not(.dark-theme) .footer-link:hover {
    color: var(--accent-primary) !important;
}

@media (max-width: 768px) {
    .theme-toggle {
        width: 50px;
        height: 26px;
    }

    .theme-toggle-slider {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    html.dark-theme .theme-toggle-slider,
    body.dark-theme .theme-toggle-slider {
        transform: translateX(24px);
    }
}
.nav-glass {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

html:not(.dark-theme) .nav-glass,
body:not(.dark-theme) .nav-glass {
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: var(--border-color) !important;
}
.nav-link {
    position: relative;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--accent-primary);
}

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

/* Active nav link */
.nav-link.active::after {
    width: 80%;
}

.nav-link.active {
    color: var(--accent-primary);
}

.nav-link-tablet.active {
    color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.1);
}

.mobile-menu-item.active {
    background: rgba(59, 130, 246, 0.08);
    border-left-color: var(--accent-primary);
}

.nav-link:hover::after {
    width: 80%;
}
.nav-link-tablet {
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link-tablet:hover {
    color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.1);
}


.nav-btn-primary {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 9999px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.nav-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.nav-btn-primary-sm {
    padding: 0.375rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 9999px;
    transition: all 0.2s ease;
}


.burger-btn {
    width: 32px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 4px;
    border-radius: 8px;
    transition: background 0.2s ease;
    cursor: pointer;
}

.burger-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

html:not(.dark-theme) .burger-btn:hover,
body:not(.dark-theme) .burger-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.burger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}
.burger-btn.is-active .burger-line-1 {
    transform: translateY(7px) rotate(45deg);
}

.burger-btn.is-active .burger-line-2 {
    opacity: 0;
    transform: scaleX(0);
}

.burger-btn.is-active .burger-line-3 {
    transform: translateY(-7px) rotate(-45deg);
}
.mobile-menu-panel {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 45;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-panel.is-open {
    max-height: calc(100vh - 64px);
}

.mobile-menu-content {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
}

html:not(.dark-theme) .mobile-menu-content,
body:not(.dark-theme) .mobile-menu-content {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.mobile-menu-item i:first-child {
    width: 20px;
    color: var(--accent-primary);
    font-size: 0.875rem;
}

.mobile-menu-item:hover {
    background: rgba(59, 130, 246, 0.08);
    border-left-color: var(--accent-primary);
}

.mobile-menu-item:active {
    background: rgba(59, 130, 246, 0.15);
}
.mobile-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 1.5rem;
}
.mobile-menu-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0.75rem 1rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.mobile-menu-cta:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.mobile-menu-cta:active {
    transform: scale(0.98);
}
nav.glass-card {
    background: transparent;
    backdrop-filter: none;
}

@media (max-width: 767px) {
    .nav-glass {
        border-bottom: 1px solid var(--border-color);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .nav-glass {
        padding-bottom: 0;
    }
}

.mobile-menu-panel.is-open .mobile-menu-item,
.mobile-menu-panel.is-open .mobile-menu-cta {
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
}

.form_button:disabled {
    background: #4b5563 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.7;
}

.form_button:disabled:hover {
    background: #4b5563 !important;
    transform: none !important;
}

.link-offset:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.mobile-menu-panel.is-open .mobile-menu-item:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu-panel.is-open .mobile-menu-item:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu-panel.is-open .mobile-menu-item:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu-panel.is-open .mobile-menu-item:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu-panel.is-open .mobile-menu-item:nth-child(5) { animation-delay: 0.25s; }
.mobile-menu-panel.is-open .mobile-menu-cta { animation-delay: 0.35s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}