.dmas {
    --dmas-red: #ff3045;
    --dmas-red-deep: #a90020;
    --dmas-red-rgb: 255, 48, 69;
    --dmas-navy: #07101f;
    --dmas-navy-2: #0d1a2e;
    --dmas-text: #f9fbff;
    --dmas-muted: #99a5b8;
    --dmas-line: rgba(255, 255, 255, .1);
    --dmas-ease: cubic-bezier(.2, .85, .25, 1);
    position: relative;
    width: min(calc(var(--dmui-page-width, 100vw) - 34px), 1366px);
    max-width: none;
    margin-inline: calc((100% - min(calc(var(--dmui-page-width, 100vw) - 34px), 1366px)) / 2);
    direction: rtl;
    color: var(--dmas-text);
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.dmas, .dmas *, .dmas *::before, .dmas *::after { box-sizing: border-box; }
.elementor-widget-darkmovis_advanced_search,
.elementor-widget-darkmovis_advanced_search > .elementor-widget-container { overflow: visible !important; }
.dmas button, .dmas input, .dmas select { font: inherit; }
.dmas svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.dmas__card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(18px, 2.2vw, 30px);
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 30px;
    corner-shape: squircle;
    background:
        radial-gradient(circle at 92% -20%, rgba(var(--dmas-red-rgb), .2), transparent 34%),
        radial-gradient(circle at 8% 130%, rgba(32, 88, 158, .13), transparent 38%),
        linear-gradient(125deg, rgba(15, 29, 50, .82), rgba(4, 11, 24, .9) 50%, rgba(10, 20, 36, .84));
    box-shadow: 0 28px 70px rgba(0, 0, 0, .32), inset 0 1px rgba(255, 255, 255, .09);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    contain: layout paint;
}

.dmas__card::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    right: 5%;
    left: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), rgba(var(--dmas-red-rgb), .72), transparent);
    box-shadow: 0 0 16px rgba(var(--dmas-red-rgb), .38);
}

.dmas__ambient { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.dmas__ambient::before { content: ""; position: absolute; top: 18px; left: 26px; width: 110px; height: 62px; opacity: .13; background-image: radial-gradient(circle, #fff 1px, transparent 1.5px); background-size: 14px 14px; transform: rotate(-8deg); }
.dmas__ambient > i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--dmas-red); box-shadow: 0 0 12px rgba(var(--dmas-red-rgb), .8); opacity: .55; animation: dmasDot 3.6s ease-in-out infinite; }
.dmas__ambient > i:nth-child(1) { top: 20%; left: 10%; }
.dmas__ambient > i:nth-child(2) { top: 16%; right: 42%; animation-delay: -1.1s; }
.dmas__ambient > i:nth-child(3) { bottom: 18%; left: 34%; animation-delay: -2.2s; }
.dmas__ambient > i { animation-play-state: paused; }
.dmas.is-inview .dmas__ambient > i { animation-play-state: running; }

.dmas__head { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; margin-bottom: 22px; }
.dmas__brand-icon { position: relative; width: 52px; height: 52px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(var(--dmas-red-rgb), .25); border-radius: 18px; corner-shape: squircle; color: #fff; background: linear-gradient(145deg, rgba(var(--dmas-red-rgb), .3), rgba(255, 255, 255, .035)); box-shadow: inset 0 1px rgba(255, 255, 255, .15), 0 14px 30px rgba(var(--dmas-red-rgb), .12); }
.dmas__brand-icon > svg { width: 27px; height: 27px; }
.dmas__brand-icon > i { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border: 1px solid #06101f; border-radius: 50%; background: #ffb648; box-shadow: 0 0 10px rgba(255, 182, 72, .75); }
.dmas__head-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.dmas__head-copy small, .dmas__sheet-head small { color: #ff7887; font-size: 9px; font-weight: 900; letter-spacing: 1.4px; direction: ltr; }
.dmas__head-copy strong { color: #fff; font-size: clamp(20px, 2vw, 28px); font-weight: 950; line-height: 1.45; letter-spacing: -.5px; }
.dmas__head-copy em { color: var(--dmas-muted); font-size: clamp(11px, 1vw, 13px); font-style: normal; font-weight: 650; line-height: 1.7; }
.dmas__live-pill { min-height: 38px; padding: 8px 13px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(var(--dmas-red-rgb), .18); border-radius: 999px; color: #dfe6f2; background: rgba(var(--dmas-red-rgb), .07); font-size: 10px; font-weight: 850; white-space: nowrap; }
.dmas__live-pill > i { width: 6px; height: 6px; border-radius: 50%; background: var(--dmas-red); box-shadow: 0 0 10px rgba(var(--dmas-red-rgb), .8); }

.dmas__form { position: relative; }
.dmas__query-shell { min-height: 68px; padding: 6px 7px 6px 14px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 11px; border: 1px solid rgba(255, 255, 255, .115); border-radius: 21px; corner-shape: squircle; background: rgba(2, 8, 18, .42); box-shadow: inset 0 1px rgba(255, 255, 255, .055), 0 18px 38px rgba(0, 0, 0, .19); transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.dmas__query-shell:focus-within { border-color: rgba(var(--dmas-red-rgb), .5); background: rgba(7, 14, 27, .72); box-shadow: inset 0 1px rgba(255, 255, 255, .07), 0 18px 40px rgba(0, 0, 0, .23), 0 0 0 3px rgba(var(--dmas-red-rgb), .075); }
.dmas__query-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 15px; color: #ff6576; background: rgba(var(--dmas-red-rgb), .085); }
.dmas__query-icon svg { width: 22px; height: 22px; }
.dmas__query-shell input[type="search"] { min-width: 0; width: 100%; height: 52px; padding: 0; border: 0; outline: 0; color: #fff; background: transparent; font-size: 16px; font-weight: 750; }
.dmas__query-shell input[type="search"]::placeholder { color: #768398; opacity: 1; }
.dmas__query-shell input[type="search"]::-webkit-search-cancel-button { filter: invert(1); opacity: .48; }
.dmas__shortcut { padding: 6px 8px; border: 1px solid rgba(255, 255, 255, .1); border-bottom-color: rgba(255, 255, 255, .2); border-radius: 8px; color: #758096; background: rgba(0, 0, 0, .22); font: 750 8px/1 inherit; direction: ltr; }

.dmas__submit { position: relative; isolation: isolate; overflow: hidden; min-width: 142px; height: 56px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 17px; corner-shape: squircle; color: #fff; background: linear-gradient(145deg, #ff4053, #df0b27 55%, #a90020); box-shadow: 0 13px 30px rgba(var(--dmas-red-rgb), .26), inset 0 1px rgba(255, 255, 255, .26), inset 0 -2px rgba(91, 0, 16, .28); font-size: 12px; font-weight: 950; cursor: pointer; transition: transform .2s var(--dmas-ease), box-shadow .2s ease, filter .2s ease; }
.dmas__submit::after { content: ""; position: absolute; z-index: -1; top: -40%; bottom: -40%; left: -40%; width: 28px; background: rgba(255, 255, 255, .38); filter: blur(7px); transform: translateX(-180px) rotate(18deg); animation: dmasShine 4.8s ease-in-out infinite; }
.dmas__submit::after { animation-play-state: paused; }
.dmas__modal.is-open .dmas__submit::after { animation-play-state: running; }
.dmas__submit > svg { width: 18px; height: 18px; }
.dmas__submit-decor { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.dmas__submit-decor i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; opacity: .52; }
.dmas__submit-decor i:nth-child(1) { top: 11px; right: 13px; }
.dmas__submit-decor i:nth-child(2) { bottom: 10px; left: 15px; width: 3px; height: 3px; }
.dmas__submit-decor i:nth-child(3) { top: 15px; left: 26px; width: 2px; height: 2px; }

.dmas__types { margin-top: 12px; padding: 4px; display: inline-flex; align-items: center; gap: 3px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 15px; background: rgba(1, 6, 15, .3); }
.dmas__types-label { height: 36px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; color: #7f8ba0; font-size: 9px; font-weight: 850; }
.dmas__types-label svg { width: 15px; height: 15px; color: #ff6576; }
.dmas__types button { min-width: 72px; height: 36px; padding: 0 13px; border: 1px solid transparent; border-radius: 11px; color: #8e9aae; background: transparent; font-size: 10px; font-weight: 850; cursor: pointer; transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s var(--dmas-ease); }
.dmas__types button.is-active { color: #fff; border-color: rgba(var(--dmas-red-rgb), .28); background: linear-gradient(145deg, rgba(var(--dmas-red-rgb), .27), rgba(var(--dmas-red-rgb), .07)); box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 7px 18px rgba(var(--dmas-red-rgb), .09); }

.dmas__filter-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dmas__field, .dmas__toggle { position: relative; min-width: 0; min-height: 72px; padding: 10px 12px; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(108px, .75fr) auto; align-items: center; gap: 10px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .075); border-radius: 19px; corner-shape: squircle; background: linear-gradient(140deg, rgba(255, 255, 255, .047), rgba(255, 255, 255, .017)); box-shadow: inset 0 1px rgba(255, 255, 255, .035); transition: border-color .2s ease, background .2s ease, transform .2s var(--dmas-ease); }
.dmas__field:focus-within, .dmas__field.is-set, .dmas__toggle.is-set { border-color: rgba(var(--dmas-red-rgb), .27); background: linear-gradient(140deg, rgba(var(--dmas-red-rgb), .085), rgba(255, 255, 255, .02)); }
.dmas__field-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; color: #fff; background: rgba(255, 255, 255, .04); }
.dmas__field-icon svg { width: 21px; height: 21px; }
.dmas__field-icon.is-coral { color: #ff7c86; background: rgba(255, 78, 94, .09); }
.dmas__field-icon.is-blue { color: #6eb7ff; background: rgba(54, 141, 255, .09); }
.dmas__field-icon.is-gold { color: #ffd36d; background: rgba(255, 187, 57, .09); }
.dmas__field-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dmas__field-copy small { color: #758299; font-size: 8px; font-weight: 800; }
.dmas__field-copy b { overflow: hidden; color: #eef2f9; font-size: 10px; font-weight: 880; text-overflow: ellipsis; white-space: nowrap; }
.dmas__field select { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; padding: 0; border: 0; outline: 0; opacity: 0; cursor: pointer; }
.dmas__chevron { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .07); border-radius: 10px; color: #808ca0; background: rgba(0, 0, 0, .14); pointer-events: none; }
.dmas__chevron svg { width: 14px; height: 14px; }
.dmas__toggle { grid-template-columns: auto minmax(0, 1fr) auto; cursor: pointer; user-select: none; }
.dmas__toggle > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dmas__switch { position: relative; width: 42px; height: 24px; padding: 3px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; background: #192335; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .36); transition: border-color .2s ease, background .2s ease; }
.dmas__switch i { position: absolute; top: 4px; right: 4px; width: 14px; height: 14px; border-radius: 50%; background: #8290a4; box-shadow: 0 3px 7px rgba(0, 0, 0, .36); transition: transform .24s var(--dmas-ease), background .2s ease, box-shadow .2s ease; }
.dmas__toggle input:checked ~ .dmas__switch { border-color: rgba(var(--dmas-red-rgb), .55); background: rgba(var(--dmas-red-rgb), .3); }
.dmas__toggle input:checked ~ .dmas__switch i { transform: translateX(-17px); background: #fff; box-shadow: 0 0 12px rgba(255, 255, 255, .42); }
.dmas__mobile-action, .dmas__mobile-trigger { display: none; }

.dmas__modal { position: fixed; z-index: 2147483600; inset: 0; display: grid; place-items: end center; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .22s ease, visibility 0s linear .35s; }
.dmas__modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.dmas__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(1, 5, 13, .82); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); cursor: default; }
.dmas__sheet { position: relative; z-index: 1; width: min(100%, 580px); max-height: min(88dvh, 780px); overflow: hidden; border: 1px solid rgba(var(--dmas-red-rgb), .24); border-bottom: 0; border-radius: 30px 30px 0 0; corner-shape: squircle squircle round round; background: radial-gradient(circle at 90% -10%, rgba(var(--dmas-red-rgb), .2), transparent 240px), linear-gradient(155deg, #0d1b30, #050c19 58%, #091426); box-shadow: 0 -35px 90px rgba(0, 0, 0, .72), inset 0 1px rgba(255, 255, 255, .08); transform: translate3d(0, calc(100% + 40px), 0); transition: transform .42s var(--dmas-ease); contain: layout paint; }
.dmas__modal.is-open .dmas__sheet { transform: translate3d(0, 0, 0); }
.dmas__sheet-stroke { position: absolute; z-index: 3; top: 0; right: 13%; left: 13%; height: 1px; background: linear-gradient(90deg, transparent, #ff8a96, var(--dmas-red), #ff8a96, transparent); box-shadow: 0 0 15px rgba(var(--dmas-red-rgb), .7); }
.dmas__handle { width: 52px; height: 5px; margin: 10px auto 4px; display: block; border-radius: 99px; background: linear-gradient(90deg, rgba(var(--dmas-red-rgb), .2), var(--dmas-red), rgba(var(--dmas-red-rgb), .2)); box-shadow: 0 0 10px rgba(var(--dmas-red-rgb), .28); }
.dmas__sheet-head { min-height: 72px; padding: 9px 18px 13px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; border-bottom: 1px solid rgba(255, 255, 255, .065); }
.dmas__sheet-head .dmas__brand-icon { width: 44px; height: 44px; border-radius: 15px; }
.dmas__sheet-head .dmas__brand-icon svg { width: 23px; height: 23px; }
.dmas__sheet-head > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dmas__sheet-head strong { overflow: hidden; color: #fff; font-size: 15px; font-weight: 930; text-overflow: ellipsis; white-space: nowrap; }
.dmas__close { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .09); border-radius: 13px; color: #aab3c3; background: rgba(255, 255, 255, .04); cursor: pointer; }
.dmas__close svg { width: 18px; height: 18px; }
.dmas__sheet-body { max-height: calc(min(88dvh, 780px) - 91px); overflow: auto; padding: 17px 18px max(26px, env(safe-area-inset-bottom)); scrollbar-width: thin; scrollbar-color: rgba(var(--dmas-red-rgb), .45) transparent; overscroll-behavior: contain; }
html.dmas-modal-open { overflow: hidden; }

@media (hover: hover) {
    .dmas__submit:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 17px 38px rgba(var(--dmas-red-rgb), .35), inset 0 1px rgba(255, 255, 255, .28); }
    .dmas__types button:hover { color: #fff; background: rgba(255, 255, 255, .045); transform: translateY(-1px); }
    .dmas__field:hover, .dmas__toggle:hover { border-color: rgba(255, 255, 255, .15); transform: translateY(-1px); }
}

@media (max-width: 767px) {
    .dmas { width: min(calc(100vw - 20px), 430px); margin-inline: calc((100% - min(calc(100vw - 20px), 430px)) / 2); }
    .dmas__card { overflow: visible; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; contain: layout style; }
    .dmas__card::before, .dmas__ambient { display: none; }
    .dmas__head, .dmas__desktop-form { display: none; }
    .dmas__mobile-trigger { position: relative; isolation: isolate; overflow: hidden; width: 100%; min-height: 74px; padding: 10px 13px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; border: 1px solid rgba(255, 255, 255, .135); border-top-color: rgba(255, 255, 255, .22); border-radius: 21px; corner-shape: squircle; color: #fff; background: radial-gradient(circle at 91% -42%, rgba(var(--dmas-red-rgb), .28), transparent 47%), radial-gradient(circle at 3% 145%, rgba(52, 112, 184, .18), transparent 42%), linear-gradient(132deg, rgba(20, 39, 66, .96), rgba(5, 12, 25, .985) 57%, rgba(42, 8, 20, .95)); box-shadow: 0 17px 38px rgba(0, 0, 0, .3), 0 5px 24px rgba(var(--dmas-red-rgb), .07), inset 0 1px rgba(255, 255, 255, .105), inset 0 -1px rgba(0, 0, 0, .2); text-align: right; cursor: pointer; transform: translateZ(0); transition: transform .2s var(--dmas-ease), border-color .2s ease, box-shadow .2s ease; }
    .dmas__mobile-trigger::before { content: ""; position: absolute; z-index: 1; top: 0; right: 9%; left: 9%; height: 1px; border-radius: 99px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), #ff7181, var(--dmas-red), #ff7181, rgba(255, 255, 255, .26), transparent); box-shadow: 0 0 12px rgba(var(--dmas-red-rgb), .58); pointer-events: none; }
    .dmas__mobile-trigger::after { content: ""; position: absolute; z-index: 0; top: 9px; bottom: 8px; left: 12px; width: 90px; opacity: .16; background-image: radial-gradient(circle, rgba(255, 255, 255, .85) 1px, transparent 1.5px); background-size: 13px 13px; transform: rotate(-8deg); pointer-events: none; }
    .dmas__mobile-trigger > * { position: relative; z-index: 2; }
    .dmas__mobile-trigger-icon { position: relative; width: 47px; height: 47px; display: grid; place-items: center; border: 1px solid rgba(var(--dmas-red-rgb), .34); border-radius: 16px; color: #ff8794; background: radial-gradient(circle at 35% 20%, rgba(255, 255, 255, .11), transparent 38%), linear-gradient(145deg, rgba(var(--dmas-red-rgb), .21), rgba(var(--dmas-red-rgb), .065)); box-shadow: 0 9px 20px rgba(var(--dmas-red-rgb), .11), inset 0 1px rgba(255, 255, 255, .13); }
    .dmas__mobile-trigger-icon svg { width: 23px; height: 23px; }
    .dmas__mobile-trigger-icon i { position: absolute; top: 5px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: #ffbd52; box-shadow: 0 0 9px rgba(255, 189, 82, .8), -28px 29px 0 -1px rgba(255, 255, 255, .42); }
    .dmas__mobile-trigger > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
    .dmas__mobile-trigger small { color: #ff7f8d; font-size: 9px; font-weight: 900; }
    .dmas__mobile-trigger b { overflow: hidden; color: #fff; font-size: 13px; font-weight: 920; text-overflow: ellipsis; white-space: nowrap; }
    .dmas__mobile-arrow { width: 9px; height: 9px; border-left: 2px solid #8e99aa; border-bottom: 2px solid #8e99aa; transform: rotate(45deg); }
    .dmas__mobile-trigger:active { transform: scale(.985) translateZ(0); border-color: rgba(var(--dmas-red-rgb), .32); box-shadow: 0 11px 26px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .12); }
    .dmas__backdrop { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
    .dmas__sheet-body .dmas__query-shell { grid-template-columns: auto minmax(0, 1fr); min-height: 62px; padding: 5px 7px 5px 12px; border-radius: 18px; }
    .dmas__sheet-body .dmas__query-icon { width: 43px; height: 43px; border-radius: 14px; }
    .dmas__sheet-body .dmas__shortcut, .dmas__sheet-body .dmas__query-shell > .dmas__submit { display: none; }
    .dmas__types { width: 100%; display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); }
    .dmas__types-label { padding-inline: 7px; font-size: 0; }
    .dmas__types-label svg { width: 18px; height: 18px; }
    .dmas__types button { min-width: 0; padding-inline: 5px; }
    .dmas__filter-grid { grid-template-columns: 1fr; }
    .dmas__field, .dmas__toggle { min-height: 68px; grid-template-columns: auto minmax(0, 1fr) auto; }
    .dmas__field .dmas__chevron { grid-column: 3; }
    .dmas__field-copy b { font-size: 11px; }
    .dmas__mobile-action { margin-top: 13px; display: block; }
    .dmas__submit--wide { width: 100%; height: 56px; }
}

@media (max-width: 380px) {
    .dmas__sheet-head, .dmas__sheet-body { padding-inline: 13px; }
    .dmas__sheet-head strong { font-size: 13px; }
    .dmas__types button { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    .dmas *, .dmas *::before, .dmas *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@keyframes dmasDot {
    0%, 100% { opacity: .2; transform: scale(.75); }
    50% { opacity: .75; transform: scale(1.15); }
}

@keyframes dmasShine {
    0%, 58% { transform: translateX(-190px) rotate(18deg); opacity: 0; }
    66% { opacity: .8; }
    82%, 100% { transform: translateX(250px) rotate(18deg); opacity: 0; }
}

/* v3.2 — یک لانچر کم‌ارتفاع، هم‌خط با هدر ۱۳۶۶ و فرم کامل فقط داخل مدال. */
.dmas {
    width: min(calc(var(--dmui-page-width, 100vw) - 34px), 1366px);
    margin-inline: calc((100% - min(calc(var(--dmui-page-width, 100vw) - 34px), 1366px)) / 2);
}

.dmas__card {
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    contain: layout style;
}

.dmas__card::before, .dmas__ambient, .dmas__head, .dmas__desktop-form { display: none; }

.dmas__mobile-trigger {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    min-height: 66px;
    padding: 8px 14px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, .135);
    border-top-color: rgba(255, 255, 255, .23);
    border-radius: 21px;
    corner-shape: squircle;
    color: #fff;
    background:
        radial-gradient(circle at 91% -52%, rgba(var(--dmas-red-rgb), .3), transparent 45%),
        radial-gradient(circle at 4% 150%, rgba(54, 112, 184, .18), transparent 38%),
        linear-gradient(132deg, rgba(20, 39, 66, .96), rgba(5, 12, 25, .985) 57%, rgba(42, 8, 20, .95));
    box-shadow: 0 14px 32px rgba(0, 0, 0, .27), 0 5px 20px rgba(var(--dmas-red-rgb), .07), inset 0 1px rgba(255, 255, 255, .105);
    text-align: right;
    cursor: pointer;
    transform: translateZ(0);
    transition: transform .2s var(--dmas-ease), border-color .2s ease, box-shadow .2s ease;
}

.dmas__mobile-trigger::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    right: 7%;
    left: 7%;
    height: 1px;
    border-radius: 99px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), #ff7181, var(--dmas-red), #ff7181, rgba(255, 255, 255, .26), transparent);
    box-shadow: 0 0 12px rgba(var(--dmas-red-rgb), .58);
    pointer-events: none;
}

.dmas__mobile-trigger::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 8px;
    bottom: 8px;
    left: 18px;
    width: 118px;
    opacity: .14;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .85) 1px, transparent 1.5px);
    background-size: 14px 14px;
    transform: rotate(-8deg);
    pointer-events: none;
}

.dmas__mobile-trigger > * { position: relative; z-index: 2; }
.dmas__mobile-trigger-icon { position: relative; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(var(--dmas-red-rgb), .34); border-radius: 16px; color: #ff8794; background: radial-gradient(circle at 35% 20%, rgba(255, 255, 255, .11), transparent 38%), linear-gradient(145deg, rgba(var(--dmas-red-rgb), .21), rgba(var(--dmas-red-rgb), .065)); box-shadow: 0 9px 20px rgba(var(--dmas-red-rgb), .11), inset 0 1px rgba(255, 255, 255, .13); }
.dmas__mobile-trigger-icon svg { width: 23px; height: 23px; }
.dmas__mobile-trigger-icon i { position: absolute; top: 5px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: #ffbd52; box-shadow: 0 0 9px rgba(255, 189, 82, .8), -29px 30px 0 -1px rgba(255, 255, 255, .42); }
.dmas__mobile-trigger > span:nth-child(2) { min-width: 0; display: block; }
.dmas__mobile-trigger b { display: block; overflow: hidden; color: #fff; font-size: clamp(13px, 1vw, 15px); font-weight: 920; text-overflow: ellipsis; white-space: nowrap; }
.dmas__advanced-cta { min-height: 36px; padding: 0 12px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid rgba(var(--dmas-red-rgb), .18); border-radius: 999px; color: #dfe6f2; background: rgba(var(--dmas-red-rgb), .07); box-shadow: inset 0 1px rgba(255, 255, 255, .045); white-space: nowrap; }
.dmas__advanced-label { font-size: 10px; font-weight: 880; }
.dmas__mobile-arrow { width: 9px; height: 9px; border-left: 2px solid #9da8ba; border-bottom: 2px solid #9da8ba; transform: rotate(45deg); }

@media (hover: hover) {
    .dmas__mobile-trigger:hover { transform: translateY(-2px) translateZ(0); border-color: rgba(var(--dmas-red-rgb), .34); box-shadow: 0 18px 40px rgba(0, 0, 0, .31), 0 7px 25px rgba(var(--dmas-red-rgb), .12), inset 0 1px rgba(255, 255, 255, .13); }
}

@media (min-width: 768px) {
    .dmas__modal { place-items: center; padding: 24px; }
    .dmas__sheet {
        width: min(calc(100vw - 48px), 860px);
        max-height: min(86dvh, 720px);
        border-bottom: 1px solid rgba(var(--dmas-red-rgb), .2);
        border-radius: 30px;
        corner-shape: squircle;
        box-shadow: 0 35px 100px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .025), inset 0 1px rgba(255, 255, 255, .09);
        opacity: 0;
        transform: translate3d(0, 18px, 0) scale(.985);
        transition: transform .28s var(--dmas-ease), opacity .2s ease;
    }
    .dmas__modal.is-open .dmas__sheet { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
    .dmas__handle { display: none; }
    .dmas__sheet-head { min-height: 76px; padding: 12px 20px; }
    .dmas__sheet-head strong { font-size: 17px; }
    .dmas__sheet-body { max-height: calc(min(86dvh, 720px) - 77px); padding: 20px; }
}

@media (max-width: 767px) {
    .dmas { width: min(calc(var(--dmui-page-width, 100vw) - 18px), 430px); margin-inline: calc((100% - min(calc(var(--dmui-page-width, 100vw) - 18px), 430px)) / 2); }
    .dmas__mobile-trigger { min-height: 72px; padding: 9px 12px; }
    .dmas__mobile-trigger b { font-size: 13px; }
    .dmas__advanced-cta { min-height: 34px; padding: 0 10px; }
    .dmas__advanced-label { display: none; }
}

/* حالت سبک فقط روی دستگاه ضعیف یا صفحه‌ای که افت فریم واقعی دارد فعال می‌شود. */
html.dmui-low-power .dmas *,
html.dmui-low-power .dmas *::before,
html.dmui-low-power .dmas *::after {
    animation: none !important;
    scroll-behavior: auto !important;
}

html.dmui-low-power .dmas__backdrop {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: rgba(1, 5, 13, .94);
}

html.dmui-low-power .dmas__sheet { transition-duration: .01ms !important; }

/* v3.5.0 — 30% larger, readable typography across the search widget. */
.dmas__head-copy small,
.dmas__sheet-head small { font-size: 12px; }
.dmas__head-copy strong { font-size: clamp(26px, 2.6vw, 36px); }
.dmas__head-copy em { font-size: clamp(14px, 1.3vw, 17px); }
.dmas__live-pill { font-size: 13px; }
.dmas__query-shell input[type="search"] { font-size: 21px; }
.dmas__submit { font-size: 16px; }
.dmas__types-label { font-size: 12px; }
.dmas__types button { font-size: 13px; }
.dmas__field-copy small { font-size: 11px; }
.dmas__field-copy b { font-size: 13px; }
.dmas__sheet-head strong { font-size: 22px; }
.dmas__mobile-trigger small { font-size: 12px; }
.dmas__mobile-trigger b { font-size: clamp(17px, 1.3vw, 20px); }
.dmas__advanced-label { font-size: 13px; }

@media (max-width: 767px) {
    .dmas__mobile-trigger b { font-size: 17px; }
    .dmas__field-copy b { font-size: 14px; }
    .dmas__types button { font-size: 12px; }
    .dmas__sheet-head strong { font-size: 20px; }
}

@media (max-width: 380px) {
    .dmas__sheet-head strong { font-size: 17px; }
    .dmas__types button { font-size: 12px; }
}
