/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #00D4FF;
    --primary-dark: #00B8E6;
    --secondary-color: #1A1A2E;
    --accent-color: #FF6B6B;
    --success-color: #4ECDC4;
    --warning-color: #FFE66D;
    --danger-color: #FF6B6B;
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #00D4FF 0%, #0099CC 100%);
    --hero-gradient: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%);
    --card-gradient: linear-gradient(145deg, #ebf5fa 0%, #d4ecf5 100%);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease-out;
    --transition: 0.3s ease-out;
    --transition-slow: 0.5s ease-out;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: #ebf5fa;
}

/* Убираем подчеркивание у всех ссылок */
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Typography */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    transform-origin: center;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--shadow-lg);
    animation: glow 2s ease-in-out infinite alternate;
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.01);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-base);
}

/* Desktop Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(15, 52, 96, 0.95) 50%, rgba(22, 33, 62, 0.95) 100%);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: var(--space-4) 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    transition: all var(--transition);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(76, 205, 196, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: white;
    transition: all var(--transition);
    cursor: pointer;
}

.nav-brand:hover {
    transform: translateY(-1px);
    text-shadow: 0 4px 8px rgba(0, 212, 255, 0.3);
}

.nav-brand i {
    color: var(--primary-color);
    font-size: var(--font-size-2xl);
    animation: pulse 3s ease-in-out infinite;
    transition: all var(--transition);
}

.nav-brand:hover i {
    transform: scale(1.1) rotate(5deg);
    animation: none;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition);
    position: relative;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    overflow: hidden;
}

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

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    text-shadow: 0 4px 8px rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.admin-btn {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.15));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 8px 16px;
    color: #FFD700 !important;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.admin-btn:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 165, 0, 0.25));
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    text-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.admin-btn i {
    font-size: 1rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: all var(--transition);
    transform: translateX(-50%);
    border-radius: var(--radius-full);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-full);
    padding: var(--space-2) var(--space-6);
}

.nav-link.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #00E6FF 0%, #00B8E6 100%);
}

.nav-link.btn-primary::after {
    display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    position: fixed;
    top: var(--space-4);
    left: var(--space-4);
    z-index: 1001;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius);
    padding: var(--space-2);
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all var(--transition);
    box-shadow: var(--shadow-lg);
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: white;
    border-radius: var(--radius-full);
    transition: all var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Sidebar Navigation */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0F3460 50%, #16213E 100%);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all var(--transition);
    border-right: 1px solid rgba(0, 212, 255, 0.2);
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(76, 205, 196, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.sidebar-header {
    padding: var(--space-6) var(--space-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: white;
    transition: all var(--transition);
    cursor: pointer;
}

.nav-brand:hover {
    transform: translateY(-1px);
    text-shadow: 0 4px 8px rgba(0, 212, 255, 0.3);
}

.nav-brand i {
    color: var(--primary-color);
    font-size: var(--font-size-2xl);
    animation: pulse 3s ease-in-out infinite;
    transition: all var(--transition);
}

.nav-brand:hover i {
    transform: scale(1.1) rotate(5deg);
    animation: none;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

.sidebar-menu {
    flex: 1;
    padding: var(--space-4) 0;
    position: relative;
    z-index: 2;
}

.mobile-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-3) var(--space-4);
    margin: var(--space-1) var(--space-2);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.mobile-sidebar .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.mobile-sidebar .nav-link:hover::before {
    left: 100%;
}

.mobile-sidebar .nav-link:hover {
    color: var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
    transform: translateX(5px);
    text-shadow: 0 2px 4px rgba(0, 212, 255, 0.3);
}

.mobile-sidebar .nav-link i {
    font-size: var(--font-size-lg);
    width: 20px;
    text-align: center;
    transition: all var(--transition);
}

.mobile-sidebar .nav-link:hover i {
    transform: scale(1.1);
    color: var(--primary-color);
}

.mobile-sidebar .nav-link.primary-link {
    background: var(--primary-gradient);
    color: white;
    margin-top: var(--space-4);
    box-shadow: var(--shadow-md);
}

.mobile-sidebar .nav-link.primary-link:hover {
    background: linear-gradient(135deg, #00E6FF 0%, #00B8E6 100%);
    transform: translateX(8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.sidebar-footer {
    padding: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

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


/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0F3460 50%, #16213E 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    animation: slideInFromLeft 1s ease-out;
}

.hero-visual {
    animation: slideInFromRight 1s ease-out 0.3s both;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    overflow: hidden;
}

.crypto-animation {
    position: relative;
    width: 100%;
    height: 100%;
}

.crypto-icon {
    position: absolute;
    font-size: 4rem;
    color: var(--primary-color);
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--delay);
}

.crypto-icon:nth-child(1) { top: 20%; left: 10%; }
.crypto-icon:nth-child(2) { top: 60%; right: 15%; }
.crypto-icon:nth-child(3) { bottom: 30%; left: 20%; }
.crypto-icon:nth-child(4) { top: 40%; right: 30%; }
.crypto-icon:nth-child(5) { top: 15%; right: 50%; }
.crypto-icon:nth-child(6) { bottom: 20%; right: 20%; }
.crypto-icon:nth-child(7) { top: 70%; left: 40%; }
.crypto-icon:nth-child(8) { bottom: 50%; left: 60%; }

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 0.3; 
    }
    25% { 
        transform: translateY(-15px) rotate(45deg) scale(1.1); 
        opacity: 0.6; 
    }
    50% { 
        transform: translateY(-20px) rotate(90deg) scale(1.2); 
        opacity: 0.8; 
    }
    75% { 
        transform: translateY(-10px) rotate(135deg) scale(1.1); 
        opacity: 0.6; 
    }
}

/* Mobile-friendly float animation (simplified, no rotation/scale) */
@keyframes floatMobile {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.35;
    }
    50% {
        transform: translateY(-8px);
        opacity: 0.55;
    }
}

/* On touch devices use gentler animation for crypto icons */
.is-touch .crypto-icon {
    animation: floatMobile 12s ease-in-out infinite;
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.6), 0 0 30px rgba(0, 212, 255, 0.4);
    }
}

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

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

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Floating Particles Animation */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    left: var(--x);
    top: var(--y);
    opacity: 0.6;
    animation: particleFloat 8s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes particleFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) scale(1); 
        opacity: 0.3; 
    }
    25% { 
        transform: translateY(-30px) translateX(15px) scale(1.2); 
        opacity: 0.8; 
    }
    50% { 
        transform: translateY(-50px) translateX(-10px) scale(1.5); 
        opacity: 1; 
    }
    75% { 
        transform: translateY(-20px) translateX(20px) scale(1.1); 
        opacity: 0.6; 
    }
}

/* Geometric Shapes Animation */
.geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    left: var(--x);
    top: var(--y);
    opacity: 0.2;
    animation: shapeFloat 10s ease-in-out infinite;
    animation-delay: var(--delay);
}

.shape.triangle {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 25px solid var(--primary-color);
}

.shape.circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--success-color);
}

.shape.square {
    width: 18px;
    height: 18px;
    background: var(--warning-color);
    transform: rotate(45deg);
}

.shape.hexagon {
    width: 20px;
    height: 12px;
    background: var(--accent-color);
    position: relative;
}

.shape.hexagon:before,
.shape.hexagon:after {
    content: "";
    position: absolute;
    width: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
}

.shape.hexagon:before {
    bottom: 100%;
    border-bottom: 6px solid var(--accent-color);
}

.shape.hexagon:after {
    top: 100%;
    border-top: 6px solid var(--accent-color);
}

@keyframes shapeFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 0.2; 
    }
    25% { 
        transform: translateY(-40px) rotate(90deg) scale(1.3); 
        opacity: 0.5; 
    }
    50% { 
        transform: translateY(-80px) rotate(180deg) scale(1.6); 
        opacity: 0.8; 
    }
    75% { 
        transform: translateY(-30px) rotate(270deg) scale(1.2); 
        opacity: 0.4; 
    }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    color: white;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-6);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    opacity: 0.9;
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: var(--space-8);
    margin-bottom: var(--space-10);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    display: block;
    font-size: var(--font-size-sm);
    opacity: 0.8;
    margin-top: var(--space-1);
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* Trading Card */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.trading-card {
    background: var(--card-gradient);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-xl);
    max-width: 400px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: bounceIn 1s ease-out 0.8s both;
    transition: all var(--transition);
}

.trading-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.signal-badge {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.signal-badge.pump {
    background: rgba(76, 205, 196, 0.2);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.signal-badge.dump {
    background: rgba(255, 107, 107, 0.2);
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

.coin-name {
    font-weight: 700;
    color: var(--secondary-color);
}

.price-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    font-size: var(--font-size-lg);
}

.price-old {
    color: #666;
    text-decoration: line-through;
}

.price-arrow {
    color: var(--primary-color);
    font-weight: bold;
}

.price-current {
    color: var(--success-color);
    font-weight: 700;
}

.technical-info {
    margin-bottom: var(--space-4);
}

.indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-2);
    font-size: var(--font-size-sm);
}

.indicator .label {
    color: #666;
}

.indicator .value.green {
    color: var(--success-color);
}

.indicator .value.red {
    color: var(--danger-color);
}

.indicator .value.yellow {
    color: var(--warning-color);
}

/* Анимации для обновления данных */
.trading-card.updating {
    animation: pulse 0.5s ease-in-out;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

/* Индикатор последнего обновления */
.last-update {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 8px;
    color: #666;
    background: rgba(235, 245, 250, 0.9);
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 500;
    z-index: 5;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(4px);
    max-width: 60px;
    text-align: center;
}

.last-update.flash {
    background: rgba(0, 212, 255, 0.9);
    color: white;
}

.price-current.updating {
    animation: pulse 0.5s ease-in-out;
    color: var(--success-color);
}

/* Индикатор загрузки */
.loading-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

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

.targets {
    font-size: var(--font-size-sm);
    color: #666;
}

.target-item {
    margin-bottom: var(--space-1);
}

/* Sections */
section {
    padding: var(--space-20) 0;
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 90% 10%, rgba(0, 212, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(76, 205, 196, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

section .container {
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}

.section-subtitle {
    font-size: var(--font-size-xl);
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
}

/* Features Section */
.features {
    background: linear-gradient(to bottom, #ebf5fa 0%, #ebf5fa 85%, #d4ecf5 100%);
    position: relative;
}

.features::before {
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(76, 205, 196, 0.03) 0%, transparent 50%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

.feature-card {
    background: #ebf5fa;
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.15);
    animation: glow 2s ease-in-out infinite alternate;
    background: linear-gradient(145deg, #ebf5fa 0%, #d4ecf5 100%);
}

.feature-card:active {
    transform: translateY(-3px) scale(1.01);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
    font-size: var(--font-size-2xl);
    color: white;
}

.feature-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--secondary-color);
}

.feature-card p {
    color: #666;
    line-height: 1.7;
}

/* Signals Section */
.signals {
    background: linear-gradient(to bottom, #d4ecf5 0%, #ebf5fa 15%, #ebf5fa 100%);
    position: relative;
}

.signals::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(76, 205, 196, 0.04) 0%, transparent 40%);
    pointer-events: none;
}

.signals .section-header {
    position: relative;
    z-index: 1;
}

.signals .section-title {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0F3460 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.signals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.signal-card {
    background: linear-gradient(135deg, #ebf5fa 0%, #d4ecf5 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 212, 255, 0.1);
    position: relative;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    display: flex;
    flex-direction: column;
}

.signal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.signal-card.clickable {
    cursor: pointer;
}

.signal-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.25);
    border-color: rgba(0, 212, 255, 0.3);
}

.signal-card:hover::before {
    opacity: 1;
}

.signal-card:active {
    transform: translateY(-6px);
}

.signal-card.featured {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-4px);
    background: linear-gradient(135deg, #ebf5fa 0%, #d4ecf5 100%);
}

.signal-card.featured::before {
    opacity: 0.5;
}

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

.signal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-8);
    gap: var(--space-4);
}

.signal-header h3 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.2;
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.signal-header h3 i {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.signal-card:hover .signal-header h3 i {
    transform: scale(1.1) rotate(5deg);
}

.signal-card.premium-card .signal-header h3 i {
    color: var(--danger-color);
}

.signal-symbol {
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-symbol-btn {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 6px;
    padding: 4px 8px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.copy-symbol-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: scale(1.05);
}

.copy-symbol-btn:active {
    transform: scale(0.95);
}

.signal-card.premium-card {
    border-color: rgba(255, 107, 107, 0.15);
}

.signal-card.premium-card:hover {
    box-shadow: 0 25px 50px rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.3);
}

.signal-badge.quick {
    background: linear-gradient(135deg, rgba(255, 230, 109, 0.25) 0%, rgba(255, 230, 109, 0.15) 100%);
    color: #B8860B;
    border: 1.5px solid rgba(184, 134, 11, 0.3);
    box-shadow: 0 4px 15px rgba(255, 230, 109, 0.2);
}

.signal-badge.balanced {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25) 0%, rgba(0, 212, 255, 0.15) 100%);
    color: var(--primary-dark);
    border: 1.5px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
    font-weight: 600;
}

.signal-badge.premium {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.25) 0%, rgba(255, 107, 107, 0.15) 100%);
    color: #d63031;
    border: 1.5px solid rgba(255, 107, 107, 0.3);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
    font-weight: 600;
}

.signal-features {
    list-style: none;
    flex-grow: 1;
    margin-bottom: var(--space-6);
}

.signal-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    color: #4a5568;
    font-size: var(--font-size-base);
    line-height: 1.6;
    padding: var(--space-2) 0;
    transition: all 0.3s ease;
}

.signal-features li:hover {
    color: var(--secondary-color);
    transform: translateX(4px);
}

.signal-features i {
    color: var(--success-color);
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(76, 205, 196, 0.1);
    border-radius: 50%;
    padding: 4px;
}

/* Signal Actions & Telegram Button */
.signal-actions {
    margin-top: auto;
    padding-top: var(--space-6);
    border-top: 2px solid rgba(0, 212, 255, 0.08);
    text-align: center;
}

.telegram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    background: linear-gradient(135deg, #34aeffc1 0%, #07a4bda5 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--font-size-base);
    border: none;
    box-shadow: 0 8px 20px rgba(52, 160, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform-origin: center;
    width: 100%;
}

.telegram-btn i {
    color: white;
}

.telegram-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(52, 160, 255, 0.4);
    background: linear-gradient(135deg, #34afff 0%, #07a4bd 100%);
    color: white;
}

.telegram-btn:active {
    transform: translateY(-1px);
}

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

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

.telegram-btn i {
    font-size: 1.25rem;
    animation: pulse 2s ease-in-out infinite;
}

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

@keyframes rocket {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-2px) rotate(-5deg);
    }
    50% {
        transform: translateY(-4px) rotate(0deg);
    }
    75% {
        transform: translateY(-2px) rotate(5deg);
    }
}

/* Removed selected styles for telegram button to keep original orange color */

/* Analytics Section */
.analytics {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.analytics::before {
    background: 
        radial-gradient(circle at 70% 30%, rgba(0, 212, 255, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(255, 230, 109, 0.03) 0%, transparent 50%);
}

.analytics-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.analytics-text h3 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    margin-bottom: var(--space-6);
    color: var(--secondary-color);
}

.analytics-features {
    list-style: none;
    margin-bottom: var(--space-8);
}

.analytics-features li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    color: #666;
}

.analytics-features i {
    color: var(--primary-color);
    font-size: var(--font-size-lg);
}

.analytics-metrics {
    display: flex;
    gap: var(--space-6);
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.metric-label {
    display: block;
    font-size: var(--font-size-sm);
    color: #666;
    margin-top: var(--space-1);
}

.analytics-visual {
    background: #ebf5fa;
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.chart-container {
    height: 300px;
}

/* How It Works */
.how-it-works {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0F3460 50%, #16213E 100%);
    color: white;
    position: relative;
    overflow: visible;
}

.how-it-works::before {
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(76, 205, 196, 0.06) 0%, transparent 50%);
}

.how-it-works .section-title,
.how-it-works .section-subtitle {
    color: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    isolation: isolate;
    padding-top: 30px;
    margin-top: -10px;
}

.step-card {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition);
    overflow: visible;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.2);
}

.step-card:active {
    transform: translateY(-3px) scale(1.01);
}

.step-number {
    position: absolute;
    top: -21px;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 42px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
    pointer-events: none;
}

.step-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin: var(--space-6) 0 var(--space-4);
}

.step-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: auto;
    height: 76.8px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.step-icon {
    font-size: var(--font-size-3xl);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 60px;
    margin: var(--space-6) auto 0;
}

/* Start Section */
.start-section {
    background: linear-gradient(135deg, #00D4FF 0%, #0099CC 50%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    position: relative;
}

.start-section::before {
    background: 
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(76, 205, 196, 0.08) 0%, transparent 50%);
}

.start-content h2 {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--space-6);
}

.start-content p {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-10);
    opacity: 0.9;
}

.start-actions {
    margin-bottom: var(--space-8);
}

.contact-info {
    margin-top: var(--space-8);
}

.contact-info p {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-4);
    opacity: 0.8;
}

.contact-info a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    transition: all var(--transition);
}

.contact-info a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0F3460 50%, #16213E 100%);
    color: white;
    padding: var(--space-16) 0 var(--space-8);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(76, 205, 196, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 230, 109, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
    position: relative;
    z-index: 2;
    align-items: start;
}

.footer-brand .brand {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    transition: all var(--transition);
}

.footer-brand .brand:hover {
    transform: translateY(-2px);
    text-shadow: 0 4px 8px rgba(0, 212, 255, 0.3);
}

.footer-brand .brand i {
    color: var(--primary-color);
    font-size: var(--font-size-2xl);
    animation: pulse 3s ease-in-out infinite;
    transition: all var(--transition);
}

.footer-brand .brand:hover i {
    transform: scale(1.1) rotate(5deg);
    animation: none;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

.footer-stats {
    display: flex;
    gap: var(--space-6);
    margin-top: var(--space-4);
}

.footer-stat {
    text-align: left;
}

.footer-stat .stat-number {
    display: block;
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--primary-color);
    animation: countUp 2s ease-out;
}

.footer-stat .stat-label {
    display: block;
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
    margin-top: var(--space-1);
}

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

.link-group {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition);
}

.link-group:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.15);
}

.link-group h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--primary-color);
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.link-group h4 i {
    font-size: var(--font-size-base);
    opacity: 0.8;
}

.link-group h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}

.link-group a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.link-group a i {
    font-size: var(--font-size-sm);
    width: 16px;
    text-align: center;
    opacity: 0.7;
    transition: all var(--transition);
}

.link-group a:hover i {
    opacity: 1;
    transform: scale(1.1);
}

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

.link-group a:hover::before {
    left: 100%;
}

.link-group a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
    background: rgba(0, 212, 255, 0.1);
    text-shadow: 0 2px 4px rgba(0, 212, 255, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--space-8);
    text-align: center;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin: 0 calc(-1 * var(--space-4));
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

.footer-bottom p {
    margin-bottom: var(--space-4);
    opacity: 0.9;
    transition: opacity var(--transition);
}

.footer-bottom:hover p {
    opacity: 1;
}

.footer-disclaimer {
    margin-top: var(--space-4);
    padding: var(--space-3) var(--space-6);
    background: rgba(255, 230, 109, 0.1);
    border: 1px solid rgba(255, 230, 109, 0.2);
    border-radius: var(--radius-full);
    display: inline-block;
    transition: all var(--transition);
}

.footer-disclaimer:hover {
    background: rgba(255, 230, 109, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 230, 109, 0.2);
}

.footer-disclaimer small {
    color: rgba(255, 230, 109, 0.9);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.footer-disclaimer i {
    text-shadow: none !important;
    filter: none !important;
    box-shadow: none !important;
}

/* Footer Particles */
.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.footer-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    left: var(--x);
    top: var(--y);
    opacity: 0.4;
    animation: footerParticleFloat 12s ease-in-out infinite;
    animation-delay: var(--delay);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

@keyframes footerParticleFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) scale(1); 
        opacity: 0.2; 
    }
    25% { 
        transform: translateY(-40px) translateX(20px) scale(1.3); 
        opacity: 0.6; 
    }
    50% { 
        transform: translateY(-80px) translateX(-15px) scale(1.6); 
        opacity: 0.8; 
    }
    75% { 
        transform: translateY(-30px) translateX(30px) scale(1.2); 
        opacity: 0.4; 
    }
}

/* ================================================
   📱 MOBILE & TABLET RESPONSIVE DESIGN
   ================================================ */

/* Tablet Landscape & Desktop (1024px+) */
@media (min-width: 1025px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .mobile-sidebar {
        display: none !important;
    }
}

/* Tablet Portrait & Small Desktop (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 0 var(--space-6);
    }
    
    .navbar .container {
        padding: 0 var(--space-4);
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
    
    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
    
    .signals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
    
    .analytics-content {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }
    
    .nav-menu {
        gap: var(--space-4);
    }
    
    .nav-link {
        font-size: var(--font-size-sm);
        padding: var(--space-2);
    }
}

/* Mobile & Tablet Portrait (max 768px) */
@media (max-width: 768px) {
    /* Navigation */
    .navbar {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .container {
        padding: 0 var(--space-4);
        max-width: 100%;
    }
    
    /* Hero Section - Mobile First */
    .hero {
        min-height: auto;
        padding: 90px 0 50px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-8);
        display: flex;
        flex-direction: column;
    }
    
    .hero-visual {
        order: -1;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-content {
        order: 1;
        width: 100%;
    }
    
    .hero-title {
        font-size: 1.875rem;
        line-height: 1.2;
        margin-bottom: var(--space-4);
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
        margin-bottom: var(--space-6);
        line-height: 1.5;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-6);
    }
    
    .stat-item {
        flex: 1 1 auto;
        min-width: 100px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: var(--space-3);
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 52px;
        font-size: 1rem;
        font-weight: 600;
        padding: var(--space-3) var(--space-6);
    }
    
    .hero-actions .btn i {
        font-size: 1.1rem;
    }
    
    .hero-actions .btn span {
        flex: 1;
        text-align: center;
    }
    
    .trading-card {
        max-width: 100%;
        padding: var(--space-5);
        font-size: 0.9rem;
    }
    
    .card-header {
        flex-wrap: wrap;
        gap: var(--space-2);
    }
    
    .coin-name {
        font-size: 0.9rem;
    }
    
    .signal-badge {
        font-size: 0.75rem;
        padding: var(--space-1) var(--space-2);
    }
    
    .indicator {
        font-size: 0.8125rem;
    }
    
    .targets {
        font-size: 0.75rem;
    }
    
    /* Sections */
    section {
        padding: var(--space-12) 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: var(--font-size-base);
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .feature-card {
        padding: var(--space-6);
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Signals Grid - Mobile Optimized */
    .signals-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
    
    .signal-card {
        padding: var(--space-6);
        margin-bottom: var(--space-4);
        border-radius: var(--radius-lg);
    }
    
    .signal-card.featured {
        transform: scale(1);
        border: 1.5px solid rgba(0, 212, 255, 0.3);
    }
    
    .signal-card.premium-card {
        border: 1.5px solid rgba(255, 107, 107, 0.3);
    }
    
    .signal-card.clickable {
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .signal-card.clickable:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    .signal-header {
        margin-bottom: var(--space-5);
        flex-wrap: wrap;
    }
    
    .signal-header h3 {
        font-size: 1.25rem;
        font-weight: 700;
        width: 100%;
        margin-bottom: var(--space-3);
    }
    
    .signal-header h3 i {
        font-size: 1.25rem;
    }
    
    .signal-badge {
        width: fit-content;
    }
    
    .signal-features {
        margin-bottom: var(--space-4);
    }
    
    .signal-features li {
        font-size: 0.875rem;
        padding: var(--space-2) 0;
        line-height: 1.5;
    }
    
    .signal-features i {
        font-size: 0.875rem;
        min-width: 16px;
    }
    
    .telegram-btn {
        padding: var(--space-3) var(--space-6);
        font-size: 0.9375rem;
        width: 100%;
        min-height: 48px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: var(--space-2);
    }
    
    .telegram-btn i {
        font-size: 1rem;
    }
    
    /* Analytics Section */
    .analytics-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .analytics-text h3 {
        font-size: var(--font-size-xl);
        text-align: center;
    }
    
    .analytics-features {
        margin-bottom: var(--space-6);
    }
    
    .analytics-metrics {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        gap: var(--space-4);
    }
    
    .metric {
        flex: 1 1 auto;
        min-width: 100px;
    }
    
    .metric-value {
        font-size: var(--font-size-xl);
    }
    
    .chart-container {
        height: 250px;
    }
    
    /* Steps Grid */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        padding-top: 25px;
    }
    
    .step-card {
        padding: var(--space-6);
    }
    
    .step-number {
        top: -18px;
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .step-card p {
        height: 67.2px;
        line-height: 1.6;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .step-icon {
        height: 50px;
        width: 50px;
        font-size: var(--font-size-2xl);
        margin-top: var(--space-4);
    }
    
    /* Footer */
    .footer {
        padding: var(--space-12) 0 var(--space-6);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-6);
    }
    
    .footer-brand {
        order: -1;
    }
    
    .footer-brand .brand {
        justify-content: center;
    }
    
    .footer-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--space-4);
    }
    
    .footer-stat {
        text-align: center;
        flex: 1 1 45%;
    }
    
    .link-group {
        padding: var(--space-4);
    }
    
    .link-group h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-bottom {
        margin: 0 calc(-1 * var(--space-4));
        padding: var(--space-6) var(--space-4);
    }
    
    .footer-disclaimer {
        padding: var(--space-2) var(--space-4);
    }
    
    .footer-disclaimer small {
        font-size: 0.7rem;
    }
    
    /* Buttons */
    .btn {
        font-size: var(--font-size-sm);
        padding: var(--space-3) var(--space-5);
    }
    
    .btn-large {
        padding: var(--space-3) var(--space-6);
        font-size: var(--font-size-base);
    }
    
    /* Modals - Mobile Optimized */
    .info-modal-content {
        max-width: 95vw;
        max-height: 90vh;
        margin: var(--space-4);
        border-radius: var(--radius-lg);
    }
    
    .modal-body {
        padding: var(--space-5);
        max-height: 65vh;
    }
    
    .modal-header {
        padding: var(--space-5);
    }
    
    .modal-header h2 {
        font-size: var(--font-size-xl);
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .contact-form input,
    .contact-form textarea {
        font-size: var(--font-size-base);
    }
    
    .docs-navigation {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .docs-nav-item {
        white-space: nowrap;
    }
}

/* Small Mobile (max 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-3);
    }
    
    /* Heros */
    .hero {
        padding: 90px 0 50px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    /* Signal Cards */
    .signal-card {
        padding: var(--space-5);
    }
    
    .signal-header h3 {
        font-size: 1.125rem;
    }
    
    .signal-header h3 i {
        font-size: 1.125rem;
    }
    
    .signal-features li {
        font-size: 0.9375rem;
    }
    
    .telegram-btn {
        font-size: 0.9375rem;
        padding: var(--space-3) var(--space-6);
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-4);
    }
    
    .stat-item {
        flex: 1 1 45%;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .trading-card {
        padding: var(--space-4);
    }
    
    .price-info {
        flex-wrap: wrap;
        gap: var(--space-2);
        font-size: var(--font-size-base);
    }
    
    /* Sections */
    section {
        padding: var(--space-10) 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    /* Cards */
    .feature-card,
    .signal-card,
    .step-card {
        padding: var(--space-5);
    }
    
    .feature-card h3,
    .step-card h3 {
        font-size: var(--font-size-lg);
    }
    
    .feature-card p,
    .signal-card p,
    .step-card p {
        font-size: var(--font-size-sm);
    }
    
    .step-card p {
        height: 58.8px;
        line-height: 1.6;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .step-icon {
        height: 45px;
        width: 45px;
        font-size: var(--font-size-xl);
        margin-top: var(--space-3);
    }
    
    /* Analytics */
    .analytics-metrics {
        flex-direction: column;
        gap: var(--space-5);
    }
    
    .metric {
        width: 100%;
    }
    
    .chart-container {
        height: 220px;
    }
    
    /* Footer */
    .footer-content {
        gap: var(--space-5);
    }
    
    .link-group {
        padding: var(--space-3);
    }
    
    .link-group h4 {
        font-size: var(--font-size-base);
    }
    
    .link-group a {
        font-size: var(--font-size-sm);
    }
    
    .footer-stats {
        gap: var(--space-3);
    }
    
    .footer-stat {
        flex: 1 1 100%;
    }
    
    .footer-bottom {
        margin: 0 calc(-1 * var(--space-3));
        padding: var(--space-5) var(--space-3);
    }
    
    /* Modal Optimizations */
    .info-modal-content {
        max-width: 100vw;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .modal-header {
        padding: var(--space-4);
    }
    
    .modal-header h2 {
        font-size: var(--font-size-lg);
    }
    
    .modal-body {
        padding: var(--space-4);
        max-height: calc(100vh - 150px);
    }
    
    .info-modal-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    /* Buttons */
    .btn {
        padding: var(--space-2) var(--space-4);
    }
    
    .btn i {
        font-size: 0.9rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Увеличиваем области нажатия */
    .btn,
    .nav-link,
    .menu-item,
    .signal-card,
    .feature-card {
        min-height: 44px;
    }
    
    /* Убираем hover-эффекты для touch-устройств */
    .btn:hover,
    .nav-link:hover,
    .feature-card:hover,
    .signal-card:hover {
        transform: none;
    }
    
    /* Активное состояние при нажатии */
    .btn:active,
    .nav-link:active {
        transform: scale(0.95);
        opacity: 0.8;
    }
    
    .feature-card:active,
    .signal-card:active {
        transform: scale(0.98);
    }
    
    /* Убираем сложные анимации точечно, но не ломаем декоративные
       анимации и не ускоряем их глобально */
    .feature-card:hover,
    .signal-card:hover,
    .btn:hover,
    .nav-link:hover {
        animation: none;
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .trading-card,
    .feature-card,
    .signal-card {
        border-width: 0.5px;
    }
}

/* Landscape Mode для мобильных */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        display: none;
    }
    
    .modal-body {
        max-height: 60vh;
    }
}

/* iPad Pro Portrait */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .hero .container {
        gap: var(--space-16);
    }
    
    .features-grid,
    .signals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* iPad Pro Landscape */
@media (min-width: 1025px) and (max-width: 1366px) and (orientation: landscape) {
    .container {
        max-width: 1100px;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

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

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity var(--transition);
}

.video-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.video-modal-content {
    position: relative;
    background-color: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    aspect-ratio: 16/9;
    max-width: 1200px;
}

.video-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(235, 245, 250, 0.95);
    border: none;
    color: #000;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    backdrop-filter: blur(10px);
}

.video-modal-close:hover {
    background: #ebf5fa;
    transform: scale(1.1);
}

.video-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: contain;
}

/* Responsive video modal */
@media (max-width: 768px) {
    .video-modal-content {
        max-width: 95vw;
        max-height: 85vh;
        margin: var(--space-4);
        width: 56.25vh; /* 9:16 пропорции относительно высоты */
        aspect-ratio: 9/16; /* Вертикальный формат для мобильных */
    }
    
    .video-modal-close {
        top: 10px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
    
    .video-container {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #000;
    }
    
    .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 480px) {
    .video-modal-content {
        max-width: 100vw;
        max-height: 90vh;
        margin: 0;
        border-radius: var(--radius);
        width: 56.25vh; /* 9:16 пропорции относительно высоты */
        aspect-ratio: 9/16; /* Вертикальный формат для мобильных */
    }
    
    .video-modal-close {
        top: 8px;
        right: 12px;
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    
    .video-container {
        position: relative;
        width: 100%;
        padding-top: 177.78%; /* 9:16 aspect ratio (16/9 * 100 = 177.78) */
        background: #000;
    }
    
    .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

/* Info Modals (Contact, Help, Docs) */
.info-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity var(--transition);
}

.info-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.info-modal-content {
    background: #ebf5fa;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform var(--transition);
}

.info-modal.show .info-modal-content {
    transform: scale(1);
}

.info-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: #666;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.info-modal-close:hover {
    background: rgba(255, 107, 107, 0.2);
    color: var(--danger-color);
    transform: scale(1.1);
}

.modal-header {
    background: var(--primary-gradient);
    color: white;
    padding: var(--space-8) var(--space-6);
    text-align: center;
}

.modal-header h2 {
    margin: 0;
    font-size: var(--font-size-2xl);
    font-weight: 600;
}

.modal-header i {
    margin-right: var(--space-2);
}

.modal-body {
    padding: var(--space-8);
    max-height: 60vh;
    overflow-y: auto;
}

/* Contact Modal Styles */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    background: #f8fafc;
    transition: all var(--transition);
}

.contact-method:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.contact-method i {
    font-size: var(--font-size-2xl);
    color: var(--primary-color);
    margin-top: var(--space-1);
}

.contact-info h4 {
    margin: 0 0 var(--space-2);
    font-size: var(--font-size-lg);
    color: var(--secondary-color);
}

.contact-info p {
    margin: 0 0 var(--space-3);
    color: #666;
    font-size: var(--font-size-sm);
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all var(--transition);
}

.contact-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.status.online {
    color: var(--success-color);
}

/* Help Modal Styles */
.faq-section {
    max-width: 100%;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: #f8fafc;
    cursor: pointer;
    font-weight: 500;
    color: var(--secondary-color);
    transition: all var(--transition);
}

.faq-question:hover {
    background: #e2e8f0;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform var(--transition);
}

.faq-question.active i {
    transform: rotate(90deg);
}

.faq-answer {
    padding: 0 var(--space-4);
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition);
}

.faq-answer.active {
    padding: var(--space-4);
    max-height: 300px;
}

.faq-answer p {
    margin: 0 0 var(--space-2);
    color: #666;
    line-height: 1.6;
}

.faq-answer ul {
    margin: var(--space-2) 0;
    padding-left: var(--space-6);
}

.faq-answer li {
    margin-bottom: var(--space-1);
    color: #666;
}

@media (max-width: 480px) {
    .info-modal-content {
        max-width: 98vw;
        max-height: 98vh;
        margin: var(--space-2);
        border-radius: var(--radius);
    }
    
    .modal-header {
        padding: var(--space-4);
    }
    
    .modal-header h2 {
        font-size: var(--font-size-xl);
    }
    
    .info-modal-close {
        top: 15px;
        right: 20px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
}

/* Global Floating Elements */
.site-particles {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.site-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: globalParticleFloat 15s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes globalParticleFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) scale(1); 
        opacity: 0.2; 
    }
    25% { 
        transform: translateY(-100px) translateX(50px) scale(1.2); 
        opacity: 0.5; 
    }
    50% { 
        transform: translateY(-200px) translateX(-30px) scale(1.5); 
        opacity: 0.7; 
    }
    75% { 
        transform: translateY(-80px) translateX(70px) scale(1.1); 
        opacity: 0.4; 
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.hidden { display: none; }
.visible { display: block; }

/* ============================================
   ENHANCED MOBILE OPTIMIZATIONS
   ============================================ */

/* iOS Safari Fixes */
:root {
    /* Fix for 100vh issue on mobile browsers */
    --real-vh: 1vh;
}

@supports (-webkit-touch-callout: none) {
    /* iOS specific fixes */
    body {
        /* Prevent pull-to-refresh bounce on body */
        overscroll-behavior-y: none;
    }
    
    .modal-body,
    .sidebar-menu,
    .main-content {
        /* Enable momentum scrolling */
        -webkit-overflow-scrolling: touch;
    }
}

/* Safe Area Insets for notch devices */
@supports (padding: env(safe-area-inset-top)) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .navbar {
        padding-top: calc(var(--space-4) + env(safe-area-inset-top));
    }
    
    .mobile-menu-toggle,
    .mobile-sidebar-toggle {
        top: calc(var(--space-4) + env(safe-area-inset-top));
    }
}

/* Enhanced Touch Targets - Minimum 48x48px */
@media (max-width: 768px) {
    /* Buttons */
    .btn,
    button,
    .telegram-btn,
    .logout-btn,
    .contact-btn {
        min-height: 48px;
        min-width: 48px;
        padding: 12px 24px;
        font-size: 16px;
    }
    
    /* Links and Navigation */
    .nav-link,
    .menu-item,
    .mobile-sidebar .nav-link {
        min-height: 48px;
        padding: 12px 16px;
        display: flex;
        align-items: center;
    }
    
    /* Form Inputs */
    input,
    textarea,
    select {
        min-height: 48px;
        font-size: 16px !important; /* Prevent iOS zoom on focus */
        padding: 12px 16px;
        border-radius: 8px;
    }
    
    textarea {
        min-height: 96px;
    }
    
    /* Interactive Cards */
    .signal-card,
    .feature-card,
    .stat-card,
    .step-card {
        min-height: 48px;
        padding: 20px;
    }
    
    /* Close Buttons */
    .info-modal-close,
    .video-modal-close {
        min-width: 48px;
        min-height: 48px;
        font-size: 24px;
    }
    
    /* Spacing between touch targets */
    .hero-actions .btn + .btn {
        margin-top: 12px;
    }
    
    .signal-features li,
    .analytics-features li {
        min-height: 44px;
        padding: 8px 0;
    }
}

/* Bottom Navigation Bar */
@media (max-width: 768px) {
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: linear-gradient(135deg, rgba(26, 26, 46, 0.98) 0%, rgba(15, 52, 96, 0.98) 100%);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(0, 212, 255, 0.2);
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
        z-index: 10010; /* Above floating widgets */
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: rgba(255, 255, 255, 0.6);
        text-decoration: none;
        padding: 8px 12px;
        border-radius: 12px;
        transition: all 0.3s ease;
        min-width: 64px;
        min-height: 48px;
        position: relative;
    }
    
    .bottom-nav-item i {
        font-size: 20px;
    }
    
    .bottom-nav-item span {
        font-size: 11px;
        font-weight: 500;
    }
    
    .bottom-nav-item.active {
        color: var(--primary-color);
        background: rgba(0, 212, 255, 0.1);
    }
    
    .bottom-nav-item:active {
        transform: scale(0.92);
    }
    
    /* Adjust main content padding for bottom nav */
    body.has-bottom-nav .main-content,
    body.has-bottom-nav .hero,
    body.has-bottom-nav main {
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }
}

/* Keyboard Handling */
@media (max-width: 768px) {
    body.keyboard-visible {
        height: 100vh;
        overflow: hidden;
    }
    
    body.keyboard-visible .navbar,
    body.keyboard-visible .mobile-menu-toggle,
    body.keyboard-visible .bottom-nav {
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }
}

/* Enhanced Modal for Mobile */
@media (max-width: 768px) {
    .info-modal.show {
        align-items: flex-end;
    }
    
    .info-modal-content {
        max-width: 100vw;
        max-height: 90vh;
        width: 100%;
        margin: 0;
        border-radius: 24px 24px 0 0;
        transform-origin: bottom;
    }
    
    .info-modal-content::before {
        content: '';
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 2px;
    }
    
    .modal-body {
        max-height: calc(90vh - 120px);
        overscroll-behavior: contain;
    }
    
    /* Fullscreen modal on small screens */
    @media (max-height: 667px) {
        .info-modal-content {
            max-height: 100vh;
            border-radius: 0;
        }
        
        .modal-body {
            max-height: calc(100vh - 100px);
        }
    }
}

/* Performance: Reduce 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;
    }
}

/* Performance: GPU Acceleration for animations */
.btn,
.signal-card,
.feature-card,
.trading-card,
.mobile-sidebar,
.info-modal-content,
.video-modal-content {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* CSS Containment for better performance */
.signal-card,
.feature-card,
.stat-card,
.menu-item {
    contain: layout style paint;
}

/* Improved Typography for Mobile */
@media (max-width: 768px) {
    :root {
        --font-size-xs: 0.8125rem;    /* 13px */
        --font-size-sm: 0.875rem;     /* 14px */
        --font-size-base: 1rem;       /* 16px */
        --font-size-lg: 1.125rem;     /* 18px */
        --font-size-xl: 1.25rem;      /* 20px */
        --font-size-2xl: 1.5rem;      /* 24px */
        --font-size-3xl: 1.875rem;    /* 30px */
        --font-size-4xl: 2rem;        /* 32px */
        --font-size-5xl: 2.5rem;      /* 40px */
    }
    
    body {
        font-size: var(--font-size-base);
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    h1, .hero-title {
        line-height: 1.2;
        letter-spacing: -0.02em;
    }
    
    h2, .section-title {
        line-height: 1.3;
        letter-spacing: -0.01em;
    }
    
    p {
        line-height: 1.6;
    }
}

/* Optimized Spacing for Mobile */
@media (max-width: 768px) {
    :root {
        --space-1: 0.25rem;   /* 4px */
        --space-2: 0.5rem;    /* 8px */
        --space-3: 0.75rem;   /* 12px */
        --space-4: 1rem;      /* 16px */
        --space-5: 1.25rem;   /* 20px */
        --space-6: 1.5rem;    /* 24px */
        --space-8: 2rem;      /* 32px */
        --space-10: 2.5rem;   /* 40px */
        --space-12: 3rem;     /* 48px */
        --space-16: 4rem;     /* 64px */
    }
}

/* Swipeable Cards */
@media (max-width: 768px) {
    .signal-card,
    .feature-card {
        touch-action: pan-y;
        position: relative;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .signal-card.swiping {
        transition: none;
    }
    
    .signal-card.swipe-left {
        transform: translateX(-100%);
        opacity: 0;
    }
    
    .signal-card.swipe-right {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Horizontal Scroll Optimization */
.horizontal-scroll {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: var(--space-4) 0;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.horizontal-scroll > * {
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* Scroll Indicator */
.horizontal-scroll-container {
    position: relative;
}

.horizontal-scroll-container::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to left, rgba(26, 26, 46, 0.8), transparent);
    pointer-events: none;
}

/* Loading States for Better Performance */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Skeleton Loaders */
.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-loading 1.5s ease-in-out infinite;
}

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

/* Touch Feedback */
.touch-feedback {
    position: relative;
    overflow: hidden;
}

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

.touch-feedback:active::after {
    width: 300px;
    height: 300px;
}

/* Optimize Overflow Scroll */
@media (max-width: 768px) {
    .modal-body,
    .sidebar-menu,
    .signal-body {
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
}

/* Fix for Android Chrome Address Bar */
@media (max-width: 768px) {
    .hero,
    .main-content {
        min-height: calc(100vh - 64px);
        min-height: calc(var(--real-vh, 1vh) * 100 - 64px);
    }
}

/* Improved Signal Cards for Mobile */
@media (max-width: 768px) {
    .signals-container {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 4px;
    }
    
    .signal-card {
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .signal-header {
        flex-wrap: nowrap;
        gap: 12px;
    }
    
    .symbol-name {
        font-size: 1.125rem;
        font-weight: 700;
    }
    
    .signal-action {
        padding: 6px 12px;
        font-size: 0.8125rem;
        white-space: nowrap;
    }
    
    .signal-body {
        gap: 12px;
    }
    
    .targets-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 8px;
    }
    
    .target {
        text-align: center;
        padding: 8px 12px;
        font-size: 0.875rem;
    }
}

/* Compact Stats Display */
@media (max-width: 480px) {
    .stat-card {
        padding: 16px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }
    
    .stat-icon i {
        font-size: 1.125rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8125rem;
    }
}

/* Device-Specific Optimizations */
/* iPhone SE and small devices */
@media (max-width: 375px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-title {
        font-size: 1.625rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9375rem;
    }
}

/* Better table display on mobile */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    
    /* Convert tables to cards */
    .table-responsive {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .table-responsive tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2);
        padding: var(--space-4);
        background: rgba(26, 26, 46, 0.6);
        border-radius: var(--radius-lg);
        margin-bottom: var(--space-3);
    }
    
    .table-responsive td::before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        margin-bottom: var(--space-1);
        color: rgba(255, 255, 255, 0.6);
    }
}

/* ========================================
   Exchange Integration Styles
   ======================================== */

/* Exchange Setup Form */
.exchange-setup {
    text-align: center;
    padding: 3rem 2rem;
}

.exchange-setup-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #00D4FF, #0099CC);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}

.exchange-setup-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.95);
}

.exchange-setup-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* API Keys Form */
.api-keys-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.api-keys-form .form-group {
    margin-bottom: 1.5rem;
}

.api-keys-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.api-keys-form label i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.api-keys-form .form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(26, 26, 46, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.api-keys-form .form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(26, 26, 46, 0.8);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.api-keys-form .form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.api-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 230, 109, 0.1);
    border: 1px solid rgba(255, 230, 109, 0.3);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.api-warning i {
    color: var(--warning-color);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.exchange-help {
    margin-top: 1.5rem;
}

.help-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.help-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.help-link i {
    margin-right: 0.5rem;
}

/* Exchange Data Container */
.exchange-data-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Exchange Header */
.exchange-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(26, 26, 46, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.exchange-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--success-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.exchange-status i {
    font-size: 0.875rem;
}

.btn-disconnect {
    padding: 0.5rem 0.875rem;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    color: var(--danger-color);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-disconnect:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.5);
}

/* Exchange Tabs */
.exchange-tabs {
    display: flex;
    background: rgba(26, 26, 46, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.exchange-tab {
    flex: 1;
    padding: 0.875rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.exchange-tab i {
    font-size: 1rem;
}

.exchange-tab:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.exchange-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(0, 212, 255, 0.05);
}

/* Tab Content */
.exchange-tab-content {
    padding: 1.5rem;
    min-height: 300px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Balance Grid Compact */
.balance-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.balance-item {
    padding: 1rem;
    background: rgba(26, 26, 46, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.balance-item:hover {
    background: rgba(26, 26, 46, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.balance-item.positive {
    background: rgba(78, 205, 196, 0.1);
    border-color: rgba(78, 205, 196, 0.3);
}

.balance-item.negative {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
}

.balance-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.balance-label i {
    font-size: 0.75rem;
}

.balance-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.25rem;
}

.balance-item.positive .balance-value {
    color: var(--success-color);
}

.balance-item.negative .balance-value {
    color: var(--danger-color);
}

.balance-currency {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

/* Positions List */
.positions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.position-card {
    padding: 1rem;
    background: rgba(26, 26, 46, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.position-card:hover {
    background: rgba(26, 26, 46, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.position-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.position-symbol {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.position-side {
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.position-side.long {
    background: rgba(78, 205, 196, 0.2);
    color: var(--success-color);
}

.position-side.short {
    background: rgba(255, 107, 107, 0.2);
    color: var(--danger-color);
}

.position-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-row .label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.detail-row .value {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.detail-row .value.positive {
    color: var(--success-color);
}

.detail-row .value.negative {
    color: var(--danger-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: rgba(255, 255, 255, 0.5);
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.9rem;
}

/* Error Message */
.error-message {
    padding: 1.5rem;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 12px;
    color: var(--danger-color);
    text-align: center;
}

.error-message i {
    margin-right: 0.5rem;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.loading i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* Simple Calendar & Trading Calendar */
.simple-calendar,
.trading-calendar {
    background: rgba(26, 26, 46, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    overflow-x: hidden;
    max-width: 100%;
}

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

.calendar-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    flex: 1;
    text-align: center;
}

.calendar-nav-btn {
    width: 36px;
    height: 36px;
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav-btn:hover {
    background: rgba(26, 26, 46, 0.8);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.calendar-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: transparent;
    border-radius: 8px;
}

.stat-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

/* Calendar Month View */
.calendar-month {
    margin-top: 1.5rem;
    overflow-x: hidden;
    max-width: 100%;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.weekday {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    padding: 0.5rem;
    box-sizing: border-box;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    box-sizing: border-box;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    padding: 0.5rem;
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-sizing: border-box;
}

.calendar-day:hover:not(.empty):not(.future) {
    background: rgba(26, 26, 46, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    z-index: 10;
}

.calendar-day.empty {
    cursor: default;
    opacity: 0.3;
}

.calendar-day.future {
    opacity: 0.4;
    cursor: not-allowed;
}

.calendar-day.no-trades {
    opacity: 0.6;
}

.calendar-day.profit {
    border-color: var(--success-color);
}

.calendar-day.loss {
    border-color: var(--danger-color);
}

.calendar-day.neutral {
    background: rgba(255, 255, 255, 0.1);
}

.calendar-day.today {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
}

.calendar-day.selected {
    border: 2px solid var(--warning-color);
    box-shadow: 0 0 16px rgba(255, 230, 109, 0.5);
    transform: scale(1.08);
}

.day-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.25rem;
}

.day-pnl {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.day-trades {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.125rem;
}

/* Selected Day Details */
.selected-day-details {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    animation: slideDown 0.3s ease;
}

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

.day-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.day-details-header h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.close-details-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    color: var(--danger-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-details-btn:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.5);
}

.day-details-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.detail-stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.detail-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

/* Responsive */
@media (max-width: 768px) {
    /* Exchange Header */
    .exchange-header {
        padding: 0.875rem;
    }
    
    .exchange-status span {
        font-size: 0.8125rem;
    }
    
    .disconnect-text {
        display: none;
    }
    
    .btn-disconnect {
        padding: 0.5rem;
        min-width: auto;
    }
    
    /* Exchange Tabs */
    .exchange-tab {
        padding: 0.75rem 0.5rem;
        font-size: 0.8125rem;
    }
    
    .exchange-tab span {
        display: none;
    }
    
    .exchange-tab i {
        font-size: 1.125rem;
    }
    
    /* Tab Content */
    .exchange-tab-content {
        padding: 1rem;
        min-height: 250px;
    }
    
    /* Balance */
    .balance-grid-compact {
        gap: 0.75rem;
    }
    
    .balance-item {
        padding: 0.875rem;
    }
    
    .balance-label {
        font-size: 0.6875rem;
    }
    
    .balance-value {
        font-size: 1.125rem;
    }
    
    .balance-currency {
        font-size: 0.6875rem;
    }
    
    /* Positions */
    .position-card {
        padding: 0.875rem;
    }
    
    .position-symbol {
        font-size: 0.9375rem;
    }
    
    .position-side {
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
    }
    
    .detail-row .label {
        font-size: 0.6875rem;
    }
    
    .detail-row .value {
        font-size: 0.8125rem;
    }
    
    /* Calendar - Universal Mobile Solution */
    .trading-calendar {
        padding: clamp(0.5rem, 1.5vw, 1rem);
        margin-left: -16px;
        margin-right: -16px;
        border-radius: 0;
        width: calc(100% + 32px);
        max-width: none;
    }
    
    .calendar-header {
        margin-bottom: clamp(0.75rem, 2vw, 1rem);
        padding: 0 clamp(0.5rem, 1.5vw, 1rem);
    }
    
    .calendar-header h4 {
        font-size: clamp(0.875rem, 3.2vw, 1.125rem);
    }
    
    .calendar-nav-btn {
        width: clamp(28px, 8vw, 32px);
        height: clamp(28px, 8vw, 32px);
        font-size: clamp(0.625rem, 2.2vw, 0.875rem);
    }
    
    .calendar-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(0.5rem, 1.5vw, 0.75rem);
        margin-bottom: clamp(0.75rem, 2vw, 1rem);
        padding: 0 clamp(0.5rem, 1.5vw, 1rem);
    }
    
    .stat-item {
        padding: clamp(0.5rem, 1.5vw, 0.75rem);
    }
    
    .stat-label {
        font-size: clamp(0.5rem, 1.6vw, 0.7rem);
        margin-bottom: 0.25rem;
    }
    
    .stat-value {
        font-size: clamp(0.7rem, 2.4vw, 0.95rem);
    }
    
    .calendar-weekdays {
        gap: clamp(0.1875rem, 0.5vw, 0.25rem);
        margin-bottom: clamp(0.25rem, 1vw, 0.375rem);
        padding: 0 clamp(0.5rem, 1.5vw, 1rem);
    }
    
    .weekday {
        font-size: clamp(0.5rem, 2vw, 0.75rem);
        padding: clamp(0.1875rem, 1vw, 0.3125rem);
    }
    
    .calendar-days,
    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: clamp(0.25rem, 0.8vw, 0.375rem);
        padding: 0 clamp(0.5rem, 1.5vw, 1rem);
    }
    
    .calendar-day {
        padding: clamp(0.2rem, 1.2vw, 0.375rem);
        border-radius: clamp(4px, 1vw, 6px);
        min-height: clamp(40px, 13vw, 55px);
        aspect-ratio: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .day-number {
        font-size: clamp(0.5625rem, 2.2vw, 0.8125rem);
        margin-bottom: clamp(0.0625rem, 0.3vw, 0.125rem);
        font-weight: 600;
    }
    
    .day-pnl {
        font-size: clamp(0.5rem, 2vw, 0.75rem);
        font-weight: 700;
        line-height: 1.15;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    .day-trades {
        display: none;
    }
    
    .selected-day-details {
        margin-left: clamp(0.5rem, 1.5vw, 1rem);
        margin-right: clamp(0.5rem, 1.5vw, 1rem);
    }
    
    .exchange-setup {
        padding: 2rem 1rem;
    }
    
    .day-details-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    /* Exchange Header */
    .exchange-status {
        font-size: 0.75rem;
    }
    
    .exchange-status i {
        font-size: 0.75rem;
    }
    
    /* Tab Content */
    .exchange-tab-content {
        padding: 0.75rem;
    }
    
    /* Balance */
    .balance-grid-compact {
        grid-template-columns: 1fr;
        gap: 0.625rem;
    }
    
    .balance-item {
        padding: 0.75rem;
    }
    
    .balance-label {
        font-size: 0.625rem;
    }
    
    .balance-label i {
        display: none;
    }
    
    .balance-value {
        font-size: 1rem;
    }
    
    /* Positions */
    .position-details {
        grid-template-columns: 1fr;
        gap: 0.375rem;
    }
    
    /* Calendar styles already handled in @media (max-width: 768px) with clamp() */
    .day-details-content {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .detail-label {
        font-size: 0.75rem;
    }
    
    .detail-value {
        font-size: 1rem;
    }
}

