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

:root {
    --ink: #10151e;
    --muted: #5b6575;
    --line: rgba(16, 21, 30, 0.12);
    --panel: rgba(255, 255, 255, 0.92);
    --accent: #0f6e56;
    --accent-soft: rgba(15, 110, 86, 0.12);
    --danger: #b42318;
    --danger-soft: rgba(180, 35, 24, 0.1);
    --radius: 20px;
    --font-display: "Space Grotesk", sans-serif;
    --font-body: "Outfit", sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: #1d242d;
    line-height: 1.45;
}

.gst-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 50% at 15% 10%, rgba(15, 110, 86, 0.28), transparent 55%),
        radial-gradient(ellipse 55% 45% at 90% 85%, rgba(40, 70, 120, 0.25), transparent 50%),
        linear-gradient(160deg, #1a222c 0%, #2a3340 55%, #1d262f 100%);
}

.gst-shell {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100% - 1.5rem));
    margin: 0 auto;
    padding: clamp(1.25rem, 3vh, 2rem) 0 clamp(2rem, 5vh, 3rem);
}

.gst-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.gst-brand {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.gst-brand__kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.gst-brand__title {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3vw, 1.7rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.gst-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: background 0.2s ease;
}

.gst-back:hover {
    background: rgba(255, 255, 255, 0.18);
}

.gst-panel {
    background: var(--panel);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    padding: clamp(1.15rem, 3vw, 1.6rem);
    animation: gst-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gst-panel__lead {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 1.1rem;
}

.gst-form {
    display: grid;
    gap: 0.75rem;
}

.gst-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--ink);
}

.gst-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.65rem;
}

.gst-input {
    width: 100%;
    min-width: 0;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gst-input:focus {
    border-color: rgba(15, 110, 86, 0.55);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.gst-btn {
    appearance: none;
    border: 0;
    border-radius: 14px;
    padding: 0.9rem 1.25rem;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.gst-btn:hover:not(:disabled) {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.gst-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.gst-hint {
    font-size: 0.8rem;
    color: var(--muted);
}

.gst-status {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
}

.gst-status[hidden] {
    display: none;
}

.gst-status--error {
    background: var(--danger-soft);
    color: var(--danger);
}

.gst-status--loading {
    background: var(--accent-soft);
    color: var(--accent);
}

.gst-result {
    margin-top: 1.15rem;
    border-top: 1px solid var(--line);
    padding-top: 1.15rem;
    animation: gst-rise 0.35s ease both;
}

.gst-result[hidden] {
    display: none;
}

.gst-result__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.gst-result__name {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.8vw, 1.45rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.gst-result__trade {
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.gst-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--accent-soft);
    color: var(--accent);
}

.gst-badge--muted {
    background: rgba(16, 21, 30, 0.08);
    color: var(--muted);
}

.gst-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.gst-field {
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    background: rgba(16, 21, 30, 0.035);
    border: 1px solid rgba(16, 21, 30, 0.06);
}

.gst-field--wide {
    grid-column: 1 / -1;
}

.gst-field__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.3rem;
}

.gst-field__value {
    font-size: 0.95rem;
    font-weight: 600;
    word-break: break-word;
}

@keyframes gst-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 640px) {
    .gst-row {
        grid-template-columns: 1fr;
    }

    .gst-grid {
        grid-template-columns: 1fr;
    }

    .gst-btn {
        width: 100%;
    }
}
