:root {
    --bg-primary: #0B0F19;
    --bg-secondary: #111827;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-elevated: rgba(255, 255, 255, 0.05);
    --text-primary: #F8FAFC;
    --text-secondary: #E2E8F0;
    --text-muted: #94A3B8;
    --accent-primary: #3B82F6;
    --accent-primary-light: #60A5FA;
    --accent-cyan: #06B6D4;
    --accent-gold: #FBBF24;
    --accent-green: #34D399;
    --gradient-main: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
    --gradient-cta: linear-gradient(135deg, #1D4ED8 0%, #0E7490 100%);
    --gradient-soft: linear-gradient(180deg, rgba(59, 130, 246, 0.22), rgba(6, 182, 212, 0.06) 55%, transparent);
    --shadow-card: 0 18px 50px rgba(2, 6, 23, 0.45);
    --shadow-glow: 0 8px 28px rgba(6, 182, 212, 0.4);
    --border-subtle: rgba(255, 255, 255, 0.1);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-strong: rgba(255, 255, 255, 0.06);
    --border-radius: 18px;
    --radius-sm: 12px;
    --radius-pill: 999px;
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 72px;
    --container: 1180px;
    --font-family: "Plus Jakarta Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-code: "Fira Code", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    --facebook: #1877f2;
    --twitter: #1da1f2;
    --linkedin: #0a66c2;
    --instagram: #e4405f;
    --youtube: #ff0000;
    --whatsapp: #25d366;
    --focus-ring: 0 0 0 3px rgba(6, 182, 212, 0.45);
    --seh-dock-bottom: 18px;
    --seh-vv-offset: 0px;
    --z-bottom-nav: 9990;
    --z-chat: 100010;
    --z-cookie: 100020;
    --z-nav-overlay: 100015;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background-color: #0B0F19;
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(900px 620px at -8% -12%, rgba(37, 99, 235, 0.28), transparent 58%),
        radial-gradient(820px 560px at 108% 112%, rgba(6, 182, 212, 0.2), transparent 52%),
        radial-gradient(640px 420px at 92% -8%, rgba(99, 102, 241, 0.14), transparent 48%),
        #0B0F19;
}

img, picture, svg { max-width: 100%; height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.03em; }

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.section-padding { padding: var(--space-xl) 0; }

.text-center { text-align: center; }

.mx-auto { margin-left: auto; margin-right: auto; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.skip-link {
    position: absolute;
    top: -120px;
    left: 16px;
    z-index: 100000;
    background: var(--accent-primary);
    color: #fff;
    padding: 12px 20px;
    border-radius: 0 0 12px 12px;
    font-weight: 700;
}

.skip-link:focus,
.skip-link:focus-visible { top: 0; }

.highlight {
    color: #67E8F9;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.125em;
    fill: currentColor;
    flex-shrink: 0;
}

:focus {
    outline: 3px solid var(--accent-cyan);
    outline-offset: 3px;
}

:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

:focus-visible {
    outline: 3px solid var(--accent-cyan);
    outline-offset: 3px;
    box-shadow: var(--focus-ring);
}

button:disabled,
.btn-primary:disabled,
.btn-secondary:disabled,
input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 999px;
    border: 2px solid var(--bg-primary);
}

.btn-primary,
.btn-secondary,
.nav-cta,
.mobile-cta,
.lead-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    background-size: 160% 160%;
}

.btn-primary,
.lead-submit-btn {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.4);
}

.nav-cta,
.mobile-cta,
.nav-links a.nav-cta,
.mobile-links a.mobile-cta {
    color: #fff;
    background: var(--gradient-cta);
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 16px rgba(29, 78, 216, 0.35);
}

.nav-links a.nav-cta,
.mobile-links a.mobile-cta {
    font-size: 14px;
    min-height: 44px;
    padding: 10px 18px;
}

.btn-primary {
    animation: cta-pulse 2.6s ease-in-out infinite;
}

.btn-primary:hover,
.lead-submit-btn:hover {
    color: #fff;
    transform: translateY(-3px);
    background-position: 100% 0;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.55);
    animation: none;
}

.nav-cta:hover,
.mobile-cta:hover,
.nav-links a.nav-cta:hover,
.mobile-links a.mobile-cta:hover {
    color: #fff;
    transform: translateY(-3px);
    background: var(--gradient-cta);
    background-position: 100% 0;
    box-shadow: 0 10px 30px rgba(14, 116, 144, 0.55);
    animation: none;
}

.nav-cta:focus-visible,
.mobile-cta:focus-visible,
.nav-links a.nav-cta:focus-visible,
.mobile-links a.mobile-cta:focus-visible {
    color: #fff;
    outline: 3px solid #67E8F9;
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.28), 0 8px 24px rgba(29, 78, 216, 0.4);
}

@keyframes cta-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.38); }
    55% { box-shadow: 0 0 0 12px rgba(6, 182, 212, 0); }
}

.btn-secondary {
    background: rgba(30, 41, 59, 0.7);
    border-color: var(--border-subtle);
    color: var(--text-primary);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(6, 182, 212, 0.55);
    box-shadow: 0 10px 28px rgba(6, 182, 212, 0.16);
}

.card,
.service-card,
.whyus-item,
.cta-wrapper,
.cta-contact-info,
.contact-item {
    border-radius: var(--border-radius);
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 9999;
    padding: 14px 0;
    background: rgba(11, 15, 25, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
    transition: padding 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(11, 15, 25, 0.82);
    border-bottom-color: rgba(6, 182, 212, 0.22);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-logo,
.mobile-logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 52px;
    width: auto;
    max-width: 148px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 14px;
    min-height: 44px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.12);
}

.nav-links a.nav-cta,
.nav-links a.nav-cta:hover,
.nav-links a.nav-cta.active,
.nav-links a.nav-cta:focus-visible,
.mobile-links a.mobile-cta,
.mobile-links a.mobile-cta:hover,
.mobile-links a.mobile-cta:focus-visible {
    color: #fff;
    background: var(--gradient-cta);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-login,
.nav-register,
.nav-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-login {
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    background: rgba(30, 41, 59, 0.45);
}

.nav-login:hover { color: var(--text-primary); border-color: rgba(6, 182, 212, 0.45); }

.nav-register {
    color: #fff;
    background: var(--gradient-cta);
}

.nav-register:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow); }

.nav-user {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.22);
}

.nav-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-main);
    font-size: 11px;
    font-weight: 800;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.28s ease, opacity 0.2s ease, width 0.2s ease;
}

.hamburger:hover span:nth-child(2) { width: 14px; }

.hamburger.active {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.35);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: var(--z-nav-overlay);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-overlay.active { opacity: 1; visibility: visible; }

.mobile-menu {
    position: absolute;
    top: 0;
    right: 0;
    width: min(360px, 88vw);
    height: 100%;
    background: rgba(11, 17, 32, 0.96);
    border-left: 1px solid var(--border-subtle);
    padding: 24px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-overlay.active .mobile-menu { transform: translateX(0); }

.mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.close-menu {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    position: relative;
}

.close-menu span {
    position: absolute;
    left: 12px;
    width: 20px;
    height: 2px;
    background: currentColor;
}

.close-menu span:first-child { transform: rotate(45deg); }
.close-menu span:last-child { transform: rotate(-45deg); }

.mobile-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.mobile-links a,
.mobile-cta {
    width: 100%;
}

.mobile-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.mobile-links a:hover { background: rgba(59, 130, 246, 0.12); color: var(--text-primary); }

.mobile-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
    padding-top: 18px;
}

.mobile-auth a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 800;
}

.mobile-auth .nav-login {
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.mobile-auth .nav-register,
.mobile-auth .nav-user {
    color: #fff;
    background: var(--gradient-cta);
}

.mobile-footer {
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 13px;
}

.bottom-nav {
    display: none;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: var(--z-bottom-nav);
    background: rgba(11, 17, 32, 0.88);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    padding: 8px;
    justify-content: space-around;
}

.bottom-nav a {
    flex: 1;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    border-radius: 14px;
}

.bottom-nav a:hover,
.bottom-nav a.active { color: var(--accent-cyan); background: rgba(6, 182, 212, 0.1); }

.footer {
    background: #080d18;
    border-top: 1px solid var(--border-subtle);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 360px;
    margin: 16px 0 24px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-subtle);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
    border-color: var(--accent-cyan);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.18);
}

.footer h2 {
    margin: 0 0 16px;
    font-size: 15px;
    color: var(--text-primary);
}

.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer ul a:hover { color: var(--accent-cyan); }

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 13px;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.toast-stack {
    position: fixed;
    right: 16px;
    bottom: 20px;
    z-index: 100000;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 24px));
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.94);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    box-shadow: var(--shadow-card);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-visible { opacity: 1; transform: none; }
.toast-success { border-color: rgba(52, 211, 153, 0.4); color: #6ee7b7; }
.toast-error { border-color: rgba(248, 113, 113, 0.45); color: #fca5a5; }
.toast-info { border-color: rgba(6, 182, 212, 0.4); }

.note-card {
    --subject-glow: rgba(59, 130, 246, 0.45);
    --subject-ink: #60A5FA;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    position: relative;
}

.note-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle at 80% 0%, var(--subject-glow), transparent 46%);
    transition: opacity 0.3s ease;
}

.note-card:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.55);
    box-shadow: 0 18px 48px rgba(6, 182, 212, 0.18), 0 0 0 1px rgba(59, 130, 246, 0.18);
}

.note-card:hover::after { opacity: 1; }

.note-card[data-subject*="computer"] { --subject-glow: rgba(59, 130, 246, 0.5); --subject-ink: #60A5FA; }
.note-card[data-subject*="physics"] { --subject-glow: rgba(139, 92, 246, 0.5); --subject-ink: #A78BFA; }
.note-card[data-subject*="chemistry"] { --subject-glow: rgba(245, 158, 11, 0.45); --subject-ink: #FBBF24; }
.note-card[data-subject*="biology"] { --subject-glow: rgba(16, 185, 129, 0.45); --subject-ink: #34D399; }
.note-card[data-subject*="math"] { --subject-glow: rgba(6, 182, 212, 0.5); --subject-ink: #22D3EE; }
.note-card[data-subject*="english"] { --subject-glow: rgba(244, 63, 94, 0.4); --subject-ink: #FB7185; }

.note-card-media { display: block; position: relative; z-index: 1; }

.note-visual {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 18%, var(--subject-glow), transparent 36%),
        radial-gradient(circle at 86% 86%, rgba(6, 182, 212, 0.28), transparent 34%),
        linear-gradient(145deg, rgba(37, 99, 235, 0.22), rgba(8, 12, 22, 0.72) 62%);
}

.note-visual-grid {
    position: absolute;
    inset: -20%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 22px 22px;
    transform: rotate(12deg);
    opacity: 0.7;
}

.note-visual-orb {
    position: absolute;
    width: 180px;
    height: 180px;
    right: -24px;
    bottom: -36px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--subject-ink), transparent 70%);
    opacity: 0.55;
    filter: blur(6px);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.note-card:hover .note-visual-orb { transform: translate(-8px, -10px) scale(1.12); opacity: 0.8; }

.note-visual-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    z-index: 2;
}

.note-doc {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding: 22px 18px 18px;
}

.note-doc-stack,
.note-doc-sheet {
    width: min(68%, 236px);
    aspect-ratio: 3 / 3.7;
    border-radius: 14px;
}

.note-doc-stack {
    position: absolute;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotate(7deg) translate(12px, 6px);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.28);
}

.note-doc-sheet {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 14px 16px;
    background: rgba(11, 15, 25, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 36px rgba(2, 6, 23, 0.4);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
}

.note-card:hover .note-doc-sheet { transform: rotate(-1deg) translateY(-4px); }

.note-doc-icon {
    width: 44px;
    height: 52px;
    color: var(--subject-ink);
    filter: drop-shadow(0 8px 18px var(--subject-glow));
}

.note-doc-subject {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.03em;
    color: #fff;
    text-align: center;
    max-width: 100%;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.note-doc-meta {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94A3B8;
}

.note-doc-watermark {
    position: absolute;
    right: 14px;
    bottom: 6px;
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -0.06em;
    color: rgba(255, 255, 255, 0.06);
    pointer-events: none;
    line-height: 1;
}

.note-visual.has-thumb .note-doc,
.note-visual.has-thumb .note-visual-grid,
.note-visual.has-thumb .note-visual-orb,
.note-visual.has-thumb .note-doc-watermark { opacity: 0; }

.note-visual .type-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 6px 11px;
    border-radius: var(--radius-pill);
    background: rgba(11, 15, 25, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.note-content { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; position: relative; z-index: 1; }
.note-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.note-tag {
    padding: 5px 11px;
    border-radius: var(--radius-pill);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.22);
    color: #E0F2FE;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 0 16px rgba(6, 182, 212, 0.12);
}
.note-tag:first-child {
    background: color-mix(in srgb, var(--subject-ink) 16%, transparent);
    border-color: color-mix(in srgb, var(--subject-ink) 38%, transparent);
    color: #fff;
    box-shadow: 0 0 18px var(--subject-glow);
}
.note-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.note-title a { color: #fff; }
.note-desc {
    color: #94A3B8;
    font-size: 13.5px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 16px;
}
.note-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 0;
}
.note-meta { display: flex; flex-wrap: wrap; gap: 10px; color: #94A3B8; font-size: 12px; }
.note-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 15px;
    border-radius: var(--radius-pill);
    background: var(--gradient-main);
    background-size: 160% 160%;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.4);
    transition: all 0.3s ease;
}
.note-download-btn:hover {
    transform: translateY(-2px);
    background-position: 100% 0;
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.55);
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 24px;
    align-items: stretch;
}

.notes-grid.is-loading { opacity: 0.55; pointer-events: none; }

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 72px 24px;
    color: #94A3B8;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.is-hidden { display: none; }

#leadWhatsappLink,
#leadGmailLink,
#leadMailtoLink,
#leadPreviewBox { display: none; }

.lead-preview-box { margin-top: 14px; }

.lead-preview-text {
    width: 100%;
    min-height: 110px;
    padding: 12px;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-muted);
    font-family: var(--font-code);
    font-size: 12px;
    resize: vertical;
}

@media (max-width: 1024px) {
    .nav-links { display: none; }
    .hamburger { display: inline-flex; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .nav-actions .nav-login,
    .nav-actions .nav-register,
    .nav-username { display: none; }
    .bottom-nav { display: flex; }
    body { padding-bottom: 96px; }
    .section-padding { padding: 56px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .notes-grid { gap: 16px; }
    .note-footer { flex-direction: column; align-items: center; }
    .note-download-btn {
        justify-content: center;
        width: auto;
        max-width: 100%;
        margin-inline: auto;
    }
}

.field {
    position: relative;
    margin-bottom: 16px;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    min-height: 56px;
    padding: 22px 16px 8px;
    background: rgba(30, 41, 59, 0.72);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    color: var(--text-primary);
}

.field textarea { min-height: 120px; padding-top: 28px; resize: vertical; }

.field label {
    position: absolute;
    left: 16px;
    top: 18px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
    transition: transform 0.18s ease, font-size 0.18s ease, color 0.18s ease, top 0.18s ease;
}

.field input:focus + label,
.field textarea:focus + label,
.field select:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label,
.field.has-value label {
    top: 7px;
    font-size: 11px;
    color: var(--accent-cyan);
}

.faq-section { margin: 56px 0; }
.faq-section h2 { margin: 0 0 20px; }
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 4px 18px;
    margin-bottom: 10px;
}
.faq-item summary {
    cursor: pointer;
    min-height: 48px;
    display: flex;
    align-items: center;
    font-weight: 700;
}
.faq-item p { color: var(--text-muted); margin: 0 0 16px; }

.legal-page { padding: 48px 0 80px; }
.legal-page .legal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    padding: 40px;
}
.legal-page h1 { margin: 0 0 12px; }
.legal-page h2 { margin: 32px 0 12px; font-size: 22px; }
.legal-page p, .legal-page li { color: var(--text-muted); }
.legal-updated { color: var(--accent-cyan); font-size: 13px; font-weight: 700; }

.page-header { padding: 48px 0 24px; }
.page-header .page-title { font-size: clamp(32px, 5vw, 52px); margin: 0 0 12px; }
.page-header .page-subtitle { color: var(--text-muted); max-width: 640px; margin: 0 auto; }
.page-badge {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.22);
    color: var(--accent-cyan);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.page-title { font-size: clamp(32px, 5vw, 52px); margin: 16px 0; }
.page-subtitle { color: var(--text-muted); max-width: 640px; }

.nav-logout {
    color: #fca5a5;
    border: 1px solid rgba(248, 113, 113, 0.3);
    background: rgba(248, 113, 113, 0.08);
    border-radius: var(--radius-pill);
    min-height: 40px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
}

[aria-live] .empty-state { outline: none; }

.note-download-btn.ab-blue,
.download-cta.ab-blue {
    background: var(--gradient-cta);
    box-shadow: 0 4px 16px rgba(29, 78, 216, 0.35);
}
.note-download-btn.ab-green,
.download-cta.ab-green {
    background: linear-gradient(135deg, #15803D 0%, #0F766E 100%);
    box-shadow: 0 4px 16px rgba(21, 128, 61, 0.35);
}
.note-download-btn.ab-green:hover,
.download-cta.ab-green:hover {
    box-shadow: 0 8px 24px rgba(15, 118, 110, 0.5);
}

.reco-banner,
.reco-home-title {
    color: #67E8F9;
    font-weight: 800;
}
.reco-banner {
    margin: 8px 0 0;
    font-size: 13px;
}
.reco-home {
    margin: 0 0 48px;
}
.reco-home-title {
    margin: 0 0 6px;
    font-size: 22px;
}
.reco-home-copy {
    margin: 0 0 20px;
    color: var(--text-muted);
}

.cookie-banner {
    position: fixed;
    left: 16px;
    right: auto;
    bottom: 16px;
    z-index: var(--z-cookie);
    max-width: 720px;
    margin: 0 auto;
    transform: translateY(28px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
}
.cookie-banner.is-visible {
    transform: none;
    opacity: 1;
    pointer-events: auto;
}
.cookie-banner-inner {
    display: grid;
    gap: 16px;
    padding: 20px 22px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(11, 15, 25, 0.78);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.5);
}
.cookie-banner-kicker {
    margin: 0 0 4px;
    color: #67E8F9;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.cookie-banner h2 {
    margin: 0 0 8px;
    font-size: 20px;
}
.cookie-banner p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}
.cookie-banner a { color: #67E8F9; font-weight: 700; }
.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.cookie-btn {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid transparent;
}
.cookie-btn-ghost {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.14);
}
.cookie-btn-accept {
    color: #fff;
    background: var(--gradient-cta);
    box-shadow: 0 8px 24px rgba(29, 78, 216, 0.35);
}

body.nav-open .seh-chat,
body.sheet-open .seh-chat {
    visibility: hidden;
    pointer-events: none;
}

.seh-chat {
    position: fixed;
    right: 18px;
    bottom: calc(var(--seh-dock-bottom) + var(--seh-vv-offset));
    z-index: var(--z-chat);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    max-width: min(420px, calc(100vw - 24px));
}
.seh-chat-toggle {
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid rgba(103, 232, 249, 0.28);
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    background: var(--gradient-cta);
    box-shadow: 0 10px 28px rgba(29, 78, 216, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.seh-chat-toggle:hover,
.seh-chat-toggle:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(29, 78, 216, 0.5);
    outline: none;
}
.seh-chat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #86EFAC;
    box-shadow: 0 0 0 4px rgba(134, 239, 172, 0.2);
    animation: seh-chat-pulse 2.2s ease-in-out infinite;
}
.seh-chat-panel {
    width: min(380px, calc(100vw - 28px));
    max-height: min(70dvh, 640px);
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(11, 15, 25, 0.9));
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    backdrop-filter: blur(24px) saturate(140%);
    box-shadow: 0 22px 60px rgba(2, 6, 23, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.seh-chat-panel[hidden] { display: none !important; }
.seh-chat-panel:not([hidden]) {
    display: flex;
    animation: seh-chat-rise 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes seh-chat-rise {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: none; }
}
@keyframes seh-chat-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(134, 239, 172, 0.16); }
    50% { box-shadow: 0 0 0 7px rgba(134, 239, 172, 0.08); }
}
.seh-chat-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(103, 232, 249, 0.08), transparent);
}
.seh-chat-kicker {
    margin: 0 0 2px;
    color: #67E8F9;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.seh-chat-head h2 { margin: 0; font-size: 18px; }
.seh-chat-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.seh-chat-close:hover,
.seh-chat-close:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}
.seh-chat-log {
    flex: 1 1 auto;
    min-height: 140px;
    max-height: none;
    overflow: auto;
    padding: 14px 16px;
    display: grid;
    gap: 10px;
    -webkit-overflow-scrolling: touch;
}
.seh-chat-msg {
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    animation: seh-chat-msg-in 0.24s ease;
}
@keyframes seh-chat-msg-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}
.seh-chat-msg p { margin: 0; }
.seh-chat-bot {
    background: rgba(37, 99, 235, 0.16);
    color: var(--text-primary);
    border: 1px solid rgba(103, 232, 249, 0.08);
}
.seh-chat-user {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    margin-left: 18px;
}
.seh-chat-notes {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}
.seh-chat-notes li {
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.28);
}
.seh-chat-notes a { color: #67E8F9; font-weight: 700; }
.seh-chat-notes span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
}
.seh-chat-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 16px;
    margin-bottom: 6px;
}
.seh-chat-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #67E8F9;
    animation: seh-chat-bounce 1.1s infinite ease-in-out;
}
.seh-chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.seh-chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes seh-chat-bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
    40% { transform: translateY(-4px); opacity: 1; }
}
.seh-chat-thinking {
    color: var(--text-muted);
    font-size: 12px;
}
.seh-chat-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    background: rgba(11, 15, 25, 0.55);
}
.seh-chat-form input {
    flex: 1;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    padding: 0 12px;
    font-size: 16px;
}
.seh-chat-form input:focus {
    outline: none;
    border-color: rgba(103, 232, 249, 0.45);
    box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.22);
}
.seh-chat-form button {
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    background: var(--gradient-cta);
}
.seh-chat-form.is-busy button,
.seh-chat-form.is-busy input {
    opacity: 0.7;
    pointer-events: none;
}

@media (max-width: 640px) {
    :root { --seh-dock-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
    .cookie-banner {
        left: 12px;
        right: 12px;
        max-width: none;
        bottom: calc(var(--seh-dock-bottom) + 64px);
    }
    .toast-stack {
        left: 12px;
        right: 12px;
        width: auto;
        bottom: calc(var(--seh-dock-bottom) + 8px);
    }
    .seh-chat {
        right: 12px;
        left: auto;
        width: auto;
        max-width: calc(100vw - 24px);
        align-items: flex-end;
    }
    .seh-chat.is-open {
        left: 12px;
        right: 12px;
        max-width: none;
        align-items: stretch;
    }
    .seh-chat-toggle {
        width: 52px;
        height: 52px;
        padding: 0;
        border-radius: 50%;
        font-size: 0;
        justify-content: center;
        flex-shrink: 0;
    }
    .seh-chat-toggle::before {
        content: "";
        width: 18px;
        height: 14px;
        border: 2px solid #fff;
        border-radius: 7px;
        box-sizing: border-box;
    }
    .seh-chat.is-open .seh-chat-toggle { display: none; }
    .seh-chat-panel {
        width: 100%;
        max-height: min(78dvh, calc(100dvh - var(--seh-dock-bottom) - var(--seh-vv-offset) - 16px));
    }
    .page-note .note-layout { padding-bottom: 28px; }
    .download-cta,
    .note-download-btn { scroll-margin-bottom: 140px; }
    img, svg, video, canvas, iframe, pre, table { max-width: 100%; }
}

.field-error {
    color: #fca5a5;
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}

.is-invalid {
    border-color: rgba(248, 113, 113, 0.65) !important;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18) !important;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
