/* Modern Wallet UI - Fresh Look CSS */

/* Reset and Base Styles */
* {
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
}

html,
body {
    height: auto !important;
    overflow: visible !important;
    position: static !important;
}

#root,
#router-root,
#___gatsby,
#gatsby-focus-wrapper {
    height: auto !important;
    overflow: visible !important;
    position: static !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'SF Pro Display', sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    font-weight: 400;
    line-height: 1.6;
    color: #2d3748;
    position: relative;
}

/* Header Styles */
h1 {
    text-align: center;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 3rem 0 2rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
    letter-spacing: -0.02em;
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        margin: 1.5rem 0;
    }
}

/* Main Container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
    min-height: auto;
    padding-bottom: 4rem;
}

section {
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.5rem;
        padding: 1rem;
    }
}

/* Wallet Card Transformation */
.cmAzHq {
    position: relative;
    background: rgba(166, 34, 34, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.8rem 1.2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    height: auto;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex: none;
    width: auto;
}

/* Gradient Border Animation */
.cmAzHq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 300% 100%;
    animation: gradientShift 4s ease-in-out infinite;
    border-radius: 20px 20px 0 0;
    opacity: 0.8;
}

/* Hover Effects */
.cmAzHq:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 10px 30px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.cmAzHq:hover::before {
    animation-duration: 2s;
    opacity: 1;
}

/* Status Indicator */
.eodRCW {
    font-weight: 600;
    font-size: 1rem;
    color: #e2e8f0;
    margin-bottom: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    letter-spacing: 0.02em;
}

/* Green Status Dot */
.mr2.bg-green.br-100 {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #48bb78, #38a169);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.7);
}

/* Icon Container */
.lfUBtr {
    width: 80px;
    height: 80px;
    margin: 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 18px;
    box-shadow:
        0 8px 24px rgba(102, 126, 234, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
}

.lfUBtr::before {
    content: '';
    position: absolute;
    inset: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 17px;
    pointer-events: none;
}

.cmAzHq:hover .lfUBtr {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(240, 147, 251, 0.4);
}

/* Wallet Icons */
.lfUBtr img,
.img-icons {
    width: 60px !important;
    height: 60px !important;
    border-radius: 16px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.cmAzHq:hover .lfUBtr img,
.cmAzHq:hover .img-icons {
    transform: scale(1.05);
}

/* Popular Badge */
.cmAzHq:nth-child(1)::after,
.cmAzHq:nth-child(2)::after,
.cmAzHq:nth-child(3)::after {
    content: 'POPULAR';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.4);
}

/* Connect Button (appears on hover) */
.cmAzHq::after {
    content: 'Connect Wallet';
    position: absolute;
    bottom: -45px;
    left: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.7rem 1.2rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cmAzHq:hover::after {
    bottom: 1rem;
    opacity: 1;
    transform: translateY(0);
}

/* Advanced Hover Animations */
.cmAzHq:hover .eodRCW {
    color: #90cdf4;
    transform: translateY(-2px);
}

/* Professional Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Professional grid dots pattern */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
}

/* Floating Animation for Background Elements */
@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.7);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
        box-shadow: 0 0 0 8px rgba(72, 187, 120, 0);
    }
}

/* Loading Animation Improvements */
.containerz {
    height: 60px;
    width: 50px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

.containerz::after {
    content: 'Synchronizing...';
    color: #667eea;
    font-weight: 600;
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.9rem;
}

.boxz {
    position: relative;
    height: 60px;
    width: 50px;
    animation: box 5s infinite linear;
}

.borderz {
    background: linear-gradient(135deg, #667eea, #764ba2);
    position: absolute;
    border-radius: 2px;
}

/* Modal Improvements */
.overlay {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    z-index: 9999;
}

.aletr {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    width: 90%;
    max-width: 500px;
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Form Elements */
input,
textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #e2e8f0;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

input::placeholder,
textarea::placeholder {
    color: rgba(226, 232, 240, 0.6);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

/* Buttons */
button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button::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;
}

button:hover::before {
    left: 100%;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Tab Navigation */
.flex.justify-evenly.border-b-2 {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.flex.justify-evenly.border-b-2>div {
    background: transparent;
    border: none;
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
   
}

.flex.justify-evenly.border-b-2>div:hover,
.flex.justify-evenly.border-b-2>div {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: rgb(255, 255, 255);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Responsive Design */
@media (max-width: 480px) {
    .cmAzHq {
        padding: 1.5rem 1rem;
        min-height: 160px;
    }

    .lfUBtr {
        width: 70px;
        height: 70px;
    }

    .lfUBtr img,
    .img-icons {
        width: 45px !important;
        height: 45px !important;
    }

    .eodRCW {
        font-size: 0.9rem;
    }

    .aletr {
        padding: 1.5rem;
        margin: 1rem;
    }

    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

/* Success States */
.thankyou_message {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    margin-top: 1rem;
}

/* Error States */
.errormessage {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    margin-top: 1rem;
}

/* Loading States */
.sending {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

/* Additional Polish */
.cmAzHq:active {
    transform: translateY(-8px) scale(0.98);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .cmAzHq {
        background: rgba(45, 55, 72, 0.95);
        color: #f7fafc;
    }

    .eodRCW {
        color: #e2e8f0;
    }

    .cmAzHq:hover .eodRCW {
        color: #90cdf4;
    }
}