    *,
    *::before,
    *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    :root {
        --primary: #3b82f6;
        --primary-dark: #1d4ed8;
        --success: #16a34a;
        --success-bg: #f0fdf4;
        --success-border: #bbf7d0;
        --danger: #dc2626;
        --danger-bg: #fef2f2;
        --danger-border: #fecaca;
        --text: #111827;
        --text-secondary: #6b7280;
        --text-tertiary: #9ca3af;
        --bg: #f9fafb;
        --surface: #ffffff;
        --border: #e5e7eb;
        --border-hover: #d1d5db;
        --radius-sm: 8px;
        --radius-md: 12px;
        --radius-lg: 16px;
    }

    body {
        min-height: 100vh;
        font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        background-color: var(--bg);
        color: var(--text);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem 1rem;
    }

    .wrap {
        width: 100%;
        max-width: 460px;
    }

    .logo {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 2.5rem;
    }

    .logo-mark {
        width: 36px;
        height: 36px;
        border-radius: var(--radius-sm);
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary);
        font-size: 18px;
    }

    .logo-name {
        font-size: 15px;
        font-weight: 600;
        color: var(--text);
    }

    .step-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        font-weight: 600;
        color: var(--primary);
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        border-radius: 999px;
        padding: 4px 12px;
        margin-bottom: 1.2rem;
    }

    h1 {
        font-size: 26px;
        font-weight: 700;
        color: var(--text);
        line-height: 1.2;
        letter-spacing: -0.02em;
        margin-bottom: 0.6rem;
    }

    .sub {
        font-size: 14px;
        color: var(--text-secondary);
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .url-preview {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        padding: 14px 18px;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        font-size: 14px;
        transition: border-color 0.2s;
    }

    .url-preview.active {
        border-color: #93c5fd;
    }

    .url-base {
        color: var(--text-secondary);
    }

    .url-slug {
        color: var(--primary);
        font-weight: 600;
        transition: all 0.15s;
    }

    .field-label {
        display: block;
        font-size: 12px;
        font-weight: 600;
        color: var(--text-secondary);
        letter-spacing: 0.06em;
        text-transform: uppercase;
        margin-bottom: 8px;
    }

    .input-wrap {
        position: relative;
    }

    .input-wrap input {
        width: 100%;
        height: 48px;
        padding: 0 48px 0 16px;
        font-size: 15px;
        font-family: inherit;
        border-radius: var(--radius-md);
        border: 1px solid var(--border);
        background: var(--surface);
        color: var(--text);
        outline: none;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    .input-wrap input:hover {
        border-color: var(--border-hover);
    }

    .input-wrap input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    }

    .input-wrap input.valid {
        border-color: #86efac;
    }

    .input-wrap input.invalid {
        border-color: #fca5a5;
    }

    .input-icon {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 18px;
        opacity: 0;
        transition: opacity 0.2s;
        pointer-events: none;
    }

    .input-icon.show {
        opacity: 1;
    }

    .input-icon.ok {
        color: var(--success);
    }

    .input-icon.err {
        color: var(--danger);
    }

    .row-below {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 6px;
    }

    .hint {
        font-size: 13px;
        color: var(--text-tertiary);
        line-height: 1.5;
    }

    .char-count {
        font-size: 12px;
        color: var(--text-tertiary);
        white-space: nowrap;
        transition: color 0.2s;
    }

    .char-count.warn {
        color: #f59e0b;
    }

    .status-box {
        margin-top: 12px;
        padding: 10px 14px;
        border-radius: var(--radius-sm);
        font-size: 13px;
        font-weight: 500;
        display: none;
        align-items: center;
        gap: 8px;
    }

    .status-box.err {
        display: flex;
        background: var(--danger-bg);
        color: var(--danger);
        border: 1px solid var(--danger-border);
    }

    .status-box.ok {
        display: flex;
        background: var(--success-bg);
        color: var(--success);
        border: 1px solid var(--success-border);
    }

    .btn {
        width: 100%;
        height: 48px;
        margin-top: 1.5rem;
        border: none;
        border-radius: var(--radius-md);
        background: var(--primary);
        color: #fff;
        font-size: 15px;
        font-weight: 600;
        font-family: inherit;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        position: relative;
        overflow: hidden;
        transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    }

    .btn:hover {
        background: var(--primary-dark);
        transform: translateY(-1px);
        box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
    }

    .btn:active {
        transform: scale(0.99);
    }

    .btn:disabled {
        opacity: 0.6;
        cursor: wait;
        transform: none;
        box-shadow: none;
    }

    .btn .ripple {
        position: absolute;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.28);
        transform: scale(0);
        animation: ripple 0.55s linear;
        pointer-events: none;
    }

    @keyframes ripple {
        to {
            transform: scale(4);
            opacity: 0;
        }
    }

    .dots span {
        display: inline-block;
        animation: bounce 1.2s infinite;
    }

    .dots span:nth-child(2) {
        animation-delay: 0.2s;
    }

    .dots span:nth-child(3) {
        animation-delay: 0.4s;
    }

    @keyframes bounce {

        0%,
        60%,
        100% {
            transform: translateY(0);
        }

        30% {
            transform: translateY(-4px);
        }
    }

    .divider {
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 1.5rem 0 1rem;
        color: var(--text-tertiary);
        font-size: 12px;
    }

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border);
    }

    .back-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        font-size: 14px;
        color: var(--text-secondary);
        text-decoration: none;
        transition: color 0.15s;
    }

    .back-link:hover {
        color: var(--text);
    }

    @media (max-width: 500px) {
        body {
            padding: 1.5rem 1rem;
            align-items: flex-start;
        }
    }