* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0c1445 0%, #1a237e 100%);
    min-height: 100vh;
}

.header {
    background: linear-gradient(135deg, #0a0f2a 0%, #0d1b5e 100%);
    color: white;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 35px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text h1 {
    font-size: 20px;
}

.logo-text p {
    font-size: 11px;
    opacity: 0.8;
}

.back-btn {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    background: rgba(255,255,255,0.3);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}

.tool-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.tool-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.tool-icon {
    font-size: 55px;
    margin-bottom: 10px;
}

.tool-header h1 {
    color: #1a237e;
    font-size: 26px;
}

.input-group {
    margin-bottom: 18px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: 0.3s;
}

input:focus, select:focus, textarea:focus {
    border-color: #1a237e;
    outline: none;
}

button {
    width: 100%;
    background: linear-gradient(135deg, #1a237e, #283593);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

button:hover {
    transform: scale(1.02);
    background: linear-gradient(135deg, #283593, #1a237e);
}

.result-box {
    margin-top: 25px;
    padding: 20px;
    background: #e8eaf6;
    border-radius: 12px;
    text-align: center;
    display: none;
}

.result-box.show {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-amount {
    font-size: 32px;
    font-weight: bold;
    color: #1a237e;
}

.explanation {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #ddd;
    line-height: 1.7;
    color: #444;
}

.explanation h3 {
    color: #1a237e;
    margin-bottom: 12px;
}

.footer {
    background: #0a0f2a;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .tool-card {
        padding: 20px;
    }
    
    .tool-header h1 {
        font-size: 22px;
    }
    
    .container {
        padding: 20px 15px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
}