.glass-nav {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn-press:active {
    transform: scale(.97);
    transition: .1s;
}

.step-panel {
    display: none;
    opacity: 0;
}
.step-panel.active {
    display: block;
    animation: fadeInUp .5s cubic-bezier(.16, 1, .3, 1) forwards;
}

input,
textarea {
    transition: border-color .2s, box-shadow .2s, background .2s;
    outline: none;
}
input:focus,
textarea:focus {
    border-color: #7A8B76 !important;
    box-shadow: 0 0 0 3px rgba(122, 139, 118, .14);
}
.input-error {
    border-color: #ef4444 !important;
    background: #fff8f8 !important;
}
.input-ok {
    border-color: #7A8B76 !important;
}

.error-msg {
    color: #ef4444;
    font-size: .72rem;
    margin-top: 4px;
    display: none;
}
.error-msg.show {
    display: block;
}

.step-connector {
    flex: 1;
    height: 1px;
    background: #E7E5E4;
    margin: 0 8px;
    position: relative;
    overflow: hidden;
}
.step-connector-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: #2C3B2E;
    transition: width .6s cubic-bezier(.16, 1, .3, 1);
}
.step-badge-active {
    background: #2C3B2E;
    color: #fff;
}
.step-badge-inactive {
    background: #F5F5F4;
    color: #A8A29E;
}

.card-texture {
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000000' fill-opacity='0.04' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='2'/%3E%3Ccircle cx='13' cy='13' r='2'/%3E%3C/g%3E%3C/svg%3E");
}

@keyframes fadeInUp {
    0%   { opacity: 0; transform: translateY(24px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes shake {
    0%,  100% { transform: translateX(0); }
    20%        { transform: translateX(-6px); }
    40%        { transform: translateX(6px); }
    60%        { transform: translateX(-4px); }
    80%        { transform: translateX(4px); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.shake {
    animation: shake .4s ease;
}

#ajax-loading {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, .65);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}
#ajax-loading.show {
    display: flex;
}
.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #E7E5E4;
    border-top-color: #2C3B2E;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

#global-error {
    display: none;
    position: fixed;
    top: 88px;
    left: 50%;
    transform: translateX(-50%);
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: .55rem 1.4rem;
    border-radius: .75rem;
    font-size: .8rem;
    z-index: 200;
    white-space: nowrap;
    box-shadow: 0 4px 14px -2px rgba(0, 0, 0, .1);
}
#global-error.show {
    display: block;
}

@media (max-width: 640px) {
    .step-label { display: none; }
}