:root {
    --primary-color: #85CD43;
    --secondary-color: #4DA86B;
    --accent-color: #40897E;
    --text-color: #E5E7EB;
    --light-text: #9CA3AF;
    --background: #172536;
    --card-background: #223F54;
    --card-background-alt: #3F4750;
    --gradient-start: #85CD43;
    --gradient-end: #4DA86B;
    --gradient-accent: #40897E;
    --border-color: #326673;
    --dark-accent: #333F48;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    line-height: 1.5;
    background: var(--background);
    position: relative;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Network Grid Animation */
.network-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(133, 205, 67, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(133, 205, 67, 0.03) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(100px, 100px);
    }
}

/* Particles Animation */
.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particles-container::before,
.particles-container::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gradient-start);
    border-radius: 50%;
    box-shadow: 
        0 0 10px var(--gradient-start),
        100px 200px 0 rgba(133, 205, 67, 0.8),
        200px 400px 0 rgba(133, 205, 67, 0.6),
        300px 100px 0 rgba(133, 205, 67, 0.9),
        400px 300px 0 rgba(133, 205, 67, 0.7),
        500px 500px 0 rgba(133, 205, 67, 0.5),
        600px 200px 0 rgba(133, 205, 67, 0.8),
        700px 400px 0 rgba(133, 205, 67, 0.6),
        800px 100px 0 rgba(133, 205, 67, 0.9),
        900px 300px 0 rgba(133, 205, 67, 0.7),
        1000px 500px 0 rgba(133, 205, 67, 0.5),
        1100px 200px 0 rgba(133, 205, 67, 0.8),
        150px 600px 0 rgba(133, 205, 67, 0.6),
        350px 700px 0 rgba(133, 205, 67, 0.9),
        550px 150px 0 rgba(133, 205, 67, 0.7),
        750px 350px 0 rgba(133, 205, 67, 0.5);
    animation: particlesFloat 25s linear infinite;
}

.particles-container::after {
    animation-delay: -12s;
    animation-duration: 30s;
}

@keyframes particlesFloat {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-1000px) translateX(500px) rotate(360deg);
        opacity: 0;
    }
}

/* Shield Animation */
.shield-animation {
    position: absolute;
    top: 10%;
    right: 10%;
    width: 300px;
    height: 300px;
}

.shield-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid rgba(133, 205, 67, 0.2);
    border-radius: 50%;
    animation: shieldPulse 4s ease-in-out infinite;
}

.shield-layer:nth-child(2) {
    animation-delay: 1.3s;
    border-color: rgba(133, 205, 67, 0.15);
}

.shield-layer:nth-child(3) {
    animation-delay: 2.6s;
    border-color: rgba(133, 205, 67, 0.1);
}

@keyframes shieldPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 1;
    }
}

/* Data Streams Animation */
.data-streams {
    position: absolute;
    width: 100%;
    height: 100%;
}

.data-streams::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 0;
    width: 200%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(133, 205, 67, 0.5),
        transparent
    );
    animation: dataFlow1 8s linear infinite;
}

.data-streams::after {
    content: '';
    position: absolute;
    top: 60%;
    left: 0;
    width: 200%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(77, 168, 107, 0.5),
        transparent
    );
    animation: dataFlow2 10s linear infinite;
}

@keyframes dataFlow1 {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(50%);
    }
}

@keyframes dataFlow2 {
    0% {
        transform: translateX(50%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Scanning Wave Effect */
.animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(133, 205, 67, 0.1),
        transparent
    );
    animation: scanWave 15s ease-in-out infinite;
    transform: skewX(-20deg);
}

@keyframes scanWave {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

/* Cyber Grid Background */
.animated-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            rgba(133, 205, 67, 0.02) 0px,
            transparent 1px,
            transparent 40px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(133, 205, 67, 0.02) 0px,
            transparent 1px,
            transparent 40px
        );
    animation: cyberGrid 20s linear infinite;
}

@keyframes cyberGrid {
    0% {
        transform: perspective(500px) rotateX(60deg) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: perspective(500px) rotateX(60deg) scale(1.1);
        opacity: 0.5;
    }
    100% {
        transform: perspective(500px) rotateX(60deg) scale(1);
        opacity: 0.3;
    }
}

/* Lock Icon Animation */
.shield-animation::before {
    content: '🔒';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: 0.3;
    animation: lockPulse 3s ease-in-out infinite;
}

@keyframes lockPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
}

/* Digital Rain Effect (Matrix-style) */
.data-streams {
    background: 
        linear-gradient(
            180deg,
            transparent 0%,
            rgba(133, 205, 67, 0.01) 50%,
            transparent 100%
        );
}

/* Glitch Effect on Hover */
.hero:hover .animated-bg {
    animation: glitchBg 0.3s ease-in-out;
}

@keyframes glitchBg {
    0%, 100% {
        transform: translate(0);
    }
    33% {
        transform: translate(-2px, 2px);
    }
    66% {
        transform: translate(2px, -2px);
    }
}

/* Hexagon Pattern */
.network-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(133, 205, 67, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(77, 168, 107, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(133, 205, 67, 0.05) 0%, transparent 50%);
    animation: hexagonPulse 10s ease-in-out infinite;
}

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

/* Orbiting Particles */
.shield-animation::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    border: 1px dashed rgba(133, 205, 67, 0.2);
    border-radius: 50%;
    animation: orbitRotate 30s linear infinite;
}

@keyframes orbitRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Energy Wave */
@keyframes energyWave {
    0% {
        box-shadow: 
            0 0 10px rgba(133, 205, 67, 0.5),
            0 0 20px rgba(133, 205, 67, 0.3),
            0 0 30px rgba(133, 205, 67, 0.1);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(133, 205, 67, 0.8),
            0 0 40px rgba(133, 205, 67, 0.5),
            0 0 60px rgba(133, 205, 67, 0.3);
    }
    100% {
        box-shadow: 
            0 0 10px rgba(133, 205, 67, 0.5),
            0 0 20px rgba(133, 205, 67, 0.3),
            0 0 30px rgba(133, 205, 67, 0.1);
    }
}

/* Ensure content is above animations */
header, main, footer {
    position: relative;
    z-index: 1;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(30, 27, 38, 0.65);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    z-index: 1000;
}

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

/* Header Logo с анимацией (фиксированная ширина - не двигает кнопки) */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    width: 40px; /* Фиксированная ширина = ширина иконки */
    height: 40px;
    overflow: visible; /* Позволяет тексту выходить за пределы контейнера */
}

.logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    transition: transform 0.3s ease-out;
}

.logo:hover .logo-icon {
    transform: rotate(5deg) scale(1.05);
}

.logo-text {
    font-family: 'Playfair Display', serif !important;
    font-style: italic;
    font-weight: 400;
    font-size: 28px;
    line-height: 40px;
    background: linear-gradient(90deg, #85cd43, #40897e) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    white-space: nowrap;
    position: absolute !important;
    left: 50px !important;
    top: 0 !important;
    z-index: 1001 !important;
    visibility: hidden !important;
    opacity: 0 !important;
    display: none !important;
    transform: translateX(-20px) !important;
    letter-spacing: 8px;
    text-shadow: 0 0 5px rgba(133, 205, 67, 0.5), 0 0 15px rgba(64, 137, 126, 0.3);
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                letter-spacing 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover .logo-text,
.logo-text.visible {
    visibility: visible !important;
    opacity: 1 !important;
    display: inline-block !important;
    transform: translateX(0) !important;
    letter-spacing: 3px;
}

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

@media (max-width: 768px) {
    .logo-text {
        font-size: 22px;
    }
    .logo:hover .logo-text {
        max-width: 140px;
        margin-left: 6px;
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

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

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary, .btn-secondary {
    border-radius: 0.75rem;
    border: 1px solid rgba(133, 205, 67, 0.3);
    box-shadow: 0 4px 24px 0 rgba(133, 205, 67, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.btn-secondary {
    background: rgba(30, 27, 38, 0.5);
    border: 1px solid rgba(133, 205, 67, 0.5);
}

.btn-primary:hover, .btn-secondary:hover {
    border: 1px solid var(--gradient-start);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
    box-shadow: 0 8px 32px 0 rgba(133, 205, 67, 0.3);
    transform: translateY(-2px);
}

/* Кнопка входа в сервис (отдельно для nav-buttons) */
.nav-buttons .btn-secondary {
    background: rgba(30, 27, 38, 0.25);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Stats Section */
.stats {
    padding: 4rem 2rem;
    background: var(--background);
}

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

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--card-background);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--gradient-start);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--light-text);
    font-size: 1rem;
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 4rem;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(133, 205, 67, 0.1), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--light-text);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(133, 205, 67, 0.3));
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background: var(--card-background);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gradient-start), transparent);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--background);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--gradient-start);
}

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

.feature-card i {
    font-size: 2.5rem;
    color: var(--gradient-start);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.feature-card h3 {
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--light-text);
    position: relative;
    z-index: 1;
}

/* How It Works Section */
.how-it-works {
    padding: 6rem 2rem;
    background: var(--background);
    position: relative;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gradient-start), transparent);
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.how-it-works-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step-card {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--gradient-start);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}

.step-icon {
    font-size: 3rem;
    margin: 2rem 0 1rem;
    color: var(--gradient-start);
}

.step-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.step-card p {
    color: var(--light-text);
}

/* Pricing Section */
.pricing {
    padding: 6rem 2rem;
    position: relative;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gradient-start), transparent);
}

.pricing h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-subtitle {
    text-align: center;
    color: var(--light-text);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.pricing-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pricing-card.featured {
    border: 2px solid var(--gradient-start);
    transform: scale(1.05);
}

.pricing-card.featured::before {
    opacity: 0.1;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1.5rem 0;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-card ul {
    list-style: none;
    margin: 2rem 0;
    position: relative;
    z-index: 1;
}

.pricing-card li {
    margin: 0.8rem 0;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: left;
    padding: 0 1rem;
}

.pricing-card li i {
    font-size: 1rem;
    min-width: 16px;
}

.pricing-card li .fa-check {
    color: var(--gradient-start);
}

.pricing-card li .fa-times {
    color: #666;
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.price-period {
    font-size: 1rem;
    color: var(--light-text);
    font-weight: 400;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Download Section */
.download {
    padding: 6rem 2rem;
    background: var(--background);
    position: relative;
}

.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gradient-start), transparent);
}

.download-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.download-text h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.download-subtitle {
    color: var(--light-text);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.download-text > p {
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.download-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.download-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-color);
}

.download-feature i {
    color: var(--gradient-start);
    font-size: 1.2rem;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.download-note {
    color: var(--light-text);
    font-size: 0.9rem;
    text-align: center;
}

.browser-mockup {
    background: var(--card-background);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.browser-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.browser-dots {
    display: flex;
    gap: 0.5rem;
}

.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
}

.browser-content {
    padding: 4rem;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FAQ Section */
.faq {
    padding: 6rem 2rem;
    background: var(--card-background);
    position: relative;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gradient-start), transparent);
}

.faq h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.faq-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: var(--background);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--gradient-start);
    transform: translateY(-3px);
}

.faq-question {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.faq-question i {
    color: var(--gradient-start);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.faq-question h3 {
    font-size: 1.2rem;
    margin: 0;
}

.faq-answer p {
    color: var(--light-text);
    line-height: 1.6;
}

/* Security Section */
.security {
    padding: 6rem 2rem;
    background: var(--card-background);
    position: relative;
}

.security::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gradient-start), transparent);
}

.security h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.security-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.security-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.security-text ul {
    list-style: none;
}

.security-text li {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--light-text);
}

.security-text li:before {
    content: "✓";
    color: var(--gradient-start);
    font-weight: bold;
}

.security-badges {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--background);
    border-radius: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.security-badge:hover {
    border-color: var(--gradient-start);
    transform: translateY(-2px);
}

.security-badge i {
    color: var(--gradient-start);
}

.security-badge span {
    color: var(--text-color);
    font-weight: 500;
}

.security-image img {
    filter: drop-shadow(0 0 20px rgba(133, 205, 67, 0.3));
}

/* Support Section */
.support {
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
}

.support::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gradient-start), transparent);
}

.support h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.support-content {
    max-width: 800px;
    margin: 0 auto;
}

.support-text p {
    font-size: 1.25rem;
    color: var(--light-text);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: var(--card-background);
    color: var(--text-color);
    padding: 4rem 2rem 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gradient-start), transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

/* Footer Logo с анимацией (фиксированная ширина - не двигает элементы) */
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    width: 40px; /* Фиксированная ширина = ширина иконки */
    height: 40px;
    overflow: visible; /* Позволяет тексту выходить за пределы контейнера */
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    transition: transform 0.3s ease-out;
}

.footer-logo:hover .footer-logo-icon {
    transform: rotate(5deg) scale(1.05);
}

/* Footer logo text убран - только иконка */

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.footer-column a {
    display: block;
    color: var(--light-text);
    text-decoration: none;
    margin: 0.5rem 0;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--gradient-start);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--light-text);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 6rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .how-it-works-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .download-content {
        grid-template-columns: 1fr;
    }

    .browser-mockup {
        max-width: 400px;
        margin: 0 auto;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .security-content {
        grid-template-columns: 1fr;
    }

    .security-badges {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .step-card {
        margin-top: 1rem;
    }
}

/* ========================================
   Toast Notifications (Уведомления)
   ======================================== */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: var(--card-background);
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 320px;
    max-width: 450px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
    border-left: 4px solid var(--primary-color);
}

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

.toast-icon {
    font-size: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-message {
    flex: 1;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--light-text);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 16px;
}

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

/* Toast Types */
.toast-success {
    border-left-color: #10B981;
}

.toast-success .toast-icon {
    color: #10B981;
}

.toast-error {
    border-left-color: #EF4444;
}

.toast-error .toast-icon {
    color: #EF4444;
}

.toast-warning {
    border-left-color: #F59E0B;
}

.toast-warning .toast-icon {
    color: #F59E0B;
}

.toast-info {
    border-left-color: #3B82F6;
}

.toast-info .toast-icon {
    color: #3B82F6;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}

/* ========================================
   Улучшенная секция авторизации
   ======================================== */

.auth-section {
    margin: 20px 0;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    text-align: center;
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.auth-message {
    color: var(--text-color);
    font-size: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
}

.auth-message i {
    color: var(--primary-color);
    font-size: 18px;
}

#telegramLoginWidget {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    gap: 12px;
}

/* Альтернативная кнопка авторизации через Telegram */
.telegram-auth-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #0088cc, #00a0e3);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
    cursor: pointer;
}

.telegram-auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
    background: linear-gradient(135deg, #0099dd, #00b0f4);
}

.telegram-auth-button:active {
    transform: translateY(0);
}

.telegram-auth-button svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.auth-hint {
    color: var(--light-text);
    font-size: 13px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: fadeIn 0.5s ease;
}

.auth-hint i {
    color: var(--primary-color);
}

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

/* Пульсирующая анимация для кнопки при неавторизованном состоянии */
.btn-auth-required {
    animation: pulseGlow 2s ease-in-out infinite;
    position: relative;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(133, 205, 67, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(133, 205, 67, 0);
    }
}

/* ========================================
   Анимация логотипа в хедере
   ======================================== */

.logo {
    display: flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
    position: relative;
    padding: 4px 8px 4px 4px;
    transition: all 0.3s ease;
}

.logo-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

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

.logo-text {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 28px;
    font-weight: 400;
    font-style: italic;
    background: linear-gradient(90deg, #85CD43 0%, #4DA86B 70%, #40897E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    white-space: nowrap;
    position: relative;
    
    /* Скрыта по умолчанию */
    width: 0;
    opacity: 0;
    overflow: hidden;
    margin-left: 0;
    transition: opacity 0.2s ease;
}

.logo:hover .logo-text {
    width: auto;
    opacity: 1;
    margin-left: 12px;
    animation: writeText 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Анимация "написания" текста пером */
@keyframes writeText {
    0% {
        clip-path: inset(0 100% 0 0);
        letter-spacing: 8px;
    }
    100% {
        clip-path: inset(0 0 0 0);
        letter-spacing: 3px;
    }
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .logo-text {
        font-size: 24px;
    }
    
    .logo:hover .logo-text {
        max-width: 150px;
    }
}

/* ========================================
   Кнопка авторизации в хедере
   ======================================== */

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

#headerLoginBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.95rem;
    white-space: nowrap;
}

#headerLoginBtn i {
    font-size: 0.9rem;
}

/* Карточка пользователя в хедере */
.header-user-info {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 6px 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(133, 205, 67, 0.3);
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.header-user-info:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(133, 205, 67, 0.2);
}

.header-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.header-user-name {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .header-user-name {
        max-width: 100px;
        font-size: 0.85rem;
    }
    
    #headerLoginBtn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    #headerLoginBtn span {
        display: none; /* Скрываем текст "Войти" на мобильных, оставляем только иконку */
    }
} 
/* Auth & User Styles */
.auth-nav-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-auth-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-auth-link i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.nav-auth-link:hover {
    color: var(--primary-color);
}

.user-avatar-mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.user-avatar-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-dashboard-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 1rem 0.4rem 0.4rem;
    border-radius: 2rem;
    border: 1px solid rgba(133, 205, 67, 0.2);
    transition: all 0.3s ease;
}

.nav-dashboard-link:hover {
    background: rgba(133, 205, 67, 0.1);
    border-color: var(--primary-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content.auth-modal {
    background: var(--card-background);
    margin: 10% auto;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 400px;
    border-radius: 1.5rem;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-text);
}

.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.auth-tab {
    background: none;
    border: none;
    color: var(--light-text);
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-weight: 600;
    position: relative;
}

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

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.auth-form-content h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: white;
}

.w-100 { width: 100%; }

/* Dashboard */
.dashboard-section {
    padding: 8rem 0 4rem;
    min-height: 80vh;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

.dashboard-sidebar {
    background: var(--card-background);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.user-profile-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.user-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 3px solid var(--primary-color);
}

.user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    color: var(--light-text);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.dashboard-menu a:hover, .dashboard-menu a.active {
    background: rgba(133, 205, 67, 0.1);
    color: var(--primary-color);
}

.logout-item:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
}

.subscription-card {
    background: var(--card-background);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.status-badge {
    padding: 0.5rem 1rem;
    background: rgba(133, 205, 67, 0.2);
    color: var(--primary-color);
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.activation-code-container {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.code-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    border: 1px dashed var(--primary-color);
}

#activationCodeDisplay {
    font-family: 'Bruno Ace SC', monospace;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--primary-color);
}

.icon-btn {
    background: none;
    border: none;
    color: var(--light-text);
    cursor: pointer;
    font-size: 1.25rem;
    transition: color 0.3s;
}

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

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .hide-mobile { display: none; }
}

/* Professional User Info Card */
.user-info-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(52, 212, 174, 0.3);
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    display: block;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
}

.user-sub-status {
    color: var(--light-text);
    font-size: 0.85rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.hide-mobile {
    @media (max-width: 768px) {
        display: none;
    }
}

/* OAuth Buttons */
.social-auth {
    margin-top: 1.5rem;
    text-align: center;
}

.social-auth p {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 1rem;
    position: relative;
}

.social-auth p::before,
.social-auth p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 25%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.social-auth p::before { left: 0; }
.social-auth p::after { right: 0; }

.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.btn-oauth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-oauth:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-oauth.google i {
    color: #DB4437;
}

/* Logout Link in Header */
.logout-link-header {
    color: var(--light-text) !important;
    transition: color 0.3s ease;
}

.logout-link-header:hover {
    color: #ff5555 !important;
}

.logout-link-header i {
    color: #ff5555 !important;
}

/* Toast Notification System */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    min-width: 320px;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

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

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-message {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--light-text);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

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

.toast-success {
    border-left: 4px solid #85CD43;
}

.toast-success .toast-icon {
    color: #85CD43;
}

.toast-error {
    border-left: 4px solid #ff5555;
}

.toast-error .toast-icon {
    color: #ff5555;
}

.toast-warning {
    border-left: 4px solid #ffaa00;
}

.toast-warning .toast-icon {
    color: #ffaa00;
}

.toast-info {
    border-left: 4px solid #4da6ff;
}

.toast-info .toast-icon {
    color: #4da6ff;
}

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

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

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

/* Form Validation Styles */
.form-group {
    position: relative;
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: #ff5555;
    background: rgba(255, 85, 85, 0.1);
}

.form-group input:valid:not(:placeholder-shown) {
    border-color: #85CD43;
}

.form-error {
    color: #ff5555;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    display: none;
}

.form-group.error .form-error {
    display: block;
}

.form-group.error input {
    border-color: #ff5555;
    background: rgba(255, 85, 85, 0.1);
}

.form-group.success input {
    border-color: #85CD43;
}

.password-requirements {
    font-size: 0.75rem;
    color: var(--light-text);
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    display: none;
}

.form-group:focus-within .password-requirements {
    display: block;
}

.password-requirements ul {
    list-style: none;
    padding-left: 0;
    margin: 0.25rem 0 0 0;
}

.password-requirements li {
    margin: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.password-requirements li.valid {
    color: #85CD43;
}

.password-requirements li.valid::before {
    content: '✓';
    color: #85CD43;
    font-weight: bold;
}

.password-requirements li::before {
    content: '○';
    color: var(--light-text);
}
