/* Стили для SMS Activate */

.sms-history-divider {
    height: 1px;
    background: #222;
    margin: 25px 0 15px 0;
}

.sms-id {
    color: #ccc;
    font-size: 0.9em;
}

.sms-code {
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.1em;
}

.sms-waiting {
    color: #FF9800;
    font-style: italic;
    animation: smsPulse 1.5s ease-in-out infinite;
}

@keyframes smsPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Таймер */
.sms-time-ok {
    color: #4CAF50;
    font-weight: bold;
    font-family: monospace;
    font-size: 1em;
}

.sms-time-critical {
    color: #F44336;
    font-weight: bold;
    font-family: monospace;
    font-size: 1em;
    animation: smsPulse 1s ease-in-out infinite;
}

.sms-time-expired {
    color: #888;
    font-style: italic;
}

/* ========== Модалка покупки номера ========== */

.sms-buy-container {
    display: flex;
    gap: 12px;
    min-height: 350px;
    max-height: 450px;
}

.sms-buy-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sms-buy-panel-title {
    font-size: 0.85em;
    font-weight: bold;
    color: #ff3b3b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.sms-buy-search-wrap {
    position: relative;
    margin-bottom: 8px;
}

.sms-buy-search {
    width: 100%;
    padding: 8px 12px 8px 32px;
    background: #0d0d0d;
    border: 1px solid #333;
    border-radius: 6px;
    color: #f0f0f0;
    font-size: 0.9em;
    outline: none;
    box-sizing: border-box;
}

.sms-buy-search:focus {
    border-color: #ff3b3b;
}

.sms-buy-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
    pointer-events: none;
}

.sms-buy-list {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #222;
    border-radius: 6px;
    background: #0d0d0d;
}

.sms-buy-list::-webkit-scrollbar {
    width: 4px;
}

.sms-buy-list::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.sms-buy-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #1a1a1a;
    transition: background 0.15s;
    gap: 8px;
}

.sms-buy-item:last-child {
    border-bottom: none;
}

.sms-buy-item:hover {
    background: #1a1a1a;
}

.sms-buy-item-active {
    background: #2a1515 !important;
    border-left: 3px solid #ff3b3b;
    padding-left: 9px;
}

.sms-buy-item-name {
    flex: 1;
    color: #f0f0f0;
    font-size: 0.9em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sms-buy-item-code {
    color: #666;
    font-size: 0.75em;
    font-family: monospace;
}

/* Страны */
.sms-buy-country-item {
    gap: 6px;
}

.sms-buy-country-flag {
    font-size: 1.2em;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.sms-buy-country-count {
    color: #888;
    font-size: 0.8em;
    white-space: nowrap;
    flex-shrink: 0;
}

.sms-buy-country-price {
    color: #4CAF50;
    font-weight: bold;
    font-size: 0.85em;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 50px;
    text-align: right;
}

/* Инфо-блок */
.sms-buy-info {
    margin-top: 12px;
    min-height: 24px;
}

.sms-buy-info-text {
    color: #ccc;
    font-size: 0.9em;
}

.sms-buy-info-price {
    color: #4CAF50;
    font-weight: bold;
}

/* ========== Секция выбора цены ========== */

.sms-buy-price-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #222;
}

.sms-buy-price-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    max-height: 120px;
    overflow-y: auto;
    padding: 4px 0;
}

.sms-buy-price-list::-webkit-scrollbar {
    width: 4px;
}

.sms-buy-price-list::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.sms-buy-price-tier {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #0d0d0d;
    border: 1px solid #333;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.sms-buy-price-tier:hover {
    border-color: #ff3b3b;
    background: #1a1a1a;
}

.sms-buy-price-tier-active {
    border-color: #ff3b3b;
    background: #2a1515;
}

.sms-buy-price-tier-amount {
    color: #4CAF50;
    font-weight: bold;
    font-size: 0.9em;
}

.sms-buy-price-tier-count {
    color: #888;
    font-size: 0.75em;
}

/* Состояния */
.sms-buy-loading,
.sms-buy-hint {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 0.9em;
}

.sms-buy-loading {
    animation: smsPulse 1.5s ease-in-out infinite;
}

/* Расширить модалку для покупки SMS */
.itc-modal-content:has(.sms-buy-container) {
    max-width: 680px;
    width: 680px;
}
