/**
 * Immobilien Bewertung Plugin - FRONTEND DELUXE
 * NEXT LEVEL DESIGN - Premium Edition
 * Version: 3.0.0 - Ultra Modern
 * 
 * Features:
 * ✦ 3D-Parallax Effekte
 * ✦ Liquid Gradients
 * ✦ Glowing Neon Elements
 * ✦ Smooth Micro-interactions
 * ✦ Particle Backgrounds
 * ✦ Magnetic Buttons
 * ✦ Floating Animations
 * ✦ Glassmorphism Cards
 */

/* ============================================
   CSS VARIABLEN - COSMIC PALETTE
   ============================================ */

:root {
    /* Hauptfarben - Cosmic Gradient */
    --ib-primary: #4158D0;
    --ib-secondary: #84B8F0;
    --ib-tertiary: #306FAB;
    --ib-quaternary: #0089DE;
    --ib-quinary: #00A2FF;
    
    /* Gradienten - Premium Collection */
    --ib-gradient-primary: linear-gradient(135deg, #4165D0 0%, #2C96F2 50%, #1D5B91 100%);
    --ib-gradient-secondary: linear-gradient(135deg, #527FC7 0%, #0F2C5E 100%);
    --ib-gradient-accent: linear-gradient(135deg, #223370 0%, #1D5B91 100%);
    --ib-gradient-cosmic: linear-gradient(135deg, #407594 0%, #1A77F0 50%, #007BFF 100%);
    --ib-gradient-liquid: linear-gradient(45deg, #4158D0, #6585E6, #418FD9, #0076DE, #273863);
    --ib-gradient-magic: radial-gradient(circle at 30% 30%, #4158D0, #50A0C8);
    
    /* Neon Akzente */
    --ib-neon-blue: rgba(65, 88, 208, 0.8);
    --ib-neon-pink: rgba(200, 80, 192, 0.8);
    --ib-neon-yellow: rgba(255, 204, 112, 0.8);
    
    /* Status Farben */
    --ib-success: #00b09b;
    --ib-warning: #f57c00;
    --ib-error: #f44336;
    --ib-info: #2196f3;
    
    /* Dark/Light Theme */
    --ib-dark: #1a1f2e;
    --ib-light: #ffffff;
    --ib-gray: #8a94b5;
    --ib-border: rgba(65, 88, 208, 0.1);
    
    /* Schatten - Premium Collection */
    --ib-shadow-xs: 0 2px 10px rgba(0, 0, 0, 0.02);
    --ib-shadow-sm: 0 5px 20px rgba(65, 88, 208, 0.05);
    --ib-shadow: 0 20px 40px rgba(65, 88, 208, 0.12);
    --ib-shadow-lg: 0 30px 60px rgba(65, 88, 208, 0.2);
    --ib-shadow-xl: 0 40px 80px rgba(65, 88, 208, 0.25);
    --ib-shadow-hover: 0 30px 50px rgba(65, 88, 208, 0.3);
    --ib-shadow-glow: 0 0 30px rgba(65, 88, 208, 0.4);
    
    /* Radien */
    --ib-radius-sm: 12px;
    --ib-radius: 20px;
    --ib-radius-lg: 30px;
    --ib-radius-xl: 40px;
    --ib-radius-full: 100px;
    
    /* Animationen */
    --ib-transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --ib-transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --ib-transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   GLOBAL STYLES - COSMIC BACKGROUND
   ============================================ */

.ib-container {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    color: var(--ib-dark);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Animated Cosmic Background */
.ib-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(65, 88, 208, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(200, 80, 192, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(255, 204, 112, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 60% 20%, rgba(0, 219, 222, 0.05) 0%, transparent 40%);
    animation: cosmicShift 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes cosmicShift {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* Floating Particles */
.ib-container::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.8) 1px, transparent 1px),
        radial-gradient(circle at 30% 50%, rgba(255,255,255,0.8) 1px, transparent 1px),
        radial-gradient(circle at 70% 80%, rgba(255,255,255,0.8) 1px, transparent 1px),
        radial-gradient(circle at 90% 30%, rgba(255,255,255,0.8) 1px, transparent 1px);
    background-size: 200px 200px;
    animation: particleFloat 30s linear infinite;
    pointer-events: none;
    opacity: 0.3;
    z-index: -1;
}

@keyframes particleFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-200px); }
}

/* ============================================
   TYPOGRAPHIE - PREMIUM
   ============================================ */

.ib-container h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: var(--ib-gradient-liquid);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% 300%;
    animation: gradientFlow 8s ease infinite;
    text-shadow: 0 10px 30px rgba(65, 88, 208, 0.2);
    letter-spacing: -0.02em;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.ib-container h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--ib-dark);
    position: relative;
    padding-bottom: 1rem;
    letter-spacing: -0.01em;
}

.ib-container h2::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--ib-gradient-primary);
    border-radius: 4px;
    animation: widthPulse 3s ease-in-out infinite;
}

.ib-container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 20px;
    background: var(--ib-gradient-primary);
    filter: blur(20px);
    opacity: 0.3;
}

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

.ib-container .title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--ib-gray);
    margin-bottom: 0.5rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.ib-container .title::before,
.ib-container .title::after {
    content: '✦';
    margin: 0 0.5rem;
    color: var(--ib-primary);
    opacity: 0.5;
}

/* ============================================
   OPTION CARDS - 3D MAGNETIC
   ============================================ */

.option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--ib-radius);
    padding: 2rem 0.5rem;
    cursor: pointer;
    transition: var(--ib-transition-bounce);
    text-align: center;
    height: 100%;
    min-height: 180px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--ib-shadow);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ib-gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.option-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: rotate 10s linear infinite;
}

.option-card:hover {
    transform: translateY(-15px) scale(1.05) rotateX(5deg);
    box-shadow: var(--ib-shadow-xl);
    border-color: transparent;
}

.option-card:hover::before {
    opacity: 0.1;
}

.option-card:hover::after {
    opacity: 1;
}

.option-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 1.2rem;
    opacity: 0.9;
    transition: var(--ib-transition-bounce);
    filter: drop-shadow(0 10px 20px rgba(65, 88, 208, 0.2));
    position: relative;
    z-index: 1;
}

.option-card:hover img {
    transform: scale(1.15) translateY(-5px);
    filter: drop-shadow(0 20px 30px rgba(65, 88, 208, 0.3));
}

.option-card p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ib-dark);
    margin: 0;
    position: relative;
    z-index: 1;
    transition: var(--ib-transition);
}

.option-card:hover p {
    color: var(--ib-primary);
}

.radio-input {
    display: none;
}

.radio-input:checked + .option-card {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--ib-shadow-glow);
    animation: cardPulse 2s infinite;
}

.radio-input:checked + .option-card::before {
    opacity: 0.15;
}

@keyframes cardPulse {
    0%, 100% { box-shadow: var(--ib-shadow-glow); }
    50% { box-shadow: 0 0 50px rgba(65, 88, 208, 0.6); }
}

/* ============================================
   EXTRAS GRID - GLOWING CARDS
   ============================================ */

.extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.option-card-extras {
    position: relative;
    text-align: center;
    animation: fadeInScale 0.5s ease-out;
    animation-fill-mode: both;
}

.option-card-extras:nth-child(1) { animation-delay: 0.1s; }
.option-card-extras:nth-child(2) { animation-delay: 0.2s; }
.option-card-extras:nth-child(3) { animation-delay: 0.3s; }
.option-card-extras:nth-child(4) { animation-delay: 0.4s; }
.option-card-extras:nth-child(5) { animation-delay: 0.5s; }
.option-card-extras:nth-child(6) { animation-delay: 0.6s; }
.option-card-extras:nth-child(7) { animation-delay: 0.7s; }
.option-card-extras:nth-child(8) { animation-delay: 0.8s; }

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

.option-card-extras input[type="checkbox"] {
    display: none;
}

.option-card-extras label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--ib-radius);
    cursor: pointer;
    transition: var(--ib-transition-bounce);
    position: relative;
    overflow: hidden;
    box-shadow: var(--ib-shadow);
}

.option-card-extras label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: var(--ib-gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.option-card-extras label:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--ib-shadow-lg);
    border-color: transparent;
}

.option-card-extras label:hover::before {
    opacity: 0.1;
}

.option-card-extras img {
    width: 40px;
    height: 40px;
    margin-bottom: 0.8rem;
    opacity: 0.8;
    transition: var(--ib-transition-bounce);
    filter: drop-shadow(0 5px 10px rgba(65, 88, 208, 0.1));
    position: relative;
    z-index: 1;
}

.option-card-extras label:hover img {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 10px 20px rgba(65, 88, 208, 0.3));
}

.option-card-extras p {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    position: relative;
    z-index: 1;
    color: var(--ib-dark);
    transition: var(--ib-transition);
}

.option-card-extras input[type="checkbox"]:checked + label {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 30px rgba(65, 88, 208, 0.3);
}

.option-card-extras input[type="checkbox"]:checked + label::before {
    opacity: 0.15;
}

.option-card-extras input[type="checkbox"]:checked + label p {
    color: var(--ib-primary);
    font-weight: 700;
}

/* ============================================
   MODERNE INPUTS - FLOATING MAGIC
   ============================================ */

.input-group-modern {
    position: relative;
    margin-bottom: 2rem;
}

.modern-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
    border: 2px solid rgba(65, 88, 208, 0.1);
    border-radius: var(--ib-radius);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    transition: var(--ib-transition-smooth);
    color: var(--ib-dark);
}

.modern-input:focus {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 5px rgba(65, 88, 208, 0.1), var(--ib-shadow);
    transform: translateY(-2px);
    background: white;
}

.input-label {
    position: absolute;
    left: 1.5rem;
    top: 1.2rem;
    color: var(--ib-gray);
    font-size: 1rem;
    transition: var(--ib-transition-smooth);
    pointer-events: none;
    background: transparent;
    padding: 0 0.5rem;
    font-weight: 500;
}

.modern-input:focus ~ .input-label,
.modern-input:not(:placeholder-shown) ~ .input-label {
    top: -0.6rem;
    left: 1rem;
    font-size: 0.8rem;
    color: var(--ib-primary);
    font-weight: 600;
    background: white;
    border-radius: 40px;
    padding: 0.2rem 0.8rem;
    box-shadow: 0 5px 15px rgba(65, 88, 208, 0.1);
}

/* ============================================
   RANGE SLIDER - PREMIUM
   ============================================ */

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--ib-primary), var(--ib-secondary), var(--ib-tertiary));
    border-radius: 4px;
    outline: none;
    position: relative;
    box-shadow: 0 5px 20px rgba(65, 88, 208, 0.2);
}

input[type="range"]::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 12px;
    background: inherit;
    filter: blur(10px);
    opacity: 0.5;
    z-index: -1;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    background: white;
    border: 3px solid transparent;
    border-image: var(--ib-gradient-primary);
    border-image-slice: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--ib-transition-bounce);
    box-shadow: var(--ib-shadow);
    position: relative;
    z-index: 2;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: var(--ib-shadow-glow);
    background: var(--ib-gradient-primary);
}

input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(0.95);
}

/* ============================================
   BUTTONS - MAGNETIC 3D
   ============================================ */

.btn {
    padding: 1rem 3rem;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--ib-transition-bounce);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover::after {
    opacity: 1;
    animation: rotate 8s linear infinite;
}

.btn-custom {
    background: var(--ib-gradient-primary);
    color: white;
    box-shadow: 0 10px 30px rgba(65, 88, 208, 0.4);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.btn-custom:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(65, 88, 208, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--ib-dark);
    border: 2px solid rgba(65, 88, 208, 0.2);
    box-shadow: var(--ib-shadow);
}

.btn-secondary:hover {
    background: white;
    border-color: var(--ib-primary);
    color: var(--ib-primary);
    transform: translateY(-5px);
    box-shadow: var(--ib-shadow-lg);
}

.button-wrapper {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    gap: 1rem;
}

/* ============================================
   CUSTOM ALERT SYSTEM - PREMIUM MODAL
   ============================================ */

.custom-alert-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: overlayFadeIn 0.3s ease;
}

@keyframes overlayFadeIn {
    from { opacity: 0; backdrop-filter: blur(0); }
    to { opacity: 1; backdrop-filter: blur(12px); }
}

.custom-alert {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: var(--ib-radius-xl);
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: var(--ib-shadow-xl);
    animation: alertPopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.custom-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--ib-gradient-primary);
    animation: borderFlow 3s linear infinite;
}

@keyframes borderFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes alertPopIn {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(50px);
    }
    50% {
        transform: scale(1.05) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.custom-alert-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: iconPop 0.5s ease 0.2s both;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

@keyframes iconPop {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.custom-alert-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--ib-dark);
    animation: slideUp 0.3s ease 0.3s both;
}

.custom-alert-message {
    color: var(--ib-gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    animation: slideUp 0.3s ease 0.4s both;
}

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

.custom-alert-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: slideUp 0.3s ease 0.5s both;
}

.custom-alert-button {
    padding: 0.8rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--ib-transition-bounce);
    font-size: 1rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.custom-alert-button.confirm {
    background: var(--ib-gradient-primary);
    color: white;
    box-shadow: 0 5px 20px rgba(65, 88, 208, 0.3);
}

.custom-alert-button.cancel {
    background: rgba(0, 0, 0, 0.05);
    color: var(--ib-dark);
    backdrop-filter: blur(5px);
}

.custom-alert-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--ib-shadow);
}

.custom-alert-button:active {
    transform: translateY(0);
}

/* ============================================
   TOAST NOTIFICATIONS - PREMIUM
   ============================================ */

.custom-toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.2rem 2rem;
    border-radius: var(--ib-radius-full);
    box-shadow: var(--ib-shadow-xl);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1000000;
    animation: toastSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-left: 4px solid var(--ib-info);
    min-width: 300px;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(100%) scale(0.8);
    }
}

.custom-toast.success { border-left-color: var(--ib-success); }
.custom-toast.error { border-left-color: var(--ib-error); }
.custom-toast.warning { border-left-color: var(--ib-warning); }
.custom-toast.info { border-left-color: var(--ib-info); }

.custom-toast-icon {
    font-size: 2rem;
    animation: toastIconPop 0.3s ease;
}

@keyframes toastIconPop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.custom-toast-message {
    color: var(--ib-dark);
    font-weight: 600;
    font-size: 1rem;
    flex: 1;
}

/* ============================================
   LIVE VALUE BOX - PREMIUM FLOATING
   ============================================ */

.live-value-box {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.2rem 2rem;
    border-radius: var(--ib-radius-full);
    box-shadow: var(--ib-shadow-xl);
    z-index: 99999;
    animation: valueFloat 3s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-right: 4px solid var(--ib-primary);
    min-width: 250px;
    transform-origin: right bottom;
}

@keyframes valueFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
}

.live-value-box::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--ib-gradient-primary);
    border-radius: inherit;
    opacity: 0.2;
    filter: blur(15px);
    z-index: -1;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.2; filter: blur(15px); }
    50% { opacity: 0.4; filter: blur(20px); }
}

.live-value-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ib-gray);
    font-weight: 600;
    margin-right: 0.8rem;
}

.live-value-amount {
    font-size: 1.6rem;
    font-weight: 900;
    background: var(--ib-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* ============================================
   LOCATION SECTION - COSMIC
   ============================================ */

.location-section {
    position: relative;
    overflow: hidden;
    padding: 4rem 3rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--ib-radius-xl);
    box-shadow: var(--ib-shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.float-decoration {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--ib-gradient-primary);
    opacity: 0.1;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(50px);
}

.float-decoration-1 {
    top: -100px;
    right: -100px;
    animation: floatCosmic 8s ease-in-out infinite;
}

.float-decoration-2 {
    bottom: -100px;
    left: -100px;
    animation: floatCosmic 10s ease-in-out infinite reverse;
}

@keyframes floatCosmic {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 30px) scale(1.1); }
    66% { transform: translate(30px, -30px) scale(0.9); }
}

/* ============================================
   FORM GRIDS - DYNAMIC
   ============================================ */

.form-grid,
.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .form-grid,
    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ============================================
   ANIMATIONEN - PREMIUM COLLECTION
   ============================================ */

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes tilt {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(1deg); }
    75% { transform: rotate(-1deg); }
}

/* ============================================
   DARK MODE - COSMIC DARK
   ============================================ */

.ib-theme-dark {
    --ib-dark: #ffffff;
    --ib-light: #1a1f2e;
    --ib-gray: #8a94b5;
    --ib-border: rgba(255, 255, 255, 0.1);
    background: #0a0c14;
    color: #ffffff;
}

.ib-theme-dark .option-card,
.ib-theme-dark .chart-card,
.ib-theme-dark .custom-alert,
.ib-theme-dark .location-section,
.ib-theme-dark .modern-input {
    background: rgba(26, 31, 46, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.ib-theme-dark .option-card p,
.ib-theme-dark .title {
    color: #ffffff;
}

.ib-theme-dark .modern-input {
    color: #ffffff;
}

.ib-theme-dark .input-label {
    color: var(--ib-gray);
}

.ib-theme-dark .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.ib-theme-dark .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--ib-primary);
}

/* ============================================
   RESPONSIVE DESIGN - ADAPTIVE
   ============================================ */

@media (max-width: 1024px) {
    .ib-container {
        padding: 30px 15px;
    }
    
    .ib-container h1 {
        font-size: 3rem;
    }
    
    .ib-container h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .ib-container {
        padding: 20px 15px;
    }
    
    .ib-container h1 {
        font-size: 2.5rem;
    }
    
    .ib-container h2 {
        font-size: 1.8rem;
    }
    
    .extras-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .option-card {
        min-height: 150px;
        padding: 1.5rem 0.5rem;
    }
    
    .option-card img {
        width: 48px;
        height: 48px;
    }
    
    .button-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .button-wrapper .btn {
        width: 100%;
    }
    
    .live-value-box {
        bottom: 20px;
        right: 20px;
        left: 20px;
        width: auto;
        border-radius: 40px;
    }
    
    .custom-toast {
        top: 20px;
        right: 20px;
        left: 20px;
        width: auto;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .ib-container h1 {
        font-size: 2rem;
    }
    
    .ib-container h2 {
        font-size: 1.5rem;
    }
    
    .extras-grid {
        grid-template-columns: 1fr;
    }
    
    .option-card {
        min-height: 130px;
    }
    
    .option-card img {
        width: 40px;
        height: 40px;
    }
    
    .custom-alert {
        padding: 2rem 1.5rem;
    }
    
    .custom-alert-icon {
        font-size: 3.5rem;
    }
    
    .custom-alert-title {
        font-size: 1.5rem;
    }
    
    .location-section {
        padding: 2rem 1.5rem;
    }
}

/* ============================================
   UTILITIES - PREMIUM
   ============================================ */

.text-gradient {
    background: var(--ib-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.neon-glow {
    box-shadow: 0 0 30px rgba(65, 88, 208, 0.3);
    animation: glowPulse 2s ease-in-out infinite;
}

/* Margin Utilities */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-6 { margin-bottom: 3rem; }

/* ============================================
   PRINT STYLES - PDF OPTIMIZED
   ============================================ */

@media print {
    .ib-container::before,
    .ib-container::after,
    .float-decoration,
    .custom-alert-overlay,
    .custom-toast,
    .live-value-box,
    .btn,
    .button-wrapper {
        display: none !important;
    }
    
    .option-card,
    .extras-grid,
    .location-section {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        background: white;
    }
    
    .ib-container h2::before,
    .ib-container h2::after {
        display: none;
    }
    
    .modern-input {
        border: 1px solid #ddd;
        background: white;
    }
}

/* ============================================
   LOADING ANIMATIONS
   ============================================ */

@keyframes loadingPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.loading {
    animation: loadingPulse 1.5s ease-in-out infinite;
    pointer-events: none;
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

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

::-webkit-scrollbar-track {
    background: rgba(65, 88, 208, 0.05);
    border-radius: 10px;
}

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

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