/* ============================================
   Cyberdine Systems - Custom Styles
   UIkit 3 Override + Custom Components
   ============================================ */

:root {
    --cs-primary: #0066cc;
    --cs-primary-dark: #004d99;
    --cs-primary-light: #e6f0ff;
    --cs-secondary: #1a1a2e;
    --cs-accent: #00c9a7;
    --cs-dark: #0f0f23;
    --cs-gray-100: #f8f9fa;
    --cs-gray-200: #e9ecef;
    --cs-gray-300: #dee2e6;
    --cs-gray-600: #6c757d;
    --cs-gray-800: #343a40;
    --cs-white: #ffffff;
    --cs-gradient: linear-gradient(135deg, var(--cs-primary) 0%, var(--cs-accent) 100%);
    --cs-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --cs-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --cs-radius: 12px;
    --cs-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--cs-gray-800);
    overflow-x: hidden;
}

/* ============================================
   Navbar
   ============================================ */
.uk-sticky-placeholder {
    height: 0 !important;
}

.cs-navbar {
    padding: 10px 0;
    transition: var(--cs-transition);
    z-index: 1000;
    background: transparent !important;
    backdrop-filter: none;
}

.uk-navbar-container.cs-navbar {
    display: block;
}

.cs-navbar > .uk-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.cs-navbar > .uk-container > .uk-navbar-left,
.cs-navbar > .uk-container > .uk-navbar-right {
    display: flex;
    align-items: center;
    min-width: 0;
}

.cs-navbar > .uk-container > .uk-navbar-left {
    flex: 1 1 auto;
}

.cs-navbar > .uk-container > .uk-navbar-right {
    flex: 0 0 auto;
}

.cs-navbar-sticky {
    background: rgba(15, 15, 35, 0.45) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 15px rgba(0, 0, 0, 0.1);
}

.cs-logo {
    display: flex;
    align-items: center;
    line-height: 1;
    text-decoration: none !important;
    margin-right: 20px;
}

.cs-logo-img {
    height: 45px;
    width: auto;
    transition: var(--cs-transition);
}

.cs-navbar-sticky .cs-logo-img {
    height: 45px;
}

.cs-footer-logo {
    max-width: 150px;
    height: auto;
}

.cs-admin-logo {
    max-width: 140px;
    height: auto;
}

/* Navbar links - always light on dark navbar */
.cs-navbar .uk-navbar-nav > li > a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7) !important;
    text-transform: none;
    letter-spacing: 0;
    transition: var(--cs-transition);
    position: relative;
}

.cs-navbar .uk-navbar-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--cs-gradient);
    transition: var(--cs-transition);
    transform: translateX(-50%);
}

.cs-navbar .uk-navbar-nav > li:hover > a::after,
.cs-navbar .uk-navbar-nav > li.uk-active > a::after {
    width: 60%;
}

.cs-navbar .uk-navbar-nav > li:hover > a {
    color: var(--cs-white) !important;
}

.cs-navbar .uk-navbar-nav > li.uk-active > a {
    color: var(--cs-white) !important;
}

.cs-navbar .uk-navbar-toggle {
    color: var(--cs-white) !important;
}

/* ============================================
   Hero Section
   ============================================ */
.cs-hero {
    min-height: 90vh;
    background: linear-gradient(135deg, rgba(15,15,35,0.75) 0%, rgba(26,26,46,0.7) 50%, rgba(22,33,62,0.75) 100%),
                url('/assets/img/hero/home.jpg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.cs-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(0, 102, 204, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cs-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(0, 201, 167, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cs-hero-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 201, 167, 0.15);
    border: 1px solid rgba(0, 201, 167, 0.3);
    border-radius: 50px;
    color: var(--cs-accent);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.cs-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--cs-white);
    line-height: 1.15;
    margin-bottom: 20px;
}

.cs-gradient-text {
    background: var(--cs-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cs-hero-text {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    max-width: 500px;
}

.cs-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(0, 102, 204, 0.3);
}

.cs-server-illustration {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.1) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 102, 204, 0.15);
}

/* ============================================
   Buttons
   ============================================ */
.cs-button-primary {
    background: var(--cs-gradient) !important;
    color: var(--cs-white) !important;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--cs-transition);
    text-transform: none;
    letter-spacing: 0;
}

.cs-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.35);
    color: var(--cs-white) !important;
}

.cs-button-outline {
    background: transparent !important;
    color: var(--cs-primary) !important;
    border: 2px solid var(--cs-primary) !important;
    border-radius: 8px;
    padding: 10px 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--cs-transition);
    text-transform: none;
    letter-spacing: 0;
}

.cs-hero .cs-button-outline {
    color: var(--cs-white) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.cs-button-outline:hover {
    background: var(--cs-primary) !important;
    color: var(--cs-white) !important;
    transform: translateY(-2px);
}

/* ============================================
   Stats Section
   ============================================ */
.cs-stats-section {
    background: var(--cs-white);
    padding: 60px 0;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.cs-stat-card {
    padding: 30px 20px;
    border-radius: var(--cs-radius);
    background: var(--cs-white);
    box-shadow: var(--cs-shadow);
    transition: var(--cs-transition);
}

.cs-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--cs-shadow-lg);
}

.cs-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--cs-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.cs-stat-label {
    font-size: 0.9rem;
    color: var(--cs-gray-600);
    margin-top: 5px;
    font-weight: 500;
}

/* ============================================
   Sections
   ============================================ */
.cs-section {
    padding: 80px 0;
}

.cs-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--cs-secondary);
    margin-bottom: 10px;
}

.cs-section-subtitle {
    font-size: 1.1rem;
    color: var(--cs-gray-600);
}

.cs-dark-section {
    background: var(--cs-dark);
    padding: 80px 0;
}

.cs-dark-section h2,
.cs-dark-section h4,
.cs-white {
    color: var(--cs-white) !important;
}

.cs-dark-section p {
    color: rgba(255, 255, 255, 0.7);
}

.cs-light-section {
    background: var(--cs-gray-100);
    padding: 60px 0;
}

/* ============================================
   Service Cards
   ============================================ */
.cs-service-card {
    border-radius: var(--cs-radius);
    border: 1px solid var(--cs-gray-200);
    transition: var(--cs-transition);
    text-align: center;
    padding: 40px 30px;
}

.cs-service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--cs-shadow-lg);
    border-color: transparent;
}

.cs-service-icon {
    color: var(--cs-primary);
    margin-bottom: 20px;
}

.cs-service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.cs-card-link {
    color: var(--cs-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--cs-transition);
}

.cs-card-link:hover {
    color: var(--cs-primary-dark);
}

/* ============================================
   Strengths
   ============================================ */
.cs-strength-card {
    text-align: center;
    padding: 30px 20px;
}

.cs-strength-icon {
    color: var(--cs-accent);
    margin-bottom: 15px;
}

/* ============================================
   Pricing Cards
   ============================================ */
.cs-pricing-card {
    background: var(--cs-white);
    border-radius: var(--cs-radius);
    border: 1px solid var(--cs-gray-200);
    padding: 0;
    transition: var(--cs-transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cs-pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--cs-shadow-lg);
}

.cs-pricing-featured {
    border-color: var(--cs-primary);
    box-shadow: 0 4px 30px rgba(0, 102, 204, 0.15);
}

.cs-pricing-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--cs-gradient);
    color: var(--cs-white);
    padding: 5px 40px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    transform: rotate(45deg);
    letter-spacing: 1px;
}

.cs-pricing-header {
    padding: 30px 25px 20px;
    text-align: center;
    border-bottom: 1px solid var(--cs-gray-200);
}

.cs-pricing-icon {
    margin-bottom: 12px;
}

.cs-pricing-icon img {
    width: 64px;
    height: 64px;
}

.cs-pricing-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--cs-secondary);
    margin-bottom: 15px;
}

.cs-pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.cs-pricing-currency {
    font-size: 1rem;
    font-weight: 500;
    color: var(--cs-gray-600);
}

.cs-pricing-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cs-secondary);
    line-height: 1;
}

.cs-pricing-period {
    font-size: 0.9rem;
    color: var(--cs-gray-600);
}

.cs-pricing-body {
    padding: 25px;
    flex: 1;
}

.cs-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cs-pricing-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--cs-gray-800);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cs-pricing-features li span[uk-icon] {
    color: var(--cs-accent);
    flex-shrink: 0;
}

.cs-pricing-footer {
    padding: 0 25px 25px;
}

/* ============================================
   News Cards
   ============================================ */
.cs-news-card {
    border-radius: var(--cs-radius);
    overflow: hidden;
    transition: var(--cs-transition);
    height: 100%;
}

.cs-news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--cs-shadow-lg);
}

.cs-news-card .uk-card-title {
    font-size: 1.15rem;
    font-weight: 600;
}

/* ============================================
   Page Header
   ============================================ */
.cs-page-header {
    background: linear-gradient(135deg, rgba(15,15,35,0.8) 0%, rgba(26,26,46,0.75) 100%),
                var(--hero-bg, none) center/cover no-repeat;
    padding: 140px 0 70px;
    text-align: center;
    position: relative;
}

.cs-page-header--webhosting { --hero-bg: url('/assets/img/hero/webhosting.jpg'); }
.cs-page-header--server { --hero-bg: url('/assets/img/hero/server.jpg'); }
.cs-page-header--webdesign { --hero-bg: url('/assets/img/hero/webdesign.jpg'); }
.cs-page-header--company { --hero-bg: url('/assets/img/hero/company.jpg'); }
.cs-page-header--news { --hero-bg: url('/assets/img/hero/news.jpg'); }
.cs-page-header--contact { --hero-bg: url('/assets/img/hero/contact.jpg'); }
.cs-page-header--order { --hero-bg: url('/assets/img/hero/order.jpg'); }
.cs-page-header--legal { --hero-bg: url('/assets/img/hero/legal.jpg'); }

.cs-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cs-white);
    margin-bottom: 10px;
}

.cs-page-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   CTA Section
   ============================================ */
.cs-cta-section {
    background: var(--cs-gradient);
    padding: 80px 0;
}

.cs-cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--cs-white);
    margin-bottom: 15px;
}

.cs-cta-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 30px;
}

.cs-cta-section .cs-button-primary {
    background: var(--cs-white) !important;
    color: var(--cs-primary) !important;
}

.cs-cta-section .cs-button-primary:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Feature Icons
   ============================================ */
.cs-feature-icon {
    color: var(--cs-primary);
}

/* ============================================
   Green Section
   ============================================ */
.cs-green-section {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: var(--cs-radius);
}

.cs-green-icon {
    color: #2e7d32;
}

/* ============================================
   Article Content
   ============================================ */
.cs-article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--cs-gray-800);
}

/* ============================================
   Order Form
   ============================================ */
.cs-order-summary {
    border-left: 4px solid var(--cs-primary);
}

.cs-order-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--cs-primary);
}

.cs-order-success {
    padding: 60px 30px;
}

.cs-order-success .uk-text-success {
    color: var(--cs-accent) !important;
}

.uk-fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.uk-legend {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cs-secondary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--cs-gray-200);
}

/* ============================================
   Footer
   ============================================ */
.cs-footer {
    background: var(--cs-dark);
    padding: 60px 0 30px;
    color: rgba(255, 255, 255, 0.7);
}

.cs-footer-title {
    color: var(--cs-white) !important;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cs-footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.cs-footer-nav li a {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.9rem;
    transition: var(--cs-transition);
    padding: 4px 0;
}

.cs-footer-nav li a:hover {
    color: var(--cs-white) !important;
}

.cs-footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.cs-footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* ============================================
   Forms
   ============================================ */
.uk-input, .uk-textarea, .uk-select {
    border-radius: 8px;
    border-color: var(--cs-gray-300);
    transition: var(--cs-transition);
}

.uk-input:focus, .uk-textarea:focus, .uk-select:focus {
    border-color: var(--cs-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* ============================================
   Cards Override
   ============================================ */
.uk-card-default {
    border-radius: var(--cs-radius);
    border: 1px solid var(--cs-gray-200);
    box-shadow: none;
    transition: var(--cs-transition);
}

.uk-card-hover:hover {
    box-shadow: var(--cs-shadow-lg);
    transform: translateY(-3px);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 959px) {
    .cs-hero {
        min-height: 70vh;
    }

    .cs-hero-title {
        font-size: 2rem;
    }

    .cs-stats-section {
        margin-top: 0;
    }

    .cs-page-header {
        padding: 110px 0 50px;
    }

    .cs-page-title {
        font-size: 2rem;
    }
}

@media (max-width: 639px) {
    .cs-hero {
        min-height: 60vh;
    }

    .cs-hero-title {
        font-size: 1.75rem;
    }

    .cs-section-title {
        font-size: 1.6rem;
    }

    .cs-pricing-amount {
        font-size: 2rem;
    }
}

/* ============================================
   Media Manager
   ============================================ */
.media-dropzone {
    position: relative;
    border: 2px dashed var(--cs-gray-300);
    border-radius: var(--cs-radius);
    padding: 2rem;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
}

.media-dropzone.dragover {
    border-color: var(--cs-primary);
    background: var(--cs-primary-light);
}

.media-dropzone-icon {
    color: var(--cs-gray-300);
    display: block;
    margin-bottom: 0.5rem;
}

.media-dropzone.dragover .media-dropzone-icon {
    color: var(--cs-primary);
}

.media-dropzone-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--cs-gray-800);
    margin: 0 0 0.25rem;
}

.media-dropzone-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0;
}

.media-card {
    border: 1px solid var(--cs-gray-200);
    border-radius: var(--cs-radius);
    overflow: hidden;
    transition: var(--cs-transition);
    background: var(--cs-white);
}

.media-card:hover {
    box-shadow: var(--cs-shadow);
}

.media-card-preview {
    position: relative;
    aspect-ratio: 1;
    background: repeating-conic-gradient(#f0f0f0 0% 25%, #fff 0% 50%) 50% / 16px 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-card-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.media-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.media-card:hover .media-card-overlay {
    opacity: 1;
}

.media-card-action {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: var(--cs-gray-800);
    border: none;
    cursor: pointer;
    transition: var(--cs-transition);
    text-decoration: none;
    padding: 0;
}

.media-card-action:hover {
    background: var(--cs-white);
    color: var(--cs-primary);
    transform: scale(1.1);
}

.media-card-action--delete:hover {
    color: #dc2626;
}

.media-card-info {
    padding: 8px 10px;
}

.media-card-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--cs-gray-800);
}

/* Media Picker Modal */
.media-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.media-picker-item {
    aspect-ratio: 1;
    border: 2px solid var(--cs-gray-200);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--cs-transition);
    background: repeating-conic-gradient(#f0f0f0 0% 25%, #fff 0% 50%) 50% / 12px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-picker-item:hover {
    border-color: var(--cs-primary);
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

.media-picker-item.selected {
    border-color: var(--cs-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.3);
}

.media-picker-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ============================================
   Admin Styles
   ============================================ */
.cs-admin-sidebar {
    background: var(--cs-secondary);
    min-height: 100vh;
    padding: 30px 20px;
    position: sticky;
    top: 0;
    align-self: flex-start;
    max-height: 100vh;
    overflow-y: auto;
}

.cs-admin-sidebar .uk-nav li a {
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 15px;
    border-radius: 8px;
    transition: var(--cs-transition);
}

.cs-admin-sidebar .uk-nav li a:hover,
.cs-admin-sidebar .uk-nav li.uk-active a {
    color: var(--cs-white);
    background: rgba(255, 255, 255, 0.1);
}

.cs-admin-header {
    background: var(--cs-white);
    padding: 15px 30px;
    border-bottom: 1px solid var(--cs-gray-200);
}

.cs-admin-content {
    padding: 30px;
    background: var(--cs-gray-100);
    min-height: calc(100vh - 60px);
}

.cs-admin-card {
    background: var(--cs-white);
    border-radius: var(--cs-radius);
    padding: 25px;
    box-shadow: var(--cs-shadow);
}

.cs-admin-stat {
    text-align: center;
    padding: 25px;
    border-radius: var(--cs-radius);
    background: var(--cs-white);
    box-shadow: var(--cs-shadow);
}

.cs-admin-stat h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--cs-primary);
    margin-bottom: 5px;
}

.cs-admin-stat p {
    color: var(--cs-gray-600);
    font-size: 0.85rem;
    margin: 0;
}

/* ============================================
   Dark Mode
   ============================================ */
:root {
    --cs-bg: #ffffff;
    --cs-bg-alt: var(--cs-gray-100);
    --cs-text: var(--cs-gray-800);
    --cs-text-muted: var(--cs-gray-600);
    --cs-border: var(--cs-gray-200);
    --cs-card-bg: #ffffff;
}

[data-theme="dark"] {
    --cs-bg: #0f0f23;
    --cs-bg-alt: #16162a;
    --cs-text: #e9ecef;
    --cs-text-muted: #adb5bd;
    --cs-border: #2a2a45;
    --cs-card-bg: #16162a;
    --cs-primary-light: #1a2a4a;
    --cs-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --cs-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] body {
    background: var(--cs-bg);
    color: var(--cs-text);
}

[data-theme="dark"] .uk-section-default,
[data-theme="dark"] .uk-section-muted,
[data-theme="dark"] .uk-card-default {
    background: var(--cs-bg) !important;
    color: var(--cs-text);
}

[data-theme="dark"] .uk-section-muted,
[data-theme="dark"] .uk-card-secondary {
    background: var(--cs-bg-alt) !important;
}

[data-theme="dark"] .uk-card-default {
    background: var(--cs-card-bg) !important;
    border: 1px solid var(--cs-border);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--cs-text);
}

[data-theme="dark"] p,
[data-theme="dark"] li,
[data-theme="dark"] td {
    color: var(--cs-text);
}

[data-theme="dark"] .uk-text-meta,
[data-theme="dark"] .uk-text-muted {
    color: var(--cs-text-muted) !important;
}

[data-theme="dark"] .cs-navbar,
[data-theme="dark"] .uk-navbar-container {
    background: var(--cs-bg-alt) !important;
    border-bottom: 1px solid var(--cs-border);
}

[data-theme="dark"] .uk-navbar-nav > li > a {
    color: var(--cs-text);
}

[data-theme="dark"] .uk-input,
[data-theme="dark"] .uk-select,
[data-theme="dark"] .uk-textarea {
    background: var(--cs-bg-alt);
    color: var(--cs-text);
    border-color: var(--cs-border);
}

[data-theme="dark"] .uk-input::placeholder,
[data-theme="dark"] .uk-textarea::placeholder {
    color: var(--cs-text-muted);
}

[data-theme="dark"] .uk-offcanvas-bar {
    background: var(--cs-bg-alt);
}

[data-theme="dark"] a {
    color: var(--cs-accent);
}

[data-theme="dark"] .cs-stats-section,
[data-theme="dark"] .cs-section,
[data-theme="dark"] .cs-light-section {
    background: var(--cs-bg) !important;
}

[data-theme="dark"] .cs-stat-card,
[data-theme="dark"] .cs-pricing-card,
[data-theme="dark"] .cs-service-card,
[data-theme="dark"] .cs-strength-card,
[data-theme="dark"] .cs-news-card,
[data-theme="dark"] .cs-order-summary {
    background: var(--cs-card-bg) !important;
    border: 1px solid var(--cs-border);
    color: var(--cs-text);
}

[data-theme="dark"] .cs-stat-label,
[data-theme="dark"] .cs-section-subtitle,
[data-theme="dark"] .cs-pricing-period,
[data-theme="dark"] .cs-pricing-features,
[data-theme="dark"] .cs-strength-card p,
[data-theme="dark"] .cs-service-card p {
    color: var(--cs-text-muted) !important;
}

[data-theme="dark"] .cs-section-title,
[data-theme="dark"] .cs-pricing-name,
[data-theme="dark"] .cs-pricing-amount {
    color: var(--cs-text) !important;
}

[data-theme="dark"] .cs-pricing-featured {
    background: linear-gradient(135deg, #1a2a4a 0%, #16162a 100%) !important;
    border-color: var(--cs-primary);
}

[data-theme="dark"] .cs-page-header {
    background: var(--cs-bg-alt) !important;
}

[data-theme="dark"] .cs-card-link {
    color: var(--cs-accent);
}

[data-theme="dark"] hr,
[data-theme="dark"] .uk-divider-icon,
[data-theme="dark"] .cs-footer-divider {
    border-color: var(--cs-border);
}

[data-theme="dark"] .uk-button-default {
    background: var(--cs-bg-alt);
    color: var(--cs-text);
    border-color: var(--cs-border);
}

/* ============================================
   Timeline / Meilensteine
   ============================================ */
.cs-timeline-wrapper {
    position: relative;
    padding: 60px 0 20px;
}

.cs-timeline-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0, 102, 204, 0.06), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(0, 201, 167, 0.06), transparent 45%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .cs-timeline-wrapper::before {
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0, 102, 204, 0.12), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(0, 201, 167, 0.10), transparent 45%);
}

.cs-timeline {
    list-style: none;
    position: relative;
    padding: 40px 0;
    margin: 40px auto 0;
    max-width: 1000px;
    counter-reset: milestone;
    z-index: 1;
}

/* Zentrale Linie */
.cs-timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--cs-primary) 8%,
        var(--cs-accent) 92%,
        transparent 100%
    );
    z-index: 0;
}

.cs-timeline-item {
    position: relative;
    width: 50%;
    padding: 0 50px 60px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.cs-timeline-item.cs-timeline-reveal {
    opacity: 1;
    transform: translateY(0);
}

.cs-timeline-item.cs-timeline--left {
    margin-right: 50%;
    text-align: right;
}

.cs-timeline-item.cs-timeline--right {
    margin-left: 50%;
    text-align: left;
}

.cs-timeline-item.cs-timeline--left .cs-timeline-card {
    border-right: 3px solid var(--cs-primary);
}

.cs-timeline-item.cs-timeline--right .cs-timeline-card {
    border-left: 3px solid var(--cs-accent);
}

/* Knoten */
.cs-timeline-node {
    position: absolute;
    top: 28px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--cs-white);
    border: 3px solid var(--cs-primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.12), 0 4px 14px rgba(0, 102, 204, 0.3);
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.cs-timeline--left .cs-timeline-node {
    right: -11px;
}

.cs-timeline--right .cs-timeline-node {
    left: -11px;
    border-color: var(--cs-accent);
    box-shadow: 0 0 0 4px rgba(0, 201, 167, 0.12), 0 4px 14px rgba(0, 201, 167, 0.3);
}

.cs-timeline-item:hover .cs-timeline-node {
    transform: scale(1.25);
    background: var(--cs-primary);
    box-shadow: 0 0 0 6px rgba(0, 102, 204, 0.18), 0 8px 24px rgba(0, 102, 204, 0.45);
}

.cs-timeline--right:hover .cs-timeline-node {
    background: var(--cs-accent);
    box-shadow: 0 0 0 6px rgba(0, 201, 167, 0.18), 0 8px 24px rgba(0, 201, 167, 0.45);
}

/* Card */
.cs-timeline-card {
    position: relative;
    background: var(--cs-card-bg, #fff);
    padding: 22px 26px 26px;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(15, 15, 35, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cs-timeline-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(15, 15, 35, 0.14);
}

[data-theme="dark"] .cs-timeline-card {
    background: var(--cs-card-bg);
    border-top: 1px solid var(--cs-border);
    border-bottom: 1px solid var(--cs-border);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .cs-timeline-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.cs-timeline-year {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 5px 14px;
    border-radius: 999px;
    color: #fff;
    background: var(--cs-gradient);
    margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
}

.cs-timeline-heading {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--cs-secondary);
}

[data-theme="dark"] .cs-timeline-heading {
    color: var(--cs-text);
}

.cs-timeline-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--cs-gray-600);
}

[data-theme="dark"] .cs-timeline-text {
    color: var(--cs-text-muted);
}

.cs-timeline-text code {
    background: var(--cs-primary-light);
    color: var(--cs-primary);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

[data-theme="dark"] .cs-timeline-text code {
    background: rgba(0, 102, 204, 0.18);
    color: #6aa5ff;
}

/* Mobile: alle Items rechts der Linie */
@media (max-width: 768px) {
    .cs-timeline {
        max-width: none;
    }

    .cs-timeline::before {
        left: 18px;
        transform: none;
    }

    .cs-timeline-item,
    .cs-timeline-item.cs-timeline--left,
    .cs-timeline-item.cs-timeline--right {
        width: 100%;
        margin: 0;
        padding: 0 0 36px 50px;
        text-align: left;
    }

    .cs-timeline-item.cs-timeline--left .cs-timeline-card,
    .cs-timeline-item.cs-timeline--right .cs-timeline-card {
        border-right: none;
        border-left: 3px solid var(--cs-primary);
    }

    .cs-timeline--left .cs-timeline-node,
    .cs-timeline--right .cs-timeline-node {
        left: 7px;
        right: auto;
        border-color: var(--cs-primary);
        box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.12), 0 4px 14px rgba(0, 102, 204, 0.3);
    }
}

.cs-theme-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--cs-transition);
    padding: 0;
    flex-shrink: 0;
}

.cs-theme-toggle:hover {
    border-color: var(--cs-accent);
    color: var(--cs-accent);
}

.cs-theme-toggle svg {
    display: block;
}

.cs-theme-toggle .cs-theme-icon-dark { display: none; }
.cs-theme-toggle .cs-theme-icon-light { display: block; }
[data-theme="dark"] .cs-theme-toggle .cs-theme-icon-dark { display: block; }
[data-theme="dark"] .cs-theme-toggle .cs-theme-icon-light { display: none; }
