:root {
    
    --dslp-50:  #fafafa;
    --dslp-100: #f2f1f4;
    --dslp-200: #e5e3e8;
    --dslp-300: #cfccd4;
    --dslp-400: #a6a2ac;
    --dslp-500: #79747f;
    --dslp-600: #4c4853;
    --dslp-700: #322e38;
    --dslp-800: #201d24;
    --dslp-900: #16131a;
    --dslp-950: #0b0a0d;
    --dslp-950-rgb: 11, 10, 13;

    
    --dslp-accent:      var(--dg-primary, #6d5bd0);
    --dslp-accent-ink:  var(--dg-primary-900, #241b4d);
    --dslp-accent-rgb:  109, 91, 208;
    --dslp-grad:        linear-gradient(135deg, var(--dg-secondary, #8b6bd8) 0%, var(--dg-primary, #6d5bd0) 100%);
    --dslp-grad-ink:    linear-gradient(155deg, var(--dslp-900) 0%, var(--dslp-800) 55%, var(--dg-primary-900, #241b4d) 130%);

    
    --dslp-surface:        #ffffff;
    --dslp-canvas:         #f8f7fa;
    --dslp-input-bg:       #fbfbfc;
    --dslp-input-bg-hover: #ffffff;
    --dslp-border:         #e6e4e9;
    --dslp-border-strong:  #d6d3da;

    
    --dslp-r-sm: 10px;
    --dslp-r-md: 14px;
    --dslp-r-lg: 22px;
    --dslp-r-pill: 999px;
    --dslp-shadow-sm: 0 1px 2px rgba(var(--dslp-950-rgb), .05);
    --dslp-shadow-lg: 0 24px 48px -28px rgba(var(--dslp-950-rgb), .28);
    --dslp-ease: cubic-bezier(.22, .61, .36, 1);
    --dslp-t-fast: 120ms;
    --dslp-t-base: 190ms;

    
    --dslp-danger:     #c0272d;
    --dslp-danger-bg:  #fdf0f0;
    --dslp-danger-bd:  #f7d9d9;
    --dslp-success:    #0a7a55;
    --dslp-success-bg: #edfaf3;
    --dslp-success-bd: #d3f0e2;
}

@media (prefers-color-scheme: dark) {
    
}


.dslp-wrap, .dslp-wrap * { box-sizing: border-box; }
.dslp-wrap {
    font-family: 'Vazirmatn', 'IRANSans', Tahoma, Arial, sans-serif;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    max-width: 420px;
    margin: 0 auto;
}
.dslp-hidden { display: none !important; }


.dslp-wrap h1, .dslp-wrap h2, .dslp-wrap h3, .dslp-wrap h4 {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    text-transform: none !important;
    letter-spacing: normal;
    background: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .dslp-wrap *, .dslp-wrap *::before, .dslp-wrap *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}


.dslp-wrap a:focus-visible,
.dslp-wrap button:focus-visible,
.dslp-wrap input:focus-visible {
    outline: 2px solid var(--dslp-accent);
    outline-offset: 2px;
    border-radius: 6px;
}


.dslp-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--dslp-border);
}
.dslp-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 15px;
    background: var(--dslp-grad-ink);
    border-radius: var(--dslp-r-md);
    box-shadow: 0 8px 18px -10px rgba(var(--dslp-950-rgb), .45);
}
.dslp-logo-img { width: auto; height: 22px; object-fit: contain; display: block; }


.dslp-card {
    position: relative;
    background: var(--dslp-surface);
    border-radius: var(--dslp-r-lg);
    border: 1px solid var(--dslp-border);
    box-shadow: var(--dslp-shadow-sm), var(--dslp-shadow-lg);
    padding: 22px 18px 24px;
}
.dslp-step {
    position: relative;
    animation: dslp-step-in .34s var(--dslp-ease);
}
@keyframes dslp-step-in {
    from { opacity: 0; transform: translateY(8px) scale(.99); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.dslp-step-head { margin-bottom: 16px; text-align: center !important; }
.dslp-title {
    font-size: clamp(19px, 1.4vw + 15px, 23px);
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--dslp-900);
    margin: 0;
    line-height: 1.35;
    text-align: center !important;
}
.dslp-subtitle {
    font-size: 13.5px;
    color: var(--dslp-500);
    margin: 6px auto 0;
    line-height: 1.65;
    max-width: 34ch;
    text-align: center !important;
}
.dslp-phone-display {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--dslp-700);
    direction: ltr;
    text-align: center;
    margin-top: 10px;
    background: var(--dslp-100);
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--dslp-r-sm);
}


.dslp-field { margin-bottom: 14px; }
.dslp-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.dslp-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--dslp-600);
    margin-bottom: 6px;
}
.dslp-req { color: var(--dslp-danger); }

.dslp-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1.5px solid var(--dslp-border);
    border-radius: var(--dslp-r-sm);
    font-size: 14.5px;
    font-family: inherit;
    font-weight: 500;
    transition: border-color var(--dslp-t-base) var(--dslp-ease),
                box-shadow var(--dslp-t-base) var(--dslp-ease),
                background var(--dslp-t-base) var(--dslp-ease);
    outline: none;
    background: var(--dslp-input-bg);
    color: var(--dslp-900);
}
.dslp-input:hover { border-color: var(--dslp-border-strong); background: var(--dslp-input-bg-hover); }
.dslp-input:focus {
    border-color: var(--dslp-accent);
    box-shadow: 0 0 0 3.5px rgba(var(--dslp-accent-rgb), .15);
    background: #fff;
}
.dslp-input::placeholder { color: var(--dslp-400); }
.dslp-input:disabled { background: var(--dslp-100); color: var(--dslp-400); cursor: not-allowed; }

.dslp-input:not(:placeholder-shown):not(:focus) { border-color: var(--dslp-border-strong); }


.dslp-input-shell { position: relative; }
.dslp-input-shell .dslp-input-has-icon { padding-inline-start: 40px; }

.dslp-input-shell .dslp-input-has-flag { padding-left: 64px; padding-right: 14px; }
.dslp-input-shell .dslp-input-has-toggle { padding-inline-end: 42px; }
.dslp-input-icon {
    position: absolute;
    inset-inline-start: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--dslp-400);
    display: flex;
    pointer-events: none;
    transition: color var(--dslp-t-base) var(--dslp-ease);
}
.dslp-input-shell:focus-within .dslp-input-icon { color: var(--dslp-accent); }


.dslp-phone-flag {
    position: absolute !important;
    inset-inline-end: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    pointer-events: none !important;
    width: auto !important;
    height: auto !important;
}
.dslp-phone-flag-icon {
    display: block !important;
    width: 32px !important;
    height: 18.3px !important;
    max-width: 32px !important;
    max-height: 18.3px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    line-height: 0 !important;
}
.dslp-phone-flag-icon img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    border-radius: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
}
.dslp-phone-flag-icon svg { width: 100% !important; height: 100% !important; display: block !important; }
.dslp-phone-flag-divider {
    width: 1px;
    height: 20px;
    background: var(--dslp-border-strong);
    flex-shrink: 0;
}
.dslp-input-shell svg { width: 100%; height: 100%; display: block; }

.dslp-pw-toggle {
    position: absolute;
    inset-inline-end: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--dslp-400);
    cursor: pointer;
    transition: color var(--dslp-t-fast) ease, background var(--dslp-t-fast) ease;
}
.dslp-pw-toggle:hover { color: var(--dslp-700); background: var(--dslp-100); }
.dslp-pw-toggle svg { width: 18px; height: 18px; }
.dslp-pw-toggle .dslp-eye-off { display: none; }
.dslp-pw-toggle.is-visible .dslp-eye-on { display: none; }
.dslp-pw-toggle.is-visible .dslp-eye-off { display: block; }


.dslp-otp-wrap { margin-bottom: 14px !important; width: 100% !important; text-align: center !important; }
.dslp-otp-boxes {
    display: grid !important;
    grid-template-columns: repeat(var(--dslp-otp-count, 6), minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    direction: ltr !important;
}
.dslp-otp-box {
    display: block !important;
    width: 100% !important;
    max-width: 52px !important;
    height: 52px !important;
    min-width: 0 !important;
    justify-self: center !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
    border: 1.5px solid var(--dslp-border);
    border-radius: var(--dslp-r-sm);
    background: var(--dslp-input-bg);
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--dslp-800);
    outline: none;
    transition: border-color var(--dslp-t-base) var(--dslp-ease), box-shadow var(--dslp-t-base) var(--dslp-ease), background var(--dslp-t-base) var(--dslp-ease);
}
.dslp-otp-box:hover { border-color: var(--dslp-border-strong); background: var(--dslp-input-bg-hover); }
.dslp-otp-box:focus {
    border-color: var(--dslp-accent);
    box-shadow: 0 0 0 3.5px rgba(var(--dslp-accent-rgb), .15);
    background: #fff;
}

@media (max-width: 359px) {
    .dslp-otp-boxes { gap: 5px !important; }
    .dslp-otp-box { height: 44px !important; max-width: 46px !important; font-size: 17px; }
}


.dslp-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 22px;
    border-radius: var(--dslp-r-sm);
    font-size: 14.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: box-shadow var(--dslp-t-base) ease, transform var(--dslp-t-fast) ease, filter var(--dslp-t-base) ease;
    border: none;
    text-decoration: none;
}
.dslp-btn-primary {
    background: var(--dslp-grad);
    color: #fff;
    box-shadow: var(--dslp-shadow-sm), 0 10px 22px -12px rgba(var(--dslp-accent-rgb), .55);
}
.dslp-btn-primary:hover:not(:disabled) { filter: brightness(1.05); box-shadow: var(--dslp-shadow-sm), 0 12px 24px -10px rgba(var(--dslp-accent-rgb), .6); }
.dslp-btn-primary:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 4px 14px -9px rgba(var(--dslp-accent-rgb), .5); }
.dslp-btn:disabled { cursor: not-allowed; opacity: .68; }

.dslp-btn-outline {
    background: transparent;
    border: 1.5px solid var(--dslp-border-strong);
    color: var(--dslp-700);
}
.dslp-btn-outline:hover { background: var(--dslp-50); border-color: var(--dslp-400); }
.dslp-full { display: flex; width: fit-content; min-width: 0; margin: 8px auto 0; }


.dslp-btn.is-loading { color: transparent !important; pointer-events: none; }
.dslp-btn.is-loading .dslp-btn-text { visibility: hidden; }
.dslp-btn.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    animation: dslp-spin .7s linear infinite;
}
.dslp-btn-outline.is-loading::after { border-color: rgba(var(--dslp-950-rgb), .18); border-top-color: var(--dslp-700); }

.dslp-link-btn {
    background: none;
    border: none;
    color: var(--dslp-600);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    padding: 5px 6px;
    text-decoration: none;
    border-radius: 6px;
    transition: color var(--dslp-t-fast) ease;
}
.dslp-link-btn:hover:not(:disabled) { color: var(--dslp-accent); }
.dslp-link-btn:disabled { opacity: .55; cursor: not-allowed; }

.dslp-inline-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.dslp-inline-links .dslp-link-btn:not(:last-child)::after {
    content: '·';
    margin-inline-start: 8px;
    color: var(--dslp-300);
}

.dslp-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    margin-top: 16px;
    color: var(--dslp-500);
}
.dslp-back-btn::before {
    content: '';
    width: 7px;
    height: 7px;
    border-inline-start: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(-45deg);
}

.dslp-edit-btn::before { content: none; }
.dslp-edit-icon {
    display: inline-flex;
    width: 15px;
    height: 15px;
    color: var(--dslp-accent);
    flex-shrink: 0;
}
.dslp-edit-icon svg { width: 100%; height: 100%; display: block; }


.dslp-msg {
    min-height: 0;
    font-size: 12.5px;
    margin: 0;
    border-radius: var(--dslp-r-sm);
    text-align: center;
    line-height: 1.6;
}
.dslp-msg:empty { margin: 0; }
.dslp-msg.error,
.dslp-msg.success {
    margin: 10px 0;
    padding: 10px 12px;
    border: 1px solid transparent;
}
.dslp-msg.error   { color: var(--dslp-danger);  background: var(--dslp-danger-bg);  border-color: var(--dslp-danger-bd); }
.dslp-msg.success { color: var(--dslp-success); background: var(--dslp-success-bg); border-color: var(--dslp-success-bd); }
.dslp-msg-pop { animation: dslp-msg-in .22s var(--dslp-ease); }
@keyframes dslp-msg-in {
    from { opacity: 0; transform: translateY(-3px); }
    to   { opacity: 1; transform: translateY(0); }
}


.dslp-resend-row {
    text-align: center;
    margin-top: 14px;
    font-size: 12px;
    color: var(--dslp-400);
}
.dslp-countdown { font-size: 12px; color: var(--dslp-400); }


.dslp-hint {
    font-size: 11.5px;
    color: var(--dslp-400);
    margin: 6px 0 0;
    line-height: 1.6;
}
.dslp-hint-gift { color: var(--dslp-accent-ink); }


.dslp-terms-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 16px;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.7;
    color: var(--dslp-500);
}
.dslp-terms-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 1.6px solid var(--dslp-border-strong);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: background var(--dslp-t-fast) ease, border-color var(--dslp-t-fast) ease;
}
.dslp-terms-check input[type="checkbox"]:hover { border-color: var(--dslp-accent); }
.dslp-terms-check input[type="checkbox"]:checked {
    background: var(--dslp-grad);
    border-color: transparent;
}
.dslp-terms-check input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 9px;
    height: 5px;
    
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
}
.dslp-terms-check a { color: var(--dslp-700); font-weight: 600; }
.dslp-terms-check.dslp-terms-shake { animation: dslpTermsShake .35s; }
@keyframes dslpTermsShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}


.dslp-success-box { text-align: center; padding: 8px 0 4px; }
.dslp-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--dslp-grad);
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 10px 22px -10px rgba(var(--dslp-accent-rgb), .55);
    margin-bottom: 16px;
}
.dslp-success-icon svg { width: 24px; height: 24px; }
.dslp-spinner {
    width: 22px; height: 22px;
    border: 2.5px solid var(--dslp-100);
    border-top-color: var(--dslp-accent);
    border-radius: 50%;
    animation: dslp-spin .8s linear infinite;
    margin: 18px auto 0;
}
@keyframes dslp-spin { to { transform: rotate(360deg); } }


.dslp-logged-in { text-align: center; padding: 28px 20px; }
.dslp-avatar { margin-bottom: 12px; }
.dslp-avatar img {
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--dslp-200);
    width: 52px;
    height: 52px;
}
.dslp-hello { font-size: 14.5px; color: var(--dslp-600); margin-bottom: 16px; }


.dslp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(var(--dslp-950-rgb), .5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: dslp-overlay-in .18s ease;
}
@keyframes dslp-overlay-in { from { opacity: 0; } to { opacity: 1; } }
.dslp-modal {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--dslp-r-lg);
    box-shadow: 0 28px 64px -20px rgba(var(--dslp-950-rgb), .5);
}
.dslp-close-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--dslp-surface);
    border: 1px solid var(--dslp-border);
    border-radius: 50%;
    width: 30px; height: 30px;
    font-size: 12px;
    color: var(--dslp-600);
    cursor: pointer;
    z-index: 10;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--dslp-t-fast) ease, color var(--dslp-t-fast) ease;
}
.dslp-close-btn:hover { background: var(--dslp-100); color: var(--dslp-900); }


.dslp-referral-box {
    background: var(--dslp-grad-ink);
    border-radius: var(--dslp-r-md);
    padding: 20px 22px;
    text-align: center;
    color: #fff;
}
.dslp-referral-label { font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.dslp-referral-code-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}
.dslp-referral-code {
    font-family: monospace;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 3px;
    background: rgba(255, 255, 255, .12);
    padding: 9px 16px;
    border-radius: var(--dslp-r-sm);
    color: #fff;
    direction: ltr;
}
.dslp-copy-btn {
    background: rgba(255, 255, 255, .16);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background var(--dslp-t-fast) ease;
}
.dslp-copy-btn:hover { background: rgba(255, 255, 255, .28); }
.dslp-referral-hint { font-size: 12px; color: rgba(255, 255, 255, .78); margin: 0; }


.dslp-method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
.dslp-method-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 14px;
    border: 1.5px solid var(--dslp-border);
    border-radius: var(--dslp-r-md);
    background: var(--dslp-surface);
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    transition: border-color var(--dslp-t-base) ease, background var(--dslp-t-base) ease, box-shadow var(--dslp-t-base) ease, transform var(--dslp-t-fast) ease;
}
.dslp-method-card:hover {
    border-color: var(--dslp-accent);
    box-shadow: var(--dslp-shadow-sm);
    transform: translateY(-1px);
}
.dslp-method-card:active { transform: translateY(0); }
.dslp-method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #fff;
    background: var(--dslp-grad-ink);
    border-radius: 10px;
}
.dslp-method-icon svg { width: 17px; height: 17px; }
.dslp-method-title { font-size: 13px; font-weight: 700; color: var(--dslp-900); }
.dslp-method-sub { font-size: 11px; color: var(--dslp-400); margin-top: -4px; }


.dslp-card { padding: 20px 18px 22px; border-radius: 18px; }
.dslp-field-row { grid-template-columns: 1fr; gap: 0; }
.dslp-field-row .dslp-field { margin-bottom: 14px; }


@media (min-width: 560px) {
    .dslp-card { padding: 26px 32px 28px; border-radius: var(--dslp-r-lg); }
    .dslp-field-row { grid-template-columns: 1fr 1fr; gap: 12px; }
    .dslp-field-row .dslp-field { margin-bottom: 0; }
}


.dslp-page {
    min-height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: var(--dslp-canvas);
    padding: 16px 18px 24px;
}
.dslp-page .dslp-wrap { margin: 0 auto; width: 100%; }
.dslp-page-main { width: 100%; display: flex; justify-content: center; }
.dslp-page-main .dslp-wrap { max-width: 400px; }