


/* COMPLETE CSS WITH ALL FIXES - MOBILE OPTIMIZED */
:root {
    --primary: #00d4ff;
    --primary-dark: #0099ff;
    --secondary: #7b61ff;
    --accent: #ff2d75;
    --success: #00ff9d;
    --warning: #ffd166;
    --error: #ff4757;
    --solana-purple: #9945ff;
    --solana-green: #14f195;
    --dark: #0a0e17;
    --darker: #050810;
    --card-bg: rgba(20, 25, 40, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(135deg,
            var(--primary) 0%,
            var(--secondary) 100%);
    --gradient-solana: linear-gradient(135deg,
            var(--solana-purple) 0%,
            var(--solana-green) 100%);
    --gradient-dark: linear-gradient(135deg, #0a0e17 0%, #1a1f30 100%);
    --gradient-error: linear-gradient(135deg, var(--error) 0%, #ff6b81 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Inter", sans-serif;
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--darker);
    width: 100%;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* FIXED: Better mobile touch targets */
button,
.btn,
.auth-button,
.nav-link,
.wallet-item,
.crypto-option,
.tab-btn,
input[type="submit"] {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

/* FIXED: Desktop navbar now visible */
@media (min-width: 1024px) {
    .nav-menu {
        display: flex !important;
        position: static;
        flex-direction: row;
        background: transparent;
        border: none;
        padding: 0;
        max-height: none;
        overflow-y: visible;
        gap: 15px;
        width: auto;
    }

    .menu-toggle {
        display: none !important;
    }

    .user-profile {
        display: flex !important;
    }
}

/* FIXED: Mobile-first responsive design */
@media (max-width: 1023px) {
    .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .navbar {
        padding: 12px 0 !important;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(5, 8, 16, 0.98);
        backdrop-filter: blur(30px);
        padding: 20px;
        flex-direction: column;
        border-top: 1px solid rgba(0, 212, 255, 0.2);
        z-index: 9999;
        gap: 12px;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: flex !important;
    }

    .user-profile {
        display: none !important;
    }

    .auth-card {
        padding: 30px 20px !important;
        margin: 20px 16px !important;
        border-radius: 20px !important;
        width: calc(100% - 32px) !important;
        max-width: none !important;
    }

    .auth-title {
        font-size: 24px !important;
    }

    .form-input {
        padding: 16px !important;
        font-size: 16px !important;
        min-height: 52px !important;
    }

    .hero {
        padding: 100px 0 60px !important;
    }

    .hero-title {
        font-size: 32px !important;
        line-height: 1.2 !important;
    }

    .hero-subtitle {
        font-size: 16px !important;
        padding: 0 10px;
    }

    .cta-buttons {
        flex-direction: column !important;
        width: 100% !important;
    }

    .btn {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 12px !important;
    }

    .features,
    .services {
        padding: 60px 0 !important;
    }

    .section-title {
        font-size: 28px !important;
        margin-bottom: 40px !important;
    }

    .feature-grid,
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .feature-card,
    .service-card {
        padding: 30px !important;
    }

    .deposit-section {
        padding: 60px 0 !important;
    }

    .payment-card {
        padding: 30px 20px !important;
    }

    .deposit-form {
        padding: 30px 20px !important;
    }

    .crypto-selector {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .address-actions {
        flex-direction: column !important;
    }

    .copy-btn,
    .save-btn {
        max-width: 100% !important;
        width: 100% !important;
    }
 
    .watch-trading-platform {
        padding: 30px 20px !important;
        margin: 20px !important;
    }

    .watch-trading-stats {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .modal-content {
        width: calc(100% - 32px) !important;
        margin: 20px auto !important;
        border-radius: 20px !important;
    }

    .wallet-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 20px !important;
        gap: 12px !important;
    }

    .wallet-item {
        padding: 20px !important;
    }

    .phrase-actions {
        flex-direction: column !important;
    }

    .back-btn,
    .connect-btn {
        width: 100% !important;
        margin-bottom: 10px !important;
    }

    .footer {
        padding: 60px 0 30px !important;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 16px !important;
        align-items: flex-start !important;
        padding-top: 20px !important;
    }

    .auth-tabs {
        flex-wrap: wrap !important;
    }

    .auth-tab {
        font-size: 14px !important;
        padding: 12px !important;
        min-width: 0 !important;
    }

    .hero-stats {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .stat {
        padding: 20px !important;
    }

    .stat-number {
        font-size: 32px !important;
    }

    .crypto-selector {
        grid-template-columns: 1fr !important;
    }

    .wallet-grid {
        grid-template-columns: 1fr !important;
    }

    .modal-content {
        width: calc(100% - 24px) !important;
        margin: 10px auto !important;
    }

    .modal-header {
        padding: 24px 20px 0 !important;
    }

    .modal-title {
        font-size: 24px !important;
    }
}

@media (max-width: 360px) {
    .auth-card {
        padding: 25px 16px !important;
        margin: 16px !important;
        width: calc(100% - 32px) !important;
    }

    .logo span {
        font-size: 16px !important;
    }

    .hero-title {
        font-size: 28px !important;
    }

    .auth-tab {
        font-size: 12px !important;
        padding: 10px 8px !important;
    }
}

/* FIXED: Prevent horizontal overflow */
.container,
.auth-card,
.modal-content,
.payment-card,
.deposit-form {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* FIXED: Better modal for mobile */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 16, 0.98);
    backdrop-filter: blur(30px);
    z-index: 10000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: none;
}

.modal-content {
    background: rgba(20, 25, 40, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    max-width: 550px;
    margin: 40px auto;
    position: relative;
    backdrop-filter: blur(40px);
    width: calc(100% - 40px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 20px auto;
        width: calc(100% - 32px);
    }
}

/* FIXED: Better mobile scroll */
.trading-log,
.modal-content,
.nav-menu {
    -webkit-overflow-scrolling: touch;
}

/* FIXED: Input zoom prevention on iOS */
@media (max-width: 768px) {

    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* FIXED: Safe area insets for modern phones */
@supports (padding: max(0px)) {

    .navbar,
    .auth-container,
    .container {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
}

/* NEW: Modal overlay for terms/privacy */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-dialog {
    background: rgba(20, 25, 40, 0.95);
    border: 1px solid var(--solana-purple);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    animation: fadeIn 0.3s ease-out;
}

.modal-dialog h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 24px;
}

.modal-dialog-content {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 14px;
}

.modal-dialog-content h3 {
    color: white;
    margin: 20px 0 10px;
    font-size: 18px;
}

.modal-dialog-content ul {
    padding-left: 20px;
    margin: 10px 0;
}

.modal-dialog-content li {
    margin-bottom: 8px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

/* NEW: Forgot password form */
.forgot-password-form {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.forgot-password-form.active {
    display: block;
}

.back-to-login {
    color: var(--solana-purple);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-weight: 600;
}

/* FIXED: Desktop navbar container */
.nav-content {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
}

/* ORIGINAL STYLES (unchanged unless specified) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-text-fill-color: white !important;
    -webkit-box-shadow: 0 0 0px 1000px rgba(20, 25, 40, 0.8) inset !important;
    transition: background-color 5000s ease-in-out 0s;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
}

.clean-state input {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.clean-state .alert,
.clean-state .validation-message {
    display: none !important;
}

#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 212, 255, 0.03) 1px,
            transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: -1;
    animation: gridMove 40s linear infinite;
    opacity: 0.2;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(80px, 80px) rotate(0.5deg);
    }
}

.auth-container {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 100%;
}

.auth-card {
    background: rgba(20, 25, 40, 0.95);
    border: 1px solid rgba(153, 69, 255, 0.3);
    border-radius: 24px;
    padding: 50px 40px;
    width: 100%;
    max-width: 480px;
    backdrop-filter: blur(30px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 900;
    color: white;
    margin-bottom: 20px;
    font-family: "Space Grotesk", sans-serif;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-solana);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.auth-title {
    font-size: 32px;
    background: var(--gradient-solana);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    font-weight: 800;
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.6;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 6px;
}

.auth-tab {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-tab.active {
    background: var(--gradient-solana);
    color: white;
    box-shadow: 0 10px 20px rgba(153, 69, 255, 0.3);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 15px;
    transition: all 0.3s;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 8px;
}

.password-wrapper {
    position: relative;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.forgot-password {
    color: var(--solana-purple);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.forgot-password:hover {
    color: var(--solana-green);
}

.auth-button {
    width: 100%;
    padding: 18px;
    background: var(--gradient-solana);
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
    margin-bottom: 24px;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(153, 69, 255, 0.4);
}

.auth-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-top: 30px;
}

.auth-link {
    color: var(--solana-purple);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

.auth-link:hover {
    color: var(--solana-green);
}

.main-app {
    display: none;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

.main-app.active {
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 18px 0;
    background: rgba(5, 8, 16, 0.92);
    backdrop-filter: blur(25px) saturate(180%);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    animation: slideDown 0.8s ease-out;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 900;
    text-decoration: none;
    color: white;
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -0.5px;
}

.logo-icon-nav {
    position: relative;
    width: 42px;
    height: 42px;
    background: var(--gradient-solana);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(153, 69, 255, 0.3);
}

.nav-link {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    background: rgba(153, 69, 255, 0.15);
    border-color: var(--solana-purple);
    color: white;
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--gradient-solana);
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(153, 69, 255, 0.3);
}

.connect-btn {
    padding: 14px 24px;
    background: var(--gradient-solana);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(153, 69, 255, 0.3);
}

.connect-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 40px rgba(153, 69, 255, 0.4);
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: white;
    cursor: pointer;
    font-size: 20px;
    margin-left: 15px;
}

#app-container {
    width: 100%;
    min-height: 100vh;
    position: relative;
}

.app-view {
    display: none;
    width: 100%;
    min-height: 100vh;
    padding-top: 80px;
}

.app-view.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

#dashboard-view {
    background: transparent;
}

#buy-view .deposit-section {
    background: rgba(5, 8, 16, 0.5);
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

#verify-view {
    background: rgba(5, 8, 16, 0.7);
}

.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-tagline {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.tagline-badge {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(20px);
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    white-space: nowrap;
    transition: all 0.3s;
}

.tagline-badge:nth-child(1) {
    animation-delay: 0.2s;
}

.tagline-badge:nth-child(2) {
    animation-delay: 0.4s;
}

.tagline-badge:nth-child(3) {
    animation-delay: 0.6s;
}

.hero-title {
    font-size: clamp(32px, 7vw, 72px);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 28px;
    background: linear-gradient(135deg,
            #ffffff 0%,
            var(--solana-purple) 25%,
            var(--solana-green) 50%,
            var(--solana-purple) 75%,
            #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: fadeInUp 0.8s ease-out 0.6s forwards,
        textShine 3s ease-in-out infinite;
    opacity: 0;
    word-break: break-word;
    letter-spacing: -1px;
}

@keyframes textShine {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out 1s forwards;
    opacity: 0;
    width: 100%;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
}

.btn {
    padding: 18px 32px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 180px;
    width: 100%;
    max-width: 320px;
}

@media (min-width: 640px) {
    .btn {
        width: auto;
    }
}

.btn-primary {
    background: var(--gradient-solana);
    color: white;
    box-shadow: 0 15px 40px rgba(153, 69, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 25px 50px rgba(153, 69, 255, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: translateY(-4px) scale(1.05);
    }

    50% {
        transform: translateY(-4px) scale(1.08);
    }
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
}

.btn-secondary:hover {
    border-color: var(--solana-purple);
    background: rgba(153, 69, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(153, 69, 255, 0.2);
}

.btn-accent {
    background: var(--accent);
    color: white;
    box-shadow: 0 15px 40px rgba(255, 45, 117, 0.3);
}

.btn-accent:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 25px 50px rgba(255, 45, 117, 0.4);
    background: linear-gradient(135deg, var(--accent) 0%, #ff6b9d 100%);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 1.2s forwards;
    opacity: 0;
}

@media (max-width: 768px) {
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.stat {
    text-align: center;
    padding: 28px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat:hover {
    transform: translateY(-8px);
    border-color: var(--solana-purple);
    box-shadow: 0 20px 40px rgba(153, 69, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.stat-number {
    font-size: 42px;
    font-weight: 900;
    font-family: "Space Grotesk", sans-serif;
    background: var(--gradient-solana);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.features {
    padding: 100px 0;
    position: relative;
    width: 100%;
}

.section-title {
    text-align: center;
    font-size: clamp(32px, 5vw, 52px);
    margin-bottom: 60px;
    background: linear-gradient(135deg, #fff 0%, var(--solana-purple) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    padding: 0 10px;
    font-weight: 900;
    letter-spacing: -1px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(20, 25, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 150px rgba(153, 69, 255, 0.15);
    border-color: rgba(153, 69, 255, 0.3);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(153, 69, 255, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    font-size: 28px;
    color: var(--solana-purple);
    transition: all 0.6s;
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(10deg);
    background: var(--gradient-solana);
    color: white;
    box-shadow: 0 15px 30px rgba(153, 69, 255, 0.3);
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 18px;
    color: white;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.feature-card:nth-child(1) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.6s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.8s;
}

.deposit-section {
    padding: 100px 0;
    position: relative;
    width: 100%;
}

.deposit-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.deposit-header {
    text-align: center;
    margin-bottom: 60px;
}

.deposit-title {
    font-size: clamp(32px, 5vw, 52px);
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, var(--solana-purple) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    letter-spacing: -1px;
}

.deposit-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.payment-methods {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.payment-card {
    background: rgba(20, 25, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    max-width: 500px;
    width: 100%;
}

.payment-card:hover {
    transform: translateY(-8px);
    border-color: rgba(153, 69, 255, 0.3);
    box-shadow: 0 20px 40px rgba(153, 69, 255, 0.2);
}

.payment-icon {
    width: 70px;
    height: 70px;
    background: rgba(153, 69, 255, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 28px;
    color: var(--solana-purple);
    transition: all 0.6s;
}

.payment-card:hover .payment-icon {
    transform: scale(1.1);
    background: var(--gradient-solana);
    color: white;
}

.payment-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: white;
    font-weight: 800;
    text-align: center;
}

.payment-tokens {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
    justify-content: center;
}

.token-badge {
    padding: 6px 12px;
    background: rgba(153, 69, 255, 0.1);
    border: 1px solid rgba(153, 69, 255, 0.2);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--solana-purple);
}

.payment-details {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.deposit-form {
    background: rgba(20, 25, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
    max-width: 800px;
    margin: 0 auto;
}

.form-title {
    font-size: 24px;
    margin-bottom: 30px;
    color: white;
    font-weight: 800;
    text-align: center;
}

.crypto-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.crypto-option {
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.crypto-option:hover {
    border-color: rgba(153, 69, 255, 0.3);
    background: rgba(153, 69, 255, 0.1);
}

.crypto-option.selected {
    border-color: var(--solana-purple);
    background: rgba(153, 69, 255, 0.15);
}

.crypto-icon {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--solana-purple);
}

.crypto-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.crypto-symbol {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 4px;
}

.amount-input {
    margin-bottom: 30px;
}

.amount-label {
    display: block;
    margin-bottom: 12px;
    color: white;
    font-weight: 600;
}

.amount-field {
    width: 100%;
    padding: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s;
}

.amount-field:focus {
    outline: none;
    border-color: var(--solana-purple);
    background: rgba(255, 255, 255, 0.08);
}

.amount-note {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
}

.deposit-address {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    text-align: center;
}

.address-label {
    display: block;
    margin-bottom: 12px;
    color: white;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
}

.address-display {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    word-break: break-all;
    font-family: "Courier New", monospace;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.qr-container {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 12px;
    display: inline-block;
}

.qr-code {
    width: 200px;
    height: 200px;
    border-radius: 8px;
}

.address-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.copy-btn,
.save-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    flex: 1;
    justify-content: center;
    max-width: 200px;
}

.copy-btn {
    background: var(--gradient-solana);
    color: white;
}

.save-btn {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.copy-btn:hover,
.save-btn:hover {
    transform: translateY(-2px);
}

.warning-note {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin: 30px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.warning-note i {
    color: var(--error);
    margin-right: 8px;
}

.confirmation-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.confirm-btn {
    width: 100%;
    padding: 18px;
    background: var(--gradient-solana);
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
    max-width: 300px;
    margin: 0 auto;
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(153, 69, 255, 0.3);
}

.redirect-section {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: rgba(153, 69, 255, 0.1);
    border-radius: 16px;
    border: 1px solid rgba(153, 69, 255, 0.2);
}

.redirect-btn {
    padding: 16px 32px;
    background: var(--gradient-solana);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    text-decoration: none;
}

.redirect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(153, 69, 255, 0.3);
}

.redirect-note {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 16px;
    font-size: 14px;
}

.live-popup-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 280px;
    display: none;
}

.live-popup {
    background: linear-gradient(135deg,
            rgba(153, 69, 255, 0.95) 0%,
            rgba(20, 241, 149, 0.95) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

@keyframes popupSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.popup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.popup-header i {
    font-size: 16px;
    animation: pulse 2s infinite;
}

.popup-content {
    color: white;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
}

.popup-timestamp {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
    display: block;
    text-align: right;
}

.verification-container {
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
    background: rgba(0, 0, 0, 0.3);
}

.upload-container {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.05);
}

.upload-container:hover {
    border-color: var(--solana-purple);
    background: rgba(153, 69, 255, 0.1);
}

.upload-icon {
    font-size: 48px;
    color: var(--solana-purple);
    margin-bottom: 20px;
}

.upload-text {
    color: white;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

.upload-subtext {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 20px;
}

.file-preview {
    max-width: 100%;
    border-radius: 12px;
    margin-top: 20px;
    display: none;
}

.verification-status {
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    display: none;
    text-align: center;
}

.verification-success {
    background: rgba(0, 255, 157, 0.1);
    border: 2px solid var(--success);
}

.verification-processing {
    background: rgba(255, 215, 102, 0.1);
    border: 2px solid var(--warning);
}

.verification-failed {
    background: rgba(255, 71, 87, 0.1);
    border: 2px solid var(--error);
}

.receipt-modal {
    max-width: 600px;
}

.receipt-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    color: #333;
    font-family: "Courier New", monospace;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.receipt-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #333;
    padding-bottom: 20px;
}

.receipt-title {
    font-size: 24px;
    font-weight: 900;
    color: #333;
    letter-spacing: 2px;
}

.receipt-subtitle {
    font-size: 12px;
    color: #666;
    letter-spacing: 1px;
}

.receipt-details {
    margin: 25px 0;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.receipt-label {
    font-weight: 600;
    color: #666;
}

.receipt-value {
    font-weight: 700;
    color: #333;
    text-align: right;
}

.solana-price {
    background: var(--gradient-solana);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    font-size: 18px;
}

.receipt-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px dashed #333;
    color: #666;
    font-size: 11px;
}

.receipt-watermark {
    opacity: 0.1;
    position: absolute;
    font-size: 120px;
    transform: rotate(-45deg);
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    white-space: nowrap;
}

.receipt-loading {
    text-align: center;
    padding: 60px;
}

.receipt-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--solana-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

.live-solana-price {
    position: fixed;
    top: 120px;
    right: 20px;
    background: rgba(153, 69, 255, 0.2);
    border: 2px solid var(--solana-purple);
    border-radius: 12px;
    padding: 15px;
    z-index: 9998;
    backdrop-filter: blur(20px);
    animation: pricePulse 3s infinite;
    display: none;
}

@keyframes pricePulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(153, 69, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(153, 69, 255, 0.5);
    }
}

.price-display {
    color: white;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
}

.price-change {
    font-size: 12px;
    text-align: center;
    margin-top: 5px;
}

.positive {
    color: var(--solana-green);
}

.negative {
    color: var(--error);
}

.watch-trading-platform {
    background: rgba(20, 25, 40, 0.95);
    border-radius: 24px;
    padding: 40px;
    margin: 40px auto;
    max-width: 900px;
    border: 2px solid rgba(153, 69, 255, 0.3);
    backdrop-filter: blur(30px);
    position: relative;
    overflow: hidden;
}

.watch-trading-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.watch-trading-title {
    font-size: 32px;
    background: var(--gradient-solana);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    margin-bottom: 10px;
}

.watch-trading-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.watch-trading-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .watch-trading-stats {
        grid-template-columns: 1fr;
    }
}

.watch-trading-stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.watch-trading-stat-value {
    font-size: 32px;
    font-weight: 900;
    color: var(--solana-green);
    margin-bottom: 8px;
}

.watch-trading-stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.auto-trading-indicator {
    background: rgba(20, 241, 149, 0.1);
    border: 2px solid var(--solana-green);
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.auto-trading-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--solana-green);
    animation: pulse 2s infinite;
}

.status-text {
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.auto-trading-message {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    margin-top: 10px;
}

.trading-log {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    margin-top: 40px;
    max-height: 300px;
    overflow-y: auto;
    position: relative;
    z-index: 2;
}

.trading-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trading-log-title {
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.trading-log-content {
    font-family: "Courier New", monospace;
    font-size: 13px;
    line-height: 1.8;
}

.log-entry {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

.log-timestamp {
    color: var(--solana-purple);
    font-weight: 600;
    margin-right: 10px;
}

.log-profit {
    color: var(--solana-green);
    font-weight: 700;
}

.log-loss {
    color: var(--error);
    font-weight: 700;
}

.target-progress-hard {
    background: rgba(153, 69, 255, 0.1);
    border: 2px solid var(--solana-purple);
    border-radius: 16px;
    padding: 30px;
    margin-top: 40px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.target-info-hard {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.target-label-hard {
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.target-amount-hard {
    color: var(--solana-green);
    font-weight: 900;
    font-size: 18px;
}

.progress-bar-hard {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin: 20px 0;
    position: relative;
}

.progress-fill-hard {
    height: 100%;
    background: var(--gradient-solana);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.hard-target-message {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-top: 15px;
}

.hard-target-warning {
    background: rgba(255, 71, 87, 0.1);
    border: 2px solid var(--error);
    border-radius: 12px;
    padding: 15px;
    margin-top: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.withdrawal-notice {
    background: rgba(255, 71, 87, 0.1);
    border: 2px solid var(--error);
    border-radius: 16px;
    padding: 25px;
    margin-top: 40px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.withdrawal-notice h4 {
    color: white;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.withdrawal-notice p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
}

.receipt-delay {
    background: rgba(255, 215, 102, 0.1);
    border: 2px solid var(--warning);
    border-radius: 16px;
    padding: 25px;
    margin-top: 30px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.receipt-delay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
}

.access-locked {
    background: rgba(255, 71, 87, 0.1);
    border: 2px solid var(--error);
    border-radius: 16px;
    padding: 40px;
    margin: 40px auto;
    text-align: center;
    max-width: 500px;
}

.access-locked-icon {
    font-size: 48px;
    color: var(--error);
    margin-bottom: 20px;
}

.access-locked-message {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* VIEW SYSTEM FOR MODAL */
.view {
    display: none;
}

.view.active {
    display: block;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.close-modal:hover {
    transform: rotate(90deg);
    background: rgba(255, 45, 117, 0.2);
    border-color: var(--accent);
    color: var(--accent);
}

.wallet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 32px;
}

.wallet-item {
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
    position: relative;
    overflow: hidden;
}

.wallet-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--solana-purple);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(153, 69, 255, 0.2);
}

.wallet-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: white;
    transition: all 0.4s;
    position: relative;
    z-index: 1;
}

.wallet-item:hover .wallet-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.wallet-name {
    font-size: 15px;
    font-weight: 600;
    color: white;
    position: relative;
    z-index: 1;
}

.wallet-item:nth-child(1) {
    animation-delay: 0.1s;
}

.wallet-item:nth-child(2) {
    animation-delay: 0.2s;
}

.wallet-item:nth-child(3) {
    animation-delay: 0.3s;
}

.wallet-item:nth-child(4) {
    animation-delay: 0.4s;
}

.wallet-item:nth-child(5) {
    animation-delay: 0.5s;
}

.wallet-item:nth-child(6) {
    animation-delay: 0.6s;
}

.wallet-item:nth-child(7) {
    animation-delay: 0.7s;
}

.wallet-item:nth-child(8) {
    animation-delay: 0.8s;
}

.wallet-item:nth-child(9) {
    animation-delay: 0.9s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.phrase-section {
    padding: 32px;
}

.input-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 16px;
}

.tab-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn.active {
    background: rgba(153, 69, 255, 0.15);
    border-color: var(--solana-purple);
    color: var(--solana-purple);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.phrase-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 15px;
}

.phrase-label i {
    color: var(--solana-purple);
}

.phrase-input {
    width: 100%;
    padding: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: white;
    font-family: "Inter", monospace;
    font-size: 15px;
    resize: vertical;
    min-height: 140px;
    margin-bottom: 24px;
    transition: all 0.3s;
    line-height: 1.6;
}

.phrase-input:focus {
    outline: none;
    border-color: var(--solana-purple);
    box-shadow: 0 0 0 4px rgba(153, 69, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.phrase-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.private-key-input {
    width: 100%;
    padding: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: white;
    font-family: "Inter", monospace;
    font-size: 15px;
    min-height: 60px;
    margin-bottom: 24px;
    transition: all 0.3s;
}

.private-key-input:focus {
    outline: none;
    border-color: var(--solana-purple);
    box-shadow: 0 0 0 4px rgba(153, 69, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.input-note {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-top: 8px;
    margin-bottom: 16px;
    font-style: italic;
}

.back-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    padding: 14px 24px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.back-btn:hover {
    border-color: var(--solana-purple);
    color: var(--solana-purple);
    background: rgba(153, 69, 255, 0.1);
    transform: translateY(-2px);
}

.phrase-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.phrase-actions .btn {
    flex: 1;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
}

.loading-spinner-large {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 40px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.spinner-ring:nth-child(1) {
    border: 8px solid transparent;
    border-top: 8px solid var(--solana-purple);
    animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
    border: 8px solid transparent;
    border-top: 8px solid var(--solana-green);
    animation-delay: 0.2s;
}

.spinner-ring:nth-child(3) {
    border: 8px solid transparent;
    border-top: 8px solid var(--accent);
    animation-delay: 0.4s;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    text-align: center;
    margin-top: 20px;
}

.loading-text h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 16px;
    background: var(--gradient-solana);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.loading-text p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    line-height: 1.6;
    max-width: 400px;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin: 32px 0;
    position: relative;
    width: 100%;
    max-width: 400px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-solana);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.4) 50%,
            transparent 100%);
    animation: progressShine 1.5s infinite;
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.error-state {
    text-align: center;
    padding: 80px 40px;
}

.error-icon-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 40px;
}

.error-icon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-error);
    border-radius: 50%;
    opacity: 0.2;
    animation: pulseError 2s infinite;
}

@keyframes pulseError {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.error-icon {
    position: relative;
    font-size: 60px;
    color: var(--error);
    animation: shake 0.8s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0) rotate(0deg);
    }

    25% {
        transform: translateX(-10px) rotate(-5deg);
    }

    75% {
        transform: translateX(10px) rotate(5deg);
    }
}

.error-state h3 {
    color: white;
    font-size: 28px;
    margin-bottom: 20px;
    background: var(--gradient-error);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.error-state p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.6;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.error-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    margin: 32px 0;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.failed-modal {
    text-align: center;
    padding: 60px 40px;
}

.failed-icon-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 40px;
}

.failed-icon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-error);
    border-radius: 50%;
    opacity: 0.2;
    animation: pulseFailed 2s infinite;
}

@keyframes pulseFailed {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.failed-icon {
    position: relative;
    font-size: 60px;
    color: var(--error);
    animation: shakeFailed 0.8s ease-in-out;
}

@keyframes shakeFailed {

    0%,
    100% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-10px) rotate(-5deg);
    }

    50% {
        transform: translateY(0) rotate(0deg);
    }

    75% {
        transform: translateY(-5px) rotate(5deg);
    }
}

.failed-modal h3 {
    color: white;
    font-size: 28px;
    margin-bottom: 20px;
    background: var(--gradient-error);
    background-clip: text;
    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.failed-modal p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.6;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.services {
    padding: 100px 0;
    position: relative;
    width: 100%;
    background: rgba(5, 8, 16, 0.5);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: rgba(20, 25, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 150px rgba(153, 69, 255, 0.15);
    border-color: rgba(153, 69, 255, 0.3);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(153, 69, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: var(--solana-purple);
    transition: all 0.6s;
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(10deg);
    background: var(--gradient-solana);
    color: white;
    box-shadow: 0 15px 30px rgba(153, 69, 255, 0.3);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: white;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.service-action {
    margin-top: 20px;
}

.service-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.service-btn:hover {
    background: var(--gradient-solana);
    border-color: var(--solana-purple);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(153, 69, 255, 0.3);
}

.service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card:nth-child(4) {
    animation-delay: 0.4s;
}

.footer {
    padding: 80px 0 40px;
    background: rgba(5, 8, 16, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    position: relative;
    width: 100%;
    margin-top: 100px;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 900;
    color: white;
    margin-bottom: 24px;
    font-family: "Space Grotesk", sans-serif;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    line-height: 1.6;
}

.heart {
    color: var(--accent);
    animation: heartbeat 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    left: 20px;
    padding: 18px 24px;
    border-radius: 16px;
    backdrop-filter: blur(30px);
    z-index: 3000;
    transform: translateY(-100px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 450px;
    margin: 0 auto;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    word-break: break-word;
    background: rgba(153, 69, 255, 0.95);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification.warning {
    background: rgba(255, 215, 102, 0.95);
    color: #856404;
}

.notification.error {
    background: rgba(255, 71, 87, 0.95);
    color: white;
}

.notification.success {
    background: rgba(0, 255, 157, 0.95);
    color: #155724;
}

.notification i {
    font-size: 20px;
    flex-shrink: 0;
}

.solana-features {
    background: rgba(20, 25, 40, 0.5);
    border: 1px solid rgba(153, 69, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.solana-badge {
    background: var(--gradient-solana);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
    margin: 0 4px;
}

.section-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}

.phone-optimized {
    -webkit-overflow-scrolling: touch;
    -webkit-tap-highlight-color: transparent;
}

.receipt-simple {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    font-size: 14px;
    line-height: 1.5;
    max-width: 100%;
    overflow-wrap: break-word;
}

.receipt-simple-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.receipt-simple-label {
    color: #666;
    font-weight: 500;
}

.receipt-simple-value {
    color: #333;
    font-weight: 600;
    text-align: right;
}

.receipt-simple-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
}

.receipt-simple-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.receipt-simple-subtitle {
    font-size: 12px;
    color: #666;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 20px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-solana);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: white;
}

.user-email {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* .logout-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: rgba(255, 45, 117, 0.2);
    border-color: var(--accent);
} */

.validation-error {
    color: var(--error);
    font-size: 13px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.validation-error i {
    color: var(--error);
}

.valid-indicator {
    color: var(--success);
    font-size: 13px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.valid-indicator i {
    color: var(--success);
}

.validation-message {
    color: #ff4757;
    font-size: 13px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    display: none;
}

.validation-message.valid {
    color: #00ff9d;
}

.validation-message.show {
    display: flex;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease-out;
}

.alert-error {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff6b81;
}

.alert-success {
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid rgba(0, 255, 157, 0.3);
    color: #00ff9d;
}
/* ... your existing CSS continues ... */

/* NEW CSS FOR AUTH FIXES - ADD THIS AT THE END OF YOUR CSS FILE */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.alert {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease-out;
}

.alert-error {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff6b81;
}

.alert-success {
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid rgba(0, 255, 157, 0.3);
    color: #00ff9d;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ============================================= */
/* AUTHENTICATION SYSTEM ADDITIONS */
/* ============================================= */

.form-info {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-info i {
    color: var(--primary);
    font-size: 18px;
    margin-top: 2px;
}

.form-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.reset-success {
    text-align: center;
    padding: 30px 20px;
}

.reset-success i {
    font-size: 48px;
    color: var(--success);
    margin-bottom: 20px;
}

.reset-success h3 {
    color: white;
    margin-bottom: 10px;
}

.reset-success p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
}

.auth-footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-top: 30px;
}

.auth-link {
    color: var(--solana-purple);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
    transition: color 0.3s;
}

.auth-link:hover {
    color: var(--solana-green);
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.alert {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease-out;
}

.alert-error {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff6b81;
}

.alert-success {
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid rgba(0, 255, 157, 0.3);
    color: #00ff9d;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
