:root {
    --background: oklch(0.985 0.006 115);
    --foreground: oklch(0.16 0.014 248);
    --card: oklch(1 0 0);
    --card-foreground: oklch(0.16 0.014 248);
    --popover: oklch(1 0 0);
    --popover-foreground: oklch(0.16 0.014 248);
    --primary: oklch(0.46 0.13 165);
    --primary-foreground: oklch(0.99 0 0);
    --secondary: oklch(0.95 0.018 245);
    --secondary-foreground: oklch(0.22 0.03 248);
    --muted: oklch(0.94 0.011 248);
    --muted-foreground: oklch(0.47 0.018 248);
    --accent: oklch(0.88 0.07 82);
    --accent-foreground: oklch(0.22 0.03 248);
    --destructive: oklch(0.58 0.21 25);
    --destructive-foreground: oklch(1 0 0);
    --border: oklch(0.88 0.014 248);
    --input: oklch(0.9 0.014 248);
    --ring: oklch(0.62 0.12 165);
    --radius: 0.625rem;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--background);
    color: var(--foreground);
}

a {
    color: inherit;
}

button, input, textarea {
    font: inherit;
}

.app-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(70, 166, 137, 0.18), transparent 34rem),
        linear-gradient(180deg, rgba(255,255,255,0.74), rgba(244,245,240,0.92));
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 750;
    letter-spacing: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--foreground);
    color: white;
}

.price-pill {
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255,255,255,0.7);
    padding: 8px 12px;
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

.header-link {
    color: var(--muted-foreground);
    font-size: 0.94rem;
    font-weight: 750;
    text-decoration: none;
}

.header-link:hover {
    color: var(--foreground);
}

.hero-band {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
    gap: 40px;
    align-items: start;
    max-width: 1180px;
    margin: 0 auto;
    padding: 46px 24px 34px;
}

.hero-copy {
    position: sticky;
    top: 24px;
    padding-top: 22px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

h1 {
    max-width: 680px;
    margin-bottom: 18px;
    font-size: clamp(2.7rem, 6vw, 5.8rem);
    line-height: 0.96;
    letter-spacing: 0;
}

.hero-text {
    max-width: 620px;
    color: var(--muted-foreground);
    font-size: 1.14rem;
    line-height: 1.7;
}

.brief-panel, .status-band, .results-band {
    border: 1px solid rgba(31, 42, 55, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 24px 80px rgba(25, 37, 55, 0.09);
}

.brief-panel {
    display: grid;
    gap: 18px;
    padding: 24px;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.panel-heading h2,
.results-heading h2,
.status-band h2 {
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.panel-heading p,
.status-band p {
    margin-bottom: 0;
    color: var(--muted-foreground);
}

label {
    display: grid;
    gap: 8px;
    color: var(--foreground);
    font-weight: 700;
}

label > span {
    font-size: 0.92rem;
}

input, textarea {
    width: 100%;
    border: 1px solid var(--input);
    border-radius: 8px;
    background: rgba(255,255,255,0.88);
    padding: 13px 14px;
    color: var(--foreground);
    outline: none;
}

textarea {
    resize: vertical;
}

input:focus, textarea:focus {
    border-color: var(--ring);
    box-shadow: 0 0 0 4px rgba(52, 156, 127, 0.13);
}

.validation-message, .alert-line {
    color: #b42318;
    font-size: 0.9rem;
    font-weight: 650;
}

.alert-line, .notice-line {
    border: 1px solid rgba(180,35,24,0.22);
    border-radius: 8px;
    background: rgba(180,35,24,0.06);
    padding: 12px;
}

.notice-line {
    border-color: rgba(52, 156, 127, 0.28);
    background: rgba(52, 156, 127, 0.08);
    color: var(--foreground);
    font-size: 0.9rem;
    font-weight: 650;
}

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.primary-action, .secondary-action {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0 18px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
}

.primary-action {
    background: var(--foreground);
    color: white;
}

.primary-action:hover {
    background: #223044;
}

.primary-action:disabled {
    cursor: wait;
    opacity: 0.7;
}

.primary-action.compact {
    min-height: 40px;
}

.secondary-action {
    min-height: 40px;
    border-color: var(--border);
    background: white;
    color: var(--foreground);
}

.status-band, .results-band {
    max-width: 1180px;
    margin: 22px auto;
    padding: 24px;
}

.masked-name {
    display: inline-block;
    filter: blur(5px);
    user-select: none;
}

.progress-track {
    height: 10px;
    margin: 18px 0 12px;
    border-radius: 999px;
    background: var(--muted);
    overflow: hidden;
}

.progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
    transition: width 180ms ease;
}

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

.result-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.payment-action {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-action span {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    font-weight: 650;
    white-space: nowrap;
}

.suggestion-list {
    display: grid;
    gap: 12px;
}

.suggestion-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
    gap: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    padding: 18px;
}

.suggestion-main {
    display: flex;
    gap: 14px;
    min-width: 0;
}

.rank {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--secondary);
    color: var(--secondary-foreground);
    font-weight: 850;
}

.suggestion-card h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.suggestion-card p {
    margin-bottom: 0;
    color: var(--muted-foreground);
    line-height: 1.5;
}

.domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 8px;
    align-content: start;
}

.domain-chip {
    display: grid;
    min-height: 66px;
    gap: 4px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    text-decoration: none;
}

.domain-chip span {
    overflow-wrap: anywhere;
    font-size: 0.88rem;
    color: var(--muted-foreground);
}

.domain-chip strong {
    font-size: 0.85rem;
}

.domain-chip.is-available {
    border-color: rgba(52, 156, 127, 0.34);
    background: rgba(52, 156, 127, 0.08);
}

.domain-chip.is-unavailable {
    background: var(--muted);
    opacity: 0.66;
}

.domain-chip.is-premium {
    border-color: rgba(218, 151, 50, 0.35);
    background: rgba(218, 151, 50, 0.1);
}

.domain-chip.is-unknown {
    border-style: dashed;
}

.locked-card {
    color: var(--muted-foreground);
}

.blurred-placeholder {
    display: inline-block;
    filter: blur(5px);
    user-select: none;
}

.blurred-placeholder.wide {
    max-width: 100%;
}

.locked-domain {
    pointer-events: none;
    border-style: dashed;
    background: rgba(245, 246, 242, 0.85);
}

.locked-domain strong {
    filter: blur(4px);
    user-select: none;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

@media (max-width: 900px) {
    .hero-band {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 20px;
    }

    .hero-copy {
        position: static;
    }

    .suggestion-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .app-header {
        padding: 18px 16px;
    }

    .hero-band,
    .status-band,
    .results-band {
        padding-left: 16px;
        padding-right: 16px;
    }

    .field-grid,
    .domain-grid {
        grid-template-columns: 1fr;
    }

    .results-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .result-actions {
        justify-content: stretch;
    }

    .result-actions > * {
        flex: 1;
    }
}

.blog-shell {
    min-height: 100vh;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(244,245,240,0.94));
}

.blog-header {
    border-bottom: 1px solid rgba(31, 42, 55, 0.08);
}

.blog-index-hero,
.blog-list,
.blog-article {
    max-width: 940px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.blog-index-hero {
    padding-top: 58px;
    padding-bottom: 28px;
}

.blog-index-hero h1,
.blog-article h1 {
    max-width: 820px;
    font-size: clamp(2.3rem, 5vw, 4.4rem);
    line-height: 1;
}

.blog-index-hero p,
.article-description {
    max-width: 720px;
    color: var(--muted-foreground);
    font-size: 1.1rem;
    line-height: 1.7;
}

.blog-list {
    display: grid;
    gap: 14px;
    padding-bottom: 72px;
}

.blog-card {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 22px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    padding: 18px;
}

.blog-card-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px;
    background: var(--muted);
}

.blog-card-image img,
.article-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
    color: var(--muted-foreground);
    font-size: 0.84rem;
    font-weight: 700;
}

.blog-meta span {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px 8px;
}

.blog-card h2 {
    margin-bottom: 8px;
    font-size: 1.45rem;
}

.blog-card h2 a {
    text-decoration: none;
}

.blog-card p {
    margin-bottom: 0;
    color: var(--muted-foreground);
    line-height: 1.6;
}

.blog-article {
    padding-top: 46px;
    padding-bottom: 88px;
}

.back-link {
    display: inline-flex;
    margin-bottom: 24px;
    color: var(--muted-foreground);
    font-weight: 750;
    text-decoration: none;
}

.article-hero-image {
    max-height: 460px;
    margin: 22px 0 28px;
    border-radius: 8px;
}

.article-content {
    max-width: 760px;
    color: var(--foreground);
    font-size: 1.05rem;
    line-height: 1.78;
}

.article-content h2,
.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    line-height: 1.18;
}

.article-content p,
.article-content ul,
.article-content ol {
    margin-bottom: 1.1rem;
}

.article-content img {
    max-width: 100%;
    border-radius: 8px;
}

@media (max-width: 720px) {
    .blog-card {
        grid-template-columns: 1fr;
    }
}
