/* ===== VARIABLES ===== */
:root {
    --primary: #00D4FF;
    --primary-dark: #0099CC;
    --secondary: #0A0A1A;
    --accent: #1A1A2E;
    --text: #FFFFFF;
    --text-secondary: #B8C2CC;
    --background: #050510;
    --card-bg: rgba(20, 25, 45, 0.85);
    --card-border: rgba(0, 212, 255, 0.4);
    --success: #00FF9D;
    --warning: #FFD166;
    --error: #FF0055;
    --gradient: linear-gradient(135deg, var(--primary), #9D00FF);
    --gradient-hover: linear-gradient(135deg, var(--primary-dark), #7A00CC);
    --success-gradient: linear-gradient(135deg, var(--success), #00CC7A);
    --section-bg: rgba(15, 20, 40, 0.75);
    --section-border: rgba(0, 212, 255, 0.3);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.4);
    --glow: 0 0 20px rgba(0, 212, 255, 0.4);
    --glow-strong: 0 0 30px rgba(0, 212, 255, 0.6);
    --hero-bg: rgba(10, 10, 25, 0.95);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: 'Inter', sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* ===== BACKGROUND EFFECTS ===== */
.lightning-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background: linear-gradient(135deg, #050510 0%, #0A0A1A 50%, #050510 100%);
}

.lightning {
    position: absolute;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 212, 255, 0.8), transparent);
    opacity: 0;
    animation: lightningFlash 8s infinite;
}

.lightning:nth-child(1) {
    left: 20%;
    top: 0;
    animation-delay: 1s;
}

.lightning:nth-child(2) {
    left: 50%;
    top: 10%;
    animation-delay: 3s;
}

.lightning:nth-child(3) {
    left: 80%;
    top: 20%;
    animation-delay: 5s;
}

.lightning:nth-child(4) {
    left: 30%;
    top: 30%;
    animation-delay: 7s;
}

.lightning:nth-child(5) {
    left: 70%;
    top: 40%;
    animation-delay: 2s;
}

@keyframes lightningFlash {
    0% {
        height: 0;
        opacity: 0;
    }

    1% {
        height: 100px;
        opacity: 0.8;
    }

    2% {
        height: 150px;
        opacity: 1;
    }

    3% {
        height: 0;
        opacity: 0;
    }

    100% {
        height: 0;
        opacity: 0;
    }
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    opacity: 0.15;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease-out;
    text-align: center;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.hologram-loader {
    width: 80px;
    height: 80px;
    position: relative;
    margin-bottom: 1.5rem;
}

.hologram-ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: rotate 2s linear infinite;
}

.hologram-ring:nth-child(1) {
    width: 100%;
    height: 100%;
    border-top: 3px solid var(--primary);
    border-right: 3px solid transparent;
    animation-duration: 2s;
}

.hologram-ring:nth-child(2) {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-top: 3px solid var(--primary-dark);
    border-left: 3px solid transparent;
    animation-duration: 1.5s;
    animation-direction: reverse;
}

.hologram-ring:nth-child(3) {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    border-bottom: 3px solid var(--success);
    border-right: 3px solid transparent;
    animation-duration: 1s;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.logo-explosion {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: hologramReveal 1.5s ease-out;
    margin-bottom: 0.5rem;
}

@keyframes hologramReveal {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.1) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background: rgba(10, 10, 25, 0.95);
    backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--card-border);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    height: 60px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.7));
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover::before,
.nav-links a:focus::before {
    width: 100%;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
    outline: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    outline: none;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: right 0.4s ease;
    padding: 80px 2rem 2rem;
    border-left: 1px solid var(--card-border);
    box-shadow: var(--shadow);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.8rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-family: 'Orbitron', sans-serif;
    position: relative;
    overflow: hidden;
}

.mobile-nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:focus {
    color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--card-border);
    transform: translateX(10px);
    outline: none;
}

.mobile-nav-links a:hover::before,
.mobile-nav-links a:focus::before {
    left: 100%;
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-nav-close:hover,
.mobile-nav-close:focus {
    background: rgba(255, 0, 85, 0.1);
    color: var(--error);
    outline: none;
}

/* ===== STEP INDICATOR ===== */
.sticky-step-indicator {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    border-bottom: 1px solid var(--card-border);
    padding: 0.8rem 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-light);
}

.sticky-step-indicator.visible {
    transform: translateY(0);
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    position: relative;
    width: 100%;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .step-indicator {
        max-width: 600px;
    }
}

@media (min-width: 992px) {
    .step-indicator {
        max-width: 800px;
    }
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.4rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.step.active .step-number {
    background: var(--gradient);
    box-shadow: var(--glow);
    border-color: var(--primary);
    animation: pulseStep 2s infinite;
}

@keyframes pulseStep {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    }
}

.step-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
    line-height: 1.2;
}

.step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--hero-bg);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    min-height: 100vh;
    width: 100%;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 60px);
    padding: 80px 0 40px;
}

@media (min-width: 768px) {
    .hero .container {
        padding: 100px 0 60px;
    }
}

@media (min-width: 992px) {
    .hero .container {
        padding: 120px 0 80px;
    }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
    width: 100%;
    padding: 20px 0;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.2rem;
    border-radius: 20px;
    padding: 12px;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid rgba(0, 212, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatLogo 3s ease-in-out infinite;
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-logo {
        width: 120px;
        height: 120px;
    }
}

@media (min-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero-logo {
        width: 140px;
        height: 140px;
    }
}

.hero p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    padding: 0 10px;
}

@media (min-width: 768px) {
    .hero p {
        font-size: 1rem;
        padding: 0;
    }
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    padding: 0 10px;
}

@media (min-width: 768px) {
    .hero-badges {
        padding: 0;
    }
}

.badge {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

/* Hero buttons */
.hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    width: 100%;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    font-family: 'Orbitron', sans-serif;
    border: none;
    min-width: 160px;
    height: 44px;
}

@media (min-width: 768px) {
    .hero-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
        min-width: 180px;
        height: 48px;
    }
}

.hero-btn-primary {
    background: var(--gradient);
    color: var(--text);
}

.hero-btn-primary:hover {
    background: var(--gradient-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
}

.hero-btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--primary);
}

.hero-btn-secondary:hover {
    background: var(--primary);
    color: var(--text);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

/* ===== TOKEN CREATOR SECTION ===== */
.token-creator {
    padding: 40px 0 20px;
    position: relative;
}

@media (min-width: 768px) {
    .token-creator {
        padding: 50px 0 30px;
    }
}

.token-creator .container {
    max-width: 800px;
}

.creator-container {
    background: linear-gradient(145deg, var(--card-bg) 0%, var(--accent) 100%);
    padding: 1.5rem;
    border-radius: 18px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow), var(--glow);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    width: 100%;
    animation: containerSlide 0.8s ease-out;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .creator-container {
        padding: 1.2rem;
        border-radius: 16px;
        width: 100%;
        margin: 0;
    }
}

@media (min-width: 768px) {
    .creator-container {
        padding: 2rem;
        border-radius: 20px;
    }
}

@keyframes containerSlide {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.creator-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    border-radius: 20px 20px 0 0;
}

.creator-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.creator-header h2 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.6rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

@media (min-width: 768px) {
    .creator-header h2 {
        font-size: 1.8rem;
    }
}

.creator-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .creator-header p {
        font-size: 1rem;
    }
}

.section-container {
    background: var(--section-bg);
    border: 1px solid var(--section-border);
    border-radius: 14px;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
}

@media (min-width: 768px) {
    .section-container {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        border-radius: 16px;
    }
}

.section-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.05), transparent);
    transition: left 0.5s ease;
}

.section-container:hover::before {
    left: 100%;
}

.section-container:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow), var(--shadow);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}

@media (min-width: 768px) {
    .section-header {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
    }
}

.section-header i {
    font-size: 1.1rem;
    filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.5));
}

@media (min-width: 768px) {
    .section-header i {
        font-size: 1.2rem;
    }
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    width: 100%;
}

@media (min-width: 768px) {
    .form-group {
        margin-bottom: 1.2rem;
    }
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
    }
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(15, 10, 20, 0.8);
    color: var(--text);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
    .form-control {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15), var(--glow);
    background: rgba(20, 15, 25, 0.9);
}

.form-control.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(255, 0, 85, 0.15);
}

.error-message {
    color: var(--error);
    font-size: 0.75rem;
    margin-top: 0.4rem;
    display: none;
}

@media (min-width: 768px) {
    .error-message {
        font-size: 0.8rem;
    }
}

.error-message.show {
    display: block;
    animation: shake 0.5s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-5px);
    }

    40%,
    80% {
        transform: translateX(5px);
    }
}

.tooltip-icon {
    color: var(--text-secondary);
    cursor: help;
    margin-left: 5px;
}

.tooltip-icon:hover {
    color: var(--primary);
}

.blockchain-dropdown {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(15, 10, 20, 0.8);
    color: var(--text);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

@media (min-width: 768px) {
    .blockchain-dropdown {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
}

.blockchain-dropdown:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15), var(--glow);
    background: rgba(20, 15, 25, 0.9);
}

.current-network-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
    padding: 0.7rem;
    border-radius: 10px;
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid rgba(0, 255, 157, 0.3);
    color: var(--success);
    font-weight: bold;
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .current-network-indicator {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
}

.current-network-indicator i {
    animation: pulse 2s infinite;
}

/* ===== BUTTON STYLES ===== */
.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-align: center;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    font-family: 'Orbitron', sans-serif;
}

@media (min-width: 768px) {
    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--gradient);
    color: var(--text);
}

.btn-primary:hover {
    background: var(--gradient-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
}

.btn-success {
    background: var(--success-gradient);
    color: var(--text);
}

.btn-success:hover {
    background: linear-gradient(135deg, #00CC7A, var(--success));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 255, 157, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--text);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

.btn-error {
    background: rgba(255, 0, 85, 0.2);
    color: var(--error);
    border: 2px solid var(--error);
    animation: blinkRedAlert 1.5s infinite;
}

.btn-error:hover {
    animation: none;
    background: var(--error);
    color: var(--text);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 0, 85, 0.4);
}

.btn-block {
    width: 100%;
    max-width: 280px;
    padding: 12px;
    font-size: 0.95rem;
    margin: 1.2rem auto;
    display: block;
}

@media (min-width: 768px) {
    .btn-block {
        padding: 14px;
        font-size: 1rem;
        max-width: 300px;
    }
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

@keyframes blinkRedAlert {

    0%,
    100% {
        background: rgba(255, 0, 85, 0.2);
    }

    50% {
        background: rgba(255, 0, 85, 0.4);
    }
}

#connectButton.blinking {
    animation: connectBlink 3s infinite;
}

@keyframes connectBlink {

    0%,
    100% {
        background: var(--gradient);
    }

    25% {
        background: var(--success-gradient);
    }

    50% {
        background: var(--gradient);
    }

    75% {
        background: var(--success-gradient);
    }
}

/* ===== WALLET CONTAINER ===== */
.wallet-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    align-items: center;
    width: 100%;
}

.connection-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.wallet-status-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 280px;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
}

@media (min-width: 768px) {
    .wallet-status-badge {
        max-width: 320px;
        font-size: 0.85rem;
    }
}

.wallet-status-badge.connected {
    background: rgba(0, 255, 157, 0.15);
    border: 1px solid rgba(0, 255, 157, 0.3);
    color: var(--success);
}

.wallet-status-badge.disconnected {
    background: rgba(255, 0, 85, 0.15);
    border: 1px solid rgba(255, 0, 85, 0.3);
    color: var(--error);
}

.wallet-status-badge.wrong-network {
    background: rgba(255, 209, 102, 0.15);
    border: 1px solid rgba(255, 209, 102, 0.3);
    color: var(--warning);
}

.wallet-info-container {
    background: rgba(15, 10, 20, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1rem;
    margin: 1rem 0;
    display: none;
    box-shadow: var(--shadow-light);
    animation: slideDown 0.3s ease;
    width: 100%;
}

@media (min-width: 768px) {
    .wallet-info-container {
        padding: 1.2rem;
    }
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.wallet-info-container.active {
    display: block;
}

.wallet-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .wallet-info-header {
        font-size: 0.95rem;
    }
}

.wallet-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.wallet-info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.wallet-info-item:last-child {
    border-bottom: none;
}

.wallet-info-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    flex-shrink: 0;
    min-width: 100px;
    margin-bottom: 0.3rem;
}

@media (min-width: 768px) {
    .wallet-info-label {
        font-size: 0.85rem;
    }
}

.wallet-info-value {
    font-weight: 600;
    font-size: 0.8rem;
    text-align: right;
    flex-grow: 1;
    margin-left: 8px;
    word-break: break-all;
    overflow-wrap: break-word;
}

@media (min-width: 768px) {
    .wallet-info-value {
        font-size: 0.85rem;
    }
}

.wallet-address-value {
    font-family: monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    word-break: break-all;
    display: block;
    width: 100%;
    margin-top: 0.3rem;
}

@media (min-width: 768px) {
    .wallet-address-value {
        font-size: 0.75rem;
    }
}

.balance-sufficient {
    color: var(--success);
    text-align: right !important;
    white-space: normal;
    line-height: 1.4;
}

.balance-insufficient {
    color: var(--error);
    text-align: right !important;
    white-space: normal;
    line-height: 1.4;
}

/* ===== COST BREAKDOWN ===== */
.cost-breakdown {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    display: block;
    animation: fadeIn 0.3s ease;
    width: 100%;
}

@media (min-width: 768px) {
    .cost-breakdown {
        padding: 1.2rem;
    }
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .cost-item {
        font-size: 0.9rem;
        padding: 0.6rem 0;
    }
}

.cost-item:last-child {
    border-bottom: none;
    font-weight: bold;
    color: var(--primary);
}

.gas-fee-row,
.gas-gwei-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

@media (min-width: 768px) {

    .gas-fee-row,
    .gas-gwei-row {
        font-size: 0.9rem;
        padding: 0.6rem 0;
    }
}

.gas-fee-label,
.gas-gwei-label {
    display: flex;
    align-items: center;
    gap: 6px;
    text-align: left;
    flex: 1;
}

.gas-fee-value,
.gas-gwei-value {
    text-align: right;
    flex-shrink: 0;
    margin-left: 10px;
}

.gas-gwei-value {
    color: var(--warning);
}

/* ===== LOADING & STATUS ===== */
.loading {
    display: none;
    text-align: center;
    margin: 1.2rem 0;
    position: relative;
    z-index: 2;
    width: 100%;
}

.tech-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 0.8rem;
    box-shadow: var(--glow);
}

@media (min-width: 768px) {
    .tech-spinner {
        width: 60px;
        height: 60px;
        margin: 0 auto 1rem;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#status {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(10, 10, 20, 0.8);
    border-radius: 12px;
    text-align: center;
    font-size: 0.8em;
    border: 1px solid rgba(255, 255, 255, 0.08);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 768px) {
    #status {
        padding: 1.2rem;
        font-size: 0.85em;
    }
}

.transaction-hash {
    font-family: monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 6px;
    margin: 8px 0;
    word-break: break-all;
    font-size: 0.75em;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 90vw;
}

.toast {
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    color: white;
    box-shadow: var(--shadow);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 100%;
    backdrop-filter: blur(10px);
    border-left: 4px solid;
    word-wrap: break-word;
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .toast {
        font-size: 0.9rem;
    }
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: rgba(0, 255, 157, 0.9);
    border-left-color: var(--success);
}

.toast.error {
    background: rgba(255, 0, 85, 0.9);
    border-left-color: var(--error);
}

.toast.warning {
    background: rgba(255, 209, 102, 0.9);
    border-left-color: var(--warning);
}

.toast.info {
    background: rgba(0, 212, 255, 0.9);
    border-left-color: var(--primary);
}

/* ===== POPUP MODAL ===== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

.popup {
    background: linear-gradient(145deg, var(--card-bg) 0%, var(--accent) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    text-align: center;
    border: 1px solid var(--card-border);
    max-height: 85vh;
    overflow-y: auto;
}

.popup-overlay.active .popup {
    transform: scale(1);
}

.popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    border-radius: 16px 16px 0 0;
}

.popup.success::before {
    background: var(--success-gradient);
}

.popup.error::before {
    background: linear-gradient(90deg, var(--error), var(--warning));
}

.popup.pending::before {
    background: linear-gradient(90deg, var(--primary), var(--warning));
    animation: gradientShift 3s infinite;
}

.popup-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.popup.success .popup-icon {
    background: var(--success-gradient);
    color: var(--text);
}

.popup.error .popup-icon {
    background: linear-gradient(135deg, var(--error), var(--warning));
    color: var(--text);
}

.popup.pending .popup-icon {
    background: var(--gradient);
    color: var(--text);
    animation: pulse 2s infinite;
}

.popup-title {
    color: var(--text);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.popup.success .popup-title {
    color: var(--success);
}

.popup.error .popup-title {
    color: var(--error);
}

.popup.pending .popup-title {
    color: var(--primary);
}

.popup-message {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.4;
    font-size: 0.95rem;
}

.popup-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 0.8rem;
    margin-bottom: 1.2rem;
    text-align: left;
}

.popup-details h4 {
    color: var(--text);
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.popup-tx-hash {
    font-family: monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px;
    border-radius: 6px;
    margin: 6px 0;
    word-break: break-all;
    font-size: 0.75em;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.token-address-container {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem;
    border-radius: 10px;
    margin: 0.8rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.token-address-label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.token-address-input {
    width: 100%;
    padding: 6px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 6px;
    color: var(--text);
    font-family: monospace;
    font-size: 0.75em;
    margin-bottom: 0.6rem;
    word-break: break-all;
}

.token-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.token-actions .btn {
    padding: 8px 10px;
    font-size: 0.8rem;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.popup-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

.popup-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.popup-close:hover,
.popup-close:focus {
    background: rgba(255, 0, 85, 0.1);
    color: var(--error);
    outline: none;
}

.popup-content {
    max-height: calc(85vh - 120px);
    overflow-y: auto;
    padding: 0 0.3rem;
}

.view-explorer-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.view-explorer-btn:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

.copy-address-btn {
    background: linear-gradient(135deg, #4a00e0, #8e2de2);
    color: white;
}

.copy-address-btn:hover {
    background: linear-gradient(135deg, #8e2de2, #4a00e0);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(142, 45, 226, 0.4);
}

.popup.pending .popup-actions {
    display: none;
}

/* ===== MOBILE MODAL ===== */
.mobile-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 35, 0.95);
    z-index: 10000;
    backdrop-filter: blur(20px);
}

.mobile-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-modal-content {
    background: linear-gradient(145deg, var(--card-bg) 0%, var(--accent) 100%);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    text-align: center;
    max-width: 400px;
    margin: 1.5rem;
    width: calc(100% - 3rem);
}

.mobile-modal h3 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.mobile-modal p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.mobile-modal-buttons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
}

/* ===== CONFETTI ===== */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary);
    opacity: 0;
    animation: confettiFall 3s ease-in forwards;
}

.confetti:nth-child(2n) {
    background: var(--success);
}

.confetti:nth-child(3n) {
    background: var(--warning);
}

.confetti:nth-child(4n) {
    background: var(--error);
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* ===== ABOUT SECTION ===== */
.about-web {
    padding: 30px 0 40px;
    background: rgba(10, 10, 25, 0.8);
}

@media (min-width: 768px) {
    .about-web {
        padding: 40px 0 50px;
    }
}

.about-web .container {
    max-width: 800px;
}

.about-web-content {
    background: linear-gradient(145deg, var(--card-bg) 0%, var(--accent) 100%);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .about-web-content {
        padding: 2rem;
    }
}

.about-web h2 {
    color: var(--primary);
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
}

@media (min-width: 768px) {
    .about-web h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
}

.about-web-text {
    color: var(--text);
    line-height: 1.6;
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .about-web-text {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

.about-web-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .about-web-features {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    text-align: left;
}

@media (min-width: 768px) {
    .feature-item {
        padding: 1.2rem;
    }
}

.feature-item h4 {
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-item ul {
    color: var(--text-secondary);
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .feature-item li {
        font-size: 0.9rem;
    }
}

.feature-item li i {
    position: absolute;
    left: 0;
    top: 0.2rem;
}

.contact-support-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    margin-top: 1rem;
    min-width: 180px;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

@media (min-width: 768px) {
    .contact-support-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(180deg, var(--secondary) 0%, #050510 100%);
    padding: 30px 0 20px;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    text-align: center;
}

@media (min-width: 768px) {
    footer {
        padding: 40px 0 20px;
    }
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .footer-content {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
}

.footer-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .footer-links {
        gap: 1.5rem;
    }
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    position: relative;
}

@media (min-width: 768px) {
    .footer-links a {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.footer-links a:hover::before,
.footer-links a:focus::before {
    width: 100%;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--text);
    background: rgba(0, 212, 255, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.8rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        padding-top: 2rem;
        font-size: 0.9rem;
    }
}