/* CentraMEDKIT Installation Wizard — Refined Blue */

:root {
    --brand-50: #eff6ff;
    --brand-100: #dbeafe;
    --brand-200: #bfdbfe;
    --brand-600: #2563eb;
    --brand-700: #1d4ed8;
    --brand-800: #1e40af;
    --ink-900: #0f172a;
    --ink-700: #334155;
    --ink-500: #64748b;
    --ink-400: #94a3b8;
    --line: #e2e8f0;
    --line-strong: #cbd5e1;
    --accent: #10b981;
    --danger: #ef4444;
    --danger-soft: #fef2f2;
    --danger-line: #fecaca;
    --success-soft: #ecfdf5;
    --success-line: #a7f3d0;
    --surface: #ffffff;
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-card: 0 24px 64px -20px rgba(2, 24, 72, 0.45);
    --shadow-pop: 0 30px 80px -20px rgba(2, 24, 72, 0.5);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink-900);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow-x: hidden;
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(56, 130, 246, 0.35), transparent 60%),
        radial-gradient(1000px 520px at -10% 110%, rgba(14, 165, 233, 0.28), transparent 60%),
        linear-gradient(160deg, #0b1e4e 0%, #12357f 45%, #1d4ed8 100%);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 3rem 3rem 2.5rem;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}

.container::-webkit-scrollbar {
    width: 8px;
}

.container::-webkit-scrollbar-track {
    background: transparent;
}

.container::-webkit-scrollbar-thumb {
    background: var(--line-strong);
    border-radius: 8px;
}

.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: linear-gradient(90deg, var(--brand-600), #3b82f6, #06b6d4);
}

/* Header */

.install-header {
    text-align: center;
    margin-bottom: 2.25rem;
}

.brand-logo {
    position: relative;
    width: 68px;
    height: 68px;
    margin: 0 auto 1.1rem;
    padding: 7px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
    box-shadow: 0 12px 28px -8px rgba(37, 99, 235, 0.55);
}

.brand-logo::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 24px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.45), transparent 70%);
    z-index: -1;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.install-header h1 {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink-900);
}

.subtitle {
    margin-top: 0.4rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink-500);
}

/* Database status pill */

.db-status-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 0.8rem;
    font-weight: 600;
    color: #e2e8f0;
    box-shadow: 0 8px 24px rgba(2, 24, 72, 0.25);
    transition: all 0.25s var(--ease);
}

.db-icon {
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
}

.db-icon svg {
    display: block;
}

.db-status-indicator.connected {
    color: #a7f3d0;
}

.db-status-indicator.disconnected {
    color: #fecaca;
    animation: pulse 1.6s ease-in-out infinite;
}

/* Toast messages */

.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-16px);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 320px;
    max-width: min(92vw, 480px);
    padding: 0.9rem 1.1rem;
    border-radius: 14px;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 16px 40px rgba(2, 24, 72, 0.25);
    animation: toastIn 0.35s var(--ease) forwards;
}

.toast.error {
    border: 1px solid var(--danger-line);
    color: #b91c1c;
}

.toast.success {
    border: 1px solid var(--success-line);
    color: #047857;
}

.toast-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.toast.error .toast-icon {
    background: var(--danger-soft);
    color: var(--danger);
}

.toast.success .toast-icon {
    background: var(--success-soft);
    color: var(--accent);
}

.toast-icon svg {
    width: 13px;
    height: 13px;
}

.toast-close {
    margin-left: auto;
    padding: 0 2px;
    background: none;
    border: none;
    color: currentColor;
    opacity: 0.45;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.2s var(--ease);
}

.toast-close:hover {
    opacity: 1;
}

.toast.hide {
    animation: toastOut 0.3s var(--ease) forwards;
}

/* Stepper */

.step-indicators {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 2.25rem;
    --progress-width: 0%;
}

.step-indicators::before {
    content: '';
    position: absolute;
    top: 19px;
    left: 15%;
    right: 15%;
    height: 2px;
    border-radius: 2px;
    background: var(--line);
}

.step-indicators::after {
    content: '';
    position: absolute;
    top: 19px;
    left: 15%;
    width: calc(var(--progress-width) * 0.7);
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--brand-600), #3b82f6);
    transition: width 0.45s var(--ease);
}

.step-indicator {
    flex: 1;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.45;
    transition: opacity 0.25s var(--ease);
}

.step-indicator.active,
.step-indicator.completed {
    opacity: 1;
}

.step-badge {
    position: relative;
    width: 40px;
    height: 40px;
}

.step-number,
.step-check {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s var(--ease);
}

.step-number {
    background: #eef2f7;
    border: 2px solid var(--line-strong);
    color: var(--ink-500);
}

.step-check {
    background: var(--accent);
    border: 2px solid #34d399;
    color: #fff;
    opacity: 0;
    transform: scale(0.6);
}

.step-check svg {
    width: 16px;
    height: 16px;
}

.step-indicator.active .step-number {
    background: var(--brand-600);
    border-color: var(--brand-600);
    color: #fff;
    box-shadow: 0 8px 18px -6px rgba(37, 99, 235, 0.6);
}

.step-indicator.completed .step-number {
    opacity: 0;
    transform: scale(0.6);
}

.step-indicator.completed .step-check {
    opacity: 1;
    transform: scale(1);
}

.step-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--ink-500);
}

.step-indicator.active .step-label {
    color: var(--brand-700);
}

.step-indicator.completed .step-label {
    color: var(--accent);
}

/* Form */

#installForm {
    display: flex;
    flex-direction: column;
}

.form-step {
    display: none;
    flex-direction: column;
    gap: 1.4rem;
    animation: stepIn 0.4s var(--ease);
}

.form-step.active {
    display: flex;
}

.step-heading {
    margin-bottom: 0.25rem;
}

.step-title {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink-900);
}

.step-subtitle {
    margin-top: 0.3rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--ink-500);
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-700);
}

label .required {
    margin-left: 2px;
    color: var(--danger);
}

/* Agreement checkbox */

label.agreement {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--ink-700);
    cursor: pointer;
}

.agreement input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.checkbox-ui {
    flex: none;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border: 1.5px solid var(--line-strong);
    border-radius: 6px;
    background: #fbfcfe;
    color: transparent;
    transition: all 0.25s var(--ease);
}

.checkbox-ui svg {
    width: 12px;
    height: 12px;
}

.agreement input[type="checkbox"]:hover + .checkbox-ui {
    border-color: var(--brand-600);
}

.agreement input[type="checkbox"]:checked + .checkbox-ui {
    background: var(--brand-600);
    border-color: var(--brand-600);
    color: #fff;
    box-shadow: 0 4px 10px -3px rgba(37, 99, 235, 0.5);
}

.agreement input[type="checkbox"]:focus-visible + .checkbox-ui {
    outline: none;
    border-color: var(--brand-600);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.agreement a {
    color: var(--brand-600);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.25s var(--ease);
}

.agreement a:hover {
    color: var(--brand-800);
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--ink-400);
    pointer-events: none;
    transition: color 0.25s var(--ease);
}

.input-icon svg {
    display: block;
}

.input-wrap,
.password-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--ink-400);
    pointer-events: none;
    transition: color 0.25s var(--ease);
}

.input-icon svg {
    display: block;
}

.input-wrap input,
.password-wrap input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.9rem;
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: #fbfcfe;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--ink-900);
    transition: all 0.25s var(--ease);
}

.input-wrap input::placeholder,
.password-wrap input::placeholder {
    color: var(--ink-400);
    opacity: 1;
}

.input-wrap:focus-within .input-icon,
.password-wrap:focus-within .input-icon {
    color: var(--brand-600);
}

.input-wrap:focus-within input,
.password-wrap:focus-within input {
    outline: none;
    border-color: var(--brand-600);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.password-wrap input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: none;
    color: var(--ink-400);
    cursor: pointer;
    transition: all 0.25s var(--ease);
}

.password-toggle:hover {
    color: var(--brand-600);
    background: var(--brand-50);
}

.password-toggle svg {
    width: 19px;
    height: 19px;
}

.password-toggle .icon-eye-off {
    display: none;
}

.password-toggle.visible .icon-eye {
    display: none;
}

.password-toggle.visible .icon-eye-off {
    display: block;
}

/* Password strength */

.password-strength,
.password-match {
    margin-top: 0.75rem;
    opacity: 0;
    transform: translateY(-6px);
    transition: all 0.3s var(--ease);
}

.password-strength.visible,
.password-match.visible {
    opacity: 1;
    transform: none;
}

.strength-meter {
    height: 5px;
    margin-bottom: 0.6rem;
    border-radius: 99px;
    background: var(--line);
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    border-radius: 99px;
    transition: width 0.35s var(--ease), background 0.35s var(--ease);
}

.strength-bar.weak {
    width: 34%;
    background: linear-gradient(90deg, var(--danger), #f97316);
}

.strength-bar.medium {
    width: 67%;
    background: linear-gradient(90deg, #f97316, #f59e0b);
}

.strength-bar.strong {
    width: 100%;
    background: linear-gradient(90deg, var(--accent), #22c55e);
}

.strength-text {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.strength-text.weak {
    color: var(--danger);
}

.strength-text.medium {
    color: #d97706;
}

.strength-text.strong {
    color: var(--accent);
}

.strength-requirements {
    display: grid;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--ink-500);
}

.requirement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.25s var(--ease);
}

.requirement::before {
    content: '';
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line-strong);
    transition: all 0.25s var(--ease);
}

.requirement.met {
    color: var(--ink-700);
}

.requirement.met::before {
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Password match */

.match-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.8rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.25s var(--ease);
}

.match-indicator.match {
    background: var(--success-soft);
    border: 1px solid var(--success-line);
    color: #047857;
}

.match-indicator.no-match {
    background: var(--danger-soft);
    border: 1px solid var(--danger-line);
    color: #b91c1c;
}

.match-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 16px;
    height: 16px;
}

.match-icon svg {
    display: block;
}

.match-indicator .icon-cross {
    display: none;
}

.match-indicator.no-match .icon-check {
    display: none;
}

.match-indicator.no-match .icon-cross {
    display: block;
}

/* Navigation */

.step-navigation {
    display: flex;
    gap: 0.9rem;
    margin-top: 0.75rem;
}

.btn-next,
.btn-prev,
#installBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s var(--ease);
}

.btn-next svg,
.btn-prev svg {
    width: 16px;
    height: 16px;
}

.btn-next,
#installBtn {
    flex: 1;
    border: none;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
    box-shadow: 0 10px 22px -8px rgba(37, 99, 235, 0.55);
}

.btn-next:hover,
#installBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -8px rgba(37, 99, 235, 0.65);
}

.btn-next:active,
#installBtn:active {
    transform: translateY(0);
}

.btn-prev {
    flex: 0 0 auto;
    border: 1.5px solid var(--line-strong);
    background: #fff;
    color: var(--ink-500);
}

.btn-prev:hover {
    background: #f8fafc;
    border-color: var(--ink-400);
    color: var(--ink-900);
}

#installBtn.loading {
    pointer-events: none;
    opacity: 0.85;
}

#installBtn.loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Install note */

.install-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    font-size: 0.78rem;
    color: var(--ink-400);
    text-align: center;
}

.install-note svg {
    flex: none;
    width: 14px;
    height: 14px;
}

/* Success modal */

.success-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 20, 45, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.3s var(--ease);
}

.success-modal {
    width: 100%;
    max-width: 460px;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background: #fff;
    text-align: center;
    box-shadow: var(--shadow-pop);
    animation: modalIn 0.4s var(--ease);
}

.success-icon {
    margin: 0 auto 1.25rem;
    width: 84px;
    height: 84px;
}

.checkmark {
    width: 84px;
    height: 84px;
    display: block;
    border-radius: 50%;
    stroke-width: 2.5;
    stroke: #10b981;
    stroke-miterlimit: 10;
    box-shadow: inset 0 0 0 #10b981;
    animation: fillCheckmark 0.4s ease-in-out 0.4s forwards, scaleCheckmark 0.3s ease-in-out 0.9s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2.5;
    stroke-miterlimit: 10;
    stroke: #10b981;
    fill: none;
    animation: strokeCheckmark 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #10b981;
    stroke-width: 2.5;
    animation: strokeCheckmark 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink-900);
    margin-bottom: 0.75rem;
}

.success-message {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ink-500);
    margin-bottom: 1.5rem;
}

.success-details {
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #f8fafc;
    text-align: left;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-700);
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.detail-icon svg {
    width: 15px;
    height: 15px;
}

.admin-credentials {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--brand-200);
    border-radius: var(--radius-md);
    background: var(--brand-50);
    text-align: left;
}

.admin-credentials h3 {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--brand-800);
}

.admin-credentials h3 svg {
    width: 15px;
    height: 15px;
}

.admin-credentials p {
    margin: 0.25rem 0;
    font-size: 0.85rem;
    color: var(--ink-700);
}

.admin-credentials .cred-hint {
    font-size: 0.78rem;
    color: var(--ink-400);
}

.redirect-info p {
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    color: var(--ink-500);
}

#countdown {
    font-weight: 700;
    color: var(--brand-700);
}

.progress-bar {
    height: 5px;
    border-radius: 99px;
    background: var(--line);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--brand-600), var(--accent));
}

.btn-login-now {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.85rem 2.25rem;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--brand-600), var(--brand-800));
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 22px -8px rgba(37, 99, 235, 0.55);
    transition: all 0.25s var(--ease);
}

.btn-login-now:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -8px rgba(37, 99, 235, 0.65);
}

/* Animations */

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalIn {
    from {
        transform: translateY(24px) scale(0.97);
        opacity: 0;
    }
    to {
        transform: none;
        opacity: 1;
    }
}

@keyframes stepIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-16px);
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.55;
    }
}

@keyframes strokeCheckmark {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes fillProgress {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

@keyframes scaleCheckmark {
    0%,
    100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.08, 1.08, 1);
    }
}

@keyframes fillCheckmark {
    100% {
        box-shadow: inset 0 0 0 30px #10b981;
    }
}

/* Responsive */

@media (max-width: 560px) {
    body {
        padding: 14px;
    }

    .container {
        padding: 2.25rem 1.4rem 2rem;
        max-height: calc(100vh - 28px);
    }

    .db-status-indicator {
        top: 12px;
        right: 12px;
        padding: 0.4rem 0.7rem;
    }

    .db-status-text {
        display: none;
    }

    .step-navigation {
        flex-direction: column;
    }

    .btn-prev {
        flex: 1;
    }

    .success-modal {
        padding: 2rem 1.4rem;
    }

    .toast {
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
