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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5ecdc;
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    animation: fadeIn 0.5s ease-in;
}

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

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5em;
    color: #7D050D;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 1.1em;
}

.input-section {
    margin-bottom: 30px;
}

.wallet-input-group {
    margin-bottom: 25px;
}

.wallet-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 1em;
}

.wallet-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.wallet-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-hint {
    display: block;
    font-size: 0.85em;
    color: #888;
    margin-top: 5px;
}

.nft-section {
    margin-bottom: 30px;
}

.predefined-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.chain-group {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px;
    border: 1px solid #e5e7eb;
}

.chain-group h3 {
    margin-bottom: 10px;
    color: #333;
}

.chain-group ul {
    list-style: none;
    padding-left: 0;
}

.chain-group li {
    margin-bottom: 8px;
    color: #444;
    line-height: 1.4;
}

.api-key-section {
    margin-bottom: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.api-key-section details {
    cursor: pointer;
}

.api-key-group {
    margin-top: 15px;
}

.api-key-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 1em;
}

.api-key-section a {
    color: #667eea;
    text-decoration: none;
}

.api-key-section a:hover {
    text-decoration: underline;
}

.nft-section h2 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 15px;
}

.nft-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 1em;
}

.nft-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    font-family: 'Courier New', monospace;
    resize: vertical;
    transition: all 0.3s ease;
}

.nft-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.check-button {
    width: 100%;
    padding: 16px;
    background: #7D050D;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.check-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(125, 5, 13, 0.4);
}

.check-button:active:not(:disabled) {
    transform: translateY(0);
}

.check-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.button-loader {
    display: inline-block;
}

.results-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    animation: slideDown 0.3s ease-out;
}

.chain-results-section {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.chain-results-section:last-child {
    margin-bottom: 0;
}

.chain-results-title {
    font-size: 1.3em;
    color: #7D050D;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
}

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

.results-section h2 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 20px;
}

.nft-result {
    background: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nft-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nft-result.found {
    border-left-color: #4caf50;
    background: linear-gradient(to right, #f1f8f4 0%, white 5%);
}

.nft-result.not-found {
    border-left-color: #e0e0e0;
    opacity: 0.7;
}

.nft-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nft-name {
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
}

.nft-count {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1.1em;
    font-weight: 700;
    min-width: 50px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(76, 175, 80, 0.3);
}

.nft-result.not-found .nft-count {
    background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%);
    box-shadow: 0 2px 5px rgba(158, 158, 158, 0.3);
}

.error-note {
    color: #c62828;
    font-weight: 500;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    border-left: 4px solid #f44336;
    animation: shake 0.5s ease-in-out;
}

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

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    header h1 {
        font-size: 2em;
    }

    .wallet-input,
    .nft-input {
        font-size: 0.9em;
    }
}

