/* ==========================================
   OSU! PP CALCULATOR - RHYTHM PULSE DESIGN
   Creative Gaming Neo-Brutalism Aesthetic
   By Creative Web Designer
   ========================================== */

/* ==========================================
   CUSTOM FONTS - Gaming Aesthetic
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* ==========================================
   CSS VARIABLES - Rhythm Pulse Theme
   ========================================== */
:root {
    /* Gaming Colors - High Contrast */
    --primary-neon: #FF1493;
    --primary-glow: rgba(255, 20, 147, 0.5);
    --secondary-neon: #00F0FF;
    --secondary-glow: rgba(0, 240, 255, 0.5);
    --accent-electric: #FFD700;
    --accent-lime: #39FF14;
    
    /* Dark Gaming Background */
    --bg-dark: #0A0A0F;
    --bg-darker: #050508;
    --surface-glass: rgba(20, 20, 30, 0.7);
    --surface-elevated: rgba(30, 30, 45, 0.8);
    --border-glow: rgba(255, 20, 147, 0.3);
    
    /* Text */
    --text-bright: #FFFFFF;
    --text-secondary: #B8B8D0;
    --text-muted: #7070A0;
    
    /* Effects */
    --glow-sm: 0 0 10px var(--primary-glow);
    --glow-md: 0 0 20px var(--primary-glow), 0 0 40px var(--primary-glow);
    --glow-lg: 0 0 30px var(--primary-glow), 0 0 60px var(--primary-glow), 0 0 90px var(--primary-glow);
    --glass-blur: blur(20px);
    
    /* Typography */
    --font-display: 'Orbitron', monospace;
    --font-body: 'Rajdhani', sans-serif;
    
    /* Animations */
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   ANIMATED GRADIENT BACKGROUND
   ========================================== */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-bright);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, 
            var(--bg-darker) 0%, 
            rgba(255, 20, 147, 0.1) 25%, 
            rgba(0, 240, 255, 0.1) 50%, 
            rgba(57, 255, 20, 0.1) 75%, 
            var(--bg-darker) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, 
            transparent, 
            transparent 2px, 
            rgba(255, 20, 147, 0.03) 2px, 
            rgba(255, 20, 147, 0.03) 4px);
    z-index: -1;
    pointer-events: none;
}

/* ==========================================
   PARTICLE EFFECTS CONTAINER
   ========================================== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary-neon);
    border-radius: 50%;
    box-shadow: var(--glow-sm);
    animation: float 10s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(100px); opacity: 0; }
}

/* ==========================================
   HEADER - Glowing Gaming Style
   ========================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1.5rem 0;
    background: var(--surface-glass);
    backdrop-filter: var(--glass-blur);
    border-bottom: 2px solid var(--border-glow);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px var(--primary-glow);
    letter-spacing: 2px;
    margin: 0;
    cursor: pointer;
    transition: transform 0.3s var(--ease-bounce);
}

.logo-text:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary-neon);
    background: transparent;
    color: var(--text-bright);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--ease-smooth);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-neon), transparent);
    transition: left 0.5s;
}

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

.btn:hover {
    box-shadow: var(--glow-md);
    transform: translateY(-2px);
}

/* ==========================================
   HERO SECTION - Epic Gaming Landing
   ========================================== */
.hero-section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    margin: 0 0 1rem 0;
    line-height: 1.1;
    background: linear-gradient(135deg, 
        var(--primary-neon) 0%, 
        var(--secondary-neon) 50%, 
        var(--accent-lime) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 80px var(--primary-glow);
    animation: titlePulse 2s ease-in-out infinite;
    letter-spacing: -2px;
}

@keyframes titlePulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0 0 2rem 0;
    letter-spacing: 1px;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.badge {
    padding: 0.75rem 1.5rem;
    background: var(--surface-glass);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glow);
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-bright);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s var(--ease-bounce);
}

.badge:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-md);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--accent-lime);
    border-radius: 50%;
    animation: pulseDot 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent-lime);
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.7; }
}

.cta-hero {
    padding: 1.25rem 3rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    color: var(--text-bright);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--glow-lg);
    transition: all 0.3s var(--ease-bounce);
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.cta-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-hero:hover::before {
    width: 300px;
    height: 300px;
}

.cta-hero:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 0 40px var(--primary-glow), 
        0 0 80px var(--primary-glow), 
        0 10px 50px rgba(0, 0, 0, 0.5);
}

.cta-hero:active {
    transform: translateY(-2px) scale(1.02);
}

/* ==========================================
   GLASSMORPHIC CARDS
   ========================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.card {
    background: var(--surface-glass);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glow);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 20, 147, 0.1), 
        transparent);
    transition: left 0.5s;
}

.card:hover::before {
    left: 150%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 15px 50px rgba(255, 20, 147, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: var(--primary-neon);
}

.card-header {
    border-bottom: 2px solid var(--border-glow);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 900;
    margin: 0;
    color: var(--text-bright);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0.5rem 0 0 0;
}

/* ==========================================
   CUSTOM SLIDERS - Audio Track Style
   ========================================== */
.form-group {
    margin-bottom: 2rem;
    transition: all 0.3s var(--ease-smooth);
}

/* Smooth show/hide animation */
.form-group.advanced {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-bright);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary-neon);
    text-shadow: var(--glow-sm);
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 10px;
    background: linear-gradient(to right, 
        var(--primary-neon) 0%, 
        var(--primary-neon) 50%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    outline: none;
    cursor: pointer;
    position: relative;
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.5),
        0 0 10px var(--primary-glow);
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    border: 3px solid var(--text-bright);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 
        0 0 20px var(--primary-glow),
        0 4px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s var(--ease-bounce);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 
        0 0 30px var(--primary-glow),
        0 6px 15px rgba(0, 0, 0, 0.7);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    border: 3px solid var(--text-bright);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 
        0 0 20px var(--primary-glow),
        0 4px 10px rgba(0, 0, 0, 0.5);
}

.param-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--secondary-neon);
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 240, 255, 0.1);
    border-left: 3px solid var(--secondary-neon);
    border-radius: 5px;
}

/* ==========================================
   INPUT FIELDS - Gaming Style (HIGH PRIORITY)
   ========================================== */
input.number-input,
.form-group input[type="number"] {
    width: 100px !important;
    padding: 0.75rem !important;
    border: 2px solid var(--primary-neon) !important;
    border-radius: 8px !important;
    background: var(--surface-elevated) !important;
    color: var(--text-bright) !important;
    font-size: 1rem !important;
    font-family: var(--font-display) !important;
    font-weight: 700 !important;
    text-align: center !important;
    transition: all 0.3s var(--ease-smooth) !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5) !important;
}

input.number-input:focus,
.form-group input[type="number"]:focus {
    outline: none !important;
    border-color: var(--secondary-neon) !important;
    background: var(--bg-darker) !important;
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.7),
        0 0 20px var(--secondary-glow) !important;
}

select.select-input,
.form-group select {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    border: 2px solid var(--primary-neon) !important;
    border-radius: 8px !important;
    background: var(--surface-elevated) !important;
    color: var(--text-bright) !important;
    font-size: 1rem !important;
    font-family: var(--font-body) !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s var(--ease-smooth) !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5) !important;
}

select.select-input:focus,
.form-group select:focus {
    outline: none !important;
    border-color: var(--secondary-neon) !important;
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.7),
        0 0 20px var(--secondary-glow) !important;
}

select.select-input option,
.form-group select option {
    background: var(--bg-darker) !important;
    color: var(--text-bright) !important;
    padding: 0.5rem !important;
}

/* ==========================================
   MODE TOGGLE - Gaming Switch
   ========================================== */
.mode-toggle-wrapper {
    text-align: center;
    margin-bottom: 2rem;
}

.mode-toggle {
    display: inline-flex;
    background: var(--surface-elevated);
    border: 2px solid var(--primary-neon);
    border-radius: 50px;
    padding: 0.3rem;
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.5),
        0 0 20px var(--primary-glow);
}

.mode-btn {
    padding: 0.75rem 2rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s var(--ease-bounce);
    position: relative;
    overflow: hidden;
}

.mode-btn.active {
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    color: var(--text-bright);
    box-shadow: 0 0 20px var(--primary-glow);
}

.mode-btn.active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    to {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* ==========================================
   MODE-SPECIFIC FIELD VISIBILITY
   ========================================== */
/* Hide advanced fields in Quick Mode */
[data-mode="quick"] .form-group.advanced {
    display: none !important;
}

/* Show all fields in Advanced Mode */
[data-mode="advanced"] .form-group.advanced {
    display: block !important;
}

/* ==========================================
   RESULTS - 3D PP Display
   ========================================== */
.result-main {
    text-align: center;
    padding: 3rem 0;
    background: 
        radial-gradient(circle at center, 
            rgba(255, 20, 147, 0.2) 0%, 
            transparent 70%);
    border-radius: 20px;
    margin-bottom: 2rem;
    position: relative;
}

.pp-value {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 900;
    background: linear-gradient(135deg, 
        var(--primary-neon), 
        var(--secondary-neon), 
        var(--accent-electric));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    line-height: 1;
    letter-spacing: -3px;
    text-shadow: 
        0 0 50px var(--primary-glow),
        0 10px 30px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    animation: float3D 3s ease-in-out infinite;
    position: relative;
}

@keyframes float3D {
    0%, 100% { transform: translateY(0) rotateX(0deg); }
    50% { transform: translateY(-20px) rotateX(5deg); }
}

.pp-value::after {
    content: attr(data-pp);
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: -1;
    background: linear-gradient(135deg, 
        rgba(255, 20, 147, 0.3), 
        rgba(0, 240, 255, 0.3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: blur(10px);
}

.pp-rank-estimate {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-neon);
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==========================================
   STATS GRID - Neon Info Cards
   ========================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--surface-elevated);
    border: 1px solid var(--border-glow);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s var(--ease-bounce);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s;
    opacity: 0.3;
}

.stat-card:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-neon);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-neon);
    text-shadow: var(--glow-sm);
}

/* ==========================================
   PRESETS - Gaming Power-ups
   ========================================== */
.presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.preset-btn {
    background: var(--surface-glass);
    backdrop-filter: var(--glass-blur);
    border: 2px solid var(--border-glow);
    border-radius: 15px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-bounce);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.preset-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        var(--primary-glow),
        transparent
    );
    animation: rotate 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.preset-btn:hover::before {
    opacity: 1;
}

.preset-btn:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--primary-neon);
    box-shadow: 
        0 0 40px var(--primary-glow),
        0 10px 40px rgba(0, 0, 0, 0.5);
}

.preset-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.preset-name {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1rem;
    color: var(--text-bright);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.preset-stats {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* ==========================================
   SOCIAL SHARE & PP SCALE (HIGH PRIORITY)
   ========================================== */
.social-share {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem !important;
    margin-top: 1.5rem !important;
    padding-top: 1.5rem !important;
    border-top: 2px solid var(--border-glow) !important;
}

.share-label {
    font-size: 0.95rem !important;
    font-family: var(--font-body) !important;
    color: var(--text-secondary) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

button.share-btn {
    width: 50px !important;
    height: 50px !important;
    border-radius: 12px !important;
    border: 2px solid var(--primary-neon) !important;
    background: var(--surface-elevated) !important;
    color: white !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    transition: all 0.3s var(--ease-bounce) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5) !important;
}

button.share-btn:hover {
    transform: translateY(-5px) scale(1.1) !important;
}

button.share-twitter {
    background: linear-gradient(135deg, #1DA1F2, #0d8bd9) !important;
    border-color: #1DA1F2 !important;
}

button.share-twitter:hover {
    box-shadow: 0 10px 30px rgba(29, 161, 242, 0.6) !important;
}

button.share-discord {
    background: linear-gradient(135deg, #5865F2, #4752c4) !important;
    border-color: #5865F2 !important;
}

button.share-discord:hover {
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.6) !important;
}

/* PP Scale */
.pp-scale {
    margin: 2rem 0;
}

.scale-title {
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.scale-bar {
    position: relative;
    height: 60px;
    background: linear-gradient(to right,
        #4CAF50 0%,
        #2196F3 25%,
        var(--primary-neon) 50%,
        #FF9800 75%,
        #F44336 100%);
    border-radius: 30px;
    margin: 2rem 0;
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 20, 147, 0.3);
}

.scale-marker {
    position: absolute;
    top: -35px;
    transform: translateX(-50%);
    text-align: center;
    font-size: 0.75rem;
    font-family: var(--font-body);
}

.marker-label {
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.marker-value {
    font-weight: 900;
    font-family: var(--font-display);
    color: var(--primary-neon);
    text-shadow: var(--glow-sm);
}

.your-position {
    top: auto;
    bottom: -40px;
}

.marker-indicator {
    font-size: 1.8rem;
    color: var(--primary-neon);
    animation: bounce 1s ease-in-out infinite;
    filter: drop-shadow(0 0 15px var(--primary-glow));
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Result Actions */
.result-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.result-actions .btn {
    flex: 1;
    padding: 1rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================
   RESPONSIVE - Mobile Gaming
   ========================================== */
@media (max-width: 1024px) {
    .layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .trust-badges {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .presets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   CUSTOM CURSOR (Optional Enhancement)
   ========================================== */
body {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><circle cx="10" cy="10" r="8" fill="rgba(255,20,147,0.5)" stroke="rgb(255,20,147)" stroke-width="2"/></svg>'), auto;
}

a, button, .btn {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><circle cx="12" cy="12" r="10" fill="rgba(0,240,255,0.5)" stroke="rgb(0,240,255)" stroke-width="2"/></svg>'), pointer;
}

/* ==========================================
   SCROLLBAR - Gaming Style
   ========================================== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
    border-left: 1px solid var(--border-glow);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-neon), var(--secondary-neon));
    border-radius: 10px;
    box-shadow: 0 0 10px var(--primary-glow);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--secondary-neon), var(--primary-neon));
    box-shadow: 0 0 20px var(--primary-glow);
}

/* ==========================================
   SKIP LINK
   ========================================== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-neon);
    color: var(--text-bright);
    padding: 0.5rem 1rem;
    font-family: var(--font-display);
    font-weight: 700;
    text-decoration: none;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* ==========================================
   INFO PANEL - Gaming Side Panel
   ========================================== */
.info-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    z-index: 200;
    transition: right 0.4s var(--ease-smooth);
}

.info-panel.active {
    right: 0;
}

.info-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: -1;
}

.info-panel.active .info-panel-overlay {
    opacity: 1;
    pointer-events: all;
}

.info-panel-content {
    background: var(--bg-dark);
    height: 100%;
    box-shadow: -10px 0 50px rgba(255, 20, 147, 0.3);
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--primary-neon);
}

.info-panel-header {
    padding: 1.5rem;
    background: var(--surface-glass);
    backdrop-filter: var(--glass-blur);
    border-bottom: 2px solid var(--border-glow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-panel-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.info-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.info-nav {
    display: flex !important;
    gap: 0.5rem !important;
    margin-bottom: 1.5rem !important;
    flex-wrap: wrap !important;
}

button.info-nav-btn,
.info-nav button {
    padding: 0.75rem 1.25rem !important;
    background: var(--surface-elevated) !important;
    border: 2px solid var(--border-glow) !important;
    border-radius: 8px !important;
    font-family: var(--font-body) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: var(--text-secondary) !important;
    cursor: pointer !important;
    transition: all 0.3s var(--ease-bounce) !important;
}

button.info-nav-btn.active,
button.info-nav-btn:hover,
.info-nav button.active,
.info-nav button:hover {
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon)) !important;
    border-color: var(--primary-neon) !important;
    color: white !important;
    box-shadow: 0 5px 20px var(--primary-glow) !important;
}

.info-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.info-section.active {
    display: block;
}

.info-section h3 {
    color: var(--secondary-neon);
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: var(--glow-sm);
}

.info-section p {
    line-height: 1.8;
    color: var(--text-secondary);
    font-family: var(--font-body);
    margin-bottom: 1rem;
}

.info-section ul, 
.info-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.info-section li {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Mods cards in info panel */
.mods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.mod-card {
    background: var(--surface-elevated);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s var(--ease-bounce);
}

.mod-card:hover {
    border-color: var(--primary-neon);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.mod-name {
    font-family: var(--font-display);
    font-weight: 900;
    color: var(--primary-neon);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.mod-multiplier {
    font-family: var(--font-display);
    font-weight: 900;
    color: var(--secondary-neon);
    font-size: 1.2rem;
}

.mod-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0.5rem 0 0 0;
}

/* FAQ in info panel */
.faq-list {
    margin: 1rem 0;
}

.faq-item {
    background: var(--surface-elevated);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-item summary {
    padding: 1rem;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--text-bright);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.faq-item summary:hover {
    background: rgba(255, 20, 147, 0.1);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-neon);
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ==========================================
   FOOTER - Minimal Dark
   ========================================== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-glow);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

.footer-text {
    font-family: var(--font-body);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-neon);
    text-shadow: var(--glow-sm);
}

/* ==========================================
   END - RHYTHM PULSE DESIGN
   ========================================== */

/* ==========================================
   PP BREAKDOWN DETAILED - NEW FEATURE
   ========================================== */
.pp-breakdown-detailed {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--surface-glass);
    backdrop-filter: var(--glass-blur);
    border: 2px solid var(--border-glow);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.breakdown-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-bright);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.breakdown-icon {
    font-size: 1.8rem;
}

.breakdown-help {
    margin-left: auto;
    font-size: 1.2rem;
    opacity: 0.7;
    cursor: help;
    transition: opacity 0.3s;
}

.breakdown-help:hover {
    opacity: 1;
}

.breakdown-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.breakdown-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.breakdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
}

.breakdown-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-bright);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breakdown-emoji {
    font-size: 1.2rem;
}

.breakdown-value {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--primary-neon);
}

.breakdown-percent {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    min-width: 50px;
    text-align: right;
}

.breakdown-bar {
    position: relative;
    width: 100%;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.breakdown-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: width 0.6s var(--ease-smooth);
    overflow: hidden;
}

.aim-fill {
    background: linear-gradient(90deg, 
        rgba(255, 20, 147, 0.8) 0%, 
        rgba(255, 20, 147, 1) 100%);
    box-shadow: 
        inset 0 -2px 10px rgba(255, 20, 147, 0.5),
        0 0 20px rgba(255, 20, 147, 0.3);
}

.speed-fill {
    background: linear-gradient(90deg, 
        rgba(0, 240, 255, 0.8) 0%, 
        rgba(0, 240, 255, 1) 100%);
    box-shadow: 
        inset 0 -2px 10px rgba(0, 240, 255, 0.5),
        0 0 20px rgba(0, 240, 255, 0.3);
}

.acc-fill {
    background: linear-gradient(90deg, 
        rgba(255, 215, 0, 0.8) 0%, 
        rgba(255, 215, 0, 1) 100%);
    box-shadow: 
        inset 0 -2px 10px rgba(255, 215, 0, 0.5),
        0 0 20px rgba(255, 215, 0, 0.3);
}

.breakdown-fill-text {
    white-space: nowrap;
}

.breakdown-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    padding-left: 2rem;
}

.breakdown-summary {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-glow);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.summary-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.summary-value {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--primary-neon);
}

/* Animations */
@keyframes fillBar {
    from {
        width: 0%;
        opacity: 0;
    }
    to {
        width: var(--target-width);
        opacity: 1;
    }
}

.breakdown-fill.animating {
    animation: fillBar 0.8s var(--ease-smooth) forwards;
}

/* Speed PP stat card update */
#speed-pp {
    color: var(--secondary-neon);
}

/* Responsive */
@media (max-width: 768px) {
    .pp-breakdown-detailed {
        padding: 1.5rem;
    }
    
    .breakdown-title {
        font-size: 1.2rem;
    }
    
    .breakdown-bar {
        height: 35px;
    }
    
    .breakdown-summary {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   RANK ESTIMATOR - NEW FEATURE v5.0
   ========================================== */
.rank-estimator {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, 
        rgba(255, 20, 147, 0.1) 0%, 
        rgba(0, 240, 255, 0.1) 100%);
    backdrop-filter: var(--glass-blur);
    border: 2px solid var(--border-glow);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.estimator-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-bright);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.estimator-icon {
    font-size: 1.8rem;
}

.estimator-help {
    margin-left: auto;
    font-size: 1.2rem;
    opacity: 0.7;
    cursor: help;
    transition: opacity 0.3s;
}

.estimator-help:hover {
    opacity: 1;
}

/* Current Rank Display */
.rank-current {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rank-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-neon), var(--secondary-neon));
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(255, 20, 147, 0.4);
}

.rank-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1;
}

.rank-tier {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.rank-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rank-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 3px solid var(--primary-neon);
}

.rank-stat .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.rank-stat .stat-value {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--primary-neon);
}

/* Milestones Section */
.rank-milestones {
    margin: 2rem 0;
}

.milestones-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.milestones-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.milestone-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border-left: 4px solid var(--secondary-neon);
    transition: all 0.3s var(--ease-smooth);
    cursor: pointer;
}

.milestone-item:hover {
    background: rgba(0, 240, 255, 0.1);
    transform: translateX(5px);
    border-left-width: 6px;
}

.milestone-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.milestone-emoji {
    font-size: 1.5rem;
}

.milestone-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.milestone-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-bright);
}

.milestone-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.milestone-pp {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.milestone-target {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--secondary-neon);
}

.milestone-gain {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.milestone-placeholder {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
}

/* Progress Visualization */
.rank-progress-viz {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.progress-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.progress-bar-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-bar-bg {
    position: relative;
    width: 100%;
    height: 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg,
        var(--primary-neon) 0%,
        var(--secondary-neon) 100%);
    border-radius: 15px;
    transition: width 0.8s var(--ease-smooth);
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.5);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .rank-estimator {
        padding: 1.5rem;
    }
    
    .rank-current {
        flex-direction: column;
        gap: 1rem;
    }
    
    .rank-badge {
        width: 100%;
    }
    
    .milestone-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .milestone-pp {
        align-items: flex-start;
    }
}

/* ==========================================
   FORMULA UPDATE NOTICE - NEW v5.2
   ========================================== */
.formula-notice {
    background: linear-gradient(135deg, 
        rgba(255, 165, 0, 0.15) 0%, 
        rgba(255, 20, 147, 0.15) 100%);
    border-bottom: 2px solid rgba(255, 165, 0, 0.5);
    padding: 1rem 0;
    position: sticky;
    top: 80px;
    z-index: 99;
    backdrop-filter: blur(10px);
}

.notice-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 165, 0, 0.3);
}

.notice-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notice-text {
    flex: 1;
}

.notice-title {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #FFA500;
    margin-bottom: 0.25rem;
}

.notice-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.notice-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notice-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 165, 0, 0.2);
    border: 1px solid #FFA500;
    border-radius: 8px;
    color: #FFA500;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.notice-btn:hover {
    background: rgba(255, 165, 0, 0.3);
    transform: translateY(-2px);
}

.notice-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.3s;
}

.notice-close:hover {
    color: var(--text-bright);
}

/* ==========================================
   FORMULA VERSION INFO - NEW v5.2
   ========================================== */
.formula-version-info {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border-left: 4px solid var(--secondary-neon);
}

.version-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.version-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.version-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary-neon);
    padding: 0.25rem 0.75rem;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 5px;
}

.version-accuracy {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

.version-disclaimer {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

.version-disclaimer a {
    color: var(--secondary-neon);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.version-disclaimer a:hover {
    border-bottom-color: var(--secondary-neon);
}

/* Responsive */
@media (max-width: 768px) {
    .formula-notice {
        position: relative;
        top: 0;
    }
    
    .notice-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .notice-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .formula-version-info {
        padding: 0.75rem 1rem;
    }
    
    .version-badge {
        flex-wrap: wrap;
    }
}

/* ==========================================
   ENHANCED SOCIAL SHARE - NEW v5.3
   ========================================== */
.social-share-enhanced {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-share-enhanced .share-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    flex: 1;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

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

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

.share-icon {
    font-size: 1.2rem;
}

.share-text {
    font-weight: 700;
}

/* Twitter button */
.share-twitter {
    background: linear-gradient(135deg, rgba(29, 161, 242, 0.2), rgba(29, 161, 242, 0.3));
    border-color: #1DA1F2;
    color: #1DA1F2;
}

.share-twitter:hover {
    background: linear-gradient(135deg, rgba(29, 161, 242, 0.3), rgba(29, 161, 242, 0.4));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 161, 242, 0.3);
}

/* Discord button */
.share-discord {
    background: linear-gradient(135deg, rgba(114, 137, 218, 0.2), rgba(114, 137, 218, 0.3));
    border-color: #7289DA;
    color: #7289DA;
}

.share-discord:hover {
    background: linear-gradient(135deg, rgba(114, 137, 218, 0.3), rgba(114, 137, 218, 0.4));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(114, 137, 218, 0.3);
}

/* Link button */
.share-link {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(0, 240, 255, 0.3));
    border-color: var(--secondary-neon);
    color: var(--secondary-neon);
}

.share-link:hover {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.3), rgba(0, 240, 255, 0.4));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.3);
}

/* Download button enhancement */
#download-image-btn {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.2), rgba(255, 20, 147, 0.3));
    border-color: var(--primary-neon);
}

#download-image-btn:hover {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.3), rgba(255, 20, 147, 0.4));
    box-shadow: 0 5px 15px rgba(255, 20, 147, 0.3);
}

/* Success feedback */
.share-btn.success {
    animation: successPulse 0.6s ease;
}

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

.share-btn.success .share-text::after {
    content: ' ✓';
    color: #00ff00;
}

/* Responsive */
@media (max-width: 768px) {
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        min-width: 100%;
    }
    
    .result-actions {
        flex-direction: column;
    }
}

/* ==========================================
   LOADING STATES & IMPROVEMENTS - v6.0
   ========================================== */

/* Button loading state */
.btn.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
}

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

/* Smooth transitions for all interactive elements */
button, .btn, .share-btn, .preset-btn {
    transition: all 0.3s var(--ease-smooth);
}

/* Focus states for accessibility */
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-neon);
    outline-offset: 2px;
}

/* Better disabled state */
button:disabled,
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Skeleton loading for results */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    background-size: 200% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
    border-radius: 8px;
}

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

/* Improved error state */
.error-state {
    padding: 1.5rem;
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid rgba(255, 0, 0, 0.3);
    border-radius: 12px;
    color: #ff6b6b;
    text-align: center;
}

.error-state-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Success state enhancement */
.success-state {
    padding: 1rem;
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: 12px;
    color: #51cf66;
}

/* Smooth reveal animation */
.reveal {
    animation: reveal 0.4s var(--ease-smooth);
}

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

/* Mobile optimizations */
@media (max-width: 768px) {
    /* Larger touch targets */
    button, .btn, .share-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better spacing */
    .result-actions, .share-buttons {
        gap: 0.75rem;
    }
    
    /* Prevent zoom on input focus */
    input, select, textarea {
        font-size: 16px;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn, .share-btn {
        border-width: 3px;
    }
    
    .breakdown-fill,
    .progress-bar-fill {
        border: 2px solid currentColor;
    }
}

/* Print styles */
@media print {
    .formula-notice,
    .social-share-enhanced,
    .result-actions,
    header,
    .info-toggle {
        display: none !important;
    }
    
    .result-card {
        box-shadow: none;
        border: 2px solid #000;
    }
}
