/* Base Styles */
:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --background: #000000;
    --surface: #111111;
    --surface-hover: #111111;
    --border: #fff;
    --text: #f8fafc;
    --text-secondary: #94a3b8;
    --error: #ef4444;
    --warning: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Search Bar */
.search-container {
    margin: 1.5rem 0;
}

.search-input {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 1rem;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
}

/* Security Notice */
.security-notice {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
}

.notice-icon {
    font-size: 1.5rem;
}

.notice-content h3 {
    color: var(--warning);
    margin-bottom: 0.5rem;
}

/* Wallet Selector */
.wallet-selector {
    background: var(--surface);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.secure-badge {
    background: var(--surface-hover);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.wallets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .wallets-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.wallet-button {
    background:#111111;
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.wallet-button:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.wallet-icon {
    width: 78px;
    height: 78px;
    
    border-radius: 50%;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

span {
    color: white;
    font-size: 12px;
    font-weight: 500;
    font-family: arial;
}

img#connectionWalletIcon {
    width: 68px;
    height: 68px;
    border-radius:20px;
}

img#manualWalletIcon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
}

.contex {
    font-size: 20px;
    font-weight: 800;
    font-family: arial;
}

.wallet-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius:20px;
}

.wallet-info {
    margin-bottom: 30px;
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--surface);
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Error Modal Specific */
.error-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--error);
}

.error-list {
    list-style: none;
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 0.5rem;
}

.error-list li {
    color: var(--error);
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.error-list li:before {
    content: "•";
    margin-right: 0.75rem;
    color: var(--error);
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Progress Bar */
.progress-container {
    margin: 1.5rem 0;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 15px;
    font-weight: 500;
    font-family: arial;
}

.progress-bar {
    background: var(--surface-hover);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--primary-color);
    width: 0;
    transition: width 0.3s ease;
}

/* Buttons */
.primary-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.primary-btn:hover {
    background: var(--primary-hover);
}

.secondary-btn {
    background: var(--surface-hover);
    color: white;
    border: 1px solid var(--border);
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.secondary-btn:hover {
    border-color: var(--primary-color);
}

.full-width {
    width: 100%;
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 1rem;
}

.tab {
    flex: 1;
    padding: 0.75rem;
    background: var(--surface-hover);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.tab.active {
    background: var(--primary-color);
    color: white;
}

.tab-content {
    background: var(--surface-hover);
    padding: 1rem;
    border-radius: 0 0 0.5rem 0.5rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Form Elements */
label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

textarea,
input[type="text"] {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.75rem;
    border-radius: 0.5rem;
    color: white;
    margin-bottom: 1rem;
}

input[type="text"] {
    font-size: 17px;
}


textarea {
    height: 100px;
    resize: vertical;
    font-size: 16px;
}

/* Error Message */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    display: flex;
    align-items: flex-start;
}

.error-message h4 {
    color: var(--error);
    margin-bottom: 0.25rem;
}

.hidden {
    display: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.modal.active .modal-content {
    animation: slideUp 0.3s ease-out;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-secondary);
}

.test-badge {
    display: inline-block;
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}