:root {
    --primary-pink: #ff1493;
    --vibrant-pink: #ff69b4;
    --soft-pink: #ffb6c1;
    --royal-gold: #ffd700;
    --electric-blue: #00d2ff;
    --neon-green: #39ff14;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --dark-text: #2c3e50;
}

body.bg-wealth {
    background: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
    background-attachment: fixed;
    color: var(--dark-text);
    font-family: 'Noto Sans SC', sans-serif;
    min-height: 100vh;
}

/* Personalized Brand Font */
.brand-personalized {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 2.2rem;
    letter-spacing: 2px;
}

/* Glass Navbar */
.glass-nav {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(15px);
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(to right, var(--primary-pink), var(--royal-gold), var(--electric-blue)) 1;
}

/* Time Badge Fix - More Contrast */
.time-badge {
    background: linear-gradient(135deg, var(--primary-pink), var(--vibrant-pink));
    color: white;
    border-radius: 50px;
    padding: 8px 20px;
    border: 2px solid white;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(255, 20, 147, 0.4);
}

.time-badge i {
    color: var(--royal-gold);
}

/* Modern Gradient Cards */
.modern-card {
    background: var(--glass-bg);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modern-card::before {
    content: '';
    position: absolute;
    top: -3px; left: -3px; right: -3px; bottom: -3px;
    background: linear-gradient(135deg, var(--primary-pink), var(--royal-gold), var(--electric-blue), var(--neon-green));
    background-size: 400% 400%;
    z-index: -1;
    border-radius: 23px;
    animation: gradient-border 8s ease infinite;
}

@keyframes gradient-border {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* Area sizing consistency */
.fixed-height-area {
    height: 550px !important;
    overflow-y: auto;
    font-size: 1.15rem;
}

.result-display {
    background: #ffffff;
    border: 2px dashed var(--soft-pink);
    border-radius: 15px;
    padding: 25px;
    line-height: 1.8;
    color: #333;
    font-weight: 600;
    white-space: pre-wrap; /* Preserve line breaks */
}

/* Personalized Buttons */
.btn-personalized {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-parse {
    background: linear-gradient(to right, #ff1493, #ff69b4);
    color: white !important;
    box-shadow: 0 5px 20px rgba(255, 20, 147, 0.4);
}

.btn-parse:hover {
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.6);
    transform: scale(1.03);
}

.btn-clear {
    background: white;
    color: var(--primary-pink) !important;
    border: 2px solid var(--primary-pink);
}

.btn-clear:hover {
    background: #fff0f5;
    transform: rotate(-2deg);
}

.btn-copy-alt {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: white !important;
}

.btn-copy-alt:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* Icons */
.icon-badge {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 15px;
}

.badge-pink { background: linear-gradient(135deg, #ff1493, #ff69b4); color: white; }
.badge-gold { background: linear-gradient(135deg, #ffd700, #daa520); color: white; }

/* Carousel */
.hero-wrapper {
    border-radius: 25px;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.hero-img {
    height: 250px;
    object-fit: cover;
}

/* Instruction Steps */
.step-item {
    background: white;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    border-left: 5px solid var(--electric-blue);
    transition: 0.3s;
}

.step-item:hover {
    background: #f0faff;
    transform: translateX(5px);
}

.step-digit {
    background: var(--electric-blue);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
}

/* Logo Animation */
.logo-spin {
    animation: spin 20s linear infinite;
    border: 3px solid var(--primary-pink);
    padding: 2px;
}

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

.brand-glow {
    color: var(--primary-pink);
    text-shadow: 0 0 15px rgba(255, 20, 147, 0.3);
}

/* Textarea Custom */
.custom-textarea {
    border: none !important;
    background: #fcfcfc !important;
    padding: 20px !important;
    font-weight: 600;
}

.custom-textarea:focus {
    box-shadow: none !important;
}