.hdv2-modal,
.hdv2-cd-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
}

.hdv2-modal[hidden],
.hdv2-cd-modal[hidden] {
    display: none !important;
}

.hdv2-modal__backdrop,
.hdv2-cd-modal__backdrop {
    position: absolute;
    inset: 0;
    background: hsl(240 10% 8% / 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: hdv2CdModalFade 0.18s ease-out;
}

.hdv2-modal__dialog,
.hdv2-cd-modal__dialog {
    position: relative;
    background: var(--hdv2-cah-card);
    border: 1px solid var(--hdv2-cah-border);
    border-radius: 0.75rem;
    box-shadow: 0 20px 50px hsl(240 10% 4% / 0.25), 0 2px 6px hsl(240 10% 4% / 0.08);
    width: 100%;
    max-width: min(var(--hdv2-modal-max-w, 36rem), calc(100vw - 2rem));
    max-height: min(var(--hdv2-modal-max-h, calc(100vh - 2rem)), calc(100vh - 2rem));
    max-height: min(var(--hdv2-modal-max-h, calc(100dvh - 2rem)), calc(100dvh - 2rem));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: hdv2CdModalPop 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hdv2-modal--sm .hdv2-modal__dialog,
.hdv2-cd-modal--sm .hdv2-cd-modal__dialog {
    --hdv2-modal-max-w: 28rem;
}

.hdv2-modal--md .hdv2-modal__dialog,
.hdv2-cd-modal--md .hdv2-cd-modal__dialog {
    --hdv2-modal-max-w: 44rem;
}

.hdv2-modal--lg .hdv2-modal__dialog,
.hdv2-cd-modal--lg .hdv2-cd-modal__dialog {
    --hdv2-modal-max-w: 56rem;
}

.hdv2-modal--w20 .hdv2-modal__dialog,
.hdv2-cd-modal--w20 .hdv2-cd-modal__dialog { --hdv2-modal-max-w: 20rem; }
.hdv2-modal--w24 .hdv2-modal__dialog,
.hdv2-cd-modal--w24 .hdv2-cd-modal__dialog { --hdv2-modal-max-w: 24rem; }
.hdv2-modal--w28 .hdv2-modal__dialog,
.hdv2-cd-modal--w28 .hdv2-cd-modal__dialog { --hdv2-modal-max-w: 28rem; }
.hdv2-modal--w32 .hdv2-modal__dialog,
.hdv2-cd-modal--w32 .hdv2-cd-modal__dialog { --hdv2-modal-max-w: 32rem; }
.hdv2-modal--w36 .hdv2-modal__dialog,
.hdv2-cd-modal--w36 .hdv2-cd-modal__dialog { --hdv2-modal-max-w: 36rem; }
.hdv2-modal--w40 .hdv2-modal__dialog,
.hdv2-cd-modal--w40 .hdv2-cd-modal__dialog { --hdv2-modal-max-w: 40rem; }
.hdv2-modal--w48 .hdv2-modal__dialog,
.hdv2-cd-modal--w48 .hdv2-cd-modal__dialog { --hdv2-modal-max-w: 48rem; }
.hdv2-modal--w56 .hdv2-modal__dialog,
.hdv2-cd-modal--w56 .hdv2-cd-modal__dialog { --hdv2-modal-max-w: 56rem; }

.hdv2-modal--p30 .hdv2-modal__dialog,
.hdv2-cd-modal--p30 .hdv2-cd-modal__dialog { --hdv2-modal-max-w: 30vw; }
.hdv2-modal--p40 .hdv2-modal__dialog,
.hdv2-cd-modal--p40 .hdv2-cd-modal__dialog { --hdv2-modal-max-w: 40vw; }
.hdv2-modal--p50 .hdv2-modal__dialog,
.hdv2-cd-modal--p50 .hdv2-cd-modal__dialog { --hdv2-modal-max-w: 50vw; }
.hdv2-modal--p60 .hdv2-modal__dialog,
.hdv2-cd-modal--p60 .hdv2-cd-modal__dialog { --hdv2-modal-max-w: 60vw; }
.hdv2-modal--p70 .hdv2-modal__dialog,
.hdv2-cd-modal--p70 .hdv2-cd-modal__dialog { --hdv2-modal-max-w: 70vw; }
.hdv2-modal--p80 .hdv2-modal__dialog,
.hdv2-cd-modal--p80 .hdv2-cd-modal__dialog { --hdv2-modal-max-w: 80vw; }

.hdv2-modal__header,
.hdv2-cd-modal__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--hdv2-cah-border);
}

.hdv2-modal__title,
.hdv2-cd-modal__title {
    margin: 0;
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: var(--hdv2-cah-fg);
    line-height: 1.4;
}

.hdv2-modal__close,
.hdv2-cd-modal__close {
    width: 2rem;
    height: 2rem;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0.45rem;
    color: var(--hdv2-cah-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.hdv2-modal__close:hover,
.hdv2-cd-modal__close:hover {
    background: var(--hdv2-cah-accent);
    color: var(--hdv2-cah-fg);
}

.hdv2-modal__close svg,
.hdv2-cd-modal__close svg {
    width: 1.05rem;
    height: 1.05rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

.hdv2-modal__body,
.hdv2-cd-modal__body {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
    color: var(--hdv2-cah-fg);
    font-size: 0.92rem;
    line-height: 1.55;
}

.hdv2-modal__body p,
.hdv2-cd-modal__body p {
    margin: 0 0 0.85rem;
    color: var(--hdv2-cah-fg);
}

.hdv2-modal__body p:last-child,
.hdv2-cd-modal__body p:last-child {
    margin-bottom: 0;
}

.hdv2-modal__body h2,
.hdv2-cd-modal__body h2,
.hdv2-modal__body h3,
.hdv2-cd-modal__body h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--hdv2-cah-fg);
}

.hdv2-modal__body label,
.hdv2-cd-modal__body label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--hdv2-cah-fg);
    margin: 0 0 0.35rem;
}

.hdv2-modal__body *,
.hdv2-cd-modal__body *,
.hdv2-modal__body *::before,
.hdv2-cd-modal__body *::before,
.hdv2-modal__body *::after,
.hdv2-cd-modal__body *::after {
    box-sizing: border-box;
}

.hdv2-modal__body .form-horizontal .form-group,
.hdv2-cd-modal__body .form-horizontal .form-group {
    display: block;
}

.hdv2-modal__body .form-horizontal .control-label,
.hdv2-cd-modal__body .form-horizontal .control-label,
.hdv2-modal__body .form-horizontal [class*="col-"],
.hdv2-cd-modal__body .form-horizontal [class*="col-"] {
    float: none;
    display: block;
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
}

.hdv2-modal__body input[type="text"],
.hdv2-cd-modal__body input[type="text"],
.hdv2-modal__body input[type="password"],
.hdv2-cd-modal__body input[type="password"],
.hdv2-modal__body input[type="email"],
.hdv2-cd-modal__body input[type="email"],
.hdv2-modal__body input[type="tel"],
.hdv2-cd-modal__body input[type="tel"],
.hdv2-modal__body input[type="number"],
.hdv2-cd-modal__body input[type="number"],
.hdv2-modal__body select,
.hdv2-cd-modal__body select,
.hdv2-modal__body textarea,
.hdv2-cd-modal__body textarea {
    width: 100%;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--hdv2-cah-border);
    border-radius: 0.5rem;
    background: var(--hdv2-cah-bg);
    color: var(--hdv2-cah-fg);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    margin-bottom: 0.85rem;
}

.hdv2-modal__body input[type="password"],
.hdv2-cd-modal__body input[type="password"],
.hdv2-modal__body input[type="tel"],
.hdv2-cd-modal__body input[type="tel"],
.hdv2-modal__body input[type="number"],
.hdv2-cd-modal__body input[type="number"] {
    max-width: 20rem;
}

.hdv2-modal__body input:focus,
.hdv2-cd-modal__body input:focus,
.hdv2-modal__body select:focus,
.hdv2-cd-modal__body select:focus,
.hdv2-modal__body textarea:focus,
.hdv2-cd-modal__body textarea:focus {
    border-color: hsl(217.2 91.2% 59.8%);
    box-shadow: 0 0 0 3px hsl(217 91% 60% / 0.15);
}

.hdv2-modal__body .twofa-module,
.hdv2-cd-modal__body .twofa-module,
.hdv2-modal__body .twofamoduleslist,
.hdv2-cd-modal__body .twofamoduleslist,
.hdv2-modal__body fieldset,
.hdv2-cd-modal__body fieldset,
.hdv2-modal__body .form-group,
.hdv2-cd-modal__body .form-group {
    margin-bottom: 0.85rem;
}

.hdv2-modal__body img,
.hdv2-cd-modal__body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0.5rem auto;
}

.hdv2-modal__body .alert,
.hdv2-cd-modal__body .alert,
.hdv2-modal__body .help-block,
.hdv2-cd-modal__body .help-block {
    padding: 0.7rem 0.85rem;
    border-radius: 0.5rem;
    background: hsl(213 100% 96%);
    border: 1px solid hsl(213 100% 90%);
    color: hsl(217 80% 35%);
    font-size: 0.86rem;
    margin-bottom: 0.85rem;
}

.hdv2-modal__body .alert-success,
.hdv2-cd-modal__body .alert-success {
    background: hsl(142 70% 92%);
    border-color: hsl(142 65% 82%);
    color: hsl(142 71% 28%);
}

.hdv2-modal__body .alert-danger,
.hdv2-cd-modal__body .alert-danger,
.hdv2-modal__body .alert-error,
.hdv2-cd-modal__body .alert-error {
    background: hsl(0 85% 95%);
    border-color: hsl(0 85% 88%);
    color: hsl(0 65% 35%);
}

.hdv2-modal__body .alert-warning,
.hdv2-cd-modal__body .alert-warning {
    background: hsl(40 100% 94%);
    border-color: hsl(40 90% 84%);
    color: hsl(28 75% 30%);
}

.hdv2-modal__body a,
.hdv2-cd-modal__body a {
    color: hsl(217.2 91.2% 50%);
    text-decoration: none;
}

.hdv2-modal__body a:hover,
.hdv2-cd-modal__body a:hover {
    text-decoration: underline;
}

.hdv2-modal__body button,
.hdv2-cd-modal__body button,
.hdv2-modal__body input[type="submit"],
.hdv2-cd-modal__body input[type="submit"],
.hdv2-modal__body input[type="button"],
.hdv2-cd-modal__body input[type="button"],
.hdv2-modal__body .btn,
.hdv2-cd-modal__body .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    background: hsl(217.2 91.2% 59.8%);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.4;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    margin: 0.25rem 0;
}

.hdv2-modal__body button:hover,
.hdv2-cd-modal__body button:hover,
.hdv2-modal__body input[type="submit"]:hover,
.hdv2-cd-modal__body input[type="submit"]:hover,
.hdv2-modal__body input[type="button"]:hover,
.hdv2-cd-modal__body input[type="button"]:hover,
.hdv2-modal__body .btn:hover,
.hdv2-cd-modal__body .btn:hover {
    background: hsl(217.2 91.2% 52%);
    color: #fff;
    text-decoration: none;
}

.hdv2-modal__body .btn-default,
.hdv2-cd-modal__body .btn-default,
.hdv2-modal__body button[type="reset"],
.hdv2-cd-modal__body button[type="reset"] {
    background: var(--hdv2-cah-bg);
    border-color: var(--hdv2-cah-border);
    color: var(--hdv2-cah-fg);
}

.hdv2-modal__body .btn-default:hover,
.hdv2-cd-modal__body .btn-default:hover,
.hdv2-modal__body button[type="reset"]:hover,
.hdv2-cd-modal__body button[type="reset"]:hover {
    background: var(--hdv2-cah-accent);
    color: var(--hdv2-cah-fg);
}

.hdv2-modal__body .btn-danger,
.hdv2-cd-modal__body .btn-danger {
    background: hsl(0 78% 56%);
    border-color: hsl(0 78% 56%);
}

.hdv2-modal__body .btn-danger:hover,
.hdv2-cd-modal__body .btn-danger:hover {
    background: hsl(0 78% 48%);
    border-color: hsl(0 78% 48%);
}

.hdv2-modal__body .btn-success,
.hdv2-cd-modal__body .btn-success {
    background: hsl(142 71% 38%);
    border-color: hsl(142 71% 38%);
}

.hdv2-modal__body .btn-success:hover,
.hdv2-cd-modal__body .btn-success:hover {
    background: hsl(142 71% 32%);
    border-color: hsl(142 71% 32%);
}

.hdv2-modal__body button:disabled,
.hdv2-cd-modal__body button:disabled,
.hdv2-modal__body input:disabled,
.hdv2-cd-modal__body input:disabled,
.hdv2-modal__body .btn:disabled,
.hdv2-cd-modal__body .btn:disabled,
.hdv2-modal__body .btn[disabled],
.hdv2-cd-modal__body .btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.hdv2-modal__body .twofa-module,
.hdv2-cd-modal__body .twofa-module,
.hdv2-modal__body .twofamodule,
.hdv2-cd-modal__body .twofamodule {
    border: 1px solid var(--hdv2-cah-border);
    border-radius: 0.65rem;
    padding: 1rem;
    margin-bottom: 0.85rem;
    background: var(--hdv2-cah-bg);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.hdv2-modal__body .twofa-module:hover,
.hdv2-cd-modal__body .twofa-module:hover {
    border-color: hsl(217.2 91.2% 59.8% / 0.45);
}

.hdv2-modal__body .twofa-module.active,
.hdv2-cd-modal__body .twofa-module.active,
.hdv2-modal__body .twofa-module:has(input:checked),
.hdv2-cd-modal__body .twofa-module:has(input:checked) {
    border-color: hsl(217.2 91.2% 59.8%);
    background: hsl(213 100% 97%);
    box-shadow: 0 0 0 3px hsl(217 91% 60% / 0.1);
}

:root[data-hdv2-theme="dark"] .hdv2-modal__body .twofa-module.active,
:root[data-hdv2-theme="dark"] .hdv2-cd-modal__body .twofa-module.active,
:root[data-hdv2-theme="dark"] .hdv2-modal__body .twofa-module:has(input:checked),
:root[data-hdv2-theme="dark"] .hdv2-cd-modal__body .twofa-module:has(input:checked) {
    background: hsl(217 50% 18%);
}

.hdv2-modal__body .twofa-module input[type="radio"],
.hdv2-cd-modal__body .twofa-module input[type="radio"] {
    width: auto;
    margin: 0;
    flex-shrink: 0;
    accent-color: hsl(217.2 91.2% 59.8%);
}

.hdv2-modal__body .twofa-module img,
.hdv2-cd-modal__body .twofa-module img,
.hdv2-modal__body .twofa-module .twofa-module-icon,
.hdv2-cd-modal__body .twofa-module .twofa-module-icon {
    width: 3rem;
    height: 3rem;
    margin: 0;
    flex-shrink: 0;
}

.hdv2-modal__body .twofa-module-name,
.hdv2-cd-modal__body .twofa-module-name,
.hdv2-modal__body .twofa-module strong,
.hdv2-cd-modal__body .twofa-module strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--hdv2-cah-fg);
    margin: 0;
}

.hdv2-modal__body .twofa-module-description,
.hdv2-cd-modal__body .twofa-module-description,
.hdv2-modal__body .twofa-module small,
.hdv2-cd-modal__body .twofa-module small {
    font-size: 0.84rem;
    color: var(--hdv2-cah-muted);
    margin: 0;
    flex: 1 0 100%;
}

.hdv2-modal__body .twofa-module .btn,
.hdv2-cd-modal__body .twofa-module .btn,
.hdv2-modal__body .twofa-module button,
.hdv2-cd-modal__body .twofa-module button {
    margin-left: auto;
    flex-shrink: 0;
    align-self: center;
}

.hdv2-modal__loader,
.hdv2-cd-modal__loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 2rem 1rem;
    color: var(--hdv2-cah-muted);
    font-size: 0.9rem;
}

.hdv2-modal__spinner,
.hdv2-cd-modal__spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--hdv2-cah-border);
    border-top-color: hsl(217.2 91.2% 59.8%);
    border-radius: 50%;
    animation: hdv2CdModalSpin 0.6s linear infinite;
    display: inline-block;
    flex-shrink: 0;
}

.hdv2-modal__footer,
.hdv2-cd-modal__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid var(--hdv2-cah-border);
    background: var(--hdv2-cah-app-bg);
}

.hdv2-modal__footer-loader,
.hdv2-cd-modal__footer-loader {
    margin-right: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--hdv2-cah-muted);
    font-size: 0.82rem;
}

.hdv2-modal__footer-loader[hidden],
.hdv2-cd-modal__footer-loader[hidden] {
    display: none !important;
}

.hdv2-modal__error,
.hdv2-cd-modal__error {
    padding: 1rem;
    border-radius: 0.5rem;
    background: hsl(0 85% 95%);
    border: 1px solid hsl(0 85% 88%);
    color: hsl(0 65% 35%);
    font-size: 0.9rem;
    text-align: center;
}

.hdv2-modal__notice,
.hdv2-cd-modal__notice {
    margin: 0 0 0.85rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.55rem;
    background: hsl(48 96% 95%);
    border: 1px solid hsl(38 92% 80%);
    color: hsl(26 75% 32%);
    font-size: 0.85rem;
    line-height: 1.5;
}

:root[data-hdv2-theme="dark"] .hdv2-modal__body .alert,
:root[data-hdv2-theme="dark"] .hdv2-cd-modal__body .alert,
:root[data-hdv2-theme="dark"] .hdv2-modal__body .help-block,
:root[data-hdv2-theme="dark"] .hdv2-cd-modal__body .help-block {
    background: hsl(217 50% 18%);
    border-color: hsl(217 50% 25%);
    color: hsl(213 94% 80%);
}

:root[data-hdv2-theme="dark"] .hdv2-modal__body .alert-success,
:root[data-hdv2-theme="dark"] .hdv2-cd-modal__body .alert-success {
    background: hsl(142 50% 16%);
    border-color: hsl(142 50% 25%);
    color: hsl(142 70% 78%);
}

:root[data-hdv2-theme="dark"] .hdv2-modal__body .alert-danger,
:root[data-hdv2-theme="dark"] .hdv2-cd-modal__body .alert-danger,
:root[data-hdv2-theme="dark"] .hdv2-modal__body .alert-error,
:root[data-hdv2-theme="dark"] .hdv2-cd-modal__body .alert-error {
    background: hsl(0 40% 18%);
    border-color: hsl(0 40% 28%);
    color: hsl(0 90% 82%);
}

:root[data-hdv2-theme="dark"] .hdv2-modal__notice,
:root[data-hdv2-theme="dark"] .hdv2-cd-modal__notice {
    background: hsl(38 50% 16%);
    border-color: hsl(38 50% 28%);
    color: hsl(48 96% 82%);
}

@keyframes hdv2CdModalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes hdv2CdModalPop {
    from {
        opacity: 0;
        transform: translateY(0.5rem) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes hdv2CdModalSpin {
    to { transform: rotate(360deg); }
}

.hdv2-modal__otp,
.hdv2-cd-modal__otp {
    margin-top: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.hdv2-modal__otp-label,
.hdv2-cd-modal__otp-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--hdv2-cah-fg);
}

.hdv2-modal__otp-input,
.hdv2-cd-modal__otp-input {
    letter-spacing: 0.18em;
    font-variant-numeric: tabular-nums;
    text-align: center;
    font-size: 1.05rem;
}

.hdv2-modal__otp-resend,
.hdv2-cd-modal__otp-resend {
    align-self: flex-start;
    margin-top: 0.15rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: hsl(217.2 91.2% 59.8%);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.hdv2-modal__otp-resend:disabled,
.hdv2-cd-modal__otp-resend:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

:root[data-hdv2-theme="dark"] .hdv2-modal__otp-resend,
:root[data-hdv2-theme="dark"] .hdv2-cd-modal__otp-resend {
    color: hsl(213 94% 72%);
}

@media (max-width: 640px) {
    .hdv2-modal,
    .hdv2-cd-modal {
        padding: 0.85rem;
        align-items: center;
    }

    .hdv2-modal__dialog,
    .hdv2-cd-modal__dialog {
        max-height: min(var(--hdv2-modal-max-h, calc(100vh - 1.7rem)), calc(100vh - 1.7rem));
        max-height: min(var(--hdv2-modal-max-h, calc(100dvh - 1.7rem)), calc(100dvh - 1.7rem));
        border-radius: 0.85rem;
    }

    .hdv2-modal__header,
    .hdv2-cd-modal__header {
        padding: 0.85rem 1rem;
    }

    .hdv2-modal__body,
    .hdv2-cd-modal__body {
        padding: 1rem;
    }

    .hdv2-modal__footer,
    .hdv2-cd-modal__footer {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
    }

    .hdv2-modal__footer .hdv2-cd-btn,
    .hdv2-cd-modal__footer .hdv2-cd-btn,
    .hdv2-modal__footer .hdv2-modal__btn,
    .hdv2-cd-modal__footer .hdv2-modal__btn {
        flex: 1;
        min-width: 0;
    }
}

/* Canonical shell ek bilesenleri */

.hdv2-modal,
.hdv2-cd-modal {
    z-index: var(--hdv2-z-modal, 10050);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

html.hdv2-modal-open,
body.hdv2-modal-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}

html.hdv2-modal-open .hdv2-sidebar-inset,
html.hdv2-modal-open .hdv2-cah-main,
html.hdv2-modal-open .hdv2-cah-skeleton,
body.hdv2-modal-open .hdv2-sidebar-inset,
body.hdv2-modal-open .hdv2-cah-main,
body.hdv2-modal-open .hdv2-cah-skeleton {
    overscroll-behavior: none;
}

body.hdv2-modal-open .hdv2-theme-vote,
html.hdv2-modal-open .hdv2-theme-vote,
body.hdv2-modal-open .hdv2-home-chatgpt,
html.hdv2-modal-open .hdv2-home-chatgpt,
body.hdv2-modal-open .hdv2-a11y-trigger,
html.hdv2-modal-open .hdv2-a11y-trigger,
body.hdv2-modal-open .tawk-min-container,
html.hdv2-modal-open .tawk-min-container,
body.hdv2-modal-open #tawkchat-container,
html.hdv2-modal-open #tawkchat-container,
body.hdv2-modal-open #tawkchat-minified-wrapper,
html.hdv2-modal-open #tawkchat-minified-wrapper,
body.hdv2-modal-open #tawkchat-minified-box,
html.hdv2-modal-open #tawkchat-minified-box,
body.hdv2-modal-open #tawkchat-status-text-container,
html.hdv2-modal-open #tawkchat-status-text-container,
body.hdv2-modal-open #tawk-bubble-container,
html.hdv2-modal-open #tawk-bubble-container,
body.hdv2-modal-open .tawk-button,
html.hdv2-modal-open .tawk-button,
body.hdv2-modal-open .tawk-button-circle,
html.hdv2-modal-open .tawk-button-circle,
body.hdv2-modal-open .widget-visible,
html.hdv2-modal-open .widget-visible,
body.hdv2-modal-open [class*="tawk-min"],
html.hdv2-modal-open [class*="tawk-min"],
body.hdv2-modal-open [class*="tawk-"],
html.hdv2-modal-open [class*="tawk-"],
body.hdv2-modal-open div[id*="tawk"],
html.hdv2-modal-open div[id*="tawk"],
body.hdv2-modal-open div[class*="tawk"],
html.hdv2-modal-open div[class*="tawk"],
body.hdv2-modal-open iframe[title*="chat"],
html.hdv2-modal-open iframe[title*="chat"],
body.hdv2-modal-open iframe[title*="tawk"],
html.hdv2-modal-open iframe[title*="tawk"],
body.hdv2-modal-open iframe[src*="tawk"],
html.hdv2-modal-open iframe[src*="tawk"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

.hdv2-modal.is-open,
.hdv2-cd-modal.is-open {
    display: flex;
}

.hdv2-modal__form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.hdv2-modal__confirm-icon,
.hdv2-cd-modal__confirm-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.85rem;
    border-radius: 999px;
    background: hsl(0 85% 95%);
    color: hsl(0 65% 40%);
}

.hdv2-modal__confirm-icon svg,
.hdv2-cd-modal__confirm-icon svg {
    width: 1.35rem;
    height: 1.35rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hdv2-modal__text,
.hdv2-cd-modal__text {
    margin: 0;
    text-align: center;
    color: var(--hdv2-cah-fg);
    font-size: 0.95rem;
    line-height: 1.5;
}

.hdv2-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.4;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hdv2-modal__btn--ghost {
    background: var(--hdv2-cah-bg);
    border-color: var(--hdv2-cah-border);
    color: var(--hdv2-cah-fg);
}

.hdv2-modal__btn--ghost:hover {
    background: var(--hdv2-cah-accent);
}

.hdv2-modal__btn--primary {
    background: hsl(217.2 91.2% 59.8%);
    color: #fff;
}

.hdv2-modal__btn--primary:hover {
    background: hsl(217.2 91.2% 52%);
    color: #fff;
}

.hdv2-modal__btn--danger {
    background: hsl(0 78% 56%);
    color: #fff;
}

.hdv2-modal__btn--danger:hover {
    background: hsl(0 78% 48%);
    color: #fff;
}

.hdv2-modal__btn:disabled,
.hdv2-modal__btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.hdv2-modal__label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--hdv2-cah-fg);
    margin: 0 0 0.35rem;
}

.hdv2-modal__input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--hdv2-cah-border);
    border-radius: 0.5rem;
    background: var(--hdv2-cah-bg);
    color: var(--hdv2-cah-fg);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
}

.hdv2-modal__input:focus {
    border-color: hsl(217.2 91.2% 59.8%);
    box-shadow: 0 0 0 3px hsl(217 91% 60% / 0.15);
}

.hdv2-modal__error:not([hidden]) {
    display: block;
    margin-top: 0.65rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.5rem;
    background: hsl(0 85% 95%);
    border: 1px solid hsl(0 85% 88%);
    color: hsl(0 65% 35%);
    font-size: 0.86rem;
}

@keyframes hdv2ModalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes hdv2ModalPop {
    from {
        opacity: 0;
        transform: translateY(0.5rem) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes hdv2ModalSpin {
    to { transform: rotate(360deg); }
}
