/* 
 * Стили личного кабинета
 * Mobile-first, адаптивный дизайн
 */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fa;
    color: #2c3e50;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 500px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 24px;
}

.header h1 {
    font-size: 24px;
    color: #0284c7;
    margin-bottom: 4px;
}

.header .subtitle {
    color: #64748b;
    font-size: 14px;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Формы */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: #334155;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #0284c7;
}

.form-group .hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary {
    background: #0284c7;
    color: #fff;
}

.btn-primary:hover {
    background: #0369a1;
}

.btn-secondary {
    background: #94a3b8;
    color: #fff;
}

.btn-secondary:hover {
    background: #64748b;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* Сообщения */
.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.message-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.message-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

.message-info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0284c7;
}

/* Список возможностей */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Подтверждение */
.confirm-instruction {
    text-align: center;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 16px;
}

.confirm-instruction .phone-big {
    font-size: 20px;
    font-weight: 700;
    margin: 12px 0;
}

.confirm-instruction .phone-big a {
    color: #0284c7;
    text-decoration: none;
}

.confirm-data {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.confirm-data .data-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.confirm-data .data-row:last-child {
    border-bottom: none;
}

.confirm-data .label {
    color: #64748b;
    font-size: 14px;
}

.confirm-data .value {
    font-weight: 600;
    color: #1e293b;
}

.confirm-data .value.code {
    font-size: 18px;
    letter-spacing: 4px;
    color: #0284c7;
}

.confirm-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.confirm-actions .btn {
    flex: 1;
    text-align: center;
}

/* Polling статус */
.poll-status {
    text-align: center;
    padding: 12px;
    background: #f0f9ff;
    border-radius: 8px;
    color: #0284c7;
    font-size: 14px;
}

.poll-status .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #0284c7;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

.poll-result {
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 12px;
}

.poll-result.success {
    background: #f0fdf4;
    color: #16a34a;
}

.poll-result.error {
    background: #fef2f2;
    color: #dc2626;
}

/* Dashboard */
.dashboard-wip {
    text-align: center;
}

.wip-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.quick-actions {
    text-align: center;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

/* Footer */
.footer {
    text-align: center;
    color: #64748b;
    font-size: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

/* Адаптив для очень маленьких экранов */
@media (max-width: 360px) {
    body {
        padding: 12px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .confirm-actions {
        flex-direction: column;
    }
}