#dividends-section {
    padding: 20px;
}

#dividends-section .section-header {
    margin-bottom: 24px;
}

#dividends-section .section-header h2 {
    color: #e0e0e0;
    font-size: 1.4rem;
    margin: 0 0 6px 0;
}

#dividends-section .section-description {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
}

.div-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 1px solid #2a2a4a;
}

.div-tab {
    padding: 10px 24px;
    cursor: pointer;
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    user-select: none;
}

.div-tab:hover {
    color: #ccc;
}

.div-tab.active {
    color: #00d4ff;
    border-bottom-color: #00d4ff;
}

.div-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.div-summary-card {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid #2a2a4a;
    border-radius: 10px;
    padding: 18px;
    text-align: center;
}

.div-summary-label {
    color: #888;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.div-summary-value {
    color: #e0e0e0;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.div-val-safe { color: #00ff88; }
.div-val-risk { color: #ef4444; }

.div-summary-sub {
    color: #555;
    font-size: 0.7rem;
    margin-top: 4px;
}

.div-section {
    margin-bottom: 32px;
}

.div-section h3 {
    margin: 0;
    color: #e0e0e0;
    font-size: 1.05rem;
}

.div-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.div-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.div-input {
    background: #0d0d1a;
    border: 1px solid #2a2a4a;
    color: #e0e0e0;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

.div-input:focus {
    border-color: #00d4ff;
}

.div-input::placeholder {
    color: #555;
}

.div-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.div-btn:active {
    transform: scale(0.97);
}

.div-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.div-btn-primary {
    background: #00d4ff;
    color: #000;
}

.div-btn-primary:hover:not(:disabled) {
    opacity: 0.9;
}

.div-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ccc;
    border: 1px solid #2a2a4a;
}

.div-btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
}

.div-btn-remove {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    font-size: 0.75rem;
    padding: 5px 10px;
}

.div-btn-remove:hover {
    background: rgba(239, 68, 68, 0.25);
}

.div-btn-add {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    font-size: 0.75rem;
    padding: 5px 12px;
}

.div-btn-add:hover:not(:disabled) {
    background: rgba(0, 255, 136, 0.2);
}

.div-btn-added {
    background: rgba(0, 255, 136, 0.05);
    color: #555;
}

.div-table-wrap {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #2a2a4a;
}

.div-table {
    width: 100%;
    border-collapse: collapse;
}

.div-table th {
    padding: 12px 16px;
    text-align: left;
    color: #888;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid #2a2a4a;
}

.div-table td {
    padding: 12px 16px;
    color: #ccc;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(42, 42, 74, 0.5);
}

.div-table tbody tr:last-child td {
    border-bottom: none;
}

.div-row-clickable {
    cursor: pointer;
    transition: background 0.15s;
}

.div-row-clickable:hover {
    background: rgba(0, 212, 255, 0.04);
}

.div-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #333;
    color: #888;
}

.div-badge-safe { background: rgba(0, 255, 136, 0.15); color: #00ff88; }
.div-badge-caution { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.div-badge-risk { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.div-badge-info { background: rgba(0, 212, 255, 0.15); color: #00d4ff; }

.div-confidence {
    font-size: 0.65rem;
    color: #666;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.div-calendar-week {
    margin-bottom: 20px;
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    overflow: hidden;
}

.div-calendar-week-header {
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 16px;
    font-weight: 600;
    color: #888;
    font-size: 0.85rem;
    border-bottom: 1px solid #2a2a4a;
}

.div-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.div-filter-group label {
    color: #666;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.div-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #666;
}

.div-empty-state p {
    margin: 0 0 8px 0;
}

.div-empty-hint {
    font-size: 0.8rem;
    color: #555;
}

.div-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.div-detail-heading {
    color: #e0e0e0;
    font-size: 0.95rem;
    margin: 0 0 14px 0;
    font-weight: 600;
}

.div-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.div-metric-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.div-metric-label {
    color: #666;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

.div-metric-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.div-next-exdiv {
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 16px;
}

.div-next-exdiv strong {
    color: #00d4ff;
}

.div-safety-hero {
    text-align: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.div-safety-hero .div-badge {
    font-size: 1.4rem;
    padding: 8px 20px;
}

.div-safety-hero .div-confidence {
    font-size: 0.8rem;
    margin-top: 6px;
}

.div-safety-breakdown {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.div-safety-item {}

.div-safety-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 4px;
}

.div-safety-bar-container {
    width: 100%;
    height: 6px;
    background: #1a1a2e;
    border-radius: 3px;
    overflow: hidden;
}

.div-safety-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.div-cut-signals {
    margin-top: 20px;
    padding: 14px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
}

.div-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 99999;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.div-toast-show {
    opacity: 1;
    transform: translateY(0);
}

.div-toast-success {
    background: #065f46;
    color: #a7f3d0;
    border: 1px solid #047857;
}

.div-toast-error {
    background: #7f1d1d;
    color: #fca5a5;
    border: 1px solid #991b1b;
}

.div-toast-info {
    background: #1e3a5f;
    color: #93c5fd;
    border: 1px solid #1d4ed8;
}

@media (max-width: 768px) {
    .div-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .div-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .div-detail-grid {
        grid-template-columns: 1fr;
    }

    .div-metrics-grid {
        grid-template-columns: 1fr 1fr;
    }

    .div-table th, .div-table td {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}
