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


:root {
    --site-shell-max-width: 1100px;
    --site-page-gutter: clamp(12px, 2.4vw, 22px);
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #6631e1 0%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--site-page-gutter);
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 36px;
    max-width: var(--site-shell-max-width);
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #718096;
    margin-bottom: 26px;
    font-size: 16px;
    line-height: 1.6;
}

.privacy-notice {
    background: linear-gradient(135deg, #e6f7ff 0%, #f0e6ff 100%);
    border: 2px solid #667eea;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.privacy-icon {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4c51bf;
    background: rgba(102, 126, 234, 0.12);
    border-radius: 999px;
    padding: 6px 10px;
    flex-shrink: 0;
    margin-top: 2px;
}

.privacy-content strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 6px;
}

.privacy-content p {
    font-size: 14px;
    color: #2d3748;
    line-height: 1.6;
}

.tool-section {
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    padding: 16px;
    margin-bottom: 16px;
}

.tool-section h2 {
    font-size: 18px;
    color: #2f3b6e;
    margin-bottom: 12px;
}

.form-grid {
    display: grid;
    gap: 12px;
}

.conversion-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.difference-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-wide {
    grid-column: span 2;
}

label {
    font-size: 13px;
    font-weight: 700;
    color: #4a5568;
}

input,
select {
    width: 100%;
    border: 1px solid #cbd5e0;
    border-radius: 10px;
    padding: 10px 12px;
    min-height: 44px;
    font-size: 15px;
    color: #2d3748;
    background: #ffffff;
}

input:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.14);
}

.helper-text {
    margin-top: 10px;
    font-size: 12px;
    color: #5f6f92;
}

.status {
    margin-top: 8px;
    min-height: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #5f6f92;
}

.actions {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.centered-actions {
    justify-content: center;
}

.action-btn {
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    min-height: 42px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.44);
}

.secondary-btn {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    box-shadow: 0 4px 12px rgba(45, 55, 72, 0.28);
}

.secondary-btn:hover {
    box-shadow: 0 6px 16px rgba(45, 55, 72, 0.38);
}

.result-card {
    margin-top: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    background: linear-gradient(135deg, #f7f9ff 0%, #edf2ff 100%);
    padding: 14px;
}

.result-card h3 {
    font-size: 15px;
    color: #3b4d7a;
    margin-bottom: 8px;
}

.result-value {
    font-size: 28px;
    font-weight: 700;
    color: #2c3d96;
    margin-bottom: 8px;
    word-break: break-word;
}

.result-details {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.5;
}

.footer-links {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 2px solid #e2e8f0;
    text-align: center;
}

.footer-links a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 0 10px;
    transition: color 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.back-btn {
    display: inline-block;
    padding: 10px 18px;
    margin-right: 6px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    border-radius: 10px;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.back-btn:hover {
    text-decoration: none !important;
}

.sr-only {
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    white-space: nowrap !important;
    width: 1px !important;
}

@media (max-width: 900px) {
    .container {
        padding: 26px 18px;
    }

    .conversion-grid,
    .difference-grid {
        grid-template-columns: 1fr;
    }

    .field-wide {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    body {
        align-items: flex-start;
        padding: 14px;
    }

    h1 {
        font-size: 27px;
    }

    .subtitle {
        font-size: 15px;
    }

    .actions {
        justify-content: stretch;
    }

    .action-btn {
        flex: 1 1 150px;
        min-height: 44px;
    }

    .result-value {
        font-size: 24px;
    }
}

