.notify-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.notify-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.notify-modal {
    width: 100%;
    max-width: 520px;
    padding: 28px 24px;
    background: linear-gradient(135deg, rgba(25, 35, 55, 0.95) 0%, rgba(18, 28, 45, 0.98) 100%);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 20px;
    box-shadow: 0 25px 50px -20px rgba(0, 0, 0, 0.5), 0 0 60px -15px rgba(59, 130, 246, 0.15);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.notify-overlay.is-open .notify-modal {
    transform: scale(1);
}

.notify-modal--success {
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 25px 50px -20px rgba(0, 0, 0, 0.5), 0 0 60px -15px rgba(34, 197, 94, 0.12);
}

.notify-modal--success .notify-btn.primary {
    background: linear-gradient(145deg, #4ade80 0%, #22c55e 100%);
}

.notify-modal--success .notify-btn.primary:hover {
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.45);
}

.notify-modal--error {
    border-color: rgba(248, 113, 113, 0.4);
    box-shadow: 0 25px 50px -20px rgba(0, 0, 0, 0.5), 0 0 60px -15px rgba(239, 68, 68, 0.12);
}

.notify-modal--error .notify-btn.primary {
    background: linear-gradient(145deg, #f87171 0%, #ef4444 100%);
}

.notify-modal--error .notify-btn.primary:hover {
    box-shadow: 0 4px 20px rgba(248, 113, 113, 0.5);
}

.notify-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 12px;
}

.notify-message {
    font-size: 1rem;
    line-height: 1.5;
    color: #e2e8f0;
    margin-bottom: 24px;
    max-height: 80vh;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.notify-extras {
    margin-bottom: 24px;
}

.notify-extras.hidden {
    display: none !important;
}

.notify-prompt-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 8px;
}

.notify-prompt-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    color: #e2e8f0;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.notify-prompt-input::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

.notify-prompt-input:focus {
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

.notify-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.notify-btn {
    padding: 12px 20px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.notify-btn.secondary {
    background: rgba(80, 120, 180, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.25);
    color: #94a3b8;
}

.notify-btn.secondary:hover {
    background: rgba(80, 120, 180, 0.35);
    color: #e2e8f0;
}

.notify-btn.primary {
    background: linear-gradient(145deg, #60a5fa 0%, #3b82f6 100%);
    border: none;
    color: white;
}

.notify-btn.primary:hover {
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5);
}

.notify-btn.danger {
    background: linear-gradient(145deg, #f87171 0%, #ef4444 100%);
    border: none;
    color: white;
}

.notify-btn.danger:hover {
    box-shadow: 0 4px 20px rgba(248, 113, 113, 0.5);
}

.hidden {
    display: none !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

html.theme-light {
    color-scheme: light;
}

html.theme-light body,
html.theme-light .bg-overlay {
    background-color: #f1f5f9;
}

html.theme-light .bg-overlay {
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.97) 0%, rgba(226, 232, 240, 0.98) 100%);
}

html.theme-light .sidebar,
html.theme-light .main-content {
    background: rgba(255, 255, 255, 0.7);
}

html.theme-light .todo-modal,
html.theme-light .notify-modal {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-color: rgba(148, 163, 184, 0.3);
}

html.theme-light .notify-modal--success {
    border-color: rgba(34, 197, 94, 0.45);
}

html.theme-light .notify-modal--error {
    border-color: rgba(248, 113, 113, 0.45);
}

/* Sidebar Light Mode */
html.theme-light .sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-right: 1px solid rgba(148, 163, 184, 0.2);
}

html.theme-light .sidebar-header {
    border-bottom-color: rgba(148, 163, 184, 0.15);
}

html.theme-light .logo {
    color: #2563eb;
}

html.theme-light .logo-link:hover {
    color: #1d4ed8;
}

html.theme-light .sidebar-action-btn,
html.theme-light .settings-btn {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.25);
    color: #2563eb;
}

html.theme-light .sidebar-action-btn:hover,
html.theme-light .settings-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, 0.4);
}

html.theme-light .sidebar .logout-btn {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
    color: #475569;
}

html.theme-light .sidebar .logout-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #1e293b;
}

html.theme-light .sidebar .help-sidebar-btn {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
    color: #4f46e5;
}

html.theme-light .sidebar .help-sidebar-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #4338ca;
}

html.theme-light .sidebar-lang-switcher .landing-lang-btn {
    color: #64748b;
}

html.theme-light .sidebar-lang-switcher .landing-lang-btn.active {
    background: rgba(59, 130, 246, 0.2);
    color: #2563eb;
    border-color: rgba(59, 130, 246, 0.35);
}

html.theme-light .nav-title {
    color: #64748b;
}

html.theme-light .nav-section + .nav-section {
    border-top-color: rgba(148, 163, 184, 0.2);
}

html.theme-light .nav-btn {
    border-color: rgba(59, 130, 246, 0.35);
    color: #2563eb;
}

html.theme-light .nav-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.5);
}

html.theme-light .nav-btn.primary {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(99, 102, 241, 0.08) 100%);
    border-color: rgba(59, 130, 246, 0.3);
    color: #2563eb;
}

html.theme-light .group-chip {
    background: rgba(248, 250, 252, 0.9);
    border-color: rgba(148, 163, 184, 0.25);
}

html.theme-light .group-chip:hover {
    background: rgba(241, 245, 249, 1);
    border-color: rgba(59, 130, 246, 0.3);
}

html.theme-light .group-chip.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(99, 102, 241, 0.08) 100%);
    border-color: rgba(59, 130, 246, 0.45);
}

html.theme-light .group-name {
    color: #334155;
}

html.theme-light .group-chip.active .group-name {
    color: #2563eb;
}

html.theme-light .group-desc-inline {
    color: #64748b;
}

html.theme-light .group-count {
    color: #64748b;
}

html.theme-light .groups-empty,
html.theme-light .groups-error {
    color: #94a3b8;
}

html.theme-light .group-settings-btn,
html.theme-light .group-delete-btn {
    color: #64748b;
}

html.theme-light .group-settings-btn:hover {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

html.theme-light .role-badge--admin {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

html.theme-light .role-badge--vip {
    background: rgba(245, 158, 11, 0.2);
    color: #d97706;
}

/* Main Content Light Mode */
html.theme-light .main-content {
    background: #ffffff;
}

html.theme-light .add-todo-btn {
    background: linear-gradient(145deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

html.theme-light .add-todo-btn:hover {
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.45);
}

html.theme-light .todo-stats {
    color: #64748b;
}

html.theme-light .empty-state {
    color: #94a3b8;
}

html.theme-light .empty-state svg {
    opacity: 0.5;
}

html.theme-light .empty-state p {
    color: #64748b;
}

html.theme-light .todo-item,
html.theme-light .filter-btn,
html.theme-light .todo-sort-select {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(148, 163, 184, 0.18);
    color: #1e293b;
}

html.theme-light .todo-item:hover {
    border-color: rgba(148, 163, 184, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

html.theme-light .filter-btn.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(99, 102, 241, 0.1) 100%);
    color: #2563eb;
}

html.theme-light .user-name,
html.theme-light .main-title {
    color: #1e293b;
}

html.theme-light .todo-item.done .todo-text {
    color: #94a3b8;
}

html.theme-light .subtask-inline-input {
    background: rgba(241, 245, 249, 0.9);
    border-color: rgba(148, 163, 184, 0.25);
    color: #1e293b;
}

html.theme-light .subtask-inline-input:focus {
    background: #fff;
    border-color: rgba(59, 130, 246, 0.4);
}

html.theme-light .subtask-inline-btn {
    background: rgba(241, 245, 249, 0.9);
    border-color: rgba(148, 163, 184, 0.3);
    color: #64748b;
}

html.theme-light .subtask-inline-btn:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.35);
    color: #2563eb;
}

html.theme-light .create-group-form input {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(148, 163, 184, 0.3);
    color: #1e293b;
}

html.theme-light .todo-modal-header {
    border-bottom-color: rgba(148, 163, 184, 0.2);
}

html.theme-light .todo-modal-header h2 {
    color: #1e293b;
}

html.theme-light .group-settings-content input,
html.theme-light .group-settings-content textarea {
    background: rgba(248, 250, 252, 0.95);
    border-color: rgba(148, 163, 184, 0.25);
    color: #1e293b;
}

body {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(30, 40, 80, 0.4) 0%, transparent 50%),
        linear-gradient(225deg, rgba(20, 35, 70, 0.5) 0%, transparent 50%),
        url("https://images.unsplash.com/photo-1484480974693-6ca0a78fb36b?w=1920&q=80") center/cover no-repeat;
    background-color: #0d1520;
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

body:has(#authView.active) {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    position: fixed;
    width: 100%;
    overscroll-behavior: none;
}

body:has(#landingView.active) {
    min-height: 100vh;
    min-height: 100dvh;
}

body:has(#dashboardView.active) {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    position: fixed;
    width: 100%;
    overscroll-behavior: none;
}

.bg-overlay {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(99, 102, 241, 0.06), transparent),
        radial-gradient(ellipse 60% 40% at 0% 80%, rgba(59, 130, 246, 0.05), transparent),
        linear-gradient(180deg, rgba(13, 21, 32, 0.92) 0%, rgba(15, 28, 50, 0.95) 50%, rgba(8, 15, 30, 0.98) 100%);
    pointer-events: none;
    z-index: 0;
}

body:has(#landingView.active) .bg-overlay {
    background:
        radial-gradient(ellipse 90% 60% at 50% -10%, rgba(99, 102, 241, 0.08), transparent 50%),
        radial-gradient(ellipse 70% 50% at 80% 60%, rgba(59, 130, 246, 0.04), transparent),
        radial-gradient(ellipse 70% 50% at 20% 80%, rgba(139, 92, 246, 0.04), transparent),
        linear-gradient(180deg, #0f172a 0%, #0c1222 50%, #080d18 100%);
}

.view {
    display: none;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.view:not(.active) {
    display: none !important;
}

.view.active {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: 100vh;
}

.view.dashboard-layout.active {
    padding: 0;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    height: 100vh;
}

.landing-view {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    min-height: 100vh;
}

.landing-view.active {
    display: flex;
}

.landing-nav {
    position: sticky;
    top: 16px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 20px 0;
    padding: 16px 32px;
    flex-shrink: 0;
    gap: 28px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.08);
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.landing-nav.is-scrolled {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(148, 163, 184, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.landing-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #f1f5f9;
    letter-spacing: -0.02em;
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.landing-nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(148, 163, 184, 0.9);
    text-decoration: none;
    transition: color 0.2s;
}

.landing-nav-link:hover {
    color: #e2e8f0;
}

.landing-nav-link.active {
    color: #818cf8;
}

.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(30, 41, 59, 0.6);
    padding: 2px;
}

.landing-lang-icon {
    padding: 0 8px 0 10px;
    font-size: 1rem;
    line-height: 1;
    opacity: 0.9;
}

.landing-lang-btn {
    padding: 8px 14px;
    min-width: 44px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.85);
    background: transparent;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.landing-lang-btn:hover {
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.08);
}

.landing-lang-btn.active,
.landing-lang-btn[aria-pressed="true"] {
    color: #fff;
    background: rgba(99, 102, 241, 0.6);
}

.landing-lang-btn.active:hover,
.landing-lang-btn[aria-pressed="true"]:hover {
    background: rgba(99, 102, 241, 0.75);
}

.sidebar-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(30, 41, 59, 0.5);
    padding: 2px;
}

.sidebar-lang-icon {
    padding: 0 6px 0 8px;
    font-size: 0.9rem;
    line-height: 1;
    opacity: 0.9;
}

.sidebar-lang-switcher .landing-lang-btn {
    padding: 6px 12px;
    min-width: 40px;
    font-size: 0.8rem;
}

.landing-nav-login {
    padding: 8px 18px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(148, 163, 184, 0.95);
    background: transparent;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.landing-nav-login:hover {
    color: #e2e8f0;
}

.landing-nav-cta {
    padding: 10px 22px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.landing-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.landing-hero-simple {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px 72px;
    text-align: center;
}

.landing-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #e2e8f0;
    background: rgba(99, 102, 241, 0.18);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 999px;
    margin-bottom: 24px;
}

.landing-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.25rem, 6vw, 3.5rem);
    font-weight: 600;
    line-height: 1.15;
    color: #f1f5f9;
    margin: 0 0 20px;
    letter-spacing: -0.03em;
}

.landing-title-accent {
    color: #818cf8;
}

.landing-title-center {
    text-align: center;
}

.landing-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(148, 163, 184, 0.92);
    margin: 0 0 32px;
    max-width: 540px;
}

.landing-lead-center {
    text-align: center;
}

.landing-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.landing-cta-primary {
    padding: 14px 28px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.landing-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.45);
}

.landing-cta-secondary-link {
    display: inline-block;
    padding: 14px 28px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #e2e8f0;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.landing-cta-secondary-link:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(30, 41, 59, 0.95);
}

.landing-section-pill {
    display: inline-block;
    padding: 7px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #e2e8f0;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 999px;
    margin-bottom: 16px;
}

.landing-section-headline {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 600;
    color: #f1f5f9;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.landing-section-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(148, 163, 184, 0.9);
    margin: 0 0 28px;
}

.landing-changelog {
    padding: 64px 32px 80px;
    max-width: 720px;
    margin: 0 auto;
}

.changelog-list {
    margin-top: 24px;
}

.changelog-entry {
    margin: 0 0 32px;
}

.changelog-version {
    font-size: 1.15rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.changelog-items {
    list-style: disc;
    padding-left: 1.4rem;
    margin: 0;
    color: rgba(226, 232, 240, 0.9);
    font-size: 0.95rem;
    line-height: 1.65;
}

.changelog-items li {
    margin-bottom: 10px;
}

.changelog-items li:last-child {
    margin-bottom: 0;
}

.changelog-items strong {
    color: #f1f5f9;
}

.landing-stats-section {
    padding: 64px 32px 72px;
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.landing-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.landing-stat-box {
    padding: 36px 28px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 20px;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.landing-stat-box:hover {
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.landing-stat-number {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(2.5rem, 4vw, 3.25rem);
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.landing-stat-box:nth-child(1) .landing-stat-number { color: #818cf8; }
.landing-stat-box:nth-child(2) .landing-stat-number { color: #34d399; }
.landing-stat-box:nth-child(3) .landing-stat-number { color: #a78bfa; }

.landing-stat-box .landing-stat-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(148, 163, 184, 0.85);
}

.landing-features .landing-section-pill,
.landing-features .landing-section-headline,
.landing-features .landing-section-lead {
    text-align: center;
}

.landing-features .landing-section-lead {
    margin-bottom: 36px;
}

.landing-nav-link-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    padding: 0;
}

.landing-footer-link-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    padding: 0;
}

.landing-side-tab {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 18px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: rgba(148, 163, 184, 0.75);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-right: none;
    border-radius: 12px 0 0 12px;
    text-decoration: none;
    z-index: 50;
    transition: color 0.2s, background 0.2s;
}

.landing-side-tab:hover {
    color: #a5b4fc;
    background: rgba(30, 41, 59, 0.95);
}

#landingView:not(.active) .landing-side-tab {
    display: none;
}

.help-chat-panel {
    position: fixed;
    top: 12px;
    right: 12px;
    bottom: 12px;
    width: 380px;
    max-width: calc(100vw - 24px);
    height: auto;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.99) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    transform: translateX(calc(100% + 24px));
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.help-chat-panel.is-open {
    transform: translateX(0);
}

.help-chat-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.help-chat-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #f1f5f9;
    letter-spacing: -0.02em;
}

.help-chat-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: rgba(148, 163, 184, 0.7);
    background: rgba(148, 163, 184, 0.06);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.help-chat-close:hover {
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.12);
    transform: scale(1.02);
}

.help-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.help-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.help-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.help-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.2);
    border-radius: 3px;
}

.help-chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.35);
}

.help-chat-msg {
    max-width: 88%;
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.55;
    transition: transform 0.2s ease;
}

.help-chat-msg.user {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(99, 102, 241, 0.25) 100%);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #e2e8f0;
    border-radius: 18px 18px 4px 18px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.help-chat-msg.assistant {
    align-self: flex-start;
    background: rgba(51, 65, 85, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.1);
    color: rgba(226, 232, 240, 0.95);
    border-radius: 18px 18px 18px 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.help-chat-msg.loading {
    align-self: flex-start;
    color: rgba(148, 163, 184, 0.7);
    font-style: italic;
}

.help-chat-input-area {
    flex-shrink: 0;
    padding: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.help-chat-input {
    width: 100%;
    padding: 14px 20px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #e2e8f0;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 16px;
    resize: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.help-chat-input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.help-chat-input::placeholder {
    color: rgba(148, 163, 184, 0.45);
}

.help-chat-send {
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.help-chat-send:hover {
    background: linear-gradient(135deg, #5558e3 0%, #4338ca 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.help-chat-forward {
    padding: 10px 18px;
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.9);
    background: rgba(148, 163, 184, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.help-chat-forward:hover {
    border-color: rgba(148, 163, 184, 0.35);
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.1);
}

.help-forward-modal {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10;
}

.help-forward-modal.hidden {
    display: none;
}

.help-forward-content {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.99) 100%);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 20px;
    padding: 28px;
    max-width: 360px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.help-forward-content h4 {
    margin: 0 0 12px;
    font-size: 1.1rem;
    color: #e2e8f0;
}

.help-forward-content p {
    margin: 0 0 16px;
    font-size: 0.9rem;
    color: rgba(148, 163, 184, 0.9);
}

.help-forward-email-wrap {
    margin-bottom: 16px;
}

.help-forward-email-wrap label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.9);
}

.help-forward-email-wrap input {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
}

.help-forward-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.landing-features {
    padding: 56px 32px 72px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.landing-features .landing-feature-card,
.landing-features .landing-feature-cards-grid {
    text-align: left;
}

.landing-feature-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 20px;
    padding: 32px 36px;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.landing-feature-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.landing-feature-card-main {
    margin-bottom: 24px;
}

.landing-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.landing-feature-icon svg {
    display: block;
    stroke: currentColor;
    width: 48px;
    height: 48px;
    color: #818cf8;
    margin-bottom: 12px;
}

.landing-feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 12px;
}

.landing-feature-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(148, 163, 184, 0.9);
    margin: 0 0 16px;
}

.landing-feature-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #818cf8;
    text-decoration: none;
    transition: color 0.2s;
}

.landing-feature-link:hover {
    color: #a5b4fc;
}

.landing-feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.landing-feature-card-small {
    padding: 22px 24px;
    border-radius: 16px;
}

/* Icon-Wrapper für kleine Feature-Icons (KeyAuth-Stil: dezenter, ohne dicken Kasten) */
.landing-feature-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.landing-feature-icon-wrap svg {
    width: 22px;
    height: 22px;
    display: block;
    stroke: currentColor;
}

.landing-feature-icon-small {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.landing-feature-icon-small svg {
    width: 22px;
    height: 22px;
    display: block;
    stroke: currentColor;
}

.landing-feature-title-small {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 8px;
}

.landing-feature-desc-small {
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(148, 163, 184, 0.85);
    margin: 0;
}

#stats,
#features,
#team,
#faq {
    scroll-margin-top: 100px;
}

.landing-faq {
    padding: 64px 32px 72px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.15) 100%);
}

.landing-faq-inner {
    max-width: 680px;
    margin: 0 auto;
}

.landing-faq-header {
    text-align: center;
    margin-bottom: 36px;
}

.landing-faq-header .landing-section-pill {
    margin-bottom: 16px;
}

.landing-faq-header .landing-section-headline {
    margin-bottom: 12px;
}

.landing-faq-header .landing-section-lead {
    margin-bottom: 0;
}

.landing-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.landing-faq-item {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.landing-faq-item:hover {
    border-color: rgba(148, 163, 184, 0.18);
}

.landing-faq-item.is-open {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.08);
}

.landing-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 500;
    color: #e2e8f0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
}

.landing-faq-question:hover {
    background: rgba(99, 102, 241, 0.05);
}

.landing-faq-q-text {
    flex: 1;
    min-width: 0;
}

.landing-faq-chevron {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: rgba(148, 163, 184, 0.8);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.landing-faq-chevron svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.landing-faq-item.is-open .landing-faq-chevron {
    transform: rotate(180deg);
    color: #a5b4fc;
}

.landing-faq-answer {
    padding: 0 22px 20px;
}

.landing-faq-answer p {
    margin: 0;
    padding: 0 0 2px;
    font-size: 0.98rem;
    line-height: 1.65;
    color: rgba(148, 163, 184, 0.92);
    border-left: 3px solid rgba(99, 102, 241, 0.4);
    padding-left: 16px;
    margin-left: 6px;
}

.landing-team-section {
    padding: 56px 32px 64px;
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.2);
    text-align: center;
}

.landing-team-section .landing-section-pill {
    margin-bottom: 16px;
}

.landing-team-section .landing-section-headline {
    margin-bottom: 12px;
}

.landing-team-section .landing-section-lead {
    margin-bottom: 32px;
}

.landing-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    justify-items: center;
}

.landing-team-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 20px;
    padding: 28px 32px;
    max-width: 360px;
    width: 100%;
    text-align: left;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.landing-team-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.landing-team-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.landing-team-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.landing-team-card-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 4px;
}

.landing-team-card-role {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(148, 163, 184, 0.85);
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.landing-team-card-desc {
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(148, 163, 184, 0.9);
    margin: 0;
}

.landing-impressum-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 8px;
}

.landing-impressum-intro {
    font-size: 0.9rem;
    color: rgba(148, 163, 184, 0.8);
    margin: 0 0 20px;
}

.landing-impressum-block {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(148, 163, 184, 0.9);
}

.landing-impressum-block p {
    margin: 0 0 16px;
}

.landing-impressum-block p:last-child {
    margin-bottom: 0;
}

.landing-impressum-link {
    color: #818cf8;
    text-decoration: none;
}

.landing-impressum-link:hover {
    color: #a5b4fc;
    text-decoration: underline;
}

/* Legal-Seiten (Datenschutz, Nutzungsbedingungen) */
body.legal-page {
    min-height: 100vh;
    padding: 0;
    display: block;
}

.legal-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 24px 48px;
}

.legal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.legal-back {
    font-size: 0.95rem;
    font-weight: 500;
    color: #a5b4fc;
    text-decoration: none;
    transition: color 0.2s;
}

.legal-back:hover {
    color: #c7d2fe;
}

.legal-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #f1f5f9;
    letter-spacing: -0.02em;
}

.legal-main {
    flex: 1;
}

.legal-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 600;
    color: #f1f5f9;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.legal-updated {
    font-size: 0.9rem;
    color: rgba(148, 163, 184, 0.8);
    margin: 0 0 32px;
}

.legal-section {
    margin-bottom: 28px;
}

.legal-section h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 12px;
}

.legal-section p,
.legal-section li {
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(148, 163, 184, 0.95);
    margin: 0 0 12px;
}

.legal-section ul {
    margin: 0 0 12px;
    padding-left: 1.4em;
}

.legal-section li {
    margin-bottom: 6px;
}

.legal-link {
    color: #818cf8;
    text-decoration: none;
}

.legal-link:hover {
    color: #a5b4fc;
    text-decoration: underline;
}

.legal-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 0.9rem;
    color: rgba(148, 163, 184, 0.8);
}

.legal-footer .legal-link {
    color: #a5b4fc;
}

.legal-sep {
    margin: 0 8px;
    color: rgba(148, 163, 184, 0.5);
}

.landing-footer {
    padding: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    background: rgba(15, 23, 42, 0.5);
    border-radius: 20px;
}

.landing-footer-columns {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 48px 56px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 32px 24px;
    align-items: start;
}

.landing-footer-brand {
    max-width: 280px;
}

.landing-footer-logo {
    display: block;
    font-size: 1.35rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 10px;
}

.landing-footer-tagline {
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(148, 163, 184, 0.8);
    margin: 0;
}

.landing-footer-col-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 14px;
    letter-spacing: 0.02em;
}

.landing-footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.landing-footer-col .landing-footer-link {
    display: block;
}

.landing-footer-link {
    font-size: 0.9rem;
    color: rgba(148, 163, 184, 0.8);
    text-decoration: none;
}

.landing-footer-link:hover {
    color: #a5b4fc;
}

.landing-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding: 20px 32px 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.06);
}

.landing-footer-copy {
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.5);
}

.landing-footer-made {
    font-size: 0.9rem;
    color: rgba(148, 163, 184, 0.6);
}

.landing-cookie-bar {
    position: fixed;
    bottom: max(24px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: calc(100% - 32px);
    max-width: 820px;
    padding: 20px 24px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s, opacity 0.3s;
}

.landing-cookie-bar--hidden {
    display: none;
}

.landing-cookie-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.landing-cookie-icon {
    display: inline-flex;
    align-items: center;
    color: rgba(251, 191, 36, 0.95);
}

.landing-hero-badge-icon {
    display: inline-flex;
    align-items: center;
    color: rgba(96, 165, 250, 0.9);
}

.landing-lang-icon svg,
.sidebar-lang-icon svg {
    color: rgba(148, 163, 184, 0.9);
}

.landing-cookie-text {
    flex: 1;
    min-width: 200px;
    font-size: 0.9rem;
    color: rgba(148, 163, 184, 0.9);
    line-height: 1.5;
}

.landing-cookie-link {
    color: #818cf8;
    text-decoration: none;
}

.landing-cookie-link:hover {
    text-decoration: underline;
}

.landing-cookie-btns {
    display: flex;
    gap: 10px;
}

.landing-cookie-decline {
    padding: 10px 18px;
    font-size: 0.9rem;
    color: #94a3b8;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    cursor: pointer;
}

.landing-cookie-necessary {
    padding: 10px 18px;
    font-size: 0.9rem;
    color: #e2e8f0;
    background: rgba(51, 65, 85, 0.6);
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 8px;
    cursor: pointer;
}

.landing-cookie-necessary:hover {
    background: rgba(51, 65, 85, 0.9);
    border-color: rgba(96, 165, 250, 0.4);
}

.landing-cookie-accept {
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    background: #6366f1;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .landing-nav {
        top: 8px;
        margin: 0 12px;
        padding: 12px 16px;
        flex-wrap: wrap;
        border-radius: 20px;
        gap: 12px;
    }
    .landing-nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 16px;
    }
    .landing-nav-link {
        padding: 8px 4px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    .landing-nav-login,
    .landing-nav-cta {
        min-height: 44px;
        padding: 10px 18px;
    }
    .landing-hero-simple {
        padding: 48px 20px 56px;
        padding-top: max(48px, env(safe-area-inset-top));
    }
    .landing-hero-ctas .landing-cta-primary,
    .landing-hero-ctas .landing-cta-secondary-link {
        min-height: 48px;
        min-width: 140px;
    }
    .landing-stats-section {
        padding: 48px 20px 56px;
    }
    .landing-stats-row {
        grid-template-columns: 1fr;
    }
    .landing-stat-box {
        padding: 28px 20px;
    }
    .landing-features {
        padding: 40px 20px 56px;
    }
    .landing-team-section {
        padding: 40px 20px 52px;
    }
    .landing-feature-cards-grid {
        grid-template-columns: 1fr;
    }
    .landing-feature-card,
    .landing-feature-card-main {
        padding: 24px 20px;
    }
    .landing-faq {
        padding: 48px 20px 56px;
    }
    .landing-footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
        padding: 32px 20px 20px;
    }
    .landing-footer-brand {
        grid-column: 1 / -1;
        max-width: none;
    }
    .landing-footer-bottom {
        padding: 16px 20px 24px;
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }
    .landing-cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .landing-cookie-btns {
        width: 100%;
        justify-content: center;
    }
    .landing-cookie-decline,
    .landing-cookie-necessary,
    .landing-cookie-accept {
        min-height: 44px;
        flex: 1;
        max-width: 200px;
    }
    .landing-side-tab {
        padding: 12px 8px;
        font-size: 0.7rem;
    }
}

@media (max-width: 600px) {
    .landing-title {
        font-size: clamp(1.85rem, 5vw, 2.5rem);
    }
    .landing-section-headline {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .landing-nav {
        margin: 0 10px;
        padding: 10px 14px;
        top: 6px;
    }
    .landing-logo {
        font-size: 1.2rem;
    }
    .landing-nav-links {
        gap: 12px;
    }
    .landing-nav-link {
        font-size: 0.9rem;
    }
    .landing-lang-switcher {
        padding: 2px;
    }
    .landing-lang-icon {
        padding: 0 6px 0 8px;
        font-size: 0.9rem;
    }
    .landing-lang-btn {
        padding: 6px 12px;
        min-width: 40px;
        font-size: 0.8rem;
    }
    .landing-hero-simple {
        padding: 36px 16px 44px;
    }
    .landing-hero-badge {
        font-size: 0.8rem;
        padding: 6px 14px;
    }
    .landing-title {
        font-size: 1.75rem;
    }
    .landing-lead {
        font-size: 1rem;
    }
    .landing-hero-ctas {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
    }
    .landing-hero-ctas .landing-cta-primary,
    .landing-hero-ctas .landing-cta-secondary-link {
        width: 100%;
    }
   .landing-stats-section {
        padding: 36px 16px 44px;
    }
    .landing-stat-box {
        padding: 22px 18px;
    }
    .landing-stat-number {
        font-size: 2rem;
    }
    .landing-features {
        padding: 32px 16px 44px;
    }
    .landing-feature-card,
    .landing-feature-card-main {
        padding: 20px 18px;
    }
    .landing-team-section {
        padding: 32px 16px 40px;
    }
    .landing-faq {
        padding: 36px 16px 44px;
    }
    .landing-faq-question {
        padding: 16px 18px;
    }
    .landing-step-card {
        padding: 20px 18px;
    }
    .landing-footer-columns {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px 16px 20px;
        text-align: center;
    }
    .landing-footer-brand {
        max-width: none;
    }
    .landing-footer-col {
        align-items: center;
    }
    .landing-footer-bottom {
        padding: 16px 12px 20px;
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
    .todo-modal-overlay {
        padding: 12px;
        padding-top: max(12px, env(safe-area-inset-top));
    }
    .todo-modal {
        border-radius: 16px;
        max-width: 100%;
    }
}

@media (max-width: 360px) {
    .landing-title {
        font-size: 1.5rem;
    }
    .landing-nav-actions {
        flex-wrap: wrap;
    }
    .landing-nav-login,
    .landing-nav-cta {
        flex: 1;
        min-width: 0;
    }
}

#authView .card {
    max-width: 420px;
    width: 100%;
}

.dashboard-layout {
    display: flex !important;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    padding: 0;
}

.sidebar {
    width: 280px;
    min-width: 280px;
    flex-shrink: 0;
    align-self: center;
    height: auto;
    max-height: 100vh;
    background: linear-gradient(180deg, rgba(18, 28, 48, 0.95) 0%, rgba(12, 20, 36, 0.98) 100%);
    border-right: 1px solid rgba(96, 165, 250, 0.1);
    border-radius: 0 16px 16px 0;
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    overflow: hidden;
}

.sidebar-header {
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(96, 165, 250, 0.08);
}

.sidebar-logo-wrap {
    text-align: center;
    margin-bottom: 24px;
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem;
    font-weight: 600;
    color: #93c5fd;
    letter-spacing: 0.02em;
    display: inline-block;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo-link:hover {
    color: #bfdbfe;
}

.cp-dashboard-link {
    display: inline-block;
    margin-top: 4px;
    padding: 8px 14px;
    font-size: 0.85rem;
    color: #93c5fd;
    text-decoration: none;
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.cp-dashboard-link:hover {
    background: rgba(96, 165, 250, 0.15);
    color: #bfdbfe;
}

.cp-back-link {
    margin-top: 20px;
    text-align: center;
}

.main-inner-cp .admin-panel {
    margin-bottom: 0;
}

.user-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: 0.01em;
}

.sidebar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sidebar-action-btn,
.settings-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 10px;
    color: #93c5fd;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.sidebar-action-btn:hover,
.settings-btn:hover {
    background: rgba(96, 165, 250, 0.2);
    color: #bfdbfe;
    border-color: rgba(96, 165, 250, 0.4);
}

.settings-panel {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    min-width: 240px;
    background: linear-gradient(135deg, rgba(25, 35, 55, 0.98) 0%, rgba(18, 28, 45, 0.98) 100%);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    z-index: 100;
    padding: 12px 0;
    backdrop-filter: blur(16px);
}

.settings-panel.hidden {
    display: none;
}

.settings-section {
    padding: 0 4px;
}

.settings-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(184, 203, 224, 0.6);
    padding: 0 12px 8px;
    margin: 0;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: none;
    border-radius: 8px;
    color: #e2e8f0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
}

.settings-item:hover {
    background: rgba(96, 165, 250, 0.15);
}

.settings-item-icon {
    font-size: 1rem;
    opacity: 0.9;
}

.settings-section-danger .settings-section-title {
    color: rgba(248, 113, 113, 0.8);
}

.settings-danger-hint {
    color: #94a3b8;
    font-size: 0.95rem;
    margin: 0 0 16px;
    line-height: 1.5;
}

.settings-api-key-status,
.settings-api-key-new {
    margin: 0 0 12px;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.settings-api-key-new code {
    display: block;
    margin-top: 8px;
    padding: 12px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 8px;
    word-break: break-all;
    font-size: 0.85rem;
}

.settings-wip-overlay.hidden {
    display: none;
}

.settings-wip-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.settings-wip-content {
    background: linear-gradient(135deg, rgba(25, 35, 55, 0.98) 0%, rgba(18, 28, 45, 0.98) 100%);
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 16px;
    padding: 24px;
    max-width: 320px;
    text-align: center;
}

.settings-wip-content p {
    color: #94a3b8;
    margin: 0 0 16px;
}

.settings-hint {
    font-size: 0.9rem;
    color: rgba(184, 203, 224, 0.75);
    margin: 0 0 16px;
}

.settings-login-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-login-item {
    padding: 12px;
    background: rgba(96, 165, 250, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.15);
    border-radius: 10px;
    font-size: 0.9rem;
}

.settings-login-item time {
    color: #93c5fd;
}

.settings-login-item .settings-login-ip {
    color: #94a3b8;
}

.settings-login-item .settings-login-ua {
    font-size: 0.8rem;
    color: rgba(184, 203, 224, 0.7);
    margin-top: 4px;
}

.settings-empty {
    color: rgba(184, 203, 224, 0.7);
}

.role-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    width: fit-content;
    letter-spacing: 0.04em;
}

.role-badge--admin {
    background: rgba(239, 68, 68, 0.3);
    color: #f87171;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
    animation: role-glow-admin 2s ease-in-out infinite;
}

.role-badge--vip {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(217, 119, 6, 0.25) 100%);
    color: #fbbf24;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
    animation: role-shine-vip 3s ease-in-out infinite;
}

@keyframes role-glow-admin {
    0%, 100% { box-shadow: 0 0 12px rgba(239, 68, 68, 0.4); opacity: 1; }
    50% { box-shadow: 0 0 22px rgba(239, 68, 68, 0.65); opacity: 0.95; }
}

@keyframes role-shine-vip {
    0%, 100% { box-shadow: 0 0 14px rgba(245, 158, 11, 0.35); filter: brightness(1); }
    50% { box-shadow: 0 0 22px rgba(245, 158, 11, 0.5); filter: brightness(1.15); }
}

.sidebar-actions .logout-btn,
.sidebar-actions .help-sidebar-btn {
    margin-top: 0;
    flex: 1;
    min-width: 0;
}

.sidebar .logout-btn {
    margin-top: 4px;
    padding: 10px 14px;
    min-height: 44px;
    background: rgba(80, 120, 180, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 10px;
    color: #94a3b8;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sidebar .logout-btn:hover {
    background: rgba(80, 120, 180, 0.3);
    color: #e2e8f0;
    border-color: rgba(96, 165, 250, 0.35);
}

.sidebar .help-sidebar-btn {
    margin-top: 4px;
    padding: 10px 14px;
    min-height: 44px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 10px;
    color: #a5b4fc;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sidebar .help-sidebar-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #c7d2fe;
    border-color: rgba(99, 102, 241, 0.4);
}

.sidebar .passkey-add-btn {
    margin-top: 4px;
    padding: 8px 14px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 10px;
    color: #86efac;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.sidebar .passkey-add-btn:hover {
    background: rgba(34, 197, 94, 0.2);
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, 0.4);
}

.sidebar-nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 20px 24px 0;
}

.sidebar-nav::-webkit-scrollbar {
    width: 5px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(96, 165, 250, 0.2);
    border-radius: 3px;
}

.nav-section {
    margin-bottom: 28px;
}

.nav-section + .nav-section {
    padding-top: 20px;
    border-top: 1px solid rgba(96, 165, 250, 0.08);
}

.nav-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(148, 163, 184, 0.7);
    margin-bottom: 12px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: 1px dashed rgba(96, 165, 250, 0.3);
    border-radius: 12px;
    color: #93c5fd;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-bottom: 12px;
}

.nav-btn svg {
    width: 18px;
    height: 18px;
}

.nav-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-style: solid;
    border-color: rgba(96, 165, 250, 0.5);
}

.nav-btn.primary {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-style: solid;
}

.group-members-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.group-members-input-row input {
    flex: 1;
    max-width: 280px;
    padding: 10px 14px;
    background: rgba(15, 25, 45, 0.8);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 10px;
    color: #e2e8f0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
}

.group-settings-content {
    padding: 24px;
}

.group-settings-content .settings-section {
    margin-top: 20px;
}
.group-settings-content .settings-section:first-child {
    margin-top: 0;
}
.group-settings-content .settings-section-title {
    margin-bottom: 8px;
}

.group-settings-content .form-group {
    margin-bottom: 16px;
}

.group-settings-content .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(148, 163, 184, 0.95);
    margin-bottom: 8px;
}

.group-settings-content input,
.group-settings-content textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 25, 45, 0.8);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 12px;
    color: #e2e8f0;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
}

.group-settings-content textarea {
    resize: vertical;
    min-height: 60px;
}

.group-settings-divider {
    border: none;
    border-top: 1px solid rgba(96, 165, 250, 0.15);
    margin: 20px 0;
}

.group-members-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

.group-member-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(15, 25, 45, 0.5);
    border-radius: 8px;
    margin-bottom: 6px;
}

.group-member-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.group-member-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.group-member-name {
    font-size: 0.9rem;
    color: #e2e8f0;
}

.group-member-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border-radius: 4px;
}

.group-member-remove {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.group-member-remove:hover {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
}

.group-member-perms {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding-top: 6px;
    border-top: 1px solid rgba(96, 165, 250, 0.1);
}

.perm-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.9);
    cursor: pointer;
}

.perm-check input {
    width: 16px;
    height: 16px;
    accent-color: #60a5fa;
}

.group-member-error {
    font-size: 0.85rem;
    color: #f87171;
    padding: 12px;
}

.danger-inline {
    background: rgba(248, 113, 113, 0.15) !important;
    border: 1px solid rgba(248, 113, 113, 0.3) !important;
    color: #f87171 !important;
}

.danger-inline:hover {
    background: rgba(248, 113, 113, 0.25) !important;
}

.create-group-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.create-group-form input {
    padding: 10px 14px;
    background: rgba(15, 25, 45, 0.8);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 10px;
    color: #e2e8f0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    gap: 8px;
}

.cancel-btn, .save-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
}

.cancel-btn {
    background: transparent;
    border: 1px solid rgba(96, 165, 250, 0.2);
    color: #94a3b8;
}

.save-btn {
    background: linear-gradient(145deg, #60a5fa, #3b82f6);
    border: none;
    color: white;
}

.save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.create-group-error {
    font-size: 0.8rem;
    color: #f87171;
}

.groups-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.group-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(20, 30, 50, 0.6);
    border: 1px solid rgba(96, 165, 250, 0.12);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.group-chip-link {
    text-decoration: none;
    color: inherit;
    margin-bottom: 12px;
}

.group-chip-link:hover {
    border-color: rgba(96, 165, 250, 0.35);
    background: rgba(25, 40, 65, 0.6);
}

.group-chip-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
}

.group-chip-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.group-settings-btn,
.group-delete-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #94a3b8;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.group-settings-btn:hover {
    background: rgba(96, 165, 250, 0.15);
    color: #93c5fd;
    opacity: 1;
}

.group-delete-btn:hover {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
    opacity: 1;
}

.group-settings-btn svg,
.group-delete-btn svg {
    width: 14px;
    height: 14px;
}

.group-chip:hover {
    border-color: rgba(96, 165, 250, 0.3);
    background: rgba(25, 40, 65, 0.6);
}

.group-chip.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-color: rgba(96, 165, 250, 0.5);
}

.group-chip-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.group-name {
    font-size: 0.9rem;
    color: #e2e8f0;
}

.group-desc-inline {
    font-size: 0.78rem;
    color: rgba(148, 163, 184, 0.8);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.group-chip.active .group-name {
    color: #93c5fd;
}

.group-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.8);
}

.groups-empty, .groups-error {
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.5);
    padding: 8px 0;
}

.admin-section.hidden {
    display: none;
}

.admin-chip-icon {
    color: rgba(148, 163, 184, 0.7);
    flex-shrink: 0;
}

.admin-panel {
    width: 100%;
    max-width: 800px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.admin-stat-card {
    background: linear-gradient(135deg, rgba(25, 35, 55, 0.6) 0%, rgba(18, 28, 45, 0.8) 100%);
    border: 1px solid rgba(96, 165, 250, 0.15);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.75rem;
    font-weight: 600;
    color: #93c5fd;
}

.admin-stat-label {
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.8);
}

.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.admin-tab {
    position: relative;
    padding: 10px 20px;
    background: rgba(20, 30, 50, 0.6);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 10px;
    color: #94a3b8;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-tab:hover {
    background: rgba(30, 45, 70, 0.6);
    color: #e2e8f0;
}

.admin-tab.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-color: rgba(96, 165, 250, 0.5);
    color: #93c5fd;
}
.admin-tab-badge {
    display: none;
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    color: #fff;
    background: #ef4444;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.admin-tab-badge.visible {
    display: inline-block;
}

.admin-table-wrap {
    overflow-x: auto;
    background: rgba(15, 23, 42, 0.45);
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.admin-table-wrap::-webkit-scrollbar {
    display: none;
}

#adminUsersTab .admin-table-wrap {
    margin-top: 4px;
    min-height: 480px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.06);
    transition: background 0.15s ease;
}

.admin-table th {
    font-weight: 600;
    color: rgba(148, 163, 184, 0.85);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-top: 16px;
    padding-bottom: 12px;
}

.admin-table td {
    color: #e2e8f0;
}

.admin-table td:first-child {
    font-weight: 500;
    color: #f1f5f9;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover td {
    background: rgba(148, 163, 184, 0.04);
}

.admin-role-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.admin-role-badge.admin {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.admin-role-badge.user {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.admin-role-badge.vip {
    background: rgba(245, 158, 11, 0.18);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.admin-role-select {
    padding: 7px 12px 7px 10px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    color: #e2e8f0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.admin-role-select:hover {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(30, 41, 59, 0.9);
}

.admin-role-select:focus {
    outline: none;
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.15);
}

.admin-users-toolbar {
    margin-bottom: 16px;
    position: relative;
}

.admin-user-search-wrap {
    position: relative;
    display: inline-block;
    max-width: 340px;
}

.admin-user-search-wrap .admin-user-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(148, 163, 184, 0.6);
    pointer-events: none;
}

.admin-user-search-wrap .admin-user-search-icon svg {
    width: 18px;
    height: 18px;
}

.admin-user-search {
    width: 100%;
    min-width: 260px;
    padding: 12px 16px 12px 44px;
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    color: #e2e8f0;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-user-search::placeholder {
    color: rgba(148, 163, 184, 0.55);
}

.admin-user-search:hover {
    border-color: rgba(148, 163, 184, 0.28);
}

.admin-user-search:focus {
    outline: none;
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.12);
}

.admin-user-search-wrap:focus-within .admin-user-search-icon {
    color: rgba(96, 165, 250, 0.9);
}

.admin-actions-cell {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.admin-actions-dropdown {
    position: relative;
}

.admin-actions-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: rgba(51, 65, 85, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    color: #94a3b8;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.admin-actions-trigger:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: rgba(148, 163, 184, 0.35);
    color: #e2e8f0;
}

.admin-actions-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    min-width: 180px;
    padding: 6px 0;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
}

.admin-actions-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.admin-dropdown-item {
    display: block;
    width: 100%;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
    text-align: left;
    color: #e2e8f0;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.admin-dropdown-item:hover {
    background: rgba(148, 163, 184, 0.1);
}

.admin-dropdown-item-ban {
    color: #f87171;
}

.admin-dropdown-item-ban:hover {
    background: rgba(239, 68, 68, 0.15);
}

.admin-dropdown-item-unban {
    color: #4ade80;
}

.admin-dropdown-item-unban:hover {
    background: rgba(34, 197, 94, 0.15);
}

.admin-groups-btn,
.admin-pwreset-btn,
.admin-name-btn,
.admin-ban-btn {
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s, transform 0.1s;
    font-family: 'Outfit', sans-serif;
}

.admin-groups-btn {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(79, 70, 229, 0.3) 100%);
    color: #c7d2fe;
    border: 1px solid rgba(99, 102, 241, 0.45);
}

.admin-groups-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.5) 0%, rgba(79, 70, 229, 0.45) 100%);
    border-color: rgba(99, 102, 241, 0.6);
}

.admin-pwreset-btn,
.admin-name-btn {
    background: rgba(51, 65, 85, 0.5);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.admin-pwreset-btn:hover,
.admin-name-btn:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: rgba(148, 163, 184, 0.4);
    color: #e2e8f0;
}

.admin-ban-btn {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.admin-ban-btn:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.5);
}

.admin-ban-btn.admin-unban {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.35);
}

.admin-ban-btn.admin-unban:hover {
    background: rgba(34, 197, 94, 0.22);
    border-color: rgba(34, 197, 94, 0.5);
}

.admin-banned-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.15);
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 8px;
    letter-spacing: 0.02em;
}

.admin-ban-reason {
    display: block;
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.9);
    margin-top: 6px;
    font-style: italic;
}

.admin-user-banned td {
    opacity: 0.8;
}

.admin-user-banned td:first-child {
    color: #94a3b8;
}

.admin-self {
    font-size: 0.9rem;
    color: rgba(148, 163, 184, 0.8);
    font-style: italic;
}

.admin-usergroups-name {
    font-weight: 500;
    color: #e2e8f0;
    margin-bottom: 12px;
}

.admin-usergroups-limit-block {
    margin-bottom: 16px;
}

.admin-usergroups-limit-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 4px;
}

.admin-usergroups-limit-hint {
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.85);
    margin-bottom: 8px;
}

.admin-usergroups-limit-input {
    width: 100%;
    max-width: 120px;
    padding: 8px 12px;
    font-size: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.6);
    color: #e2e8f0;
}

.admin-usergroups-list-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.admin-usergroups-list {
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-usergroups-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #cbd5e1;
}

.admin-usergroups-item input {
    cursor: pointer;
}

.admin-usergroups-loading,
.admin-usergroups-empty,
.admin-usergroups-error {
    color: #94a3b8;
    font-size: 0.9rem;
}

.admin-usergroups-error {
    color: #f87171;
}

.admin-empty {
    font-size: 0.9rem;
    color: rgba(148, 163, 184, 0.5);
    padding: 24px !important;
    text-align: center;
}

.admin-settings-form {
    padding: 20px 0;
}
.admin-settings-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 6px;
}
.admin-settings-hint {
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.8);
    margin-bottom: 12px;
}
.admin-settings-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.admin-settings-input {
    width: 80px;
    padding: 8px 12px;
    font-size: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.6);
    color: #e2e8f0;
}
.admin-settings-input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.6);
}
.admin-settings-save {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    background: #6366f1;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
.admin-settings-save:hover:not(:disabled) {
    background: #4f46e5;
}
.admin-help-accordion { display: flex; flex-direction: column; gap: 12px; }
.admin-help-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.admin-help-card:hover { border-color: rgba(148, 163, 184, 0.2); }
.admin-help-card.open {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
}
.admin-help-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 18px;
    font-size: 0.95rem;
    text-align: left;
    background: transparent;
    border: none;
    color: #e2e8f0;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.admin-help-card-header:hover { background: rgba(148, 163, 184, 0.06); }
.admin-help-card-chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;
    transition: transform 0.25s ease;
    opacity: 0.8;
}
.admin-help-card.open .admin-help-card-chevron { transform: rotate(90deg); }
.admin-help-card-meta {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.85);
    min-width: 160px;
}
.admin-help-card-subject {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    color: #f1f5f9;
}
.admin-help-card-header .admin-help-status { margin-left: auto; flex-shrink: 0; }
.admin-help-card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.admin-help-card.open .admin-help-card-body { max-height: 600px; }
.admin-help-card-content {
    padding: 20px 18px 20px 52px;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    background: rgba(0, 0, 0, 0.15);
}
.admin-help-block {
    margin-bottom: 16px;
}
.admin-help-block:last-of-type { margin-bottom: 0; }
.admin-help-block-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(148, 163, 184, 0.7);
    margin-bottom: 6px;
}
.admin-help-block--question .admin-help-block-label { color: rgba(96, 165, 250, 0.9); }
.admin-help-block--answer .admin-help-block-label { color: rgba(74, 222, 128, 0.9); }
.admin-help-block-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(226, 232, 240, 0.92);
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}
.admin-help-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}
.admin-help-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.admin-help-btn--secondary {
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
}
.admin-help-btn--secondary:hover { background: rgba(148, 163, 184, 0.25); }
.admin-help-btn--primary {
    background: rgba(99, 102, 241, 0.25);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
}
.admin-help-btn--primary:hover { background: rgba(99, 102, 241, 0.35); }
.admin-help-status-select {
    padding: 8px 12px;
    font-size: 0.85rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    color: #e2e8f0;
    margin-left: auto;
}
.admin-help-status { font-size: 0.75rem; font-weight: 600; padding: 5px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.03em; }
.admin-help-status.open, .admin-help-status--open { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.admin-help-status.in_progress, .admin-help-status--in_progress { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.admin-help-status.resolved, .admin-help-status--resolved { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.admin-help-empty { padding: 32px; color: rgba(148, 163, 184, 0.7); font-size: 0.95rem; text-align: center; }

.admin-knowledge-intro { font-size: 0.9rem; color: rgba(148, 163, 184, 0.9); margin-bottom: 16px; }
.admin-knowledge-add { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; max-width: 500px; }
.admin-knowledge-add input[type="text"], .admin-knowledge-add textarea { padding: 10px 14px; font-size: 0.9rem; background: rgba(30, 41, 59, 0.6); border: 1px solid rgba(148, 163, 184, 0.2); border-radius: 8px; color: #e2e8f0; }
.admin-knowledge-list { list-style: none; padding: 0; margin: 0; }
.admin-knowledge-item { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; padding: 12px 16px; margin-bottom: 8px; background: rgba(30, 41, 59, 0.5); border: 1px solid rgba(148, 163, 184, 0.1); border-radius: 10px; }
.admin-knowledge-item-keywords { font-size: 0.85rem; font-weight: 600; color: #a5b4fc; flex: 1 1 100%; }
.admin-knowledge-item-answer { font-size: 0.9rem; color: rgba(226, 232, 240, 0.9); flex: 1 1 100%; }
.admin-knowledge-item-meta { font-size: 0.75rem; color: rgba(148, 163, 184, 0.6); }
.admin-knowledge-delete { margin-left: auto; padding: 4px 10px; font-size: 1.2rem; background: transparent; border: none; color: rgba(248, 113, 113, 0.8); cursor: pointer; border-radius: 6px; }
.admin-knowledge-delete:hover { background: rgba(248, 113, 113, 0.15); color: #f87171; }
.admin-knowledge-empty, .admin-knowledge-error { padding: 24px; color: rgba(148, 163, 184, 0.7); }

.admin-settings-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.admin-settings-message {
    font-size: 0.9rem;
    margin-top: 12px;
}
.admin-settings-message.success {
    color: #34d399;
}
.admin-settings-message.error {
    color: #f87171;
}

.main-content {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding: 40px 32px 60px;
    scrollbar-width: none;
}

.main-content::-webkit-scrollbar {
    display: none;
}

.main-inner {
    width: 100%;
    max-width: 640px;
}

.main-inner:has(.admin-panel:not(.hidden)) .todo-toolbar,
.main-inner:has(.admin-panel:not(.hidden)) .todo-stats {
    display: none;
}

.main-inner:has(.admin-panel:not(.hidden)) {
    max-width: 900px;
    min-height: 70vh;
}

.main-header {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.main-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0;
    letter-spacing: -0.02em;
}

.add-todo-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    background: linear-gradient(145deg, #60a5fa 0%, #3b82f6 100%);
    border: none;
    border-radius: 14px;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.add-todo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(59, 130, 246, 0.5);
}

.add-todo-btn svg {
    width: 22px;
    height: 22px;
}

.todo-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.todo-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.todo-modal {
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(135deg, rgba(25, 35, 55, 0.95) 0%, rgba(18, 28, 45, 0.98) 100%);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 20px;
    box-shadow: 0 25px 50px -20px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.todo-modal-overlay.is-open .todo-modal {
    transform: scale(1);
}

.todo-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(96, 165, 250, 0.12);
}

.todo-modal-header h2 {
    font-size: 1.25rem;
    color: #e2e8f0;
}

.todo-modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.todo-modal-close:hover {
    background: rgba(96, 165, 250, 0.15);
    color: #e2e8f0;
}

.todo-modal-form {
    padding: 24px;
}

.todo-modal-form .form-group {
    margin-bottom: 18px;
}

.todo-modal-form .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(148, 163, 184, 0.95);
    margin-bottom: 8px;
}

.todo-modal-form input,
.todo-modal-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 25, 45, 0.8);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 12px;
    color: #e2e8f0;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
}

.todo-modal-form textarea {
    resize: vertical;
    min-height: 80px;
}

.todo-modal-form input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8);
}

.subtasks-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.subtask-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(15, 25, 45, 0.6);
    border-radius: 10px;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.subtask-item span {
    flex: 1;
}

.subtask-remove {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.2rem;
}

.subtask-remove:hover {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
}

.subtask-add-row {
    display: flex;
    gap: 8px;
}

.subtask-add-row input {
    flex: 1;
}

.subtask-add-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 10px;
    color: #93c5fd;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.subtask-add-btn:hover {
    background: rgba(59, 130, 246, 0.35);
}

.todo-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(96, 165, 250, 0.12);
}

.add-btn {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #60a5fa 0%, #3b82f6 100%);
    border: none;
    border-radius: 14px;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.add-btn svg {
    width: 24px;
    height: 24px;
}

.add-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.45);
}

.todo-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-bottom: 24px;
}

.todo-sort-wrap {
    flex-shrink: 0;
}

.todo-sort-select {
    padding: 10px 32px 10px 14px;
    font-size: 0.9rem;
    color: #e2e8f0;
    background: rgba(25, 40, 65, 0.5);
    border: 1px solid rgba(96, 165, 250, 0.15);
    border-radius: 12px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.todo-sort-select:focus {
    outline: none;
    border-color: rgba(96, 165, 250, 0.45);
}

.todo-stats {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0 0 8px;
}

.todo-stats.hidden {
    display: none;
}

/* Barrierefreiheit: Fokus sichtbar, mind. 44px Touch-Targets */
:focus-visible {
    outline: 2px solid rgba(96, 165, 250, 0.8);
    outline-offset: 2px;
}

button:not(.auth-forgot-link),
.filter-btn,
.todo-check,
.todo-delete,
.todo-edit,
.todo-due-add,
.subtask-add-btn,
.nav-btn,
.add-todo-btn,
.settings-btn,
.settings-item {
    min-height: 44px;
    min-width: 44px;
}

.todo-subtask-check,
.todo-subtask-delete {
    min-height: 28px;
    min-width: 28px;
}

.subtask-inline-btn {
    min-height: 28px;
    min-width: 28px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.todo-filters {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 10px 18px;
    background: rgba(25, 40, 65, 0.5);
    border: 1px solid rgba(96, 165, 250, 0.15);
    border-radius: 12px;
    color: #94a3b8;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-btn:hover {
    color: #e2e8f0;
    border-color: rgba(96, 165, 250, 0.35);
}

.filter-btn.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(99, 102, 241, 0.12) 100%);
    color: #93c5fd;
    border-color: rgba(96, 165, 250, 0.45);
}

.todo-area {
    min-height: 200px;
    position: relative;
}

.todo-loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(13, 21, 32, 0.7);
    backdrop-filter: blur(4px);
    z-index: 5;
    border-radius: 16px;
}

.todo-loading-overlay.hidden {
    display: none;
}

.todo-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(96, 165, 250, 0.2);
    border-top-color: #60a5fa;
    border-radius: 50%;
    animation: todo-spin 0.8s linear infinite;
}

@keyframes todo-spin {
    to { transform: rotate(360deg); }
}

.todo-loading-text {
    font-size: 0.9rem;
    color: rgba(148, 163, 184, 0.9);
}

.todo-list {
    list-style: none;
}

.todo-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(30, 41, 59, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 10px;
    margin-bottom: 6px;
    transition: border-color 0.2s ease, background 0.2s ease;
    animation: todo-enter 0.35s ease backwards;
}

.todo-item:hover {
    border-color: rgba(148, 163, 184, 0.15);
    background: rgba(30, 41, 59, 0.5);
}

.todo-item.done {
    opacity: 0.65;
}

.todo-item.done .todo-text {
    text-decoration: line-through;
    color: rgba(148, 163, 184, 0.8);
}

@keyframes todo-enter {
    from {
        transform: translateY(-4px);
    }
    to {
        transform: translateY(0);
    }
}

.todo-check {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    border-radius: 6px;
    border: 1.5px solid rgba(148, 163, 184, 0.35);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s;
    flex-shrink: 0;
}

.todo-check:hover {
    border-color: rgba(96, 165, 250, 0.6);
    background: rgba(59, 130, 246, 0.12);
}

.todo-item.done .todo-check {
    background: transparent;
    border-color: rgba(34, 197, 94, 0.6);
}

.todo-item.done .todo-check svg {
    color: #22c55e;
}

.todo-check svg {
    width: 12px;
    height: 12px;
    color: transparent;
}

.todo-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.todo-text-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.todo-text {
    font-size: 0.9875rem;
    font-weight: 500;
    color: #e2e8f0;
    line-height: 1.4;
}

.todo-edit {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: rgba(148, 163, 184, 0.7);
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s, background 0.2s, color 0.2s;
}

.todo-edit:hover {
    opacity: 1;
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
}

.todo-desc {
    font-size: 0.8125rem;
    color: rgba(148, 163, 184, 0.85);
    margin-top: 2px;
    line-height: 1.4;
}

.todo-subtasks {
    margin-top: 6px;
    padding-left: 12px;
    border-left: 1px solid rgba(148, 163, 184, 0.12);
}

.todo-subtask {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
    font-size: 0.8125rem;
    color: rgba(148, 163, 184, 0.9);
}

.todo-subtask.done {
    text-decoration: line-through;
    opacity: 0.7;
}

.todo-subtask span {
    flex: 1;
    min-width: 0;
}

.todo-subtask-delete {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: rgba(148, 163, 184, 0.5);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.todo-subtask-delete:hover {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

.todo-subtask-check {
    width: 14px;
    height: 14px;
    min-width: 14px;
    border-radius: 4px;
    border: 1.5px solid rgba(148, 163, 184, 0.35);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.todo-subtask.done .todo-subtask-check {
    background: transparent;
    border-color: rgba(34, 197, 94, 0.6);
}

.todo-subtask.done .todo-subtask-check svg {
    color: #22c55e;
}

.subtask-add-inline {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(148, 163, 184, 0.06);
    align-items: center;
}

.subtask-inline-input {
    flex: 1;
    min-width: 0;
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 6px;
    color: #e2e8f0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8125rem;
    transition: border-color 0.2s, background 0.2s;
}

.subtask-inline-input:focus {
    outline: none;
    border-color: rgba(96, 165, 250, 0.35);
    background: rgba(15, 23, 42, 0.6);
}

.subtask-inline-input::placeholder {
    color: rgba(148, 163, 184, 0.45);
}

.subtask-inline-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 6px;
    color: #94a3b8;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.subtask-inline-btn:hover {
    background: rgba(96, 165, 250, 0.15);
    border-color: rgba(96, 165, 250, 0.25);
    color: #93c5fd;
}

.todo-subtask-check svg {
    width: 8px;
    height: 8px;
    color: transparent;
}

.todo-due-wrap {
    display: flex;
    align-items: center;
    margin-top: 0;
    margin-left: 0;
}

.todo-due {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    color: rgba(148, 163, 184, 0.8);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.2s;
}

.todo-due:hover {
    background: rgba(148, 163, 184, 0.1);
}

.todo-due.overdue {
    color: #f87171;
}

.todo-item.overdue .todo-due {
    color: #f87171;
}

.todo-due-add {
    font-size: 0.8125rem;
    padding: 2px 6px;
    background: transparent;
    border: 1px dashed rgba(148, 163, 184, 0.3);
    border-radius: 4px;
    color: rgba(148, 163, 184, 0.8);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.todo-due-add:hover {
    border-color: rgba(96, 165, 250, 0.4);
    background: rgba(96, 165, 250, 0.08);
    color: #93c5fd;
}

.todo-completed-by {
    display: block;
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.75);
    margin-top: 4px;
    margin-left: 10px;
}

.todo-due-edit {
    font-size: 0.9rem;
    padding: 4px 8px;
    background: rgba(15, 25, 45, 0.8);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 6px;
    color: #e2e8f0;
    max-width: 140px;
}

.todo-due-edit::-webkit-calendar-picker-indicator {
    filter: invert(0.8);
    cursor: pointer;
}

.todo-due-edit-wrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.todo-due-clear {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(248, 113, 113, 0.2);
    border: none;
    border-radius: 4px;
    color: #f87171;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

.todo-due-clear:hover {
    background: rgba(248, 113, 113, 0.35);
}

.todo-delete {
    width: 30px;
    height: 30px;
    min-width: 30px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: rgba(148, 163, 184, 0.45);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    opacity: 0.8;
    flex-shrink: 0;
}

.todo-delete:hover {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
    opacity: 1;
}

.todo-delete svg {
    width: 16px;
    height: 16px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(148, 163, 184, 0.6);
}

.empty-state svg {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    opacity: 0.4;
}

.empty-state p {
    font-size: 1.1rem;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 6px;
}

.empty-state span {
    font-size: 0.9rem;
}

.empty-state.hidden {
    display: none;
}

.auth-card {
    padding: 36px 32px;
}

.auth-header {
    margin-bottom: 28px;
}

.auth-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(30, 45, 70, 0.9) 0%, rgba(20, 35, 55, 0.95) 100%);
    padding: 6px 14px;
    border-radius: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    color: #93c5fd;
    border: 1px solid rgba(96, 165, 250, 0.2);
    margin-bottom: 16px;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: rgba(148, 163, 184, 0.9);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(148, 163, 184, 0.95);
}

.form-group input {
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(20, 30, 50, 0.7) 0%, rgba(15, 25, 45, 0.8) 100%);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 14px;
    color: #e2e8f0;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.25s ease;
}

.form-group input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

.form-group input:focus {
    outline: none;
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.auth-error {
    font-size: 0.85rem;
    color: #f87171;
    margin-top: -4px;
}

.auth-error.hidden {
    display: none;
}

.auth-success {
    font-size: 0.9rem;
    color: #4ade80;
    margin-top: 8px;
}

.auth-success.hidden {
    display: none;
}

.form-group.hidden {
    display: none;
}

.auth-btn {
    padding: 14px 24px;
    background: linear-gradient(145deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
    border: none;
    border-radius: 14px;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    margin-top: 6px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5);
}

.auth-passkey-divider {
    text-align: center;
    color: rgba(184, 203, 224, 0.6);
    font-size: 0.9rem;
    margin: 12px 0 8px;
}

.auth-btn-passkey {
    background: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%) !important;
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #93c5fd;
    margin-top: 0;
}

.auth-btn-passkey:hover {
    background: linear-gradient(145deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.08) 100%) !important;
    border-color: rgba(96, 165, 250, 0.5);
}

.auth-toggle {
    background: none;
    border: none;
    color: #93c5fd;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.2s;
}

.auth-toggle:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.auth-forgot-link {
    display: block;
    margin-top: 6px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    text-align: left;
}

.auth-forgot-link:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.auth-2fa-step {
    margin-top: 0;
}

.auth-2fa-step.hidden {
    display: none;
}

.auth-2fa-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.auth-2fa-back {
    display: block;
    margin-top: 12px;
}

.settings-2fa-qr-wrap {
    margin: 16px 0;
    text-align: center;
}

.settings-2fa-qr-wrap img {
    border-radius: 8px;
}

.settings-2fa-secret-wrap {
    margin: 8px 0 16px;
    word-break: break-all;
    font-size: 0.85rem;
}

.card {
    background: linear-gradient(135deg, rgba(25, 35, 55, 0.8) 0%, rgba(18, 28, 45, 0.85) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(96, 165, 250, 0.12);
    border-radius: 24px;
    box-shadow: 0 25px 50px -20px rgba(0, 0, 0, 0.4);
}

@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
        min-width: 240px;
    }

    .main-content {
        padding: 32px 24px 48px;
    }

    .main-inner {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .dashboard-layout {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .sidebar {
        width: 100%;
        min-width: 100%;
        height: auto;
        align-self: stretch;
        max-height: none;
        overflow: visible;
        flex-shrink: 0;
        border-right: none;
        border-bottom: 1px solid rgba(96, 165, 250, 0.1);
        border-radius: 0;
        padding: 16px 20px;
    }

    .sidebar-header {
        padding: 0 0 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
    }

    .user-block {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 0 0;
    }

    .nav-section {
        flex: 1;
        min-width: 160px;
        margin-bottom: 0;
    }

    .groups-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .main-content {
        padding: 20px 16px 40px;
    }

    .main-title {
        font-size: 1.4rem;
    }

    .add-todo-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .add-todo-form {
        flex-direction: column;
    }

    .add-btn {
        width: 100%;
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .admin-stat-card {
        padding: 14px;
    }

    .admin-stat-value {
        font-size: 1.4rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .todo-modal,
    .group-settings-content {
        max-width: 100%;
    }

    .todo-modal-overlay {
        padding: 16px;
        align-items: flex-start;
        padding-top: max(16px, env(safe-area-inset-top));
    }

    .group-members-input-row {
        flex-direction: column;
    }

    .group-members-input-row input {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    #authView.view.active {
        padding: 16px;
        align-items: flex-start;
        padding-top: max(24px, env(safe-area-inset-top));
    }

    #authView .card {
        max-width: 100%;
    }

    .auth-card {
        padding: 24px 20px;
    }

    .auth-title {
        font-size: 1.3rem;
    }

    .auth-subtitle {
        font-size: 0.85rem;
    }

    .auth-form .form-group input {
        padding: 12px 16px;
    }

    .auth-btn {
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .dashboard-layout {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .sidebar {
        padding-left: max(20px, env(safe-area-inset-left));
    }

    .sidebar-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-content {
        padding: 16px 12px 32px;
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
    }

    .main-title {
        font-size: 1.25rem;
    }

    .todo-filters {
        flex-wrap: wrap;
    }

    .filter-btn {
        flex: 1;
        min-width: 80px;
    }

    .todo-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .todo-content {
        width: 100%;
    }

    .todo-delete {
        align-self: flex-end;
    }

    .auth-card {
        padding: 20px 16px;
    }

    .auth-title {
        font-size: 1.15rem;
    }

    .notify-modal {
        margin: 12px;
    }

    .add-todo-btn,
    .filter-btn,
    .logout-btn,
    .nav-btn {
        min-height: 44px;
    }

    .group-chip {
        min-height: 44px;
        padding: 10px 14px;
    }
}
