html,
        body {
            height: 100%;
        }

        body {
            font-family: 'Roboto', Arial, sans-serif;
            background: linear-gradient(120deg, #e0e7ff 0%, #f3f4f6 100%);
            color: #222;
            margin: 0;
            line-height: 1.6;
            min-height: 100vh;
            scroll-behavior: smooth;
            scroll-padding-top: 90px; /* für fixed navbar, ggf. anpassen */
        }

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto/roboto-variablefont_wdthwght-webfont.woff2') format('woff2');
    font-weight: 100 900; /* Variable Font: alle Gewichte */
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto/roboto-italic-variablefont_wdthwght-webfont.woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
}


        h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
            font-family: 'Roboto', Arial, sans-serif;
            font-weight: 700;
            line-height: 1.3;
        }

        p {
            font-family: 'Roboto', Arial, sans-serif;
            font-weight: 200;
            font-size: 1rem;
            margin-bottom: 1rem;
        }

        a {
            font-family: 'Roboto', Arial, sans-serif;
            font-weight: 100;
            text-decoration: none;
            transition: color 0.2s;
        }

        a:hover {
            color: #2563eb;
        }

        .btn-main {
            font-family: 'Roboto', Arial, sans-serif;
            font-weight: 500;
            font-size: 1rem;
        }

        .nav-glass {
            background: transparent;
            box-shadow: none;
            backdrop-filter: blur(0px);
            transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
        }

        #main-navbar.scrolled {
            background: rgba(20, 20, 25, 0.85);
            box-shadow: 0 8px 32px #2563eb22;
            backdrop-filter: blur(18px);
        }

        .hero-animated-bg {
            position: absolute;
            inset: 0;
            z-index: 0;
            overflow: hidden;
        }

        .hero-animated-bg span {
            position: absolute;
            border-radius: 50%;
            opacity: 0.12;
            filter: blur(2px);
            animation: hero-bubble-move 12s infinite alternate cubic-bezier(.7, .1, .3, .9);
        }

        .hero-animated-bg span:nth-child(1) {
            width: 220px;
            height: 220px;
            left: 5vw;
            top: 10vh;
            background: #2563eb;
            animation-delay: 0s;
        }

        .hero-animated-bg span:nth-child(2) {
            width: 120px;
            height: 120px;
            left: 80vw;
            top: 60vh;
            background: #1e3a8a;
            animation-delay: 2s;
        }

        .hero-animated-bg span:nth-child(3) {
            width: 90px;
            height: 90px;
            left: 20vw;
            top: 80vh;
            background: #2563eb;
            animation-delay: 4s;
        }

        .hero-animated-bg span:nth-child(4) {
            width: 60px;
            height: 60px;
            left: 70vw;
            top: 30vh;
            background: #1e3a8a;
            animation-delay: 6s;
        }

        @keyframes hero-bubble-move {
            0% {
                transform: translateY(0) scale(1);
            }

            100% {
                transform: translateY(-60px) scale(1.15);
            }
        }

        .hero-content {
            position: relative;
            z-index: 2;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 90vh;
        }

        .hero-title {
            font-family: 'Roboto', Arial, sans-serif;
            font-weight: 900;
            font-size: 3.5rem;
            letter-spacing: -0.03em;
            background: linear-gradient(90deg, #2563eb 0%, #1e3a8a 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            text-align: center;
            line-height: 1.1;
            margin-bottom: 1.2rem;
            animation: fadeInDown 1.2s cubic-bezier(.7, .1, .3, .9);
            filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff);
        }

        .hero-sub {
            font-family: 'Roboto', Arial, sans-serif;
            font-weight: 400;
            font-size: 1.5rem;
            color: #fff;
            text-align: center;
            margin-bottom: 2.5rem;
            opacity: 0.92;
            animation: fadeInUp 1.2s cubic-bezier(.7, .1, .3, .9);
        }

        .hero-cta {
            display: flex;
            gap: 1.5rem;
            margin-bottom: 2.5rem;
            flex-wrap: wrap;
            justify-content: center;
        }

        .btn-hero {
            background: linear-gradient(90deg, #2563eb 0%, #1e3a8a 100%);
            color: #fff;
            font-weight: 700;
            border-radius: 9999px;
            padding: 1em 2.5em;
            font-size: 1.25rem;
            box-shadow: 0 4px 24px #2563eb44;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.7em;
            animation: fadeInUp 1.5s cubic-bezier(.7, .1, .3, .9);
            transition: all .2s linear, background 0s;
        }

        .btn-hero.secondary {
            background: #1e3a8a;
            color: #fff;
            border: 1.5px solid #2563eb;
        }

        .btn-hero:hover,
        .btn-hero:focus {
            animation-delay: 0s;
            color: #fff;
            background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 100%);
            box-shadow: 0 12px 36px #1e3a8a77;
            transform: scale(1.09) rotate(-2deg);
        }

        .hero-tv {
            margin: 2.5rem 0 1.5rem 0;
            width: 100%;
            max-width: 700px;
            aspect-ratio: 16/7;
            border-radius: 2.5rem;
            background: linear-gradient(120deg, #2563eb22 0%, #1e3a8a11 100%);
            box-shadow: 0 8px 40px 0 #2563eb33;
            position: relative;
            overflow: hidden;
            animation: fadeIn 1.5s cubic-bezier(.7, .1, .3, .9);
        }

        .hero-tv-inner {
            width: 100%;
            height: 100%;
            border-radius: 2.5rem;
            overflow: hidden;
            background: #0a0a0a;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hero-tv-glow {
            position: absolute;
            inset: 0;
            pointer-events: none;
            border-radius: 2.5rem;
            box-shadow: 0 0 64px 24px #2563eb33, 0 0 0 8px #2563eb22;
            z-index: 1;
            animation: tv-glow 2.5s infinite alternate;
        }

        @keyframes tv-glow {
            0% {
                box-shadow: 0 0 32px 8px #2563eb33, 0 0 0 8px #2563eb22;
            }

            100% {
                box-shadow: 0 0 64px 24px #2563eb66, 0 0 0 8px #2563eb44;
            }
        }

        @keyframes fadeInDown {
            0% {
                opacity: 0;
                transform: translateY(-40px);
            }

            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeInUp {
            0% {
                opacity: 0;
                transform: translateY(40px);
            }

            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeIn {
            0% {
                opacity: 0;
            }

            100% {
                opacity: 1;
            }
        }

        .section-divider {
            width: 100%;
            height: 60px;
            background: url('data:image/svg+xml;utf8,<svg width="100%" height="60" xmlns="http://www.w3.org/2000/svg"><path d="M0,60 Q250,0 500,60 T1000,60 V60 H0 Z" fill="white" opacity="0.03"/></svg>') repeat-x;
        }

        .feature-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 2.5rem;
            margin: 0 auto;
            max-width: 1100px;
            margin-bottom: 4rem;
        }

        .feature-card {
            background: rgba(255, 255, 255, 0.04);
            border-radius: 1.5rem;
            box-shadow: 0 4px 32px #2563eb22;
            padding: 2.5rem 2rem 2rem 2rem;
            text-align: center;
            position: relative;
            overflow: hidden;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .feature-card:hover {
            transform: translateY(-8px) scale(1.03);
            box-shadow: 0 8px 40px #2563eb44;
        }

        .feature-card .icon {
            font-size: 2.5rem;
            color: #2563eb;
            margin-bottom: 1.2rem;
            animation: icon-bounce 2.5s infinite alternate cubic-bezier(.7, .1, .3, .9);
        }

        @keyframes icon-bounce {
            0% {
                transform: translateY(0);
            }

            100% {
                transform: translateY(-10px);
            }
        }

        section {
            font-family: 'Roboto', Arial, sans-serif !important;
        }

        .masonry {
            columns: 3 320px;
            column-gap: 2rem;
            margin: 0 auto;
            max-width: 1200px;
        }

        .masonry-item {
            break-inside: avoid;
            margin-bottom: 2rem;
            background: #181a1b;
            border-radius: 1.2rem;
            box-shadow: 0 4px 32px #2563eb22;
            overflow: hidden;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .masonry-item:hover {
            transform: scale(1.03) rotate(-1deg);
            box-shadow: 0 8px 40px #2563eb44;
        }

        .masonry-item img {
            width: 100%;
            display: block;
            object-fit: cover;
            aspect-ratio: 16/9;
        }

        .masonry-item .caption {
            padding: 1.2rem 1rem 1rem 1rem;
        }

        .masonry-item .caption h4 {
            color: #2563eb;
            font-size: 1.1rem;
            font-weight: bold;
            margin-bottom: 0.3em;
        }

        .masonry-item .caption p {
            color: #fff;
            font-size: 0.98rem;
            opacity: 0.85;
        }

        .community-cta {
            background: linear-gradient(90deg, #2563eb 0%, #1e3a8a 100%);
            color: #181a1b;
            font-weight: 700;
            border-radius: 9999px;
            padding: 1em 2.5em;
            font-size: 1.25rem;
            box-shadow: 0 4px 24px #2563eb44;
            border: none;
            margin: 2.5rem auto 0 auto;
            display: flex;
            align-items: center;
            gap: 0.7em;
            transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
        }

        .community-cta:hover,
        .community-cta:focus {
            background: #1e3a8a;
            color: #2563eb;
            box-shadow: 0 8px 32px #1e3a8a55;
            transform: scale(1.07) rotate(-2deg);
        }

        .faq-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 2.5rem;
            margin: 0 auto;
            max-width: 1100px;
        }

        .faq-card {
            background: #181a1b;
            border-radius: 1.5rem;
            box-shadow: 0 4px 32px #2563eb22;
            padding: 2rem 2rem 1.5rem 2rem;
            cursor: pointer;
            transition: box-shadow 0.2s, transform 0.2s;
            position: relative;
        }

        .faq-card:hover,
        .faq-card.active {
            box-shadow: 0 8px 40px #2563eb44;
            transform: scale(1.03) rotate(-1deg);
        }

        .faq-card .faq-q {
            font-family: 'Roboto', Arial, sans-serif;
            font-weight: 700;
            font-size: 1.2rem;
            margin-bottom: 0.7em;
            display: flex;
            align-items: center;
            gap: 0.7em;
            color: #fff;
        }

        .faq-grid i {
            color: #2563eb !important;
            transition: transform 0.2s;
        }

        .faq-card .faq-a {
            font-family: 'Roboto', Arial, sans-serif;
            font-weight: 400;
            font-size: 1rem;
            color: #fff;
            opacity: 0.9;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s cubic-bezier(.7, .1, .3, .9), opacity 0.3s;
        }

        .faq-card.active .faq-a {
            max-height: 200px;
            opacity: 1;
            margin-top: 0.5em;
        }

        .footer {
            background: #0a0a0a;
            color: #2563eb;
            padding: 3rem 0 1.5rem 0;
            text-align: center;
            font-family: 'Roboto', Arial, sans-serif;
            font-size: 0.9rem;
        }

        .footer .socials {
            margin-bottom: 1.2em;
        }

        .footer .socials a {
            margin: 0 0.5em;
            font-size: 2rem;
            color: #2563eb;
            transition: color 0.2s, transform 0.2s;
        }

        .footer .socials a:hover {
            color: #1e3a8a;
            transform: scale(1.1) rotate(-5deg);
        }

        .footer .links {
            margin-bottom: 1em;
        }

        .footer .links a {
            font-family: 'Roboto', Arial, sans-serif;
            color: #2563eb;
            margin: 0;
            text-decoration: none;
            transition: color 0.2s;
        }

        .footer .links a:hover {
            color: #1e3a8a !important;
        }

        @media (max-width: 900px) {

            .feature-grid,
            .faq-grid {
                grid-template-columns: 1fr;
            }

            .masonry {
                columns: 1 100%;
            }
        }

        .nav-link {
            position: relative;
            color: #fff;
            padding: 0.25em 0.5em;
            transition: color 0.2s;
            overflow: hidden;
            text-shadow: 0 1px 8px #000c;
        }

        .nav-link::after {
            content: '';
            display: block;
            position: absolute;
            left: 50%;
            bottom: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #2563eb 0%, #1e3a8a 100%);
            border-radius: 2px;
            transition: width 0.3s, left 0.3s;
        }

        .nav-link:hover,
        .nav-link:focus {
            color: #2563eb;
        }

        .nav-link:hover::after,
        .nav-link:focus::after {
            width: 100%;
            left: 0;
        }

        .nav-link::after {
            transition: width 0.3s, left 0.3s;
        }

        /* Mobile Nav */
        #mobile-nav {
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s;
        }

        #mobile-nav.active {
            display: flex;
        }

        .nav-link-mobile {
            color: #2563eb;
            padding: 0.5em 1em;
            border-radius: 1em;
            transition: background 0.2s, color 0.2s;
            font-weight: 700;
        }

        .nav-link-mobile:hover,
        .nav-link-mobile:focus {
            background: #2563eb;
            color: #1e3a8a;
        }

        /* Twitch Embed */
        #twitch-embed iframe {
            min-width: 100%;
            height: 100%;
            border-radius: 2.5rem;
            overflow: hidden;
        }

        /* Geschwungenes Div */
        .geschwungenes-div {
            width: 100%;
            height: 64px;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 64"><path d="M0,64 Q720,0 1440,64 V64 H0 Z" fill="%23181a1b" opacity="1"/></svg>') repeat-x;
        }

        /* Flipping Card */
        .perspective-1000 {
            perspective: 1000px;
        }

        .flip-card-portrait {
            width: 100%;
            height: 100%;
            position: relative;
            perspective: 1000px;
        }

        .flip-card-inner-portrait {
            width: 100%;
            height: 100%;
            position: relative;
            transform-style: preserve-3d;
            transition: transform 0.7s cubic-bezier(.7, .1, .3, .9);
        }

        .group:hover .flip-card-inner-portrait,
        .group:focus-within .flip-card-inner-portrait {
            transform: rotateY(180deg);
        }

        .flip-card-front-portrait,
        .flip-card-back-portrait {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            backface-visibility: hidden;
            border-radius: 1.5rem;
        }

        .flip-card-back-portrait {
            transform: rotateY(180deg);
            display: flex;
            align-items: center;
            justify-content: center;
            background: #232326;
        }

        /* Timeline Card */
        @keyframes fadein {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .animate-fadein {
            opacity: 0;
            animation: fadein 0.9s forwards;
        }

        @keyframes slidein-left {
            from {
                opacity: 0;
                transform: translateX(-40px);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .animate-slidein-left {
            opacity: 0;
            animation: slidein-left 0.8s forwards;
        }

        @keyframes timeline-pop {
            0% {
                opacity: 0;
                transform: scale(0.7) translateY(30px);
            }

            60% {
                opacity: 1;
                transform: scale(1.1) translateY(-5px);
            }

            100% {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        .animate-timeline {
            opacity: 0;
            animation: timeline-pop 0.9s forwards;
        }

        @keyframes rotate {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(180deg);
            }
        }

        /* koop */
        @keyframes spin-slow {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .animate-spin-slow {
            animation: spin-slow 6s linear infinite;
        }

        /* streamplan */
        /* ...existing code... */
        .countdown-flip-outer {
            min-height: 7.5rem;
            margin-bottom: 2.5rem;
        }

        .flip-unit {
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
        }

        .flip-label {
            color: #fff;
            font-size: 1.1rem;
            font-weight: 600;
            margin-top: 0.3em;
            letter-spacing: 0.04em;
            text-shadow: 0 2px 8px #000a;
        }

        .flip-card {
            width: 5.5rem;
            height: 7rem;
            perspective: 600px;
            margin: 0 0.1em;
            position: relative;
            background: none;
        }

        .flip-card-inner {
            position: absolute;
            width: 100%;
            height: 100%;
            transition: transform 0.6s cubic-bezier(.77, 0, .18, 1);
            transform-style: preserve-3d;
        }

        .flip-card-front,
        .flip-card-back {
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            border-radius: 0.5em;
            background: transparent;
            color: #fff;
            font-size: 5rem;
            font-family: 'Roboto Mono', monospace;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: none;
            border-bottom: none;
            letter-spacing: 0.08em;
            text-shadow: 0 2px 8px #000a;
        }

        .flip-card-back {
            transform: rotateX(180deg);
        }

        .flip-sep {
            font-size: 4rem;
            color: #fff;
            font-weight: bold;
            align-self: flex-end;
            margin-bottom: 1.2rem;
            opacity: 0.7;
            margin-left: 0.1em;
            margin-right: 0.1em;
        }

        /* Widget-Styles */
        #schedule-widgets {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
            justify-content: center;
            align-items: stretch;
        }

        .schedule-widget {
            min-width: 220px;
            max-width: 320px;
            flex: 1 1 220px;
            background: #181a1b;
            border-radius: 1.5rem;
            box-shadow: 0 4px 24px #2563eb22;
            padding: 1.5rem 1.2rem 1.2rem 1.2rem;
            margin-bottom: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            border: 2px solid #2563eb;
            transition: transform 0.18s, box-shadow 0.18s;
        }

        .schedule-widget.opacity-60 {
            opacity: 0.5;
        }

        .schedule-widget .sw-header {
            display: flex;
            align-items: center;
            gap: 0.5em;
            margin-bottom: 1em;
        }

        .schedule-widget .sw-day {
            font-size: 1.3rem;
            font-weight: bold;
            color: #2563eb;
        }

        .schedule-widget .sw-stream {
            background: #232326;
            border-radius: 0.7em;
            padding: 0.7em 1em;
            margin-bottom: 0.7em;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .schedule-widget .sw-time {
            width: 100%;
            text-align: center;
            font-weight: 600;
            color: #fff;
            font-size: .9rem;
        }

        .schedule-widget .sw-format {
            color: #2563eb;
            font-size: 1.1rem;
        }

        .schedule-widget .sw-nostream {
            color: #2563eb99;
            font-style: italic;
            padding: 1.5em 0;
            width: 100%;
            text-align: center;
        }

        @media (max-width: 900px) {
            .flip-card {
                width: 3.2rem;
                height: 4.2rem;
            }

            .flip-card-front,
            .flip-card-back {
                font-size: 2.2rem;
            }

            .countdown-flip-outer {
                min-height: 4.5rem;
            }

            #schedule-widgets {
                flex-direction: column;
                gap: 1.2rem;
            }

            .schedule-widget {
                max-width: 100%;
                min-width: 0;
                width: 100%;
            }
        }

        /* mediathek */
        .masonry-item {
            box-shadow: 0 2px 8px #2563eb11 !important;
        }

        .masonry-item:hover {
            box-shadow: 0 4px 16px #2563eb22 !important;
        }

        #media-more-btn {
            box-shadow: 0 2px 8px #2563eb33;
            transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
        }

        #media-more-btn:hover,
        #media-more-btn:focus {
            background: #1e3a8a;
            color: #2563eb;
            box-shadow: 0 4px 16px #1e3a8a55;
            transform: scale(1.08) rotate(-2deg);
        }

        #media-more-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s;
        }

        #media-more-btn.expanded #media-more-icon {
            transform: rotate(180deg);
        }

        /* FAQs */
        .faq-card {
            box-shadow: 0 2px 8px #2563eb11;
            transition: box-shadow 0.2s, transform 0.2s;
        }

        .faq-card:hover,
        .faq-card.active {
            box-shadow: 0 4px 16px #2563eb22;
            transform: scale(1.03) rotate(-1deg);
        }

        .faq-card .faq-q {
            cursor: pointer;
            user-select: none;
        }

        .faq-card .faq-a {
            transition: max-height 0.4s cubic-bezier(.7, .1, .3, .9), opacity 0.3s, margin-top 0.3s;
        }

        .faq-card.active .faq-a {
            margin-top: 0.5em;
        }

        body {
            font-family: 'Roboto', Arial, sans-serif;
            background: linear-gradient(120deg, #e0e7ff 0%, #f3f4f6 100%);
            color: #222;
            margin: 0;
        }

        .login-box {
            background: #fff;
            padding: 2.5em 2em;
            border-radius: 1.2em;
            box-shadow: 0 4px 32px #2563eb22;
            width: 340px;
        }

        input {
            width: 100%;
            padding: 0.7em;
            margin-bottom: 1em;
            border-radius: 0.5em;
            border: 1px solid #d1d5db;
            background: #f9fafb;
            color: #222;
            transition: border 0.2s;
        }

        input:focus {
            border: 1.5px solid #2563eb;
            outline: none;
        }

        button,
        .btn-primary {
            background: linear-gradient(90deg, #2563eb, #1e3a8a);
            color: #fff;
            font-weight: 700;
            font-size: 1.1em;
            border: none;
            border-radius: 0.5em;
            padding: 0.7em 1.5em;
            cursor: pointer;
            transition: background 0.2s, box-shadow 0.15s;
        }

        button:hover,
        .btn-primary:hover {
            background: linear-gradient(90deg, #1e3a8a, #2563eb);
        }

        .error {
            color: #ff5555;
            margin-bottom: 1em;
        }

        .crm-layout {
            display: flex;
            min-height: 100vh;
        }

        .sidebar {
            width: 230px;
            background: #232946;
            color: #fff;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            padding: 2em 0 1em 0;
            box-shadow: 2px 0 16px #23294622;
            position: relative;
            z-index: 2;
        }

        .sidebar .logo {
            font-size: 1.5em;
            font-weight: 700;
            letter-spacing: -1px;
            text-align: center;
            margin-bottom: 2.5em;
            color: #fff;
        }

        .sidebar-nav {
            display: flex;
            flex-direction: column;
            gap: 0.5em;
        }

        .sidebar-nav a {
            display: flex;
            align-items: center;
            gap: 1em;
            color: #b8c1ec;
            text-decoration: none;
            font-size: 1.08em;
            padding: 0.8em 2em 0.8em 2.2em;
            border-radius: 0 2em 2em 0;
            position: relative;
            transition: background 0.18s, color 0.18s;
            overflow: hidden;
        }

        .sidebar-nav a::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 0.3em;
            background: #2563eb;
            opacity: 0;
            transition: opacity 0.18s;
            border-radius: 0 0.5em 0.5em 0;
        }

        .sidebar-nav a.active,
        .sidebar-nav a:hover {
            background: #e0e7ff;
            color: #232946;
        }

        .sidebar-nav a.active::before,
        .sidebar-nav a:hover::before {
            opacity: 1;
        }

        .sidebar-nav a.active {
            font-weight: 600;
        }

        .sidebar-nav a .fa {
            width: 22px;
            text-align: center;
        }

        .sidebar .logout {
            margin-top: auto;
            margin-left: 0;
            background: #f87171;
            color: #fff;
            border-radius: 0 2em 2em 0;
            padding: 0.8em 2em 0.8em 2.2em;
            font-weight: 600;
            text-align: left;
            border: none;
            cursor: pointer;
            transition: background 0.18s;
            display: flex;
            align-items: center;
            gap: 1em;
            text-decoration: none;
        }

        .sidebar .logout:hover {
            background: #c53030;
        }

        .main {
            flex: 1;
            display: flex;
            flex-direction: column;
            min-width: 0;
        }

        .crm-header {
            background: #f8fafc;
            padding: 0.7em 1.5em;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 1px 6px #2563eb11;
            border-bottom: 1px solid #e0e7ff;
            min-height: 56px;
        }

        .crm-header .page-title {
            font-size: 1.2em;
            font-weight: 700;
            letter-spacing: -1px;
        }

        .crm-header .user-info {
            display: flex;
            align-items: center;
            gap: 1em;
        }

        .crm-header .user-avatar {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: #e0e7ff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2em;
            color: #2563eb;
            font-weight: 700;
        }

        .container {
            max-width: 1200px;
            margin: 2.5em auto;
            background: #fff;
            border-radius: 1.2em;
            box-shadow: 0 4px 32px #2563eb22;
            padding: 2.5em 2em;
            min-height: 600px;
        }

        .tab-content {
            margin-top: 2em;
            min-height: 350px;
            position: relative;
        }

        .tab {
            display: none;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .tab.active {
            display: block;
            opacity: 1;
            animation: fadeIn 0.4s;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: none;
            }
        }

        .tab-loader {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            width: 44px;
            height: 44px;
            border: 4px solid #e0e7ff;
            border-top: 4px solid #2563eb;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            z-index: 10;
            display: none;
        }

        @keyframes spin {
            100% {
                transform: rotate(360deg);
            }
        }

        .crm-widgets {
            display: flex;
            gap: 2em;
            margin-bottom: 2.5em;
            flex-wrap: wrap;
        }

        .crm-widget {
            flex: 1 1 220px;
            background: #e0e7ff;
            border-radius: 1em;
            box-shadow: 0 2px 8px #2563eb22;
            padding: 1.5em 1.2em;
            display: flex;
            align-items: center;
            gap: 1.2em;
            min-width: 220px;
            cursor: pointer;
            transition: box-shadow 0.2s, transform 0.2s;
            position: relative;
        }

        .crm-widget:hover {
            box-shadow: 0 6px 24px #2563eb33;
            transform: translateY(-4px) scale(1.03);
        }

        .crm-widget .fa {
            font-size: 2.2em;
            color: #2563eb;
            background: #fff;
            border-radius: 0.7em;
            padding: 0.3em 0.5em;
            box-shadow: 0 1px 4px #2563eb11;
        }

        .crm-widget .widget-info {
            display: flex;
            flex-direction: column;
        }

        .crm-widget .widget-value {
            font-size: 2em;
            font-weight: 700;
        }

        .crm-widget .widget-label {
            color: #444;
            font-size: 1.05em;
        }

        .crm-tabs {
            display: flex;
            gap: 1.5em;
            margin-bottom: 1.5em;
            border-bottom: 2px solid #e0e7ff;
        }

        .crm-tabs button {
            background: none;
            border: none;
            color: #222;
            font-size: 1.1em;
            font-weight: 500;
            cursor: pointer;
            padding: 0.7em 1.5em 0.7em 1.5em;
            border-bottom: 3px solid transparent;
            border-radius: 0.5em 0.5em 0 0;
            transition: color 0.2s, border 0.2s, background 0.2s;
            position: relative;
        }

        .crm-tabs button.active {
            color: #2563eb;
            border-bottom: 3px solid #2563eb;
            background: #e0e7ff;
        }

        .dashboard-container {
            max-width: 900px;
            margin: 0 auto 2em auto;
            background: #fff;
            border-radius: 1.2em;
            box-shadow: 0 8px 32px #6366f133, 0 1.5px 6px #6366f111;
            padding: 2.5em 2em 2em 2em;
        }

        h1 {
            margin-bottom: 1.5em;
            color: #3730a3;
            letter-spacing: 0.01em;
            font-size: 2.2em;
            text-align: center;
        }

        .success-message {
            background: #d1fae5;
            color: #065f46;
            padding: 0.9em 1.2em;
            border-radius: 0.7em;
            margin-bottom: 1.5em;
            font-size: 1.08em;
            box-shadow: 0 1px 4px #10b98122;
        }

        table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0 0.7em;
            margin-bottom: 2em;
        }

        th,
        td {
            padding: 1em 1.2em;
        }

        th {
            background: #6366f1;
            color: #fff;
            border-radius: 0.7em 0.7em 0 0;
            font-size: 1.08em;
            letter-spacing: 0.02em;
        }

        tr {
            background: #f8fafc;
            border-radius: 0.7em;
            box-shadow: 0 1px 4px #6366f122;
            transition: box-shadow 0.18s, background 0.18s;
        }

        tr:hover {
            background: #e0e7ff;
            box-shadow: 0 2px 12px #6366f133;
        }

        td:first-child {
            font-weight: 500;
            color: #3730a3;
        }

        .actions {
            display: flex;
            gap: 0.5em;
        }

        .icon-btn {
            background: none;
            border: none;
            padding: 0.3em 0.5em;
            border-radius: 0.4em;
            cursor: pointer;
            transition: background 0.15s, box-shadow 0.15s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .icon-btn.edit {
            color: #2563eb;
        }

        .icon-btn.delete {
            color: #f87171;
        }

        .icon-btn:hover {
            background: #e0e7ff;
            box-shadow: 0 1px 4px #6366f122;
        }

        .btn-primary {
            background: linear-gradient(90deg, #6366f1 60%, #2563eb 100%);
            color: #fff;
            border: none;
            border-radius: 0.7em;
            padding: 0.8em 2em;
            font-weight: 600;
            font-size: 1.08em;
            cursor: pointer;
            box-shadow: 0 2px 8px #6366f122;
            transition: background 0.15s, box-shadow 0.15s;
        }

        .btn-primary:hover {
            background: linear-gradient(90deg, #4f46e5 60%, #1d4ed8 100%);
            box-shadow: 0 4px 16px #6366f133;
        }

        .btn-secondary {
            background: #e5e7eb;
            color: #222;
            border: none;
            border-radius: 0.5em;
            padding: 0.6em 1.5em;
            font-weight: 500;
            cursor: pointer;
        }

        .modal-backdrop {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: #0005;
            z-index: 1000;
            display: none;
            align-items: center;
            justify-content: center;
        }

        .modal-backdrop.active {
            display: flex;
        }

        .modal {
            background: #fff;
            border-radius: 1.2em;
            padding: 2.2em 2em 1.7em 2em;
            min-width: 320px;
            max-width: 95vw;
            box-shadow: 0 8px 32px #6366f133, 0 1.5px 6px #6366f111;
            position: relative;
            animation: modalIn 0.22s cubic-bezier(.4, 1.4, .6, 1) both;
        }

        @keyframes modalIn {
            from {
                opacity: 0;
                transform: translateY(40px) scale(0.98);
            }

            to {
                opacity: 1;
                transform: none;
            }
        }

        .modal h3 {
            margin-top: 0;
            color: #3730a3;
            font-size: 1.3em;
            margin-bottom: 1em;
        }

        .modal form {
            display: flex;
            flex-direction: column;
            gap: 1em;
        }

        .modal input[type="text"] {
            padding: 0.7em 1em;
            border-radius: 0.5em;
            border: 1px solid #d1d5db;
            background: #f4f6fb;
            font-size: 1.05em;
        }

        .modal .modal-actions {
            display: flex;
            gap: 1em;
            margin-top: 1em;
        }

        .modal .close-btn {
            position: absolute;
            top: 1em;
            right: 1em;
            background: none;
            border: none;
            font-size: 1.7em;
            color: #888;
            cursor: pointer;
            transition: color 0.15s;
        }

        .modal .close-btn:hover {
            color: #6366f1;
        }

        @media (max-width: 1100px) {
            .container {
                padding: 1em;
            }

            .crm-widgets {
                gap: 1em;
            }
        }

        @media (max-width: 900px) {
            .crm-widgets {
                flex-direction: column;
                gap: 1em;
            }

            .sidebar {
                width: 60px;
            }

            .sidebar .logo,
            .sidebar-nav a span,
            .sidebar .logout span {
                display: none;
            }

            .sidebar-nav a,
            .sidebar .logout {
                justify-content: center;
                padding: 0.8em 0;
            }
        }

        @media (max-width: 700px) {
            .container {
                padding: 0.5em;
            }

            .crm-header {
                padding: 1em 1em;
            }

            .dashboard-container {
                padding: 1em 0.5em;
            }

            table,
            th,
            td {
                font-size: 0.97em;
            }

            .modal {
                padding: 1em;
            }
        }

        @media (max-width: 480px) {
            .container {
                padding: 0.3em 0.1em;
            }

            .dashboard-container {
                padding: 0.3em 0.1em;
            }

            th,
            td {
                padding: 0.6em 0.5em;
            }
        }