:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-light: #dbeafe;
    --color-success: #16a34a;
    --color-success-light: #dcfce7;
    --color-danger: #dc2626;
    --color-danger-light: #fef2f2;
    --color-warning: #f59e0b;
    --color-warning-light: #fffbeb;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    --color-white: #ffffff;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--color-gray-100);
    color: var(--color-gray-800);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.install-wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px;
}

 
.install-header {
    text-align: center;
    margin-bottom: 32px;
}

.install-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 4px;
}

.install-header h1 span {
    color: var(--color-primary);
}

.install-header .version {
    font-size: 13px;
    color: var(--color-gray-400);
    font-weight: 500;
}

 
.steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 32px;
    padding: 0 10px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 0;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid var(--color-gray-300);
    background: var(--color-white);
    color: var(--color-gray-400);
    transition: all var(--transition);
    flex-shrink: 0;
}

.step-item.active .step-circle {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 0 0 4px var(--color-primary-light);
}

.step-item.completed .step-circle {
    border-color: var(--color-success);
    background: var(--color-success);
    color: var(--color-white);
}

.step-line {
    width: 40px;
    height: 2px;
    background: var(--color-gray-300);
    flex-shrink: 0;
}

.step-item.completed + .step-item .step-line,
.step-item.completed .step-line {
    background: var(--color-success);
}

.step-label {
    display: none;
}

@media (min-width: 640px) {
    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }

    .step-line {
        width: 56px;
    }
}

 
.install-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.card-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--color-gray-200);
}

.card-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 4px;
}

.card-header p {
    font-size: 14px;
    color: var(--color-gray-500);
    margin: 0;
}

.card-body {
    padding: 32px;
}

.card-footer {
    padding: 20px 32px;
    border-top: 1px solid var(--color-gray-200);
    background: var(--color-gray-50);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

 
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    gap: 8px;
    line-height: 1.4;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-gray-700);
    border-color: var(--color-gray-300);
}

.btn-secondary:hover {
    background: var(--color-gray-50);
    border-color: var(--color-gray-400);
}

.btn-success {
    background: var(--color-success);
    color: var(--color-white);
    border-color: var(--color-success);
}

.btn-success:hover {
    background: #15803d;
    border-color: #15803d;
}

.btn-lg {
    padding: 12px 32px;
    font-size: 16px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

 
.form-group {
    margin-bottom: 20px;
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gray-700);
    margin-bottom: 6px;
}

.form-label .required {
    color: var(--color-danger);
}

.form-hint {
    font-size: 13px;
    color: var(--color-gray-400);
    margin-top: 4px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-gray-800);
    background: var(--color-white);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius);
    transition: all var(--transition);
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-input::placeholder {
    color: var(--color-gray-400);
}

.form-checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.form-checkbox-group label {
    font-size: 14px;
    color: var(--color-gray-700);
    cursor: pointer;
}

 
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.alert-error {
    background: var(--color-danger-light);
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-success {
    background: var(--color-success-light);
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-warning {
    background: var(--color-warning-light);
    border: 1px solid #fde68a;
    color: #92400e;
}

 
.req-table {
    width: 100%;
    border-collapse: collapse;
}

.req-table tr {
    border-bottom: 1px solid var(--color-gray-200);
}

.req-table tr:last-child {
    border-bottom: none;
}

.req-table td {
    padding: 12px 0;
    font-size: 14px;
}

.req-table td:first-child {
    font-weight: 500;
    color: var(--color-gray-700);
}

.req-table td:last-child {
    text-align: right;
    width: 100px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-pass {
    background: var(--color-success-light);
    color: var(--color-success);
}

.badge-fail {
    background: var(--color-danger-light);
    color: var(--color-danger);
}

 
.features-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 12px;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--color-gray-700);
    line-height: 1.5;
}

.features-list .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

 
.complete-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-success-light);
    color: var(--color-success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 24px;
}

.complete-message {
    text-align: center;
    margin-bottom: 32px;
}

.complete-message h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 8px;
}

.complete-message p {
    font-size: 15px;
    color: var(--color-gray-500);
    max-width: 400px;
    margin: 0 auto;
}

.complete-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

 
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 540px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

 
@media (max-width: 639px) {
    .install-wrapper {
        padding: 20px 16px;
    }

    .card-header,
    .card-body,
    .card-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .card-footer {
        flex-direction: column;
    }

    .card-footer .btn {
        width: 100%;
    }

    .install-header h1 {
        font-size: 22px;
    }

    .step-line {
        width: 20px;
    }

    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}
