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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 20px 0;
}

.logo-link {
    display: inline-block;
}

.logo {
    height: 60px;
    width: auto;
}

main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.tool-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.tool-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.tool-options {
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    justify-content: center;
    gap: 20px;
    padding: 10px;
}

.tool-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tool-option:hover {
    background: #e9ecef;
    border-color: #140061;
}

.tool-option input[type="radio"] {
    display: none;
}

.tool-option input[type="radio"]:checked ~ span {
    color: #140061;
    font-weight: 600;
}

.tool-option span {
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

.address-input {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.address-input input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e1e5eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: #f8f9fa;
}

.address-input input:focus {
    outline: none;
    border-color: #140061;
    background: white;
}

.address-input button {
    padding: 15px 30px;
    background: #140061;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    min-width: 120px;
}

.address-input button:hover {
    background: #1a0080;
}

.contact {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #e1e5eb;
}

.contact a {
    color: #140061;
    text-decoration: none;
    font-weight: 500;
}

.contact a:hover {
    color: #1a0080;
    text-decoration: underline;
}

.results-section {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.network-map {
    padding: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.network-map img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 800px;
    object-fit: contain;
}

.command-output {
    padding: 20px;
}

.command-output pre {
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 600px;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    .tool-section {
        padding: 20px;
    }
    .tool-options {
        gap: 10px;
    }
    .tool-option {
        padding: 8px 15px;
    }
    .address-input {
        flex-direction: column;
    }
    .address-input input,
    .address-input button {
        width: 100%;
    }
    .logo {
        height: 50px;
    }
    .command-output pre {
        font-size: 13px;
        padding: 15px;
    }
    .network-map {
        min-height: 200px;
        padding: 15px;
    }
    .network-map img {
        max-height: 600px;
    }
}

@media (max-width: 480px) {
    .tool-option span {
        font-size: 14px;
    }
    .address-input input {
        font-size: 14px;
        padding: 12px 15px;
    }
    .address-input button {
        padding: 12px 20px;
        font-size: 14px;
    }
    .network-map img {
        max-height: 400px;
    }
}

@media (max-width: 400px) {
    .tool-option {
        width: 40%;
    }
}

