/* Radikal neu designtes, futuristisches Billing- & Rechnungs-System (Glassmorphism & Cyber-Fintech) */

:root {
    --neon-purple: #a78bfa;
    --neon-cyan: #22d3ee;
    --neon-pink: #f472b6;
    --neon-green: #10b981;
    --neon-rose: #f43f5e;
    --neon-amber: #fbbf24;
    
    --neon-purple-glow: 0 0 15px rgba(167, 139, 250, 0.35);
    --neon-cyan-glow: 0 0 15px rgba(34, 211, 238, 0.35);
    --neon-green-glow: 0 0 15px rgba(16, 185, 129, 0.35);
    --neon-rose-glow: 0 0 15px rgba(244, 63, 94, 0.4);
    --neon-amber-glow: 0 0 15px rgba(251, 191, 36, 0.35);
    
    --glass-bg: rgba(13, 10, 24, 0.4);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-border-hover: rgba(167, 139, 250, 0.3);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

@keyframes holographic-shine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes radial-pulse {
    0% { transform: scale(0.95); opacity: 0.2; }
    50% { transform: scale(1.05); opacity: 0.4; }
    100% { transform: scale(0.95); opacity: 0.2; }
}

@keyframes scanner-pulse {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@keyframes text-glow-pulse {
    0% { text-shadow: 0 0 5px rgba(167, 139, 250, 0.2); }
    50% { text-shadow: 0 0 15px rgba(167, 139, 250, 0.6); }
    100% { text-shadow: 0 0 5px rgba(167, 139, 250, 0.2); }
}

/* Main Container with Moving Background Blobs */
.cg-premium-billing {
    font-family: 'Outfit', 'Inter', sans-serif;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    padding: 10px;
    z-index: 1;
}

/* Cosmic Neon Backdrop Lights */
.cg-premium-billing::before, .cg-premium-billing::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.25;
}
.cg-premium-billing::before {
    background: radial-gradient(circle, var(--neon-purple) 0%, transparent 70%);
    top: -50px;
    left: 10%;
    animation: radial-pulse 8s infinite ease-in-out;
}
.cg-premium-billing::after {
    background: radial-gradient(circle, var(--neon-cyan) 0%, transparent 70%);
    bottom: -50px;
    right: 10%;
    animation: radial-pulse 10s infinite ease-in-out alternate;
}

/* Sleek Glassmorphic Navbar for Billing Sub-tabs */
.cg-pb-tab-navbar {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: rgba(13, 10, 24, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 16px;
    backdrop-filter: blur(20px);
}
.cg-pb-tab-navbar .billing-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.cg-pb-tab-navbar .billing-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
}
.cg-pb-tab-navbar .billing-tab.active {
    background: rgba(167, 139, 250, 0.12);
    border-color: rgba(167, 139, 250, 0.25);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(167, 139, 250, 0.15), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* Upper Dashboard Grid */
.cg-pb-header-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}
@media (max-width: 992px) {
    .cg-pb-header-row { grid-template-columns: 1fr; }
}

/* Stats Cards */
.cg-pb-stats-glass-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 600px) {
    .cg-pb-stats-glass-grid { grid-template-columns: 1fr; }
}

.cg-pb-glass-stat {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(25px) saturate(160%);
    border-radius: 20px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255,255,255,0.05);
}
.cg-pb-glass-stat:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(167, 139, 250, 0.15), inset 0 1px 1px rgba(255,255,255,0.1);
}
.cg-pb-glass-stat::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    pointer-events: none;
}
.cg-pb-stat-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--neon-purple);
    box-shadow: var(--neon-purple-glow);
    margin-bottom: 14px;
    transition: all 0.3s;
}
.cg-pb-glass-stat:hover .cg-pb-stat-icon-wrapper {
    transform: rotate(6deg) scale(1.08);
}
.cg-pb-stat-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}
.cg-pb-stat-value {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(90deg, #ffffff, rgba(255,255,255,0.85));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* Cyber holographic credit card */
.cg-pb-hologram-card {
    background: linear-gradient(135deg, rgba(16, 14, 32, 0.6) 0%, rgba(30, 20, 50, 0.4) 50%, rgba(13, 20, 40, 0.6) 100%);
    background-size: 200% 200%;
    animation: holographic-shine 12s infinite linear;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 22px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
    transition: all 0.4s ease;
    cursor: pointer;
}
.cg-pb-hologram-card:hover {
    transform: rotateY(8deg) rotateX(4deg) translateY(-4px);
    box-shadow: 0 20px 45px rgba(167, 139, 250, 0.18), inset 0 1px 3px rgba(255, 255, 255, 0.3);
    border-color: rgba(167, 139, 250, 0.4);
}
.cg-pb-hologram-card::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 60%);
    transform: rotate(30deg);
    pointer-events: none;
    transition: transform 0.8s ease;
}
.cg-pb-hologram-card:hover::after {
    transform: rotate(50deg) translate(20px, 20px);
}
.cg-pb-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.cg-pb-card-brand {
    font-size: 18px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #ffffff, rgba(255,255,255,0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.cg-pb-card-chip {
    width: 34px;
    height: 26px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 6px;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}
.cg-pb-card-chip::before {
    content: '';
    position: absolute;
    top: 4px; left: 6px; right: 6px; bottom: 4px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 2px;
}
.cg-pb-card-number {
    font-family: 'Courier New', Courier, monospace;
    font-size: 18px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.9);
    margin: 20px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.cg-pb-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.cg-pb-card-holder {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.6);
}
.cg-pb-card-holder span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-top: 2px;
}
.cg-pb-card-expiry {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    text-align: right;
}
.cg-pb-card-expiry span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-top: 2px;
}

/* Widgets & Grid Layout */
.cg-pb-main-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 24px;
}
@media (max-width: 900px) {
    .cg-pb-main-grid { grid-template-columns: 1fr; }
}

.cg-pb-widget-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(25px) saturate(160%);
    border-radius: 24px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255,255,255,0.05);
}
.cg-pb-widget-box:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.cg-pb-widget-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 14px;
}
.cg-pb-widget-title-row i {
    font-size: 20px;
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.cg-pb-widget-title-row h4 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
    text-transform: uppercase;
}

/* Withdrawal circular countdown widget */
.cg-pb-withdrawal-box {
    position: relative;
    background: linear-gradient(135deg, rgba(20, 10, 25, 0.5) 0%, rgba(13, 10, 24, 0.4) 100%);
    border-color: rgba(167, 139, 250, 0.12);
}
.cg-pb-circular-countdown-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 20px 0;
}
.cg-pb-circular-svg-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
}
.cg-pb-circular-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}
.cg-pb-circular-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.03);
    stroke-width: 8;
}
.cg-pb-circular-progress {
    fill: none;
    stroke: url(#timerGradient);
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.6));
}
.cg-pb-circular-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.cg-pb-circular-days {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    animation: text-glow-pulse 4s infinite;
}
.cg-pb-circular-days-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
}

/* Digital Ticking Timer */
.cg-pb-ticking-timer-wrapper {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 18px 0;
    font-family: 'Courier New', Courier, monospace;
}
.cg-pb-time-segment {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 6px 10px;
    text-align: center;
    min-width: 52px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.6);
}
.cg-pb-time-num {
    font-size: 18px;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: var(--neon-cyan-glow);
}
.cg-pb-time-lbl {
    font-size: 8px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    margin-top: 2px;
}

/* Action Buttons */
.cg-pb-btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid transparent;
}
.cg-pb-btn-danger-neon {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.15), rgba(244, 63, 94, 0.05));
    border-color: rgba(244, 63, 94, 0.35);
    color: #ff4d6d;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.1);
}
.cg-pb-btn-danger-neon:hover {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.3), rgba(244, 63, 94, 0.15));
    border-color: var(--neon-rose);
    color: #ffffff;
    box-shadow: var(--neon-rose-glow), 0 8px 25px rgba(244, 63, 94, 0.25);
    transform: translateY(-2px);
}
.cg-pb-btn-outline-glass {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
}
.cg-pb-btn-outline-glass:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--glass-border-hover);
    color: #ffffff;
    box-shadow: var(--neon-purple-glow);
    transform: translateY(-2px);
}
.cg-pb-btn-success-neon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    border-color: rgba(16, 185, 129, 0.35);
    color: #34d399;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
}
.cg-pb-btn-success-neon:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.15));
    border-color: var(--neon-green);
    color: #ffffff;
    box-shadow: var(--neon-green-glow), 0 8px 25px rgba(16, 185, 129, 0.25);
    transform: translateY(-2px);
}

/* Withdrawal Locked State */
.cg-pb-locked-lockbox {
    text-align: center;
    padding: 24px 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    margin-top: 10px;
}
.cg-pb-locked-lockbox i {
    font-size: 32px;
    color: rgba(255,255,255,0.15);
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    margin-bottom: 12px;
    display: inline-block;
}
.cg-pb-locked-lockbox h5 {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin: 0 0 6px 0;
}
.cg-pb-locked-lockbox p {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    line-height: 1.5;
    margin: 0;
}

/* GDPR Hub */
.cg-pb-gdpr-box {
    margin-top: 24px;
}
.cg-pb-gdpr-bullets {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}
.cg-pb-bullet {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.cg-pb-bullet i {
    color: var(--neon-green);
    text-shadow: var(--neon-green-glow);
    margin-top: 3px;
    font-size: 14px;
}
.cg-pb-bullet-content h6 {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 3px 0;
    color: #ffffff;
}
.cg-pb-bullet-content p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.4;
    margin: 0;
}

/* DSGVO Scanner Animation Overlay */
.cg-pb-scan-bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
    box-shadow: 0 0 15px var(--neon-green), 0 0 8px rgba(16, 185, 129, 0.8);
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}
.cg-pb-scanning .cg-pb-scan-bar {
    animation: scanner-pulse 2s infinite linear;
}

/* Invoices Timeline (Right Column) */
.cg-pb-timeline-wrapper {
    position: relative;
    padding-left: 20px;
}
.cg-pb-timeline-line {
    position: absolute;
    left: 7px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(180deg, var(--neon-purple) 0%, rgba(255,255,255,0.05) 100%);
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.2);
}

.cg-pb-timeline-glass-item {
    position: relative;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 18px;
    backdrop-filter: blur(15px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.cg-pb-timeline-glass-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(167, 139, 250, 0.25);
    box-shadow: 0 8px 30px rgba(167, 139, 250, 0.08);
}
.cg-pb-timeline-dot {
    position: absolute;
    left: -20px;
    top: 24px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--neon-purple);
    box-shadow: var(--neon-purple-glow);
    border: 2px solid #000;
}
.cg-pb-timeline-glass-item:hover .cg-pb-timeline-dot {
    background: var(--neon-cyan);
    box-shadow: var(--neon-cyan-glow);
}

/* Invoice Row Layout */
.cg-pb-inv-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.cg-pb-inv-info {
    display: flex;
    align-items: center;
    gap: 14px;
}
.cg-pb-inv-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
}
.cg-pb-timeline-glass-item:hover .cg-pb-inv-icon-box {
    color: var(--neon-cyan);
    border-color: rgba(34, 211, 238, 0.2);
}
.cg-pb-inv-texts h5 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 3px 0;
    color: #fff;
}
.cg-pb-inv-texts p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}
.cg-pb-inv-right-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.cg-pb-price-tag {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}
.cg-pb-status-badge {
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}
.cg-pb-status-badge.bezahlt {
    background: rgba(16, 185, 129, 0.1);
    color: var(--neon-green);
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.05);
}

.cg-pb-circle-dl {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.2s;
}
.cg-pb-circle-dl:hover {
    background: #ffffff;
    color: #000000;
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(255,255,255,0.4);
}
.cg-pb-chevron-expand {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    transition: transform 0.3s;
}
.cg-pb-timeline-glass-item.expanded .cg-pb-chevron-expand {
    transform: rotate(180deg);
}

/* Expandable Receipt Detail View */
.cg-pb-inv-details-expanded {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s;
}
.cg-pb-timeline-glass-item.expanded .cg-pb-inv-details-expanded {
    max-height: 400px;
    opacity: 1;
    margin-top: 16px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 16px;
}

.cg-pb-receipt {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.03);
}
.cg-pb-receipt-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.5);
}
.cg-pb-receipt-row.total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-weight: 700;
    color: #fff;
    font-size: 13px;
}
.cg-pb-receipt-meta {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    font-size: 10px;
    color: rgba(255,255,255,0.35);
    background: rgba(255, 255, 255, 0.01);
    padding: 10px;
    border-radius: 8px;
}
.cg-pb-receipt-meta strong {
    color: rgba(255,255,255,0.7);
    display: block;
    margin-bottom: 2px;
}

/* Filter controls */
.cg-pb-filter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.cg-pb-filter-group {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 4px;
    display: flex;
    gap: 4px;
}
.cg-pb-filter-pill {
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.2s;
}
.cg-pb-filter-pill.active {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
.cg-pb-filter-pill:hover:not(.active) {
    color: #fff;
    background: rgba(255, 255, 255, 0.02);
}

/* New CSS definitions for sub-tabs: Tarif, Abrechnung, Zahlung */

/* Tarif Plan Styling v4 (Asymmetric Glass Pass) */
.cg-pb-plan-card-v4 {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    background: linear-gradient(135deg, rgba(20, 16, 38, 0.6) 0%, rgba(13, 10, 24, 0.4) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
    backdrop-filter: blur(20px);
    align-items: center;
    position: relative;
    overflow: hidden;
}
@media (max-width: 768px) {
    .cg-pb-plan-card-v4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
.cg-pb-plan-card-v4::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    pointer-events: none;
}
.cg-pb-plan-left-v4 {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.cg-pb-plan-header-row-v4 {
    display: flex;
    align-items: center;
    gap: 16px;
}
.cg-pb-plan-logo-v4 {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--neon-purple), #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.4);
}
.cg-pb-plan-title-v4 h2 {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}
.cg-pb-plan-desc-v4 {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.5;
}
.cg-pb-plan-status-badge-v4 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 99px;
    color: var(--neon-green);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.05);
}
.cg-pb-plan-status-badge-v4::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
    display: inline-block;
}

.cg-pb-plan-details-v4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (max-width: 480px) {
    .cg-pb-plan-details-v4 {
        grid-template-columns: 1fr;
    }
}
.cg-pb-plan-detail-item-v4 {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.cg-pb-plan-detail-item-v4:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.cg-pb-plan-detail-item-v4 i {
    font-size: 16px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cg-pb-plan-detail-texts-v4 {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cg-pb-plan-detail-texts-v4 span {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.5px;
}
.cg-pb-plan-detail-texts-v4 strong {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
}

.cg-pb-tarif-details-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
    margin-top: 24px;
}
@media (max-width: 850px) {
    .cg-pb-tarif-details-layout { grid-template-columns: 1fr; }
}

/* Features List */
.cg-pb-feature-card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cg-pb-feature-bullet {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.01);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 14px;
}
.cg-pb-feature-bullet i {
    color: var(--neon-cyan);
    text-shadow: var(--neon-cyan-glow);
    font-size: 14px;
}
.cg-pb-feature-bullet span {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}

/* Forms & Inputs for Billing Address (Abrechnung) */
.cg-pb-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 600px) {
    .cg-pb-form-grid { grid-template-columns: 1fr; }
}
.cg-pb-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cg-pb-form-group.full-width {
    grid-column: span 2;
}
@media (max-width: 600px) {
    .cg-pb-form-group.full-width { grid-column: span 1; }
}
.cg-pb-form-group label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    letter-spacing: 1px;
}
.cg-pb-input, .cg-pb-select {
    height: 50px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 0 16px;
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: all 0.3s;
}
.cg-pb-input:focus, .cg-pb-select:focus {
    border-color: rgba(167, 139, 250, 0.5);
    box-shadow: 0 0 15px rgba(167,139,250,0.15);
}
.cg-pb-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Payment Hub Styling (Zahlung) */
.cg-pb-payment-method-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 18px;
    margin-bottom: 14px;
    transition: 0.3s;
}
.cg-pb-payment-method-item:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255, 255, 255, 0.1);
}
.cg-pb-pay-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.cg-pb-pay-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}
.cg-pb-pay-details h5 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px 0;
}
.cg-pb-pay-details p {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin: 0;
}
.cg-pb-badge-standard {
    padding: 4px 10px;
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.25);
    color: var(--neon-cyan);
    font-size: 9px;
    font-weight: 800;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.05);
}

.cg-pb-btn-text-danger {
    background: transparent;
    border: none;
    color: rgba(244, 63, 94, 0.7);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: 0.2s;
}
.cg-pb-btn-text-danger:hover {
    background: rgba(244, 63, 94, 0.1);
    color: var(--neon-rose);
}

.cg-pb-btn-text-sec {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: 0.2s;
}
.cg-pb-btn-text-sec:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* Accordion for adding payment methods */
.cg-pb-add-method-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    background: rgba(167, 139, 250, 0.05);
    border: 1px dashed rgba(167, 139, 250, 0.3);
    border-radius: 18px;
    color: var(--neon-purple);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}
.cg-pb-add-method-trigger:hover {
    background: rgba(167, 139, 250, 0.1);
    border-color: var(--neon-purple);
    box-shadow: var(--neon-purple-glow);
}

.cg-pb-add-method-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s;
    margin-top: 0;
}
.cg-pb-add-method-wrapper.open .cg-pb-add-method-body {
    max-height: 520px;
    opacity: 1;
    margin-top: 16px;
    border-top: 1px dashed rgba(255,255,255,0.06);
    padding-top: 18px;
}

/* Sub-Tab choices within add method */
.cg-pb-add-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}
@media (max-width: 500px) {
    .cg-pb-add-selector { grid-template-columns: repeat(2, 1fr); }
}
.cg-pb-add-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    cursor: pointer;
    color: rgba(255,255,255,0.6);
    transition: 0.2s;
}
.cg-pb-add-choice i {
    font-size: 18px;
}
.cg-pb-add-choice:hover {
    color: #fff;
    background: rgba(255,255,255,0.02);
}
.cg-pb-add-choice.active {
    background: rgba(34, 211, 238, 0.08);
    border-color: rgba(34, 211, 238, 0.3);
    color: var(--neon-cyan);
}
/* Brand-specific active states for premium selectors */
.cg-pb-add-choice[data-target="panelCard"].active {
    background: rgba(167, 139, 250, 0.08);
    border-color: rgba(167, 139, 250, 0.3);
    color: #a78bfa;
}
.cg-pb-add-choice[data-target="panelPayPal"].active {
    background: rgba(0, 112, 186, 0.08);
    border-color: rgba(0, 112, 186, 0.3);
    color: #0070ba;
}
.cg-pb-add-choice[data-target="panelSEPA"].active {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--neon-green);
}
.cg-pb-add-choice[data-target="panelKlarna"].active {
    background: rgba(255, 168, 205, 0.08);
    border-color: rgba(255, 168, 205, 0.3);
    color: #ffa8cd;
}

/* Styled Klarna Logo Badge */
.cg-pb-klarna-logo-badge {
    background: #ffa8cd;
    color: #0a0b10 !important;
    font-weight: 900;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: -0.3px;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    line-height: 1.2;
}
.cg-pb-add-choice:hover .cg-pb-klarna-logo-badge {
    transform: scale(1.1);
}


.cg-pb-choice-panel {
    display: none;
    background: rgba(0,0,0,0.2);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.03);
    animation: viewFadeIn 0.3s ease;
}
.cg-pb-choice-panel.active {
    display: block;
}

/* Custom Dropdown / Select Menus (Glassmorphic) */
.cg-custom-select {
    position: relative;
    width: 100%;
    z-index: 10;
}
/* Stacking context fixes for containers of open dropdowns */
.cg-custom-select-wrapper:has(.cg-custom-select.open),
.us-v3-form-group:has(.cg-custom-select.open),
.cg-pb-form-group:has(.cg-custom-select.open) {
    z-index: 1000 !important;
    position: relative;
}
.cg-custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 52px;
    padding: 0 18px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.cg-custom-select-trigger:hover,
.cg-custom-select.open .cg-custom-select-trigger {
    border-color: rgba(167, 139, 250, 0.5);
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.15);
}
.cg-custom-select-trigger span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cg-custom-select-trigger i {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease;
}
.cg-custom-select.open .cg-custom-select-trigger i {
    transform: rotate(180deg);
}
.cg-custom-select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(15, 12, 28, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(167, 139, 250, 0.05);
    backdrop-filter: blur(20px);
    z-index: 9999;
    max-height: 240px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.cg-custom-select.open .cg-custom-select-options {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.cg-custom-select-option {
    padding: 12px 18px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}
.cg-custom-select-option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}
.cg-custom-select-option.active {
    background: rgba(167, 139, 250, 0.15);
    color: var(--neon-purple);
    font-weight: 700;
}

/* Custom Scrollbar for Dropdown Option Lists */
.cg-custom-select-options::-webkit-scrollbar {
    width: 6px;
}
.cg-custom-select-options::-webkit-scrollbar-track {
    background: transparent;
}
.cg-custom-select-options::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}
.cg-custom-select-options::-webkit-scrollbar-thumb:hover {
    background: rgba(167, 139, 250, 0.6);
}

/* ═══════════════════════════════════════ */
/* KLARNA LOGO BADGE                       */
/* ═══════════════════════════════════════ */
.cg-pb-klarna-logo-badge {
    display: inline-block;
    background: #ffa8cd;
    color: #000;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 900;
    font-size: 13px;
    font-style: italic;
    letter-spacing: 0.2px;
    padding: 3px 8px;
    border-radius: 6px;
    line-height: 1.2;
    vertical-align: middle;
    box-shadow: 0 2px 8px rgba(255, 168, 205, 0.35);
    user-select: none;
}

/* Klarna tab active color override */
.cg-pb-tab-btn[data-tab="zahlung"].active .cg-pb-tab-icon,
.billing-tab.klarna-active {
    color: #ffa8cd;
}

/* Klarna choice selector styling */
.cg-pb-add-choice[data-target="panelKlarna"].active {
    border-color: rgba(255, 168, 205, 0.5) !important;
    background: rgba(255, 168, 205, 0.08) !important;
}

/* Active state for payment icon in Klarna methods list */
.cg-pb-pay-icon.klarna-active {
    background: rgba(255, 168, 205, 0.18) !important;
}
