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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, rgba(24, 157, 163, 0.85) 0%, rgba(24, 157, 163, 0.95) 100%);
    min-height: 100vh;
    padding: 20px;
    color: #4f4f4f;
    font-weight: 300;
}

.container {
    max-width: 700px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.logo {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 300;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card h2 {
    margin-bottom: 20px;
    color: #189DA3;
    font-weight: 600;
}

.card h3 {
    margin-bottom: 15px;
    color: #189DA3;
    font-weight: 600;
}

.faucet-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

.label {
    font-weight: 500;
    color: #666;
}

.value {
    color: #189DA3;
    font-weight: 500;
}

.contract-address {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    outline: none;
    border-color: #189DA3;
}

input[type="text"]:invalid:not(:placeholder-shown) {
    border-color: #f44336;
}

small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85rem;
    font-weight: 300;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: #189DA3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-primary:hover:not(:disabled) {
    background: #157981;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 157, 163, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 400;
}

.result.hidden {
    display: none;
}

.result.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #81c784;
}

.result.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}

.result a {
    color: inherit;
    text-decoration: underline;
    font-weight: 500;
}

.countdown {
    margin-top: 15px;
    padding: 12px;
    background: #fff3e0;
    border: 1px solid #ffb74d;
    border-radius: 8px;
    color: #e65100;
    font-weight: 400;
    text-align: center;
}

.countdown.hidden {
    display: none;
}

.info-card ul {
    list-style: none;
    padding-left: 0;
}

.info-card li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-weight: 300;
}

.info-card li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #189DA3;
    font-weight: bold;
}

.info-card a {
    color: #189DA3;
    text-decoration: none;
    font-weight: 400;
}

.info-card a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    color: white;
    margin-top: 30px;
    opacity: 0.95;
    font-weight: 300;
}

footer a {
    color: white;
    text-decoration: none;
    font-weight: 400;
}

footer a:hover {
    text-decoration: underline;
}

.network-instruction {
    margin-bottom: 15px;
    color: #666;
    font-weight: 300;
    font-size: 0.95rem;
}

.networks-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.network-card {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.network-card:hover {
    border-color: #189DA3;
    box-shadow: 0 2px 8px rgba(24, 157, 163, 0.2);
}

.network-card.selected {
    border-color: #189DA3;
    background: #e6f7f8;
    box-shadow: 0 2px 8px rgba(24, 157, 163, 0.3);
}

.network-card h4 {
    margin: 0 0 12px 0;
    color: #189DA3;
    font-weight: 600;
    font-size: 1.1rem;
}

.network-info-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
}

.network-info-row .label {
    font-weight: 500;
    color: #666;
}

.network-info-row .value {
    color: #189DA3;
    font-weight: 500;
}

.network-error {
    margin-top: 10px;
    padding: 8px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    font-size: 0.85rem;
    font-weight: 400;
}

.network-warning {
    margin-top: 10px;
    padding: 8px;
    background: #fff3e0;
    border: 1px solid #ff9800;
    border-radius: 4px;
    color: #e65100;
    font-size: 0.85rem;
    font-weight: 400;
}

.low-balance {
    color: #dc3545 !important;
    font-weight: 600 !important;
}

@media (max-width: 600px) {
    .logo {
        width: 80px;
        height: 80px;
    }

    header h1 {
        font-size: 2rem;
    }

    .card {
        padding: 20px;
    }

    .info-row {
        flex-direction: column;
        gap: 5px;
    }
}
