/* ===== SELECT + AUTOCOMPLETE ===== */
.input-group-text
{
    background: #1b1f27 !important;
    border: 1px solid #2b303a !important;
}


/* ===== CONFIRM CODE ===== */
.confirm-code-wrapper {
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: center;
}
.confirm-code-input {
    width: 52px;
    height: 62px;
    font-size: 28px;
    font-weight: 600;
    border-radius: 12px;
    text-align: center;
    padding: 0;
    background: #1b1f27 !important;
    border: 2px solid #2b303a !important;
    color: #e4e6eb !important;
    transition: all 0.2s ease;
    caret-color: #6403FF;
    flex-shrink: 0;
}
.confirm-code-input:focus {
    border-color: #6403FF !important;
    box-shadow: 0 0 0 4px rgba(100, 3, 255, 0.15) !important;
    background: #1f2430 !important;
    transform: translateY(-2px);
    outline: none;
}
.confirm-code-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.confirm-code-input.filled {
    border-color: #28a745 !important;
    background: #1a2a1a !important;
    animation: codePop 0.25s ease;
}
.confirm-code-input.error {
    border-color: #dc3545 !important;
    background: #2a1a1a !important;
    animation: codeShake 0.4s ease;
}

/* Скрываем стрелки у number-полей, если используем */
.confirm-code-input::-webkit-outer-spin-button,
.confirm-code-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.confirm-code-input[type=text] {
    -moz-appearance: textfield;
}

/* Для IE */
.confirm-code-input::-ms-clear,
.confirm-code-input::-ms-reveal {
    display: none;
}

/* Анимации */
@keyframes codePop {
    0% { transform: scale(0.9); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}
@keyframes codeShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

/* ===== АДАПТИВ ДЛЯ МОБИЛЫ ===== */
@media (max-width: 768px) {
    .confirm-code-wrapper
    {
        gap: 6px;
    }
    .confirm-code-input
    {
        width: 44px;
        height: 52px;
        font-size: 22px;
        border-radius: 10px;
        border-width: 2px;
    }
}

/* Телефоны */
@media (max-width: 480px)
{
    .confirm-code-wrapper {
        gap: 4px;
    }
    .confirm-code-input {
        width: 36px;
        height: 44px;
        font-size: 18px;
        border-radius: 8px;
        border-width: 1.5px;
    }
    .confirm-code-input:focus {
        transform: translateY(-1px);
        box-shadow: 0 0 0 3px rgba(100, 3, 255, 0.12) !important;
    }
}

/* Очень маленькие телефоны (до 360px) */
@media (max-width: 380px)
{
    .confirm-code-wrapper {
        gap: 3px;
    }
    .confirm-code-input {
        width: 30px;
        height: 38px;
        font-size: 15px;
        border-radius: 6px;
        border-width: 1.5px;
    }
}

/* Альбомная ориентация на телефонах */
@media (max-height: 500px) and (orientation: landscape)
{
    .confirm-code-input {
        width: 38px;
        height: 44px;
        font-size: 18px;
    }
    .confirm-code-wrapper {
        gap: 4px;
    }
}

/* Специально для очень широких экранов — ограничиваем размер */
@media (min-width: 1200px)
{
    .confirm-code-input {
        width: 60px;
        height: 70px;
        font-size: 32px;
    }
    .confirm-code-wrapper {
        gap: 10px;
    }
}

/* Скрываем ненужные элементы на мобилах */
@media (max-width: 480px) {
    .confirm-code-input::-webkit-outer-spin-button,
    .confirm-code-input::-webkit-inner-spin-button
    {
        -webkit-appearance: none;
        margin: 0;
    }
    .confirm-code-input[type=text] {
        -moz-appearance: textfield;
    }
}

/* Увеличиваем область касания */
.confirm-code-input
{
    touch-action: manipulation;
    cursor: pointer;
}

/* Для устройств с экраном 320px (iPhone SE) */
@media (max-width: 340px)
{
    .confirm-code-wrapper
    {
        gap: 2px;
    }
    .confirm-code-input
    {
        width: 28px;
        height: 34px;
        font-size: 14px;
        border-radius: 4px;
    }
}