/* Изоляция от Bootstrap 3.3.6 и шаблона */
.lu24-subscription-wrapper {
    max-width: 500px;
    margin: 30px auto;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    font-family: Arial, sans-serif;
}

.lu24-current-status, .lu24-points-info {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.lu24-plan-selector, .lu24-period-selector, .lu24-payment-method {
    margin-bottom: 20px;
}

.lu24-plan-option, .lu24-period-option, .lu24-payment-option {
    display: inline-block;
    margin: 5px;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.lu24-plan-option:hover, .lu24-period-option:hover, .lu24-payment-option:hover {
    border-color: #337ab7;
}

.lu24-plan-option input:checked + span, .lu24-period-option input:checked + span, .lu24-payment-option input:checked + span {
    font-weight: bold;
}

.lu24-plan-option {
    display: block;
    margin: 10px 0;
}

.lu24-plan-name {
    display: block;
    font-weight: 600;
}

.lu24-plan-price {
    color: #5cb85c;
    font-weight: bold;
}

.lu24-total-price {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 4px;
}

.lu24-pay-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 4px;
}

.lu24-message {
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
}

.lu24-message.success {
    color: #3c763d;
}

.lu24-message.error {
    color: #a94442;
}

.lu24-points-balance-wrapper {
    display: inline-block;
    padding: 8px 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
}

.lu24-points-value {
    font-weight: bold;
    color: #856404;
    margin-left: 5px;
}

.lu24-points-history-wrapper table {
    width: 100%;
    border-collapse: collapse;
}

.lu24-points-history-wrapper th, .lu24-points-history-wrapper td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

/* Ежедневные задания */
.lu24-daily-tasks-wrapper {
    max-width: 600px;
    margin: 30px auto;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
}

.lu24-tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.lu24-tasks-header h3 {
    margin: 0;
    font-size: 20px;
}

.lu24-balance-display {
    background: #fff3cd;
    padding: 8px 15px;
    border-radius: 4px;
    border: 1px solid #ffc107;
}

.lu24-balance-label {
    color: #856404;
    margin-right: 8px;
}

.lu24-balance-value {
    color: #856404;
    font-weight: bold;
    font-size: 18px;
}

.lu24-tasks-list {
    margin-bottom: 20px;
}

.lu24-task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: background 0.2s;
}

.lu24-task-item:hover {
    background: #f9f9f9;
}

.lu24-task-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lu24-task-name {
    font-weight: 600;
    font-size: 16px;
}

.lu24-task-reward {
    color: #5cb85c;
    font-weight: bold;
    font-size: 14px;
}

.lu24-task-action {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lu24-task-status {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.lu24-task-completed {
    background: #d4edda;
    color: #155724;
}

.lu24-task-timer {
    color: #856404;
    font-size: 13px;
    font-weight: 500;
}

.lu24-claim-btn {
    padding: 8px 16px;
    font-size: 14px;
}

.lu24-timer-container {
    text-align: center;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 4px;
}

.lu24-countdown {
    font-weight: bold;
    color: #2271b1;
    font-size: 18px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .lu24-tasks-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .lu24-task-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .lu24-task-action {
        flex-direction: column;
        width: 100%;
    }
    
    .lu24-claim-btn,
    .lu24-task-status {
        width: 100%;
    }
}

/* === Задание: 3 записи в дневники === */
.lu24-task-wrapper {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lu24-task-wrapper.lu24-task-completed {
    border-color: #38a169;
    background: #f0fff4;
}

.lu24-task-wrapper.lu24-task-active {
    border-color: #4a90d9;
}

.lu24-task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.lu24-task-header h4 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.lu24-task-status {
    font-size: 14px;
    font-weight: 600;
}

.lu24-task-completed .lu24-task-status {
    color: #38a169;
}

.lu24-task-active .lu24-task-status {
    color: #4a90d9;
}

.lu24-task-description {
    margin: 0 0 15px 0;
    color: #555;
    font-size: 15px;
}

.lu24-task-progress {
    margin-bottom: 15px;
}

.lu24-progress-bar {
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.lu24-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a90d9, #38a169);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.lu24-task-completed .lu24-progress-fill {
    background: linear-gradient(90deg, #38a169, #2e7d32);
}

.lu24-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
}

.lu24-progress-count {
    font-weight: 600;
}

.lu24-task-reward {
    padding: 10px 15px;
    background: #fff3cd;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #856404;
}

.lu24-task-reward i {
    margin-right: 5px;
}

.lu24-task-timer {
    font-size: 14px;
    color: #666;
}

.lu24-task-timer i {
    margin-right: 5px;
    color: #4a90d9;
}

.lu24-countdown {
    font-weight: 600;
    color: #4a90d9;
}

.lu24-task-claim {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.lu24-claim-success {
    color: #38a169;
    font-weight: 600;
}

/* === Лента баллов === */
.lu24-feed-wrapper {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}

.lu24-feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.lu24-feed-header h4 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.lu24-feed-total {
    font-size: 14px;
    color: #666;
}

.lu24-feed-list {
    margin-bottom: 20px;
}

.lu24-feed-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.lu24-feed-item:last-child {
    border-bottom: none;
}

.lu24-feed-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.lu24-feed-icon i {
    font-size: 16px;
    color: #666;
}

.lu24-feed-content {
    flex: 1;
    min-width: 0;
}

.lu24-feed-description {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lu24-feed-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #999;
}

.lu24-feed-event {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
}

.lu24-feed-amount {
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
    margin-left: 10px;
}

.lu24-amount-positive {
    color: #38a169;
}

.lu24-amount-negative {
    color: #dc3545;
}

.lu24-feed-empty {
    text-align: center;
    color: #999;
    padding: 20px 0;
}

.lu24-feed-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.lu24-feed-btn {
    padding: 8px 16px;
    background: #4a90d9;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.lu24-feed-btn:hover {
    background: #357abd;
}

.lu24-feed-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.lu24-feed-page-info {
    font-size: 14px;
    color: #666;
}

.lu24-feed-loading {
    text-align: center;
    padding: 15px;
    color: #666;
}

.lu24-feed-loading i {
    margin-right: 8px;
}

/* === Адаптивность === */
@media (max-width: 768px) {
    .lu24-task-wrapper,
    .lu24-feed-wrapper {
        margin: 15px;
        padding: 15px;
    }
    
    .lu24-feed-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .lu24-feed-amount {
        margin-left: 0;
        width: 100%;
        text-align: right;
        margin-top: 5px;
    }
    
    .lu24-feed-pagination {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* === Задание: 3 записи в дневники === */
.lu24-task-journal-entries {
    border-top: 1px dashed #e0e0e0;
    padding-top: 15px;
    margin-top: 10px;
}
.lu24-task-journal-entries.lu24-task-completed { opacity: 0.9; }
.lu24-task-progress-inline { display: flex; align-items: center; gap: 10px; }
.lu24-progress-count { font-weight: 600; font-size: 14px; color: #333; min-width: 40px; }
.lu24-mini-progress { flex: 1; height: 8px; background: #e0e0e0; border-radius: 4px; overflow: hidden; max-width: 150px; }
.lu24-mini-fill { height: 100%; background: linear-gradient(90deg, #4a90d9, #38a169); border-radius: 4px; transition: width 0.3s ease; }
.lu24-task-completed .lu24-mini-fill { background: linear-gradient(90deg, #38a169, #2e7d32); }

/* === Лента баллов === */
.lu24-feed-section { margin-top: 25px; padding-top: 20px; border-top: 2px solid #e0e0e0; }
.lu24-feed-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.lu24-feed-header h4 { margin: 0; font-size: 16px; color: #333; }
.lu24-feed-total { font-size: 13px; color: #666; }
.lu24-feed-list { margin-bottom: 15px; }
.lu24-feed-item { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.lu24-feed-item:last-child { border-bottom: none; }
.lu24-feed-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: #f5f5f5; border-radius: 50%; margin-right: 10px; flex-shrink: 0; }
.lu24-feed-icon i { font-size: 14px; color: #666; }
.lu24-feed-content { flex: 1; min-width: 0; }
.lu24-feed-description { font-size: 13px; color: #333; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lu24-feed-meta { display: flex; gap: 8px; font-size: 11px; color: #999; }
.lu24-feed-event { background: #f0f0f0; padding: 1px 5px; border-radius: 2px; }
.lu24-feed-amount { font-size: 15px; font-weight: 600; flex-shrink: 0; margin-left: 8px; }
.lu24-amount-positive { color: #38a169; }
.lu24-amount-negative { color: #dc3545; }
.lu24-feed-empty { text-align: center; color: #999; padding: 15px 0; font-size: 14px; }
.lu24-feed-pagination { display: flex; justify-content: center; align-items: center; gap: 12px; padding-top: 10px; }
.lu24-feed-btn { padding: 6px 14px; background: #4a90d9; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 13px; transition: background 0.2s; }
.lu24-feed-btn:hover:not(:disabled) { background: #357abd; }
.lu24-feed-btn:disabled { background: #ccc; cursor: not-allowed; }
.lu24-feed-page-info { font-size: 13px; color: #666; }
.lu24-feed-loading { text-align: center; padding: 10px; color: #666; font-size: 13px; }
.lu24-feed-loading i { margin-right: 6px; }

/* === Адаптивность === */
@media (max-width: 768px) {
    .lu24-feed-item { flex-wrap: wrap; gap: 8px; }
    .lu24-feed-amount { margin-left: 0; width: 100%; text-align: right; margin-top: 5px; }
    .lu24-feed-pagination { flex-wrap: wrap; gap: 8px; }
    .lu24-task-progress-inline { flex-wrap: wrap; }
    .lu24-mini-progress { max-width: 100%; }
}

/* === Задание: 3 теста в день === */
.lu24-task-tests {
    border-top: 1px dashed #e0e0e0;
    padding-top: 15px;
    margin-top: 10px;
}
.lu24-task-tests.lu24-task-completed {
    opacity: 0.9;
}

/* === Задание: Типология (один раз) === */
.lu24-task-typology {
    border-top: 1px dashed #e0e0e0;
    padding-top: 15px;
    margin-top: 10px;
}
.lu24-task-typology.lu24-task-completed {
    opacity: 0.9;
}
.lu24-task-pending {
    color: #666;
    font-size: 13px;
}

.lu24-task-planner{border-top:1px dashed #e0e0e0;padding-top:15px;margin-top:10px}
.lu24-task-planner.lu24-task-completed{opacity:0.9}

.lu24-task-habits{border-top:1px dashed #e0e0e0;padding-top:15px;margin-top:10px}
.lu24-task-habits.lu24-task-completed{opacity:0.9}