* {
    box-sizing: border-box;
}

:root {
    --page-bg: #f3f8f6;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --border: #dfe7e4;
    --border-soft: #e9efed;
    --text: #14201c;
    --muted: #67756f;
    --muted-soft: #8a9791;
    --primary: #0eaa63;
    --primary-dark: #0b8f53;
    --primary-soft: #e8f8f0;
    --danger: #b42318;
    --danger-soft: #fef3f2;
    --shadow: 0 22px 60px rgba(28, 70, 52, 0.09);
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(
            circle at 12% 8%,
            rgba(14, 170, 99, 0.08),
            transparent 28%
        ),
        radial-gradient(
            circle at 88% 94%,
            rgba(67, 133, 255, 0.07),
            transparent 30%
        ),
        var(--page-bg);
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
}

[hidden] {
    display: none !important;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 42px 18px;
}

.checker-card {
    width: 100%;
    max-width: 760px;
    padding: 34px;
    border: 1px solid rgba(223, 231, 228, 0.95);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.checker-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 30px;
}

.brand-mark {
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: var(--primary);
    border: 1px solid #cceedd;
    border-radius: 17px;
    background: var(--primary-soft);
}

.header-content {
    min-width: 0;
}

.eyebrow,
.result-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.page-title {
    margin: 0;
    color: #0f1f18;
    font-size: clamp(25px, 4vw, 31px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.page-description {
    max-width: 580px;
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.balance-form {
    margin-top: 6px;
}

.field-group {
    margin-bottom: 17px;
}

.field-label {
    display: block;
    margin-bottom: 9px;
    color: #34423c;
    font-size: 13px;
    font-weight: 750;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    color: #83918b;
    transform: translateY(-50%);
    pointer-events: none;
}

.field-input {
    width: 100%;
    height: 54px;
    padding: 0 16px 0 47px;
    color: var(--text);
    border: 1px solid #cfd9d5;
    border-radius: 13px;
    outline: none;
    background: #ffffff;
    font-size: 15px;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.field-input::placeholder {
    color: #9aa6a1;
}

.field-input:hover {
    border-color: #aebcb6;
}

.field-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 170, 99, 0.11);
}

.field-note {
    margin: 8px 0 0;
    color: var(--muted-soft);
    font-size: 12px;
    line-height: 1.55;
}

.submit-button {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    border-radius: 13px;
    background: linear-gradient(135deg, #11b96c, #0b9b59);
    box-shadow: 0 12px 26px rgba(14, 170, 99, 0.2);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease;
}

.submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 30px rgba(14, 170, 99, 0.25);
    filter: brightness(0.99);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    opacity: 0.72;
    cursor: wait;
    transform: none;
}

.button-loader {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

.alert {
    margin-top: 18px;
    padding: 13px 15px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.6;
}

.alert-success {
    color: #087346;
    border: 1px solid #bfe9d3;
    background: #edfbf4;
}

.alert-error {
    color: var(--danger);
    border: 1px solid #f4c7c3;
    background: var(--danger-soft);
}

.result-card {
    margin-top: 22px;
    padding: 22px 20px 10px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: var(--surface-soft);
}

.result-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 12px;
}

.result-title {
    margin: 0;
    color: #102219;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 5px 11px;
    color: #087346;
    border: 1px solid #cceedd;
    border-radius: 999px;
    background: var(--primary-soft);
    font-size: 11px;
    font-weight: 800;
}

.result-grid {
    width: 100%;
}

.result-row,
.more-data-row {
    min-height: 43px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 10px 0;
    border-bottom: 1px dashed #d2dcd8;
}

.result-row:last-child,
.more-data-row:last-child {
    border-bottom: 0;
}

.result-label,
.more-data-label {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.result-value,
.more-data-value {
    min-width: 0;
    color: #14201c;
    font-size: 14px;
    font-weight: 800;
    text-align: right;
    overflow-wrap: anywhere;
}

.balance-row {
    padding-top: 13px;
    padding-bottom: 13px;
}

.balance-value {
    color: var(--primary);
    font-size: 26px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.checked-badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 10px;
    color: #087346;
    border-radius: 999px;
    background: #def7e9;
    font-size: 11px;
    font-weight: 800;
    text-align: right;
}

.more-data-card {
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 16px;
    background: transparent;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.more-data-card[open] {
    border-color: var(--border);
    background: var(--surface-soft);
    box-shadow: 0 8px 22px rgba(21, 54, 40, 0.04);
}

.more-data-summary {
    min-height: 52px;
    padding: 0 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: #17251f;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.more-data-summary::-webkit-details-marker {
    display: none;
}

.summary-left {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 800;
}

.summary-icon {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    color: var(--primary-dark);
    border-radius: 8px;
    background: var(--primary-soft);
    transition: transform 0.2s ease;
}

.more-data-card[open] .summary-icon {
    transform: rotate(90deg);
}

.summary-hint {
    color: var(--muted-soft);
    font-size: 11px;
    font-weight: 700;
}

.more-data-card[open] .summary-hint {
    font-size: 0;
}

.more-data-card[open] .summary-hint::after {
    content: "Hide details";
    font-size: 11px;
}

.more-data-list {
    padding: 0 18px 12px;
}

.page-footer {
    margin-top: 20px;
    color: var(--muted-soft);
    font-size: 11px;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .page-shell {
        padding: 16px 10px;
    }

    .checker-card {
        padding: 22px 16px;
        border-radius: 18px;
    }

    .checker-header {
        gap: 12px;
        margin-bottom: 25px;
    }

    .brand-mark {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .page-description {
        font-size: 13px;
    }

    .result-card {
        padding: 18px 16px 8px;
    }

    .result-heading {
        flex-direction: column;
        gap: 10px;
    }

    .result-row,
    .more-data-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .result-value,
    .more-data-value,
    .checked-badge {
        text-align: left;
    }

    .summary-hint {
        display: none;
    }

    .more-data-list {
        padding: 0 14px 12px;
    }
}

