/* AbsoStats Cockpit - Master Brand Style */

:root {
    --bg-color: #0b1014;
    --card-bg: rgba(22, 27, 34, 0.7);
    --main-green: #3cb2af;
    --accent-orange: #f28515;
    --accent-red: #f95956;
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.5);
    --border: rgba(255, 255, 255, 0.08);
    --dropdown-bg: #161b22;
    --input-bg: rgba(0, 0, 0, 0.4);
    --island-bg: rgba(22, 27, 34, 0.7); /* Gleicher Wert wie --card-bg für Konsistenz */
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body { 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    font-family: var(--font-stack); 
    margin: 0; 
    padding: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* --- STICKY HEADER AREA --- */
.header-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 16, 20, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 40px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area img {
    height: 42px; 
    width: auto;
    display: block;
}

/* --- FILTER-BAR & DROP-DOWN WRAPPER --- */
.filter-bar { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

.filter-select-wrapper {
    position: relative;
    display: inline-block;
}

/* --- VIEW SWITCHER --- */
.view-switcher {
    display: flex;
    background: var(--input-bg);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-left: 20px;
}

.view-btn {
    width: 60px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.view-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.view-btn.active {
    background: var(--main-green);
    color: #fff;
    box-shadow: 0 4px 12px rgba(60, 178, 175, 0.2);
}

/* --- BUTTONS MASTER STYLE --- */
.btn-primary, .add-btn, .logout-btn, .dropdown-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 25px;
    border-radius: 14px;
    font-size: 0.80rem;
    font-weight: 700;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
}

.dropdown-trigger {
    background: var(--input-bg);
    border: 1px solid var(--border);
    color: #fff;
    min-width: 150px;
}
.dropdown-trigger:hover { border-color: var(--main-green); }

.btn-primary { 
    background: var(--main-green); 
    color: #fff; 
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-primary:hover { 
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(60, 178, 175, 0.3);
}

.logout-btn {
    color: var(--accent-orange);
    border: 2px solid var(--accent-orange);
    background: transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.logout-btn:hover { background: var(--accent-orange); color: #fff; transform: translateY(-2px); }

.add-btn {
    background: transparent;
    color: var(--main-green);
    border: 2px solid var(--main-green);
    margin-right: 5px;
}

.add-btn:hover { 
    background: var(--main-green); 
    color: #fff; 
    transform: translateY(-2px); 
}

.reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px; /* Gleiche Höhe wie der Analyse-Button */
    padding: 0 25px;
    border-radius: 14px;
    font-size: 0.80rem;
    font-weight: 700;
    text-transform: uppercase; /* Damit es zum Look der anderen Buttons passt */
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-left: 10px;
    box-sizing: border-box;

    /* DER ROTE RAHMEN */
    color: var(--accent-red); 
    border: 1px solid var(--accent-red); 
    background: rgba(249, 89, 86, 0.05); /* Ganz leichter roter Schimmer innen */
}

.reset-btn:hover {
    background: var(--accent-red); /* Füllt sich beim Drüberfahren komplett rot */
    color: #fff; /* Schrift wird dann weiß */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(249, 89, 86, 0.3);
}

/* --- DROPDOWNS --- */
.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 12px); 
    left: 0;
    background: var(--dropdown-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    z-index: 5000;
    width: 320px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.dropdown-content.show { display: block; }

.dropdown-search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    color: #fff;
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    outline: none;
    box-sizing: border-box;
    display: block;
    margin-bottom: 15px;
}
.dropdown-search-input:focus { border-color: var(--main-green); }

.dropdown-selection-actions {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    width: 100%;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.acc-action-link {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--main-green);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    transition: 0.2s;
    cursor: pointer;
}
.dropdown-item:hover { background: rgba(255,255,255,0.05); }
.dropdown-item input[type="checkbox"] { accent-color: var(--main-green); }

#accListWrapper, #kwListWrapper, #reportListWrapper { max-height: 250px; overflow-y: auto; }

/* --- MODULAR ISLAND DASHBOARD --- */
.container { 
    max-width: 1400px; 
    margin: 80px auto; 
}

.channel-grid {
    display: grid;
    grid-template-columns: repeat(2, 670px); 
    justify-content: space-between; 
    gap: 40px; 
    width: 100%; 
}

.island {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 30px;
    backdrop-filter: blur(10px);
    width: 670px;
    box-sizing: border-box;
}

.island-header {
    margin-bottom: 25px;
}

.island-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-main);
    text-transform: uppercase;
}

.island-title i { font-size: 1.5rem; }

/* Icons Farbakzente */
.fa-youtube   { color: #ff0000 !important; } 
.fa-tiktok    { color: #ffffff !important; } 
.fa-instagram { color: #e1306c !important; } 
.fa-facebook  { color: #1877f2 !important; } 

.island-header span {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-top: 2px;
}

/* KPI Tiles Grid */
.kpi-tile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.kpi-tile {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100px;
}

.kpi-tile .label {
    display: block; 
    font-size: 0.8rem;
    font-weight: 800;
    color: #ffffff; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.kpi-tile .value-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.kpi-tile .val { font-size: 1.15rem; font-weight: 800; }

.pos { color: var(--main-green) !important; }
.neg { color: var(--accent-red) !important; }

/* --- TREND-PILLS (PROZENTE) --- */
.kpi-tile .trend-pill {
    font-size: 0.95rem; 
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 800;
}

.pill-up { 
    background: rgba(60, 178, 175, 0.15) !important; 
    color: var(--main-green) !important; 
}
.pill-down { 
    background: rgba(249, 89, 86, 0.15) !important; 
    color: var(--accent-red) !important; 
}

/* --- VERLAUF-ANSICHT SPECIALS --- */
.kpi-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.2s;
}
.kpi-btn:hover { border-color: var(--main-green); color: #fff; }
.kpi-btn.active { background: var(--main-green); color: #fff; border-color: var(--main-green); }

/* 1. Der Container für alle Buttons */
.plat-selector { 
    display: flex; 
    flex-wrap: wrap;       /* Erlaubt den Umbruch in die 2. Reihe */
    gap: 10px; 
    margin-top: 15px; 
    max-width: 950px;      /* Begrenzt die Breite für den Umbruch nach 5 Buttons */
}

/* 2. Die KPI-Buttons (Follower, Views, etc.) */
.kpi-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Zwingt exakt 5 Buttons in eine Reihe */
    width: calc(20% - 10px); 
    box-sizing: border-box;
}

.kpi-btn:hover { border-color: var(--main-green); color: #fff; }
.kpi-btn.active { background: var(--main-green); color: #fff; border-color: var(--main-green); }

/* 3. Die Plattform-Buttons (YouTube, TikTok, etc.) */
.plat-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    /* KEINE feste Breite hier, damit sie klein bleiben */
}

.plat-btn.inactive { 
    opacity: 0.3; 
    filter: grayscale(1); 
    border-color: transparent; 
}

/* Deine bestehenden Plattform-Farben (Beispiel für den Rest) */
.plat-btn[data-plat="youtube"].active  { background: #FF0000; color: #fff; border-color: #FF0000; }

.plat-btn[data-plat="youtube"].active  { background: #FF0000; color: #fff; border-color: #FF0000; }
.plat-btn[data-plat="tiktok"].active   { background: #00f2ea; color: #000; border-color: #00f2ea; }
.plat-btn[data-plat="instagram"].active { background: #c13584; color: #fff; border-color: #c13584; }
.plat-btn[data-plat="facebook"].active  { background: #4267B2; color: #fff; border-color: #4267B2; }

/* --- FAST TOOLTIP SYSTEM --- */
.fast-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.fast-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #1c232b;
    color: #fff;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.75rem;
    width: max-content;
    max-width: 350px; 
    white-space: normal; 
    line-height: 1.4;
    opacity: 0;
    visibility: hidden;
    transition: all 0.1s ease-in-out;
    z-index: 9999;
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    text-align: center;
}

.fast-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.fast-tooltip::before {
    content: "";
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #1c232b transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.1s ease-in-out;
    z-index: 9999;
}

.fast-tooltip:hover::before { opacity: 1; visibility: visible; }

/* --- MODAL --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--dropdown-bg);
    padding: 40px;
    border-radius: 28px;
    width: 450px;
    border: 1px solid var(--border);
    animation: modalIn 0.3s ease-out;
}

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

.modal-content h2 { color: var(--main-green); font-weight: 800; margin-bottom: 25px; }

.modal-content .range-select {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    color: #fff;
    padding: 14px;
    border-radius: 14px;
}

/* --- LOGIN PAGE SPECIALS --- */
.login-wrapper {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #161b22 0%, #0b1014 100%);
}

.login-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    padding: 50px;
    border-radius: 32px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.login-card h2 { 
    font-size: 1.5rem; 
    font-weight: 800; 
    margin-bottom: 35px; 
    letter-spacing: -0.5px; 
    color: #fff;
}

/* DAS HIER FEHLTE: Damit die Inputs untereinander stehen und schick aussehen */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border);
    color: #fff;
    padding: 15px;
    border-radius: 14px;
    font-size: 1rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.login-input:focus {
    border-color: var(--main-green);
}

/* --- 2FA OTP INPUT SPECIAL --- */
.otp-input {
    width: 100%;
    background: var(--input-bg) !important;
    border: 2px solid var(--border) !important;
    color: var(--main-green) !important;
    text-align: center;
    font-size: 2.2rem !important;
    /* Sorgt für den coolen Code-Look */
    letter-spacing: 15px; 
    font-weight: 800;
    padding: 20px !important;
    border-radius: 18px !important;
    outline: none;
    box-sizing: border-box;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.otp-input:focus {
    border-color: var(--main-green) !important;
    background: rgba(60, 178, 175, 0.05) !important;
    box-shadow: 0 0 20px rgba(60, 178, 175, 0.1);
}

.otp-input::placeholder {
    color: rgba(255, 255, 255, 0.1);
}

/* Fehlermeldung Styling */
.error-msg {
    color: var(--accent-red);
    background: rgba(249, 89, 86, 0.1);
    padding: 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-top: 20px;
    font-weight: 600;
}

/* --- EINHEITLICHER NAVIGATION-BUTTON (Petrol) --- */
.report-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.2s ease;
    
    /* Farbe: Petrol/Blau aus dem Revenue-Screenshot */
    color: #5fb1b1; 
    border: 1px solid #5fb1b1;
    background: rgba(95, 177, 177, 0.05);
    margin-right: 5px;
}

.report-btn:hover {
    background: #5fb1b1;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(95, 177, 177, 0.3);
}

.report-btn i {
    margin-right: 8px;
}

/* --- UMSATZ-BUTTON (GRÜN) --- */
.rev-param-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.2s ease;
    
    color: #2ed180; 
    border: 1px solid #2ed180;
    background: rgba(46, 209, 128, 0.05);
    margin-right: 5px;
}

.rev-param-btn:hover {
    background: #2ed180;
    color: #fff;
    border-color: #2ed180;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 209, 128, 0.3);
}

/* --- UNIVERSAL META INFO BAR (Cockpit & Reports) --- */
.meta-info-bar {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border); /* Feine Trennlinie wie im Cockpit */
}

.meta-flex-container {
    display: flex;
    align-items: center;
    gap: 0; /* Wir regeln Abstände über die Divider */
}

.meta-segment {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap; /* Verhindert das Umbrechen */
}

.meta-segment b {
    color: #fff;
    margin-left: 5px;
}

.meta-divider {
    margin: 0 15px;
    color: var(--text-muted);
    opacity: 0.3;
}

.meta-footer-text {
    font-size: 0.75rem;
    opacity: 0.5;
    display: block;
    margin-top: 10px;
}

/* --- REPORT DROPDOWN STYLING --- */
.report-select-link {
    text-decoration: none !important;
    color: #fff !important; /* Verhindert das lila Browser-Styling */
    display: block;
    padding: 12px 15px;
}

.report-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.report-main-label {
    font-weight: 800; /* Schön fett */
    font-size: 0.95rem;
    color: #fff;
}

.report-sub-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Hover-Effekt wie bei den Accounts */
.report-select-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* --- TARGET PROGRESS GRID --- */
.target-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.target-card {
    background: var(--island-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.target-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.target-value {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.progress-container {
    background: rgba(255, 255, 255, 0.05);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: var(--main-green); /* Deine Markenfarbe */
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

.target-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.percent-badge {
    color: var(--main-green);
    font-weight: bold;
}

/* --- PLATFORM STRIPS (GF-REPORT STYLE) --- */
.platform-strip {
    background: var(--island-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px 30px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s ease;
}

.platform-strip:hover {
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.plat-info {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 180px;
}

.plat-info i { font-size: 1.4rem; }
.plat-info span { font-weight: 800; text-transform: uppercase; font-size: 0.9rem; }

.plat-stats-flex {
    flex-grow: 1;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.stat-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.stat-value {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Styling für die Plattform-Leisten */
.platform-strip {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s;
}

.platform-strip:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px); /* Kleiner Effekt beim Drüberfahren */
}

.plat-info {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 200px;
}

.plat-info i {
    font-size: 1.5rem;
    color: var(--main-green);
}

.plat-stats-flex {
    display: flex;
    gap: 40px;
    flex-grow: 1;
    justify-content: flex-end;
}

.stat-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.5;
    letter-spacing: 1px;
}

.stat-value {
    font-weight: 600;
    font-size: 1.1rem;
}

.stat-value.pos { color: var(--main-green); }

/* --- 4-SPALTEN PLATFORM GRID --- */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 exakt gleiche Spalten */
    gap: 20px;
    margin-top: 25px;
}

.platform-card {
    background: var(--island-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 22px;
    display: flex;
    flex-direction: column;
}

.plat-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.plat-card-header i { font-size: 1.5rem; }
.plat-card-header span { font-weight: 800; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }

.plat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.plat-row:last-child { border-bottom: none; }

.plat-row-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; font-weight: 600; }
.plat-val-main { font-weight: 700; font-size: 0.95rem; }

.plat-delta {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(255,255,255,0.05);
    margin-left: 8px;
}

/* Nur zur Sicherheit, damit nichts überlagert wird */
.header-sticky {
    z-index: 2000 !important;
}
.dropdown-content {
    z-index: 9999 !important;
}

/* Die pulsierende Animation für den Pechvogel */
@keyframes finger-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); text-shadow: 0 0 15px rgba(255, 0, 0, 0.7); }
    100% { transform: scale(1); }
}

/* Der vierte Platz bekommt den "Special-Style" */
.rank-4-badge {
    background: transparent !important; /* Kein Kasten drumherum */
    font-size: 1.1rem !important; /* Etwas größer damit man ihn sieht */
}

.rank-4-badge i {
    display: inline-block;
    animation: finger-pulse 0.8s infinite ease-in-out;
    color: #ff4d4d; /* Aggressives Rot */
}

.red-border {
    border-top: 3px solid #ff4d4d !important;
}

/* --- AKKORDEON PFEIL OPTIK --- */
.acc-toggle-header i.fa-chevron-down {
    margin-left: auto;
    transition: transform 0.3s;
    color: var(--main-green) !important; /* Macht den Pfeil Absolut-Grün */
    opacity: 1 !important;              /* Verhindert das Ausgrauen */
    font-size: 1.1rem;                  /* Macht ihn ein Stück präsenter */
}

/* Drehung wenn offen */
.acc-toggle-header.active i.fa-chevron-down {
    transform: rotate(180deg);
}

/* --- UPLOAD AREA SPECIALS --- */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    margin-bottom: 25px;
}

.upload-zone:hover {
    border-color: var(--main-green);
    background: rgba(60, 178, 175, 0.05);
}

.upload-icon {
    font-size: 3rem;
    color: var(--main-green);
    margin-bottom: 15px;
    display: block;
}

.file-info-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Custom File Input Hide & Style */
.hidden-file-input {
    display: none;
}

.alert-custom {
    padding: 20px;
    border-radius: 18px;
    margin-bottom: 30px;
    font-weight: 700;
    border: 1px solid transparent;
}

.alert-success-custom {
    background: rgba(60, 178, 175, 0.1);
    border-color: var(--main-green);
    color: var(--main-green);
}

.alert-error-custom {
    background: rgba(249, 89, 86, 0.1);
    border-color: var(--accent-red);
    color: var(--accent-red);
}

/* --- Neue Styles für die Umsatz-Anzeige --- */
.rev-container {
    grid-column: span 2; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    margin-top: 10px; 
    padding-top: 15px;
}

.rev-label {
    color: var(--main-green);
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}

.rev-grid {
    display: flex; 
    justify-content: space-between;
}

.rev-item small {
    display: block; 
    opacity: 0.5; 
    font-size: 0.65rem; 
    text-transform: uppercase;
}

.rev-item span {
    font-weight: bold; 
    font-size: 1.1rem;
}

/* --- Import Center Styles --- */
.import-grid { 
    display: flex; 
    gap: 30px; 
    width: 100%; 
    max-width: 1200px; 
    margin-top: 20px; 
}

.import-grid .island { 
    flex: 1; 
    margin-bottom: 0; 
}

.upload-icon { 
    font-size: 2.5rem; 
    margin-bottom: 15px; 
}

.file-info-text { 
    font-size: 0.9rem; 
    opacity: 0.7; 
    margin-top: 5px; 
}

@media (max-width: 1000px) { 
    .import-grid { flex-direction: column; } 
}

/* Spezialfarben für den Umsatz-Import */
.upload-zone-revenue {
    border-color: #3498db !important;
    background: rgba(52, 152, 219, 0.03) !important;
}

.upload-zone-revenue:hover {
    background: rgba(52, 152, 219, 0.08) !important;
}

/* ==========================================================================
   --- FINANZ COCKPIT: MASTER STYLE (32px Version) ---
   ========================================================================== */

/* 1. Die kleinen Plattform-Quadrate (32px) */
.filter-bar .plat-btn {
    width: 32px !important; 
    height: 32px !important;
    font-size: 1.1rem !important; /* Etwas kleineres Icon für 32px */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px; /* Ecken etwas weniger rund für die kleine Größe */
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    transition: 0.2s;
}

/* 2. Sichtbarkeit: Macht Icons WEISS, wenn der Button aktiv ist */
.filter-bar .plat-btn.active i {
    color: #ffffff !important;
}

/* Spezialfall TikTok: Schwarzes Icon auf Weiß */
.filter-bar .plat-btn.active[data-plat="tiktok"] i {
    color: #000000 !important;
}

/* 3. Farben für die aktiven Zustände */
.filter-bar .plat-btn.active[data-plat="youtube"]   { background: #ff0000 !important; border-color: #ff0000; }
.filter-bar .plat-btn.active[data-plat="instagram"] { background: #e1306c !important; border-color: #e1306c; }
.filter-bar .plat-btn.active[data-plat="facebook"]  { background: #1877f2 !important; border-color: #1877f2; }
.filter-bar .plat-btn.active[data-plat="tiktok"]    { background: #ffffff !important; border-color: #ffffff; }

/* Sichtbarkeit für deaktivierte Buttons verbessern */
.filter-bar .plat-btn.inactive {
    opacity: 0.4 !important; /* Etwas sichtbarer als vorher */
    filter: grayscale(1);    /* Bleibt farblos */
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important; /* Hellerer Rahmen für Sichtbarkeit */
}

/* Das Icon im inaktiven Button soll hellgrau/weiß leuchten */
.filter-bar .plat-btn.inactive i {
    color: rgba(255, 255, 255, 0.8) !important;
    display: block !important;
}

/* 4. Der grüne STARTEN-Button */
.rev-start-btn {
    background: var(--main-green) !important;
    color: #fff !important;
    border: none;
    height: 42px;
    padding: 0 25px;
    border-radius: 14px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 1px;
    transition: 0.2s;
}
.rev-start-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }

/* 5. Der blaue DASHBOARD-Button */
.rev-dashboard-btn {
    background: rgba(52, 152, 219, 0.1) !important;
    color: #3498db !important;
    border: 1px solid #3498db !important;
    height: 42px;
    padding: 0 20px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    text-decoration: none;
    margin-left: auto;
}

/* ==========================================================================
   --- SCHRITT 1: KOMPAKTE KACHELN (4 NEBENEINANDER) ---
   ========================================================================== */

/* Der Container: Erzwingt 4 Spalten nebeneinander */
.rev-finance-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px; 
    margin-bottom: 30px; 
    width: 100%;
}

/* Die Kachel: Kompakt, flach, Linie oben (statt seitlich) */
.rev-stat-card { 
    background: var(--island-bg) !important; 
    padding: 12px 18px !important; 
    border-radius: 6px !important; 
    border: 1px solid var(--border) !important; 
    border-top: 3px solid var(--main-green) !important; /* Farbe oben */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-height: 70px !important;
    position: relative !important;
}

/* Farbanpassungen für die Kacheln (Rahmen oben) */
.rev-stat-card.teal   { border-top-color: #3cb2af !important; }
.rev-stat-card.blue   { border-top-color: #3b82f6 !important; }
.rev-stat-card.orange { border-top-color: #f59e0b !important; }
.rev-stat-card.purple { border-top-color: #8b5cf6 !important; }

/* Beschriftung: Klein und dezent */
.rev-stat-card .stat-label {
    display: block !important;
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    text-transform: none !important;
    margin-bottom: 4px !important;
    opacity: 1 !important;
}

/* Der Wert: Groß und klar */
.rev-stat-card .stat-value {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #fff !important;
}

/* Entfernt den alten seitlichen Streifen, falls noch Reste da sind */
.rev-stat-card::after { display: none !important; }