:root {
    --primary: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.4);
    --secondary: #ec4899;
    --bg-dark: #020617;
    --bg-card: rgba(17, 24, 39, 0.8);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at top, #1e1b4b 0%, var(--bg-dark) 70%);
    color: var(--text-main);
    overflow-x: hidden;
    /* --- SECURITY SHIELD: ANTI-COPY & ANTI-SELECTION --- */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 120px;
}

/* Hero */
.hero {
    padding: 80px 0 40px;
    text-align: center;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -2px;
    line-height: 1.05;
}

.hero p {
    color: var(--text-dim);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Featured Card */
.featured-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
    border: 1px solid var(--glass-border);
    border-radius: 35px;
    padding: 45px;
    display: flex;
    align-items: center;
    gap: 35px;
    margin: 40px 0;
    cursor: pointer;
}

.featured-icon {
    font-size: 80px;
}

.badge {
    color: var(--secondary);
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.featured-info h2 {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 8px;
}

.featured-price {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
}

/* Tool Grid */
.section-header {
    margin: 60px 0 30px;
}

.section-header h3 {
    font-size: 30px;
    font-weight: 800;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 28px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.tool-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.tool-title h4 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}

.tool-title p {
    font-size: 14px;
    color: var(--text-dim);
}

.tool-desc {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

.tool-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-tag {
    font-weight: 900;
    font-size: 24px;
}

.get-access-btn {
    font-family: 'Outfit', sans-serif;
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

/* SPA Views */
.view {
    display: none !important;
    width: 100%;
    min-height: 100vh;
}

.view.active {
    display: block !important;
}

/* Nav & Auth */
.nav-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 500px;
    height: 75px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.nav-item {
    color: var(--text-dim);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    gap: 6px;
    opacity: 0.6;
}

.nav-item.active {
    color: var(--primary);
    opacity: 1;
}

.screen {
    display: none;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.screen.active {
    display: flex;
}

.login-container {
    width: 100%;
    max-width: 420px;
    text-align: center;
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    padding: 50px 35px;
    border-radius: 35px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.auth-input {
    width: 100%;
    padding: 18px;
    margin-bottom: 16px;
    background: #0f172a;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: white;
    font-size: 15px;
    outline: none;
}

.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #1e293b;
    border-left: 5px solid var(--primary);
    padding: 15px 30px;
    border-radius: 15px;
    color: white;
    font-weight: 700;
    z-index: 9999;
    transition: 0.4s;
}

.notification.show {
    transform: translateX(-50%) translateY(0);
}

/* Activity Log */
.log-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.log-icon {
    width: 45px;
    height: 45px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.log-info {
    flex-grow: 1;
}

.log-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.log-action {
    font-weight: 800;
    font-size: 15px;
    color: var(--text-main);
}

.log-time {
    font-size: 11px;
    color: var(--text-dim);
}

.log-details {
    font-size: 13px;
    color: var(--text-dim);
}

/* Network buttons */
.net-btn {
    background: #0f172a;
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.net-btn.selected {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
}

/* =============================================
   3D ANIMATIONS & EFFECTS
   ============================================= */

/* Floating ambient orbs */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
    opacity: 0.22;
    animation: orb-float 9s ease-in-out infinite;
}

body::before {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, #8b5cf6, transparent);
    top: -120px;
    left: -120px;
}

body::after {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, #ec4899, transparent);
    bottom: 80px;
    right: -80px;
    animation-delay: -4.5s;
}

@keyframes orb-float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(35px, -45px) scale(1.12);
    }

    66% {
        transform: translate(-25px, 25px) scale(0.88);
    }
}

/* Keep content above orbs */
.container,
.screen,
.nav-bar,
#notification,
#app {
    position: relative;
    z-index: 1;
}

/* Page enter animation */
.view.active {
    animation: page-enter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes page-enter {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Auth login card pop */
.screen.active .login-container {
    animation: pop-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes pop-in {
    from {
        opacity: 0;
        transform: scale(0.84) translateY(32px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Staggered card entrance */
.tool-card {
    animation: card-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.tool-card:nth-child(1) {
    animation-delay: 0.05s;
}

.tool-card:nth-child(2) {
    animation-delay: 0.10s;
}

.tool-card:nth-child(3) {
    animation-delay: 0.15s;
}

.tool-card:nth-child(4) {
    animation-delay: 0.20s;
}

.tool-card:nth-child(5) {
    animation-delay: 0.25s;
}

.tool-card:nth-child(6) {
    animation-delay: 0.30s;
}

@keyframes card-in {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.94) rotateX(8deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0);
    }
}

/* 3D tilt on hover */
.tool-card {
    transform-style: preserve-3d;
    transition: transform 0.35s ease, box-shadow 0.35s, border-color 0.3s, background 0.3s;
    will-change: transform;
}

.tool-card:hover {
    transform: perspective(800px) rotateY(-4deg) rotateX(3deg) translateZ(12px);
    box-shadow: 8px 14px 40px rgba(139, 92, 246, 0.3), 0 0 0 1px rgba(139, 92, 246, 0.4);
    border-color: var(--primary);
    background: rgba(31, 41, 55, 0.9);
}

/* Featured card lift */
.featured-card {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s;
}

.featured-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 32px 64px rgba(139, 92, 246, 0.28);
}

/* Shimmer on buttons */
.get-access-btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.3s;
}

.get-access-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    left: -100%;
    width: 60%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    animation: shimmer 2.8s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 220%;
    }
}

.get-access-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(139, 92, 246, 0.5);
}

.get-access-btn:active {
    transform: scale(0.96);
}

/* Pulsing price glow */
.price-tag {
    animation: price-pulse 3s ease-in-out infinite;
}

@keyframes price-pulse {

    0%,
    100% {
        text-shadow: none;
    }

    50% {
        text-shadow: 0 0 16px rgba(139, 92, 246, 0.75);
    }
}

/* Nav item hover bounce */
.nav-item {
    transition: color 0.3s, opacity 0.3s, transform 0.25s;
}

.nav-item:hover {
    transform: translateY(-5px);
    opacity: 1;
}

.nav-item.active {
    animation: nav-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes nav-pop {
    from {
        transform: translateY(8px);
    }

    to {
        transform: translateY(0);
    }
}

/* Network button 3D press */
.net-btn {
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.3s, background 0.3s;
}

.net-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.2);
}

.net-btn:active {
    transform: scale(0.94);
}

.net-btn.selected {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    animation: net-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes net-pop {
    from {
        transform: scale(0.9);
    }

    to {
        transform: scale(1);
    }
}

/* Animated gradient hero title */
.hero h1 {
    font-family: 'Syne', 'Inter', sans-serif;
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -2px;
    line-height: 1.05;
    background: linear-gradient(120deg, #f8fafc 0%, #c4b5fd 40%, #f9a8d4 70%, #f8fafc 100%);
    background-size: 250% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shine 4s linear infinite;
}

@keyframes text-shine {
    from {
        background-position: 0% center;
    }

    to {
        background-position: 250% center;
    }
}

/* Notification bounce in */
.notification.show {
    animation: notif-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes notif-in {
    from {
        transform: translateX(-50%) translateY(-80px) scale(0.85);
    }

    to {
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

/* Log items stagger */
.log-item {
    animation: card-in 0.4s ease both;
}

.log-item:nth-child(1) {
    animation-delay: 0.05s;
}

.log-item:nth-child(2) {
    animation-delay: 0.10s;
}

.log-item:nth-child(3) {
    animation-delay: 0.15s;
}

.log-item:nth-child(4) {
    animation-delay: 0.20s;
}

.log-item:nth-child(5) {
    animation-delay: 0.25s;
}

.log-item {
    transition: background 0.3s, border-color 0.3s;
}

.log-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

/* Auth input glow */
.auth-input {
    transition: border-color 0.3s, box-shadow 0.3s;
}

.auth-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15), 0 0 22px rgba(139, 92, 246, 0.1);
}

/* Balance pop */
#display-balance,
#home-balance {
    display: inline-block;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Mobile */
@media (max-width: 768px) {
    .featured-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
        gap: 15px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .featured-icon {
        font-size: 60px;
    }

    .featured-info h2 {
        font-size: 24px;
    }

    .featured-price {
        font-size: 22px;
    }

    #display-balance {
        font-size: 42px !important;
    }

    .tool-header {
        flex-direction: column;
        text-align: center;
    }

    .tool-icon {
        margin: 0 auto;
    }

    /* Lighter 3D effect on mobile */
    .tool-card:hover {
        transform: translateY(-5px);
    }
}