* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Tahoma, "Segoe UI", sans-serif;
    background: #f3f2f1;
    color: #242424;
    direction: rtl;
}

.cms-install {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.cms-install-card {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e1dfdd;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.cms-install-card h1 {
    margin: 0 0 6px;
    font-size: 24px;
}

.cms-install-sub {
    margin: 0 0 20px;
    color: #605e5c;
    font-size: 14px;
}

.cms-install-steps {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 13px;
}

.cms-install-steps span {
    padding: 6px 12px;
    border-radius: 99px;
    background: #f3f2f1;
    color: #605e5c;
}

.cms-install-steps span.active {
    background: #0078d4;
    color: #fff;
}

.cms-install-diag {
    text-align: right;
    font-size: 13px;
    line-height: 1.7;
    max-height: 420px;
    overflow-y: auto;
}

.cms-install-diag p {
    margin: 0 0 8px;
}

.cms-install-diag-block {
    margin: 12px 0;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    border: 1px solid #e1dfdd;
}

.cms-install-diag ul {
    margin: 6px 0 0;
    padding-right: 20px;
}

.cms-install-diag-fix {
    margin-top: 8px !important;
}

.cms-install-diag-foot {
    margin-top: 12px !important;
    font-size: 12px;
    color: #605e5c;
}

.cms-install-diag code {
    font-size: 12px;
    background: #f3f2f1;
    padding: 2px 6px;
    border-radius: 4px;
}

.cms-install-mismatch {
    margin-bottom: 14px;
    padding: 12px 14px;
    background: #fde8e8;
    border: 1px solid #f5c2c2;
    border-radius: 8px;
    color: #9b1c1c;
}

.cms-install-mismatch ul {
    margin: 8px 0 0;
    padding-right: 20px;
}

.cms-install-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.cms-install-btn-secondary {
    display: inline-block;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #0078d4;
    color: #0078d4;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.cms-install-btn-secondary:hover {
    background: #e7f5ff;
}

label {
    display: block;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 600;
}

input {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid #c8c6c4;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

button {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #0078d4;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

button:hover {
    background: #005a9e;
}

.cms-install-alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.cms-install-alert.error {
    background: #ffebee;
    color: #b71c1c;
}

.cms-install-alert.notice {
    background: #fff8e1;
    color: #5d4037;
}

.cms-install-manual textarea {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #c8c6c4;
    border-radius: 8px;
    font-family: Consolas, monospace;
    font-size: 12px;
    line-height: 1.5;
}

.cms-install-steps-list {
    margin: 0 0 12px;
    padding-right: 20px;
    font-size: 14px;
    line-height: 1.8;
}

.cms-install-steps-list code {
    background: #f3f2f1;
    padding: 2px 6px;
    border-radius: 4px;
}

.cms-install-hint {
    font-size: 13px;
    color: #605e5c;
    line-height: 1.6;
    margin: 0 0 8px;
}
