.dlha-download-card {
    --dlha-blue: #2563eb;
    --dlha-blue-dark: #1d4ed8;
    --dlha-blue-soft: #eff6ff;
    --dlha-blue-border: #bfdbfe;
    --dlha-text: #172033;
    --dlha-muted: #64748b;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 28px 0;
    padding: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    color: var(--dlha-text);
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    box-shadow: 0 14px 38px rgba(37, 99, 235, .09);
    box-sizing: border-box;
    font-family: inherit;
    scrollbar-width: thin;
    scrollbar-color: #bfdbfe transparent;
}

.dlha-download-card::-webkit-scrollbar {
    height: 5px;
}

.dlha-download-card::-webkit-scrollbar-thumb {
    background: #bfdbfe;
    border-radius: 999px;
}

.dlha-download-card *,
.dlha-download-card *::before,
.dlha-download-card *::after {
    box-sizing: border-box;
}

.dlha-download-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 9px 14px;
    color: #1e40af !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid var(--dlha-blue-border);
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    text-align: right;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.dlha-download-button:hover {
    color: #1e3a8a !important;
    transform: translateY(-1px);
    border-color: #93c5fd;
    background: #dbeafe;
    box-shadow: 0 9px 20px rgba(37, 99, 235, .14);
}

.dlha-download-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    color: #fff;
    background: var(--dlha-blue);
    border-radius: 9px;
    box-shadow: 0 7px 15px rgba(37, 99, 235, .24);
}

.dlha-download-button-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.dlha-download-button strong {
    display: block;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    white-space: nowrap;
}

.dlha-download-button small {
    display: none;
}

.dlha-download-arrow {
    font-size: 18px;
    line-height: 1;
    transition: transform .2s ease;
}

.dlha-download-button:hover .dlha-download-arrow {
    transform: translateX(-3px);
}

.dlha-download-meta-grid {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.dlha-meta-item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 48px;
    padding: 8px 12px;
    background: #f8fbff;
    border: 1px solid #e0ecff;
    border-radius: 11px;
    white-space: nowrap;
}

.dlha-meta-wide {
    grid-column: auto;
}

.dlha-meta-label {
    display: inline;
    margin: 0;
    color: var(--dlha-muted);
    font-size: 12px;
    white-space: nowrap;
}

.dlha-meta-item strong {
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.dlha-password-item {
    justify-content: flex-start;
    gap: 8px;
    background: #f8fbff;
}

.dlha-password-item > div {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.dlha-password-value {
    display: inline-block;
    padding: 4px 8px;
    color: #1e40af;
    background: #fff;
    border: 1px dashed #93c5fd;
    border-radius: 7px;
    direction: ltr;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    user-select: all;
    white-space: nowrap;
}

.dlha-copy-password {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 32px;
    padding: 5px 9px;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    white-space: nowrap;
    transition: .2s ease;
}

.dlha-copy-password:hover,
.dlha-copy-password.is-copied {
    color: #fff;
    background: var(--dlha-blue);
    border-color: var(--dlha-blue);
}

.dlha-copy-password svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.dlha-copy-toast {
    position: fixed;
    right: 50%;
    bottom: 24px;
    z-index: 1000000;
    padding: 8px 12px;
    color: #fff;
    background: rgba(30, 64, 175, .96);
    border-radius: 999px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translate(50%, 10px);
    transition: .22s ease;
}

.dlha-copy-toast.is-visible {
    opacity: 1;
    transform: translate(50%, 0);
}

body.dlha-modal-open {
    overflow: hidden;
}

.dlha-modal,
.dlha-modal * {
    box-sizing: border-box;
}

.dlha-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}

.dlha-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dlha-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .62);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.dlha-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 480px);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 30px;
    color: #172033;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .30);
    transform: translateY(18px) scale(.98);
    transition: transform .24s ease;
    font-family: inherit;
}

.dlha-modal.is-open .dlha-modal-dialog {
    transform: translateY(0) scale(1);
}

.dlha-modal-close {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: #64748b;
    background: #f1f5f9;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-family: inherit;
    font-size: 25px;
    line-height: 1;
    transition: .2s ease;
}

.dlha-modal-close:hover {
    color: #1d4ed8;
    background: #eff6ff;
    transform: rotate(8deg);
}

.dlha-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 15px;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 19px;
    box-shadow: 0 13px 28px rgba(37, 99, 235, .26);
}

.dlha-modal-icon svg {
    width: 29px;
    height: 29px;
    fill: currentColor;
}

.dlha-modal-dialog h3 {
    margin: 0 0 8px;
    color: #1e3a8a;
    font-size: 22px;
    line-height: 1.6;
}

.dlha-modal-description {
    margin: 0 0 23px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.9;
}

.dlha-registration-form label {
    display: block;
    margin: 0 0 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.dlha-input-wrap {
    position: relative;
    margin-bottom: 16px;
}

.dlha-input-wrap svg {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 20px;
    height: 20px;
    color: #60a5fa;
    fill: currentColor;
    pointer-events: none;
    transform: translateY(-50%);
}

.dlha-input-wrap input {
    width: 100%;
    height: 52px;
    margin: 0;
    padding: 0 45px 0 14px;
    color: #172033;
    background: #f8fbff;
    border: 1px solid #dbeafe;
    border-radius: 13px;
    outline: none;
    box-shadow: none;
    font-family: inherit;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.dlha-input-wrap input:focus {
    background: #fff;
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .12);
}

.dlha-input-wrap input[type="tel"] {
    direction: ltr;
    text-align: left;
    padding-right: 45px;
}

.dlha-form-message {
    display: none;
    margin: 3px 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.8;
}

.dlha-form-message.is-error,
.dlha-form-message.is-success {
    display: block;
}

.dlha-form-message.is-error {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.dlha-form-message.is-success {
    color: #1e40af;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.dlha-submit-download {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    padding: 12px 18px;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: 0;
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(37, 99, 235, .24);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.dlha-submit-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 29px rgba(37, 99, 235, .31);
}

.dlha-registration-form.is-loading .dlha-submit-download {
    cursor: wait;
    opacity: .78;
}

.dlha-submit-spinner {
    display: none;
    width: 19px;
    height: 19px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: dlha-spin .7s linear infinite;
}

.dlha-registration-form.is-loading .dlha-submit-label {
    display: none;
}

.dlha-registration-form.is-loading .dlha-submit-spinner {
    display: block;
}

@keyframes dlha-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 560px) {
    .dlha-download-card {
        gap: 8px;
        padding: 8px;
        border-radius: 14px;
    }

    .dlha-download-button,
    .dlha-meta-item {
        min-height: 44px;
    }

    .dlha-download-button {
        padding: 7px 11px;
    }

    .dlha-download-button-icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .dlha-download-button strong,
    .dlha-meta-item strong {
        font-size: 12px;
    }

    .dlha-meta-label {
        font-size: 11px;
    }

    .dlha-modal {
        align-items: flex-end;
        padding: 10px;
    }

    .dlha-modal-dialog {
        width: 100%;
        max-height: calc(100vh - 20px);
        padding: 25px 18px 20px;
        border-radius: 22px 22px 16px 16px;
        transform: translateY(32px);
    }

    .dlha-modal-icon {
        width: 54px;
        height: 54px;
        border-radius: 16px;
    }

    .dlha-modal-dialog h3 {
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dlha-modal,
    .dlha-modal-dialog,
    .dlha-modal-close,
    .dlha-submit-download,
    .dlha-download-button {
        transition: none;
    }
}
