/* ============================================
   FoxiCloud V8 - Modernes News-Portal Design
   ROT als Primärfarbe + Darkmode
   + Backend-Styles
   + Helpdesk-Fix (alle Geräte)
   + Ads-Styles
   + Widgets automatisch auf ALLEN Endgeräten
   ============================================ */

:root {
    --primary: #c2410c;
    --primary-dark: #9a3412;
    --primary-light: #fb923c;
    --secondary: #9a3412;
    --accent: #eab308;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    --bg-gradient-start: #7c2d12;
    --bg-gradient-end: #1c1917;
    --card-bg: #ffffff;
    --text-primary: #1c1917;
    --text-secondary: #44403c;
    --text-muted: #78716c;
    --nav-bg: rgba(255, 255, 255, 0.97);
    --border-color: #e7e5e4;
    --input-bg: #ffffff;
    --input-border: #e7e5e4;
    --table-bg: #ffffff;
    --table-header-bg: #fafaf9;
    --table-border: #e7e5e4;
    --table-hover-bg: #fafaf9;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-color-hover: rgba(194, 65, 12, 0.2);
    --stats-card-bg: #ffffff;
    --progress-bg: #e7e5e4;
    --news-category-bg: #c2410c;
    --news-card-bg: #ffffff;
    --news-meta-bg: #fafaf9;
    --news-border: #e7e5e4;

    /* ============================================
       FLUID LAYOUT – passt sich automatisch an
       ALLE Endgeräte und Browser-Breiten an
       ============================================ */
    --body-max-width: clamp(320px, 88vw, 1400px);
    --widgets-col-width: clamp(200px, 22vw, 320px);
    --widgets-col-gap: clamp(8px, 1.5vw, 24px);
}

[data-theme="dark"] {
    --bg-gradient-start: #431407;
    --bg-gradient-end: #0c0a09;
    --card-bg: #1c1917;
    --text-primary: #fafaf9;
    --text-secondary: #e7e5e4;
    --text-muted: #a8a29e;
    --nav-bg: rgba(28, 25, 23, 0.96);
    --border-color: #292524;
    --input-bg: #292524;
    --input-border: #44403c;
    --table-bg: #1c1917;
    --table-header-bg: #292524;
    --table-border: #44403c;
    --table-hover-bg: #292524;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --shadow-color-hover: rgba(251, 146, 60, 0.25);
    --stats-card-bg: #1c1917;
    --progress-bg: #292524;
    --news-category-bg: #9a3412;
    --news-card-bg: #1c1917;
    --news-meta-bg: #292524;
    --news-border: #44403c;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    color: var(--text-primary);
    padding-top: 80px;
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(circle at 15% 25%, rgba(251, 146, 60, 0.15) 0%, transparent 35%),
        radial-gradient(circle at 85% 75%, rgba(234, 179, 8, 0.1) 0%, transparent 35%);
    pointer-events: none;
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

body.backend-body { padding-top: 0; }

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

.login-box {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 50px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 25px 70px var(--shadow-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.main-container {
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: 0 25px 70px var(--shadow-color);
    overflow: hidden;
    margin: 20px 0 30px 0;
    width: 100%;
    max-width: var(--body-max-width);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.main-container:hover {
    box-shadow: 0 30px 80px var(--shadow-color-hover);
}

.backend-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

.navbar-main {
    background: var(--nav-bg) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px var(--shadow-color);
    padding: 12px 0;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1030;
    border-bottom: 2px solid rgba(194, 65, 12, 0.15);
    transition: all 0.3s ease;
}

body.backend-body .navbar-main {
    position: relative;
    top: auto;
}

.navbar-brand {
    font-weight: 900;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 5px 0;
    position: relative;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.navbar-brand i {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 10px;
}

.nav-link {
    font-weight: 600;
    padding: 12px 20px !important;
    border-radius: 10px;
    margin: 0 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary) !important;
    position: relative;
    font-size: 0.95rem;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    border-radius: 50%;
    background: rgba(194, 65, 12, 0.08);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.nav-link:hover::before { width: 200px; height: 200px; }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after { width: 70%; }

.nav-link.active {
    color: var(--primary) !important;
    background: rgba(194, 65, 12, 0.08);
}

.nav-icon {
    width: 24px; height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.1rem;
}

.dark-mode-toggle {
    width: 45px; height: 45px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    margin-left: 15px;
    position: relative;
    overflow: hidden;
}

.dark-mode-toggle::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    border-radius: 50%;
    background: var(--primary);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.dark-mode-toggle:hover {
    transform: rotate(180deg) scale(1.1);
    border-color: var(--primary);
    color: white;
}

.dark-mode-toggle:hover::before { width: 100px; height: 100px; }

.hero-section {
    background: linear-gradient(135deg, rgba(124, 45, 18, 0.97), rgba(194, 65, 12, 0.95));
    color: white;
    padding: 90px 0;
    border-radius: 0 0 40px 40px;
    position: relative;
    overflow: hidden;
    margin-top: -20px;
    margin-bottom: 20px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.08" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    animation: wave 10s linear infinite;
}

@keyframes wave {
    0% { transform: translateX(0); }
    50% { transform: translateX(-5%); }
    100% { transform: translateX(0); }
}

.hero-section h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
    font-weight: 900;
    letter-spacing: -1px;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
}

[data-theme="dark"] .glass-effect {
    background: rgba(28, 25, 23, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 35px 25px;
    box-shadow: 0 10px 35px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px var(--shadow-color-hover);
    border-color: var(--primary);
}

.feature-card:hover::before { transform: translateX(0); }

.feature-card::after {
    content: '';
    position: absolute;
    bottom: -50px; right: -50px;
    width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(194, 65, 12, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.5s ease;
}

.feature-card:hover::after { transform: scale(2); opacity: 0; }

.feature-card-highlight {
    border: 2px solid var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(194, 65, 12, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(194, 65, 12, 0); }
    100% { box-shadow: 0 0 0 0 rgba(194, 65, 12, 0); }
}

.feature-icon {
    width: 90px; height: 90px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 15px 30px rgba(194, 65, 12, 0.3);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 20px 40px rgba(194, 65, 12, 0.4);
}

.stats-card {
    background: var(--stats-card-bg);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 35px var(--shadow-color);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
}

.stats-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px var(--shadow-color-hover);
    border-color: var(--primary);
}

.stats-number {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.stats-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 15px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.stats-card:hover .stats-icon {
    transform: scale(1.2) rotate(5deg);
    opacity: 1;
}

.calculator-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 45px;
    box-shadow: 0 25px 50px var(--shadow-color);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.calculator-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(194, 65, 12, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.calculator-card:hover::before {
    opacity: 1;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.btn-foxi {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(194, 65, 12, 0.35);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-foxi::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-foxi:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(194, 65, 12, 0.5);
    color: white;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.btn-foxi:hover::before { width: 300px; height: 300px; }

.btn-foxi:active { transform: translateY(-2px) scale(1.02); }

.form-control, .form-select {
    background-color: var(--input-bg);
    border: 2px solid var(--input-border);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background-color: var(--input-bg);
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.15);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-label {
    color: var(--text-primary);
}

.form-check-label {
    color: var(--text-primary);
}

.input-group-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 12px 0 0 12px;
    padding: 14px 20px;
}

.progress {
    height: 15px;
    border-radius: 10px;
    background-color: var(--progress-bg);
    overflow: hidden;
    box-shadow: inset 0 1px 3px var(--shadow-color);
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 100%);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer { 100% { transform: translateX(100%); } }

.table-custom {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--table-border);
    background: var(--table-bg);
    color: var(--text-primary);
}

.table-custom thead th {
    background: var(--table-header-bg);
    border-bottom: 2px solid var(--table-border);
    padding: 18px;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.table-custom tbody td {
    padding: 18px;
    border-bottom: 1px solid var(--table-border);
    vertical-align: middle;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.table-custom tbody tr:last-child td { border-bottom: none; }
.table-custom tbody tr { transition: all 0.3s ease; }

.table-custom tbody tr:hover {
    background: var(--table-hover-bg);
    transform: scale(1.01);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.table {
    color: var(--text-primary);
}

.table thead th {
    color: var(--text-primary);
    border-color: var(--table-border);
    background: var(--table-header-bg);
}

.table td {
    color: var(--text-primary);
    border-color: var(--table-border);
}

.table-hover > tbody > tr:hover > * {
    background-color: var(--table-hover-bg);
    color: var(--text-primary);
}

.cookie-consent {
    position: fixed;
    bottom: 30px;
    left: 30px;
    right: 30px;
    max-width: 500px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookie-content {
    display: flex;
    align-items: center;
    padding: 25px;
    gap: 20px;
    color: var(--text-primary);
}

.cookie-icon {
    font-size: 3rem;
    color: var(--primary);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cookie-text { flex: 1; }
.cookie-text h5 { margin-bottom: 5px; color: var(--text-primary); }
.cookie-text p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

.cookie-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.announcement-banner {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 15px 35px rgba(194, 65, 12, 0.35);
    position: relative;
    overflow: hidden;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.announcement-icon {
    font-size: 2.5rem;
    animation: ring 2s infinite;
}

@keyframes ring {
    0% { transform: rotate(0); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-15deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(-10deg); }
    50%, 100% { transform: rotate(0); }
}

.announcement-text {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 500;
}

.btn-close-white {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-close-white:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.announcement-item-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.announcement-item-card:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 20px var(--shadow-color-hover);
}

.news-card {
    background: var(--news-card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px var(--shadow-color);
    border: 1px solid var(--news-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow-color-hover);
    border-color: var(--primary);
}

.news-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.news-image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--news-card-bg), transparent);
}

.news-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.news-category {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 5px 15px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 10px rgba(194, 65, 12, 0.35);
}

.news-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.news-excerpt {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

.news-list-item {
    background: var(--news-card-bg);
    border: 1px solid var(--news-border);
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.news-list-item:hover {
    transform: translateX(5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px var(--shadow-color-hover);
}

.news-list-image {
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin-right: 20px;
}

@media (max-width: 768px) {
    .news-list-image {
        margin-right: 0;
        margin-bottom: 15px;
        height: 120px;
    }
}

.news-list-meta { margin-bottom: 10px; }

.news-list-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.news-list-title a {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.news-list-title a:hover {
    color: var(--primary);
    text-decoration: underline !important;
}

.news-list-excerpt {
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-detail-image {
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.news-detail-image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--card-bg), transparent);
}

.news-detail-meta {
    background: var(--news-meta-bg);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--news-border);
}

.news-detail-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

@media (max-width: 768px) {
    .news-detail-title { font-size: 1.8rem; }
    .news-detail-image { height: 250px; }
}

.news-detail-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.news-detail-content p { margin-bottom: 25px; }

.news-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.news-category-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-right: 10px;
    margin-bottom: 10px;
    background: var(--border-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-category-badge:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(194, 65, 12, 0.35);
}

.news-category-badge.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.empty-state {
    text-align: center;
    padding: 80px 30px;
    color: var(--text-muted);
    background: var(--card-bg);
    border-radius: 20px;
    border: 3px dashed var(--border-color);
    transition: all 0.3s ease;
}

.empty-state:hover {
    border-color: var(--primary);
    background: rgba(194, 65, 12, 0.03);
}

.empty-state i {
    font-size: 5rem;
    margin-bottom: 25px;
    color: var(--text-muted);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.empty-state:hover i {
    transform: scale(1.1) rotate(5deg);
    color: var(--primary);
    opacity: 1;
}

.floating-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 15px 40px rgba(194, 65, 12, 0.45);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.floating-widget:hover {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 20px 60px rgba(194, 65, 12, 0.65);
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-color: rgba(255, 255, 255, 0.4);
}

.badge-foxi {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(194, 65, 12, 0.25);
    transition: all 0.3s ease;
}

.badge-foxi:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(194, 65, 12, 0.35);
}

.section-title {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 40px;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
    border-radius: 2px;
    animation: widthPulse 3s infinite;
}

@keyframes widthPulse {
    0%, 100% { width: 80px; }
    50% { width: 130px; }
}

.comment-form-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-primary);
}

.comment-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    color: var(--text-primary);
}

.comment-item:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 20px var(--shadow-color-hover);
    transform: translateX(3px);
}

.comment-avatar {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(194, 65, 12, 0.3);
}

.comment-author {
    color: var(--text-primary);
    font-size: 1rem;
    display: block;
}

.comment-text {
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 58px;
    word-wrap: break-word;
    white-space: pre-wrap;
}

@media (max-width: 576px) {
    .comment-text { padding-left: 0; }
    .comment-avatar { width: 38px; height: 38px; font-size: 1rem; }
}

.nav-pills .nav-link {
    color: var(--text-primary) !important;
    border-radius: 10px;
    margin: 3px;
    padding: 10px 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    background: transparent;
}

.nav-pills .nav-link:hover {
    background: rgba(194, 65, 12, 0.08);
    border-color: var(--primary);
    transform: translateY(-2px);
    color: var(--primary) !important;
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: white !important;
    box-shadow: 0 5px 15px rgba(194, 65, 12, 0.35);
}

.tooltip-custom {
    position: fixed;
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    box-shadow: 0 10px 25px var(--shadow-color);
    z-index: 9999;
    pointer-events: none;
    border: 1px solid var(--border-color);
    animation: fadeInTooltip 0.2s ease;
}

@keyframes fadeInTooltip {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.online-stats-card {
    position: relative;
    border: 2px solid var(--success);
}

.online-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    margin-left: 6px;
    animation: onlinePulse 1.5s infinite;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}

@keyframes onlinePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.online-icon-pulse {
    animation: iconPulse 2s infinite;
    color: var(--success) !important;
    -webkit-text-fill-color: var(--success) !important;
}

@keyframes iconPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.share-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.share-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
}

.share-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-title i {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.4rem;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 140px;
    height: 48px;
    padding: 0 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.3px;
    white-space: nowrap;
    box-sizing: border-box;
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
    pointer-events: none;
}

.share-btn:hover::before { width: 300px; height: 300px; }

.share-btn:hover {
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.share-btn:active { transform: translateY(-1px); }
.share-btn > i { font-size: 1.05rem; flex-shrink: 0; }
.share-btn > span { display: inline-block; }

.share-btn-x { background: linear-gradient(135deg, #000000, #1a1a1a); }
.share-btn-x:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); }
.share-btn-facebook { background: linear-gradient(135deg, #1877f2, #0c5dc7); }
.share-btn-facebook:hover { box-shadow: 0 12px 30px rgba(24, 119, 242, 0.4); }
.share-btn-whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); }
.share-btn-whatsapp:hover { box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4); }
.share-btn-telegram { background: linear-gradient(135deg, #0088cc, #006699); }
.share-btn-telegram:hover { box-shadow: 0 12px 30px rgba(0, 136, 204, 0.4); }
.share-btn-linkedin { background: linear-gradient(135deg, #0a66c2, #004182); }
.share-btn-linkedin:hover { box-shadow: 0 12px 30px rgba(10, 102, 194, 0.4); }
.share-btn-email { background: linear-gradient(135deg, #ea4335, #c5221f); }
.share-btn-email:hover { box-shadow: 0 12px 30px rgba(234, 67, 53, 0.4); }
.share-btn-copy { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.share-btn-copy:hover { box-shadow: 0 12px 30px rgba(194, 65, 12, 0.4); }
.share-btn-native { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.share-btn-native:hover { box-shadow: 0 12px 30px rgba(139, 92, 246, 0.4); }
.share-btn.copied { background: linear-gradient(135deg, #10b981, #059669) !important; }

.icon-picker-wrapper { position: relative; }

.icon-picker-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border: 2px solid var(--input-border);
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
}

.icon-picker-toggle:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.1);
}

.icon-picker-toggle .icon-preview {
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 8px;
    font-size: 1rem;
}

.icon-picker-toggle .icon-name {
    flex: 1;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.icon-picker-toggle .chevron {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.icon-picker-toggle.open .chevron { transform: rotate(180deg); }

.icon-picker-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 20px 50px var(--shadow-color);
    z-index: 1050;
    max-height: 420px;
    overflow: hidden;
    animation: slideDown 0.25s ease;
}

.icon-picker-dropdown.open {
    display: flex;
    flex-direction: column;
}

.icon-picker-search {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg);
}

.icon-picker-search input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-primary);
    outline: none;
}

.icon-picker-search input:focus { border-color: var(--primary); }

.icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    gap: 6px;
    padding: 12px;
    overflow-y: auto;
    flex: 1;
}

.icon-picker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 4px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    color: var(--text-primary);
    font-size: 1.3rem;
    position: relative;
}

.icon-picker-item span {
    font-size: 0.55rem;
    margin-top: 4px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    font-family: monospace;
}

.icon-picker-item:hover {
    background: rgba(194, 65, 12, 0.08);
    border-color: var(--primary);
    transform: scale(1.1);
}

.icon-picker-item.selected {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(194, 65, 12, 0.35);
}

.icon-picker-item.selected span { color: rgba(255,255,255,0.8); }

.icon-picker-footer {
    padding: 10px 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--card-bg);
}

.icon-picker-empty {
    padding: 30px;
    text-align: center;
    color: var(--text-muted);
}

.stat-dashboard-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
}

.stat-dashboard-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.stat-dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px var(--shadow-color-hover);
    border-color: var(--primary);
}

.stat-dashboard-icon {
    width: 60px; height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    margin-bottom: 15px;
    box-shadow: 0 8px 20px rgba(194, 65, 12, 0.3);
}

.stat-dashboard-value {
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.stat-dashboard-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.stat-dashboard-sub {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px;
}

.custom-page-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.footer-custom {
    border-radius: 16px;
    padding: 25px;
    margin-top: 20px;
    color: var(--text-primary);
}

.footer-custom.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-custom.solid {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.footer-custom.gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.footer-custom.gradient a { color: white; }

.ad-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ad-box-popup {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 35px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    border: 2px solid var(--primary);
    position: relative;
    animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    color: var(--text-primary);
}

@keyframes popIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.ad-popup-overlay .ad-close,
.ad-sticky-bottom .ad-close {
    position: absolute;
    top: 12px; right: 12px;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--danger);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.ad-popup-overlay .ad-close:hover,
.ad-sticky-bottom .ad-close:hover {
    transform: rotate(90deg) scale(1.1);
}

.ad-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.ad-title {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ad-content {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.ad-image {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
}

.ad-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 280px;
    object-fit: cover;
}

.ad-cta {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white !important;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(194, 65, 12,0.35);
}

.ad-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(194, 65, 12,0.5);
    color: white !important;
}

.ad-box-inline {
    background: linear-gradient(135deg, rgba(194, 65, 12,0.08), rgba(234, 179, 8,0.05));
    border: 2px dashed var(--primary);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    color: var(--text-primary);
}

.ad-box-inline .ad-title { font-size: 1.3rem; }

.ad-box-topbanner,
.ad-box-bottombanner,
.ad-box-belowheader,
.ad-box-abovefooter {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 12px;
    padding: 15px 25px;
    margin-bottom: 20px;
}

.ad-box-topbanner .ad-inner,
.ad-box-bottombanner .ad-inner,
.ad-box-belowheader .ad-inner,
.ad-box-abovefooter .ad-inner {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.ad-box-topbanner .ad-title,
.ad-box-bottombanner .ad-title,
.ad-box-belowheader .ad-title,
.ad-box-abovefooter .ad-title {
    color: white !important;
    -webkit-text-fill-color: white !important;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.ad-box-topbanner .ad-content,
.ad-box-bottombanner .ad-content,
.ad-box-belowheader .ad-content,
.ad-box-abovefooter .ad-content {
    color: rgba(255,255,255,0.9) !important;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.ad-box-topbanner .ad-label,
.ad-box-bottombanner .ad-label,
.ad-box-belowheader .ad-label,
.ad-box-abovefooter .ad-label {
    color: rgba(255,255,255,0.7) !important;
    margin-bottom: 0;
}

.ad-box-topbanner .ad-cta,
.ad-box-bottombanner .ad-cta,
.ad-box-belowheader .ad-cta,
.ad-box-abovefooter .ad-cta {
    background: white;
    color: var(--primary) !important;
    padding: 8px 20px;
    font-size: 0.85rem;
}

.ad-box-sidebar {
    background: linear-gradient(135deg, rgba(194, 65, 12,0.08), rgba(234, 179, 8,0.05));
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-primary);
}

.ad-box-sidebar .ad-title { font-size: 1.2rem; }
.ad-box-sidebar .ad-content { font-size: 0.9rem; }
.ad-box-sidebar .ad-image img { max-height: 200px; }

.ad-box-homepagemiddle {
    background: linear-gradient(135deg, rgba(194, 65, 12,0.1), rgba(234, 179, 8,0.08));
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
    color: var(--text-primary);
}

.ad-box-newsdetail {
    background: linear-gradient(135deg, rgba(234, 179, 8,0.08), rgba(217,119,6,0.05));
    border: 2px dashed var(--accent);
    border-radius: 16px;
    padding: 25px;
    margin: 25px 0;
    text-align: center;
    color: var(--text-primary);
}

.ad-sticky-bottom {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9997;
    background: var(--card-bg);
    border-top: 3px solid var(--primary);
    padding: 15px 20px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
    animation: slideUpSticky 0.4s ease;
}

@keyframes slideUpSticky {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.ad-sticky-bottom .ad-inner {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.ad-sticky-bottom .ad-title {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.ad-sticky-bottom .ad-content {
    font-size: 0.9rem;
    margin-bottom: 0;
    flex: 1;
}

.ad-sticky-bottom .ad-label { margin-bottom: 0; }

.ad-sticky-bottom .ad-close {
    position: absolute;
    top: 50%; right: 15px;
    transform: translateY(-50%);
    width: 32px; height: 32px;
    font-size: 0.9rem;
}

body.has-sticky-ad { padding-bottom: 100px; }

/* ============================================
   LAYOUT MIT WIDGETS – AUTOMATISCHE ANPASSUNG
   AUF ALLEN ENDGERÄTEN
   ============================================ */

.page-with-left-widgets {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    padding: 0 clamp(8px, 2vw, 20px);
    gap: clamp(8px, 1.5vw, 24px);
    box-sizing: border-box;
}

.page-with-left-widgets .main-body-container {
    width: 100%;
    max-width: var(--body-max-width);
    min-width: 0;
    margin: 0 auto;
    flex: 1 1 auto;
}

.left-widgets-column {
    display: none;
    flex: 0 0 var(--widgets-col-width);
    width: var(--widgets-col-width);
    min-width: 0;
    pointer-events: none;
    z-index: 5;
}

.left-widgets-column .left-widgets-inner {
    pointer-events: auto;
    width: 100%;
}

@media (min-width: 1280px) {
    .left-widgets-column {
        display: block;
    }
    .ad-zone-sidebar-mobile {
        display: none !important;
    }
}

@media (max-width: 1279px) {
    .page-with-left-widgets {
        flex-direction: column;
        align-items: stretch;
    }
    .left-widgets-column {
        display: none;
    }
    .ad-zone-sidebar-mobile {
        display: block;
    }
}

@media (max-width: 767.98px) {
    .page-with-left-widgets {
        padding: 0 8px;
        gap: 0;
    }
    .page-with-left-widgets .main-body-container {
        max-width: 100%;
    }
    .ad-zone-sidebar-mobile {
        display: block;
    }
}

/* ============================================
   HELPDESK
   ============================================ */
.helpdesk-fab {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: 3px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 12px 35px rgba(16,185,129,0.4);
    z-index: 10100;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    pointer-events: auto;
}

.helpdesk-fab:hover {
    transform: scale(1.12) rotate(-8deg);
    box-shadow: 0 16px 45px rgba(16,185,129,0.6);
}

.helpdesk-fab:active { transform: scale(0.95); }

.helpdesk-fab-offline {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    box-shadow: 0 12px 35px rgba(239,68,68,0.4);
}
.helpdesk-fab-offline:hover {
    box-shadow: 0 16px 45px rgba(239,68,68,0.6);
}
.helpdesk-offline-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #c2410c;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #ef4444;
}

.hd-status-line {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
}
.hd-status-online { color: #d1fae5; }
.hd-status-offline { color: #fecaca; }
.hd-status-online i, .hd-status-offline i { font-size: 0.6rem; }

.helpdesk-panel-offline .helpdesk-header {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.helpdesk-offline-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 25px;
    background: var(--table-header-bg);
    color: var(--text-primary);
}
.helpdesk-offline-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    box-shadow: 0 12px 30px rgba(239,68,68,0.35);
}
.helpdesk-offline-title {
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.helpdesk-offline-text {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 8px;
    max-width: 300px;
}

.helpdesk-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 22px; height: 22px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid white;
    pointer-events: none;
}

.helpdesk-panel {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 560px;
    max-height: calc(100vh - 60px);
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.35);
    z-index: 10200;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid var(--primary);
    color: var(--text-primary);
}

.helpdesk-panel.open {
    display: flex;
    animation: slideUp 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.helpdesk-header {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.helpdesk-header .hd-icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.helpdesk-header .hd-title { flex: 1; }
.helpdesk-header .hd-title strong { display: block; font-size: 1.05rem; }
.helpdesk-header .hd-title small { opacity: 0.85; font-size: 0.78rem; }

.helpdesk-header .hd-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 34px; height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.helpdesk-header .hd-close:hover {
    background: rgba(255,255,255,0.35);
    transform: rotate(90deg);
}

.helpdesk-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    background: var(--table-header-bg);
    -webkit-overflow-scrolling: touch;
}

.helpdesk-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hd-msg {
    max-width: 82%;
    padding: 11px 15px;
    border-radius: 16px;
    font-size: 0.92rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.hd-msg.visitor {
    align-self: flex-end;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-bottom-right-radius: 4px;
}

.hd-msg.admin {
    align-self: flex-start;
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}

.hd-msg-time {
    font-size: 0.68rem;
    opacity: 0.7;
    margin-top: 4px;
    display: block;
}

.helpdesk-form {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    background: var(--card-bg);
    flex-shrink: 0;
}

.helpdesk-form textarea {
    resize: none;
    border-radius: 12px;
    font-size: 16px;
}

.helpdesk-form .form-control { padding: 10px 14px; }
.helpdesk-form .btn { border-radius: 12px; }

.hd-status-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}

.hd-status-open { background: #fef3c7; color: #92400e; }
.hd-status-answered { background: #d1fae5; color: #065f46; }
.hd-status-closed { background: #e5e7eb; color: #374151; }

.helpdesk-intro {
    text-align: center;
    padding: 10px 5px;
}

.helpdesk-intro i {
    font-size: 2.5rem;
    color: #10b981;
    margin-bottom: 10px;
}

.helpdesk-intro p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.helpdesk-intro h6 { color: var(--text-primary); }

.helpdesk-disabled-notice {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    border-radius: 12px;
    padding: 15px;
    color: var(--danger);
    text-align: center;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .helpdesk-fab {
        bottom: 90px;
        right: 15px;
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        z-index: 10100;
    }
    .helpdesk-panel {
        bottom: 0;
        right: 0;
        left: 0;
        top: 0;
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
        border: none;
        z-index: 10200;
    }
    .helpdesk-header {
        padding: 15px;
        padding-top: max(15px, env(safe-area-inset-top));
        flex-shrink: 0;
    }
    .helpdesk-header .hd-close {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
    .helpdesk-body {
        padding: 12px;
        -webkit-overflow-scrolling: touch;
    }
    .helpdesk-form {
        padding: 10px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }
    .helpdesk-form textarea { font-size: 16px !important; }
    .helpdesk-form .btn {
        min-width: 48px;
        min-height: 48px;
    }
    .hd-msg {
        max-width: 88%;
        font-size: 0.92rem;
    }
    .helpdesk-offline-body { padding: 25px 20px; }
}

@media (max-width: 380px) {
    .helpdesk-panel {
        width: 100vw;
        height: 100dvh;
    }
    .hd-msg { max-width: 95%; }
}

@media (max-width: 768px) {
    .ad-sticky-bottom { padding: 10px 45px 10px 15px; }
    .ad-sticky-bottom .ad-title { font-size: 0.95rem; }
    .ad-sticky-bottom .ad-content { font-size: 0.8rem; }
    .ad-sticky-bottom .ad-image { display: none; }
    body.has-sticky-ad { padding-bottom: 80px; }
}

.mail-log-item {
    background: var(--table-header-bg);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-left: 4px solid var(--primary);
    color: var(--text-primary);
}

.mail-log-item.error { border-left-color: var(--danger); }
.mail-log-item.success { border-left-color: var(--success); }

.editor-wrapper {
    border-radius: 12px;
    overflow: visible;
    border: 2px solid var(--input-border);
    transition: border-color 0.3s ease;
    background: var(--card-bg);
    position: relative;
}

.editor-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.12);
}

.ql-toolbar.ql-snow {
    border: none;
    border-bottom: 2px solid var(--border-color);
    background: var(--table-header-bg);
    padding: 12px;
    border-radius: 10px 10px 0 0;
}

.ql-container.ql-snow {
    border: none;
    font-size: 1rem;
    min-height: 300px;
    font-family: 'Inter', sans-serif;
    background: var(--card-bg);
    color: var(--text-primary);
    border-radius: 0 0 10px 10px;
}

.ql-editor {
    min-height: 300px;
    line-height: 1.7;
    color: var(--text-primary);
    white-space: normal;
    word-wrap: break-word;
}

.ql-editor.ql-blank::before {
    color: var(--text-muted);
    font-style: italic;
}

.ql-snow .ql-stroke { stroke: var(--text-primary); }
.ql-snow .ql-fill { fill: var(--text-primary); }
.ql-snow .ql-picker { color: var(--text-primary); }

.ql-snow .ql-picker-options {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.ql-snow .ql-tooltip {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.ql-snow .ql-tooltip input[type=text] {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 6px;
}

.ql-snow .ql-tooltip a.ql-action,
.ql-snow .ql-tooltip a.ql-remove {
    color: var(--primary);
}

.emoji-panel {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 15px 40px var(--shadow-color);
    z-index: 1000;
    width: 320px;
    max-height: 350px;
    overflow-y: auto;
}

.emoji-panel.open { display: block; animation: slideDown 0.2s ease; }

.emoji-panel .emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
}

.emoji-panel .emoji-grid button {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    padding: 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
}

.emoji-panel .emoji-grid button:hover {
    background: rgba(194, 65, 12, 0.12);
    transform: scale(1.3);
}

.editor-toolbar-extra {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 15px;
    background: var(--table-header-bg);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    border-radius: 10px 10px 0 0;
}

.editor-toolbar-extra button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.editor-toolbar-extra button:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(194, 65, 12, 0.3);
}

.editor-toolbar-extra button i { font-size: 1rem; }

.image-upload-progress {
    display: none;
    margin-top: 8px;
    height: 6px;
    background: var(--progress-bg);
    border-radius: 3px;
    overflow: hidden;
}

.image-upload-progress.active { display: block; }

.image-upload-progress .bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.ql-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.ql-editor blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 15px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.ql-editor h1, .ql-editor h2, .ql-editor h3 {
    color: var(--text-primary);
    margin-top: 20px;
    margin-bottom: 10px;
}

.ql-editor a {
    color: var(--primary);
    text-decoration: underline;
}

.ql-editor pre {
    background: var(--table-header-bg);
    border-radius: 8px;
    padding: 15px;
    color: var(--text-primary);
}

[data-theme="dark"] .card {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .card-header {
    border-color: var(--border-color);
}

[data-theme="dark"] .alert {
    color: var(--text-primary);
}

[data-theme="dark"] .alert-info {
    background: rgba(194, 65, 12, 0.12);
    border-color: var(--primary);
    color: var(--text-primary);
}

[data-theme="dark"] .alert-success {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--success);
    color: var(--text-primary);
}

[data-theme="dark"] .alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--danger);
    color: var(--text-primary);
}

[data-theme="dark"] .alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--warning);
    color: var(--text-primary);
}

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

[data-theme="dark"] .list-group-item {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .modal-content {
    background: var(--card-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .dropdown-menu {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-primary);
}

[data-theme="dark"] .dropdown-item:hover {
    background: var(--table-header-bg);
    color: var(--text-primary);
}

@media (max-width: 768px) {
    body { padding-top: 70px; }
    body.backend-body { padding-top: 0; }
    .navbar-brand { font-size: 1.4rem; }
    .nav-link { padding: 10px 15px !important; }
    .hero-section { padding: 50px 0; }
    .hero-section h1 { font-size: 2rem; }
    .calculator-card { padding: 25px; }
    .stats-number { font-size: 2.2rem; }
    .cookie-consent {
        left: 15px;
        right: 15px;
        max-width: none;
    }
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .announcement-content {
        flex-direction: column;
        text-align: center;
    }
    .floating-widget {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
    .news-detail-meta .badge-foxi {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    .share-btn {
        min-width: 120px;
        height: 44px;
        padding: 0 16px;
        font-size: 0.82rem;
    }
    .share-btn > i { font-size: 0.95rem; }
    .share-section { padding: 20px; }
    .emoji-panel { width: 280px; }
    .editor-toolbar-extra button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    .backend-container { padding: 10px; }
}

@media (max-width: 576px) {
    .stats-card { padding: 20px; }
    .stats-number { font-size: 2rem; }
    .feature-card { padding: 25px 15px; }
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    .table-custom { font-size: 0.85rem; }
    .table-custom th,
    .table-custom td { padding: 12px; }
    .news-list-item { padding: 15px !important; }
    .news-list-title { font-size: 1.2rem; }
    .calculator-card { padding: 20px; }
    .stat-dashboard-card { padding: 18px; }
    .stat-dashboard-value { font-size: 2rem; }
}

::-webkit-scrollbar { width: 10px; }

::-webkit-scrollbar-track {
    background: var(--card-bg);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 6px;
    border: 3px solid var(--card-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

::selection {
    background: var(--primary);
    color: white;
}

.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

.ad-zone { width: 100%; }

.ad-sticky-bottom .ad-close {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .ad-sticky-bottom { padding: 10px 50px 10px 15px; }
    .ad-sticky-bottom .ad-title { font-size: 0.95rem; }
    .ad-sticky-bottom .ad-content { font-size: 0.8rem; }
    .ad-sticky-bottom .ad-image { display: none; }
    body.has-sticky-ad { padding-bottom: 90px; }
}

body.backend-body {
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    padding-top: 0;
}

body.backend-body .navbar-main {
    position: relative;
    top: auto;
    border-radius: 0 0 16px 16px;
    margin-bottom: 20px;
}

body.backend-body .backend-container {
    max-width: 1600px;
}

body.backend-body .table-responsive {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--table-border);
    background: var(--table-bg);
}

body.backend-body .table > :not(caption) > * > * {
    background: var(--table-bg);
    color: var(--text-primary);
    border-color: var(--table-border);
}

body.backend-body .table > thead > tr > th {
    background: var(--table-header-bg);
    color: var(--text-primary);
    font-weight: 600;
}

body.backend-body .table > tbody > tr:hover > * {
    background: var(--table-hover-bg);
}

body.backend-body .badge.bg-info {
    background: var(--info) !important;
    color: #fff !important;
}

body.backend-body .badge.bg-warning {
    color: #1c1917 !important;
}

[data-theme="dark"] body.backend-body .input-group-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
}

body.backend-body .nav-pills {
    gap: 4px;
}

.admin-header-nav {
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    scrollbar-width: thin;
}

.admin-header-nav .nav-link {
    color: var(--text-primary) !important;
    border-radius: 8px;
    margin: 0;
    padding: 8px 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    background: transparent;
    white-space: nowrap;
}

.admin-header-nav .nav-link:hover {
    background: rgba(194, 65, 12, 0.08);
    border-color: var(--primary);
    color: var(--primary) !important;
}

.admin-header-nav .nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(194, 65, 12, 0.35);
}

.admin-header-nav::-webkit-scrollbar {
    height: 6px;
}

.admin-header-nav::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* ============================================
   WIDGET CARDS (Frontend Sidebar)
   ============================================ */
.widget-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 8px 25px var(--shadow-color);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    overflow: hidden;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.widget-card:hover {
    box-shadow: 0 15px 35px var(--shadow-color-hover);
    border-color: var(--primary);
}

.widget-card-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 14px 18px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.widget-card-body {
    padding: 18px;
}

.widget-calendar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-calendar-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.widget-calendar-item:last-child { border-bottom: none; }

.widget-calendar-date {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    line-height: 1;
}

.widget-calendar-date .wd-day { font-size: 1.2rem; }
.widget-calendar-date .wd-month { font-size: 0.65rem; text-transform: uppercase; }

.widget-cal-color-primary { background: linear-gradient(135deg, #c2410c, #9a3412); }
.widget-cal-color-success { background: linear-gradient(135deg, #10b981, #059669); }
.widget-cal-color-warning { background: linear-gradient(135deg, #f59e0b, #d97706); }
.widget-cal-color-danger { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.widget-cal-color-info { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.widget-cal-color-secondary { background: linear-gradient(135deg, #64748b, #475569); }

.widget-calendar-info { flex: 1; min-width: 0; }
.widget-calendar-title { display: block; font-size: 0.9rem; margin-bottom: 3px; }
.widget-calendar-time { font-size: 0.78rem; color: var(--text-muted); display: block; }
.widget-calendar-loc { font-size: 0.78rem; color: var(--text-muted); display: block; }

.widget-weather-main {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.widget-weather-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.widget-weather-temp {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.widget-weather-condition { font-size: 0.9rem; font-weight: 600; }
.widget-weather-city { font-size: 0.8rem; color: var(--text-muted); }

.widget-weather-details {
    display: flex;
    gap: 15px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.widget-weather-forecast {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.widget-weather-fc-item {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    background: var(--table-header-bg);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.widget-weather-fc-item .fc-day { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); }
.widget-weather-fc-item .fc-temp { font-size: 0.72rem; }

.widget-ad-image { margin-bottom: 12px; border-radius: 10px; overflow: hidden; }
.widget-ad-image img { width: 100%; height: auto; display: block; }
.widget-ad-content { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; }

.widget-news-list { list-style: none; padding: 0; margin: 0; }
.widget-news-list li { padding: 8px 0; border-bottom: 1px solid var(--border-color); }
.widget-news-list li:last-child { border-bottom: none; }
.widget-news-link { color: var(--text-primary); text-decoration: none; font-size: 0.9rem; display: block; transition: color 0.2s; }
.widget-news-link:hover { color: var(--primary); }

.widget-popular-list { padding-left: 20px; margin: 0; }
.widget-popular-list li { padding: 6px 0; font-size: 0.88rem; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.widget-popular-list li a { color: var(--text-primary); text-decoration: none; flex: 1; }
.widget-popular-list li a:hover { color: var(--primary); }
.widget-badge-count { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }

.widget-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.widget-cat-badge { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 6px; background: var(--table-header-bg); color: var(--text-primary); font-size: 0.8rem; text-decoration: none; transition: all 0.25s; }
.widget-cat-badge:hover { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; }
.widget-cat-badge .cat-count { margin-left: 6px; font-size: 0.7rem; opacity: 0.8; }

.widget-comment-item { padding: 8px 0; border-bottom: 1px solid var(--border-color); font-size: 0.85rem; }
.widget-comment-item:last-child { border-bottom: none; }
.widget-comment-head { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; margin-bottom: 3px; }

.widget-online-box { text-align: center; padding: 10px 0; }
.widget-online-number { font-size: 2.4rem; font-weight: 800; background: linear-gradient(135deg, #10b981, #059669); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.widget-online-label { font-size: 0.85rem; color: var(--text-muted); }

.widget-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.widget-stat-item { text-align: center; padding: 10px 6px; background: var(--table-header-bg); border-radius: 10px; }
.widget-stat-num { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.widget-stat-lbl { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }
.widget-stat-icon { font-size: 0.9rem; color: var(--text-muted); margin-top: 4px; }

.widget-announcement-inner { background: linear-gradient(135deg, rgba(194, 65, 12,0.1), rgba(234, 179, 8,0.05)); border-left: 4px solid var(--primary); padding: 10px 12px; border-radius: 8px; font-size: 0.88rem; }

.widget-nav-list { list-style: none; padding: 0; margin: 0; }
.widget-nav-list li { padding: 5px 0; }
.widget-nav-list li a { color: var(--text-primary); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.widget-nav-list li a:hover { color: var(--primary); }

/* ============================================
   RESPONSIVE FEINSCHLIFF FÜR WIDGETS
   ============================================ */
@media (max-width: 1599px) {
    .widget-card-header { font-size: 0.9rem; padding: 12px 15px; }
    .widget-card-body { padding: 15px; }
    .widget-weather-icon { font-size: 2.5rem; }
    .widget-weather-temp { font-size: 1.7rem; }
    .widget-online-number { font-size: 2rem; }
    .widget-stat-num { font-size: 1.2rem; }
}

@media (max-width: 1279px) {
    .widget-card-header { font-size: 0.85rem; padding: 10px 12px; }
    .widget-card-body { padding: 12px; }
    .widget-weather-icon { font-size: 2.2rem; }
    .widget-weather-temp { font-size: 1.5rem; }
    .widget-online-number { font-size: 1.8rem; }
    .widget-calendar-date { width: 42px; height: 42px; }
    .widget-calendar-date .wd-day { font-size: 1rem; }
    .widget-calendar-date .wd-month { font-size: 0.55rem; }
}

@media (max-width: 767px) {
    .widget-card-header { font-size: 0.9rem; padding: 10px 15px; }
    .widget-card-body { padding: 15px; }
    .widget-weather-icon { font-size: 2.5rem; }
    .widget-weather-temp { font-size: 1.8rem; }
    .widget-online-number { font-size: 2rem; }
    .widget-stat-num { font-size: 1.3rem; }
    .widget-stats-grid { gap: 8px; }
    .widget-cat-badge { padding: 4px 10px; font-size: 0.75rem; }
    .widget-calendar-title { font-size: 0.85rem; }
    .widget-news-link { font-size: 0.85rem; }
}

/* ============================================
   CLOUD SYSTEM STYLES
   ============================================ */
.cloud-dashboard { padding: 10px 0; }
.cloud-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}
.cloud-user-avatar {
    width: 45px; height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.cloud-logo-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(194, 65, 12,0.35);
}
.cloud-login-card { max-width: 450px; margin: 0 auto; }
.cloud-file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.cloud-file-item {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 14px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    position: relative;
    transition: all 0.25s ease;
    color: var(--text-primary);
    text-decoration: none;
}
.cloud-file-item:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 25px var(--shadow-color-hover);
    transform: translateY(-4px);
    color: var(--text-primary);
}
.cloud-file-icon { font-size: 2.5rem; color: var(--primary); }
.cloud-folder-item .cloud-file-icon { color: #f59e0b; }
.cloud-file-name {
    font-size: 0.85rem;
    font-weight: 600;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-width: 100%;
}
.cloud-file-size { font-size: 0.72rem; color: var(--text-muted); }
.cloud-file-actions {
    display: flex;
    gap: 4px;
    margin-top: 4px;
    flex-wrap: wrap;
    justify-content: center;
}
.cloud-file-actions .btn-icon {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--table-header-bg);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}
.cloud-file-actions .btn-icon:hover {
    background: var(--primary);
    color: #fff;
}
.cloud-dropzone {
    border: 3px dashed var(--border-color);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    margin: 15px 0;
    transition: all 0.3s ease;
    background: var(--table-header-bg);
    color: var(--text-primary);
}
.cloud-dropzone.dragover {
    border-color: var(--primary);
    background: rgba(194, 65, 12,0.08);
    transform: scale(1.01);
}
.cloud-dropzone > i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 10px;
}
.cloud-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.cloud-empty > i { font-size: 4rem; margin-bottom: 15px; opacity: 0.5; }
.cloud-path-breadcrumb {
    padding: 8px 12px;
    background: var(--table-header-bg);
    border-radius: 10px;
    font-size: 0.85rem;
}
.cloud-path-breadcrumb a { color: var(--text-primary); text-decoration: none; }
.cloud-path-breadcrumb a:hover, .cloud-path-breadcrumb a.active { color: var(--primary); font-weight: 600; }
.cloud-activity-list { display: flex; flex-direction: column; gap: 8px; }
.cloud-activity-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--table-header-bg);
    border-radius: 12px;
    align-items: flex-start;
}
.cloud-activity-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}
.cloud-activity-icon.cloud-act-upload { background: #10b981; }
.cloud-activity-icon.cloud-act-delete, .cloud-activity-icon.cloud-act-delete_permanent { background: #ef4444; }
.cloud-activity-icon.cloud-act-share { background: #8b5cf6; }
.cloud-activity-icon.cloud-act-login, .cloud-activity-icon.cloud-act-logout { background: #c2410c; }
.cloud-activity-content { flex: 1; min-width: 0; }
.cloud-widget-login, .cloud-widget-logged-in { padding: 4px; }
.widget-cloud-login .widget-card-header { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
@media (max-width: 768px) {
    .cloud-file-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
    .cloud-file-item { padding: 10px; }
    .cloud-file-icon { font-size: 2rem; }
}

/* ============================================
   CLOUD SYSTEM STYLES (v2 – kompakt & modern)
   ============================================ */
.cloud-dashboard { padding: 4px 0; }

.cloud-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.cloud-user-info { display: flex; align-items: center; gap: 10px; }
.cloud-user-avatar {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(194, 65, 12,0.25);
}
.cloud-user-avatar-sm { width: 36px; height: 36px; border-radius: 10px; font-size: 0.9rem; }
.cloud-user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.cloud-username { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); }
.cloud-usage { font-size: 0.75rem; color: var(--text-muted); }
.cloud-topbar-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.cloud-page-title { font-size: 1.15rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; color: var(--text-primary); }
.cloud-page-title i { color: var(--primary); }

.cloud-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.18s ease;
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
    color: var(--text-primary);
    background: transparent;
}
.cloud-btn i { font-size: 0.85rem; }
.cloud-btn:hover { transform: translateY(-1px); }
.cloud-btn:active { transform: translateY(0); }

.cloud-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(194, 65, 12,0.25);
}
.cloud-btn-primary:hover { box-shadow: 0 5px 16px rgba(194, 65, 12,0.4); color: #fff !important; }

.cloud-btn-soft {
    background: var(--table-header-bg);
    color: var(--text-primary) !important;
    border-color: var(--border-color);
}
.cloud-btn-soft:hover { background: rgba(194, 65, 12,0.08); border-color: var(--primary); color: var(--primary) !important; }

.cloud-btn-ghost { background: transparent; color: var(--primary) !important; border-color: var(--border-color); }
.cloud-btn-ghost:hover { background: rgba(194, 65, 12,0.08); }

.cloud-btn-danger { background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff !important; box-shadow: 0 3px 10px rgba(239,68,68,0.25); }
.cloud-btn-danger:hover { box-shadow: 0 5px 16px rgba(239,68,68,0.4); color: #fff !important; }

.cloud-btn-danger-soft { background: rgba(239,68,68,0.08); color: #ef4444 !important; border-color: rgba(239,68,68,0.2); }
.cloud-btn-danger-soft:hover { background: rgba(239,68,68,0.15); color: #ef4444 !important; }

.cloud-btn-success-soft { background: rgba(16,185,129,0.08); color: #10b981 !important; border-color: rgba(16,185,129,0.2); }
.cloud-btn-success-soft:hover { background: rgba(16,185,129,0.15); color: #10b981 !important; }

.cloud-btn-primary-soft { background: rgba(194, 65, 12,0.08); color: var(--primary) !important; border-color: rgba(194, 65, 12,0.2); }
.cloud-btn-primary-soft:hover { background: rgba(194, 65, 12,0.15); color: var(--primary) !important; }

.cloud-btn-sm { padding: 7px 12px; font-size: 0.78rem; border-radius: 9px; }
.cloud-btn-xs { padding: 5px 10px; font-size: 0.72rem; border-radius: 8px; }
.cloud-btn-lg { padding: 12px 20px; font-size: 0.92rem; border-radius: 12px; }
.cloud-btn-block { width: 100%; }

.cloud-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px;
    background: rgba(194, 65, 12,0.15);
    color: var(--primary);
    font-size: 0.68rem; font-weight: 700;
    margin-left: 2px;
}

.cloud-storage { margin-bottom: 16px; }
.cloud-storage-bar {
    height: 8px; border-radius: 8px;
    background: var(--progress-bg);
    overflow: hidden;
    margin-bottom: 6px;
}
.cloud-storage-bar-sm { height: 6px; margin: 8px 0 4px; }
.cloud-storage-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 8px;
    transition: width 0.6s ease;
}
.cloud-storage-info {
    display: flex; justify-content: space-between; flex-wrap: wrap;
    gap: 6px;
    font-size: 0.74rem; color: var(--text-muted);
}
.cloud-storage-info i { color: var(--primary); }

.cloud-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 10px;
    margin-bottom: 12px;
}
.cloud-toolbar-group { display: flex; gap: 6px; flex-wrap: wrap; }
.cloud-search { flex: 0 1 240px; min-width: 160px; }
.cloud-search-input {
    position: relative;
    display: flex; align-items: center;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0 10px;
    transition: border-color 0.2s;
}
.cloud-search-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(194, 65, 12,0.1); }
.cloud-search-input > i { color: var(--text-muted); font-size: 0.8rem; }
.cloud-search-input input {
    flex: 1; border: none; background: transparent; outline: none;
    padding: 8px 8px; font-size: 0.82rem; color: var(--text-primary);
    font-family: inherit; min-width: 0;
}
.cloud-search-clear {
    color: var(--text-muted); text-decoration: none; font-size: 0.75rem;
    padding: 4px; border-radius: 50%; transition: all 0.2s;
}
.cloud-search-clear:hover { color: var(--danger); background: rgba(239,68,68,0.1); }

.cloud-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: 14px;
    padding: 18px 16px;
    text-align: center;
    margin: 10px 0 14px;
    background: var(--table-header-bg);
    color: var(--text-primary);
    transition: all 0.2s ease;
}
.cloud-dropzone.dragover {
    border-color: var(--primary);
    background: rgba(194, 65, 12,0.08);
    transform: scale(1.005);
}
.cloud-dropzone-inner > i { font-size: 1.6rem; color: var(--primary); display: block; margin-bottom: 6px; }
.cloud-dropzone-inner p { margin: 0; font-size: 0.82rem; color: var(--text-muted); }
.cloud-link-btn {
    background: none; border: none; color: var(--primary); font-weight: 600;
    cursor: pointer; text-decoration: underline; font-size: inherit; padding: 0; font-family: inherit;
}
.cloud-upload-progress { margin-top: 10px; }
.cloud-progress-track { height: 6px; background: var(--progress-bg); border-radius: 4px; overflow: hidden; }
.cloud-progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); width: 0%; transition: width 0.2s; }

.cloud-breadcrumb {
    display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
    padding: 6px 10px;
    background: var(--table-header-bg);
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.78rem;
}
.cloud-crumb { color: var(--text-secondary); text-decoration: none; padding: 3px 6px; border-radius: 6px; transition: all 0.15s; }
.cloud-crumb:hover, .cloud-crumb.active { color: var(--primary); background: rgba(194, 65, 12,0.08); font-weight: 600; }
.cloud-crumb-sep { font-size: 0.6rem; color: var(--text-muted); }

.cloud-file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}
.cloud-file-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 8px;
    display: flex; flex-direction: column; align-items: center;
    gap: 6px;
    text-align: center;
    position: relative;
    transition: all 0.2s ease;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    min-height: 120px;
}
.cloud-file-item:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 18px rgba(194, 65, 12,0.12);
    transform: translateY(-2px);
    color: var(--text-primary);
}
.cloud-file-item.dragging { opacity: 0.4; }
.cloud-file-item.drop-target {
    border-color: var(--primary);
    background: rgba(194, 65, 12,0.08);
    border-style: dashed;
}
.cloud-file-icon-wrap {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(194, 65, 12,0.1);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    flex-shrink: 0;
}
.cloud-file-icon-wrap > i { font-size: 1.3rem; color: var(--primary); }
.cloud-file-type-image .cloud-file-icon-wrap,
.cloud-file-icon-wrap.cloud-file-type-image { background: rgba(16,185,129,0.1); }
.cloud-file-type-image > i { color: #10b981; }
.cloud-file-type-video { background: rgba(139,92,246,0.1); }
.cloud-file-type-video > i { color: #8b5cf6; }
.cloud-file-type-audio { background: rgba(245,158,11,0.1); }
.cloud-file-type-audio > i { color: #f59e0b; }
.cloud-file-type-pdf { background: rgba(239,68,68,0.1); }
.cloud-file-type-pdf > i { color: #ef4444; }
.cloud-file-type-text { background: rgba(100,116,139,0.1); }
.cloud-file-type-text > i { color: #64748b; }
.cloud-preview-hint {
    position: absolute; top: -4px; right: -4px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.55rem;
    border: 2px solid var(--card-bg);
    opacity: 0;
    transition: opacity 0.2s;
}
.cloud-file-item:hover .cloud-preview-hint { opacity: 1; }
.cloud-folder-item .cloud-file-icon-wrap { background: rgba(245,158,11,0.1); }
.cloud-folder-item .cloud-file-icon-wrap > i { color: #f59e0b; }
.cloud-back-item .cloud-file-icon-wrap { background: var(--table-header-bg); }
.cloud-back-item .cloud-file-icon-wrap > i { color: var(--text-muted); }

.cloud-file-name {
    font-size: 0.76rem;
    font-weight: 600;
    word-break: break-word;
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    max-width: 100%;
    line-height: 1.3;
}
.cloud-file-size { font-size: 0.68rem; color: var(--text-muted); }

.cloud-file-actions {
    display: flex; gap: 2px; flex-wrap: wrap; justify-content: center;
    margin-top: 2px;
    opacity: 0;
    transition: opacity 0.15s;
}
.cloud-file-item:hover .cloud-file-actions { opacity: 1; }
.cloud-icon-btn {
    width: 24px; height: 24px;
    border-radius: 6px;
    border: none;
    background: var(--table-header-bg);
    color: var(--text-muted);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 0.62rem;
    transition: all 0.15s;
    text-decoration: none;
    flex-shrink: 0;
}
.cloud-icon-btn:hover { background: var(--primary); color: #fff; }
.cloud-icon-btn-close:hover { background: var(--danger); color: #fff; }

.cloud-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}
.cloud-empty > i { font-size: 2.8rem; margin-bottom: 10px; opacity: 0.4; display: block; }
.cloud-empty h5 { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 4px; }
.cloud-empty p { font-size: 0.82rem; margin: 0; }

.cloud-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border-color); background: var(--table-bg); }
.cloud-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.cloud-table thead th {
    background: var(--table-header-bg);
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}
.cloud-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
}
.cloud-table tbody tr:last-child td { border-bottom: none; }
.cloud-table tbody tr:hover { background: var(--table-hover-bg); }
.cloud-td-icon { color: var(--primary); margin-right: 6px; }
.cloud-td-actions { white-space: nowrap; display: flex; gap: 4px; flex-wrap: wrap; }
.cloud-badge-role {
    display: inline-block; padding: 2px 8px; border-radius: 6px;
    font-size: 0.68rem; font-weight: 600;
    background: var(--table-header-bg); color: var(--text-muted);
}
.cloud-badge-primary { background: rgba(194, 65, 12,0.12); color: var(--primary); }
.cloud-badge-danger { background: rgba(239,68,68,0.12); color: #ef4444; }
.cloud-badge-success { background: rgba(16,185,129,0.12); color: #10b981; }

.cloud-activity-list { display: flex; flex-direction: column; gap: 6px; }
.cloud-activity-item {
    display: flex; gap: 10px; padding: 10px 12px;
    background: var(--table-header-bg);
    border-radius: 10px;
    align-items: flex-start;
}
.cloud-activity-icon {
    width: 30px; height: 30px; border-radius: 8px;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 0.78rem;
}
.cloud-activity-icon.cloud-act-upload { background: #10b981; }
.cloud-activity-icon.cloud-act-delete,
.cloud-activity-icon.cloud-act-delete_permanent,
.cloud-activity-icon.cloud-act-trash { background: #ef4444; }
.cloud-activity-icon.cloud-act-share { background: #8b5cf6; }
.cloud-activity-icon.cloud-act-login,
.cloud-activity-icon.cloud-act-logout { background: #c2410c; }
.cloud-activity-icon.cloud-act-move { background: #f59e0b; }
.cloud-activity-content { flex: 1; min-width: 0; font-size: 0.82rem; }
.cloud-activity-content strong { display: block; color: var(--text-primary); margin-bottom: 2px; word-break: break-word; }
.cloud-activity-meta { font-size: 0.7rem; color: var(--text-muted); }

.cloud-login-card {
    max-width: 400px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 18px;
    padding: 28px 26px;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 40px var(--shadow-color);
    color: var(--text-primary);
}
.cloud-login-header { text-align: center; margin-bottom: 20px; }
.cloud-logo-icon {
    width: 60px; height: 60px; border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 12px;
    box-shadow: 0 8px 20px rgba(194, 65, 12,0.3);
}
.cloud-login-title { font-size: 1.3rem; font-weight: 700; margin: 0 0 4px; color: var(--text-primary); }
.cloud-login-subtitle { font-size: 0.82rem; color: var(--text-muted); margin: 0; }
.cloud-login-form { display: flex; flex-direction: column; gap: 12px; }
.cloud-form-group { display: flex; flex-direction: column; gap: 4px; }
.cloud-form-label { font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); }
.cloud-input-wrap {
    display: flex; align-items: center; gap: 8px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0 12px;
    transition: all 0.18s;
}
.cloud-input-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(194, 65, 12,0.12); }
.cloud-input-wrap > i { color: var(--text-muted); font-size: 0.8rem; flex-shrink: 0; }
.cloud-input {
    flex: 1; border: none; background: transparent; outline: none;
    padding: 10px 0; font-size: 0.88rem; color: var(--text-primary);
    font-family: inherit; min-width: 0;
}
.cloud-login-footer {
    margin-top: 16px; padding-top: 14px;
    border-top: 1px solid var(--border-color);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-size: 0.78rem; color: var(--text-muted);
}

.cloud-alert {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    margin-bottom: 14px;
    border: 1px solid transparent;
}
.cloud-alert-danger { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.25); color: #ef4444; }
.cloud-alert-success { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.25); color: #10b981; }

.cloud-preview-modal { position: fixed; inset: 0; z-index: 10500; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cloud-preview-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(6px); animation: cloudFadeIn 0.2s ease; }
.cloud-preview-dialog {
    position: relative;
    background: var(--card-bg);
    border-radius: 16px;
    width: 100%;
    max-width: 900px;
    max-height: 92vh;
    display: flex; flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    animation: cloudPopIn 0.25s cubic-bezier(0.68,-0.55,0.265,1.55);
    color: var(--text-primary);
}
@keyframes cloudFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cloudPopIn { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.cloud-preview-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--table-header-bg);
    flex-shrink: 0;
}
.cloud-preview-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.88rem; min-width: 0; color: var(--text-primary); }
.cloud-preview-title i { color: var(--primary); flex-shrink: 0; }
.cloud-preview-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cloud-preview-actions { display: flex; gap: 4px; flex-shrink: 0; }
.cloud-preview-body {
    flex: 1;
    overflow: auto;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    background: var(--table-header-bg);
    min-height: 200px;
}
.cloud-preview-body img { max-width: 100%; max-height: 75vh; border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.cloud-preview-body video { max-width: 100%; max-height: 75vh; border-radius: 8px; background: #000; }
.cloud-preview-body audio { width: 100%; max-width: 500px; }
.cloud-preview-body iframe { width: 100%; height: 75vh; border: none; border-radius: 8px; background: #fff; }
.cloud-preview-body pre {
    width: 100%; max-height: 75vh; overflow: auto;
    background: var(--card-bg); padding: 16px; border-radius: 8px;
    font-size: 0.82rem; line-height: 1.5;
    white-space: pre-wrap; word-break: break-word;
    font-family: 'Consolas', 'Monaco', monospace;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    margin: 0;
}
.cloud-preview-loading { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--text-muted); font-size: 0.85rem; }
.cloud-preview-loading i { font-size: 2rem; color: var(--primary); animation: cloudSpin 1s linear infinite; }
@keyframes cloudSpin { to { transform: rotate(360deg); } }
.cloud-preview-error { text-align: center; color: var(--text-muted); padding: 30px; }
.cloud-preview-error i { font-size: 2.5rem; margin-bottom: 10px; color: var(--danger); }

.cloud-toast-container { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 10600; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.cloud-toast {
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    font-size: 0.82rem;
    display: flex; align-items: center; gap: 8px;
    animation: cloudToastIn 0.25s ease;
    pointer-events: auto;
    max-width: 360px;
}
.cloud-toast-success { border-left: 3px solid #10b981; }
.cloud-toast-success i { color: #10b981; }
.cloud-toast-error { border-left: 3px solid #ef4444; }
.cloud-toast-error i { color: #ef4444; }
.cloud-toast-info { border-left: 3px solid var(--primary); }
.cloud-toast-info i { color: var(--primary); }
@keyframes cloudToastIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.cloud-share-page { text-align: center; }
.cloud-share-icon-wrap { margin-bottom: 16px; }
.cloud-share-icon { font-size: 3.5rem; color: var(--primary); }
.cloud-share-icon-danger { color: #ef4444; }
.cloud-share-expiry { font-size: 0.8rem; color: var(--text-muted); }

.cloud-admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 16px; }
.cloud-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    position: relative;
    overflow: hidden;
}
.cloud-stat-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.cloud-stat-green { background: linear-gradient(135deg, #10b981, #059669); }
.cloud-stat-orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.cloud-stat-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.cloud-stat-value { font-size: 1.4rem; font-weight: 800; color: var(--text-primary); line-height: 1; margin-bottom: 2px; }
.cloud-stat-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }

.cloud-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.cloud-card-header { padding: 10px 14px; background: var(--table-header-bg); border-bottom: 1px solid var(--border-color); }
.cloud-card-header h5 { margin: 0; font-size: 0.88rem; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 6px; }
.cloud-card-header h5 i { color: var(--primary); }
.cloud-card-body { padding: 14px; }
.cloud-muted { color: var(--text-muted); font-size: 0.82rem; }

.cloud-widget-logged-in, .cloud-widget-login { padding: 2px; }
.cloud-widget-user { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cloud-widget-usage { font-size: 0.7rem; color: var(--text-muted); }
.cloud-widget-stats { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 8px; }
.cloud-widget-text { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; }
.widget-cloud-login .widget-card-header { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

@media (max-width: 768px) {
    .cloud-file-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
    .cloud-file-item { padding: 10px 6px; min-height: 100px; }
    .cloud-file-icon-wrap { width: 36px; height: 36px; }
    .cloud-file-icon-wrap > i { font-size: 1.1rem; }
    .cloud-file-name { font-size: 0.7rem; }
    .cloud-file-actions { opacity: 1; }
    .cloud-icon-btn { width: 22px; height: 22px; font-size: 0.58rem; }
    .cloud-preview-dialog { max-width: 100%; max-height: 100vh; border-radius: 0; height: 100dvh; }
    .cloud-preview-modal { padding: 0; }
    .cloud-preview-body iframe, .cloud-preview-body pre { max-height: 85vh; }
    .cloud-search { flex: 1 1 100%; }
    .cloud-toolbar-group { width: 100%; }
    .cloud-toolbar-group .cloud-btn { flex: 1 1 auto; }
    .cloud-login-card { padding: 22px 18px; }
}

/* ============================================
   SOCIAL FOLLOW WIDGET
   ============================================ */
.social-follow-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.social-follow-subtitle {
    font-size: 0.82rem;
    margin-bottom: 10px;
}
.social-follow-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 12px;
    background: var(--table-header-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary) !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
}
.social-follow-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: var(--social-color, var(--primary));
    transition: width 0.25s ease;
}
.social-follow-btn:hover {
    background: var(--social-color, var(--primary));
    color: #fff !important;
    border-color: var(--social-color, var(--primary));
    transform: translateX(4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.social-follow-btn:hover::before { width: 0; }
.social-follow-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--social-color, var(--primary));
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.22s ease;
}
.social-follow-btn:hover .social-follow-icon {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
.social-follow-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.social-follow-style-icons .social-follow-wrap {
    flex-direction: row;
    flex-wrap: wrap;
}
.social-follow-style-icons .social-follow-btn {
    flex-direction: column;
    padding: 10px;
    flex: 0 0 auto;
    width: auto;
}
.social-follow-style-icons .social-follow-label {
    display: none;
}

/* ============================================
   KONTAKTFORMULAR WIDGET
   ============================================ */
.contact-form-widget-form .form-control {
    font-size: 0.85rem;
    border-radius: 8px;
}
.contact-form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 3px;
}
.contact-form-subtitle {
    font-size: 0.82rem;
}
.contact-form-intro {
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
}
.contact-alert {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 0.82rem;
    margin-bottom: 12px;
    border: 1px solid transparent;
}
.contact-alert-success {
    background: rgba(16,185,129,0.1);
    border-color: rgba(16,185,129,0.3);
    color: #10b981;
}
.contact-alert-error {
    background: rgba(239,68,68,0.1);
    border-color: rgba(239,68,68,0.3);
    color: #ef4444;
}
.widget-contact-form .widget-card-header {
    background: linear-gradient(135deg, #10b981, #059669);
}
.widget-social-follow .widget-card-header {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

/* ===== FoxiCloud Theme: Herbst ===== */
:root {
  --primary: #c2410c;
  --primary-dark: #9a3412;
  --primary-light: #fb923c;
  --secondary: #a16207;
  --accent: #eab308;
  --primary-rgb: 194, 65, 12;
  --accent-rgb: 234, 179, 8;
  --bg-gradient-start: #7c2d12;
  --bg-gradient-end: #1c1208;
  --news-category-bg: #c2410c;
  --shadow-color-hover: rgba(194, 65, 12, 0.2);
}
[data-theme="dark"] {
  --bg-gradient-start: #431407;
  --bg-gradient-end: #0c0703;
  --news-category-bg: #9a3412;
  --shadow-color-hover: rgba(251, 146, 60, 0.25);
}
