/* =======================================================
   DS PARTS - FAST AUTH & REGISTRATION MODAL (WILDBERRIES STYLE)
   Brand Color: #0089e5 | Accent: #10b981 | Dark: #1e242d
   ======================================================= */

.ds-auth-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ds-auth-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.ds-auth-modal {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 440px;
    padding: 32px 28px;
    position: relative;
    transform: translateY(20px) scale(0.96);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ds-auth-backdrop.active .ds-auth-modal {
    transform: translateY(0) scale(1);
}

.ds-auth-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ds-auth-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.ds-auth-header {
    text-align: center;
    margin-bottom: 22px;
}

.ds-auth-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}

.ds-auth-subtitle {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
}

/* Tabs */
.ds-auth-tabs {
    display: flex;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 22px;
    gap: 4px;
}

.ds-auth-tab-btn {
    flex: 1;
    padding: 8px 10px;
    border: none;
    background: transparent;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.ds-auth-tab-btn.active {
    background: #ffffff;
    color: #0089e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Forms */
.ds-auth-form-pane {
    display: none;
}

.ds-auth-form-pane.active {
    display: block;
    animation: dsFadeIn 0.2s ease-out;
}

@keyframes dsFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.ds-auth-input-group {
    margin-bottom: 14px;
    position: relative;
}

.ds-auth-input-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.ds-auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ds-auth-input-wrap svg {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    pointer-events: none;
}

.ds-auth-input {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 42px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 14px;
    color: #0f172a;
    font-weight: 500;
    transition: all 0.2s ease;
    outline: none;
}

.ds-auth-input:focus {
    border-color: #0089e5;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 137, 229, 0.14);
}

/* Code Input Box (4 digits) */
.ds-auth-code-box {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 18px 0;
}

.ds-auth-code-digit {
    width: 54px;
    height: 60px;
    border: 2px solid #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    color: #0089e5;
    outline: none;
    transition: all 0.2s ease;
}

.ds-auth-code-digit:focus {
    border-color: #0089e5;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 137, 229, 0.18);
}

/* Buttons */
.ds-auth-btn-primary {
    width: 100%;
    height: 48px;
    background: #0089e5;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0, 137, 229, 0.32);
    transition: all 0.2s ease;
    margin-top: 10px;
}

.ds-auth-btn-primary:hover {
    background: #0072c4;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 137, 229, 0.4);
}

.ds-auth-btn-primary:active {
    transform: translateY(0);
}

.ds-auth-btn-primary:disabled {
    background: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}

/* Resend timer */
.ds-auth-resend-box {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: #64748b;
}

.ds-auth-resend-link {
    color: #0089e5;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.ds-auth-resend-link:hover {
    text-decoration: underline;
}

/* Client type switcher in registration */
.ds-auth-type-switcher {
    display: flex;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 14px;
}

.ds-auth-type-btn {
    flex: 1;
    padding: 6px 10px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}

.ds-auth-type-btn.active {
    background: #0089e5;
    color: #ffffff;
}

/* Alerts */
.ds-auth-alert {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 14px;
    display: none;
}

.ds-auth-alert.error {
    display: block;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.ds-auth-alert.success {
    display: block;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

/* Header Icons Styling (for Dark Header) */
.newheader__icons-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.newheader__icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    text-decoration: none !important;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.newheader__icon-btn svg {
    stroke: #ffffff;
    transition: all 0.2s ease;
}

.newheader__icon-btn:hover {
    color: #0089e5 !important;
}

.newheader__icon-btn:hover svg {
    stroke: #0089e5;
    transform: scale(1.08);
}

.newheader__icon-label {
    font-size: 11.5px;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
    letter-spacing: 0.2px;
    opacity: 0.92;
    transition: all 0.2s ease;
}

.newheader__icon-btn:hover .newheader__icon-label {
    color: #0089e5;
    opacity: 1;
}

.newheader__fav-badge {
    position: absolute;
    top: -2px;
    right: 4px;
    background: #ec4899;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 6px rgba(236, 72, 153, 0.4);
}

/* Header sticky & high z-index stacking */
header.header,
header.bx-header,
.bx-header,
.newheader,
.newheader__wrap {
    position: relative;
    z-index: 1000 !important;
}

header.header.sticky,
.newheader.sticky,
.bx-header.sticky {
    position: sticky !important;
    top: 0;
    z-index: 1000 !important;
}

