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

:root {
    --color-primary: #21a0ff;
    --color-secondary: #477cf5;
    --color-text: #283142;
    --color-bg: #f0f5ff;
    --color-white: #ffffff;
    --color-light-accent: #9ab9fa;
    --color-input-shadow: rgba(40, 49, 66, 0.15);
    --gradient-primary: linear-gradient(269deg, #21A0FF 13%, #477CF5 87%);
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: "Lexend", sans-serif;
    font-weight: 400;
    background: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    background: var(--color-white);
    border-radius: 1.25rem;
    box-shadow: 0 8px 32px rgba(40, 49, 66, 0.10), 0 1.5px 4px rgba(40, 49, 66, 0.06);
    padding: 2.5rem 3rem;
    width: 100%;
    max-width: 540px;
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.card-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.125;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-header p {
    font-size: 0.875rem;
    color: var(--color-light-accent);
    margin-top: 0.35rem;
    font-weight: 300;
}

.field-group {
    margin-bottom: 1.25rem;
}

.field-group:last-child {
    margin-bottom: 0;
}

.field-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-light-accent);
    margin-bottom: 0.4rem;
}

.field-row {
    display: flex;
    gap: 0;
}

.field-row input {
    flex: 1;
    min-width: 0;
    background: var(--color-bg);
    border: none;
    box-shadow: inset 0 2px 0 0 var(--color-input-shadow);
    font-size: 0.9375rem;
    line-height: 1.5;
    font-family: "Lexend", sans-serif;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem 0 0 0.5rem;
    color: var(--color-text);
    outline: none;
    transition: box-shadow 0.2s;
}

.field-row input:focus {
    box-shadow: inset 0 2px 0 0 var(--color-primary);
}

.field-row .btn-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border: none;
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 0 1rem;
    cursor: pointer;
    color: var(--color-white);
    font-size: 1rem;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.field-row .btn-copy:hover {
    opacity: 0.85;
}

.field-row .btn-copy:active {
    opacity: 0.7;
}

.btn-copy svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-copy .icon-check {
    display: none;
}

.btn-copy.copied .icon-copy {
    display: none;
}

.btn-copy.copied .icon-check {
    display: block;
}

.empty-value {
    color: var(--color-light-accent);
    font-style: italic;
}

.card-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.75rem;
    color: var(--color-light-accent);
    font-weight: 300;
}

.card-footer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 400;
}

.card-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    html, body {
        overflow: auto;
    }

    .card {
        margin: 1.5rem;
        padding: 2rem 1.5rem;
    }
}
