:root {
    --arm-modal-bg: #934141;
    --arm-text: #ffffff;
    --arm-overlay: #ffffff;
    --arm-radius: 18px;
    --arm-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    --arm-border: rgba(255, 255, 255, .18);
    --arm-muted: rgba(255, 255, 255, .75);
}

body.arm-modal-open {
    overflow: hidden !important;
    touch-action: none;
}

#arm-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: var(--arm-overlay);
    z-index: 999999;
    display: none;
}

#arm-overlay.arm-active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

#arm-modal {
    width: min(500px, 100%);
    max-height: 90vh;
    background: var(--arm-modal-bg);
    color: var(--arm-text);
    border-radius: var(--arm-radius);
    box-shadow: var(--arm-shadow);
    border: 1px solid var(--arm-border);
    overflow: hidden;
}

.arm-modal__inner {
    padding: 22px 22px 18px;
}

.arm-title {
    color: var(--arm-text, #fff);
    font-size: 22px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 8px 0;
}

.arm-subtitle {
    margin: 0 0 18px 0;
    color: var(--arm-muted);
    font-size: 14px;
    line-height: 1.45;
}

.arm-field {
    position: relative;
}

.arm-input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    padding: 14px 44px 14px 14px;
    outline: none;
    font-size: 15px;
    transition: .2s ease;
}

.arm-input::placeholder {
    color: rgba(255, 255, 255, .65);
}

.arm-input:focus {
    border-color: rgba(255, 255, 255, .6);
    background: rgba(255, 255, 255, .16);
}

.arm-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    opacity: .85;
    pointer-events: none;
}

.arm-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    background: rgba(30, 12, 12, .55);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: none;
    max-height: 260px;
    z-index: 2;
}

.arm-dropdown.arm-open {
    display: block;
}

.arm-item {
    padding: 12px 12px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.arm-item:last-child {
    border-bottom: 0;
}

.arm-item:hover {
    background: rgba(255, 255, 255, .10);
}

.arm-badge {
    font-size: 12px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .18);
}

.arm-item strong {
    font-size: 14px;
    font-weight: 750;
}

.arm-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.arm-btn {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 14px 14px;
    cursor: pointer;
    font-weight: 800;
    font-size: 14px;
    transition: .2s ease;
}

.arm-btn--primary {
    background: #ffffff;
    color: #3a1414;
}

.arm-btn--primary:hover {
    transform: translateY(-1px);
}

.arm-btn--primary:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

.arm-btn--ghost {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .18);
}

.arm-btn--ghost:hover {
    background: rgba(255, 255, 255, .16);
}

.arm-note {
    margin-top: 14px;
    font-size: 12px;
    color: rgba(255, 255, 255, .75);
    line-height: 1.4;
}

.arm-error {
    margin-top: 10px;
    font-size: 13px;
    color: #ffe5e5;
    font-weight: 700;
    display: none;
}

.arm-error.arm-show {
    display: block;
}

.arm-footer {
    padding: 14px 22px 18px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .75);
    font-size: 12px;
}

.arm-pill {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .10);
    font-weight: 800;
    font-size: 11px;
    color: rgba(255, 255, 255, .92);
}