/* Stripe Webhook Status Badge */
#stripe-webhook-status {
  display: none;
}

/* Logical property equivalents and vendor prefixes for compatibility */
body {
  min-block-size: 100vh;
}

.container {
  max-inline-size: 1200px;
}

header {
  border-block-end: 1px solid rgb(255 107 107 / 30%);
  backdrop-filter: blur(10px);
}

.logo {
  background-clip: text;
}

.hero h1 {
  background-clip: text;
}

.hero p {
  max-inline-size: 600px;
  margin-inline: auto;
}

.section h2 {
  margin-block-end: 2rem;
}

.services {
  margin-block-start: 2rem;
}

.service-card h3 {
  margin-block-end: 1rem;
}

.footer {
  margin-block-start: 4rem;
}

.footer h3 {
  margin-block-end: 1rem;
}

/* Externalized styles for modals, referral, leaderboard */
.email-modal {
    position: fixed;
    inset-block-start: 0;
    inset-inline-start: 0;
    inline-size: 100vw;
    block-size: 100vh;
    background: rgb(0 0 0 / 70%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-modal-content {
    background: #222;
    padding: 2rem 2.5rem;
    border-radius: 12px;
    max-inline-size: 350px;
    text-align: center;
    box-shadow: 0 2px 16px 0 rgb(76 205 196 / 30%);
}

.email-modal-title {
    color: #4ecdc4;
}

.email-input {
    inline-size: 90%;
    padding: 0.5rem;
    margin-block-end: 1rem;
    border-radius: 6px;
    border: none;
}

.email-close {
    margin-block-start: 1rem;
}

.referral-banner {
    display: none;
}

.referral-banner.active {
    display: block;
}

.referral-link {
    inline-size: 70%;
    margin-block: 0.5rem;
    border-radius: 6px;
    border: none;
    padding: 0.5rem;
}

.leaderboard-list {
    font-size: 1.1rem;
    color: #4ecdc4;
}

/* Externalized styles from index.html inline CSS */
.ci-status-container {
    text-align: center;
    margin-block: 2rem;
}

.info-list {
    margin-block: 1rem;
    padding-inline-start: 2rem;
}

.footer-bottom {
    margin-block-start: 2rem;
    text-align: center;
    padding-block-start: 2rem;
    border-block-start: 1px solid rgb(255 255 255 / 10%);
}

.hidden {
    display: none;
}

/* Responsive Lore Drop & CI/CD UI Integration */
.lore-drop,
.ad-promo {
    display: block;
    max-inline-size: 700px;
    margin-inline: auto;
}

/* Responsive Lore Drop & CI/CD UI Integration */
.lore-drop {
    position: relative;
    animation: lore-drop-fade-in 0.8s cubic-bezier(.4,0,.2,1);
    background: linear-gradient(90deg, #4ecdc4 0%, #45b7d1 100%);
    color: #222;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgb(76 205 196 / 30%);
    padding: 1.5rem 2rem;
    margin-block: 2rem;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 0.03em;
    border: 2px solid #45b7d1;
    transition: box-shadow 0.3s, border-color 0.3s;
}

@keyframes lore-drop-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.ci-status-badge {
    position: relative;
    inset-block-start: -2px;
    margin-block-end: 0.5em;
    display: inline-block;
    padding: 0.3em 0.8em;
    border-radius: 999px;
    font-size: 0.95em;
    font-weight: 700;
    background: #222;
    color: #fff;
    border: 2px solid #4ecdc4;
    margin-inline-end: 0.5em;
    vertical-align: middle;
    box-shadow: 0 1px 4px 0 rgb(76 205 196 / 10%);
    transition: background 0.2s, border-color 0.2s;

} /* <-- Added missing closing brace for .ci-status-badge */

@media (width <= 600px) {
    .lore-drop,
    .ad-promo {
        max-inline-size: 98vw;
        font-size: 1em;
        padding: 1rem 0.5rem;
    }

    .ci-status-badge {
        font-size: 0.85em;
        padding: 0.2em 0.5em;
    }
}

/* Lore Drop & CI/CD Integration Enhancements */

/* .lore-drop block removed (duplicate and unclosed) */
.lore-drop[data-new] {
    border-color: #ff6b6b;
    box-shadow: 0 4px 24px 0 rgb(255 107 107 / 30%);
}

.ad-promo {
    background: linear-gradient(90deg, #ff6b6b 0%, #4ecdc4 100%);
    color: #fff;
    border-radius: 6px;
    padding: 1rem 1.5rem;
    margin-block: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 2px 8px 0 rgb(255 107 107 / 15%);
    border: 1px solid #ff6b6b;
    text-align: center;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.ad-promo[data-featured] {
    border-color: #45b7d1;
    box-shadow: 0 4px 16px 0 rgb(76 205 196 / 20%);
}

/* .ci-status-badge block removed (duplicate and unclosed) */
.ci-status-badge[data-success] {
    background: #4ecdc4;
    color: #222;
    border-color: #45b7d1;
}

.ci-status-badge[data-fail] {
    background: #ff6b6b;
    color: #fff;
    border-color: #ff6b6b;
}

/* Accessibility & Modern UI Enhancements */
@media (prefers-color-scheme: dark) {
    body {
        color-scheme: dark;
    }
}


/* Smoother transitions for interactive elements */
.monetization-btn,
.nav-links a,
.footer a {
    transition: color 0.3s, background 0.3s, outline 0.2s;
}

/* Monetization & Backend Integration Buttons */
.monetization-section {
    text-align: center;
    margin-block-start: 2rem;
}

.monetization-btn:focus,
.monetization-btn:active {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
}

.nav-links a:focus,
.nav-links a:active {
    outline: 2px solid #4ecdc4;
    outline-offset: 2px;
    color: #4ecdc4;
}

.footer a:focus,
.footer a:active {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
    color: #ff6b6b;
}

#alert-box {
    position: fixed;
    inset-block-start: 20px;
    inset-inline-end: 20px;
    background: #222;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    z-index: 9999;
    display: none;
}

#stats-box {
    position: fixed;
    inset-block-end: 20px;
    inset-inline-end: 20px;
    background: #333;
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    z-index: 9999;
    display: none;
}

/* Haunted Empire - Enhanced UI/UX Stylesheet */

/* ===== MODERN UI ENHANCEMENTS ===== */

/* Improved Typography with Horror-themed fonts */
@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Nosifer&family=Butcherman&family=Eater&family=Chiller&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables for consistent theming */
:root {
    --horror-red: #ff6b6b;
    --ghost-teal: #4ecdc4;
    --phantom-blue: #45b7d1;
    --shadow-black: #0a0a0a;
    --mist-gray: #1a1a1a;
    --bone-white: #e0e0e0;
    --blood-dark: #8b0000;
    --glow-purple: #9d4edd;
    
    /* Animation durations */
    --fast: 0.2s;
    --medium: 0.3s;
    --slow: 0.5s;
    
    /* Shadows */
    --glow-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
    --phantom-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    --floating-shadow: 0 5px 15px rgba(76, 205, 196, 0.2);
}

/* Enhanced body styling with particle background */
body {
    font-family: 'Inter', 'Arial', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a1a 25%, #2a0a2a 50%, #1a0a1a 75%, #0a0a0a 100%);
    position: relative;
    overflow-x: hidden;
}

/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(76, 205, 196, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(157, 78, 221, 0.1) 0%, transparent 50%);
    animation: floatingParticles 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes floatingParticles {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }
    25% { 
        transform: translate(50px, -30px) rotate(90deg);
        opacity: 0.5;
    }
    50% { 
        transform: translate(-30px, 50px) rotate(180deg);
        opacity: 0.3;
    }
    75% { 
        transform: translate(-50px, -50px) rotate(270deg);
        opacity: 0.4;
    }
}

/* Enhanced hover animations */
.hover-lift {
    transition: transform var(--medium), box-shadow var(--medium);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--floating-shadow);
}

.hover-glow {
    transition: box-shadow var(--medium), filter var(--medium);
}

.hover-glow:hover {
    box-shadow: var(--glow-shadow);
    filter: brightness(1.1);
}

/* Improved card designs */
.enhanced-card {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.9), rgba(42, 10, 42, 0.7));
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

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

.enhanced-card:hover::before {
    left: 100%;
}

/* Glitch text effect for horror elements */
.glitch-text {
    position: relative;
    font-family: 'Creepster', cursive;
    color: var(--horror-red);
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 
        0.05em 0 0 var(--ghost-teal),
        -0.05em -0.025em 0 var(--phantom-blue),
        0.025em 0.05em 0 var(--glow-purple);
    animation: glitch 2s linear infinite;
}

@keyframes glitch {
    0%, 95%, 100% {
        filter: none;
        opacity: 0.99;
        transform: translate3d(0, 0, 0);
    }
    96% {
        filter: hue-rotate(90deg);
        transform: translate3d(-2px, 0, 0);
    }
    97% {
        filter: invert(1) hue-rotate(90deg);
        transform: translate3d(2px, 0, 0);
    }
    98% {
        filter: none;
        transform: translate3d(-1px, 1px, 0);
    }
    99% {
        filter: sepia(1) hue-rotate(90deg);
        transform: translate3d(1px, -1px, 0);
    }
}

/* Enhanced buttons with horror styling */
.horror-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--horror-red), var(--blood-dark));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all var(--medium);
    border: 2px solid var(--horror-red);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.horror-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;
}

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

.horror-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
    filter: brightness(1.2);
}

.ghost-btn {
    background: linear-gradient(45deg, var(--ghost-teal), var(--phantom-blue));
    border-color: var(--ghost-teal);
    box-shadow: 0 4px 15px rgba(76, 205, 196, 0.3);
}

.ghost-btn:hover {
    box-shadow: 0 8px 25px rgba(76, 205, 196, 0.5);
}

/* Spooky loading animations */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 107, 107, 0.3);
    border-top: 3px solid var(--horror-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

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

/* Floating elements animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

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

/* Enhanced modal styling */
.enhanced-modal {
    background: linear-gradient(145deg, #1a1a1a, #2a0a2a);
    border: 2px solid var(--horror-red);
    border-radius: 20px;
    box-shadow: 
        var(--phantom-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    animation: modalAppear 0.5s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Typography enhancements */
.horror-title {
    font-family: 'Nosifer', cursive;
    font-size: 3.5rem;
    background: linear-gradient(45deg, var(--horror-red), var(--glow-purple), var(--ghost-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 107, 107, 0.5);
    margin-bottom: 1rem;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { filter: drop-shadow(0 0 5px rgba(255, 107, 107, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(255, 107, 107, 0.8)); }
}

/* Enhanced form styling */
.horror-input {
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 10px;
    padding: 1rem;
    color: var(--bone-white);
    font-size: 1.1rem;
    transition: all var(--medium);
    width: 100%;
}

.horror-input:focus {
    outline: none;
    border-color: var(--horror-red);
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.3);
    transform: scale(1.02);
}

.horror-input::placeholder {
    color: rgba(224, 224, 224, 0.5);
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .glitch-text {
        font-size: 2rem;
    }
    
    .horror-title {
        font-size: 2.5rem;
    }
    
    .enhanced-card {
        padding: 1.5rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bone-white: #f0f0f0;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .enhanced-card {
        border-width: 3px;
    }
    
    .horror-btn {
        border-width: 3px;
    }
}

/* ===== ENHANCED HERO SECTION ===== */

.hero-content {
    position: relative;
    text-align: center;
    z-index: 2;
}

.hero-description {
    font-size: 1.3rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 2rem auto;
    color: var(--bone-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.horror-btn-outline {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--ghost-teal);
    text-decoration: none;
    border: 2px solid var(--ghost-teal);
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--medium);
    position: relative;
    overflow: hidden;
}

.horror-btn-outline:hover {
    background: var(--ghost-teal);
    color: var(--shadow-black);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 205, 196, 0.4);
}

.btn-shine {
    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.6s;
}

.horror-btn:hover .btn-shine,
.ghost-btn:hover .btn-shine {
    left: 100%;
}

/* ===== HERO STATS SECTION ===== */

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 4rem auto 0;
    padding: 0 1rem;
}

.stat-item {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    position: relative;
    transition: transform var(--medium);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--horror-red);
    margin-bottom: 0.5rem;
    font-family: 'Butcherman', serif;
    text-shadow: 0 2px 10px rgba(255, 107, 107, 0.5);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--bone-white);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-icon {
    font-size: 2rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* ===== ENHANCED SERVICE CARDS ===== */

.service-card {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.9), rgba(42, 10, 42, 0.7));
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--medium);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--horror-red);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 107, 107, 0.2);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 0 10px rgba(255, 107, 107, 0.3));
    animation: subtlePulse 3s ease-in-out infinite alternate;
}

@keyframes subtlePulse {
    from { 
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 107, 107, 0.3));
    }
    to { 
        transform: scale(1.05);
        filter: drop-shadow(0 0 15px rgba(255, 107, 107, 0.5));
    }
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--ghost-teal);
    font-family: 'Butcherman', serif;
}

.service-card p {
    color: var(--bone-white);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ===== ENHANCED FEATURES SECTION ===== */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(42, 10, 42, 0.8));
    border: 1px solid rgba(76, 205, 196, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all var(--medium);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(76, 205, 196, 0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease-out;
}

.feature-card:hover::after {
    transform: scale(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--ghost-teal);
    box-shadow: 0 15px 35px rgba(76, 205, 196, 0.2);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    color: var(--ghost-teal);
    text-align: center;
}

.feature-title {
    font-size: 1.4rem;
    color: var(--horror-red);
    margin-bottom: 1rem;
    font-family: 'Butcherman', serif;
    text-align: center;
}

.feature-description {
    color: var(--bone-white);
    line-height: 1.7;
    text-align: center;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .service-card,
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ENHANCED ANIMATIONS =====*/

/* Particle animations */
@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Slide in animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* Scroll reveal animations */
.animate-in {
    animation: slideInUp 0.6s ease-out forwards;
}

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

/* Enhanced modal styling */
.enhanced-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.enhanced-modal {
    background: linear-gradient(145deg, #1a1a1a, #2a0a2a);
    border: 2px solid var(--horror-red);
    border-radius: 20px;
    padding: 30px;
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.8) translateY(-50px);
    transition: transform 0.3s ease;
    box-shadow: 
        var(--phantom-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 107, 107, 0.3);
}

.modal-header h3 {
    color: var(--horror-red);
    font-family: 'Butcherman', serif;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--bone-white);
    font-size: 2rem;
    cursor: pointer;
    transition: color var(--fast);
}

.modal-close:hover {
    color: var(--horror-red);
}

.modal-content {
    color: var(--bone-white);
    line-height: 1.6;
}

/* Enhanced notification styling */
.notification {
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.notification-message {
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--fast);
}

.notification-close:hover {
    opacity: 1;
}

/* Loading button states */
.horror-btn.loading,
.ghost-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Typewriter effect */
.typewriter {
    display: inline-block;
    border-right: 2px solid var(--horror-red);
    animation: blink-caret 1s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--horror-red); }
}

/* Enhanced parallax */
.parallax {
    will-change: transform;
}

/* Responsive enhancements for new components */
@media (max-width: 768px) {
    .enhanced-modal {
        padding: 20px;
        margin: 20px;
    }
    
    .notification {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-guarantees {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
}

