/* =============================================
   SAOAS TOOLBOX - SHARED STYLES
   ============================================= */

/* CSS Variables - Dashboard Style */
:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: rgba(30, 41, 59, 0.9);
    --accent-primary: #3b82f6;
    --accent-secondary: #2563eb;
    --accent-glow: #60a5fa;
    --accent-gold: #fbbf24;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: rgba(71, 85, 105, 0.5);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

/* Base Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
}

/* =============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================= */

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    z-index: 10000;
    transition: top 0.3s ease;
    text-decoration: none;
}

.skip-to-content:focus {
    top: 10px;
    outline: 3px solid var(--accent-glow);
    outline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Enhanced focus states for buttons */
.btn:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent-glow);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.2);
}

/* Focus state for links */
a:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Focus state for form elements */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 0;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

/* High visibility focus for interactive cards */
.tool-card:focus-visible,
.support-card:focus-visible,
.faq-item:focus-visible {
    outline: 3px solid var(--accent-glow);
    outline-offset: 4px;
}

/* Ensure sufficient color contrast for disabled elements */
:disabled,
[aria-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Focus indicator animation */
@keyframes focusPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.1); }
}

/* Apply pulse animation on focus for important elements */
.btn-primary:focus-visible {
    animation: focusPulse 1.5s ease infinite;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    background-image:
        radial-gradient(ellipse at top left, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(37, 99, 235, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at center, rgba(96, 165, 250, 0.05) 0%, transparent 70%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    font-size: 14px;
}

/* Selection Color */
::selection {
    background: var(--accent-primary);
    color: #fff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* =============================================
   COOKIE BANNER
   ============================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: 20px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h4 {
    color: var(--accent-gold);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

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

.cookie-text a {
    color: var(--accent-primary);
    text-decoration: none;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 0.9rem;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.cookie-btn-settings {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.cookie-btn-settings:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal.visible {
    display: flex;
}

.cookie-modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cookie-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cookie-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.cookie-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.cookie-modal-body {
    padding: 20px;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
}

.cookie-option-info h4 {
    color: var(--text-primary);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.cookie-option-info p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 26px;
    transition: all var(--transition-normal);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: all var(--transition-normal);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* =============================================
   CUSTOM CURSOR
   ============================================= */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    mix-blend-mode: difference;
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
    opacity: 0.5;
}

.cursor-dot.hover {
    width: 15px;
    height: 15px;
    background: var(--accent-gold);
}

.cursor-ring.hover {
    width: 60px;
    height: 60px;
    border-color: var(--accent-gold);
    opacity: 0.3;
}

.cursor-dot.click {
    transform: translate(-50%, -50%) scale(0.5);
}

.cursor-ring.click {
    transform: translate(-50%, -50%) scale(0.8);
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}

/* =============================================
   LANGUAGE SELECTOR
   ============================================= */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1002;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: top var(--transition-normal), opacity var(--transition-normal);
}

.language-selector.nav-visible {
    top: 75px;
}

.language-selector select {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 1em;
    cursor: pointer;
    outline: none;
    transition: all var(--transition-normal);
}

.language-selector select:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-primary);
}

.language-selector select option {
    background: var(--bg-secondary);
    color: #fff;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    font-size: 1em;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.btn-download {
    background: linear-gradient(135deg, var(--success), #16a34a);
    color: #fff;
}

.btn-download:hover {
    background: #10b981;
    transform: scale(1.05);
}

.btn-buy {
    background: linear-gradient(135deg, var(--accent-gold), #d97706);
    color: #000;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-buy:hover {
    background: linear-gradient(135deg, #fcd34d, var(--accent-gold));
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.btn-trial {
    background: rgba(59, 130, 246, 0.2);
    color: #fff;
    border: 2px solid var(--accent-primary);
}

.btn-trial:hover {
    background: var(--accent-primary);
    transform: translateY(-3px) scale(1.03);
}

/* Button Ripple Effect */
.btn::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 ease, height 0.6s ease;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* =============================================
   BACK LINK
   ============================================= */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-primary);
    text-decoration: none;
    margin-bottom: 40px;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.back-link:hover {
    color: var(--accent-secondary);
    transform: translateX(-5px);
}

/* =============================================
   HEADINGS
   ============================================= */
h1 {
    font-size: 3em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #fff 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* =============================================
   CARDS
   ============================================= */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: rgba(59, 130, 246, 0.3);
}

/* =============================================
   FOOTER
   ============================================= */
.footer-enhanced {
    text-align: left;
    padding: 60px 20px 30px;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(15, 23, 42, 0.8));
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-logo-text {
    font-size: 1.4em;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    text-decoration: none;
}

.footer-social-link:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-3px);
}

.footer-heading {
    color: var(--text-primary);
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95em;
    transition: all var(--transition-normal);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin: 0;
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js-ready .fade-in:not(.visible) {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    .section-title {
        font-size: 2em;
    }

    .language-selector {
        top: 10px;
        right: 10px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links a:hover {
        transform: none;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
    }

    .cursor-dot,
    .cursor-ring {
        display: none;
    }
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-text {
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5), 0 0 20px rgba(59, 130, 246, 0.3);
}

.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hover-lift {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

/* Accessibility Skip Link */
.skip-link {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: #fff;
    padding: 15px 30px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    z-index: 99999;
    transition: top var(--transition-normal);
    text-decoration: none;
    font-weight: 600;
}

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

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

/* Smooth fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--accent-primary), 0 0 10px var(--accent-primary);
    }
    50% {
        box-shadow: 0 0 20px var(--accent-primary), 0 0 30px var(--accent-secondary);
    }
}

/* Dashboard-specific animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

@keyframes pulseFade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes cardHover {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-4px) scale(1.02); }
}

/* Animation utility classes */
.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease forwards;
}

.animate-pulse {
    animation: pulse 2s ease infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-slide-in {
    animation: slideIn 0.5s ease forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.5s ease forwards;
}

.animate-stat-pulse {
    animation: statPulse 2s ease infinite;
}

.animate-pulse-fade {
    animation: pulseFade 2s ease infinite;
}

/* Hover animation classes */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

/* Shimmer on hover */
.hover-shimmer {
    position: relative;
    overflow: hidden;
}

.hover-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.hover-shimmer:hover::after {
    left: 100%;
}

/* Staggered animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Enhanced hover effects */
.hover-glow:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4), 0 0 40px rgba(59, 130, 246, 0.2);
}

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

.hover-rotate:hover {
    transform: rotate(5deg);
}

/* Shimmer loading effect */
.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Gradient border animation */
.gradient-border {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary), var(--accent-gold), var(--accent-primary));
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    animation: gradientRotate 4s linear infinite;
}

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

/* Text typing effect */
.typing-effect {
    overflow: hidden;
    border-right: 2px solid var(--accent-primary);
    white-space: nowrap;
    animation: typing 3s steps(40) 1s forwards, blink 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Magnetic button effect (requires JS) */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Smooth scroll indicator */
.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.7;
    animation: fadeInUp 1s ease 2s backwards, float 2s ease-in-out infinite;
}

.scroll-indicator::after {
    content: '';
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    position: absolute;
    bottom: 38px;
    animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

/* Enhanced card hover */
.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-3d:hover {
    transform: rotateX(5deg) rotateY(-5deg) translateZ(10px);
}

/* Notification badge pulse */
.badge-pulse {
    position: relative;
}

.badge-pulse::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: var(--danger);
    border-radius: 50%;
    animation: badgePulse 2s ease infinite;
}

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

/* Success checkmark animation */
@keyframes checkmark {
    0% {
        stroke-dashoffset: 100;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.checkmark-animated {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: checkmark 0.5s ease forwards;
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Skeleton loading */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: skeleton 1.5s ease infinite;
    border-radius: var(--radius-sm);
}

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

/* Counter animation support */
.counter {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* =============================================
   MODERN BUTTON ENHANCEMENTS
   ============================================= */

/* Base button improvements */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    font-size: 1em;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Button icon styling */
.btn svg,
.btn .btn-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn:hover svg,
.btn:hover .btn-icon {
    transform: translateX(3px);
}

/* Glass button variant */
.btn-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Gradient border button */
.btn-outline-gradient {
    background: transparent;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.btn-outline-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-gold));
    border-radius: inherit;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.btn-outline-gradient:hover {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

/* Enhanced primary button */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.15) 50%, transparent 60%);
    background-size: 250% 100%;
    background-position: 100% 0;
    transition: background-position 0.5s ease;
}

.btn-primary:hover::after {
    background-position: 0 0;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
}

/* Enhanced buy/CTA button */
.btn-buy {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #f59e0b 50%, var(--accent-gold) 100%);
    background-size: 200% auto;
    color: #000;
    font-weight: 700;
    box-shadow:
        0 4px 15px rgba(251, 191, 36, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: gradientShift 3s ease infinite;
}

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

.btn-buy:hover {
    animation: none;
    background-position: 100% center;
    transform: translateY(-4px) scale(1.03);
    box-shadow:
        0 15px 40px rgba(251, 191, 36, 0.5),
        0 0 60px rgba(251, 191, 36, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Enhanced download button */
.btn-download {
    background: linear-gradient(135deg, var(--success) 0%, #16a34a 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-download::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 ease;
}

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

.btn-download:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.4);
}

/* Enhanced trial button */
.btn-trial {
    background: rgba(59, 130, 246, 0.15);
    color: #fff;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}

.btn-trial::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: -1;
}

.btn-trial:hover::before {
    transform: scaleX(1);
}

.btn-trial:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.35);
    border-color: transparent;
}

/* Button with arrow */
.btn-arrow {
    padding-right: 45px;
}

.btn-arrow::after {
    content: '→';
    position: absolute;
    right: 20px;
    transition: transform 0.3s ease, right 0.3s ease;
}

.btn-arrow:hover::after {
    transform: translateX(5px);
}

/* Button group enhancements */
.btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-group-horizontal {
    flex-direction: row;
    flex-wrap: wrap;
}

/* Small button variant */
.btn-sm {
    padding: 10px 20px;
    font-size: 0.9em;
}

/* Large button variant */
.btn-lg {
    padding: 18px 36px;
    font-size: 1.1em;
}

/* Icon-only button */
.btn-icon-only {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
}

.btn-icon-only svg {
    margin: 0;
}

/* Loading state */
.btn-loading {
    pointer-events: none;
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Focus state for accessibility */
.btn:focus-visible {
    outline: 3px solid var(--accent-primary);
    outline-offset: 3px;
}

/* =============================================
   ENHANCED CARD STYLES
   ============================================= */

.card-hover-glow:hover {
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(59, 130, 246, 0.15);
}

.card-hover-border:hover {
    border-color: var(--accent-primary);
}

.card-hover-scale:hover {
    transform: scale(1.02);
}

/* Card with animated top border */
.card-animated-border {
    position: relative;
}

.card-animated-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-gold));
    background-size: 200% 100%;
    animation: borderGradient 3s linear infinite;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

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

/* =============================================
   MICRO-INTERACTIONS
   ============================================= */

/* Link hover underline animation */
.link-animated {
    position: relative;
    text-decoration: none;
}

.link-animated::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.3s ease;
}

.link-animated:hover::after {
    width: 100%;
}

/* Icon bounce on hover */
.icon-bounce:hover {
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-5px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-3px); }
}

/* Tooltip enhancement */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    padding: 8px 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    z-index: 1000;
}

.tooltip:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

/* Number counter effect */
.count-up {
    transition: all 0.5s ease-out;
}

/* Interactive list items */
.list-interactive li {
    transition: all 0.3s ease;
    padding-left: 25px;
    position: relative;
}

.list-interactive li::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--accent-primary);
}

.list-interactive li:hover {
    transform: translateX(10px);
    color: var(--accent-gold);
}

.list-interactive li:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* =============================================
   ENHANCED FORM ELEMENTS
   ============================================= */

.input-modern {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    color: var(--text-primary);
    font-size: 1em;
    transition: all 0.3s ease;
    width: 100%;
}

.input-modern:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.input-modern::placeholder {
    color: var(--text-secondary);
}

/* Floating label input */
.input-floating {
    position: relative;
}

.input-floating input {
    padding-top: 20px;
}

.input-floating label {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    pointer-events: none;
}

.input-floating input:focus + label,
.input-floating input:not(:placeholder-shown) + label {
    top: 10px;
    font-size: 0.75em;
    color: var(--accent-primary);
}

/* =============================================
   ENHANCED NOTIFICATIONS/TOASTS
   ============================================= */

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10000;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-warning {
    border-left: 4px solid var(--warning);
}

.toast-error {
    border-left: 4px solid var(--danger);
}

.toast-info {
    border-left: 4px solid var(--accent-primary);
}

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

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 5px;
    border: 2px solid var(--bg-secondary);
}

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

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-secondary);
}

/* =============================================
   BACK TO TOP BUTTON
   ============================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6);
}

.back-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

.back-to-top svg {
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* =============================================
   PAGE LOAD ANIMATION
   ============================================= */
body {
    opacity: 1;
    transition: opacity 0.3s ease;
}

body.page-loaded {
    opacity: 1;
}

.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-load.animated {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   READING TIME BADGE
   ============================================= */
.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.reading-time::before {
    content: '⏱';
}

/* =============================================
   KEYBOARD SHORTCUTS HINT
   ============================================= */
.keyboard-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

.keyboard-hint kbd {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.75rem;
}

/* =============================================
   ENHANCED ACCESSIBILITY
   ============================================= */

/* Skip to main content link */
.skip-to-main {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: #fff;
    padding: 15px 30px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    z-index: 99999;
    transition: top var(--transition-normal);
    text-decoration: none;
    font-weight: 600;
}

.skip-to-main:focus {
    top: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: rgba(255, 255, 255, 0.3);
        --text-secondary: rgba(255, 255, 255, 0.9);
    }

    .btn, .card, .cookie-banner {
        border-width: 2px;
    }
}

/* Print styles */
@media print {
    .back-to-top,
    .cookie-banner,
    .cookie-modal,
    .cursor-dot,
    .cursor-ring,
    .language-selector {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}

/* =============================================
   CONFETTI ANIMATION (Easter Egg)
   ============================================= */
@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Rainbow Mode (Easter Egg) */
.rainbow-mode {
    animation: rainbowBg 2s linear infinite;
}

@keyframes rainbowBg {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* =============================================
   TYPEWRITER EFFECT
   ============================================= */
.typewriter-cursor::after {
    content: '|';
    animation: blink 0.7s infinite;
    color: var(--accent-primary);
    font-weight: 100;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* =============================================
   BLUR LAZY LOAD FOR IMAGES
   ============================================= */
.blur-load {
    filter: blur(10px);
    transition: filter 0.5s ease;
}

.blur-load.loaded {
    filter: blur(0);
}

/* =============================================
   ENHANCED TOAST NOTIFICATIONS
   ============================================= */
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 280px;
    max-width: 400px;
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    font-size: 1.2rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.toast-success .toast-icon {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.toast-warning .toast-icon {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.toast-info .toast-icon {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-primary);
}

.toast-message {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* =============================================
   COPY BUTTON STYLES
   ============================================= */
.copy-btn, [data-copy] {
    cursor: pointer;
    position: relative;
}

.copy-btn::after {
    content: 'Kopieren';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.copy-btn:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* =============================================
   ANIMATED COUNTER STYLES
   ============================================= */
.stat-number[data-count] {
    font-variant-numeric: tabular-nums;
    transition: transform 0.3s ease;
}

.stat-number[data-count].counted {
    animation: countPulse 0.3s ease;
}

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

/* =============================================
   SCROLL TRIGGERED ANIMATIONS
   ============================================= */
[data-animate] {
    opacity: 0;
    transition: all 0.6s ease-out;
}

[data-animate="fade-up"] {
    transform: translateY(40px);
}

[data-animate="fade-down"] {
    transform: translateY(-40px);
}

[data-animate="fade-left"] {
    transform: translateX(40px);
}

[data-animate="fade-right"] {
    transform: translateX(-40px);
}

[data-animate="zoom-in"] {
    transform: scale(0.8);
}

[data-animate="zoom-out"] {
    transform: scale(1.2);
}

[data-animate].animate-fade-up,
[data-animate].animate-fade-down,
[data-animate].animate-fade-left,
[data-animate].animate-fade-right,
[data-animate].animate-zoom-in,
[data-animate].animate-zoom-out {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* =============================================
   FLOATING LABELS
   ============================================= */
.float-label {
    position: relative;
}

.float-label input,
.float-label textarea {
    padding-top: 24px;
}

.float-label label {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.float-label input:focus + label,
.float-label input:not(:placeholder-shown) + label,
.float-label textarea:focus + label,
.float-label textarea:not(:placeholder-shown) + label {
    top: 12px;
    font-size: 0.75rem;
    color: var(--accent-primary);
}

/* =============================================
   GLASSMORPHISM CARD VARIANT
   ============================================= */
.card-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.card-glass:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

/* =============================================
   NEON GLOW EFFECTS
   ============================================= */
.neon-glow {
    text-shadow:
        0 0 5px var(--accent-primary),
        0 0 10px var(--accent-primary),
        0 0 20px var(--accent-primary),
        0 0 40px var(--accent-secondary);
}

.neon-border {
    box-shadow:
        0 0 5px var(--accent-primary),
        0 0 10px var(--accent-primary),
        inset 0 0 5px rgba(59, 130, 246, 0.1);
}

/* =============================================
   PROGRESS BAR
   ============================================= */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: inherit;
    transition: width 0.5s ease;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

/* =============================================
   BADGE STYLES
   ============================================= */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-primary {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-primary);
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.badge-gold {
    background: rgba(251, 191, 36, 0.2);
    color: var(--accent-gold);
}

.badge-new {
    animation: badgeNew 2s ease infinite;
}

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

/* =============================================
   RIPPLE EFFECT
   ============================================= */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: rippleAnim 0.6s linear;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* =============================================
   SCROLL PROGRESS BAR
   ============================================= */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 9999;
}

.scroll-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-gold));
    transition: width 0.1s ease-out;
}

/* =============================================
   FAQ SEARCH
   ============================================= */
.faq-search-wrapper {
    margin-bottom: 30px;
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-box svg {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.faq-search {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.faq-search:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.faq-search::placeholder {
    color: var(--text-secondary);
}

.search-highlight {
    background: rgba(251, 191, 36, 0.3);
    color: var(--accent-gold);
    padding: 0 2px;
    border-radius: 2px;
}

.faq-no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.faq-no-results p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.faq-item.hidden {
    display: none;
}

/* =============================================
   PRELOADER
   ============================================= */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    margin-bottom: 30px;
}

.preloader-text {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: preloaderPulse 1.5s ease infinite;
}

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

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 0.8s linear infinite;
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-caption {
    margin-top: 15px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    padding: 5px 15px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent-primary);
    transform: scale(1.1);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* =============================================
   SMOOTH HEADER
   ============================================= */
.sticky-nav.scroll-down {
    transform: translateY(-100%);
}

.sticky-nav.scroll-up {
    transform: translateY(0);
    box-shadow: var(--shadow-lg);
}

/* =============================================
   ACCORDION COMPONENT
   ============================================= */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.accordion-item.active {
    border-color: var(--accent-primary);
}

.accordion-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.accordion-header:hover {
    color: var(--accent-primary);
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-primary);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header::after {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content-inner {
    padding: 0 20px 20px;
    color: var(--text-secondary);
}

/* =============================================
   TABS COMPONENT
   ============================================= */
.tabs {
    width: 100%;
}

.tab-list {
    display: flex;
    gap: 5px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--accent-primary);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-panel {
    display: none;
    animation: tabFadeIn 0.3s ease;
}

.tab-panel.active {
    display: block;
}

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

/* =============================================
   OFFLINE MODE
   ============================================= */
.offline-mode::before {
    content: 'Offline';
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--warning);
    color: #000;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 99999;
    animation: offlinePulse 2s ease infinite;
}

@keyframes offlinePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* =============================================
   MOBILE IMPROVEMENTS
   ============================================= */
@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        padding: 10px 15px;
        font-size: 1.5rem;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }

    .tab-list {
        gap: 0;
    }

    .tab-btn {
        padding: 12px 15px;
        font-size: 0.85rem;
    }

    .accordion-header {
        padding: 15px;
    }

    .scroll-progress-bar {
        height: 2px;
    }
}

/* =============================================
   LIGHT/DARK THEME TOGGLE
   ============================================= */

/* Light Theme Variables */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.9);
    --text-primary: #1e293b;
    --text-secondary: rgba(30, 41, 59, 0.7);
    --border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] body {
    background: var(--bg-primary);
    background-image:
        radial-gradient(ellipse at top left, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
}

[data-theme="light"] .card,
[data-theme="light"] .cookie-banner,
[data-theme="light"] .cookie-modal-content {
    background: var(--bg-card);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .footer-enhanced {
    background: linear-gradient(to top, rgba(241, 245, 249, 0.9), rgba(248, 250, 252, 0.8));
}

/* =============================================
   COUNTDOWN TIMER
   ============================================= */
.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-md);
    min-width: 80px;
}

.countdown-value {
    font-size: 2.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.countdown-value.flip {
    animation: countdownFlip 0.3s ease;
}

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

.countdown-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.countdown-separator {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    animation: countdownBlink 1s ease infinite;
}

@keyframes countdownBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.countdown-expired {
    padding: 20px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-md);
}

@media (max-width: 768px) {
    .countdown-item {
        padding: 10px 12px;
        min-width: 60px;
    }

    .countdown-value {
        font-size: 1.8rem;
    }

    .countdown-separator {
        font-size: 1.5rem;
    }
}

/* =============================================
   SOCIAL SHARE BUTTONS
   ============================================= */
[data-share] {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

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

.share-btn-twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    color: #fff;
}

.share-btn-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}

.share-btn-linkedin:hover {
    background: #0a66c2;
    border-color: #0a66c2;
    color: #fff;
}

.share-btn-whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}

.share-btn-email:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

.share-btn-copy:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #000;
}

@media (max-width: 768px) {
    .share-btn-name {
        display: none;
    }

    .share-btn {
        padding: 12px;
    }
}

/* =============================================
   FORM AUTO-SAVE INDICATOR
   ============================================= */
.autosave-indicator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--bg-card);
    border: 1px solid var(--success);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    font-size: 0.85rem;
    color: var(--success);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.autosave-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   IMAGE COMPARISON SLIDER
   ============================================= */
.image-compare {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-lg);
    user-select: none;
}

.image-compare-after,
.image-compare-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.image-compare-after {
    position: relative;
}

.image-compare-before {
    width: 50%;
    overflow: hidden;
    z-index: 2;
}

.image-compare img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-compare-before img {
    width: 200%;
    max-width: none;
}

.image-compare-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #fff;
    z-index: 3;
    cursor: ew-resize;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.image-compare-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.image-compare.dragging .image-compare-handle {
    transform: translate(-50%, -50%) scale(1.1);
}

.image-compare-arrow {
    font-size: 0.8rem;
    color: var(--accent-primary);
}

.image-compare-label {
    position: absolute;
    bottom: 15px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.85rem;
    border-radius: var(--radius-full);
    z-index: 4;
}

.image-compare-label-before {
    left: 15px;
}

.image-compare-label-after {
    right: 15px;
}

/* =============================================
   SCROLL SPY ACTIVE STATES
   ============================================= */
.nav-link.active,
.nav-link.nav-active {
    color: var(--accent-primary) !important;
    position: relative;
}

.nav-link.active::after,
.nav-link.nav-active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
    animation: navActiveSlide 0.3s ease;
}

@keyframes navActiveSlide {
    from { width: 0; }
    to { width: 100%; }
}

/* =============================================
   TOOLTIP ELEMENT
   ============================================= */
.tooltip-element {
    position: absolute;
    padding: 8px 14px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    pointer-events: none;
    opacity: 0;
    z-index: 10000;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    max-width: 250px;
}

.tooltip-element.active {
    opacity: 1;
}

.tooltip-top {
    transform: translateY(5px);
}

.tooltip-top.active {
    transform: translateY(0);
}

.tooltip-bottom {
    transform: translateY(-5px);
}

.tooltip-bottom.active {
    transform: translateY(0);
}

.tooltip-left {
    transform: translateX(5px);
}

.tooltip-left.active {
    transform: translateX(0);
}

.tooltip-right {
    transform: translateX(-5px);
}

.tooltip-right.active {
    transform: translateX(0);
}

/* =============================================
   STICKY ELEMENTS
   ============================================= */
.is-sticky {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 100;
    animation: stickySlide 0.3s ease;
}

@keyframes stickySlide {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.sticky-placeholder {
    visibility: hidden;
}

/* =============================================
   SESSION TIMER
   ============================================= */
.session-timer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.session-timer::before {
    content: '⏱';
}

/* =============================================
   PARALLAX
   ============================================= */
[data-parallax] {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* =============================================
   ADDITIONAL UTILITY CLASSES
   ============================================= */

/* Text truncation */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Visibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }

/* Grid utilities */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

/* Spacing utilities */
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }

.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }

/* Color utilities */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent-primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-gold { color: var(--accent-gold); }

/* Background utilities */
.bg-primary { background: var(--bg-primary); }
.bg-secondary { background: var(--bg-secondary); }
.bg-card { background: var(--bg-card); }
.bg-accent { background: var(--accent-primary); }

/* Border utilities */
.rounded { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }
.border { border: 1px solid var(--border-color); }

/* Shadow utilities */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* =============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================= */

/* GPU-accelerated animations */
.animate-fade-in,
.animate-slide-in,
.animate-slide-in-left,
.hover-lift,
.tool-card,
.support-card,
.faq-item,
.content-card {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Optimize images */
img {
    content-visibility: auto;
}

/* Optimize large lists */
.tools-grid,
.faq-list {
    contain: layout style;
}

/* =============================================
   ENHANCED MOBILE STYLES
   ============================================= */

/* Touch-friendly target sizes (min 44px) */
@media (max-width: 768px) {
    .btn,
    .nav-links a,
    .lang-select,
    button,
    a[role="button"] {
        min-height: 44px;
        min-width: 44px;
    }

    /* Better touch spacing */
    .nav-links {
        gap: 4px;
    }

    .nav-links a {
        padding: 12px 16px;
    }

    /* Larger tap targets for interactive elements */
    .faq-question {
        padding: 16px 20px;
    }

    .support-card {
        padding: 24px;
    }

    /* Prevent text size adjustment on orientation change */
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    /* Smoother scrolling on iOS */
    body {
        -webkit-overflow-scrolling: touch;
    }

    /* Disable hover effects on touch devices for better performance */
    .tool-card:hover,
    .support-card:hover,
    .faq-item:hover {
        transform: none;
    }

    .tool-card:active,
    .support-card:active {
        transform: scale(0.98);
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .container {
        padding: 12px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.25rem;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .header {
        height: 56px;
    }

    .main-content {
        padding-top: 56px;
    }
}

@media (max-width: 768px) {
    .countdown-timer {
        padding: 15px 10px;
        gap: 3px;
    }

    .image-compare-handle {
        width: 40px;
        height: 40px;
    }

    .back-to-top {
        bottom: 90px;
    }
}

/* =============================================
   SAFE AREA SUPPORT (notch devices)
   ============================================= */
@supports (padding: max(0px)) {
    .header {
        padding-left: max(24px, env(safe-area-inset-left));
        padding-right: max(24px, env(safe-area-inset-right));
    }

    .footer {
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }

    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
}
