/* ============================================================
   PULSE4X – LANDINGPAGE DESIGN (SEITE 1)
   Design-Datei: frontend.css
   ============================================================ */

/* ---------- Global & Astra-Rahmen ausblenden ---------- */

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
    width: 100%;
    overflow: hidden; /* keine weißen Ränder */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
                 "Segoe UI", sans-serif;
}

/* Astra Header/Footer weg */
.site-header,
.site-footer,
.ast-header-break-point .main-header-bar,
.ast-below-header-wrap,
.ast-above-header-wrap {
    display: none !important;
}

.site,
#page,
#content,
.ast-container {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
}

/* ---------- Hintergrund: Circuit-Board Bild ---------- */

body {
    background: #040405;
    background-image: url('https://pulse4x.com/wp-content/uploads/2025/11/pulse4x-2.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #ffffff;
}

/* leichtes Aufhellen für Light-Mode (Bild bleibt gleich) */
body[data-theme="light"] {
    filter: brightness(1.05);
}

/* ============================================================
   START-WRAPPER
   ============================================================ */

.p4x-start-wrapper {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;   /* Login-Button nach unten */
    padding-bottom: 11vh;        /* Abstand unten */
}

/* falls später ein eigener Logo-Block genutzt wird */
.p4x-logo-block {
    position: absolute;
    left: 50%;
    top: 36vh;
    transform: translateX(-50%);
    text-align: center;
}

.p4x-logo-title {
    margin-top: 10px;
    font-size: 2.4rem;
    letter-spacing: 0.12em;
    text-transform: lowercase;
    color: rgba(0,0,0,0); /* Text unsichtbar, Logo ist im Bild */
}

/* Wrapper zum Zentrieren */
.p4x-center {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* ============================================================
   APPLE GLASS BUTTON BASIS
   ============================================================ */

.p4x-btn-glass,
a.p4x-btn-glass,
.p4x-btn-main {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 54px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.24);
    background: radial-gradient(circle at 0% 0%, rgba(255,255,255,0.18), rgba(20,20,20,0.95));
    backdrop-filter: blur(32px) saturate(160%);
    -webkit-backdrop-filter: blur(32px) saturate(160%);
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.65),
        0 18px 40px rgba(0,0,0,0.95),
        0 0 34px rgba(86,215,255,0.55);
    color: #f8f8f8;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.p4x-btn-glass:hover,
.p4x-btn-main:hover {
    transform: translateY(-1px) scale(1.015);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.32),
        0 22px 46px rgba(0,0,0,0.98),
        0 0 42px rgba(120,230,255,0.80);
}

.p4x-btn-glass:active,
.p4x-btn-main:active {
    transform: translateY(1px) scale(0.985);
    box-shadow:
        0 10px 24px rgba(0,0,0,0.9),
        0 0 24px rgba(86,215,255,0.4);
}

/* ============================================================
   Paragraph-Button unter Login + Overlay
   ============================================================ */
/* kleiner Glas-Button mit §, leicht roter Glow & Puls
   direkt UNTER dem Login-Button zentriert */
.p4x-paragraph-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 78vh;              /* unter Login (Login ist bei 68vh) */

    min-width: 80px;
    height: 34px;
    border-radius: 999px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 18px;
    font-size: 1.2rem;

    backdrop-filter: blur(18px);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.75);
    box-shadow:
        0 10px 24px rgba(0,0,0,0.75),
        0 0 20px rgba(255,255,255,0.25);

    cursor: pointer;
    overflow: hidden;
    z-index: 30;            /* sicher vor Hintergrund */
}

.p4x-paragraph-icon {
    color: #ff6b6b;
    text-shadow:
        0 0 8px rgba(255, 99, 99, 0.9),
        0 0 14px rgba(255, 99, 99, 0.7);
    animation: p4x-paragraph-pulse 2.4s infinite ease-in-out;
}

/* dezente Puls-Animation um das §-Icon */
@keyframes p4x-paragraph-pulse {
    0% {
        transform: scale(1);
        text-shadow:
            0 0 6px rgba(255, 99, 99, 0.8),
            0 0 10px rgba(255, 99, 99, 0.5);
    }
    50% {
        transform: scale(1.06);
        text-shadow:
            0 0 14px rgba(255, 99, 99, 1),
            0 0 24px rgba(255, 99, 99, 0.8);
    }
    100% {
        transform: scale(1);
        text-shadow:
            0 0 6px rgba(255, 99, 99, 0.8),
            0 0 10px rgba(255, 99, 99, 0.5);
    }
}

/* Overlay für Bedingungen */
.p4x-terms-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.p4x-terms-overlay.p4x-terms-open {
    opacity: 1;
    pointer-events: auto;
}

/* Karte im Overlay */
.p4x-terms-panel {
    width: 100%;
    max-width: 480px;
    max-height: 80vh;

    background: rgba(9,11,16,0.94);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow:
        0 24px 60px rgba(0,0,0,0.85),
        0 0 28px rgba(255,255,255,0.20);

    display: flex;
    flex-direction: column;
    padding: 18px 20px 16px;
}

/* Header */
.p4x-terms-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.p4x-terms-title {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    opacity: 0.9;
}

.p4x-terms-close {
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.p4x-terms-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Scrollbereich für Text */
.p4x-terms-scroll {
    flex: 1;
    min-height: 120px;
    max-height: 46vh;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    line-height: 1.4;
    opacity: 0.9;
}

/* Checkbox + Label */
.p4x-terms-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    margin-bottom: 12px;
}
.p4x-terms-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

/* Bestätigen-Button im Overlay */
.p4x-terms-confirm {
    align-self: flex-end;
    min-width: 120px;
    font-size: 0.82rem;
}

/* kleiner Shake, wenn ohne Häkchen bestätigt wird */
.p4x-terms-shake {
    animation: p4x-terms-shake-keyframes 0.25s linear;
}

@keyframes p4x-terms-shake-keyframes {
    0%   { transform: translateX(0); }
    25%  { transform: translateX(-4px); }
    50%  { transform: translateX(4px); }
    75%  { transform: translateX(-2px); }
    100% { transform: translateX(0); }
}

/* Login-Submit: gesperrt vs freigeschaltet */
.p4x-login-submit[data-login-submit][disabled],
.p4x-login-submit-locked {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none !important;
    filter: grayscale(0.3);
}

/* Grün leuchtend, wenn freigeschaltet */
.p4x-login-submit-ready {
    box-shadow:
        0 0 22px rgba(46,204,113,0.85),
        0 0 40px rgba(39,174,96,0.75);
    border-color: rgba(46,204,113,0.9);
}

.p4x-terms-section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 0 0 6px;
    opacity: 0.95;
}

.p4x-terms-scroll p {
    margin: 0 0 8px;
}

.p4x-terms-divider {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 10px 0 12px;
}

/* ============================================================
   LOGIN BUTTON – exakt unter "pulse4x.com"
   ============================================================ */

#p4x-login-main.p4x-btn-main {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    /* Höhe – wie im Referenzbild */
    top: 68vh;

    min-width: 260px;
    padding: 18px 40px;
    border-radius: 999px;

    font-size: 1.2rem;
    color: #ffffff;
    text-align: center;

    /* Apple-Glass Look */
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(60px) saturate(180%);
    -webkit-backdrop-filter: blur(60px) saturate(180%);

    border: 1px solid rgba(255,255,255,0.75);

    box-shadow:
        0 0 35px rgba(255,255,255,0.70),
        0 0 90px rgba(255,255,255,0.50),
        inset 0 0 22px rgba(255,255,255,0.32),
        inset 0 6px 18px rgba(255,255,255,0.55),
        0 0 25px rgba(180,220,255,0.30);
}

#p4x-login-main.p4x-btn-main:hover {
    background: rgba(255,255,255,0.20);
    box-shadow:
        0 0 45px rgba(255,255,255,0.85),
        0 0 130px rgba(255,255,255,0.60),
        inset 0 0 28px rgba(255,255,255,0.40);
}

/* Login-Panel (für später, User/Passwort) */
.p4x-login-panel {
    display: none;
    position: absolute;
    left: 50%;
    top: 58%;
    transform: translate(-50%, -50%);
    width: 88%;
    max-width: 340px;
    padding: 24px 30px;
    border-radius: 26px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.55);
    backdrop-filter: blur(45px);
    -webkit-backdrop-filter: blur(45px);
    box-shadow:
        0 0 24px rgba(255,255,255,0.45),
        inset 0 0 16px rgba(255,255,255,0.30);
}

.p4x-login-form input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.45);
    color: white;
    backdrop-filter: blur(30px);
    box-shadow: inset 0 0 10px rgba(255,255,255,0.25);
}

.p4x-btn-full {
    width: 100%;
    padding: 12px 20px;
    margin-top: 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.50);
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(40px);
    box-shadow:
        0 0 20px rgba(255,255,255,0.40),
        inset 0 0 14px rgba(255,255,255,0.25);
    color: white;
}

/* ============================================================
   TOPBAR – Globe / Home / Mode (ohne Rahmen/Kapsel)
   ============================================================ */

.p4x-topbar {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 12px;
    padding: 0;
    margin: 0;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 20;
}

/* runde Globus/Home-Buttons – Apple Glass */
.p4x-btn-glass-round {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    backdrop-filter: blur(80px);
    -webkit-backdrop-filter: blur(80px);
    border: 1px solid rgba(255,255,255,0.85);
    box-shadow:
        0 0 32px rgba(255,255,255,0.7),
        inset 0 0 22px rgba(255,255,255,0.45),
        0 0 140px rgba(255,255,255,0.35);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.p4x-btn-glass-round:hover {
    background: rgba(255,255,255,0.26);
    box-shadow:
        0 0 40px rgba(255,255,255,0.85),
        0 0 150px rgba(255,255,255,0.60),
        inset 0 0 26px rgba(255,255,255,0.50);
    transform: translateY(-1px);
}

/* Mode-Toggle (Light/Dark) */
.p4x-btn-glass-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.45);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    color: #fff;
    cursor: pointer;
}

.p4x-toggle-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: white !important;
    box-shadow:
        0 0 55px rgba(255,255,255,1),
        0 0 160px rgba(255,255,255,0.9),
        0 0 220px rgba(255,255,255,0.7);
}

.p4x-toggle-label {
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}

/* ============================================================
   LANGUAGE DROPDOWN – Apple Glass, schmal, nur Flaggen
   ============================================================ */

.p4x-lang-dropdown {
    position: absolute;
    top: calc(100% + 10px); /* direkt unter der Topbar/Weltkugel */
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;

    padding: 10px 10px;
    width: 140px;

    background: rgba(0,0,0,0.70);
    backdrop-filter: blur(22px) brightness(1.2);
    -webkit-backdrop-filter: blur(22px) brightness(1.2);

    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.42);

    box-shadow:
        0 0 18px rgba(0,0,0,0.9),
        0 0 35px rgba(255,255,255,0.28);

    z-index: 9999;

    /* Animation: default versteckt */
    opacity: 0;
    transform: translateY(8px) scale(0.96);
    pointer-events: none;
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

/* sichtbar, wenn JS .is-open setzt */
.p4x-lang-dropdown.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* einzelne Einträge – Glas, kein Text, nur Flaggen */
.p4x-lang-item {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 6px 8px;
    height: 32px;
    width: 100%;

    background: rgba(255,255,255,0.10);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.30);

    backdrop-filter: blur(18px) brightness(1.3);
    -webkit-backdrop-filter: blur(18px) brightness(1.3);

    font-size: 0 !important;        /* Text verstecken */
    color: transparent !important;  /* nur Flagge anzeigen */

    cursor: pointer;
    transition:
        background 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.p4x-lang-item:hover {
    background: rgba(255,255,255,0.22);
    box-shadow:
        0 0 18px rgba(255,255,255,0.45),
        0 0 32px rgba(255,255,255,0.35);
    transform: translateX(3px);
}

.p4x-lang-item.active {
    background: rgba(255,255,255,0.30);
    border-color: rgba(255,255,255,0.7);
}

/* Flaggen (Emoji oder <img>) sichtbar machen */
.p4x-lang-item .p4x-flag,
.p4x-lang-item img {
    font-size: 20px !important;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    object-fit: cover;
    line-height: 1;
    color: #ffffff !important;
    display: inline-block;
}

/* ============================================================
   RESPONSIVE – leichte Anpassungen auf Handy
   ============================================================ */

@media (max-width: 768px) {

    body {
        background-position: center top;
        background-size: cover;
    }

    .p4x-topbar {
        top: 10px;
        right: 10px;
        transform: scale(0.9);
        transform-origin: top right;
    }

    .p4x-btn-glass-round {
        width: 46px;
        height: 46px;
    }

    #p4x-login-main.p4x-btn-main {
        top: 68vh;              /* gleiche Position auch mobil */
        padding: 16px 34px;
        font-size: 1.05rem;
    }
}

/* ============================================================
   LOGIN PANEL – Klar, lesbar, Apple-Style Premium
   ============================================================ */

.p4x-login-panel {
    display: none;
    position: absolute;
    left: 50%;
    top: 57%;
    transform: translate(-50%, -50%);
    width: 92%;
    max-width: 360px;
    padding: 28px 26px;

    border-radius: 26px;
    background: rgba(20,20,20,0.55);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);

    border: 1px solid rgba(255,255,255,0.28);
    box-shadow:
        0 0 25px rgba(0,0,0,0.65),
        inset 0 0 18px rgba(255,255,255,0.18);

    z-index: 9999;
}

/* Titel "Login" */
.p4x-login-panel h3 {
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
    text-align: center;
    color: #ffffff;
}

/* Eingabefelder */
.p4x-login-panel input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;

    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 16px;

    color: white;
    backdrop-filter: blur(28px);

    margin-bottom: 14px;

    box-shadow:
        inset 0 0 12px rgba(255,255,255,0.22);
}

.p4x-login-panel input::placeholder {
    color: rgba(255,255,255,0.65);
}

/* Login-Button im Panel */
#p4x-login-submit {
    width: 100%;
    padding: 14px;
    border-radius: 999px;

    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.55);

    color: white;
    font-size: 1.1rem;
    font-weight: 500;

    backdrop-filter: blur(32px);

    box-shadow:
        0 0 22px rgba(255,255,255,0.45),
        inset 0 0 14px rgba(255,255,255,0.28);

    cursor: pointer;
    transition: 0.2s ease;
}

#p4x-login-submit:hover {
    background: rgba(255,255,255,0.32);
    box-shadow:
        0 0 34px rgba(255,255,255,0.75),
        inset 0 0 18px rgba(255,255,255,0.35);
}
/* ============================================================
   DASHBOARD – Apple Glass Pure – 3 kompakte Auswahl-Karten
   ============================================================ */

.p4x-dashboard-wrapper {
    position: relative;
    min-height: 100vh;
    padding: 6rem 1.4rem 1.8rem;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.p4x-dashboard-inner {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
}

/* Titel & Untertitel – etwas weiter unten, gut lesbar */
.p4x-dashboard-title {
    margin: 0;
    font-size: 1.4rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-align: center;
    color: #f5f5f7;
    text-shadow: 0 12px 30px rgba(0,0,0,0.85);
}

.p4x-dashboard-sub {
    margin: 0.2rem 0 0.8rem;
    font-size: 0.9rem;
    color: rgba(245,245,247,0.85);
    text-align: center;
}

/* Grid – auf Mobile eine Spalte, Abstände klein halten */
.p4x-dashboard-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Einzelne Karten – heller Apple-Glass-Look */
.p4x-dashboard-card {
    position: relative;
    padding: 0.9rem 1.1rem 1.1rem;
    border-radius: 26px;

    background:
        linear-gradient(135deg,
            rgba(255,255,255,0.26),
            rgba(180,188,196,0.08)
        );
    border: 1px solid rgba(255,255,255,0.75);

    box-shadow:
        0 18px 40px rgba(0,0,0,0.90),
        inset 0 0 0.5px rgba(255,255,255,0.9);

    backdrop-filter: blur(26px) saturate(180%);
    -webkit-backdrop-filter: blur(26px) saturate(180%);

    display: flex;
    flex-direction: column;
    gap: 0.4rem;

    color: #f5f5f7;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}

.p4x-dashboard-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.95);
    box-shadow:
        0 24px 60px rgba(0,0,0,1),
        0 0 40px rgba(255,255,255,0.65);
    background:
        linear-gradient(135deg,
            rgba(255,255,255,0.32),
            rgba(190,198,206,0.16)
        );
}

/* Card-Titel & Beschreibung */
.p4x-dashboard-card-title {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    text-align: left;
    color: #f5f5f7;
}

.p4x-dashboard-card-sub {
    margin: 0.1rem 0 0.3rem;
    font-size: 0.82rem;
    line-height: 1.4;
    color: rgba(12,12,14,0.85); /* dunklerer Text für Lesbarkeit */
}

/* Öffnen-Button – wie der Login-Button, aber kleiner */
.p4x-dashboard-go {
    margin-top: 0.35rem;
    align-self: stretch;

    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.85);

    background:
        radial-gradient(circle at 0% 0%, rgba(255,255,255,0.60), transparent 55%),
        rgba(255,255,255,0.20);

    color: #ffffff;
    font-size: 0.88rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    text-align: center;

    box-shadow:
        0 14px 32px rgba(0,0,0,0.95),
        0 0 32px rgba(255,255,255,0.80),
        inset 0 0 14px rgba(255,255,255,0.55);

    cursor: pointer;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease;
}

.p4x-dashboard-go:hover {
    transform: translateY(-1px);
    background:
        radial-gradient(circle at 0% 0%, rgba(255,255,255,0.75), transparent 55%),
        rgba(255,255,255,0.30);
    box-shadow:
        0 20px 45px rgba(0,0,0,1),
        0 0 46px rgba(255,255,255,0.95);
}

.p4x-dashboard-go:active {
    transform: translateY(1px) scale(0.98);
    box-shadow:
        0 10px 26px rgba(0,0,0,0.9),
        0 0 28px rgba(255,255,255,0.75);
}

/* Credits-Pill links oben – zweizeilig & im Glas-Stil */
.p4x-credits {
    position: absolute;
    top: 10px;
    left: 6px;              /* weiter nach links, weg von der Weltkugel */
    z-index: 12;

    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;

    padding: 4px 10px;      /* schlanker, damit er kürzer ist */
    border-radius: 999px;

    font-family: inherit;
    font-size: 0.7rem;
    line-height: 1.1;

    color: #ffffff;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.08); /* heller Glas-Look */
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.55),
        0 0 20px rgba(255, 255, 255, 0.18);
}

.p4x-credits-label {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 600;
    opacity: 0.95;
    white-space: nowrap;
}

.p4x-credits-value {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    opacity: 1;
}

/* ============================================================
   MOBILE DASHBOARD – alles kompakt, 3 Karten sichtbar
   ============================================================ */

@media (max-width: 768px) {

    /* Topbar etwas kleiner, damit oben Platz für Titel bleibt */
    .p4x-topbar {
        top: 0.7rem;
        right: 0.7rem;
        padding: 10px 22px;
        transform: scale(0.84);
        transform-origin: top right;
    }

    .p4x-credits {
        top: 0.8rem;
        left: 0.8rem;
        padding: 0.35rem 0.9rem;
        font-size: 0.76rem;
    }

    .p4x-dashboard-wrapper {
        padding-top: 4.5rem;
        padding-bottom: 0.8rem;
    }

    .p4x-dashboard-inner {
        max-width: 360px;
        gap: 0.8rem;
    }

    .p4x-dashboard-title {
        font-size: 1.05rem;
        letter-spacing: 0.24em;
        margin-bottom: 0.1rem;
    }

    .p4x-dashboard-sub {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .p4x-dashboard-grid {
        gap: 0.55rem;
    }

    .p4x-dashboard-card {
        padding: 0.75rem 0.9rem 0.9rem;
        border-radius: 20px;
        box-shadow: 0 12px 26px rgba(0,0,0,0.9);
        gap: 0.35rem;
    }

    .p4x-dashboard-card-title {
        font-size: 0.88rem;
        letter-spacing: 0.24em;
    }

    .p4x-dashboard-card-sub {
        font-size: 0.78rem;
        line-height: 1.35;
    }

    .p4x-dashboard-go {
        padding: 0.48rem 1rem;
        font-size: 0.8rem;
        letter-spacing: 0.26em;
    }
}

    .p4x-credits {
        top: 0.8rem;
        left: 0.8rem;
        padding: 0.25rem 0.6rem;
        font-size: 0.7rem;
    }

    .p4x-dashboard-wrapper {
        padding-top: 3.4rem;    /* weniger Luft oben */
        padding-bottom: 0.8rem; /* unten enger */
    }

    .p4x-dashboard-inner {
        max-width: 360px;
        margin: 0 auto;
    }

    .p4x-dashboard-title {
        font-size: 1.05rem;
        letter-spacing: 0.20em;
        margin-bottom: 0.1rem;
    }

    .p4x-dashboard-sub {
        font-size: 0.8rem;
        margin-top: 0.1rem;
        margin-bottom: 0.6rem;
    }

    .p4x-dashboard-grid {
        gap: 0.55rem; /* sehr wenig Abstand, damit alles reinpasst */
    }

    .p4x-dashboard-card {
        padding: 0.75rem 0.9rem 0.9rem;
        border-radius: 18px;
        transform: scale(0.94);
        transform-origin: center;
        box-shadow: 0 12px 26px rgba(0,0,0,0.9);
    }

    .p4x-dashboard-card-title {
        font-size: 0.9rem;
        letter-spacing: 0.18em;
        margin-bottom: 0.15rem;
    }

    .p4x-dashboard-card-sub {
        font-size: 0.78rem;
        line-height: 1.35;
        margin-bottom: 0.25rem;
    }

    .p4x-dashboard-go {
        margin-top: 0.3rem;
        padding: 0.45rem 1rem;
        font-size: 0.82rem;
        letter-spacing: 0.18em;
    }
}

/* ============================================================
   TOPBAR – kompakt in einer Reihe (Credits + Globe + Home + Mode + Logout)
   ============================================================ */

/* Credits-Pill oben links */
.p4x-credits {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;

    padding: 0.35rem 0.9rem;
    border-radius: 999px;

    background:
        radial-gradient(circle at 0% 0%, rgba(255,255,255,0.65), transparent 65%),
        rgba(110,110,120,0.38);
    border: 1px solid rgba(255,255,255,0.90);

    color: #f5f5f7;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;

    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);

    white-space: nowrap;
    z-index: 25;
}

/* Topbar nur noch als "unsichtbare" Row, keine große Glasfläche mehr */
.p4x-topbar {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;

    display: flex;
    align-items: center;
    gap: 0.45rem;

    padding: 0;              /* keine eigene Pill mehr */
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;

    z-index: 24;
}

/* runde Globe/Home-Buttons leicht verkleinert */
.p4x-btn-glass-round {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.85);
    box-shadow:
        0 0 22px rgba(255,255,255,0.75),
        inset 0 0 18px rgba(255,255,255,0.50);

    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.p4x-btn-glass-round:hover {
    background: rgba(255,255,255,0.35);
    box-shadow:
        0 0 30px rgba(255,255,255,0.95),
        inset 0 0 22px rgba(255,255,255,0.60);
    transform: translateY(-1px);
}

/* ============================================================
   Mode-Toggle (Light/Dark) – runder Icon-Button Sonne/Mond
   ============================================================ */

/* nutzt Basis-Style von .p4x-btn-glass-round, wird nur etwas kleiner */
.p4x-mode-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    /* etwas eigener Look, aber passend zu Globus/Home */
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.38), rgba(4,6,10,0.92));
    border: 1px solid rgba(255,255,255,0.80);
    box-shadow:
        0 7px 20px rgba(0,0,0,0.80),
        0 0 18px rgba(255,255,255,0.22);
    cursor: pointer;
    overflow: hidden;
}

/* Icon-Container */
.p4x-mode-btn .p4x-mode-icon-inner {
    display: inline-block;
    font-size: 1.2rem;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Light: Sonne */
body[data-theme="light"] .p4x-mode-btn .p4x-mode-icon-inner::before {
    content: "☀️";
}

/* Dark: Mond */
body[data-theme="dark"] .p4x-mode-btn .p4x-mode-icon-inner::before {
    content: "🌙";
}

/* kleiner Tap-Effekt */
.p4x-mode-btn:active .p4x-mode-icon-inner {
    transform: scale(0.86);
    opacity: 0.75;
}

/* Logout-Button etwas kleiner, eigene Pill */
.p4x-logout-btn {
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.85);

    background:
        radial-gradient(circle at 0% 0%, rgba(255,255,255,0.65), transparent 55%),
        rgba(40,40,44,0.75);

    color: #ffffff;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    box-shadow:
        0 12px 26px rgba(0,0,0,0.9),
        0 0 24px rgba(255,255,255,0.65);

    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.p4x-logout-btn:hover {
    background:
        radial-gradient(circle at 0% 0%, rgba(255,255,255,0.80), transparent 55%),
        rgba(55,55,60,0.85);
    box-shadow:
        0 16px 36px rgba(0,0,0,1),
        0 0 32px rgba(255,255,255,0.90);
    transform: translateY(-1px);
}

/* Mobile – noch etwas kompakter */
@media (max-width: 768px) {
    .p4x-topbar {
        top: 0.6rem;
        right: 0.6rem;
        gap: 0.35rem;
        transform: none;
    }

    .p4x-credits {
        top: 0.6rem;
        left: 0.6rem;
        padding: 0.3rem 0.8rem;
        font-size: 0.72rem;
    }

    .p4x-btn-glass-round {
        width: 42px;
        height: 42px;
    }

    .p4x-btn-glass-toggle {
        padding: 4px 12px;
        font-size: 0.75rem;
    }

    .p4x-logout-btn {
        padding: 4px 12px;
        font-size: 0.72rem;
    }
}

/* ============================================================
   DASHBOARD CARDS – Apple Glass Pure, aber gut lesbar
   ============================================================ */

.p4x-dashboard-card {
    position: relative;
    padding: 1.0rem 1.2rem 1.2rem;
    border-radius: 26px;

    /* etwas weniger transparent, mehr „echtes Glas“ */
    background:
        linear-gradient(135deg,
            rgba(255,255,255,0.84),
            rgba(214,222,232,0.80)
        );
    border: 1px solid rgba(255,255,255,0.95);

    box-shadow:
        0 20px 45px rgba(0,0,0,0.95),
        inset 0 0 1px rgba(255,255,255,0.9);

    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);

    display: flex;
    flex-direction: column;
    gap: 0.45rem;

    color: #111218;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}

.p4x-dashboard-card:hover {
    transform: translateY(-2px);
    border-color: #ffffff;
    box-shadow:
        0 26px 60px rgba(0,0,0,1),
        0 0 40px rgba(255,255,255,0.85);
    background:
        linear-gradient(135deg,
            rgba(255,255,255,0.92),
            rgba(224,232,240,0.88)
        );
}

.p4x-dashboard-card-title {
    margin: 0;
    font-size: 0.98rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    text-align: left;
    color: #151720;
}

.p4x-dashboard-card-sub {
    margin: 0.15rem 0 0.35rem;
    font-size: 0.86rem;
    line-height: 1.45;
    color: rgba(20,24,30,0.92);
}

/* Öffnen-Button – wie Login-Button, aber kleiner */
.p4x-dashboard-go {
    margin-top: 0.3rem;
    align-self: stretch;

    padding: 0.58rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.95);

    background:
        radial-gradient(circle at 0% 0%, rgba(255,255,255,0.85), transparent 55%),
        rgba(255,255,255,0.30);

    color: #111217;
    font-size: 0.86rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    text-align: center;

    box-shadow:
        0 14px 32px rgba(0,0,0,0.95),
        0 0 32px rgba(255,255,255,0.90),
        inset 0 0 14px rgba(255,255,255,0.65);

    cursor: pointer;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease;
}

.p4x-dashboard-go:hover {
    transform: translateY(-1px);
    background:
        radial-gradient(circle at 0% 0%, rgba(255,255,255,1), transparent 55%),
        rgba(255,255,255,0.40);
    box-shadow:
        0 20px 45px rgba(0,0,0,1),
        0 0 46px rgba(255,255,255,1);
}

.p4x-dashboard-go:active {
    transform: translateY(1px) scale(0.98);
    box-shadow:
        0 10px 26px rgba(0,0,0,0.9),
        0 0 26px rgba(255,255,255,0.85);
}

/* Mobile Feintuning – etwas kleiner, damit alles locker drauf passt */
@media (max-width: 768px) {
    .p4x-dashboard-inner {
        max-width: 360px;
    }

    .p4x-dashboard-card {
        padding: 0.8rem 1rem 1rem;
        border-radius: 22px;
        gap: 0.35rem;
    }

    .p4x-dashboard-card-title {
        font-size: 0.92rem;
    }

    .p4x-dashboard-card-sub {
        font-size: 0.8rem;
    }

    .p4x-dashboard-go {
        padding: 0.48rem 1.1rem;
        font-size: 0.8rem;
    }
}

/* ============================================================
   DASHBOARD – weiter nach unten, damit "HERZLICH WILLKOMMEN"
   klar sichtbar ist
   ============================================================ */

/* Desktop & allgemein */
.p4x-dashboard-wrapper {
    padding-top: 7rem;   /* vorher 5rem – mehr Abstand nach oben */
}

/* Mobile-Optimierung */
@media (max-width: 768px) {
    .p4x-dashboard-wrapper {
        padding-top: 6rem;   /* vorher ca. 3.4rem – jetzt deutlich tiefer */
    }

    /* Überschrift etwas lockerer setzen */
    .p4x-dashboard-title {
        margin-top: 0.4rem;
        margin-bottom: 0.5rem;
    }

    .p4x-dashboard-sub {
        margin-bottom: 0.8rem;
    }
}

/* ============================================================
   FEINTUNING: Dashboard Headline + Logout-Button
   ============================================================ */

/* --- Headline größer & besser lesbar --- */
.p4x-dashboard-title {
    font-size: 2.1rem;          /* größer als vorher */
    letter-spacing: 0.22em;     /* etwas mehr spacing */
    text-transform: uppercase;
}

.p4x-dashboard-sub {
    font-size: 1.05rem;
    color: rgba(245,245,247,0.92);
}

/* Mobile extra gut lesbar */
@media (max-width: 768px) {
    .p4x-dashboard-title {
        font-size: 1.35rem;
        letter-spacing: 0.22em;
        margin-bottom: 0.4rem;
    }

    .p4x-dashboard-sub {
        font-size: 0.95rem;
        margin-bottom: 0.9rem;
    }
}

/* --- Logout-Button verkleinern --- */
/* (Klasse kommt aus der Topbar-HTML des Plugins) */
.p4x-btn-logout {
    padding: 8px 18px;
    font-size: 0.85rem;
    min-width: auto;
}

/* Logout auf Handy noch kompakter */
@media (max-width: 768px) {
    .p4x-btn-logout {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}

/* ============================================================
   FEINTUNING: Dashboard-Texte (Willkommen + Untertitel)
   ============================================================ */

.p4x-dashboard-title {
    margin: 0;
    font-size: 2.1rem;          /* groß */
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 700;           /* fetter */
    color: #111111;             /* schwarz */
    text-shadow: none;          /* Glow weg, damit klarer Text */
}

.p4x-dashboard-sub {
    margin: 0.25rem 0 1rem;
    font-size: 1.05rem;
    font-weight: 500;           /* etwas fetter */
    color: #222222;             /* dunkles Grau/fast schwarz */
    text-shadow: none;
}

/* Mobil-Feintuning */
@media (max-width: 768px) {
    .p4x-dashboard-title {
        font-size: 1.4rem;
        letter-spacing: 0.22em;
    }

    .p4x-dashboard-sub {
        font-size: 0.98rem;
    }
}

/* ============================================================
   FEINTUNING: Logout-Button Größe
   ============================================================ */

/* Logout-Button in der Topbar – alle bekannten Varianten abdecken */
.p4x-topbar [data-logout],
.p4x-topbar .p4x-btn-logout,
.p4x-topbar .p4x-logout-btn,
.p4x-topbar button.logout,
.p4x-topbar a.logout {
    padding: 10px 22px;   /* mittelgroß */
    font-size: 0.9rem;
    min-width: auto;
}

/* auf Handy leicht kompakter */
@media (max-width: 768px) {
    .p4x-topbar [data-logout],
    .p4x-topbar .p4x-btn-logout,
    .p4x-topbar .p4x-logout-btn,
    .p4x-topbar button.logout,
    .p4x-topbar a.logout {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
}

/* ============================================================
   MODULE SEITEN – Funktionsanalyse / Prognose / Trading Setup
   ============================================================ */

.p4x-module-wrapper {
    position: relative;
    min-height: 100vh;
    padding: 5.5rem 1.5rem 2.5rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.p4x-module-card {
    width: 100%;
    max-width: 780px;
    padding: 2.0rem 2.0rem 2.2rem;

    border-radius: 28px;

    background:
        linear-gradient(145deg,
            rgba(255,255,255,0.30),
            rgba(188,198,210,0.14)
        );
    border: 1px solid rgba(255,255,255,0.90);

    box-shadow:
        0 26px 64px rgba(0,0,0,0.95),
        inset 0 0 1px rgba(255,255,255,0.95);

    backdrop-filter: blur(30px) saturate(190%);
    -webkit-backdrop-filter: blur(30px) saturate(190%);

    color: #111219;
}

/* kleiner Header oben in der Karte */
.p4x-module-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.4rem;
}

.p4x-module-logo {
    font-size: 0.78rem;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: rgba(15,17,24,0.9);
}

/* Seitentitel */
.p4x-module-title {
    margin: 0 0 1.4rem;
    font-size: 1.55rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #151720;
}

/* Eingabe-Zeile (Coin + GO) */
.p4x-input-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.6rem;
}

.p4x-coin-input {
    flex: 1;
    padding: 0.85rem 1.1rem;
    border-radius: 999px;

    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(180,188,196,0.85);

    color: #101218;
    font-size: 0.98rem;
    outline: none;

    box-shadow:
        0 16px 32px rgba(0,0,0,0.4),
        inset 0 0 12px rgba(255,255,255,0.8);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease;
}

.p4x-coin-input::placeholder {
    color: rgba(40,46,58,0.75);
}

.p4x-coin-input:focus {
    border-color: #111219;
    box-shadow:
        0 18px 40px rgba(0,0,0,0.55),
        0 0 0 1px rgba(17,18,25,0.18);
}

/* GO-Button – wie kleiner Login-Button */
.p4x-module-card .p4x-go-btn {
    padding: 0.7rem 1.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.95);

    background:
        radial-gradient(circle at 0% 0%, rgba(255,255,255,0.9), transparent 55%),
        rgba(255,255,255,0.32);

    color: #111217;
    font-size: 0.9rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;

    box-shadow:
        0 14px 32px rgba(0,0,0,0.95),
        0 0 30px rgba(255,255,255,0.90),
        inset 0 0 16px rgba(255,255,255,0.70);

    cursor: pointer;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease;
}

.p4x-module-card .p4x-go-btn:hover {
    transform: translateY(-1px);
    background:
        radial-gradient(circle at 0% 0%, rgba(255,255,255,1), transparent 55%),
        rgba(255,255,255,0.40);
    box-shadow:
        0 20px 45px rgba(0,0,0,1),
        0 0 46px rgba(255,255,255,1);
}

.p4x-module-card .p4x-go-btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow:
        0 10px 26px rgba(0,0,0,0.9),
        0 0 26px rgba(255,255,255,0.85);
}

/* Ausgabe-Block – großer, klar lesbarer Bereich */
.p4x-output-block {
    margin-top: 0.4rem;
    margin-bottom: 1.4rem;
    padding: 1.2rem 1.1rem 1.3rem;

    border-radius: 22px;

    background: rgba(5,7,16,0.88);
    border: 1px solid rgba(255,255,255,0.20);

    box-shadow:
        0 20px 40px rgba(0,0,0,0.95),
        inset 0 0 0 1px rgba(255,255,255,0.06);

    color: #f5f5f7;
}

.p4x-output-title {
    margin: 0 0 0.6rem;
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(245,245,247,0.78);
}

.p4x-output {
    min-height: 220px;
    font-size: 0.95rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

/* Mobile: Modul-Seiten etwas enger */
@media (max-width: 768px) {
    .p4x-module-wrapper {
        padding-top: 4.8rem;
        padding-bottom: 1.6rem;
    }

    .p4x-module-card {
        padding: 1.6rem 1.4rem 1.8rem;
        border-radius: 22px;
    }

    .p4x-module-title {
        font-size: 1.25rem;
        letter-spacing: 0.16em;
    }

    .p4x-coin-input {
        border-radius: 18px;
    }
}

/* ============================================================
   FRONTEND ADMIN PANEL – Glas-Layout (Desktop + Mobile)
   ============================================================ */

/* komplette Admin-Seite (Frontend-Admin-Shortcode) */
.p4x-admin-page {
    min-height: 100vh;
    padding-top: 5rem;      /* Platz für Topbar */
    padding-bottom: 3rem;
    display: flex;
    justify-content: center;
}

/* Wrapper für alle Admin-Karten */
.p4x-admin-wrapper {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

/* Hinweis-Badge oben */
.p4x-admin-notice {
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.35);
    color: #e9fff2;
    font-size: 0.9rem;
    text-align: center;
    backdrop-filter: blur(18px);
}

/* einzelne Card */
.p4x-admin-card {
    padding: 1.4rem 1.7rem 1.7rem;
    border-radius: 26px;
    background:
        linear-gradient(135deg,
            rgba(255,255,255,0.78),
            rgba(210,222,234,0.85)
        );
    border: 1px solid rgba(255,255,255,0.95);
    box-shadow:
        0 20px 45px rgba(0,0,0,0.95),
        inset 0 0 1px rgba(255,255,255,0.9);
    backdrop-filter: blur(28px) saturate(190%);
    color: #111218;
}

/* Card-Titel */
.p4x-admin-title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

/* Form-Reihe */
.p4x-admin-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.9rem;
}

.p4x-admin-row label {
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #333;
}

/* Inputs, Selects, Textareas */
.p4x-admin-row input,
.p4x-admin-row select,
.p4x-admin-row textarea {
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
    outline: none;
    background: rgba(255,255,255,0.92);
}

.p4x-admin-row textarea {
    min-height: 80px;
    resize: vertical;
}

/* Button in Cards */
.p4x-admin-btn {
    margin-top: 0.6rem;
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
}

/* Log-Tabelle (Letzte Aktivitäten) */
.p4x-admin-log-table-wrapper {
    width: 100%;
    overflow-x: auto;          /* Mobile: horizontal scroll statt Layout-Bruch */
}

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

.p4x-admin-log-table thead th {
    text-align: left;
    padding: 0.4rem 0.3rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.76rem;
    color: #444;
}

.p4x-admin-log-table tbody td {
    padding: 0.35rem 0.3rem;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

/* ============================================================
   ADMIN – RESPONSIVE
   ============================================================ */

/* Mobile / Tablet */
@media (max-width: 768px) {

    .p4x-admin-page {
        padding-top: 4.4rem;
        padding-bottom: 2.1rem;
    }

    .p4x-admin-wrapper {
        padding: 0 1rem 2.3rem;
        gap: 1.4rem;
    }

    .p4x-admin-card {
        padding: 1rem 1.2rem 1.3rem;
        border-radius: 22px;
    }

    .p4x-admin-title {
        font-size: 0.9rem;
        letter-spacing: 0.20em;
    }

    .p4x-admin-row input,
    .p4x-admin-row select,
    .p4x-admin-row textarea {
        font-size: 0.86rem;
        padding: 0.5rem 0.8rem;
    }

    .p4x-admin-log-table {
        font-size: 0.76rem;
    }

    .p4x-admin-log-table thead th {
        padding: 0.32rem 0.25rem;
    }

    .p4x-admin-log-table tbody td {
        padding: 0.3rem 0.25rem;
    }
}

/* Größere Desktops – etwas mehr Luft */
@media (min-width: 1024px) {
    .p4x-admin-page {
        padding-top: 5.5rem;
        padding-bottom: 3.5rem;
    }

    .p4x-admin-wrapper {
        padding-top: 0.6rem;
        padding-bottom: 3.2rem;
    }

    .p4x-admin-card {
        padding: 1.6rem 1.9rem 1.9rem;
    }
}

/* ============================================================
   SCROLLING – in Modulseiten & Admin-Panel erlaubt
   ============================================================ */

/* Alle Modul-Seiten (Funktionsanalyse, Prognose, Trading, Admin) */
.p4x-module-wrapper {
    position: relative;
    max-height: 100vh;              /* Höhe = Bildschirm */
    overflow-y: auto;               /* vertikal scrollen erlaubt */
    -webkit-overflow-scrolling: touch; /* weiches Scrollen auf iOS */
    padding-bottom: 2.5rem;         /* unten etwas Luft */
}

/* Speziell Admin-Panel: etwas mehr Abstand oben/unten (falls gewünscht) */
.p4x-module-wrapper.p4x-admin-page {
    padding-top: 5rem;
    padding-bottom: 3rem;
}

/* Login-Startseite & Dashboard bleiben „fix“, kein Scrollen */
.p4x-start-wrapper,
.p4x-dashboard-wrapper {
    max-height: 100vh;
    overflow: hidden;
}

/* ============================================================
   MODUL: Coin-Eingabe + kleiner GO-Button
   ============================================================ */

.p4x-input-row {
    margin-top: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.p4x-coin-input {
    flex: 1 1 auto;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 0.65rem 0.95rem;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.80);
    box-shadow:
        0 10px 24px rgba(0,0,0,0.45),
        inset 0 0 1px rgba(255,255,255,0.9);
    outline: none;
}

.p4x-coin-input::placeholder {
    color: rgba(80,80,90,0.7);
}

.p4x-go-btn {
    flex: 0 0 auto;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.95);
    background:
        radial-gradient(circle at 0% 0%, rgba(255,255,255,0.90), transparent 55%),
        rgba(255,255,255,0.40);
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #111217;
    box-shadow:
        0 14px 26px rgba(0,0,0,0.85),
        0 0 26px rgba(255,255,255,0.9),
        inset 0 0 10px rgba(255,255,255,0.6);
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.p4x-go-btn:hover {
    transform: translateY(-1px);
    background:
        radial-gradient(circle at 0% 0%, rgba(255,255,255,1), transparent 55%),
        rgba(255,255,255,0.50);
    box-shadow:
        0 18px 32px rgba(0,0,0,1),
        0 0 32px rgba(255,255,255,1);
}

.p4x-go-btn:active {
    transform: translateY(1px) scale(0.97);
    box-shadow:
        0 10px 22px rgba(0,0,0,0.85),
        0 0 24px rgba(255,255,255,0.8);
}

/* ============================================================
   TradingView Loader – Candles + Prozent (realistischer)
   ============================================================ */

.p4x-loader-wrapper {
    margin-top: 1.2rem;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1.4rem;

    /* kein Rahmen/Kasten */
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;

    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.p4x-loader-wrapper.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Candles links – schmal, viele, wie Minichart */
.p4x-candle-strip {
    flex: 0 0 auto;
    width: 190px;          /* etwas breiter → mehr Kerzen */
    height: 82px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

/* einzelne Candle – Basis */
.p4x-candle {
    position: relative;
    width: 6px;
    border-radius: 3px;
    margin: 0 2px;
    transform-origin: bottom center;

    /* keine Keyframe-Animation mehr – Höhe wird per JS geändert */
    transition: height 0.25s ease;
}

/* Docht */
.p4x-candle::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -10px;
    bottom: -10px;
    width: 2px;
    background: rgba(255,255,255,0.85);
}

/* grün (Bull) */
.p4x-candle-up {
    background: linear-gradient(180deg,#46ff9c 0%,#009850 100%);
    box-shadow:
        0 0 8px rgba(0,255,150,0.9),
        0 0 18px rgba(0,255,150,0.55);
}

/* rot (Bear) */
.p4x-candle-down {
    background: linear-gradient(180deg,#ff6b6b 0%,#b62323 100%);
    box-shadow:
        0 0 8px rgba(255,107,107,0.9),
        0 0 18px rgba(255,107,107,0.55);
}

/* Prozent rechts */
.p4x-loader-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.15rem;
}

.p4x-loader-percent {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.12em;
}

/* Text "Ladefortschritt" ausblenden, um Platz zu sparen */
.p4x-loader-text {
    display: none;
}

/* Mobile */
@media (max-width: 768px) {
    .p4x-candle-strip {
        width: 160px;
        height: 72px;
    }

    .p4x-candle {
        width: 5px;
        margin: 0 1px;
    }

    .p4x-loader-percent {
        font-size: 1.15rem;
    }
}

/* ============================================================
   DESKTOP FIXES – Startseite, Paragraph-Button, Topbar, Module
   ============================================================ */

@media (min-width: 769px) {

    /* Startseite: Login & §-Button wie auf Mobile, nur für Desktop fixiert */
    .p4x-start-wrapper {
        align-items: center;
        justify-content: flex-end;
        padding-bottom: 11vh;
    }

    #p4x-login-main.p4x-btn-main {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 68vh;                  /* wie auf dem Handy */
    }

    .p4x-paragraph-btn {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 78vh;                  /* direkt UNTER Login */
        z-index: 30;
    }

    /* Modul-Seiten (Funktionsanalyse / Prognose / Trading):
       zentrierter Inhalt, angenehm lesbar auf Desktop */
    .p4x-module-wrapper {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding-top: 5.5rem;
        padding-bottom: 2.5rem;
        max-height: 100vh;
        overflow-y: auto;
    }

    .p4x-module-card {
        margin: 0 auto;
    }
}

/* ============================================================
   FINAL TOOLBAR LAYOUT – Credits links, Globe/Home/Mode/Logout rechts
   (gilt für alle Seiten nach Login)
   ============================================================ */

/* Credits-Pill oben links – überall gleich */
.p4x-credits {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;

    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;

    padding: 0.35rem 0.9rem;
    border-radius: 999px;

    background:
        radial-gradient(circle at 0% 0%, rgba(255,255,255,0.65), transparent 65%),
        rgba(110,110,120,0.38);
    border: 1px solid rgba(255,255,255,0.90);

    color: #f5f5f7;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;

    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);

    white-space: nowrap;
    z-index: 40;
}

.p4x-credits-label {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 600;
    opacity: 0.95;
    white-space: nowrap;
}

.p4x-credits-value {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    opacity: 1;
}

/* Topbar rechts – Globus, Home, Mode, Logout in einer Reihe */
.p4x-topbar {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;

    display: flex;
    align-items: center;
    gap: 0.45rem;

    padding: 0;
    margin: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;

    z-index: 40;
}

/* runde Globe/Home-Buttons */
.p4x-btn-glass-round {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.85);
    box-shadow:
        0 0 22px rgba(255,255,255,0.75),
        inset 0 0 18px rgba(255,255,255,0.50);

    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.p4x-btn-glass-round:hover {
    background: rgba(255,255,255,0.35);
    box-shadow:
        0 0 30px rgba(255,255,255,0.95),
        inset 0 0 22px rgba(255,255,255,0.60);
    transform: translateY(-1px);
}

/* Mode-Toggle (Sonne/Mond) in der Reihe */
.p4x-mode-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.38), rgba(4,6,10,0.92));
    border: 1px solid rgba(255,255,255,0.80);
    box-shadow:
        0 7px 20px rgba(0,0,0,0.80),
        0 0 18px rgba(255,255,255,0.22);
    cursor: pointer;
    overflow: hidden;
}

.p4x-mode-btn .p4x-mode-icon-inner {
    display: inline-block;
    font-size: 1.2rem;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Light: Sonne */
body[data-theme="light"] .p4x-mode-btn .p4x-mode-icon-inner::before {
    content: "☀️";
}

/* Dark: Mond */
body[data-theme="dark"] .p4x-mode-btn .p4x-mode-icon-inner::before {
    content: "🌙";
}

/* Tap-Effekt */
.p4x-mode-btn:active .p4x-mode-icon-inner {
    transform: scale(0.86);
    opacity: 0.75;
}

/* Logout-Button rechts außen */
.p4x-logout-btn,
.p4x-topbar [data-logout],
.p4x-topbar .p4x-btn-logout {
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.85);

    background:
        radial-gradient(circle at 0% 0%, rgba(255,255,255,0.65), transparent 55%),
        rgba(40,40,44,0.75);

    color: #ffffff;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    box-shadow:
        0 12px 26px rgba(0,0,0,0.9),
        0 0 24px rgba(255,255,255,0.65);

    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.p4x-logout-btn:hover,
.p4x-topbar [data-logout]:hover,
.p4x-topbar .p4x-btn-logout:hover {
    background:
        radial-gradient(circle at 0% 0%, rgba(255,255,255,0.80), transparent 55%),
        rgba(55,55,60,0.85);
    box-shadow:
        0 16px 36px rgba(0,0,0,1),
        0 0 32px rgba(255,255,255,0.90);
    transform: translateY(-1px);
}

/* Mobile feiner */
@media (max-width: 768px) {
    .p4x-topbar {
        top: 0.6rem;
        right: 0.6rem;
        gap: 0.35rem;
    }

    .p4x-credits {
        top: 0.6rem;
        left: 0.6rem;
        padding: 0.3rem 0.8rem;
        font-size: 0.72rem;
    }

    .p4x-btn-glass-round {
        width: 42px;
        height: 42px;
    }

    .p4x-mode-btn {
        width: 40px;
        height: 40px;
    }

    .p4x-logout-btn,
    .p4x-topbar [data-logout],
    .p4x-topbar .p4x-btn-logout {
        padding: 4px 12px;
        font-size: 0.74rem;
    }
}

/* ============================================================
   PROFILE OVERLAY (👤)
   ============================================================ */

/* ============================================================
   PROFILE OVERLAY (👤) – Apple Glass wie Modul-Seiten
   ============================================================ */

.p4x-profile-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    background: radial-gradient(circle at top, rgba(0,0,0,0.78), rgba(0,0,0,0.92));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 999;
}

.p4x-profile-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Panel = heller Glas-Card wie Modul-Box */
.p4x-profile-panel {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    padding: 1.6rem 1.5rem 1.5rem;
    border-radius: 28px;

    background:
        linear-gradient(145deg,
            rgba(255,255,255,0.94),
            rgba(214,222,232,0.90)
        );
    border: 1px solid rgba(255,255,255,0.96);

    box-shadow:
        0 26px 64px rgba(0,0,0,0.95),
        inset 0 0 1px rgba(255,255,255,0.95);

    backdrop-filter: blur(30px) saturate(190%);
    -webkit-backdrop-filter: blur(30px) saturate(190%);

    color: #111219;
    overflow-y: auto;
}

/* Close-Button oben rechts */
.p4x-profile-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: rgba(20,22,30,0.7);
    transition: transform 0.15s ease, color 0.15s ease;
}

.p4x-profile-close:hover {
    transform: scale(1.08);
    color: rgba(20,22,30,0.95);
}

/* Titel */
.p4x-profile-title {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #151720;
}

/* Sektionen & Zeilen */
.p4x-profile-section {
    margin-bottom: 1.1rem;
}

.p4x-profile-row {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.p4x-profile-label {
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(40,46,58,0.85);
}

.p4x-profile-value {
    font-weight: 600;
    color: #111219;
}

/* Inputs im Modul-Stil */
.p4x-profile-panel input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;

    background: rgba(255,255,255,0.96);
    border-radius: 16px;
    border: 1px solid rgba(180,188,196,0.90);

    color: #111219;
    outline: none;

    box-shadow:
        0 14px 30px rgba(0,0,0,0.35),
        inset 0 0 1px rgba(255,255,255,0.95);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    margin-bottom: 0.6rem;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.p4x-profile-panel input::placeholder {
    color: rgba(70,78,94,0.8);
}

.p4x-profile-panel input:focus {
    border-color: #111219;
    box-shadow:
        0 18px 40px rgba(0,0,0,0.55),
        0 0 0 1px rgba(17,18,25,0.18);
}

/* Buttons – wie kleine „Öffnen“/GO-Buttons */
.p4x-profile-btn-full,
.p4x-profile-panel button.p4x-profile-btn-full {
    width: 100%;
    margin-top: 0.15rem;
    margin-bottom: 0.75rem;
    padding: 0.7rem 1.4rem;

    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.98);

    background:
        radial-gradient(circle at 0% 0%, rgba(255,255,255,0.90), transparent 55%),
        rgba(255,255,255,0.32);

    color: #111217;
    font-size: 0.9rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-align: center;

    box-shadow:
        0 16px 36px rgba(0,0,0,0.95),
        0 0 30px rgba(255,255,255,0.96),
        inset 0 0 14px rgba(255,255,255,0.70);

    cursor: pointer;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease;
}

.p4x-profile-btn-full:hover {
    transform: translateY(-1px);
    background:
        radial-gradient(circle at 0% 0%, rgba(255,255,255,1), transparent 55%),
        rgba(255,255,255,0.40);
    box-shadow:
        0 22px 48px rgba(0,0,0,1),
        0 0 42px rgba(255,255,255,1);
}

.p4x-profile-btn-full:active {
    transform: translateY(1px) scale(0.97);
    box-shadow:
        0 12px 26px rgba(0,0,0,0.9),
        0 0 26px rgba(255,255,255,0.88);
}

/* Statusmeldung unten */
.p4x-profile-status {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    min-height: 1.2em;
    opacity: 0.85;
}

/* Profil-Button in der Topbar kann etwas enger bleiben */
.p4x-profile-btn {
    margin-left: 4px;
}

/* Mobile: Panel etwas kompakter */
@media (max-width: 768px) {
    .p4x-profile-panel {
        padding: 1.4rem 1.2rem 1.3rem;
        border-radius: 22px;
    }

    .p4x-profile-title {
        font-size: 1rem;
        letter-spacing: 0.18em;
    }

    .p4x-profile-panel input {
        font-size: 0.9rem;
        padding: 0.75rem 0.9rem;
    }

    .p4x-profile-btn-full {
        font-size: 0.84rem;
        letter-spacing: 0.20em;
        padding: 0.6rem 1.2rem;
    }
}

/* ============================================================
   INTRO VIDEO OVERLAY – Login-Startseite
   ------------------------------------------------------------
   - zeigt dein MP4 im Vollbild (wie Screenshot 1: Logo + Link)
   - UI (Topbar + Login + §) bleibt währenddessen unsichtbar
   - nach Ende/Zoom-out: Overlay fade-out, UI weich einblenden
   ============================================================ */

/* Vollbild-Overlay für das Video */
.p4x-intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* Video selbst: komplett sichtbar wie im Player (mit schwarzen Rändern) */
.p4x-intro-overlay video,
#p4x-intro-video {
    width: 100vw;
    height: 100vh;
    object-fit: contain; /* GANZES Bild + Logo + Link sichtbar */
    display: block;
}

/* Wenn JS fertig ist: Overlay ausblenden */
.p4x-intro-overlay.intro-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Solange das Intro läuft → Login-UI verstecken */
body.p4x-intro-running .p4x-start-wrapper,
body.p4x-intro-running .p4x-topbar,
body.p4x-intro-running #p4x-login-main,
body.p4x-intro-running #p4x-paragraph-btn {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* Sobald Intro fertig (JS setzt .intro-finished) → UI weich einblenden */
body.intro-finished .p4x-start-wrapper,
body.intro-finished .p4x-topbar,
body.intro-finished #p4x-login-main,
body.intro-finished #p4x-paragraph-btn {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.8s ease;
}

/* ============================================================
   FIX: Abstand Credits-Pill zu Topbar-Buttons (Mobile)
   ============================================================ */

@media (max-width: 768px) {

    /* Credits etwas kompakter + weiter nach oben */
    .p4x-credits {
        top: 0.4rem;              /* etwas höher */
        padding: 0.28rem 0.75rem; /* schmaler, also kürzer */
        font-size: 0.70rem;
        letter-spacing: 0.14em;
        max-width: 55vw;          /* nie breiter als ~ die Hälfte des Screens */
        white-space: nowrap;
    }

    /* Topbar leicht nach unten → kein Überlappen mehr */
    .p4x-topbar {
        top: 1.6rem;              /* unterhalb der Credits-Pill */
        right: 0.7rem;
        gap: 0.35rem;
    }
}

/* ganz kleine iPhones: Credits zusätzlich minimal skalieren */
@media (max-width: 400px) {
    .p4x-credits {
        transform-origin: left top;
        transform: scale(0.9);
    }
}

/* ============================================================
   TOPBAR FEINTUNING – Credits + Buttons gleiche Höhe, eine Reihe
   ============================================================ */

/* gemeinsame Höhe für Desktop */
:root {
    --p4x-topbar-size: 46px;
}

/* Credits-Pill: exakt diese Höhe, Inhalt zentriert */
.p4x-credits {
    min-height: var(--p4x-topbar-size);
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 4px;
    padding-bottom: 4px;
}

/* runde Icon-Buttons (Globus, Home, Profil, Mode) auf gleiche Höhe bringen */
.p4x-btn-glass-round,
.p4x-mode-btn {
    width: var(--p4x-topbar-size);
    height: var(--p4x-topbar-size);
}

/* Logout-Button in der Höhe an die Pill anpassen */
.p4x-logout-btn,
.p4x-topbar [data-logout],
.p4x-topbar .p4x-btn-logout {
    height: var(--p4x-topbar-size);
    display: inline-flex;
    align-items: center;
}

/* leichte vertikale Ausrichtung: Credits & Topbar genau in einer Linie */
.p4x-credits,
.p4x-topbar {
    top: 0.8rem;
}

/* Mobile: etwas kleiner, aber weiterhin gleiche Höhe für alle */
/* Mobile feiner */
@media (max-width: 768px) {
    .p4x-topbar {
        top: 0.6rem;
        right: 0.6rem;
        gap: 0.35rem;
    }

    /* Credits-Pill etwas schmaler + max-width,
       damit sie NICHT mehr in die Weltkugel hineinragt */
    .p4x-credits {
        top: 0.6rem;
        left: 0.6rem;

        padding: 0.24rem 0.65rem;      /* etwas weniger Breite */
        font-size: 0.70rem;
        max-width: 40vw;               /* Pill nimmt max. 40% der Breite */

        line-height: 1.2;
    }

    .p4x-credits-value {
        font-size: 0.82rem;
        letter-spacing: 0.09em;
    }

    .p4x-btn-glass-round {
        width: 42px;
        height: 42px;
    }

    .p4x-mode-btn {
        width: 40px;
        height: 40px;
    }

    .p4x-logout-btn,
    .p4x-topbar [data-logout],
    .p4x-topbar .p4x-btn-logout {
        padding: 4px 12px;
        font-size: 0.74rem;
    }
}

/* ============================================================
   FINAL FIX – mehr Abstand zwischen Credits-Pill & Weltkugel
   nur auf Handy
   ============================================================ */
@media (max-width: 768px) {

    /* Credits-Pill etwas weiter nach links und etwas schmaler */
    .p4x-credits {
        left: 0.35rem;           /* vorher ~0.6rem → weiter weg von den Icons */
        padding: 0.24rem 0.70rem;
    }

    .p4x-credits-label {
        font-size: 0.64rem;
        letter-spacing: 0.12em;  /* weniger Spread → schmaler */
    }

    .p4x-credits-value {
        font-size: 0.84rem;
    }

    /* Icon-Reihe leicht weiter nach rechts + etwas enger zusammen */
    .p4x-topbar {
        right: 0.35rem;          /* Icons ein Stück nach rechts schieben */
        gap: 0.30rem;            /* weniger Abstand zwischen den Kreisen */
    }
}

/* ============================================================
   FIX: Paragraph-Button (§) soll sich NICHT verschieben (iOS)
   ============================================================ */

/* Position fixieren + iOS-Standard-Styles abschalten */
#p4x-paragraph-btn {
    position: absolute;
    left: 50%;
    top: 78vh;
    transform: translateX(-50%) !important;

    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;

    background-color: transparent;  /* wir nutzen unser Glas-Design */
    border: none;                   /* keine extra Safari-Ränder */
}

/* Beim Antippen / Fokus: keine zusätzliche Bewegung / Umrandung */
#p4x-paragraph-btn:active,
#p4x-paragraph-btn:focus {
    transform: translateX(-50%) !important;
    outline: none;
    box-shadow: none; /* Safari-Glow verhindern, unser Style kommt von der Klasse */
}


/* ============================================================
   DASHBOARD CAROUSEL – Hauptmodule (Funktionsanalyse / Prognose / Trading)
   ============================================================ */

.p4x-dashboard-carousel {
    position: relative;
    width: 100%;
    margin-top: 0.6rem;
    padding: 0.4rem 0 0.6rem;
    overflow: visible;
}

/* Container-Höhe fixieren, da Slides absolut positioniert sind */
.p4x-carousel-track {
    position: relative;
    width: 100%;
    min-height: 260px;
}

/* Grundzustand: Karte ist leicht verkleinert und weichgezeichnet */
.p4x-carousel-slide {
    position: absolute;
    top: 0;
    left: 50%;

    transform: translateX(-50%) scale(0.9);
    opacity: 0;
    filter: blur(10px);

    transition:
        transform 0.35s ease,
        opacity 0.35s ease,
        filter 0.35s ease;

    pointer-events: none;   /* nur die aktive Mitte soll „klickbar“ sein */
}

/* Zentrale, aktive Karte – entspricht dem Referenzbild */
.p4x-carousel-slide.is-center {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    filter: blur(0px);
    z-index: 3;
    pointer-events: auto;
}

/* Linke Karte – leicht sichtbar, etwas nach links geschoben */
.p4x-carousel-slide.is-left {
    transform: translateX(calc(-50% - 55%)) scale(0.9);
    opacity: 0.55;
    filter: blur(12px);
    z-index: 2;
}

/* Rechte Karte – leicht sichtbar, etwas nach rechts geschoben */
.p4x-carousel-slide.is-right {
    transform: translateX(calc(-50% + 55%)) scale(0.9);
    opacity: 0.55;
    filter: blur(12px);
    z-index: 2;
}

/* Alle weiteren Karten (falls vorhanden) sind komplett ausgeblendet */
.p4x-carousel-slide.is-hidden {
    opacity: 0;
    filter: blur(14px);
    z-index: 1;
}

/* Pfeile links/rechts – Apple-Glass-Buttons wie in der Topbar */
.p4x-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 40px;
    height: 40px;
    border-radius: 999px;
    padding: 0;

    border: 1px solid rgba(255,255,255,0.85);
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.60), rgba(10,10,16,0.96));
    box-shadow:
        0 14px 32px rgba(0,0,0,0.95),
        0 0 18px rgba(255,255,255,0.80);

    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    line-height: 1;
    color: #0b0c10;

    cursor: pointer;
    z-index: 5;

    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease,
        opacity 0.16s ease;
}

.p4x-carousel-arrow--prev {
    left: 0.2rem;
}

.p4x-carousel-arrow--next {
    right: 0.2rem;
}

.p4x-carousel-arrow:hover {
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.82), rgba(18,18,26,0.98));
    box-shadow:
        0 18px 40px rgba(0,0,0,1),
        0 0 24px rgba(255,255,255,0.95);
    transform: translateY(calc(-50% - 1px));
}

.p4x-carousel-arrow:active {
    transform: translateY(calc(-50% + 1px)) scale(0.96);
    box-shadow:
        0 12px 26px rgba(0,0,0,0.9),
        0 0 18px rgba(255,255,255,0.75);
}

/* Punkt-Navigation unten mittig */
.p4x-carousel-dots {
    margin-top: 0.65rem;
    display: flex;
    justify-content: center;
    gap: 0.35rem;
}

.p4x-carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.80);
    background: rgba(255,255,255,0.20);
    box-shadow:
        0 4px 12px rgba(0,0,0,0.85),
        0 0 10px rgba(255,255,255,0.55);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: inline-block;
    transition:
        background 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease,
        width 0.18s ease;
}

.p4x-carousel-dot.is-active {
    width: 22px;
    background: rgba(255,255,255,0.95);
    box-shadow:
        0 6px 16px rgba(0,0,0,0.98),
        0 0 16px rgba(255,255,255,0.98);
}

/* Mobile-Finetuning – mehr Höhe & etwas engere Offsets */
@media (max-width: 768px) {

    .p4x-dashboard-carousel {
        margin-top: 0.4rem;
        padding-top: 0.2rem;
    }

    .p4x-carousel-track {
        min-height: 340px;
    }

    .p4x-carousel-slide.is-left {
        transform: translateX(calc(-50% - 52%)) scale(0.9);
    }

    .p4x-carousel-slide.is-right {
        transform: translateX(calc(-50% + 52%)) scale(0.9);
    }

    .p4x-carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        top: 52%;
    }

    .p4x-carousel-arrow--prev {
        left: 0.1rem;
    }

    .p4x-carousel-arrow--next {
        right: 0.1rem;
    }

    .p4x-carousel-dots {
        margin-top: 0.55rem;
    }
}

/* ============================================================
   PULSE4X – DASHBOARD CAROUSEL REFERENCE STYLE
   Mittige große Karte + links/rechts angedeutete Karten
   ============================================================ */

/* Wrapper: etwas nach unten, zentrierter Fokus wie im Referenzbild */
.p4x-dashboard-wrapper {
    position: relative;
    min-height: 100vh;
    padding: 5.5rem 1.5rem 2.2rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden; /* keine Scrollbars auf der Dashboard-Seite */
}

/* Innenbereich: schmale Säule mittig */
.p4x-dashboard-inner {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
}

/* Titel kannst du später im PHP/HTML ergänzen, falls gewünscht */
.p4x-dashboard-grid {
    width: 100%;
}

/* ============================================================
   CAROUSEL-GRUNDLAYOUT
   ============================================================ */

.p4x-dashboard-carousel {
    position: relative;
    width: 100%;
    max-width: 430px;
    margin: 1.2rem auto 0;
    padding: 0;
}

/* Track: enthält alle Slides übereinander, wir steuern via Klassen */
.p4x-carousel-track {
    position: relative;
    width: 100%;
    height: 430px; /* Höhe der großen Karte */
}

/* Basis für alle Slides */
.p4x-carousel-slide {
    position: absolute;
    top: 0;
    left: 50%;
    width: 84%;
    height: 100%;
    transform: translateX(-50%) scale(0.82);
    opacity: 0.22;
    filter: blur(2px);
    pointer-events: none;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease,
        filter 0.3s ease,
        box-shadow 0.3s ease;

    display: flex;
    flex-direction: column;
}

/* Mittlere Karte – aktiv, groß, scharf */
.p4x-carousel-slide.is-center,
.p4x-carousel-slide.is-active {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    filter: none;
    pointer-events: auto;
    z-index: 3;
}

/* Linke Karte – leicht sichtbar, kleiner, nach links versetzt */
.p4x-carousel-slide.is-left {
    transform: translateX(-140%) scale(0.78);
    opacity: 0.35;
    filter: blur(2px);
    z-index: 2;
}

/* Rechte Karte – leicht sichtbar, kleiner, nach rechts versetzt */
.p4x-carousel-slide.is-right {
    transform: translateX(40%) scale(0.78);
    opacity: 0.35;
    filter: blur(2px);
    z-index: 2;
}

/* Versteckte Slides (z.B. bei >3 Karten) */
.p4x-carousel-slide.is-hidden {
    opacity: 0;
    filter: blur(4px);
    pointer-events: none;
    z-index: 1;
}

/* ============================================================
   CARD-STYLE im Carousel – wie im Referenzbild
   ============================================================ */

.p4x-dashboard-card {
    padding: 1.6rem 1.8rem 1.9rem;
    border-radius: 32px;

    background: linear-gradient(145deg, rgba(211,215,223,0.95), rgba(158,166,178,0.92));
    border: 1px solid rgba(255,255,255,0.95);

    box-shadow:
        0 26px 60px rgba(0,0,0,0.95),
        inset 0 0 1px rgba(255,255,255,1);

    backdrop-filter: blur(32px) saturate(190%);
    -webkit-backdrop-filter: blur(32px) saturate(190%);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;

    color: #111218;
    text-align: center;
}

/* Modul-Titel („Funktionsanalyse“) – groß, uppercase */
.p4x-dashboard-card-title {
    margin: 0.35rem 0 0.2rem;
    font-size: 1.1rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

/* Untertitel – mittig, wie im Screenshot */
.p4x-dashboard-card-sub {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 260px;
}

/* Öffnen-Button unten in der Karte */
.p4x-dashboard-go {
    margin-top: 0.7rem;
    align-self: stretch;

    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.95);

    background:
        radial-gradient(circle at 0% 0%, rgba(255,255,255,0.90), transparent 55%),
        rgba(255,255,255,0.32);

    color: #111217;
    font-size: 0.85rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    text-align: center;

    box-shadow:
        0 16px 36px rgba(0,0,0,0.95),
        0 0 40px rgba(255,255,255,0.90),
        inset 0 0 16px rgba(255,255,255,0.70);

    cursor: pointer;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease;
}

.p4x-dashboard-go:hover {
    transform: translateY(-1px);
    background:
        radial-gradient(circle at 0% 0%, rgba(255,255,255,1), transparent 55%),
        rgba(255,255,255,0.40);
    box-shadow:
        0 22px 48px rgba(0,0,0,1),
        0 0 52px rgba(255,255,255,1);
}

.p4x-dashboard-go:active {
    transform: translateY(1px) scale(0.97);
    box-shadow:
        0 12px 28px rgba(0,0,0,0.9),
        0 0 30px rgba(255,255,255,0.85);
}

/* ============================================================
   PFEILE & DOTS
   ============================================================ */

.p4x-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;

    border: 1px solid rgba(255,255,255,0.85);
    background: rgba(0,0,0,0.35);
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow:
        0 12px 26px rgba(0,0,0,0.9),
        0 0 26px rgba(255,255,255,0.55);

    cursor: pointer;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease,
        opacity 0.16s ease;
    opacity: 0.85;
}

.p4x-carousel-arrow--prev {
    left: -8px;
}

.p4x-carousel-arrow--next {
    right: -8px;
}

.p4x-carousel-arrow:hover {
    background: rgba(0,0,0,0.55);
    transform: translateY(-50%) translateY(-1px);
    box-shadow:
        0 16px 32px rgba(0,0,0,1),
        0 0 32px rgba(255,255,255,0.75);
}

/* Dots unter der Karte */
.p4x-carousel-dots {
    margin-top: 0.8rem;
    display: flex;
    justify-content: center;
    gap: 0.45rem;
}

.p4x-carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,0.35);
    padding: 0;
    cursor: pointer;
    transition: width 0.16s ease, background 0.16s ease, opacity 0.16s ease;
    opacity: 0.7;
}

.p4x-carousel-dot.is-active {
    width: 18px;
    background: rgba(255,255,255,0.95);
    opacity: 1;
}

/* ============================================================
   RESPONSIVE – Mobile Feintuning
   ============================================================ */

@media (max-width: 768px) {
    .p4x-dashboard-wrapper {
        padding-top: 4.5rem;
        padding-bottom: 1.4rem;
    }

    .p4x-dashboard-inner {
        max-width: 360px;
    }

    .p4x-carousel-track {
        height: 380px;
    }

    .p4x-carousel-slide {
        width: 88%;
    }

    .p4x-carousel-slide.is-left {
        transform: translateX(-135%) scale(0.78);
    }

    .p4x-carousel-slide.is-right {
        transform: translateX(35%) scale(0.78);
    }

    .p4x-dashboard-card {
        border-radius: 28px;
        padding: 1.3rem 1.4rem 1.5rem;
    }

    .p4x-dashboard-card-title {
        font-size: 1rem;
    }

    .p4x-dashboard-card-sub {
        font-size: 0.86rem;
    }
} 

/* ============================================================
   DESKTOP LAYOUT – DASHBOARD & MODULES
   ============================================================ */

@media (min-width: 1024px) {

    /* Volle Höhe, Inhalt mittig zentriert */
    .p4x-dashboard-wrapper,
    .p4x-module-wrapper {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-top: 4.5rem;   /* Platz für Topbar / Credits */
        padding-bottom: 3rem;
    }

    /* Innerer Bereich auf eine schöne Breite begrenzen */
    .p4x-dashboard-inner {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    /* Modul-Karte zentriert */
    .p4x-module-card {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    /* Credits links oben fixieren */
    .p4x-credits {
        position: fixed;
        top: 20px;
        left: 24px;
        z-index: 50;
    }

    /* Topbar mit Buttons rechts oben fixieren */
    .p4x-topbar {
        position: fixed;
        top: 20px;
        right: 24px;
        left: auto;
        z-index: 50;
    }

    /* Etwas kompakter, damit die Buttons schön nebeneinander sitzen */
    .p4x-topbar .p4x-btn-glass-round {
        margin-left: 0.35rem;
        margin-right: 0;
    }

    .p4x-topbar .p4x-logout-btn {
        margin-left: 0.75rem;
    }

    /* Carousel auf Desktop noch etwas breiter wirken lassen */
    .p4x-dashboard-carousel {
        max-width: 520px;
    }

    .p4x-carousel-track {
        height: 440px;
    }
}

/* ============================================================
   DESKTOP LAYOUT – STARTSEITE / LOGIN
   ============================================================ */

@media (min-width: 1024px) {

    .p4x-start-wrapper {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-top: 3.5rem;   /* Platz für Topbar */
        padding-bottom: 3rem;
    }

    /* Logo-Blende bleibt schön mittig */
    .p4x-logo-block {
        margin-bottom: 2rem;
        text-align: center;
    }

    /* Login-Zentrum etwas nach unten schieben,
       damit auf großen Monitoren mehr vom Logo oben bleibt
       und der §-Button gut sichtbar ist */
    .p4x-center {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        margin-top: 3.5rem;    /* Haupt-Abstand nach oben */
        gap: 1rem;
    }

    /* Login-Panel im Overlay auf Desktop leicht nach unten gerückt */
    .p4x-login-panel {
        margin-top: 2.5rem;
        max-width: 420px;
        width: 100%;
    }
}