:root {
    --text-primary: #f0f0f5;
    --text-secondary: #9aa0a6;
    --accent-primary: #6544ff;
    --accent-secondary: #3113a8;
    --fill-page-bg: #000000;
    --fill-card: #12141c;
    --fill-soft: rgba(255, 255, 255, 0.03);
    --border-primary: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(255, 255, 255, 0.08);
    --shadow-card: 0 14px 34px rgba(0, 0, 0, 0.45);
    --surface-header: rgba(0, 0, 0, 0.72);
    --content-width: min(95vw, 1440px);
    --header-height: clamp(58px, 6.2vw, 74px);
    --logo-size: clamp(56px, 4vw, 64px);
    --brand-size: clamp(1.15rem, 1.6vw, 1.4rem);
    --success: #26c281;
    --error: #ff6b7a;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--text-primary);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: clamp(14px, 0.95vw, 16px);
    background: var(--fill-page-bg);
}

a {
    color: var(--accent-primary);
    text-decoration: none;
}

a:hover {
    color: #ffffff;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

button,
input,
textarea,
select {
    font: inherit;
}

.app-shell {
    min-height: 100vh;
}

.checker-shell {
    display: flex;
    flex-direction: column;
}

.checker-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    width: 100%;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: var(--surface-header);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.checker-header > * {
    pointer-events: auto;
}

.checker-header-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.brand,
.brand:hover {
    color: inherit;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.brand-logo {
    width: var(--logo-size);
    height: var(--logo-size);
    flex-shrink: 0;
    display: block;
    object-fit: contain;
    background-color: transparent;
    border-radius: 8px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title,
.page-title,
.section-title {
    color: #ffffff;
}

.brand-title {
    font-size: var(--brand-size);
    font-weight: 700;
    letter-spacing: 1px;
}

.brand-subtitle,
.helper-copy,
.checker-status-meta,
.preview-label {
    color: var(--text-secondary);
    line-height: 1.6;
}

.checker-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.checker-status-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffffff;
}

.checker-main {
    flex: 1 1 auto;
    padding: 24px;
    padding-top: calc(var(--header-height) + 24px);
    min-width: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

.page {
    display: grid;
    gap: 18px;
    width: min(100%, 760px);
    margin: 0 auto;
}

.checker-page {
    padding-top: 28px;
    padding-bottom: 32px;
}

.card {
    background: var(--fill-card);
    border: none;
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.checker-hero-card,
.checker-form-card,
.checker-result-card {
    padding: 20px 22px;
}

.eyebrow {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #cfd2db;
}

.page-title {
    margin-bottom: 12px;
    font-size: 1.5em;
    line-height: 1.2;
}

.page-subtitle {
    max-width: 72ch;
    color: #ffffff;
    line-height: 1.6;
}

.checker-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.checker-form-card,
.checker-result-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.checker-form {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

label {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #cfd2db;
}

input {
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid var(--border-primary);
    background: rgba(255, 255, 255, 0.02);
    color: #ffffff;
    padding: 11px 14px;
}

input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: 3px solid rgba(86, 32, 245, 0.28);
    outline-offset: 2px;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--accent-primary);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease;
}

button:hover {
    background: #7558ff;
}

.result-panel {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding: 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.result-label,
.note-title {
    margin: 0;
    color: #ffffff;
    font-weight: 700;
}

.result-value {
    margin: 0;
    min-height: 92px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #d6d8e2;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
    line-height: 1.6;
}

.status-idle {
    border-color: rgba(255, 255, 255, 0.06);
}

.status-success {
    border-color: rgba(38, 194, 129, 0.38);
    box-shadow: inset 0 0 0 1px rgba(38, 194, 129, 0.12);
}

.status-success .result-label {
    color: var(--success);
}

.status-error {
    border-color: rgba(255, 107, 122, 0.34);
    box-shadow: inset 0 0 0 1px rgba(255, 107, 122, 0.12);
}

.status-error .result-label {
    color: var(--error);
}

.checker-notes {
    margin-top: 18px;
}

@media (max-width: 920px) {
    .checker-layout {
        grid-template-columns: 1fr;
    }

    .checker-header-inner {
        align-items: center;
    }

    .checker-main {
        padding: 20px;
        padding-top: calc(var(--header-height) + 20px);
    }
}

@media (max-width: 640px) {
    .checker-header,
    .checker-main {
        padding: 16px;
    }

    .checker-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .checker-status {
        align-items: flex-start;
    }

    .checker-hero-card,
    .checker-form-card,
    .checker-result-card {
        padding: 18px;
    }
}