:root {
    --primary: #2563eb;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --dark: #0f172a;
    --darker: #0a0f1f;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    color: #e2e8f0;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Glossy Button */
.glossy-btn {
    position: relative;
    background: linear-gradient(145deg, var(--primary), #1d4ed8);
    border: none;
    color: white;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3),
    inset 0 4px 8px rgba(255, 255, 255, 0.3),
    inset 0 -4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    transform: translateZ(0);
    z-index: 1;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.glossy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    border-radius: 12px 12px 50% 50%;
    z-index: -1;
}

.glossy-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4),
    inset 0 4px 8px rgba(255, 255, 255, 0.4),
    inset 0 -4px 8px rgba(0, 0, 0, 0.15);
}

.glossy-btn:active {
    transform: translateY(1px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3),
    inset 0 4px 8px rgba(255, 255, 255, 0.2),
    inset 0 -4px 8px rgba(0, 0, 0, 0.25);
}

/* 3D Cards */
.coin-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.coin-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.4);
    border-color: rgba(59, 130, 246, 0.4);
}

.card-inner {
    transform: translateZ(30px);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

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

.pulse-animation {
    animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.spin-animation {
    animation: spin-slow 20s linear infinite;
}

.animation-delay-1000 {
    animation-delay: 1s;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

/* Gradient Border */
.gradient-border {
    position: relative;
    background-clip: padding-box;
    border: 1px solid transparent;
    border-radius: 20px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    margin: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
}

/* Feature Icon */
.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #1e40af, #1e3a8a);
    margin-bottom: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateZ(20px);
}

/* Pricing Card */
.pricing-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transform-style: preserve-3d;
}

.pricing-card:hover {
    transform: scale(1.03) translateZ(10px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.25);
}

.pricing-card.popular::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: 20px;
    right: -30px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    color: #0f172a;
    font-weight: 700;
    padding: 5px 30px;
    transform: rotate(45deg);
    font-size: 12px;
    letter-spacing: 1px;
    z-index: 10;
}

/* Crypto Chart */
.chart-container {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    height: 300px;
}

/* Navigation */
.nav-link {
    position: relative;
    padding: 8px 0;
    color: #cbd5e1;
    transition: all 0.3s;
}

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

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

/* Section Reveal Animation */
.section-hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s;
}

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

/* Crypto Coin Animation */
.crypto-coin {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    position: absolute;
    background: radial-gradient(circle at 30% 30%, #fbbf24, #b45309);
    box-shadow: 0 0 50px rgba(251, 191, 36, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: #0f172a;
    font-weight: bold;
    transform-style: preserve-3d;
}

.crypto-coin::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8), transparent 70%);
    filter: blur(5px);
}

/* Trading Terminal */
.trading-terminal {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.terminal-header {
    background: rgba(30, 41, 59, 0.7);
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-body {
    padding: 20px;
}

.order-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.buy-order {
    color: #34d399;
}

.sell-order {
    color: #f87171;
}

/* Fix for sticky table columns */
.table-auto {
    position: relative;
}

.table-auto th.sticky,
.table-auto td.sticky {
    position: sticky;
    background: inherit;
    z-index: 10;
}

.table-auto th.sticky {
    z-index: 20;
}

.table-auto td.sticky {
    z-index: 15;
}

/* Ensure sticky columns maintain background during scroll */
.table-auto tbody tr:hover td.sticky {
    background: rgba(30, 41, 59, 0.4) !important;
}

.table-auto tbody tr td.sticky {
    background: rgba(30, 41, 59, 0.7) !important;
}

.table-auto thead th.sticky {
    background: rgba(30, 41, 59, 0.8) !important;
}