
/* Button Spinner */
.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: btn-spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes btn-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f1117;
    color: #c9d1d9;
    min-height: 100vh;
}

/* Animated Background */
.bg-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    animation: float 8s ease-in-out infinite;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #667eea, #764ba2);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #f093fb, #f5576c);
    top: 50%;
    right: 15%;
    animation-delay: 2s;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #4facfe, #00f2fe);
    bottom: 10%;
    left: 30%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

.content-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(15, 17, 23, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-items {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-item {
    color: #c9d1d9;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.3s ease;
}

.nav-item:hover, .nav-item.active {
    color: #667eea;
}

.connect-btn {
    position: relative;
    padding: 12px 28px;
    background: linear-gradient(90deg, #09101a 0%, #151d2c 100%);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-left: 3px solid #00f2fe;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 15px rgba(0, 242, 254, 0.1),
        inset 0 0 10px rgba(0, 242, 254, 0.05);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.connect-btn:hover {
    box-shadow: 
        0 0 25px rgba(0, 242, 254, 0.4),
        inset 0 0 15px rgba(0, 242, 254, 0.2);
    border-color: #00f2fe;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.connect-btn:active {
    transform: translateY(1px);
    box-shadow: 
        0 0 10px rgba(0, 242, 254, 0.3),
        inset 0 0 5px rgba(0, 242, 254, 0.1);
}

.connect-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.15), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.connect-btn:hover::after {
    transform: translateX(100%);
    transition: 0.7s ease-in-out;
}

/* Hero Section */
.hero {
    margin-top: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 16px;
    color: #8b949e;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.btn-primary {
    padding: 14px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #c9d1d9;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 12px;
    color: #8b949e;
    margin-top: 5px;
}

/* Showcase */
.showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    aspect-ratio: 16 / 10;
}

.showcase-item {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #667eea;
}

.icon-inline {
    vertical-align: middle;
    margin-right: 6px;
}

.showcase-item:hover {
    border-color: rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    transform: translateY(-5px);
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: rgba(15, 17, 23, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    z-index: 50;
}

.footer-link {
    font-size: 12px;
    color: #8b949e;
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #667eea;
}

/* Common Page Styles */
.page-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-description {
    font-size: 16px;
    color: #8b949e;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Text Content Pages (Privacy, Terms, Support) */
.section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #c9d1d9;
}

.section-content {
    font-size: 14px;
    color: #8b949e;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* FAQ Styles */
.faq-section {
    margin-bottom: 40px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(102, 126, 234, 0.6);
    background: rgba(255, 255, 255, 0.08);
}

.faq-question {
    padding: 18px;
    cursor: pointer;
    font-weight: 600;
    color: #c9d1d9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-toggle {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: #8b949e;
    font-size: 14px;
    line-height: 1.6;
}

.faq-item.open .faq-answer {
    padding-bottom: 18px;
    max-height: 500px;
}

/* Contact Section */
.contact-section {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-top: 40px;
}

.contact-section h3 {
    margin-bottom: 15px;
    color: #c9d1d9;
}

.contact-section p {
    color: #8b949e;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 17, 23, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #667eea;
    font-size: 24px;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.modal-text {
    color: #8b949e;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.modal-btn:hover {
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .showcase {
        grid-template-columns: 1fr;
        aspect-ratio: auto;
        min-height: 300px;
    }
}

/* =========================================
   Wallet Page Styles (main.html)
   ========================================= */

:root {
    --accent-color: #6366f1;
    --shadow-color: rgba(99, 102, 241, 0.12);
}

.wallet-container {
    background: linear-gradient(155deg, 
        rgba(30, 30, 46, 0.92) 0%,
        rgba(20, 20, 35, 0.95) 50%, 
        rgba(25, 25, 40, 0.93) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-radius: 24px;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.7),
        0 15px 40px rgba(99, 102, 241, 0.2),
        0 8px 25px rgba(139, 92, 246, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.1),
        inset 0 -1px 2px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(99, 102, 241, 0.2);
    padding: 0;
    max-width: 520px;
    width: 100%;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.3s ease;
    animation: containerFadeIn 0.6s ease-out;
    z-index: 10;
}

@keyframes containerFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wallet-container::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 24px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(99, 102, 241, 0.5) 20%,
        rgba(139, 92, 246, 0.7) 40%,
        rgba(168, 85, 247, 0.6) 60%,
        rgba(139, 92, 246, 0.5) 80%,
        transparent 100%);
    opacity: 0.6;
    filter: blur(8px);
    z-index: -1;
    animation: borderGlow 4s ease-in-out infinite, shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@keyframes borderGlow {
    0%, 100% { 
        background-position: 0% 50%;
        filter: blur(8px) brightness(1);
    }
    50% { 
        background-position: 100% 50%;
        filter: blur(12px) brightness(1.3);
    }
}

.wallet-container:hover {
    box-shadow: 
        0 20px 56px rgba(0, 0, 0, 0.6),
        0 8px 28px var(--shadow-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.06);
}

.modal-header-custom {
    padding: 20px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid #404040;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    border: none;
    color: #999;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: auto;
}

.close-btn:hover {
    color: #fff;
    transform: none;
    box-shadow: none;
}

.wallet-container h1 {
    color: #fff;
    margin: 0;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.wallet-container h2 {
    color: #fff;
    font-size: 19px;
    margin-bottom: 20px;
    font-weight: 600;
}

.subtitle {
    color: #999;
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.import-options {
    padding: 24px;
}

.warning {
    background: #3d2d00;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px;
    margin: 20px;
    color: #ffc107;
    font-size: 12px;
}

.warning strong {
    display: block;
    margin-bottom: 5px;
}

.info {
    background: #003d29;
    border: 1px solid #10b981;
    border-radius: 8px;
    padding: 12px;
    margin: 20px;
    color: #10b981;
    font-size: 12px;
}

.info strong {
    display: inline;
    margin-left: 5px;
}

.import-btn {
    width: 100%;
    padding: 18px 20px;
    background: 
        linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, transparent 100%),
        linear-gradient(135deg, #3a3a3a 0%, #2f2f2f 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    text-align: right;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.import-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    transition: left 0.5s ease;
}

.import-btn:hover::before {
    left: 100%;
}

.import-btn:hover {
    background: 
        linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%),
        linear-gradient(135deg, #454545 0%, #3a3a3a 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 4px 14px rgba(99, 102, 241, 0.3),
        0 2px 8px rgba(139, 92, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 0 20px rgba(99, 102, 241, 0.1);
}

.import-btn:active {
    transform: translateY(0px) scale(0.99);
    transition: all 0.1s ease;
}

.import-btn .icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-left: 15px;
    flex-shrink: 0;
}

.import-btn .text {
    flex: 1;
    text-align: right;
}

.seed-btn .icon { background: #10b981; }
.json-btn .icon { background: #f97316; }
.key-btn .icon { background: #6b7280; }
.qr-btn .icon { background: #3b82f6; }
.metamask-btn .icon { background: #f6851b; }

.import-form {
    padding: 20px;
}

.back-btn {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 16px;
    cursor: pointer;
    padding: 10px 0;
    margin-bottom: 15px;
    width: auto;
}

.back-btn:hover {
    transform: none;
    box-shadow: none;
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35),
                0 2px 8px rgba(99, 102, 241, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.submit-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.5),
                0 6px 18px rgba(99, 102, 241, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.submit-btn:active {
    transform: translateY(0px) scale(0.99);
    transition: all 0.1s ease;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-weight: 500;
    font-size: 14px;
}

input, textarea, select {
    width: 100%;
    padding: 14px;
    border: 1px solid #4a4a4a;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Courier New', monospace;
    background: linear-gradient(145deg, #1a1a1a 0%, #1e1e1e 100%);
    color: #fff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #3b82f6;
    background: linear-gradient(145deg, #252525 0%, #2a2a2a 100%);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 0 0 2px rgba(59, 130, 246, 0.12),
        0 2px 6px rgba(59, 130, 246, 0.15);
    transform: translateY(-0.5px);
}

input:hover, textarea:hover, select:hover {
    border-color: #5a5a5a;
}

input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

button:disabled {
    background: #555;
    cursor: not-allowed;
    transform: none;
    opacity: 0.5;
}

.qr-scanner {
    background: #1a1a1a;
    border: 2px dashed #4a4a4a;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    color: #999;
    margin: 20px 0;
}

.qr-scanner p {
    margin-bottom: 20px;
}

.wallet-help {
    padding: 20px;
    background: #1a1a1a;
    border-radius: 12px;
    margin: 20px;
    border: 2px solid #ffc107;
}

.wallet-help h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
}

.wallet-help p {
    color: #ccc;
    margin-bottom: 10px;
    font-size: 14px;
}

.wallet-help ol {
    color: #ccc;
    margin: 15px 0;
    padding-right: 20px;
    font-size: 14px;
}

.wallet-help ol li {
    margin-bottom: 8px;
}

.download-link {
    display: inline-block;
    margin-top: 10px;
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
}

.download-link:hover {
    text-decoration: underline;
}

.form-subtitle {
    color: #999;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.seed-inputs-container {
    margin: 20px 0;
}

.show-seed-btn {
    width: 100%;
    padding: 12px;
    background: #3a3a3a;
    border: 1px solid #4a4a4a;
    border-radius: 8px;
    color: #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 15px;
    transition: all 0.2s;
}

.show-seed-btn:hover {
    background: #454545;
    transform: none;
    box-shadow: none;
}

.eye-icon {
    font-size: 18px;
}

.seed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.seed-input-wrapper {
    position: relative;
}

.seed-input-wrapper label {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 11px;
    color: #666;
    margin: 0;
}

.seed-input-wrapper input {
    width: 100%;
    padding: 28px 12px 10px 12px;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    text-align: center;
}

.seed-input-wrapper input:focus {
    border-color: #3b82f6;
    background: #252525;
}

.seed-input-wrapper input[type="password"] {
    font-family: monospace;
    letter-spacing: 2px;
}

.result {
    margin: 0;
    padding: 0;
    background: #1a1a1a;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    overflow-y: auto;
}

.result.show {
    display: block;
}

.wallet-header {
    background: 
        linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%),
        linear-gradient(145deg, #5b5fdb 0%, #6366f1 30%, #7c3aed 60%, #8b5cf6 100%);
    padding: 20px 24px 24px 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(99, 102, 241, 0.3),
        0 4px 16px rgba(139, 92, 246, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.15),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-header::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: 
        radial-gradient(circle at 30% 30%, 
            rgba(255, 255, 255, 0.2) 0%, 
            transparent 40%),
        radial-gradient(circle at 70% 70%, 
            rgba(168, 85, 247, 0.15) 0%, 
            transparent 40%),
        conic-gradient(from 0deg,
            transparent 0deg,
            rgba(255, 255, 255, 0.05) 90deg,
            transparent 180deg,
            rgba(139, 92, 246, 0.08) 270deg,
            transparent 360deg);
    animation: headerGlow 12s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% { 
        transform: translate(0%, 0%) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: translate(5%, 5%) rotate(180deg) scale(1.1);
        opacity: 0.9;
    }
}

.wallet-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.wallet-account {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 12px 6px 6px;
    border-radius: 20px;
    font-size: 14px;
}

.wallet-account-icon {
    width: 24px;
    height: 24px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.wallet-account-name {
    font-size: 14px;
    font-weight: 600;
}

.wallet-address-short {
    font-size: 12px;
    opacity: 0.8;
    font-family: monospace;
}

.dropdown-arrow {
    font-size: 18px;
    opacity: 0.8;
    transform: rotate(90deg);
}

.wallet-actions-top {
    display: flex;
    gap: 10px;
}

.icon-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: none;
    box-shadow: none;
}

.balance-display {
    color: #fff;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.balance-amount {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.balance-crypto-main {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.balance-change {
    color: #10b981;
    font-size: 15px;
    font-weight: 600;
}

.queue-btn {
    margin-left: auto;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.queue-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: none;
    box-shadow: none;
}

.network-icons-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    opacity: 0.9;
}

.network-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
}

.network-icon-img {
    width: 18px;
    height: 18px;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.2s;
}

.network-icon-img:hover {
    opacity: 1;
    transform: scale(1.1);
}

.network-arrow {
    color: #fff;
    cursor: pointer;
}

.wallet-chart {
    width: 100%;
    height: 70px;
    margin-top: 16px;
}

.wallet-actions-grid {
    background: #fff;
    padding: 24px 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 16px;
}

.action-btn-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn-new:hover {
    transform: translateY(-2px);
}

.action-btn-new:hover .action-svg {
    stroke: #5B5FDB;
}

.action-svg {
    width: 32px;
    height: 32px;
    color: #5B5FDB;
    stroke: #5B5FDB;
    transition: all 0.2s;
}

.action-label-new {
    color: #1f2937;
    font-size: 13px;
    font-weight: 500;
}

.wallet-info {
    padding: 20px;
}

.info-card {
    background: linear-gradient(135deg, #2d2d2d 0%, #282828 100%);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.info-card:hover {
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35),
                0 0 0 1px rgba(99, 102, 241, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
    border-color: rgba(99, 102, 241, 0.15);
}

.info-icon {
    width: 40px;
    height: 40px;
    background: #3a3a3a;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #9ca3af;
    flex-shrink: 0;
}

.info-icon svg {
    width: 20px;
    height: 20px;
}

.info-content {
    flex: 1;
}

.info-label {
    color: #999;
    font-size: 13px;
    margin-bottom: 5px;
}

.info-value {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.close-wallet-btn {
    width: calc(100% - 40px);
    margin: 0 20px 20px 20px;
    padding: 14px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.close-wallet-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.wallet-menu {
    padding: 20px;
}

.menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #2d2d2d;
    border: none;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.menu-item:hover {
    background: #3a3a3a;
    transform: translateX(-4px);
    box-shadow: none;
}

.menu-icon {
    width: 36px;
    height: 36px;
    background: #3a3a3a;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.menu-text {
    flex: 1;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-align: right;
}

.menu-arrow {
    color: #666;
    font-size: 20px;
}

.token-balance-section {
    padding: 16px 20px;
    background: #fff;
}

.token-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 12px;
}

.token-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.token-info {
    flex: 1;
}

.token-amount {
    color: #1f2937;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.token-change-positive {
    color: #10b981;
    font-size: 13px;
    font-weight: 500;
}

.dapp-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    color: #9ca3af;
    font-size: 14px;
}

.dapp-status svg {
    opacity: 0.6;
}

.balance-label {
    color: #999;
    font-size: 12px;
    margin-bottom: 5px;
}

.balance-value {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.address {
    color: #3b82f6;
    font-size: 12px;
    word-break: break-all;
    margin-top: 5px;
}

.error {
    background: #3d1a1a;
    color: #ff6b6b;
    padding: 15px;
    border-radius: 8px;
    margin: 20px;
    display: none;
    border: 1px solid #ff4444;
}

.error.show {
    display: block;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
}

.loading.show {
    display: flex;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.network-selector {
    margin-bottom: 20px;
}

/* Wallet Page Responsive */
@media (max-width: 480px) {
    .wallet-container { 
        max-width: 96vw; 
        border-radius: 18px;
        padding: 0;
    }
    .wallet-container h1 { font-size: 18px; }
    .wallet-container h2 { font-size: 17px; }
    .balance-amount { font-size: 32px; }
    .import-btn { 
        padding: 16px 18px;
        font-size: 15px;
    }
    .seed-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .wallet-header {
        padding: 14px 16px 18px 16px;
    }
    .wallet-actions-grid {
        padding: 20px 16px;
        gap: 16px 12px;
    }
    body {
        padding: 12px;
        background-size: 300% 300%;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .wallet-container { 
        max-width: 92vw;
        max-width: min(92vw, 580px);
    }
    body {
        background-size: 350% 350%;
    }
    .wallet-container h1 { font-size: 19px; }
    .balance-amount { font-size: 34px; }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .wallet-container { 
        max-width: 600px;
    }
    body {
        background-size: 400% 400%;
    }
    .wallet-container h1 { font-size: 20px; }
    .balance-amount { font-size: 36px; }
}

@media (min-width: 1024px) {
    .wallet-container { 
        max-width: 650px;
    }
    body::after {
        animation-duration: 50s;
    }
    .wallet-container h1 { font-size: 21px; }
    .balance-amount { font-size: 38px; }
}

@media (min-width: 1440px) {
    .wallet-container { 
        max-width: 720px;
    }
    :root {
        --bg-h: 230;
    }
    .wallet-container h1 { font-size: 22px; }
    .balance-amount { font-size: 40px; }
}

@media (min-width: 1920px) {
    .wallet-container { 
        max-width: 800px;
    }
    .import-btn {
        padding: 20px 22px;
        font-size: 17px;
    }
    .submit-btn {
        padding: 18px;
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body, body::before, body::after { 
        animation: none !important;
        transition: none;
    }
    .wallet-container { 
        transition: none;
        animation: none;
    }
    .import-btn, .submit-btn {
        transition: opacity 0.2s ease;
    }
    .import-btn:hover, .submit-btn:hover {
        transform: none;
    }
}

@media (prefers-color-scheme: light) {
    :root {
        --primary-gradient-start: #dbeafe;
        --primary-gradient-end: #e0e7ff;
    }
}

@supports (-webkit-backdrop-filter: blur(20px)) or (backdrop-filter: blur(20px)) {
    .wallet-container {
        background: linear-gradient(155deg, 
            rgba(42, 42, 46, 0.92) 0%, 
            rgba(35, 35, 39, 0.88) 100%);
    }
}

@supports not ((-webkit-backdrop-filter: blur(20px)) or (backdrop-filter: blur(20px))) {
    .wallet-container {
        background: linear-gradient(155deg, 
            rgba(42, 42, 46, 0.98) 0%, 
            rgba(35, 35, 39, 0.95) 100%);
    }
}

.connect-wallet-hero {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.connect-wallet-hero .hero-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.18);
    color: #c9d1d9;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.connect-wallet-hero .hero-title {
    font-size: 24px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.connect-wallet-hero .hero-copy {
    color: #8b949e;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.connect-wallet-hero .hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12px;
    color: #8b949e;
}

.connect-wallet-hero .hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.connect-wallet-hero .hero-meta span::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #667eea;
}
