:root {
    /* FlipWithAI Black & White Theme */
    --primary: #000000;
    --secondary: #ffffff;
    --accent: #333333;
    --bg-body: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-dark: #000000;
    --glass-border: rgba(0, 0, 0, 0.1);
    --text-main: #000000;
    --text-muted: #666666;
    --text-light: #999999;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.15);
    --gradient-main: linear-gradient(135deg, #000000, #333333);
    --gradient-reverse: linear-gradient(135deg, #ffffff, #f5f5f5);
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    overflow-x: hidden;
    margin: 0;
    min-height: 100vh;
    position: relative;
}

/* Geometric Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px),
        linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-reverse {
    background: var(--gradient-reverse);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.glass-card:hover::before {
    opacity: 1;
}

/* Dark Glass Card */
.glass-card-dark {
    background: var(--bg-dark);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    color: var(--secondary);
}

.glass-card-dark:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Buttons */
.btn-web3 {
    background: var(--gradient-main);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 14px 35px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-web3::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-web3:hover::before {
    width: 300px;
    height: 300px;
}

.btn-web3:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    color: #fff;
}

.btn-outline-web3 {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    padding: 14px 35px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
}

.btn-outline-web3:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Inputs */
.input-web3 {
    background: #fff;
    border: 2px solid #e1e1e1;
    color: var(--text-main);
    border-radius: 12px;
    padding: 15px 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.input-web3:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
    outline: none;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

.mining-orb {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.05), transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    position: absolute;
    z-index: -1;
    animation: pulse-glow 8s infinite alternate;
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

/* Navbar */
.navbar-web3 {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    color: var(--primary) !important;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.nav-link {
    color: var(--text-main) !important;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* 3D Cube */
.scene {
    width: 150px;
    height: 150px;
    perspective: 800px;
    margin: 0 auto;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(-75px);
    animation: rotateCube 15s infinite linear;
}

.cube__face {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 3px solid var(--primary);
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1) inset;
    backdrop-filter: blur(10px);
}

.cube__face--front { transform: rotateY(0deg) translateZ(75px); }
.cube__face--right { transform: rotateY(90deg) translateZ(75px); }
.cube__face--back { transform: rotateY(180deg) translateZ(75px); }
.cube__face--left { transform: rotateY(-90deg) translateZ(75px); }
.cube__face--top { transform: rotateX(90deg) translateZ(75px); }
.cube__face--bottom { transform: rotateX(-90deg) translateZ(75px); }

@keyframes rotateCube {
    0% {
        transform: translateZ(-75px) rotateY(0deg) rotateX(0deg);
    }
    100% {
        transform: translateZ(-75px) rotateY(360deg) rotateX(360deg);
    }
}

/* Mining Counter */
.mining-counter-large {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1;
}

/* Stats Card */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 0, 0, 0.02), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.stat-card:hover::after {
    animation: shine 1.5s ease-in-out;
}

@keyframes shine {
    0% {
        top: -50%;
        right: -50%;
    }
    100% {
        top: 150%;
        right: 150%;
    }
}

/* Fake Notification */
.fake-notification {
    background: #fff;
    border-left: 4px solid var(--primary);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    color: var(--text-main);
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Accordion */
.accordion-web3 .accordion-item {
    background: transparent;
    border: none;
    margin-bottom: 15px;
}

.accordion-web3 .accordion-button {
    background: #fff;
    color: var(--text-main);
    border: 2px solid #e9ecef;
    border-radius: 12px !important;
    box-shadow: var(--shadow-soft);
    font-weight: 600;
}

.accordion-web3 .accordion-button:not(.collapsed) {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.accordion-web3 .accordion-body {
    background: #fff;
    border: 2px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 12px 12px;
    color: var(--text-muted);
}

/* Plan Cards */
.plan-card {
    background: #fff;
    border: 3px solid #e9ecef;
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.plan-card:hover::before {
    transform: scaleX(1);
}

.plan-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.plan-card.featured {
    background: var(--bg-dark);
    color: #fff;
    border-color: var(--primary);
}

.plan-card.featured::before {
    background: var(--gradient-reverse);
}

.plan-price {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.plan-features {
    list-style: none;
    padding: 0;
}

.plan-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    padding-left: 30px;
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: 900;
    color: var(--primary);
}

.plan-card.featured .plan-features li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.plan-card.featured .plan-features li::before {
    color: #fff;
}

/* Badge */
.badge-web3 {
    background: var(--primary);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* Progress Bar */
.progress-web3 {
    height: 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    overflow: hidden;
}

.progress-web3 .progress-bar {
    background: var(--gradient-main);
    border-radius: 50px;
}

/* Table */
.table-web3 {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.table-web3 thead {
    background: var(--bg-dark);
    color: #fff;
}

.table-web3 tbody tr {
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.3s ease;
}

.table-web3 tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
    transform: scale(1.01);
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 20px;
}

/* Utility Classes */
.letter-spacing-2 {
    letter-spacing: 2px;
}

.bg-pattern {
    background-image: 
        linear-gradient(45deg, rgba(0,0,0,0.02) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0,0,0,0.02) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(0,0,0,0.02) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(0,0,0,0.02) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Responsive */
@media (max-width: 768px) {
    .mining-counter-large {
        font-size: 2.5rem;
    }
    
    .plan-price {
        font-size: 2rem;
    }
    
    .scene {
        width: 100px;
        height: 100px;
    }
    
    .cube__face {
        width: 100px;
        height: 100px;
        font-size: 16px;
    }
}